cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "satellites" (
  "name" text,
  "cospar_id_satcat" text,
  "launch_date_utc" text,
  "launch_vehicle" text,
  "launch_site" text,
  "launch_designation" text,
  "longitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle?`:
```sql
                SELECT "cospar_id_satcat" FROM "satellites" WHERE "launch_vehicle"='titan iv(401)a';
```
## Task
Generate a SQL query to answer the following question:
`What is the launch designation of the satellite with a 2009-001a COSPAR ID?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "satellites" (
  "name" text,
  "cospar_id_satcat" text,
  "launch_date_utc" text,
  "launch_vehicle" text,
  "launch_site" text,
  "launch_designation" text,
  "longitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch designation of the satellite with a 2009-001a COSPAR ID?`:
```sql
                SELECT "launch_designation" FROM "satellites" WHERE "cospar_id_satcat"='2009-001a';
```
## Task
Generate a SQL query to answer the following question:
`What is the launch site of the satellite with a 2003-041a COSPAR ID?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "satellites" (
  "name" text,
  "cospar_id_satcat" text,
  "launch_date_utc" text,
  "launch_vehicle" text,
  "launch_site" text,
  "launch_designation" text,
  "longitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch site of the satellite with a 2003-041a COSPAR ID?`:
```sql
                SELECT "launch_site" FROM "satellites" WHERE "cospar_id_satcat"='2003-041a';
```
## Task
Generate a SQL query to answer the following question:
`What construction has a CERCLIS ID of ard092916188?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What construction has a CERCLIS ID of ard092916188?`:
```sql
                SELECT "construction_completed" FROM "superfund_sites" WHERE "cerclis_id"='ard092916188';
```
## Task
Generate a SQL query to answer the following question:
`What CERCLIS ID is Deleted of 04/07/2008?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What CERCLIS ID is Deleted of 04/07/2008?`:
```sql
                SELECT "cerclis_id" FROM "superfund_sites" WHERE "deleted"='04/07/2008';
```
## Task
Generate a SQL query to answer the following question:
`What construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products?`:
```sql
                SELECT "construction_completed" FROM "superfund_sites" WHERE "listed"='09/08/1983' AND "deleted"='–' AND "name"='mid-south wood products';
```
## Task
Generate a SQL query to answer the following question:
`What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey?`:
```sql
                SELECT "construction_completed" FROM "superfund_sites" WHERE "listed"='09/08/1983' AND "name"='cecil lindsey';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at Kardinia Park?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at Kardinia Park?`:
```sql
                SELECT AVG("crowd") FROM "round_1" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What was the Date of Week 16?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "time_et" text,
  "result" text,
  "game_site" text,
  "record" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Date of Week 16?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=16;
```
## Task
Generate a SQL query to answer the following question:
`What date was Colorado the home team?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Colorado the home team?`:
```sql
                SELECT "date" FROM "game_log" WHERE "home"='colorado';
```
## Task
Generate a SQL query to answer the following question:
`What was the record for the game on November 28 when the decision was Backstrom?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the game on November 28 when the decision was Backstrom?`:
```sql
                SELECT "record" FROM "game_log" WHERE "decision"='backstrom' AND "date"='november 28';
```
## Task
Generate a SQL query to answer the following question:
`What team was the home team when the record was 11–8–2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the home team when the record was 11–8–2?`:
```sql
                SELECT "home" FROM "game_log" WHERE "record"='11–8–2';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Edmonton was the home team?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Edmonton was the home team?`:
```sql
                SELECT "score" FROM "game_log" WHERE "home"='edmonton';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0`:
```sql
                SELECT MAX("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num">159 AND "reg_gp">0;
```
## Task
Generate a SQL query to answer the following question:
`In the match where the home team scored 9.13 (67) what was the crowd attendance?`

### 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 `In the match where the home team scored 9.13 (67) what was the crowd attendance?`:
```sql
                SELECT "crowd" FROM "round_7" WHERE "home_team_score"='9.13 (67)';
```
## Task
Generate a SQL query to answer the following question:
`In the match where south melbourne was the away team, who was the home team?`

### 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 `In the match where south melbourne was the away team, who was the home team?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the match where the home team scored 14.13 (97)`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the match where the home team scored 14.13 (97)`:
```sql
                SELECT "date" FROM "round_7" WHERE "home_team_score"='14.13 (97)';
```
## Task
Generate a SQL query to answer the following question:
`Which Team 2 faced Team 1 from Barcelona?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "third_qualifying_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team 2 faced Team 1 from Barcelona?`:
```sql
                SELECT "team_2" FROM "third_qualifying_round" WHERE "team_1"='barcelona';
```
## Task
Generate a SQL query to answer the following question:
`Which first leg had Galatasaray as Team 1?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "third_qualifying_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which first leg had Galatasaray as Team 1?`:
```sql
                SELECT "1st_leg" FROM "third_qualifying_round" WHERE "team_1"='galatasaray';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the Event with a time of 2:19?`

### 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 was the name of the Event with a time of 2:19?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='2:19';
```
## Task
Generate a SQL query to answer the following question:
`Where was match which had Joe Lauzon as an opponent?`

### 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 `Where was match which had Joe Lauzon as an opponent?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='joe lauzon';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the building that was the tallest from 1990–1997 in Frankfurt?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "city" text,
  "height_m" real,
  "height_ft" real,
  "floors" real,
  "years_as_tallest" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the building that was the tallest from 1990–1997 in Frankfurt?`:
```sql
                SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "city"='frankfurt' AND "years_as_tallest"='1990–1997';
```
## Task
Generate a SQL query to answer the following question:
`For a height less than 122 meters, what is the greatest height in feet?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "city" text,
  "height_m" real,
  "height_ft" real,
  "floors" real,
  "years_as_tallest" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a height less than 122 meters, what is the greatest height in feet?`:
```sql
                SELECT MAX("height_ft") FROM "timeline_of_tallest_buildings" WHERE "height_m"<122;
```
## Task
Generate a SQL query to answer the following question:
`How high was the highest building in feet in the city of cologne?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "city" text,
  "height_m" real,
  "height_ft" real,
  "floors" real,
  "years_as_tallest" text
);
### SQL
Given the database schema, here is the SQL query that answers `How high was the highest building in feet in the city of cologne?`:
```sql
                SELECT MAX("height_ft") FROM "timeline_of_tallest_buildings" WHERE "city"='cologne';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "city" text,
  "height_m" real,
  "height_ft" real,
  "floors" real,
  "years_as_tallest" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?`:
```sql
                SELECT MIN("height_ft") FROM "timeline_of_tallest_buildings" WHERE "city"='frankfurt' AND "height_m"=257 AND "floors"<55;
```
## Task
Generate a SQL query to answer the following question:
`What is the height in meters for a building in Frankfurt that is 850 feet tall?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "city" text,
  "height_m" real,
  "height_ft" real,
  "floors" real,
  "years_as_tallest" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height in meters for a building in Frankfurt that is 850 feet tall?`:
```sql
                SELECT "height_m" FROM "timeline_of_tallest_buildings" WHERE "city"='frankfurt' AND "height_ft"=850;
```
## Task
Generate a SQL query to answer the following question:
`What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "nhl_coins" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" real,
  "special_notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?`:
```sql
                SELECT "mintage" FROM "nhl_coins" WHERE "theme"='toronto maple leafs' AND "issue_price"<24.95;
```
## Task
Generate a SQL query to answer the following question:
`What was Collingwood's score in their away game?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Collingwood's score in their away game?`:
```sql
                SELECT "away_team_score" FROM "round_17" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Where 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_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Geelong play as the away team?`:
```sql
                SELECT "venue" FROM "round_17" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the I Dessau Autobahnspinne race?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "east_german_championship" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the I Dessau Autobahnspinne race?`:
```sql
                SELECT "date" FROM "east_german_championship" WHERE "race_name"='i dessau autobahnspinne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver in the Sachsenring circuit?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "east_german_championship" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver in the Sachsenring circuit?`:
```sql
                SELECT "winning_driver" FROM "east_german_championship" WHERE "circuit"='sachsenring';
```
## Task
Generate a SQL query to answer the following question:
`Where is Terry Mills from?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "1986_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Terry Mills from?`:
```sql
                SELECT "hometown" FROM "1986_boys_team" WHERE "player"='terry mills';
```
## Task
Generate a SQL query to answer the following question:
`When is the Mexican grand prix?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the Mexican grand prix?`:
```sql
                SELECT "date" FROM "season_review" WHERE "race"='mexican grand prix';
```
## Task
Generate a SQL query to answer the following question:
`The person with a Height of 6-8 went to which School?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "2011_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `The person with a Height of 6-8 went to which School?`:
```sql
                SELECT "school" FROM "2011_boys_team" WHERE "height"='6-8';
```
## Task
Generate a SQL query to answer the following question:
`What College did Player Dorian Finney-Smith play for?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "2011_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What College did Player Dorian Finney-Smith play for?`:
```sql
                SELECT "college" FROM "2011_boys_team" WHERE "player"='dorian finney-smith';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a height of 6-10, and went to College at LSU?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "2011_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a height of 6-10, and went to College at LSU?`:
```sql
                SELECT "player" FROM "2011_boys_team" WHERE "height"='6-10' AND "college"='lsu';
```
## Task
Generate a SQL query to answer the following question:
`Which School did Player Tyrone Johnson attend?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "2011_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School did Player Tyrone Johnson attend?`:
```sql
                SELECT "school" FROM "2011_boys_team" WHERE "player"='tyrone johnson';
```
## Task
Generate a SQL query to answer the following question:
`Who had the time of 1:23.32.41?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "ultra_lightweight_manx_grand_prix_revise" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the time of 1:23.32.41?`:
```sql
                SELECT "rider" FROM "ultra_lightweight_manx_grand_prix_revise" WHERE "time"='1:23.32.41';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "ultra_lightweight_manx_grand_prix_revise" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph?`:
```sql
                SELECT "time" FROM "ultra_lightweight_manx_grand_prix_revise" WHERE "rank"<8 AND "speed"='104.567mph';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team at the Junction Oval venue?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_21" (
  "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 at the Junction Oval venue?`:
```sql
                SELECT "home_team" FROM "round_21" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the date where the away team is Richmond?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_21" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date where the away team is Richmond?`:
```sql
                SELECT "date" FROM "round_21" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd where the home team scored 17.13 (115)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_21" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest crowd where the home team scored 17.13 (115)?`:
```sql
                SELECT MAX("crowd") FROM "round_21" WHERE "home_team_score"='17.13 (115)';
```
## Task
Generate a SQL query to answer the following question:
`What day did the away team score 10.16 (76)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_21" (
  "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 away team score 10.16 (76)?`:
```sql
                SELECT "date" FROM "round_21" WHERE "away_team_score"='10.16 (76)';
```
## Task
Generate a SQL query to answer the following question:
`Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.`:
```sql
                SELECT "circuit" FROM "season_review" WHERE "fastest_lap"='john surtees' AND "winning_driver"='john surtees';
```
## Task
Generate a SQL query to answer the following question:
`Name the winning driver with circuit of monza`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning driver with circuit of monza`:
```sql
                SELECT "winning_driver" FROM "season_review" WHERE "circuit"='monza';
```
## Task
Generate a SQL query to answer the following question:
`Name the pole position for 8 september`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pole position for 8 september`:
```sql
                SELECT "pole_position" FROM "season_review" WHERE "date"='8 september';
```
## Task
Generate a SQL query to answer the following question:
`Name the winning driver for belgian grand prix`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning driver for belgian grand prix`:
```sql
                SELECT "winning_driver" FROM "season_review" WHERE "race"='belgian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Name the circuit for italian grand prix`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit for italian grand prix`:
```sql
                SELECT "circuit" FROM "season_review" WHERE "race"='italian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`How many grid numbers were there for the driver Giancarlo Fisichella?`

### 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 `How many grid numbers were there for the driver Giancarlo Fisichella?`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "driver"='giancarlo fisichella';
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of laps for the constructor Ferrari when the time/retired was fuel pressure?`

### 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 mean number of laps for the constructor Ferrari when the time/retired was fuel pressure?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "constructor"='ferrari' AND "time_retired"='fuel pressure';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid when the driver was Michael Schumacher?`

### 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 grid when the driver was Michael Schumacher?`:
```sql
                SELECT "grid" FROM "race" WHERE "driver"='michael schumacher';
```
## Task
Generate a SQL query to answer the following question:
`How many laps had a grid number of 7?`

### 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 `How many laps had a grid number of 7?`:
```sql
                SELECT SUM("laps") FROM "race" WHERE "grid"=7;
```
## Task
Generate a SQL query to answer the following question:
`Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella?`

### 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 `Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "grid"<17 AND "driver"='giancarlo fisichella';
```
## Task
Generate a SQL query to answer the following question:
`Name the winning driver for circuit of monza`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "championship_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning driver for circuit of monza`:
```sql
                SELECT "winning_driver" FROM "championship_review" WHERE "circuit"='monza';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the date for jody scheckter being the fastest lap at the french grand prix`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "championship_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the date for jody scheckter being the fastest lap at the french grand prix`:
```sql
                SELECT "date" FROM "championship_review" WHERE "fastest_lap"='jody scheckter' AND "race"='french grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for circuit of interlagos`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "championship_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for circuit of interlagos`:
```sql
                SELECT "date" FROM "championship_review" WHERE "circuit"='interlagos';
```
## Task
Generate a SQL query to answer the following question:
`What was the event for vinny magalhães?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "submission_grappling_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event for vinny magalhães?`:
```sql
                SELECT "event" FROM "submission_grappling_record" WHERE "opponent"='vinny magalhães';
```
## Task
Generate a SQL query to answer the following question:
`What was the date for renato ferreira?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "submission_grappling_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for renato ferreira?`:
```sql
                SELECT "date" FROM "submission_grappling_record" WHERE "opponent"='renato ferreira';
```
## Task
Generate a SQL query to answer the following question:
`What was the event with leonardo chocolate in 2009?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "submission_grappling_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event with leonardo chocolate in 2009?`:
```sql
                SELECT "event" FROM "submission_grappling_record" WHERE "date"=2009 AND "opponent"='leonardo chocolate';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the opponent being gerardi rinaldi in 2009?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "submission_grappling_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the opponent being gerardi rinaldi in 2009?`:
```sql
                SELECT "result" FROM "submission_grappling_record" WHERE "date"=2009 AND "opponent"='gerardi rinaldi';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team that has a score of 10.9 (69)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team that has a score of 10.9 (69)?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "away_team_score"='10.9 (69)';
```
## Task
Generate a SQL query to answer the following question:
`The home team has a score of 12.9 (81) what is the score of the 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 `The home team has a score of 12.9 (81) what is the score of the away team?`:
```sql
                SELECT "away_team_score" FROM "round_5" WHERE "home_team_score"='12.9 (81)';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the eastern #1 for week of 5`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "division_races" (
  "week" real,
  "eastern_num1" text,
  "eastern_num2" text,
  "western_num1" text,
  "western_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the eastern #1 for week of 5`:
```sql
                SELECT "eastern_num1" FROM "division_races" WHERE "week"=5;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the eastern #2 for western #2 of oakland`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "division_races" (
  "week" real,
  "eastern_num1" text,
  "eastern_num2" text,
  "western_num1" text,
  "western_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the eastern #2 for western #2 of oakland`:
```sql
                SELECT "eastern_num2" FROM "division_races" WHERE "western_num2"='oakland';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the wekk for eastern #2 of houston`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "division_races" (
  "week" real,
  "eastern_num1" text,
  "eastern_num2" text,
  "western_num1" text,
  "western_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the wekk for eastern #2 of houston`:
```sql
                SELECT "week" FROM "division_races" WHERE "eastern_num2"='houston';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game when the away team scored 10.11 (71)?`

### 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 `How many people attended the game when the away team scored 10.11 (71)?`:
```sql
                SELECT SUM("crowd") FROM "round_8" WHERE "away_team_score"='10.11 (71)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team had a crowd larger than 20,822 at VFL Park?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had a crowd larger than 20,822 at VFL Park?`:
```sql
                SELECT "home_team" FROM "round_8" WHERE "crowd">'20,822' AND "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`Which home team played against the away team Carlton?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team played against the away team Carlton?`:
```sql
                SELECT "home_team" FROM "round_8" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played where the home team was Collingwood?`

### 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 `Where was the game played where the home team was Collingwood?`:
```sql
                SELECT "venue" FROM "round_8" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What is the home score with a crowd larger than 25,603?`

### 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 is the home score with a crowd larger than 25,603?`:
```sql
                SELECT "home_team_score" FROM "round_8" WHERE "crowd">'25,603';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the home team from South Melbourne?`

### 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 is the date of the home team from South Melbourne?`:
```sql
                SELECT "date" FROM "round_6" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team with the home team Fitzroy?`

### 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 is the score of the away team with the home team Fitzroy?`:
```sql
                SELECT "away_team_score" FROM "round_6" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What venue did the away team footscray play at?`

### 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 venue did the away team footscray play at?`:
```sql
                SELECT "venue" FROM "round_13" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`When the home team scored 8.8 (56), what team were they playing?`

### 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 `When the home team scored 8.8 (56), what team were they playing?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "home_team_score"='8.8 (56)';
```
## Task
Generate a SQL query to answer the following question:
`When melbourne was the away team, what was the lowest crowd turnout they had?`

### 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 `When melbourne was the away team, what was the lowest crowd turnout they had?`:
```sql
                SELECT MIN("crowd") FROM "round_13" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which away team plays at the venue glenferrie oval?`

### 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 plays at the venue glenferrie oval?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`When the home team scored 11.15 (81), 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_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 `When the home team scored 11.15 (81), what did the Away team score?`:
```sql
                SELECT "away_team_score" FROM "round_13" WHERE "home_team_score"='11.15 (81)';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "ranking_of_chinese_provinces_by_gdp_per_" (
  "year" text,
  "2010" real,
  "2009" real,
  "2008" real,
  "2005" real,
  "2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19`:
```sql
                SELECT MIN("2005") FROM "ranking_of_chinese_provinces_by_gdp_per_" WHERE "2009"=19 AND "2010"<21;
```