output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "date" FROM "sunderland_a_f_c_goals" WHERE "score"='4-3';
## Task Generate a SQL query to answer the following question: `What is the date of the game with a score of 4-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sunderland_a_f_c_goals" ( "date" text, "venue" text, "opposition" text, "score" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game with a score of 4-3?`: ```sql
SELECT "score" FROM "sunderland_a_f_c_goals" WHERE "date"='8 sep 1990';
## Task Generate a SQL query to answer the following question: `What is the score of the game on 8 Sep 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sunderland_a_f_c_goals" ( "date" text, "venue" text, "opposition" text, "score" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the game on 8 Sep 1990?`: ```sql
SELECT "opposition" FROM "sunderland_a_f_c_goals" WHERE "competition"='division 1' AND "venue"='stamford bridge';
## Task Generate a SQL query to answer the following question: `Who is the opposition on the division 1 game at Stamford Bridge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sunderland_a_f_c_goals" ( "date" text, "venue" text, "opposition" text, "score" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the opposition on the division 1 game at Stamford Bridge?`: ```sql
SELECT "rank" FROM "medals_table" WHERE "total"<9 AND "bronze"<2 AND "nation"='france';
## Task Generate a SQL query to answer the following question: `Which rank has a total less than 9, less than 2 bronze, and from France?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which rank has a total less than 9, less than 2 bronze, and from France?`: ```sql
SELECT "rank" FROM "medals_table" WHERE "silver">1 AND "gold">1 AND "bronze">4;
## Task Generate a SQL query to answer the following question: `Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?`: ```sql
SELECT MAX("silver") FROM "medals_table" WHERE "total"<3 AND "bronze"=1 AND "gold">0;
## Task Generate a SQL query to answer the following question: `How many silver have a Total smaller than 3, a Bronze of 1, and a Gold larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many silver have a Total smaller than 3, a Bronze of 1, and a Gold larger than 0?`: ```sql
SELECT SUM("gold") FROM "medals_table" WHERE "nation"='new zealand' AND "total"<2;
## Task Generate a SQL query to answer the following question: `How many gold have a National of New Zealand with a total less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many gold have a National of New Zealand with a total less than 2?`: ```sql
SELECT "winner" FROM "winners_since_2000" WHERE "year"=2003;
## Task Generate a SQL query to answer the following question: `Who won in 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won in 2003?`: ```sql
SELECT AVG("year") FROM "winners_since_2000" WHERE "winner"='scatman';
## Task Generate a SQL query to answer the following question: `What is the average year for scatman winning?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average year for scatman winning?`: ```sql
SELECT "trainer" FROM "winners_since_2000" WHERE "time"='1:09.40';
## Task Generate a SQL query to answer the following question: `Who trained the horse with time of 1:09.40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who trained the horse with time of 1:09.40?`: ```sql
SELECT "venue" FROM "achievements" WHERE "tournament"='mediterranean games';
## Task Generate a SQL query to answer the following question: `Where was the mediterranean games held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the mediterranean games held?`: ```sql
SELECT MAX("year") FROM "achievements" WHERE "venue"='turin, italy';
## Task Generate a SQL query to answer the following question: `When was the last time a venue was held in turin, italy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the last time a venue was held in turin, italy?`: ```sql
SELECT "venue" FROM "achievements" WHERE "tournament"='universiade' AND "year"=1959;
## Task Generate a SQL query to answer the following question: `Where was the universiade held in 1959?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the universiade held in 1959?`: ```sql
SELECT COUNT("year") FROM "achievements" WHERE "venue"='stockholm, sweden';
## Task Generate a SQL query to answer the following question: `How many year was the venue in stockholm, sweden used?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `How many year was the venue in stockholm, sweden used?`: ```sql
SELECT "report" FROM "by_year" WHERE "location"='tripoli' AND "year">1928 AND "driver"='baconin borzacchini';
## Task Generate a SQL query to answer the following question: `What is a report for a race with Baconin Borzacchini in Tripoli in a year after 1928?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_year" ( "year" real, "driver" text, "constructor" text, "location" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is a report for a race with Baconin Borzacchini in Tripoli in a year after 1928?`: ```sql
SELECT "constructor" FROM "by_year" WHERE "year"<1937 AND "driver"='achille varzi';
## Task Generate a SQL query to answer the following question: `What was the constructor of the car that Achille Varzi drove before 1937?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_year" ( "year" real, "driver" text, "constructor" text, "location" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the constructor of the car that Achille Varzi drove before 1937?`: ```sql
SELECT "constructor" FROM "by_year" WHERE "year">1935 AND "driver"='hermann lang';
## Task Generate a SQL query to answer the following question: `What was the constructor of the car that Hermann Lang drove after 1935?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_year" ( "year" real, "driver" text, "constructor" text, "location" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the constructor of the car that Hermann Lang drove after 1935?`: ```sql
SELECT "works_number" FROM "locomotives" WHERE "date"='1916' AND "number"='153';
## Task Generate a SQL query to answer the following question: `What is the Works Number that has a Number of 153 in 1916?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Works Number that has a Number of 153 in 1916?`: ```sql
SELECT "date" FROM "locomotives" WHERE "works_number"='7';
## Task Generate a SQL query to answer the following question: `On what Date was the Works Number 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); ### SQL Given the database schema, here is the SQL query that answers `On what Date was the Works Number 7?`: ```sql
SELECT "builder" FROM "locomotives" WHERE "works_number"='16272';
## Task Generate a SQL query to answer the following question: `Which Builder has a Works Number of 16272?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Builder has a Works Number of 16272?`: ```sql
SELECT "date" FROM "locomotives" WHERE "works_number"='12';
## Task Generate a SQL query to answer the following question: `On what Date was the Works Number 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); ### SQL Given the database schema, here is the SQL query that answers `On what Date was the Works Number 12?`: ```sql
SELECT "venue" FROM "round_3" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `Where did South 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_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 `Where did South Melbourne play as the home team?`: ```sql
SELECT COUNT("crowd") FROM "round_3" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `What was the attendance when St Kilda played as the home 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 attendance when St Kilda played as the home team?`: ```sql
SELECT "driver" FROM "race" WHERE "grid"='18';
## Task Generate a SQL query to answer the following question: `Which driver had a grid number of 18?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `Which driver had a grid number of 18?`: ```sql
SELECT "constructor" FROM "race" WHERE "driver"='shinji nakano';
## Task Generate a SQL query to answer the following question: `Which constructor had Shinji Nakano as a driver?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `Which constructor had Shinji Nakano as a driver?`: ```sql
SELECT "crowd" FROM "round_5" WHERE "home_team_score"='7.11 (53)';
## Task Generate a SQL query to answer the following question: `How many people were in attendance when the home team scored 7.11 (53)?` ### 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 `How many people were in attendance when the home team scored 7.11 (53)?`: ```sql
SELECT "away_team" FROM "round_5" WHERE "away_team_score"='11.10 (76)';
## Task Generate a SQL query to answer the following question: `Which away team scored 11.10 (76)?` ### 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 scored 11.10 (76)?`: ```sql
SELECT "home_team_score" FROM "round_5" WHERE "venue"='glenferrie oval';
## Task Generate a SQL query to answer the following question: `What was the 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_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 was the home team score at Glenferrie Oval?`: ```sql
SELECT "date" FROM "walking" WHERE "data"='19:29';
## Task Generate a SQL query to answer the following question: `What date has a Data of 19:29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "walking" ( "event" text, "data" text, "athlete" text, "date" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What date has a Data of 19:29?`: ```sql
SELECT "athlete" FROM "walking" WHERE "event"='35 km';
## Task Generate a SQL query to answer the following question: `Which athlete has a 35 km event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "walking" ( "event" text, "data" text, "athlete" text, "date" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `Which athlete has a 35 km event?`: ```sql
SELECT "nation" FROM "general_classification" WHERE "team"='discovery channel';
## Task Generate a SQL query to answer the following question: `What nation is the cyclist from team discovery channel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_classification" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_pro_tour_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What nation is the cyclist from team discovery channel?`: ```sql
SELECT "nation" FROM "general_classification" WHERE "uci_pro_tour_points"=25;
## Task Generate a SQL query to answer the following question: `What nation is the cyclist hat has a UCI ProTour Points of 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_classification" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_pro_tour_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What nation is the cyclist hat has a UCI ProTour Points of 25?`: ```sql
SELECT "date" FROM "round_6" WHERE "venue"='punt road oval';
## Task Generate a SQL query to answer the following question: `What day did the VFL play Punt Road 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 day did the VFL play Punt Road Oval?`: ```sql
SELECT "home_team_score" FROM "round_6" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `What was the home teams score at Western 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 home teams score at Western Oval?`: ```sql
SELECT COUNT("1st_prize") FROM "tournament_results" WHERE "score"='207 (-9)' AND "purse">'800,000';
## Task Generate a SQL query to answer the following question: `What is the first prize amount of the person who has a score of 207 (-9) and a purse amount of more than 800,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the first prize amount of the person who has a score of 207 (-9) and a purse amount of more than 800,000?`: ```sql
SELECT "isbn" FROM "collected_editions" WHERE "first_edition"='may 2011';
## Task Generate a SQL query to answer the following question: `What is the ISBN of the book with a first edition in May 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "collected_editions" ( "title" text, "pages" text, "first_edition" text, "second_edition" text, "isbn" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ISBN of the book with a first edition in May 2011?`: ```sql
SELECT "first_edition" FROM "collected_editions" WHERE "isbn"='978-0785166252';
## Task Generate a SQL query to answer the following question: `Which first edition has an ISBN of 978-0785166252?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "collected_editions" ( "title" text, "pages" text, "first_edition" text, "second_edition" text, "isbn" text ); ### SQL Given the database schema, here is the SQL query that answers `Which first edition has an ISBN of 978-0785166252?`: ```sql
SELECT "first_edition" FROM "collected_editions" WHERE "pages"='264' AND "isbn"='978-0785111832';
## Task Generate a SQL query to answer the following question: `Which first edition has 264 pages and the ISBN of 978-0785111832?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "collected_editions" ( "title" text, "pages" text, "first_edition" text, "second_edition" text, "isbn" text ); ### SQL Given the database schema, here is the SQL query that answers `Which first edition has 264 pages and the ISBN of 978-0785111832?`: ```sql
SELECT "crowd" FROM "round_6" WHERE "home_team_score"='10.17 (77)';
## Task Generate a SQL query to answer the following question: `How many people were in the crowd when the home team scored 10.17 (77)?` ### 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 `How many people were in the crowd when the home team scored 10.17 (77)?`: ```sql
SELECT "home_team" FROM "round_6" WHERE "home_team_score"='6.9 (45)';
## Task Generate a SQL query to answer the following question: `What home team had a score of 6.9 (45)` ### 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 home team had a score of 6.9 (45)`: ```sql
SELECT SUM("crowd") FROM "round_6" WHERE "home_team"='collingwood';
## Task Generate a SQL query to answer the following question: `How many people were in the crowd at collingwood's home game?` ### 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 `How many people were in the crowd at collingwood's home game?`: ```sql
SELECT "date" FROM "round_6" WHERE "away_team_score"='11.10 (76)';
## Task Generate a SQL query to answer the following question: `On what date did the away team have a score of 11.10 (76)?` ### 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 `On what date did the away team have a score of 11.10 (76)?`: ```sql
SELECT "away_team" FROM "round_13" WHERE "away_team_score"='8.8 (56)';
## Task Generate a SQL query to answer the following question: `Which away team played against the home team that scored 8.8 (56)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team played against the home team that scored 8.8 (56)?`: ```sql
SELECT "away_team_score" FROM "round_13" WHERE "home_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What did the away team score when playing against fitzroy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the away team score when playing against fitzroy?`: ```sql
SELECT "venue" FROM "round_13" WHERE "away_team_score"='12.13 (85)';
## Task Generate a SQL query to answer the following question: `Where did the away team play when they scored 12.13 (85)?` ### 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 did the away team play when they scored 12.13 (85)?`: ```sql
SELECT "serial_no" FROM "production_overview" WHERE "colour"='black' AND "pilot_car_no">2 AND "engine_no"=1008;
## Task Generate a SQL query to answer the following question: `What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "production_overview" ( "pilot_car_no" real, "colour" text, "serial_no" text, "engine_no" real, "registration_no" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008?`: ```sql
SELECT "away_team" FROM "round_12" WHERE "away_team_score"='14.11 (95)';
## Task Generate a SQL query to answer the following question: `When the Away team had a score of 14.11 (95), what was the team name?` ### 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 `When the Away team had a score of 14.11 (95), what was the team name?`: ```sql
SELECT MIN("laps") FROM "classification" WHERE "time_retired"='accident';
## Task Generate a SQL query to answer the following question: `What is the low lap total that has a Time or Retired of accident?` ### 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 `What is the low lap total that has a Time or Retired of accident?`: ```sql
SELECT MIN("crowd") FROM "round_16" WHERE "away_team_score"='10.18 (78)';
## Task Generate a SQL query to answer the following question: `What is the smallest crowd when the away team scored 10.18 (78)?` ### 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 smallest crowd when the away team scored 10.18 (78)?`: ```sql
SELECT "date" FROM "round_16" WHERE "crowd">'16,000' AND "away_team_score"='8.11 (59)';
## Task Generate a SQL query to answer the following question: `What date was the crowd larger than 16,000 people and the away team scored 8.11 (59)?` ### 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 date was the crowd larger than 16,000 people and the away team scored 8.11 (59)?`: ```sql
SELECT "venue" FROM "round_16" WHERE "home_team_score"='18.9 (117)';
## Task Generate a SQL query to answer the following question: `What was the venue when the Home team scored 18.9 (117)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the venue when the Home team scored 18.9 (117)?`: ```sql
SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "position"='fly-half';
## Task Generate a SQL query to answer the following question: `Which player was a fly-half?` ### 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 `Which player was a fly-half?`: ```sql
SELECT AVG("caps") FROM "2007_rugby_world_cup_squads" WHERE "player"='ryota asano';
## Task Generate a SQL query to answer the following question: `What is the mean number of caps for Ryota Asano?` ### 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 `What is the mean number of caps for Ryota Asano?`: ```sql
SELECT AVG("caps") FROM "2007_rugby_world_cup_squads" WHERE "player"='ryota asano';
## Task Generate a SQL query to answer the following question: `What is the mean number of caps for Ryota Asano?` ### 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 `What is the mean number of caps for Ryota Asano?`: ```sql
SELECT "player" FROM "j" WHERE "position"='forward' AND "school_club_team"='grambling state';
## Task Generate a SQL query to answer the following question: `Who is the forward from Grambling State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "j" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the forward from Grambling State?`: ```sql
SELECT "nationality" FROM "j" WHERE "position"='guard' AND "school_club_team"='utah';
## Task Generate a SQL query to answer the following question: `What is the nationality of the guard who plays at Utah?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "j" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of the guard who plays at Utah?`: ```sql
SELECT "position" FROM "j" WHERE "school_club_team"='tampa';
## Task Generate a SQL query to answer the following question: `What is the position of the player from Tampa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "j" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the player from Tampa?`: ```sql
SELECT "nationality" FROM "j" WHERE "years_for_jazz"='1974-79';
## Task Generate a SQL query to answer the following question: `What is the nationality of the player on the Jazz from 1974-79?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "j" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of the player on the Jazz from 1974-79?`: ```sql
SELECT "player" FROM "j" WHERE "school_club_team"='tampa';
## Task Generate a SQL query to answer the following question: `Who is the player who went to school at Tampa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "j" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player who went to school at Tampa?`: ```sql
SELECT "nationality" FROM "j" WHERE "years_for_jazz"='1974-79';
## Task Generate a SQL query to answer the following question: `What is the nationality of the player on the Jazz from 1974-79?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "j" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of the player on the Jazz from 1974-79?`: ```sql
SELECT SUM("crowd") FROM "round_9" WHERE "away_team_score"='9.9 (63)';
## Task Generate a SQL query to answer the following question: `What was the total size of the crowd when an away team had a score of 9.9 (63)?` ### 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 total size of the crowd when an away team had a score of 9.9 (63)?`: ```sql
SELECT "away_team" FROM "round_9" WHERE "away_team_score"='4.13 (37)';
## Task Generate a SQL query to answer the following question: `What was the away team that had a score of 4.13 (37)?` ### 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 that had a score of 4.13 (37)?`: ```sql
SELECT "away_team_score" FROM "round_9" WHERE "venue"='glenferrie oval';
## Task Generate a SQL query to answer the following question: `What was the score of the away team at the the glenferrie oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the away team at the the glenferrie oval?`: ```sql
SELECT "institution" FROM "inactive_chapters" WHERE "location"='athens, ga, us';
## Task Generate a SQL query to answer the following question: `What institution is located in athens, ga, us?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inactive_chapters" ( "name" text, "founded" real, "institution" text, "location" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What institution is located in athens, ga, us?`: ```sql
SELECT "status" FROM "inactive_chapters" WHERE "founded"=1996;
## Task Generate a SQL query to answer the following question: `What is the status of the institution that was founded in 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inactive_chapters" ( "name" text, "founded" real, "institution" text, "location" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of the institution that was founded in 1996?`: ```sql
SELECT "venue" FROM "highest_individual_score" WHERE "runs"='332';
## Task Generate a SQL query to answer the following question: `During runs 332, what was the venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_individual_score" ( "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); ### SQL Given the database schema, here is the SQL query that answers `During runs 332, what was the venue?`: ```sql
SELECT "player" FROM "highest_individual_score" WHERE "runs"='270';
## Task Generate a SQL query to answer the following question: `Which player's runs are 270?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_individual_score" ( "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player's runs are 270?`: ```sql
SELECT "venue" FROM "highest_individual_score" WHERE "season"='1935';
## Task Generate a SQL query to answer the following question: `During season 1935, what was the venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_individual_score" ( "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); ### SQL Given the database schema, here is the SQL query that answers `During season 1935, what was the venue?`: ```sql
SELECT "venue" FROM "highest_individual_score" WHERE "player"='les ames';
## Task Generate a SQL query to answer the following question: `For player Les Ames, what was the venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_individual_score" ( "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); ### SQL Given the database schema, here is the SQL query that answers `For player Les Ames, what was the venue?`: ```sql
SELECT "date" FROM "season_review" WHERE "grand_prix"='austrian grand prix';
## Task Generate a SQL query to answer the following question: `When was the Austrian Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the Austrian Grand Prix?`: ```sql
SELECT "points" FROM "melodi_grand_prix_1999_27_february_1999" WHERE "draw">3 AND "place"=3;
## Task Generate a SQL query to answer the following question: `How many points has a draw greater than 3 and 3rd place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "melodi_grand_prix_1999_27_february_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points has a draw greater than 3 and 3rd place?`: ```sql
SELECT AVG("events") FROM "leaders" WHERE "player"='miller barber';
## Task Generate a SQL query to answer the following question: `Name the average events for miller barber` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average events for miller barber`: ```sql
SELECT MAX("wins") FROM "leaders" WHERE "earnings"='130,002';
## Task Generate a SQL query to answer the following question: `Name the most wins for earnings of 130,002` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most wins for earnings of 130,002`: ```sql
SELECT AVG("wins") FROM "leaders" WHERE "earnings">'120,367' AND "events"<13;
## Task Generate a SQL query to answer the following question: `Name the average wins for earnings more than 120,367 and events less than 13` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average wins for earnings more than 120,367 and events less than 13`: ```sql
SELECT AVG("rank") FROM "leaders" WHERE "earnings"<'231,008' AND "wins"<1;
## Task Generate a SQL query to answer the following question: `Name the average rank for earnings less than 231,008 and wins less than 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average rank for earnings less than 231,008 and wins less than 1`: ```sql
SELECT "year" FROM "releases" WHERE "label"='latenight weeknight' AND "release_title"='neverchanger';
## Task Generate a SQL query to answer the following question: `What year was Neverchanger with the label of Latenight weeknight?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "releases" ( "release_title" text, "released_as" text, "release_type" text, "label" text, "year" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was Neverchanger with the label of Latenight weeknight?`: ```sql
SELECT "year" FROM "releases" WHERE "release_type"='cd album' AND "released_as"='ethereal 77';
## Task Generate a SQL query to answer the following question: `What year was Ethereal 77, which has a CD album release type?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "releases" ( "release_title" text, "released_as" text, "release_type" text, "label" text, "year" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was Ethereal 77, which has a CD album release type?`: ```sql
SELECT SUM("platform") FROM "services" WHERE "frequency_per_hour"=4 AND "destination"='west croydon';
## Task Generate a SQL query to answer the following question: `what is the platform when the frequency (per hour) is 4 and the destination is west croydon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "services" ( "platform" real, "frequency_per_hour" real, "destination" text, "operator" text, "line" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the platform when the frequency (per hour) is 4 and the destination is west croydon?`: ```sql
SELECT MAX("platform") FROM "services" WHERE "frequency_per_hour"=4 AND "operator"='london overground' AND "destination"='west croydon';
## Task Generate a SQL query to answer the following question: `what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "services" ( "platform" real, "frequency_per_hour" real, "destination" text, "operator" text, "line" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon?`: ```sql
SELECT "team" FROM "qualifying_results" WHERE "qual_1"='1:17.481';
## Task Generate a SQL query to answer the following question: `What is the name of the team with a qual 1 time of 1:17.481?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the team with a qual 1 time of 1:17.481?`: ```sql
SELECT "qual_1" FROM "qualifying_results" WHERE "best"='1:18.067';
## Task Generate a SQL query to answer the following question: `What is the qual 1 for the best of 1:18.067?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the qual 1 for the best of 1:18.067?`: ```sql
SELECT "qual_1" FROM "qualifying_results" WHERE "qual_2"='no time' AND "best"='1:16.776';
## Task Generate a SQL query to answer the following question: `What is the qual 1 when the qual 2 has no time and the best is 1:16.776?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the qual 1 when the qual 2 has no time and the best is 1:16.776?`: ```sql
SELECT "name" FROM "qualifying_results" WHERE "team"='minardi team usa' AND "qual_1"='1:17.481';
## Task Generate a SQL query to answer the following question: `What person on team Minardi Team USA with a qual of 1:17.481?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What person on team Minardi Team USA with a qual of 1:17.481?`: ```sql
SELECT "name" FROM "qualifying_results" WHERE "qual_1"='1:16.850';
## Task Generate a SQL query to answer the following question: `What is the name of the person with a qual 1 time of 1:16.850?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the person with a qual 1 time of 1:16.850?`: ```sql
SELECT "qual_2" FROM "qualifying_results" WHERE "qual_1"='1:16.841';
## Task Generate a SQL query to answer the following question: `What is the qual 2 when the qual 1 is 1:16.841?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the qual 2 when the qual 1 is 1:16.841?`: ```sql
SELECT "monarch" FROM "1066_to_1135" WHERE "heir"='robert curthose' AND "reason"='father became king';
## Task Generate a SQL query to answer the following question: `Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1066_to_1135" ( "heir" text, "status" text, "relationship_to_monarch" text, "became_heir" text, "reason" text, "ceased_to_be_heir" text, "monarch" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king?`: ```sql
SELECT "monarch" FROM "1066_to_1135" WHERE "status"='succession unclear 1100-1103';
## Task Generate a SQL query to answer the following question: `Which Monarch has succession unclear 1100-1103 as his Status?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1066_to_1135" ( "heir" text, "status" text, "relationship_to_monarch" text, "became_heir" text, "reason" text, "ceased_to_be_heir" text, "monarch" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Monarch has succession unclear 1100-1103 as his Status?`: ```sql
SELECT "reason" FROM "1066_to_1135" WHERE "became_heir"='1103';
## Task Generate a SQL query to answer the following question: `Which Reason is given when 1103 is the date for Became heir?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1066_to_1135" ( "heir" text, "status" text, "relationship_to_monarch" text, "became_heir" text, "reason" text, "ceased_to_be_heir" text, "monarch" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Reason is given when 1103 is the date for Became heir?`: ```sql
SELECT "status" FROM "1066_to_1135" WHERE "monarch"='henry i' AND "reason"='succession unclear 1100-1103';
## Task Generate a SQL query to answer the following question: `What is the Status when Henry I is the Monarch and the Reason is succession unclear 1100-1103?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1066_to_1135" ( "heir" text, "status" text, "relationship_to_monarch" text, "became_heir" text, "reason" text, "ceased_to_be_heir" text, "monarch" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Status when Henry I is the Monarch and the Reason is succession unclear 1100-1103?`: ```sql
SELECT "tyre" FROM "drivers_and_constructors" WHERE "entrant"='hb bewaking team ensign' AND "rounds"='13';
## Task Generate a SQL query to answer the following question: `Name the tyre for hb bewaking team ensign with rounds of 13` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the tyre for hb bewaking team ensign with rounds of 13`: ```sql
SELECT "rounds" FROM "drivers_and_constructors" WHERE "engine"='ford cosworth dfv 3.0 v8' AND "chassis"='751';
## Task Generate a SQL query to answer the following question: `Name the round for engine of ford cosworth dfv 3.0 v8 with chassis fo 751` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the round for engine of ford cosworth dfv 3.0 v8 with chassis fo 751`: ```sql
SELECT "chassis" FROM "drivers_and_constructors" WHERE "tyre"='g' AND "driver"='carlos reutemann';
## Task Generate a SQL query to answer the following question: `Name the chassis for tyre of g and carlos reutemann` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the chassis for tyre of g and carlos reutemann`: ```sql
SELECT "entrant" FROM "drivers_and_constructors" WHERE "chassis"='gh1';
## Task Generate a SQL query to answer the following question: `Name the entrant for chassis of gh1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the entrant for chassis of gh1`: ```sql
SELECT "rounds" FROM "drivers_and_constructors" WHERE "entrant"='stanley brm';
## Task Generate a SQL query to answer the following question: `Name the rounds for stanley brm` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the rounds for stanley brm`: ```sql
SELECT "tottenham_hotspur_career" FROM "key" WHERE "goals"='10' AND "nationality"='england' AND "position"='df' AND "club_apps"='118';
## Task Generate a SQL query to answer the following question: `What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "key" ( "nationality" text, "position" text, "tottenham_hotspur_career" text, "club_apps" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps?`: ```sql
SELECT "position" FROM "key" WHERE "nationality"='england' AND "goals"='62';
## Task Generate a SQL query to answer the following question: `What is the position of the player from England with 62 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "key" ( "nationality" text, "position" text, "tottenham_hotspur_career" text, "club_apps" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the player from England with 62 goals?`: ```sql
SELECT "goals" FROM "key" WHERE "nationality"='england' AND "position"='mf' AND "club_apps"='170';
## Task Generate a SQL query to answer the following question: `How many goals did the player from England who played the position of mf and had 170 club apps had?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "key" ( "nationality" text, "position" text, "tottenham_hotspur_career" text, "club_apps" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `How many goals did the player from England who played the position of mf and had 170 club apps had?`: ```sql
SELECT "goals" FROM "key" WHERE "club_apps"='229';
## Task Generate a SQL query to answer the following question: `How many goals did the player with 229 club apps have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "key" ( "nationality" text, "position" text, "tottenham_hotspur_career" text, "club_apps" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `How many goals did the player with 229 club apps have?`: ```sql
SELECT "award_ceremony" FROM "the_spring_musical" WHERE "nominee"='emilio pichardo as bobby strong';
## Task Generate a SQL query to answer the following question: `For which Award Ceremony was Emilio Pichardo as Bobby Strong nominated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_spring_musical" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `For which Award Ceremony was Emilio Pichardo as Bobby Strong nominated?`: ```sql
SELECT "nominee" FROM "the_spring_musical" WHERE "category"='best female performer';
## Task Generate a SQL query to answer the following question: `Who was nominated for best female performer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_spring_musical" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was nominated for best female performer?`: ```sql