output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "state" FROM "united_states" WHERE "gnis_feature_id">624634 AND "usgs_7_5_map"='temple peak';
## Task Generate a SQL query to answer the following question: `Which state has a GNIS Feature ID larger than 624634, and a USGS 7.5 Map of temple peak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states" ( "name" text, "gnis_feature_id" real, "state" text, "county" text, "type" text, "usgs_7_5_map" text ); ### SQL Given the database schema, here is the SQL query that answers `Which state has a GNIS Feature ID larger than 624634, and a USGS 7.5 Map of temple peak?`: ```sql
SELECT "state" FROM "united_states" WHERE "name"='diamond lake' AND "gnis_feature_id"=1579127;
## Task Generate a SQL query to answer the following question: `Which state has a Name of diamond lake, and a GNIS Feature ID of 1579127?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states" ( "name" text, "gnis_feature_id" real, "state" text, "county" text, "type" text, "usgs_7_5_map" text ); ### SQL Given the database schema, here is the SQL query that answers `Which state has a Name of diamond lake, and a GNIS Feature ID of 1579127?`: ```sql
SELECT "directed_by" FROM "season_1_1997" WHERE "written_by"='cyrus nowrasteh';
## Task Generate a SQL query to answer the following question: `Who directed the episode written cyrus nowrasteh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_1997" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode written cyrus nowrasteh?`: ```sql
SELECT COUNT("rank_pakistan") FROM "8000_meters" WHERE "world_rank"<11 AND "height_m"<8126;
## Task Generate a SQL query to answer the following question: `What is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "8000_meters" ( "world_rank" real, "rank_pakistan" real, "name" text, "height_m" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126?`: ```sql
SELECT "2006" FROM "major_tournament_singles_performance_tim" WHERE "2001"='4r';
## Task Generate a SQL query to answer the following question: `Which 2006 tournament had a 4R performance in 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_tournament_singles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "career_sr" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2006 tournament had a 4R performance in 2001?`: ```sql
SELECT "tournament" FROM "major_tournament_singles_performance_tim" WHERE "2004"='1r' AND "1998"='2r';
## Task Generate a SQL query to answer the following question: `Which tournament had a performance of 1R in 2004 and 2R in 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_tournament_singles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "career_sr" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament had a performance of 1R in 2004 and 2R in 1998?`: ```sql
SELECT "1998" FROM "major_tournament_singles_performance_tim" WHERE "2007"='3r';
## Task Generate a SQL query to answer the following question: `Which 1998 tournament had a performance of 3R in 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_tournament_singles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "career_sr" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 1998 tournament had a performance of 3R in 2007?`: ```sql
SELECT "2005" FROM "major_tournament_singles_performance_tim" WHERE "2006"='1r' AND "2002"='1r';
## Task Generate a SQL query to answer the following question: `What's the name of the 2005 tournament that has a 1R in both 2006 and 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_tournament_singles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "career_sr" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of the 2005 tournament that has a 1R in both 2006 and 2002?`: ```sql
SELECT "home_team_score" FROM "round_17" WHERE "venue"='glenferrie oval';
## Task Generate a SQL query to answer the following question: `What did home team score at glenferrie oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did home team score at glenferrie oval?`: ```sql
SELECT MAX("gross_debt_in_billions_undeflated_treas") FROM "deficit_spending" WHERE "gdp_billions_omb_bea_est_mw_com"='10,980' AND "end_of_fiscal_year"<2003;
## Task Generate a SQL query to answer the following question: `For End of Fiscal Years before 2003 with a GDP $Billions OMB/BEA est.=MW.com of 10,980 what is the highest Gross Debt in $Billions undeflated Treas.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deficit_spending" ( "end_of_fiscal_year" real, "gross_debt_in_billions_undeflated_treas" real, "as_pct_of_gdp_low_high" text, "debt_held_by_public_billions" real, "as_pct_of_gdp_treas_mw_omb_or_omb_mw" real, "gdp_billions_omb_bea_est_mw_com" text ); ### SQL Given the database schema, here is the SQL query that answers `For End of Fiscal Years before 2003 with a GDP $Billions OMB/BEA est.=MW.com of 10,980 what is the highest Gross Debt in $Billions undeflated Treas.?`: ```sql
SELECT AVG("gross_debt_in_billions_undeflated_treas") FROM "deficit_spending" WHERE "end_of_fiscal_year">1980 AND "as_pct_of_gdp_low_high"='83.4-84.4' AND "debt_held_by_public_billions"<'7,552';
## Task Generate a SQL query to answer the following question: `For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deficit_spending" ( "end_of_fiscal_year" real, "gross_debt_in_billions_undeflated_treas" real, "as_pct_of_gdp_low_high" text, "debt_held_by_public_billions" real, "as_pct_of_gdp_treas_mw_omb_or_omb_mw" real, "gdp_billions_omb_bea_est_mw_com" text ); ### SQL Given the database schema, here is the SQL query that answers `For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?`: ```sql
SELECT COUNT("debt_held_by_public_billions") FROM "deficit_spending" WHERE "as_pct_of_gdp_treas_mw_omb_or_omb_mw"=28 AND "gross_debt_in_billions_undeflated_treas"<370.9;
## Task Generate a SQL query to answer the following question: `For End of Fiscal Year(s) with as % of GDP (Treas/MW, OMB or OMB/MW) of 28 and Gross Debt in $Billions undeflated Treas. smaller than 370.9 what would be the sum of Debt Held By Public ($Billions)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deficit_spending" ( "end_of_fiscal_year" real, "gross_debt_in_billions_undeflated_treas" real, "as_pct_of_gdp_low_high" text, "debt_held_by_public_billions" real, "as_pct_of_gdp_treas_mw_omb_or_omb_mw" real, "gdp_billions_omb_bea_est_mw_com" text ); ### SQL Given the database schema, here is the SQL query that answers `For End of Fiscal Year(s) with as % of GDP (Treas/MW, OMB or OMB/MW) of 28 and Gross Debt in $Billions undeflated Treas. smaller than 370.9 what would be the sum of Debt Held By Public ($Billions)?`: ```sql
SELECT COUNT("gross_debt_in_billions_undeflated_treas") FROM "deficit_spending" WHERE "debt_held_by_public_billions">236.8 AND "as_pct_of_gdp_low_high"='33.4';
## Task Generate a SQL query to answer the following question: `For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deficit_spending" ( "end_of_fiscal_year" real, "gross_debt_in_billions_undeflated_treas" real, "as_pct_of_gdp_low_high" text, "debt_held_by_public_billions" real, "as_pct_of_gdp_treas_mw_omb_or_omb_mw" real, "gdp_billions_omb_bea_est_mw_com" text ); ### SQL Given the database schema, here is the SQL query that answers `For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?`: ```sql
SELECT "player" FROM "draft_picks" WHERE "round"=6;
## Task Generate a SQL query to answer the following question: `What player was selected in Round 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What player was selected in Round 6?`: ```sql
SELECT "nationality" FROM "draft_picks" WHERE "college_junior_club_team_league"='peterborough petes (ohl)';
## Task Generate a SQL query to answer the following question: `What is the nationality of the player who played for the Peterborough Petes (OHL)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of the player who played for the Peterborough Petes (OHL)?`: ```sql
SELECT SUM("round") FROM "draft_picks" WHERE "nationality"='canada' AND "player"='mike peca (c)';
## Task Generate a SQL query to answer the following question: `Which round was Mike Peca (C) of Canada selected in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round was Mike Peca (C) of Canada selected in?`: ```sql
SELECT MIN("grid") FROM "race" WHERE "driver"='ayrton senna';
## Task Generate a SQL query to answer the following question: `What is the smallest grid for Ayrton Senna?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest grid for Ayrton Senna?`: ```sql
SELECT "time_retired" FROM "race" WHERE "laps">52 AND "grid">21;
## Task Generate a SQL query to answer the following question: `What is the Time/Retired for laps higher than 52 on a grid larger than 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time/Retired for laps higher than 52 on a grid larger than 21?`: ```sql
SELECT SUM("laps") FROM "race" WHERE "grid"=20;
## Task Generate a SQL query to answer the following question: `What is the sum of laps for grid 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of laps for grid 20?`: ```sql
SELECT MAX("laps") FROM "race" WHERE "driver"='ayrton senna';
## Task Generate a SQL query to answer the following question: `What is the most laps for Ayrton Senna?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most laps for Ayrton Senna?`: ```sql
SELECT SUM("parallel_bars") FROM "final" WHERE "floor_exercise">9.137 AND "horizontal_bar"=9.225 AND "vault">9.5;
## Task Generate a SQL query to answer the following question: `what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "gymnast" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225?`: ```sql
SELECT MAX("floor_exercise") FROM "final" WHERE "pommel_horse"=9.65 AND "horizontal_bar">9.475;
## Task Generate a SQL query to answer the following question: `what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "gymnast" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475?`: ```sql
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2010"='1r';
## Task Generate a SQL query to answer the following question: `Which tournament had A in 2008, and a 1r in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament had A in 2008, and a 1r in 2010?`: ```sql
SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='q1' AND "2010"='1r';
## Task Generate a SQL query to answer the following question: `What was the position for 2008, where 2012 was q1, and 2010 was 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the position for 2008, where 2012 was q1, and 2010 was 1r?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "goal"=3;
## Task Generate a SQL query to answer the following question: `Which venue has a Goal of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue has a Goal of 3?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "date"='10 september 2010';
## Task Generate a SQL query to answer the following question: `Which venue was used on 10 september 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue was used on 10 september 2010?`: ```sql
SELECT COUNT("car") FROM "running_backs" WHERE "yards"<6 AND "avg">5;
## Task Generate a SQL query to answer the following question: `How many carries for the player with under 6 yards and an average of over 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `How many carries for the player with under 6 yards and an average of over 5?`: ```sql
SELECT MAX("long") FROM "running_backs" WHERE "player"='kevin clemens' AND "yards"<31;
## Task Generate a SQL query to answer the following question: `What was the longest carry for kevin clemens with under 31 yards total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the longest carry for kevin clemens with under 31 yards total?`: ```sql
SELECT SUM("td_s") FROM "running_backs" WHERE "long"<4 AND "yards"<8;
## Task Generate a SQL query to answer the following question: `How many TDs for the player with a long of less than 4 and under 8 yards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `How many TDs for the player with a long of less than 4 and under 8 yards?`: ```sql
SELECT MIN("avg") FROM "running_backs" WHERE "td_s"=1 AND "long">4 AND "car"<1;
## Task Generate a SQL query to answer the following question: `What is the average for the player with 1 TD, over 4 as a long, and under 1 carry?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average for the player with 1 TD, over 4 as a long, and under 1 carry?`: ```sql
SELECT COUNT("crowd") FROM "round_6" WHERE "venue"='brunswick street oval';
## Task Generate a SQL query to answer the following question: `What was the attendance at Brunswick Street Oval?` ### 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 the attendance at Brunswick Street Oval?`: ```sql
SELECT "first_day_cover_cancellation" FROM "2005" WHERE "date_of_issue"='13 june 2005';
## Task Generate a SQL query to answer the following question: `What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005" ( "date_of_issue" text, "denomination" text, "design" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005?`: ```sql
SELECT "first_day_cover_cancellation" FROM "2005" WHERE "denomination"='$0.50' AND "date_of_issue"='13 june 2005';
## Task Generate a SQL query to answer the following question: `What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005" ( "date_of_issue" text, "denomination" text, "design" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005?`: ```sql
SELECT "denomination" FROM "2005" WHERE "date_of_issue"='12 april 2005';
## Task Generate a SQL query to answer the following question: `What's the Denomination listed for the Date of Issue 12 April 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005" ( "date_of_issue" text, "denomination" text, "design" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Denomination listed for the Date of Issue 12 April 2005?`: ```sql
SELECT "paper_type" FROM "2005" WHERE "denomination"='$0.50' AND "date_of_issue"='4 february 2005';
## Task Generate a SQL query to answer the following question: `Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005" ( "date_of_issue" text, "denomination" text, "design" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?`: ```sql
SELECT "date_of_issue" FROM "2005" WHERE "design"='katalin kovats';
## Task Generate a SQL query to answer the following question: `What's the Date of Issue for Design of Katalin Kovats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005" ( "date_of_issue" text, "denomination" text, "design" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Date of Issue for Design of Katalin Kovats?`: ```sql
SELECT COUNT("avg") FROM "wide_receivers" WHERE "yards"=116 AND "td_s"<1;
## Task Generate a SQL query to answer the following question: `What was the average for the player that scored 116 yards and had TD's less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average for the player that scored 116 yards and had TD's less than 1?`: ```sql
SELECT MIN("rec") FROM "wide_receivers" WHERE "avg">13;
## Task Generate a SQL query to answer the following question: `What was the lowest recorded record for a player with an average larger than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest recorded record for a player with an average larger than 13?`: ```sql
SELECT COUNT("yards") FROM "wide_receivers" WHERE "td_s"=1 AND "player"='hank edwards' AND "avg">13;
## Task Generate a SQL query to answer the following question: `How many yards did Hank Edwards make when he had TD's of 1 and an average higher than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `How many yards did Hank Edwards make when he had TD's of 1 and an average higher than 13?`: ```sql
SELECT AVG("yards") FROM "wide_receivers" WHERE "long"<18 AND "avg">13;
## Task Generate a SQL query to answer the following question: `How many yards were averaged by the player that had a higher than 13 average with less than 18 long?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `How many yards were averaged by the player that had a higher than 13 average with less than 18 long?`: ```sql
SELECT MAX("yards") FROM "wide_receivers" WHERE "td_s">4;
## Task Generate a SQL query to answer the following question: `What is the highest number of yards recorded for a player that had more than 4 TD's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of yards recorded for a player that had more than 4 TD's?`: ```sql
SELECT MAX("passenger_fleet") FROM "by_scheduled_passengers_carried_millions" WHERE "airline_holding"='wizz air' AND "current_destinations"<83;
## Task Generate a SQL query to answer the following question: `For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_scheduled_passengers_carried_millions" ( "rank" real, "airline_holding" text, "passenger_fleet" real, "current_destinations" real, "alliance_association" text ); ### SQL Given the database schema, here is the SQL query that answers `For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet?`: ```sql
SELECT "alliance_association" FROM "by_scheduled_passengers_carried_millions" WHERE "rank"=40;
## Task Generate a SQL query to answer the following question: `Which alliance has a rank of 40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_scheduled_passengers_carried_millions" ( "rank" real, "airline_holding" text, "passenger_fleet" real, "current_destinations" real, "alliance_association" text ); ### SQL Given the database schema, here is the SQL query that answers `Which alliance has a rank of 40?`: ```sql
SELECT "alliance_association" FROM "by_scheduled_passengers_carried_millions" WHERE "airline_holding"='aeroflot group';
## Task Generate a SQL query to answer the following question: `For airlines named Aeroflot Group, what is the alliance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_scheduled_passengers_carried_millions" ( "rank" real, "airline_holding" text, "passenger_fleet" real, "current_destinations" real, "alliance_association" text ); ### SQL Given the database schema, here is the SQL query that answers `For airlines named Aeroflot Group, what is the alliance?`: ```sql
SELECT "year" FROM "player_selections" WHERE "position"='linebacker' AND "pick"='17';
## Task Generate a SQL query to answer the following question: `In which year was a linebacker pick 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_selections" ( "year" real, "pick" text, "player_name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `In which year was a linebacker pick 17?`: ```sql
SELECT "player_name" FROM "player_selections" WHERE "position"='cornerback' AND "year"=1997;
## Task Generate a SQL query to answer the following question: `What is the name of the cornerback from 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_selections" ( "year" real, "pick" text, "player_name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the cornerback from 1997?`: ```sql
SELECT "player_name" FROM "player_selections" WHERE "year">1989 AND "college"='washington state';
## Task Generate a SQL query to answer the following question: `What is the name of the player from after 1989 from Washington State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_selections" ( "year" real, "pick" text, "player_name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player from after 1989 from Washington State?`: ```sql
SELECT "race" FROM "race_record" WHERE "margin"='8';
## Task Generate a SQL query to answer the following question: `Which race has a Margin of 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text ); ### SQL Given the database schema, here is the SQL query that answers `Which race has a Margin of 8?`: ```sql
SELECT COUNT("runners") FROM "race_record" WHERE "placing">1;
## Task Generate a SQL query to answer the following question: `How many Runners have a Placing that isn't 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Runners have a Placing that isn't 1?`: ```sql
SELECT MIN("runners") FROM "race_record" WHERE "placing"<1;
## Task Generate a SQL query to answer the following question: `What is the lowest number of Runners that has a Placing that isn't 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of Runners that has a Placing that isn't 1?`: ```sql
SELECT MIN("prize_k") FROM "race_record" WHERE "race"='irish derby';
## Task Generate a SQL query to answer the following question: `What is the lowest Prize amount for the Irish Derby Race?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Prize amount for the Irish Derby Race?`: ```sql
SELECT SUM("crowd") FROM "round_4" WHERE "away_team_score"='18.17 (125)';
## Task Generate a SQL query to answer the following question: `How many people attended the game that resulted in an away team score of 18.17 (125)?` ### 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 people attended the game that resulted in an away team score of 18.17 (125)?`: ```sql
SELECT AVG("mintage") FROM "provincial_flowers" WHERE "issue_price"='$1,099.99' AND "artist"='pamela stagg';
## Task Generate a SQL query to answer the following question: `What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_flowers" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg?`: ```sql
SELECT AVG("year") FROM "provincial_flowers" WHERE "issue_price"='$1,295.95';
## Task Generate a SQL query to answer the following question: `What was the year that had an issue price of $1,295.95?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_flowers" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the year that had an issue price of $1,295.95?`: ```sql
SELECT "composition" FROM "provincial_flowers" WHERE "year"<2002 AND "mintage">'1,998' AND "artist"='henry purdy';
## Task Generate a SQL query to answer the following question: `What is the composition with an artist of Henry Purdy, a year smaller than 2002, and a mint more than 1,998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_flowers" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the composition with an artist of Henry Purdy, a year smaller than 2002, and a mint more than 1,998?`: ```sql
SELECT AVG("mintage") FROM "provincial_flowers" WHERE "artist"='celia godkin' AND "year"<2010;
## Task Generate a SQL query to answer the following question: `What was the average mintage for that of artist Celia Godkin, before the year 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_flowers" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average mintage for that of artist Celia Godkin, before the year 2010?`: ```sql
SELECT "venue" FROM "round_13" WHERE "away_team_score"='13.16 (94)';
## Task Generate a SQL query to answer the following question: `Where is the Venue that has an away team score of 13.16 (94) points?` ### 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 `Where is the Venue that has an away team score of 13.16 (94) points?`: ```sql
SELECT "away_team_score" FROM "round_9" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `What was the away team score at Windy Hill?` ### 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 the away team score at Windy Hill?`: ```sql
SELECT "home_team" FROM "round_9" WHERE "venue"='lake oval';
## Task Generate a SQL query to answer the following question: `Who was the home team at Lake Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team at Lake Oval?`: ```sql
SELECT COUNT("crowd") FROM "round_9" WHERE "away_team_score"='10.18 (78)';
## Task Generate a SQL query to answer the following question: `What is the number of the crowd when the away team score was 10.18 (78)?` ### 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 when the away team score was 10.18 (78)?`: ```sql
SELECT "date" FROM "round_9" WHERE "crowd">'19,298' AND "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `On what date was the crowd over 19,298 when South Melbourne was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the crowd over 19,298 when South Melbourne was the home team?`: ```sql
SELECT "date" FROM "round_9" WHERE "home_team_score"='10.14 (74)';
## Task Generate a SQL query to answer the following question: `On what date was the home team score 10.14 (74)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the home team score 10.14 (74)?`: ```sql
SELECT "date" FROM "round_8" WHERE "venue"='vfl park';
## Task Generate a SQL query to answer the following question: `On what date was the venue VFL Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the venue VFL Park?`: ```sql
SELECT "home_team" FROM "round_8" WHERE "venue"='glenferrie oval';
## Task Generate a SQL query to answer the following question: `Which team was the home team at Glenferrie Oval?` ### 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 `Which team was the home team at Glenferrie Oval?`: ```sql
SELECT "date" FROM "singles_37_19_18" WHERE "opponent_in_the_final"='steffi graf' AND "score_in_the_final"='2–6, 0–6';
## Task Generate a SQL query to answer the following question: `What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_37_19_18" ( "outcome" text, "date" text, "tournament" 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 date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?`: ```sql
SELECT "surface" FROM "singles_37_19_18" WHERE "outcome"='winner' AND "date"='12 march 1989';
## Task Generate a SQL query to answer the following question: `What was the surface where the outcome was winner on 12 march 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_37_19_18" ( "outcome" text, "date" text, "tournament" 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 surface where the outcome was winner on 12 march 1989?`: ```sql
SELECT "outcome" FROM "singles_37_19_18" WHERE "tournament"='lugano , switzerland wta virginia slims' AND "opponent_in_the_final"='bonnie gadusek';
## Task Generate a SQL query to answer the following question: `What was the outcome of the Tournament of lugano , switzerland wta virginia slims, against bonnie gadusek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_37_19_18" ( "outcome" text, "date" text, "tournament" 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 of the Tournament of lugano , switzerland wta virginia slims, against bonnie gadusek?`: ```sql
SELECT "outcome" FROM "singles_37_19_18" WHERE "opponent_in_the_final"='sylvia hanika' AND "surface"='hard (i)';
## Task Generate a SQL query to answer the following question: `What is the outcome of the match against Sylvia Hanika on a hard (i) surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_37_19_18" ( "outcome" text, "date" text, "tournament" 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 outcome of the match against Sylvia Hanika on a hard (i) surface?`: ```sql
SELECT "player" FROM "c" WHERE "no_s"='20';
## Task Generate a SQL query to answer the following question: `What player had numbers of 20` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What player had numbers of 20`: ```sql
SELECT "height_in_ft" FROM "c" WHERE "years_for_rockets"='1999-2004';
## Task Generate a SQL query to answer the following question: `Tell me the height in ft for 1999-2004` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the height in ft for 1999-2004`: ```sql
SELECT "no_s" FROM "c" WHERE "height_in_ft"='6-7';
## Task Generate a SQL query to answer the following question: `Tell me the number for height in ft of 6-7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the number for height in ft of 6-7`: ```sql
SELECT "player" FROM "c" WHERE "school_club_team_country"='missouri';
## Task Generate a SQL query to answer the following question: `What player had a school of missouri` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What player had a school of missouri`: ```sql
SELECT AVG("pick_num") FROM "round_three" WHERE "team_from"='rimouski océanic';
## Task Generate a SQL query to answer the following question: `What pick # has a team from Rimouski Océanic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `What pick # has a team from Rimouski Océanic?`: ```sql
SELECT "player" FROM "round_three" WHERE "position"='d' AND "team_from"='hotchkiss school';
## Task Generate a SQL query to answer the following question: `Who is the player from Hotchkiss School with a position of d?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player from Hotchkiss School with a position of d?`: ```sql
SELECT "type" FROM "stage_results" WHERE "distance"='km (mi)' AND "course"='sorrento to sapri';
## Task Generate a SQL query to answer the following question: `What type is the sorrento to sapri course with a distance of km (mi)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What type is the sorrento to sapri course with a distance of km (mi)?`: ```sql
SELECT "type" FROM "stage_results" WHERE "course"='misurina to bassano del grappa';
## Task Generate a SQL query to answer the following question: `What type is the misurina to bassano del grappa course?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What type is the misurina to bassano del grappa course?`: ```sql
SELECT "distance" FROM "stage_results" WHERE "course"='chieti to macerata';
## Task Generate a SQL query to answer the following question: `What's the distance for the chieti to macerata course?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the distance for the chieti to macerata course?`: ```sql
SELECT MIN("points") FROM "race_results" WHERE "make"='chevrolet' AND "driver"='sterling marlin' AND "car_num"<14;
## Task Generate a SQL query to answer the following question: `Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14?` ### 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 `Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14?`: ```sql
SELECT MIN("points") FROM "race_results" WHERE "make"='chevrolet' AND "car_num"<24 AND "laps"=312 AND "winnings"='$122,325';
## Task Generate a SQL query to answer the following question: `Which is the lowest point value that had not only a Chevrolet car, but also a car number smaller than 24, total laps of 312, and a winning purse of $122,325?` ### 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 `Which is the lowest point value that had not only a Chevrolet car, but also a car number smaller than 24, total laps of 312, and a winning purse of $122,325?`: ```sql
SELECT "location" FROM "kickboxing_record" WHERE "result"='win' AND "opponent"='johan mparmpagiannis';
## Task Generate a SQL query to answer the following question: `What is the location for the win against Johan Mparmpagiannis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location for the win against Johan Mparmpagiannis?`: ```sql
SELECT "method" FROM "kickboxing_record" WHERE "opponent"='björn bregy';
## Task Generate a SQL query to answer the following question: `What is the method against Björn Bregy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the method against Björn Bregy?`: ```sql
SELECT "method" FROM "kickboxing_record" WHERE "opponent"='paula mataele';
## Task Generate a SQL query to answer the following question: `What is the method against Paula Mataele?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the method against Paula Mataele?`: ```sql
SELECT "date" FROM "kickboxing_record" WHERE "location"='vilnius, lithuania';
## Task Generate a SQL query to answer the following question: `What is the date of the match in Vilnius, Lithuania?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the match in Vilnius, Lithuania?`: ```sql
SELECT "result" FROM "kickboxing_record" WHERE "opponent"='errol zimmerman' AND "date"='2007-04-07';
## Task Generate a SQL query to answer the following question: `What is the result against Errol Zimmerman on 2007-04-07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result against Errol Zimmerman on 2007-04-07?`: ```sql
SELECT "location" FROM "kickboxing_record" WHERE "opponent"='martinis knyzelis';
## Task Generate a SQL query to answer the following question: `What is the location of the match against Martinis Knyzelis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the match against Martinis Knyzelis?`: ```sql
SELECT "date" FROM "round_16" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `What day is st kilda the home side?` ### 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 is st kilda the home side?`: ```sql
SELECT "away_team_score" FROM "round_16" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `What is melbourne's away score?` ### 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 is melbourne's away score?`: ```sql
SELECT MAX("crowd") FROM "round_16" WHERE "away_team_score"='4.9 (33)';
## Task Generate a SQL query to answer the following question: `What is the highest crowd listed when the away side scores 4.9 (33)?` ### 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 is the highest crowd listed when the away side scores 4.9 (33)?`: ```sql
SELECT "venue" FROM "round_16" WHERE "away_team_score"='4.9 (33)';
## Task Generate a SQL query to answer the following question: `What venue features an away team score of 4.9 (33)?` ### 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 venue features an away team score of 4.9 (33)?`: ```sql
SELECT "home_team_score" FROM "round_3" WHERE "away_team"='geelong';
## Task Generate a SQL query to answer the following question: `What was the home team's score when Geelong was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team's score when Geelong was the away team?`: ```sql
SELECT AVG("crowd") FROM "round_3" WHERE "away_team_score"='17.12 (114)';
## Task Generate a SQL query to answer the following question: `What was the average crowd size at a game when the away team scored 17.12 (114)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average crowd size at a game when the away team scored 17.12 (114)?`: ```sql
SELECT COUNT("1978_veteran_membership") FROM "composition" WHERE "late_1943">'78,000' AND "sept_1943">'60,000';
## Task Generate a SQL query to answer the following question: `What is the total number of the 1978 Veteran membership that has a late 1943 more than 78,000 and a september 1943 larger than 60,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "late_1941" text, "late_1942" real, "sept_1943" real, "late_1943" real, "late_1944" real, "1978_veteran_membership" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of the 1978 Veteran membership that has a late 1943 more than 78,000 and a september 1943 larger than 60,000?`: ```sql
SELECT MAX("late_1943") FROM "composition" WHERE "late_1941"='vojvodina' AND "1978_veteran_membership"<'40,000';
## Task Generate a SQL query to answer the following question: `What is the highest late 1943 number with a late 1941 of vojvodina and a 1978 membership less than 40,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "late_1941" text, "late_1942" real, "sept_1943" real, "late_1943" real, "late_1944" real, "1978_veteran_membership" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest late 1943 number with a late 1941 of vojvodina and a 1978 membership less than 40,000?`: ```sql
SELECT SUM("1978_veteran_membership") FROM "composition" WHERE "late_1941"='macedonia' AND "late_1943"<'10,000';
## Task Generate a SQL query to answer the following question: `What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "late_1941" text, "late_1942" real, "sept_1943" real, "late_1943" real, "late_1944" real, "1978_veteran_membership" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?`: ```sql
SELECT MIN("1978_veteran_membership") FROM "composition" WHERE "sept_1943"<'48,000' AND "late_1941"='vojvodina' AND "late_1942">'1,000';
## Task Generate a SQL query to answer the following question: `What is the lowest 1978 Veteran membership with less than 48,000 in sept. 1943, a late 1941 of vojvodina, and a late 1942 bigger than 1,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "late_1941" text, "late_1942" real, "sept_1943" real, "late_1943" real, "late_1944" real, "1978_veteran_membership" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest 1978 Veteran membership with less than 48,000 in sept. 1943, a late 1941 of vojvodina, and a late 1942 bigger than 1,000?`: ```sql
SELECT MAX("late_1943") FROM "composition" WHERE "late_1944">'22,000' AND "late_1942">'1,000' AND "late_1941"='slovenia' AND "sept_1943"<4000;
## Task Generate a SQL query to answer the following question: `What is the highest late 1943 with a late 1944 bigger than 22,000, a late 1942 bigger than 1,000, a late 1941 slovenia, and less than 4000 in september 1943?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "late_1941" text, "late_1942" real, "sept_1943" real, "late_1943" real, "late_1944" real, "1978_veteran_membership" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest late 1943 with a late 1944 bigger than 22,000, a late 1942 bigger than 1,000, a late 1941 slovenia, and less than 4000 in september 1943?`: ```sql
SELECT "opponent" FROM "uefa_club_competitions_record" WHERE "season"='2011/12';
## Task Generate a SQL query to answer the following question: `Which opponent has a Season of 2011/12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "uefa_club_competitions_record" ( "season" text, "competition" text, "round" text, "opponent" text, "result" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent has a Season of 2011/12?`: ```sql
SELECT "opponent" FROM "uefa_club_competitions_record" WHERE "season"='2010/11';
## Task Generate a SQL query to answer the following question: `Which opponent has a Season of 2010/11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "uefa_club_competitions_record" ( "season" text, "competition" text, "round" text, "opponent" text, "result" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent has a Season of 2010/11?`: ```sql
SELECT "competition" FROM "uefa_club_competitions_record" WHERE "season"='2010/11';
## Task Generate a SQL query to answer the following question: `Which competition has a Season of 2010/11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "uefa_club_competitions_record" ( "season" text, "competition" text, "round" text, "opponent" text, "result" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which competition has a Season of 2010/11?`: ```sql
SELECT "opponent" FROM "uefa_club_competitions_record" WHERE "result"='–';
## Task Generate a SQL query to answer the following question: `What Opponent has a Result of –?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "uefa_club_competitions_record" ( "season" text, "competition" text, "round" text, "opponent" text, "result" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `What Opponent has a Result of –?`: ```sql