cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the batting style of Makhaya Ntini?`

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

CREATE TABLE "south_africa" (
  "player" text,
  "date_of_birth" text,
  "batting_style" text,
  "bowling_style" text,
  "first_class_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the batting style of Makhaya Ntini?`:
```sql
                SELECT "batting_style" FROM "south_africa" WHERE "player"='makhaya ntini';
```
## Task
Generate a SQL query to answer the following question:
`What region is the host university of southern california located?`

### 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 `What region is the host university of southern california located?`:
```sql
                SELECT "region" FROM "first_and_second_rounds" WHERE "host"='university of southern california';
```
## Task
Generate a SQL query to answer the following question:
`In which state is the city of knoxville?`

### 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 `In which state is the city of knoxville?`:
```sql
                SELECT "state" FROM "first_and_second_rounds" WHERE "city"='knoxville';
```
## Task
Generate a SQL query to answer the following question:
`Which city in Texas hosts the Frank Erwin center?`

### 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 city in Texas hosts the Frank Erwin center?`:
```sql
                SELECT "city" FROM "first_and_second_rounds" WHERE "state"='texas' AND "venue"='frank erwin center';
```
## Task
Generate a SQL query to answer the following question:
`In what region is the city of Austin?`

### 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 `In what region is the city of Austin?`:
```sql
                SELECT "region" FROM "first_and_second_rounds" WHERE "city"='austin';
```
## Task
Generate a SQL query to answer the following question:
`Which home team scored 10.6 (66)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team scored 10.6 (66)?`:
```sql
                SELECT "home_team" FROM "round_4" WHERE "home_team_score"='10.6 (66)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team had a score of 10.8 (68)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had a score of 10.8 (68)?`:
```sql
                SELECT "home_team" FROM "round_4" WHERE "home_team_score"='10.8 (68)';
```
## Task
Generate a SQL query to answer the following question:
`What is the polling result for Chuck DeVore which has a corresponding polling result of 4% for Other?`

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

CREATE TABLE "polling" (
  "poll_source" text,
  "date_s_administered" text,
  "sample_size" real,
  "margin_of_error" text,
  "tom_campbell" text,
  "carly_fiorina" text,
  "chuck_de_vore" text,
  "other" text,
  "unde_cided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the polling result for Chuck DeVore which has a corresponding polling result of 4% for Other?`:
```sql
                SELECT "chuck_de_vore" FROM "polling" WHERE "other"='4%';
```
## Task
Generate a SQL query to answer the following question:
`What is the total when silver is less than 1 and rank larger than 3?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when silver is less than 1 and rank larger than 3?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver"<1 AND "rank">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of bronze for Canada and silver is less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of bronze for Canada and silver is less than 0?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='canada' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest gold when silver is less than 1 for Canada and bronze is less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest gold when silver is less than 1 for Canada and bronze is less than 0?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "silver"<1 AND "nation"='canada' AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the silver for Germany and less than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the silver for Germany and less than 2?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "nation"='germany' AND "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the score for december 3`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the score for december 3`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='december 3';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the record for december 3`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the record for december 3`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='december 3';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for dallas visitor`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for dallas visitor`:
```sql
                SELECT "record" FROM "game_log" WHERE "visitor"='dallas';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for december 5`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for december 5`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='december 5';
```
## Task
Generate a SQL query to answer the following question:
`Who is Princes Park's 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 `Who is Princes Park's home team?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`Who has a home team score of 13.16 (94)?`

### 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 `Who has a home team score of 13.16 (94)?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "home_team_score"='13.16 (94)';
```
## Task
Generate a SQL query to answer the following question:
`What was the date that an away team score 11.22 (88)?`

### 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 that an away team score 11.22 (88)?`:
```sql
                SELECT "date" FROM "round_7" WHERE "away_team_score"='11.22 (88)';
```
## Task
Generate a SQL query to answer the following question:
`Who has a home team score of 9.5 (59)?`

### 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 `Who has a home team score of 9.5 (59)?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "home_team_score"='9.5 (59)';
```
## Task
Generate a SQL query to answer the following question:
`Who is North Melbourne's 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 `Who is North Melbourne's home team?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "year_10_1st_quad" text,
  "year_10_2nd_quad" text,
  "year_10_3rd_quad" text,
  "year_10_4th_quad" text,
  "year_10_single_scull" text,
  "year_9_1st_quad" text,
  "year_9_2nd_quad" text,
  "year_9_3rd_quad" text,
  "year_9_4th_quad" text,
  "year_9_single_scull" text,
  "year_8_1st_quad" text,
  "year_8_2nd_quad" text,
  "year_8_3rd_quad" text,
  "year_8_4th_quad" text,
  "year_8_single_scull" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?`:
```sql
                SELECT "year_8_1st_quad" FROM "winning_head_of_the_river_championship_e" WHERE "year_9_2nd_quad"='bggs' AND "crew">2006;
```
## Task
Generate a SQL query to answer the following question:
`For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "year_10_1st_quad" text,
  "year_10_2nd_quad" text,
  "year_10_3rd_quad" text,
  "year_10_4th_quad" text,
  "year_10_single_scull" text,
  "year_9_1st_quad" text,
  "year_9_2nd_quad" text,
  "year_9_3rd_quad" text,
  "year_9_4th_quad" text,
  "year_9_single_scull" text,
  "year_8_1st_quad" text,
  "year_8_2nd_quad" text,
  "year_8_3rd_quad" text,
  "year_8_4th_quad" text,
  "year_8_single_scull" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?`:
```sql
                SELECT "year_8_1st_quad" FROM "winning_head_of_the_river_championship_e" WHERE "year_9_2nd_quad"='stm' AND "year_9_1st_quad"='som' AND "year_8_3rd_quad"='sta';
```
## Task
Generate a SQL query to answer the following question:
`Which character was in the sexiest female category of the British Soap Awards?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "result" text,
  "award" text,
  "category" text,
  "film_or_series" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which character was in the sexiest female category of the British Soap Awards?`:
```sql
                SELECT "character" FROM "awards_and_nominations" WHERE "category"='sexiest female' AND "award"='british soap awards';
```
## Task
Generate a SQL query to answer the following question:
`Which film or series was nominated in the category of best fansite?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "result" text,
  "award" text,
  "category" text,
  "film_or_series" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which film or series was nominated in the category of best fansite?`:
```sql
                SELECT "film_or_series" FROM "awards_and_nominations" WHERE "result"='nominated' AND "category"='best fansite';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team that had an away team score of 9.9 (63)?`

### 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 that had an away team score of 9.9 (63)?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "away_team_score"='9.9 (63)';
```
## Task
Generate a SQL query to answer the following question:
`What is the current score for the home team that had an away score of 9.9 (63)?`

### 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 current score for the home team that had an away score of 9.9 (63)?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "away_team_score"='9.9 (63)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue had an away team score of 16.12 (108)?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue had an away team score of 16.12 (108)?`:
```sql
                SELECT "venue" FROM "round_3" WHERE "away_team_score"='16.12 (108)';
```
## Task
Generate a SQL query to answer the following question:
`Who has an away team score of 2.2 (14)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has an away team score of 2.2 (14)?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "away_team_score"='2.2 (14)';
```
## Task
Generate a SQL query to answer the following question:
`Where does Essendon play their home games?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does Essendon play their home games?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game held where the away team had a score of 2.2 (14)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game held where the away team had a score of 2.2 (14)?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "away_team_score"='2.2 (14)';
```
## Task
Generate a SQL query to answer the following question:
`What team plays their home games in Victoria Park?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team plays their home games in Victoria Park?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team in the game where the home team had a score of 4.9 (33)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team in the game where the home team had a score of 4.9 (33)?`:
```sql
                SELECT "away_team" FROM "round_12" WHERE "home_team_score"='4.9 (33)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total attendance with a Report of sd.hr, and a Score of 3–1, and a Date of 14 apr 2001?`

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

CREATE TABLE "2000_2010" (
  "date" text,
  "competition" text,
  "ground" text,
  "score" text,
  "attendance" real,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total attendance with a Report of sd.hr, and a Score of 3–1, and a Date of 14 apr 2001?`:
```sql
                SELECT SUM("attendance") FROM "2000_2010" WHERE "report"='sd.hr' AND "score"='3–1' AND "date"='14 apr 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest production code when the writer was brian egeston after season 5?`

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

CREATE TABLE "season_6_2009_11" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest production code when the writer was brian egeston after season 5?`:
```sql
                SELECT MAX("production_code") FROM "season_6_2009_11" WHERE "written_by"='brian egeston' AND "season_num">5;
```
## Task
Generate a SQL query to answer the following question:
`What was the record when chicago was the home team?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when chicago was the home team?`:
```sql
                SELECT "record" FROM "march" WHERE "home"='chicago';
```
## Task
Generate a SQL query to answer the following question:
`What Venue has an Away Team Score of 9.12 (66)?`

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

CREATE TABLE "round_22" (
  "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 an Away Team Score of 9.12 (66)?`:
```sql
                SELECT "venue" FROM "round_22" WHERE "away_team_score"='9.12 (66)';
```
## Task
Generate a SQL query to answer the following question:
`What Venue has an Away team score of 11.13 (79)?`

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

CREATE TABLE "round_22" (
  "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 an Away team score of 11.13 (79)?`:
```sql
                SELECT "venue" FROM "round_22" WHERE "away_team_score"='11.13 (79)';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd when the Home Team was Hawthorn?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in the crowd when the Home Team was Hawthorn?`:
```sql
                SELECT SUM("crowd") FROM "round_22" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`On what date is the Crowd larger than  28,049, and an Home team score of 17.15 (117)?`

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

CREATE TABLE "round_22" (
  "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 is the Crowd larger than  28,049, and an Home team score of 17.15 (117)?`:
```sql
                SELECT "date" FROM "round_22" WHERE "crowd">'28,049' AND "home_team_score"='17.15 (117)';
```
## Task
Generate a SQL query to answer the following question:
`What's the average Grid with Laps of 88?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average Grid with Laps of 88?`:
```sql
                SELECT AVG("grid") FROM "classification" WHERE "laps"=88;
```
## Task
Generate a SQL query to answer the following question:
`Which driver has a Time/Retired of +6 laps?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver has a Time/Retired of +6 laps?`:
```sql
                SELECT "driver" FROM "classification" WHERE "time_retired"='+6 laps';
```
## Task
Generate a SQL query to answer the following question:
`Which away team played a home team with a score of 10.9 (69) at Glenferrie Oval?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team played a home team with a score of 10.9 (69) at Glenferrie Oval?`:
```sql
                SELECT "away_team" FROM "round_18" WHERE "home_team_score"='10.9 (69)' AND "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`What did Hawthorn score as the home team?`

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

CREATE TABLE "round_18" (
  "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 Hawthorn score as the home team?`:
```sql
                SELECT "home_team_score" FROM "round_18" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What team played South Melbourne at their home game?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team played South Melbourne at their home game?`:
```sql
                SELECT "away_team" FROM "round_18" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What team played Geelong at their away game?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team played Geelong at their away game?`:
```sql
                SELECT "home_team" FROM "round_18" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`How many spectators were at the away game where the score was 9.6 (60)?`

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

CREATE TABLE "round_18" (
  "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 spectators were at the away game where the score was 9.6 (60)?`:
```sql
                SELECT "crowd" FROM "round_18" WHERE "away_team_score"='9.6 (60)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991?`:
```sql
                SELECT "1989" FROM "grand_slam_singles_performance_timeline" WHERE "1991"='4r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1989 result of the tournament in which Katerina finished nh in 1986?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1989 result of the tournament in which Katerina finished nh in 1986?`:
```sql
                SELECT "1989" FROM "grand_slam_singles_performance_timeline" WHERE "1986"='nh';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the ranks that did not participate?`

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

CREATE TABLE "asian_winter_games" (
  "games" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "total" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of the ranks that did not participate?`:
```sql
                SELECT "total" FROM "asian_winter_games" WHERE "rank"='did not participate';
```
## Task
Generate a SQL query to answer the following question:
`What is the decile for Westminster Christian School with a state integrated authority?`

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

CREATE TABLE "upper_harbour_local_board" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" text,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the decile for Westminster Christian School with a state integrated authority?`:
```sql
                SELECT "decile" FROM "upper_harbour_local_board" WHERE "authority"='state integrated' AND "name"='westminster christian school';
```
## Task
Generate a SQL query to answer the following question:
`What are the years when the authority was state integrated and a decile of 9?`

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

CREATE TABLE "upper_harbour_local_board" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" text,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years when the authority was state integrated and a decile of 9?`:
```sql
                SELECT "years" FROM "upper_harbour_local_board" WHERE "authority"='state integrated' AND "decile"='9';
```
## Task
Generate a SQL query to answer the following question:
`What did the team score while away in moorabbin oval?`

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

CREATE TABLE "round_2" (
  "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 team score while away in moorabbin oval?`:
```sql
                SELECT "away_team_score" FROM "round_2" WHERE "venue"='moorabbin oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Purse ($) that has a 1st Prize ($) of 45,000 at the gte kaanapali classic tournament?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Purse ($) that has a 1st Prize ($) of 45,000 at the gte kaanapali classic tournament?`:
```sql
                SELECT MAX("purse") FROM "tournament_results" WHERE "1st_prize"='45,000' AND "tournament"='gte kaanapali classic';
```
## Task
Generate a SQL query to answer the following question:
`When was the general foods pga seniors' championship tournament?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the general foods pga seniors' championship tournament?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "tournament"='general foods pga seniors'' championship';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance on location when the record was 3–16?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on location when the record was 3–16?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='3–16';
```
## Task
Generate a SQL query to answer the following question:
`On what date was a two-way tie (8) the high rebound?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was a two-way tie (8) the high rebound?`:
```sql
                SELECT "date" FROM "game_log" WHERE "high_rebounds"='two-way tie (8)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home score with Away team score of 11.11 (77)?`

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

CREATE TABLE "round_14" (
  "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 Away team score of 11.11 (77)?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "away_team_score"='11.11 (77)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score with Away team Richmond?`

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

CREATE TABLE "round_14" (
  "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 score with Away team Richmond?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Which date has an Away team score of 11.11 (77)?`

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

CREATE TABLE "round_14" (
  "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 date has an Away team score of 11.11 (77)?`:
```sql
                SELECT "date" FROM "round_14" WHERE "away_team_score"='11.11 (77)';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd for victoria park?`

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

CREATE TABLE "round_14" (
  "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 victoria park?`:
```sql
                SELECT MIN("crowd") FROM "round_14" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?`

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

CREATE TABLE "lightweight_58_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?`:
```sql
                SELECT MAX("clean_jerk") FROM "lightweight_58_kg" WHERE "total_kg"='200.0' AND "snatch">87.5;
```
## Task
Generate a SQL query to answer the following question:
`what is the average bodyweight when snatch is 80?`

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

CREATE TABLE "lightweight_58_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average bodyweight when snatch is 80?`:
```sql
                SELECT AVG("bodyweight") FROM "lightweight_58_kg" WHERE "snatch"=80;
```
## Task
Generate a SQL query to answer the following question:
`What did the home team score at Windy Hill?`

### 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 at Windy Hill?`:
```sql
                SELECT "home_team_score" FROM "round_17" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`When the home team scored 9.17 (71), 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_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 `When the home team scored 9.17 (71), what did the away team score?`:
```sql
                SELECT "away_team_score" FROM "round_17" WHERE "home_team_score"='9.17 (71)';
```
## Task
Generate a SQL query to answer the following question:
`When the home team was Richmond, what was the largest crowd?`

### 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 `When the home team was Richmond, what was the largest crowd?`:
```sql
                SELECT MAX("crowd") FROM "round_17" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the average 1st prize for tennessee`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the average 1st prize for tennessee`:
```sql
                SELECT AVG("1st_prize") FROM "tournament_results" WHERE "location"='tennessee';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the winner of the comfort classic`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the winner of the comfort classic`:
```sql
                SELECT "winner" FROM "tournament_results" WHERE "tournament"='comfort classic';
```
## Task
Generate a SQL query to answer the following question:
`How many percentages have losses fewer than 1 with finals appearances of 4?`

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

CREATE TABLE "finals_appearances" (
  "finals" real,
  "team" text,
  "wins" real,
  "losses" real,
  "pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many percentages have losses fewer than 1 with finals appearances of 4?`:
```sql
                SELECT COUNT("pct") FROM "finals_appearances" WHERE "losses"<1 AND "finals"=4;
```
## Task
Generate a SQL query to answer the following question:
`Name the least age for the 1st dose for 3 doses of 2-3 drops`

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

CREATE TABLE "routine_immunization_schedule_for_infant" (
  "vaccine" text,
  "minimum_age_at_1st_dose" text,
  "number_of_doses" text,
  "dose" text,
  "minimum_interval_between_doses" text,
  "route" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least age for the 1st dose for 3 doses of 2-3 drops`:
```sql
                SELECT "minimum_age_at_1st_dose" FROM "routine_immunization_schedule_for_infant" WHERE "number_of_doses"='3 doses' AND "dose"='2-3 drops';
```
## Task
Generate a SQL query to answer the following question:
`How many doses for the bacillus calmette-guérin?`

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

CREATE TABLE "routine_immunization_schedule_for_infant" (
  "vaccine" text,
  "minimum_age_at_1st_dose" text,
  "number_of_doses" text,
  "dose" text,
  "minimum_interval_between_doses" text,
  "route" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many doses for the bacillus calmette-guérin?`:
```sql
                SELECT "number_of_doses" FROM "routine_immunization_schedule_for_infant" WHERE "vaccine"='bacillus calmette-guérin';
```
## Task
Generate a SQL query to answer the following question:
`Name the least interval between doses for minimum age being 1st dose at 6 weeks old for the diphtheria-pertussis-tetanus vaccine?`

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

CREATE TABLE "routine_immunization_schedule_for_infant" (
  "vaccine" text,
  "minimum_age_at_1st_dose" text,
  "number_of_doses" text,
  "dose" text,
  "minimum_interval_between_doses" text,
  "route" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least interval between doses for minimum age being 1st dose at 6 weeks old for the diphtheria-pertussis-tetanus vaccine?`:
```sql
                SELECT "minimum_interval_between_doses" FROM "routine_immunization_schedule_for_infant" WHERE "minimum_age_at_1st_dose"='6 weeks old' AND "vaccine"='diphtheria-pertussis-tetanus vaccine';
```
## Task
Generate a SQL query to answer the following question:
`What team did team carlton play while away?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did team carlton play while away?`:
```sql
                SELECT "home_team" FROM "round_4" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What did the home team score when the away team scored 12.12 (84)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the home team score when the away team scored 12.12 (84)?`:
```sql
                SELECT "home_team_score" FROM "round_4" WHERE "away_team_score"='12.12 (84)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has a score of 10.15 (75)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team has a score of 10.15 (75)?`:
```sql
                SELECT "home_team" FROM "round_4" WHERE "home_team_score"='10.15 (75)';
```
## Task
Generate a SQL query to answer the following question:
`What home team plays at Windy Hill?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team plays at Windy Hill?`:
```sql
                SELECT "home_team" FROM "round_4" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has a home score of 11.14 (80)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team has a home score of 11.14 (80)?`:
```sql
                SELECT "home_team" FROM "round_4" WHERE "home_team_score"='11.14 (80)';
```