output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "constructor" FROM "classification" WHERE "grid"<10 AND "laps">76 AND "driver"='juan manuel fangio';
## Task Generate a SQL query to answer the following question: `Who constructed juan manuel fangio's car with over 76 laps and a grid under 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Who constructed juan manuel fangio's car with over 76 laps and a grid under 10?`: ```sql
SELECT SUM("laps") FROM "race" WHERE "grid"<20 AND "driver"='johnny herbert';
## Task Generate a SQL query to answer the following question: `what is the sum of laps when grid is less than 20 and johnny herbert is driving?` ### 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 when grid is less than 20 and johnny herbert is driving?`: ```sql
SELECT "driver" FROM "race" WHERE "constructor"='ferrari' AND "time_retired"='+1:06.683';
## Task Generate a SQL query to answer the following question: `who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?` ### 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 `who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?`: ```sql
SELECT "driver" FROM "race" WHERE "grid"=11;
## Task Generate a SQL query to answer the following question: `who is the driver when grid is 11?` ### 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 `who is the driver when grid is 11?`: ```sql
SELECT "opponent" FROM "senior_tries" WHERE "result"='30-12';
## Task Generate a SQL query to answer the following question: `Who was the opponent with a score of 30-12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_tries" ( "date" text, "venue" text, "opponent" text, "result" text, "tournament" text, "scored" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent with a score of 30-12?`: ```sql
SELECT "opponent" FROM "senior_tries" WHERE "result"='40-20';
## Task Generate a SQL query to answer the following question: `Who was the opponent with a score of 40-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_tries" ( "date" text, "venue" text, "opponent" text, "result" text, "tournament" text, "scored" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent with a score of 40-20?`: ```sql
SELECT "date" FROM "round_6" WHERE "away_team"='geelong';
## Task Generate a SQL query to answer the following question: `When did Geelong play as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When did Geelong play as the away team?`: ```sql
SELECT COUNT("capacity_mw") FROM "other_notable_onshore_wind_farms" WHERE "notes"='under construction';
## Task Generate a SQL query to answer the following question: `What is the total capacity (MW) of the farm that is noted as being under construction?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_notable_onshore_wind_farms" ( "wind_farm" text, "capacity_mw" real, "country" text, "state_province" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total capacity (MW) of the farm that is noted as being under construction?`: ```sql
SELECT "state_province" FROM "other_notable_onshore_wind_farms" WHERE "wind_farm"='tehachapi pass wind farm';
## Task Generate a SQL query to answer the following question: `Which state is Tehachapi Pass Wind Farm located in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_notable_onshore_wind_farms" ( "wind_farm" text, "capacity_mw" real, "country" text, "state_province" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which state is Tehachapi Pass Wind Farm located in?`: ```sql
SELECT "wind_farm" FROM "other_notable_onshore_wind_farms" WHERE "country"='usa' AND "notes"='multiple farms';
## Task Generate a SQL query to answer the following question: `Which wind farm is in the USA and is noted as having multiple farms?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_notable_onshore_wind_farms" ( "wind_farm" text, "capacity_mw" real, "country" text, "state_province" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which wind farm is in the USA and is noted as having multiple farms?`: ```sql
SELECT "notes" FROM "other_notable_onshore_wind_farms" WHERE "capacity_mw"=343;
## Task Generate a SQL query to answer the following question: `What special notes are included for the windfarm with a capacity (MW) of 343?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_notable_onshore_wind_farms" ( "wind_farm" text, "capacity_mw" real, "country" text, "state_province" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What special notes are included for the windfarm with a capacity (MW) of 343?`: ```sql
SELECT SUM("capacity_mw") FROM "other_notable_onshore_wind_farms" WHERE "state_province"='gansu';
## Task Generate a SQL query to answer the following question: `What is the total capacity (MW) of the windfarm located in the state/province of Gansu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_notable_onshore_wind_farms" ( "wind_farm" text, "capacity_mw" real, "country" text, "state_province" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total capacity (MW) of the windfarm located in the state/province of Gansu?`: ```sql
SELECT "home_team_score" FROM "round_20" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `In the game held at Arden Street Oval, what was the score of the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 the game held at Arden Street Oval, what was the score of the home team?`: ```sql
SELECT SUM("crowd") FROM "round_20" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `How many people in total have attended games at Kardinia Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 in total have attended games at Kardinia Park?`: ```sql
SELECT MIN("crowd") FROM "round_20" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `Which game at Arden Street Oval had the lowest attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 game at Arden Street Oval had the lowest attendance?`: ```sql
SELECT "venue" FROM "round_20" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `Where was the game against the away team Footscray held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game against the away team Footscray held?`: ```sql
SELECT AVG("points") FROM "final_table" WHERE "played">42;
## Task Generate a SQL query to answer the following question: `What is the average number of points for clubs that have played more than 42 times?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of points for clubs that have played more than 42 times?`: ```sql
SELECT COUNT("goals_against") FROM "final_table" WHERE "played">42;
## Task Generate a SQL query to answer the following question: `What is the total number of goals scored against clubs that have played more than 42 times?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of goals scored against clubs that have played more than 42 times?`: ```sql
SELECT "home_team_score" FROM "round_12" WHERE "away_team_score"='6.18 (54)';
## Task Generate a SQL query to answer the following question: `What team was playing at home when the away team scored 6.18 (54)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was playing at home when the away team scored 6.18 (54)`: ```sql
SELECT "away_team_score" FROM "round_12" WHERE "away_team"='collingwood';
## Task Generate a SQL query to answer the following question: `What was the score when Collingwood was playing away?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when Collingwood was playing away?`: ```sql
SELECT "home_team" FROM "round_12" WHERE "home_team_score"='18.12 (120)';
## Task Generate a SQL query to answer the following question: `What team had a score of 18.12 (120) when they played at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team had a score of 18.12 (120) when they played at home?`: ```sql
SELECT "date" FROM "round_12" WHERE "home_team"='geelong';
## Task Generate a SQL query to answer the following question: `On which date did Geelong play at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On which date did Geelong play at home?`: ```sql
SELECT "home_team" FROM "round_3" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `Which home team has a venue of windy hill?` ### 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 `Which home team has a venue of windy hill?`: ```sql
SELECT "venue" FROM "round_3" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `If essendon is the home team, what venue did they play at?` ### 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 `If essendon is the home team, what venue did they play at?`: ```sql
SELECT "away_team" FROM "round_3" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `When the home team is richmond, what was the away team playing?` ### 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 `When the home team is richmond, what was the away team playing?`: ```sql
SELECT "away_team_score" FROM "round_3" WHERE "crowd">'13,000' AND "home_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `If the home team playing is hawthorn and there are more than 13,000 people in the crowd, what did the away team score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_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 `If the home team playing is hawthorn and there are more than 13,000 people in the crowd, what did the away team score?`: ```sql
SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "position"='lock' AND "caps"=10;
## Task Generate a SQL query to answer the following question: `When was the lock with 10 caps born?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the lock with 10 caps born?`: ```sql
SELECT "laps" FROM "race" WHERE "driver"='jean-christophe boullion';
## Task Generate a SQL query to answer the following question: `What were the laps of driver Jean-Christophe Boullion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the laps of driver Jean-Christophe Boullion?`: ```sql
SELECT "playoffs" FROM "year_by_year" WHERE "year"='2007-08';
## Task Generate a SQL query to answer the following question: `What Playoffs were held during the years of 2007-08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "attendance_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What Playoffs were held during the years of 2007-08?`: ```sql
SELECT "date" FROM "round_5" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `On which date did Richmond play as an away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On which date did Richmond play as an away team?`: ```sql
SELECT "away_team" FROM "round_5" WHERE "home_team"='melbourne';
## Task Generate a SQL query to answer the following question: `What away team did Melbourne play as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What away team did Melbourne play as the home team?`: ```sql
SELECT "away_team" FROM "round_5" WHERE "away_team_score"='11.16 (82)';
## Task Generate a SQL query to answer the following question: `Which away team has an away team score of 11.16 (82)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team has an away team score of 11.16 (82)?`: ```sql
SELECT "away_team" FROM "round_5" WHERE "away_team_score"='13.25 (103)';
## Task Generate a SQL query to answer the following question: `Which away team has an away team score of 13.25 (103)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team has an away team score of 13.25 (103)?`: ```sql
SELECT "chapter" FROM "external_links" WHERE "founding_date">2012;
## Task Generate a SQL query to answer the following question: `Which chapter was founded later than 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "chapter" text, "university" text, "city" text, "state" text, "conference" text, "founding_date" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `Which chapter was founded later than 2012?`: ```sql
SELECT "chapter" FROM "external_links" WHERE "city"='lubbock';
## Task Generate a SQL query to answer the following question: `What is the chapter in Lubbock?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "chapter" text, "university" text, "city" text, "state" text, "conference" text, "founding_date" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the chapter in Lubbock?`: ```sql
SELECT "university" FROM "member_universities" WHERE "year_of_foundation"<1908 AND "university_status"<1988;
## Task Generate a SQL query to answer the following question: `Which university has a Year of Foundation before 1908, and a University Status before 1988?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_universities" ( "university" text, "location" text, "year_of_foundation" real, "university_status" real, "the_world_university_rankings_2012_13" text, "academic_ranking_of_world_universities_2012" text, "qs_world_university_rankings_2012" real ); ### SQL Given the database schema, here is the SQL query that answers `Which university has a Year of Foundation before 1908, and a University Status before 1988?`: ```sql
SELECT MAX("interview") FROM "semifinal_scores" WHERE "swimsuit"=8.857 AND "average">9.097;
## Task Generate a SQL query to answer the following question: `What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_scores" ( "state" text, "swimsuit" real, "evening_gown" real, "interview" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?`: ```sql
SELECT "year" FROM "pga_tour_career_summary" WHERE "top_25"=0 AND "earnings">0;
## Task Generate a SQL query to answer the following question: `What year has a Top 25 of 0, and a Earnings ($) larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_career_summary" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What year has a Top 25 of 0, and a Earnings ($) larger than 0?`: ```sql
SELECT MAX("top_25") FROM "pga_tour_career_summary" WHERE "money_list_rank"='232' AND "cuts_made"<2;
## Task Generate a SQL query to answer the following question: `What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_career_summary" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2?`: ```sql
SELECT MIN("earnings") FROM "pga_tour_career_summary" WHERE "money_list_rank"='6' AND "starts"<22;
## Task Generate a SQL query to answer the following question: `What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_career_summary" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?`: ```sql
SELECT MAX("cuts_made") FROM "pga_tour_career_summary" WHERE "top_10"<8 AND "wins">0;
## Task Generate a SQL query to answer the following question: `What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_career_summary" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0?`: ```sql
SELECT COUNT("starts") FROM "pga_tour_career_summary" WHERE "cuts_made"=2 AND "top_25">0 AND "earnings"<'338,067';
## Task Generate a SQL query to answer the following question: `How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_career_summary" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "res"='win' AND "record"='15-4';
## Task Generate a SQL query to answer the following question: `Which event was in round 1, resulted in a win, and a record of 15-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event was in round 1, resulted in a win, and a record of 15-4?`: ```sql
SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "record"='14-4';
## Task Generate a SQL query to answer the following question: `What is the result when the time was 5:00 and a record of 14-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result when the time was 5:00 and a record of 14-4?`: ```sql
SELECT "wins" FROM "performance_by_club" WHERE "club"='ayr united';
## Task Generate a SQL query to answer the following question: `How many wins did Ayr United have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); ### SQL Given the database schema, here is the SQL query that answers `How many wins did Ayr United have?`: ```sql
SELECT "last_final_lost" FROM "performance_by_club" WHERE "wins"='3' AND "last_win"='2001';
## Task Generate a SQL query to answer the following question: `When was the final loss of the club last won in 2001 and has a total of 3 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the final loss of the club last won in 2001 and has a total of 3 wins?`: ```sql
SELECT "last_win" FROM "performance_by_club" WHERE "last_final_lost"='2011';
## Task Generate a SQL query to answer the following question: `When was the last win for the club that had a final loss in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the last win for the club that had a final loss in 2011?`: ```sql
SELECT "wins" FROM "performance_by_club" WHERE "runners_up"='8';
## Task Generate a SQL query to answer the following question: `How many wins did the 8 time runner-up have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); ### SQL Given the database schema, here is the SQL query that answers `How many wins did the 8 time runner-up have?`: ```sql
SELECT "wins" FROM "performance_by_club" WHERE "last_win"='2000';
## Task Generate a SQL query to answer the following question: `How many wins did the club have with the last win in 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); ### SQL Given the database schema, here is the SQL query that answers `How many wins did the club have with the last win in 2000?`: ```sql
SELECT MAX("td_s") FROM "running_backs" WHERE "yards"='9' AND "car"<13;
## Task Generate a SQL query to answer the following question: `Who has the highest TDs, with yards of 9, and carries smaller than 13?` ### 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" text, "avg" text, "td_s" real, "long" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has the highest TDs, with yards of 9, and carries smaller than 13?`: ```sql
SELECT SUM("car") FROM "running_backs" WHERE "player"='jeremiah pope';
## Task Generate a SQL query to answer the following question: `What are the carries of the player Jeremiah Pope?` ### 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" text, "avg" text, "td_s" real, "long" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the carries of the player Jeremiah Pope?`: ```sql
SELECT MAX("crowd") FROM "round_8" WHERE "home_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What was the largest crowd that was in attendance for fitzroy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the largest crowd that was in attendance for fitzroy?`: ```sql
SELECT "player" FROM "other_picks" WHERE "team"='st. louis bombers' AND "position"='g';
## Task Generate a SQL query to answer the following question: `Who plays g position for the st. louis bombers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_picks" ( "round" text, "player" text, "position" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who plays g position for the st. louis bombers?`: ```sql
SELECT "player" FROM "other_picks" WHERE "position"='f' AND "college"='depauw';
## Task Generate a SQL query to answer the following question: `Who plays f position for depauw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_picks" ( "round" text, "player" text, "position" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who plays f position for depauw?`: ```sql
SELECT "position" FROM "other_picks" WHERE "college"='saint louis';
## Task Generate a SQL query to answer the following question: `What position does the saint louis player play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_picks" ( "round" text, "player" text, "position" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position does the saint louis player play?`: ```sql
SELECT "player" FROM "other_picks" WHERE "college"='sam houston state';
## Task Generate a SQL query to answer the following question: `Who plays for sam houston state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_picks" ( "round" text, "player" text, "position" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who plays for sam houston state?`: ```sql
SELECT COUNT("position") FROM "final_table" WHERE "points"='30-8' AND "goals_for">25;
## Task Generate a SQL query to answer the following question: `How many positions have Points of 30-8 and more than 25 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `How many positions have Points of 30-8 and more than 25 goals?`: ```sql
SELECT MIN("played") FROM "final_table" WHERE "club"='ue figueres' AND "goal_difference">16;
## Task Generate a SQL query to answer the following question: `What is the lowest play with ue figueres club and a goal difference more than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest play with ue figueres club and a goal difference more than 16?`: ```sql
SELECT COUNT("played") FROM "final_table" WHERE "wins"=8 AND "goals_against">58;
## Task Generate a SQL query to answer the following question: `How many played have 8 wins and more than 58 goals against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `How many played have 8 wins and more than 58 goals against?`: ```sql
SELECT "withdrawn" FROM "waterford_and_limerick_railway" WHERE "gsr_class"='296';
## Task Generate a SQL query to answer the following question: `What is withdrawn with a GSR Class of 296?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "waterford_and_limerick_railway" ( "year" text, "type" text, "nos" text, "gswr_class" real, "gswr_nos" text, "gsr_class" text, "inchicore_class" text, "withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `What is withdrawn with a GSR Class of 296?`: ```sql
SELECT "inchicore_class" FROM "waterford_and_limerick_railway" WHERE "gsr_class"='235';
## Task Generate a SQL query to answer the following question: `What Inchicore Class has a GSR Class of 235?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "waterford_and_limerick_railway" ( "year" text, "type" text, "nos" text, "gswr_class" real, "gswr_nos" text, "gsr_class" text, "inchicore_class" text, "withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `What Inchicore Class has a GSR Class of 235?`: ```sql
SELECT "inchicore_class" FROM "waterford_and_limerick_railway" WHERE "gswr_class"<268 AND "type"='0-4-2t';
## Task Generate a SQL query to answer the following question: `What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "waterford_and_limerick_railway" ( "year" text, "type" text, "nos" text, "gswr_class" real, "gswr_nos" text, "gsr_class" text, "inchicore_class" text, "withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?`: ```sql
SELECT "gswr_class" FROM "waterford_and_limerick_railway" WHERE "year"='1893';
## Task Generate a SQL query to answer the following question: `Which GSWR Class is from 1893?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "waterford_and_limerick_railway" ( "year" text, "type" text, "nos" text, "gswr_class" real, "gswr_nos" text, "gsr_class" text, "inchicore_class" text, "withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `Which GSWR Class is from 1893?`: ```sql
SELECT MIN("crowd") FROM "round_7" WHERE "home_team_score"='15.20 (110)' AND "home_team"='carlton';
## Task Generate a SQL query to answer the following question: `Which Crowd has a Home team score of 15.20 (110), and a Home team of carlton?` ### 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 `Which Crowd has a Home team score of 15.20 (110), and a Home team of carlton?`: ```sql
SELECT "home_team_score" FROM "round_7" WHERE "away_team_score"='20.11 (131)';
## Task Generate a SQL query to answer the following question: `Which Home team score has an Away team score of 20.11 (131)?` ### 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 `Which Home team score has an Away team score of 20.11 (131)?`: ```sql
SELECT COUNT("crowd") FROM "round_7" WHERE "away_team_score"='20.11 (131)';
## Task Generate a SQL query to answer the following question: `Which number of Crowd has an Away team score of 20.11 (131)?` ### 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 `Which number of Crowd has an Away team score of 20.11 (131)?`: ```sql
SELECT "viewers_in_millions" FROM "serial_details_by_episode" WHERE "run_time"='24:57';
## Task Generate a SQL query to answer the following question: `On the episode that had a run time of 24:57, how many million viewers were there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `On the episode that had a run time of 24:57, how many million viewers were there?`: ```sql
SELECT "year" FROM "hazleton_mountaineers_epbl" WHERE "record"='4-21';
## Task Generate a SQL query to answer the following question: `What year had a record of 4-21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hazleton_mountaineers_epbl" ( "year" text, "league" text, "record" text, "reg_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had a record of 4-21?`: ```sql
SELECT "reg_season" FROM "hazleton_mountaineers_epbl" WHERE "record"='16-12';
## Task Generate a SQL query to answer the following question: `What regular season had a record of 16-12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hazleton_mountaineers_epbl" ( "year" text, "league" text, "record" text, "reg_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `What regular season had a record of 16-12?`: ```sql
SELECT "reg_season" FROM "hazleton_mountaineers_epbl" WHERE "record"='20-10';
## Task Generate a SQL query to answer the following question: `What is the regular season info that had a record of 20-10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hazleton_mountaineers_epbl" ( "year" text, "league" text, "record" text, "reg_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the regular season info that had a record of 20-10?`: ```sql
SELECT "1st_leg" FROM "qualifying_round" WHERE "team_num1"='asfa rabat';
## Task Generate a SQL query to answer the following question: `Tell me the 1st leg for asfa rabat` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the 1st leg for asfa rabat`: ```sql
SELECT "2nd_leg" FROM "qualifying_round" WHERE "team_num1"='alemannia aachen';
## Task Generate a SQL query to answer the following question: `Tell me the 2nd leg for alemannia aachen` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the 2nd leg for alemannia aachen`: ```sql
SELECT "1st_leg" FROM "qualifying_round" WHERE "team_num2"='antwerp bc';
## Task Generate a SQL query to answer the following question: `Tell me the 1st leg for antwerp bc` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the 1st leg for antwerp bc`: ```sql
SELECT "team_num2" FROM "qualifying_round" WHERE "team_num1"='handelsministerium vienna';
## Task Generate a SQL query to answer the following question: `Tell me the team 2 for handelsministerium vienna` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the team 2 for handelsministerium vienna`: ```sql
SELECT "date" FROM "round_20" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `On what date did the away team Melbourne play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 did the away team Melbourne play?`: ```sql
SELECT "home_team" FROM "round_20" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What home team played the away team South Melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team played the away team South Melbourne?`: ```sql
SELECT "away_team" FROM "round_20" WHERE "home_team_score"='11.16 (82)';
## Task Generate a SQL query to answer the following question: `What is the name of the away team that played a home team who scored 11.16 (82)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 played a home team who scored 11.16 (82)?`: ```sql
SELECT "away_team" FROM "round_20" WHERE "away_team_score"='15.9 (99)';
## Task Generate a SQL query to answer the following question: `What is the name of the away team that scored 15.9 (99)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 scored 15.9 (99)?`: ```sql
SELECT MAX("area_sq_mi") FROM "counties" WHERE "county"='greenville county';
## Task Generate a SQL query to answer the following question: `Which is the largest area in Greenville County, by square mile?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "counties" ( "county" text, "year_founded" text, "county_seat" text, "2010_census_population" real, "july_1_2012_population_estimate" real, "area_sq_mi" real, "land_area_sq_mi" real ); ### SQL Given the database schema, here is the SQL query that answers `Which is the largest area in Greenville County, by square mile?`: ```sql
SELECT SUM("2010_census_population") FROM "counties" WHERE "county"='oconee county' AND "area_sq_mi"<674;
## Task Generate a SQL query to answer the following question: `Which is the total number in the 2010 Census in Oconee County where the area in square miles was less than 674?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "counties" ( "county" text, "year_founded" text, "county_seat" text, "2010_census_population" real, "july_1_2012_population_estimate" real, "area_sq_mi" real, "land_area_sq_mi" real ); ### SQL Given the database schema, here is the SQL query that answers `Which is the total number in the 2010 Census in Oconee County where the area in square miles was less than 674?`: ```sql
SELECT SUM("area_sq_mi") FROM "counties" WHERE "year_founded"='1785' AND "county_seat"='spartanburg' AND "land_area_sq_mi">811;
## Task Generate a SQL query to answer the following question: `What is the total number of areas by square mile where the founding year was 1785, the county seat was in Spartanburg, and the land area by square mile was more than 811?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "counties" ( "county" text, "year_founded" text, "county_seat" text, "2010_census_population" real, "july_1_2012_population_estimate" real, "area_sq_mi" real, "land_area_sq_mi" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of areas by square mile where the founding year was 1785, the county seat was in Spartanburg, and the land area by square mile was more than 811?`: ```sql
SELECT "particle" FROM "hyperons" WHERE "rest_mass_me_v_c_2"='1192.642(24)';
## Task Generate a SQL query to answer the following question: `Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hyperons" ( "particle" text, "symbol" text, "makeup" text, "rest_mass_me_v_c_2" text, "isospin_i" text, "spin_parity_j_p" text, "commonly_decays_to" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?`: ```sql
SELECT "particle" FROM "hyperons" WHERE "isospin_i"='1' AND "commonly_decays_to"='p + + π 0 or n 0 + π +';
## Task Generate a SQL query to answer the following question: `Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hyperons" ( "particle" text, "symbol" text, "makeup" text, "rest_mass_me_v_c_2" text, "isospin_i" text, "spin_parity_j_p" text, "commonly_decays_to" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?`: ```sql
SELECT "rest_mass_me_v_c_2" FROM "hyperons" WHERE "makeup"='u s s' AND "spin_parity_j_p"='3⁄2 +';
## Task Generate a SQL query to answer the following question: `When the Makeup is u s s and the Spin (Parity) J P of 3⁄2 +, what is the Rest mass MeV/C2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hyperons" ( "particle" text, "symbol" text, "makeup" text, "rest_mass_me_v_c_2" text, "isospin_i" text, "spin_parity_j_p" text, "commonly_decays_to" text ); ### SQL Given the database schema, here is the SQL query that answers `When the Makeup is u s s and the Spin (Parity) J P of 3⁄2 +, what is the Rest mass MeV/C2?`: ```sql
SELECT "particle" FROM "hyperons" WHERE "isospin_i"='1⁄2' AND "symbol"='ξ ∗0 (1530)';
## Task Generate a SQL query to answer the following question: `Which Particle has an Isospin I of 1⁄2, and a Symbol of ξ ∗0 (1530)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hyperons" ( "particle" text, "symbol" text, "makeup" text, "rest_mass_me_v_c_2" text, "isospin_i" text, "spin_parity_j_p" text, "commonly_decays_to" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Particle has an Isospin I of 1⁄2, and a Symbol of ξ ∗0 (1530)?`: ```sql
SELECT "particle" FROM "hyperons" WHERE "makeup"='d s s' AND "spin_parity_j_p"='3⁄2 +';
## Task Generate a SQL query to answer the following question: `Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hyperons" ( "particle" text, "symbol" text, "makeup" text, "rest_mass_me_v_c_2" text, "isospin_i" text, "spin_parity_j_p" text, "commonly_decays_to" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?`: ```sql
SELECT "particle" FROM "hyperons" WHERE "rest_mass_me_v_c_2"='1383.7±1.0';
## Task Generate a SQL query to answer the following question: `Which Particle has a Rest mass MeV/c 2 of 1383.7±1.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hyperons" ( "particle" text, "symbol" text, "makeup" text, "rest_mass_me_v_c_2" text, "isospin_i" text, "spin_parity_j_p" text, "commonly_decays_to" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Particle has a Rest mass MeV/c 2 of 1383.7±1.0?`: ```sql
SELECT "title" FROM "grammy_awards_and_nominations" WHERE "year"=2003 AND "genre"='rap';
## Task Generate a SQL query to answer the following question: `What was the title of Ashanti's 2003 rap song?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammy_awards_and_nominations" ( "year" real, "category" text, "genre" text, "title" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title of Ashanti's 2003 rap song?`: ```sql
SELECT MAX("tries") FROM "1999_squad_statistics" WHERE "player"='paul sykes' AND "points">0;
## Task Generate a SQL query to answer the following question: `How many tries did the player Paul Sykes take when he earned 0 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1999_squad_statistics" ( "player" text, "position" text, "tries" real, "goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many tries did the player Paul Sykes take when he earned 0 points?`: ```sql
SELECT "position" FROM "1999_squad_statistics" WHERE "goals"=0 AND "points"=28 AND "player"='mike forshaw';
## Task Generate a SQL query to answer the following question: `Mike Forshaw had 0 goals and 28 points. What is his position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1999_squad_statistics" ( "player" text, "position" text, "tries" real, "goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Mike Forshaw had 0 goals and 28 points. What is his position?`: ```sql
SELECT SUM("crowd") FROM "round_3" WHERE "venue"='brunswick street oval';
## Task Generate a SQL query to answer the following question: `How big is the Venue of Brunswick Street Oval?` ### 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 `How big is the Venue of Brunswick Street Oval?`: ```sql
SELECT "away_team_score" FROM "round_3" WHERE "away_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What is the Away Team score of North Melbourne?` ### 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 Away Team score of North Melbourne?`: ```sql
SELECT "killed" FROM "head_quarters_and_support_regiments" WHERE "unit"='personal staff';
## Task Generate a SQL query to answer the following question: `What was the number of Personal Staff Units Killed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_quarters_and_support_regiments" ( "unit" text, "complement" text, "killed" text, "wounded" text, "missing" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the number of Personal Staff Units Killed?`: ```sql
SELECT "complement" FROM "head_quarters_and_support_regiments" WHERE "killed"='0 off 0 men' AND "wounded"='0 off 0 men' AND "unit"='artillery corps';
## Task Generate a SQL query to answer the following question: `What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_quarters_and_support_regiments" ( "unit" text, "complement" text, "killed" text, "wounded" text, "missing" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?`: ```sql
SELECT "wounded" FROM "head_quarters_and_support_regiments" WHERE "complement"='83 off 9 men';
## Task Generate a SQL query to answer the following question: `How many were Wounded while in a Unit with a Complement of 83 off 9 Men?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_quarters_and_support_regiments" ( "unit" text, "complement" text, "killed" text, "wounded" text, "missing" text ); ### SQL Given the database schema, here is the SQL query that answers `How many were Wounded while in a Unit with a Complement of 83 off 9 Men?`: ```sql
SELECT "missing" FROM "head_quarters_and_support_regiments" WHERE "killed"='0 off 0 men' AND "wounded"='0 off 0 men' AND "unit"='royal waggon train';
## Task Generate a SQL query to answer the following question: `How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_quarters_and_support_regiments" ( "unit" text, "complement" text, "killed" text, "wounded" text, "missing" text ); ### SQL Given the database schema, here is the SQL query that answers `How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?`: ```sql
SELECT "wounded" FROM "head_quarters_and_support_regiments" WHERE "killed"='0 off 0 men' AND "unit"='artillery corps';
## Task Generate a SQL query to answer the following question: `How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_quarters_and_support_regiments" ( "unit" text, "complement" text, "killed" text, "wounded" text, "missing" text ); ### SQL Given the database schema, here is the SQL query that answers `How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?`: ```sql
SELECT "surface" FROM "singles_27_15_12" WHERE "opponent"='yevgeny kafelnikov';
## Task Generate a SQL query to answer the following question: `What suface during the game that had Yevgeny Kafelnikov as an opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_27_15_12" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What suface during the game that had Yevgeny Kafelnikov as an opponent?`: ```sql
SELECT "home_team_score" FROM "round_9" WHERE "away_team_score"='12.10 (82)';
## Task Generate a SQL query to answer the following question: `What is the Home team's score when the Away team's score is 12.10 (82)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Home team's score when the Away team's score is 12.10 (82)?`: ```sql
SELECT MIN("week") FROM "season_schedule" WHERE "opponent"='san jose sabercats';
## Task Generate a SQL query to answer the following question: `What was the earliest week that the Storm played the San Jose Sabercats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "home_away" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest week that the Storm played the San Jose Sabercats?`: ```sql