cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many people watched a Glenferrie Oval?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people watched a Glenferrie Oval?`:
```sql
                SELECT COUNT("crowd") FROM "round_15" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`How faced Geelong at home?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How faced Geelong at home?`:
```sql
                SELECT "away_team_score" FROM "round_15" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`How many people watch Essendon as an away team?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people watch Essendon as an away team?`:
```sql
                SELECT SUM("crowd") FROM "round_15" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Where did South Melbourne go to play a team at home?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did South Melbourne go to play a team at home?`:
```sql
                SELECT "home_team" FROM "round_15" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Where did a home team score 9.9 (63)?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did a home team score 9.9 (63)?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "home_team_score"='9.9 (63)';
```
## Task
Generate a SQL query to answer the following question:
`What is essendon's away team score?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is essendon's away team score?`:
```sql
                SELECT "away_team_score" FROM "round_15" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has an away team score of 11.15 (81)?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team has an away team score of 11.15 (81)?`:
```sql
                SELECT "home_team" FROM "round_15" WHERE "away_team_score"='11.15 (81)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date with geelong as Away team?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date with geelong as Away team?`:
```sql
                SELECT "date" FROM "round_15" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest crowd at arden street oval?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest crowd at arden street oval?`:
```sql
                SELECT MAX("crowd") FROM "round_15" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`What is geelong's aberage crowd as Away Team?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is geelong's aberage crowd as Away Team?`:
```sql
                SELECT AVG("crowd") FROM "round_15" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when North Melbourne was the away team?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game when North Melbourne was the away team?`:
```sql
                SELECT "date" FROM "round_6" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game held when the home team scored 8.18 (66)?`

### 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 `Where was the game held when the home team scored 8.18 (66)?`:
```sql
                SELECT "venue" FROM "round_6" WHERE "home_team_score"='8.18 (66)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the home team scored 16.16 (112)?`

### 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 `Who was the away team when the home team scored 16.16 (112)?`:
```sql
                SELECT "away_team" FROM "round_6" WHERE "home_team_score"='16.16 (112)';
```
## Task
Generate a SQL query to answer the following question:
`What is the team with grid 9?`

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

CREATE TABLE "race_1_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team with grid 9?`:
```sql
                SELECT "team" FROM "race_1_results" WHERE "grid"=9;
```
## Task
Generate a SQL query to answer the following question:
`What team features garth tander?`

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

CREATE TABLE "race_1_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team features garth tander?`:
```sql
                SELECT "team" FROM "race_1_results" WHERE "name"='garth tander';
```
## Task
Generate a SQL query to answer the following question:
`How many stages are in a distance of 2,192 km?`

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

CREATE TABLE "marlboro_tour" (
  "year" text,
  "name" text,
  "date" text,
  "stages" text,
  "distance" text,
  "winner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stages are in a distance of 2,192 km?`:
```sql
                SELECT "stages" FROM "marlboro_tour" WHERE "distance"='2,192 km';
```
## Task
Generate a SQL query to answer the following question:
`How long was the 16 staged event in 1997?`

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

CREATE TABLE "marlboro_tour" (
  "year" text,
  "name" text,
  "date" text,
  "stages" text,
  "distance" text,
  "winner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long was the 16 staged event in 1997?`:
```sql
                SELECT "distance" FROM "marlboro_tour" WHERE "stages"='16' AND "year"='1997';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning time in 1984?`

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

CREATE TABLE "marlboro_tour" (
  "year" text,
  "name" text,
  "date" text,
  "stages" text,
  "distance" text,
  "winner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning time in 1984?`:
```sql
                SELECT "time" FROM "marlboro_tour" WHERE "year"='1984';
```
## Task
Generate a SQL query to answer the following question:
`Who won the 17 staged event in 1987?`

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

CREATE TABLE "marlboro_tour" (
  "year" text,
  "name" text,
  "date" text,
  "stages" text,
  "distance" text,
  "winner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the 17 staged event in 1987?`:
```sql
                SELECT "winner" FROM "marlboro_tour" WHERE "stages"='17' AND "year"='1987';
```
## Task
Generate a SQL query to answer the following question:
`Which event happened in 1988?`

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

CREATE TABLE "marlboro_tour" (
  "year" text,
  "name" text,
  "date" text,
  "stages" text,
  "distance" text,
  "winner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event happened in 1988?`:
```sql
                SELECT "name" FROM "marlboro_tour" WHERE "year"='1988';
```
## Task
Generate a SQL query to answer the following question:
`Where did Rick Mears win, after starting in Pole Position?`

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

CREATE TABLE "races" (
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Rick Mears win, after starting in Pole Position?`:
```sql
                SELECT "city_location" FROM "races" WHERE "pole_position"='rick mears' AND "winning_driver"='rick mears';
```
## Task
Generate a SQL query to answer the following question:
`Where is the budweiser/g. i. joe's 200?`

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

CREATE TABLE "races" (
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the budweiser/g. i. joe's 200?`:
```sql
                SELECT "city_location" FROM "races" WHERE "race_name"='budweiser/g. i. joe''s 200';
```
## Task
Generate a SQL query to answer the following question:
`Where is Emerson Fittipaldi starting in Pole position?`

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

CREATE TABLE "races" (
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Emerson Fittipaldi starting in Pole position?`:
```sql
                SELECT "city_location" FROM "races" WHERE "pole_position"='emerson fittipaldi';
```
## Task
Generate a SQL query to answer the following question:
`Which Circuit is on July 24?`

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

CREATE TABLE "races" (
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Circuit is on July 24?`:
```sql
                SELECT "circuit" FROM "races" WHERE "date"='july 24';
```
## Task
Generate a SQL query to answer the following question:
`What date did Delage win?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Delage win?`:
```sql
                SELECT "date" FROM "other_grands_prix" WHERE "winning_constructor"='delage';
```
## Task
Generate a SQL query to answer the following question:
`What circuit did Luigi Villoresi win the Lausanne Grand Prix?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit did Luigi Villoresi win the Lausanne Grand Prix?`:
```sql
                SELECT "circuit" FROM "other_grands_prix" WHERE "winning_driver"='luigi villoresi' AND "name"='lausanne grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Which Grand Prix did Nello Pagani win?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grand Prix did Nello Pagani win?`:
```sql
                SELECT "name" FROM "other_grands_prix" WHERE "winning_driver"='nello pagani';
```
## Task
Generate a SQL query to answer the following question:
`What did the home team score when playing Fitzroy 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 `What did the home team score when playing Fitzroy as the away team?`:
```sql
                SELECT "home_team_score" FROM "round_17" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What did the home team score when playing at Western Oval?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the home team score when playing at Western Oval?`:
```sql
                SELECT "home_team_score" FROM "round_17" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`What away team played Collingwood?`

### 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 away team played Collingwood?`:
```sql
                SELECT "away_team" FROM "round_17" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Collingwood play at home?`

### 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 `On what date did Collingwood play at home?`:
```sql
                SELECT "date" FROM "round_17" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Name the average round where Dave Stachelski was picked smaller than 187.`

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

CREATE TABLE "2000_new_england_patriots_draft_selectio" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average round where Dave Stachelski was picked smaller than 187.`:
```sql
                SELECT AVG("round") FROM "2000_new_england_patriots_draft_selectio" WHERE "overall"<187 AND "player"='dave stachelski';
```
## Task
Generate a SQL query to answer the following question:
`Which position did David Nugent play with an overall small than 187?`

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

CREATE TABLE "2000_new_england_patriots_draft_selectio" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position did David Nugent play with an overall small than 187?`:
```sql
                SELECT "position" FROM "2000_new_england_patriots_draft_selectio" WHERE "overall">187 AND "player"='david nugent';
```
## Task
Generate a SQL query to answer the following question:
`Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end position.`

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

CREATE TABLE "2000_new_england_patriots_draft_selectio" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end position.`:
```sql
                SELECT "college" FROM "2000_new_england_patriots_draft_selectio" WHERE "overall">187 AND "round"<7 AND "position"='defensive end';
```
## Task
Generate a SQL query to answer the following question:
`Which player has less than 201 games, is ranked 2, and played between 2007-2012?`

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

CREATE TABLE "shutouts" (
  "rank" real,
  "player" text,
  "nation" text,
  "shutouts" real,
  "games" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has less than 201 games, is ranked 2, and played between 2007-2012?`:
```sql
                SELECT "player" FROM "shutouts" WHERE "games"<201 AND "rank"=2 AND "years"='2007-2012';
```
## Task
Generate a SQL query to answer the following question:
`How many average games did Nick Rimando have?`

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

CREATE TABLE "shutouts" (
  "rank" real,
  "player" text,
  "nation" text,
  "shutouts" real,
  "games" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many average games did Nick Rimando have?`:
```sql
                SELECT AVG("games") FROM "shutouts" WHERE "player"='nick rimando';
```
## Task
Generate a SQL query to answer the following question:
`What is the party of the politician who left office on January 12, 1857`

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

CREATE TABLE "list_of_lieutenant_governors" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "governor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party of the politician who left office on January 12, 1857`:
```sql
                SELECT "party" FROM "list_of_lieutenant_governors" WHERE "left_office"='january 12, 1857';
```
## Task
Generate a SQL query to answer the following question:
`What is the party of the governor under Hugh Thomas Miller.`

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

CREATE TABLE "list_of_lieutenant_governors" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "governor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party of the governor under Hugh Thomas Miller.`:
```sql
                SELECT "governor" FROM "list_of_lieutenant_governors" WHERE "name"='hugh thomas miller';
```
## Task
Generate a SQL query to answer the following question:
`Who left office on January 9, 1893`

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

CREATE TABLE "list_of_lieutenant_governors" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "governor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who left office on January 9, 1893`:
```sql
                SELECT "name" FROM "list_of_lieutenant_governors" WHERE "left_office"='january 9, 1893';
```
## Task
Generate a SQL query to answer the following question:
`Who took office under the government of Matthew E. Welsh?`

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

CREATE TABLE "list_of_lieutenant_governors" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "governor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who took office under the government of Matthew E. Welsh?`:
```sql
                SELECT "took_office" FROM "list_of_lieutenant_governors" WHERE "governor"='matthew e. welsh';
```
## Task
Generate a SQL query to answer the following question:
`Which governor took office on January 13, 1877`

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

CREATE TABLE "list_of_lieutenant_governors" (
  "name" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "governor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which governor took office on January 13, 1877`:
```sql
                SELECT "governor" FROM "list_of_lieutenant_governors" WHERE "took_office"='january 13, 1877';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the Geelong away team?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the Geelong away team?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the crowd for the team with 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_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the crowd for the team with a score of 10.9 (69)?`:
```sql
                SELECT COUNT("crowd") FROM "round_3" WHERE "home_team_score"='10.9 (69)';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the team that plays in lake oval?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the team that plays in lake oval?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`What the date of the game of the team that plays in princes park?`

### 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 the date of the game of the team that plays in princes park?`:
```sql
                SELECT "date" FROM "round_3" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team of carlton?`

### 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 score of the home team of carlton?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`How many people watched the away team of Geelong?`

### 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 `How many people watched the away team of Geelong?`:
```sql
                SELECT "crowd" FROM "round_7" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has the Brunswick Street Oval venue?`

### 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 `Which home team has the Brunswick Street Oval venue?`:
```sql
                SELECT "home_team_score" FROM "round_1" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has the Brunswick Street Oval venue?`

### 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 `Which home team has the Brunswick Street Oval venue?`:
```sql
                SELECT "home_team" FROM "round_1" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team has an Away team score of 11.18 (84)?`

### 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 `Which Away team has an Away team score of 11.18 (84)?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "away_team_score"='11.18 (84)';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team has a Home team of Collingwood?`

### 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 `Which Away team has a Home team of Collingwood?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team has a Home score of 9.15 (69)?`

### 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 `Which Away team has a Home score of 9.15 (69)?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team_score"='9.15 (69)';
```
## Task
Generate a SQL query to answer the following question:
`Which is the lowest crop total with New South Wales at 42 kilotonnes and Victorian at less than 68 kilotonnes?`

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

CREATE TABLE "crops" (
  "crop_kilotonnes" text,
  "new_south_wales" real,
  "victoria" real,
  "queensland" real,
  "western_australia" real,
  "south_australia" real,
  "tasmania" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the lowest crop total with New South Wales at 42 kilotonnes and Victorian at less than 68 kilotonnes?`:
```sql
                SELECT MIN("total") FROM "crops" WHERE "new_south_wales"=42 AND "victoria"<68;
```
## Task
Generate a SQL query to answer the following question:
`Who had a qual 1 best of 1:01.704?`

### 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 `Who had a qual 1 best of 1:01.704?`:
```sql
                SELECT "qual_1" FROM "qualifying_results" WHERE "best"='1:01.704';
```
## Task
Generate a SQL query to answer the following question:
`What team had a qual 1 of 1:02.755?`

### 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 team had a qual 1 of 1:02.755?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_1"='1:02.755';
```
## Task
Generate a SQL query to answer the following question:
`What is the qual 1 for rusport and had a best of 58.665?`

### 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 rusport and had a best of 58.665?`:
```sql
                SELECT "qual_1" FROM "qualifying_results" WHERE "team"='rusport' AND "best"='58.665';
```
## Task
Generate a SQL query to answer the following question:
`What team had a qual 1 of 59.895?`

### 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 team had a qual 1 of 59.895?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_1"='59.895';
```
## Task
Generate a SQL query to answer the following question:
`Who had a qual 1 of 1:01.461?`

### 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 `Who had a qual 1 of 1:01.461?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "qual_1"='1:01.461';
```
## Task
Generate a SQL query to answer the following question:
`What is the LFN support with 32-bit architecture on Windows Home Server?`

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

CREATE TABLE "windows_nt" (
  "name" text,
  "architecture" text,
  "usb_support" text,
  "lfn_support" text,
  "ap_is" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the LFN support with 32-bit architecture on Windows Home Server?`:
```sql
                SELECT "lfn_support" FROM "windows_nt" WHERE "architecture"='32-bit' AND "name"='windows home server';
```
## Task
Generate a SQL query to answer the following question:
`What is the LFN support on Windows NT 3.1?`

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

CREATE TABLE "windows_nt" (
  "name" text,
  "architecture" text,
  "usb_support" text,
  "lfn_support" text,
  "ap_is" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the LFN support on Windows NT 3.1?`:
```sql
                SELECT "lfn_support" FROM "windows_nt" WHERE "name"='windows nt 3.1';
```
## Task
Generate a SQL query to answer the following question:
`What venue has the away side scoring 15.23 (113)?`

### 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 venue has the away side scoring 15.23 (113)?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "away_team_score"='15.23 (113)';
```
## Task
Generate a SQL query to answer the following question:
`What venue features hawthorn as the away 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 `What venue features hawthorn as the away team?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game with the home side scoring 11.13 (79)?`

### 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 `How many people attended the game with the home side scoring 11.13 (79)?`:
```sql
                SELECT COUNT("crowd") FROM "round_7" WHERE "home_team_score"='11.13 (79)';
```
## Task
Generate a SQL query to answer the following question:
`How many cop apps in the season with fewer than 12 league apps?`

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

CREATE TABLE "swindon_town_career_details" (
  "season" text,
  "team" text,
  "league_apps" real,
  "league_goals" real,
  "cup_apps" real,
  "cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cop apps in the season with fewer than 12 league apps?`:
```sql
                SELECT SUM("cup_apps") FROM "swindon_town_career_details" WHERE "league_apps"<12;
```
## Task
Generate a SQL query to answer the following question:
`What season saw 6 cup apps and 5 cup goals?`

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

CREATE TABLE "swindon_town_career_details" (
  "season" text,
  "team" text,
  "league_apps" real,
  "league_goals" real,
  "cup_apps" real,
  "cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What season saw 6 cup apps and 5 cup goals?`:
```sql
                SELECT "season" FROM "swindon_town_career_details" WHERE "cup_apps"=6 AND "cup_goals"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many league apps in the season with more than 2 cup goals and more than 6 cup apps?`

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

CREATE TABLE "swindon_town_career_details" (
  "season" text,
  "team" text,
  "league_apps" real,
  "league_goals" real,
  "cup_apps" real,
  "cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many league apps in the season with more than 2 cup goals and more than 6 cup apps?`:
```sql
                SELECT SUM("league_apps") FROM "swindon_town_career_details" WHERE "cup_goals">2 AND "cup_apps">6;
```
## Task
Generate a SQL query to answer the following question:
`How many cup goals for the season with more than 34 league apps?`

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

CREATE TABLE "swindon_town_career_details" (
  "season" text,
  "team" text,
  "league_apps" real,
  "league_goals" real,
  "cup_apps" real,
  "cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cup goals for the season with more than 34 league apps?`:
```sql
                SELECT AVG("cup_goals") FROM "swindon_town_career_details" WHERE "league_apps">34;
```
## Task
Generate a SQL query to answer the following question:
`How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals?`

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

CREATE TABLE "swindon_town_career_details" (
  "season" text,
  "team" text,
  "league_apps" real,
  "league_goals" real,
  "cup_apps" real,
  "cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals?`:
```sql
                SELECT SUM("cup_goals") FROM "swindon_town_career_details" WHERE "league_apps">5 AND "cup_apps"=1 AND "league_goals"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many cup apps for the season where there are more than 10 league goals and 23 league apps?`

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

CREATE TABLE "swindon_town_career_details" (
  "season" text,
  "team" text,
  "league_apps" real,
  "league_goals" real,
  "cup_apps" real,
  "cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cup apps for the season where there are more than 10 league goals and 23 league apps?`:
```sql
                SELECT "cup_apps" FROM "swindon_town_career_details" WHERE "league_goals">10 AND "league_apps"=23;
```
## Task
Generate a SQL query to answer the following question:
`Which route has a Date of 2 july?`

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

CREATE TABLE "stage_results" (
  "stage" text,
  "date" text,
  "route" text,
  "terrain" text,
  "length" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which route has a Date of 2 july?`:
```sql
                SELECT "route" FROM "stage_results" WHERE "date"='2 july';
```
## Task
Generate a SQL query to answer the following question:
`Which length has a Stage of 9?`

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

CREATE TABLE "stage_results" (
  "stage" text,
  "date" text,
  "route" text,
  "terrain" text,
  "length" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which length has a Stage of 9?`:
```sql
                SELECT "length" FROM "stage_results" WHERE "stage"='9';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Terrain of plain stage, and a Stage of 4?`

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

CREATE TABLE "stage_results" (
  "stage" text,
  "date" text,
  "route" text,
  "terrain" text,
  "length" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Terrain of plain stage, and a Stage of 4?`:
```sql
                SELECT "date" FROM "stage_results" WHERE "terrain"='plain stage' AND "stage"='4';
```
## Task
Generate a SQL query to answer the following question:
`Who is the away team at the game at MCG with the crowd is larger than 15,500?`

### 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 `Who is the away team at the game at MCG with the crowd is larger than 15,500?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "crowd">'15,500' AND "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for Fitzroy when they are the home team?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for Fitzroy when they are the home team?`:
```sql
                SELECT "home_team_score" FROM "round_5" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game at Arden Street 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 is the date of the game at Arden Street Oval?`:
```sql
                SELECT "date" FROM "round_5" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd for a game when Melbourne is the home team?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest crowd for a game when Melbourne is the home team?`:
```sql
                SELECT MIN("crowd") FROM "round_5" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who drafted the player from Michigan after 2010?`

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

CREATE TABLE "2009" (
  "player" text,
  "home_town" text,
  "college_prior" text,
  "drafting_team" text,
  "graduated" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drafted the player from Michigan after 2010?`:
```sql
                SELECT "drafting_team" FROM "2009" WHERE "graduated">2010 AND "college_prior"='michigan';
```
## Task
Generate a SQL query to answer the following question:
`Where was the player from who graduated from Michigan after 2010?`

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

CREATE TABLE "2009" (
  "player" text,
  "home_town" text,
  "college_prior" text,
  "drafting_team" text,
  "graduated" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the player from who graduated from Michigan after 2010?`:
```sql
                SELECT "home_town" FROM "2009" WHERE "graduated">2010 AND "college_prior"='michigan';
```
## Task
Generate a SQL query to answer the following question:
`From what town was Steve Zakuani?`

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

CREATE TABLE "2009" (
  "player" text,
  "home_town" text,
  "college_prior" text,
  "drafting_team" text,
  "graduated" real
);
### SQL
Given the database schema, here is the SQL query that answers `From what town was Steve Zakuani?`:
```sql
                SELECT "home_town" FROM "2009" WHERE "player"='steve zakuani';
```
## Task
Generate a SQL query to answer the following question:
`What year did Omar Gonzalez graduate?`

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

CREATE TABLE "2009" (
  "player" text,
  "home_town" text,
  "college_prior" text,
  "drafting_team" text,
  "graduated" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Omar Gonzalez graduate?`:
```sql
                SELECT SUM("graduated") FROM "2009" WHERE "player"='omar gonzalez';
```
## Task
Generate a SQL query to answer the following question:
`Which university hosted in Long Beach?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which university hosted in Long Beach?`:
```sql
                SELECT "host" FROM "first_and_second_rounds" WHERE "city"='long beach';
```