cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the away side that scores 9.8 (62)?`

### 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 is the away side that scores 9.8 (62)?`:
```sql
                SELECT "away_team" FROM "round_6" WHERE "away_team_score"='9.8 (62)';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd that has the away side scoring 10.14 (74)?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest crowd that has the away side scoring 10.14 (74)?`:
```sql
                SELECT MAX("crowd") FROM "round_6" WHERE "away_team_score"='10.14 (74)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team that played at Windy Hill?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team that played at Windy Hill?`:
```sql
                SELECT "away_team" FROM "round_3" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team at the match when the away team scored 6.14 (50)?`

### 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 home team at the match when the away team scored 6.14 (50)?`:
```sql
                SELECT "home_team" FROM "round_3" WHERE "away_team_score"='6.14 (50)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team at the match where the crowd was larger than 30,000?`

### 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 away team at the match where the crowd was larger than 30,000?`:
```sql
                SELECT "away_team" FROM "round_3" WHERE "crowd">'30,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue when the away side scores 11.20 (86)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when the away side scores 11.20 (86)?`:
```sql
                SELECT "venue" FROM "round_9" WHERE "away_team_score"='11.20 (86)';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd when richmond is away?`

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

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

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is melbourne's home team score?`:
```sql
                SELECT "home_team_score" FROM "round_9" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who is the color commentator in 2008?`

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

CREATE TABLE "television_broadcasters" (
  "year" real,
  "network" text,
  "host" text,
  "pre_race_analyst" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the color commentator in 2008?`:
```sql
                SELECT "color_commentator_s" FROM "television_broadcasters" WHERE "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`Which member of the National Party is from the Hinkler electorate?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which member of the National Party is from the Hinkler electorate?`:
```sql
                SELECT "member" FROM "see_also" WHERE "party"='national' AND "electorate"='hinkler';
```
## Task
Generate a SQL query to answer the following question:
`Which member is from the state of SA and the grey electorate?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which member is from the state of SA and the grey electorate?`:
```sql
                SELECT "member" FROM "see_also" WHERE "state"='sa' AND "electorate"='grey';
```
## Task
Generate a SQL query to answer the following question:
`In which state is the Petrie electorate?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which state is the Petrie electorate?`:
```sql
                SELECT "state" FROM "see_also" WHERE "electorate"='petrie';
```
## Task
Generate a SQL query to answer the following question:
`What round was the draft pick of tight end with an Overall larger than 21?`

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

CREATE TABLE "2002_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 `What round was the draft pick of tight end with an Overall larger than 21?`:
```sql
                SELECT COUNT("round") FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='tight end' AND "overall">21;
```
## Task
Generate a SQL query to answer the following question:
`Which player is a wide receiver picked in round 7?`

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

CREATE TABLE "2002_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 player is a wide receiver picked in round 7?`:
```sql
                SELECT "player" FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='wide receiver' AND "round"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the running back pick?`

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

CREATE TABLE "2002_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 `What is the name of the running back pick?`:
```sql
                SELECT "player" FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='running back';
```
## Task
Generate a SQL query to answer the following question:
`When did the VFL pay at Victoria Park?`

### 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 `When did the VFL pay at Victoria Park?`:
```sql
                SELECT "date" FROM "round_4" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`When did South Melbourne play as the away team?`

### 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 `When did South Melbourne play as the away team?`:
```sql
                SELECT "date" FROM "round_4" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was home team Essendon's opponents score?`

### 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 was home team Essendon's opponents score?`:
```sql
                SELECT "away_team_score" FROM "round_4" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What date did the home team have a score of 9.18 (72)?`

### 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 date did the home team have a score of 9.18 (72)?`:
```sql
                SELECT "date" FROM "round_15" WHERE "home_team_score"='9.18 (72)';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team score when the home team scored 9.18 (72)?`

### 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 did the away team score when the home team scored 9.18 (72)?`:
```sql
                SELECT "away_team_score" FROM "round_15" WHERE "home_team_score"='9.18 (72)';
```
## Task
Generate a SQL query to answer the following question:
`When was The Love Eterne released?`

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

CREATE TABLE "best_100_chinese_motion_pictures" (
  "rank" real,
  "title" text,
  "year" real,
  "region" text,
  "director_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was The Love Eterne released?`:
```sql
                SELECT "year" FROM "best_100_chinese_motion_pictures" WHERE "title"='the love eterne';
```
## Task
Generate a SQL query to answer the following question:
`How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras?`:
```sql
                SELECT COUNT("heat") FROM "heats" WHERE "lane"=5 AND "rank">110 AND "nationality"='honduras';
```
## Task
Generate a SQL query to answer the following question:
`How many heats had 2 lanes, a rank above 75, and nationality of Madagascar?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many heats had 2 lanes, a rank above 75, and nationality of Madagascar?`:
```sql
                SELECT COUNT("heat") FROM "heats" WHERE "lane"=2 AND "rank">75 AND "nationality"='madagascar';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of every heat for the nationality of Macedonia with a rank less than 114?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of every heat for the nationality of Macedonia with a rank less than 114?`:
```sql
                SELECT SUM("heat") FROM "heats" WHERE "nationality"='macedonia' AND "rank"<114;
```
## Task
Generate a SQL query to answer the following question:
`What was the least number of heats with more than 8 lanes for the Nationality of Germany?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the least number of heats with more than 8 lanes for the Nationality of Germany?`:
```sql
                SELECT MIN("heat") FROM "heats" WHERE "nationality"='germany' AND "lane">8;
```
## Task
Generate a SQL query to answer the following question:
`When the VFL played Victoria Park what was the home team score?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the VFL played Victoria Park what was the home team score?`:
```sql
                SELECT "home_team_score" FROM "round_12" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`What driver has over 19 points and a grid of over 2?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What driver has over 19 points and a grid of over 2?`:
```sql
                SELECT "driver" FROM "race" WHERE "points">19 AND "grid">2;
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the away team when geelong was the home team?`

### 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 was the score for the away team when geelong was the home team?`:
```sql
                SELECT "away_team_score" FROM "round_14" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team when they played footscray?`

### 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 was the score of the home team when they played footscray?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the away team scored 9.14 (68)?`

### 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 `Where was the game played when the away team scored 9.14 (68)?`:
```sql
                SELECT "venue" FROM "round_14" WHERE "away_team_score"='9.14 (68)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the home team of essendon?`

### 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 was the score for the home team of essendon?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the Essendon home team?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the Essendon home team?`:
```sql
                SELECT "home_team_score" FROM "round_16" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd for the Richmond home team?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the smallest crowd for the Richmond home team?`:
```sql
                SELECT MIN("crowd") FROM "round_16" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd at the Brunswick Street Oval?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest crowd at the Brunswick Street Oval?`:
```sql
                SELECT MAX("crowd") FROM "round_16" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when VFL played at Windy Hill?`

### 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 `Who was the home team when VFL played at Windy Hill?`:
```sql
                SELECT "home_team" FROM "round_15" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when the VFL played 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 `What was the attendance when the VFL played Glenferrie Oval?`:
```sql
                SELECT SUM("crowd") FROM "round_15" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance 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_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 was the attendance when North Melbourne was the away team?`:
```sql
                SELECT AVG("crowd") FROM "round_15" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`When did Essendon play as the home 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 `When did Essendon play as the home team?`:
```sql
                SELECT "date" FROM "round_15" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Can you give me the age of the Virtues of Wisdom?`

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

CREATE TABLE "the_stages" (
  "approximate_age" text,
  "virtues" text,
  "psycho_social_crisis" text,
  "significant_relationship" text,
  "existential_question_not_in_citation_given" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you give me the age of the Virtues of Wisdom?`:
```sql
                SELECT "approximate_age" FROM "the_stages" WHERE "virtues"='wisdom';
```
## Task
Generate a SQL query to answer the following question:
`What Virtue looks at the intimacy vs. isolation crisis?`

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

CREATE TABLE "the_stages" (
  "approximate_age" text,
  "virtues" text,
  "psycho_social_crisis" text,
  "significant_relationship" text,
  "existential_question_not_in_citation_given" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Virtue looks at the intimacy vs. isolation crisis?`:
```sql
                SELECT "virtues" FROM "the_stages" WHERE "psycho_social_crisis"='intimacy vs. isolation';
```
## Task
Generate a SQL query to answer the following question:
`Can you give me the age of the Significant Relationship of Family?`

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

CREATE TABLE "the_stages" (
  "approximate_age" text,
  "virtues" text,
  "psycho_social_crisis" text,
  "significant_relationship" text,
  "existential_question_not_in_citation_given" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you give me the age of the Significant Relationship of Family?`:
```sql
                SELECT "approximate_age" FROM "the_stages" WHERE "significant_relationship"='family';
```
## Task
Generate a SQL query to answer the following question:
`The Significant Relationship of Parents belongs with what Virtue?`

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

CREATE TABLE "the_stages" (
  "approximate_age" text,
  "virtues" text,
  "psycho_social_crisis" text,
  "significant_relationship" text,
  "existential_question_not_in_citation_given" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Significant Relationship of Parents belongs with what Virtue?`:
```sql
                SELECT "virtues" FROM "the_stages" WHERE "significant_relationship"='parents';
```
## Task
Generate a SQL query to answer the following question:
`Who is the away side at windy hill?`

### 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 `Who is the away side at windy hill?`:
```sql
                SELECT "away_team" FROM "round_18" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home side when the away side scores 11.15 (81)?`

### 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 `Who is the home side when the away side scores 11.15 (81)?`:
```sql
                SELECT "home_team" FROM "round_18" WHERE "away_team_score"='11.15 (81)';
```
## Task
Generate a SQL query to answer the following question:
`How many drafts featured fred hoaglin?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drafts featured fred hoaglin?`:
```sql
                SELECT COUNT("overall") FROM "nfl_draft" WHERE "player"='fred hoaglin';
```
## Task
Generate a SQL query to answer the following question:
`What round did the player from delta st. get picked?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did the player from delta st. get picked?`:
```sql
                SELECT "round" FROM "nfl_draft" WHERE "school_club_team"='delta st.';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest overall number for someone from round 16?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest overall number for someone from round 16?`:
```sql
                SELECT MAX("overall") FROM "nfl_draft" WHERE "round"=16;
```
## Task
Generate a SQL query to answer the following question:
`What was the average crowd size when Melbourne was the home 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 was the average crowd size when Melbourne was the home team?`:
```sql
                SELECT AVG("crowd") FROM "round_15" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was North Melbourne's score when they were the home 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 was North Melbourne's score when they were the home team?`:
```sql
                SELECT "away_team_score" FROM "round_15" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is in the ninth position where the tenth position is rabat ajax?`

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

CREATE TABLE "history" (
  "year" text,
  "1st_position" text,
  "2nd_position" text,
  "9th_position" text,
  "10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is in the ninth position where the tenth position is rabat ajax?`:
```sql
                SELECT "9th_position" FROM "history" WHERE "10th_position"='rabat ajax';
```
## Task
Generate a SQL query to answer the following question:
`In what year is the tenth position xghajra?`

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

CREATE TABLE "history" (
  "year" text,
  "1st_position" text,
  "2nd_position" text,
  "9th_position" text,
  "10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year is the tenth position xghajra?`:
```sql
                SELECT "year" FROM "history" WHERE "10th_position"='xghajra';
```
## Task
Generate a SQL query to answer the following question:
`In what year is the 9th position balzan?`

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

CREATE TABLE "history" (
  "year" text,
  "1st_position" text,
  "2nd_position" text,
  "9th_position" text,
  "10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year is the 9th position balzan?`:
```sql
                SELECT "year" FROM "history" WHERE "9th_position"='balzan';
```
## Task
Generate a SQL query to answer the following question:
`Where there is a tenth position of gozo, what is the first position?`

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

CREATE TABLE "history" (
  "year" text,
  "1st_position" text,
  "2nd_position" text,
  "9th_position" text,
  "10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where there is a tenth position of gozo, what is the first position?`:
```sql
                SELECT "1st_position" FROM "history" WHERE "10th_position"='gozo';
```
## Task
Generate a SQL query to answer the following question:
`In what year is the 9th position rabat ajax?`

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

CREATE TABLE "history" (
  "year" text,
  "1st_position" text,
  "2nd_position" text,
  "9th_position" text,
  "10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year is the 9th position rabat ajax?`:
```sql
                SELECT "year" FROM "history" WHERE "9th_position"='rabat ajax';
```
## Task
Generate a SQL query to answer the following question:
`What was Hawthorn's score as the away team?`

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

CREATE TABLE "round_10" (
  "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 Hawthorn's score as the away team?`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team that scored 7.6 (48)?`

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

CREATE TABLE "round_10" (
  "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 that scored 7.6 (48)?`:
```sql
                SELECT "away_team" FROM "round_10" WHERE "away_team_score"='7.6 (48)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at the game at Lake Oval?`

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

CREATE TABLE "round_10" (
  "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 at the game at Lake Oval?`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that scored 8.7 (55)?`

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

CREATE TABLE "round_10" (
  "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 home team that scored 8.7 (55)?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "home_team_score"='8.7 (55)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at the game at Punt Road Oval with a crowd larger than 13,000?`

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

CREATE TABLE "round_10" (
  "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 at the game at Punt Road Oval with a crowd larger than 13,000?`:
```sql
                SELECT "away_team" FROM "round_10" WHERE "crowd">'13,000' AND "venue"='punt road oval';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium held the game that 65,677 people attended?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium held the game that 65,677 people attended?`:
```sql
                SELECT "stadium" FROM "schedule" WHERE "attendance"='65,677';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the game on October 17, 2004?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the game on October 17, 2004?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='october 17, 2004';
```
## Task
Generate a SQL query to answer the following question:
`Which week was the October 17, 2004 game played?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week was the October 17, 2004 game played?`:
```sql
                SELECT "week" FROM "schedule" WHERE "date"='october 17, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What was the Browns record after they played the game at the Paul Brown stadium?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Browns record after they played the game at the Paul Brown stadium?`:
```sql
                SELECT "record" FROM "schedule" WHERE "stadium"='paul brown stadium';
```
## Task
Generate a SQL query to answer the following question:
`Which player went to Gonzaga?`

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

CREATE TABLE "s" (
  "player" text,
  "nationality" text,
  "position" text,
  "from" text,
  "school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to Gonzaga?`:
```sql
                SELECT "player" FROM "s" WHERE "school_country"='gonzaga';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the forward/center who started playing in 1951?`

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

CREATE TABLE "s" (
  "player" text,
  "nationality" text,
  "position" text,
  "from" text,
  "school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the forward/center who started playing in 1951?`:
```sql
                SELECT "nationality" FROM "s" WHERE "position"='forward/center' AND "from"='1951';
```
## Task
Generate a SQL query to answer the following question:
`What school did the guard who began playing in 1991 come from?`

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

CREATE TABLE "s" (
  "player" text,
  "nationality" text,
  "position" text,
  "from" text,
  "school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did the guard who began playing in 1991 come from?`:
```sql
                SELECT "school_country" FROM "s" WHERE "position"='guard' AND "from"='1991';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the guard/forward who began playing in 1977?`

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

CREATE TABLE "s" (
  "player" text,
  "nationality" text,
  "position" text,
  "from" text,
  "school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the guard/forward who began playing in 1977?`:
```sql
                SELECT "nationality" FROM "s" WHERE "position"='guard/forward' AND "from"='1977';
```
## Task
Generate a SQL query to answer the following question:
`Which Rams opponent had a record of 2-3?`

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

CREATE TABLE "schedule" (
  "week" real,
  "opponent" text,
  "result" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rams opponent had a record of 2-3?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "record"='2-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of podiums for the races of 13/15?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "races" text,
  "pole_positions" text,
  "wins" text,
  "podiums" text,
  "fastest_laps" text,
  "points" text,
  "margin_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of podiums for the races of 13/15?`:
```sql
                SELECT "podiums" FROM "champions" WHERE "races"='13/15';
```
## Task
Generate a SQL query to answer the following question:
`How many wins are there for the Races of 12/12?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "races" text,
  "pole_positions" text,
  "wins" text,
  "podiums" text,
  "fastest_laps" text,
  "points" text,
  "margin_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins are there for the Races of 12/12?`:
```sql
                SELECT "wins" FROM "champions" WHERE "races"='12/12';
```
## Task
Generate a SQL query to answer the following question:
`What is the fastest lap for a season smaller than 1979?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "races" text,
  "pole_positions" text,
  "wins" text,
  "podiums" text,
  "fastest_laps" text,
  "points" text,
  "margin_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fastest lap for a season smaller than 1979?`:
```sql
                SELECT "fastest_laps" FROM "champions" WHERE "season"<1979;
```
## Task
Generate a SQL query to answer the following question:
`For the 12/12 races, what is the fastest lap?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "races" text,
  "pole_positions" text,
  "wins" text,
  "podiums" text,
  "fastest_laps" text,
  "points" text,
  "margin_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 12/12 races, what is the fastest lap?`:
```sql
                SELECT "fastest_laps" FROM "champions" WHERE "races"='12/12';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the home team that played at The Brunswick Street Oval to a crowd of 7,000?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the home team that played at The Brunswick Street Oval to a crowd of 7,000?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "crowd">'7,000' AND "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd where Carlton was the away team?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest crowd where Carlton was the away team?`:
```sql
                SELECT MAX("crowd") FROM "round_10" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Which team's home is the Western Oval?`

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

CREATE TABLE "round_10" (
  "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 team's home is the Western Oval?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`Which team's home is the Arden Street Oval?`

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

CREATE TABLE "round_10" (
  "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 team's home is the Arden Street Oval?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance at a Fitzroy match?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance at a Fitzroy match?`:
```sql
                SELECT MIN("crowd") FROM "round_8" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank that corresponds to an all-time rank of 86 and a debut year before 1995?`

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

CREATE TABLE "appearances" (
  "rank" real,
  "all_time_rank" text,
  "name" text,
  "debut_year" real,
  "current_club" text,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank that corresponds to an all-time rank of 86 and a debut year before 1995?`:
```sql
                SELECT MAX("rank") FROM "appearances" WHERE "all_time_rank"='86' AND "debut_year"<1995;
```
## Task
Generate a SQL query to answer the following question:
`What is the current club with more than 368 apps and a debut year earlier than 1994?`

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

CREATE TABLE "appearances" (
  "rank" real,
  "all_time_rank" text,
  "name" text,
  "debut_year" real,
  "current_club" text,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current club with more than 368 apps and a debut year earlier than 1994?`:
```sql
                SELECT "current_club" FROM "appearances" WHERE "apps">368 AND "debut_year"<1994;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank with more than 498 apps, an all time rank of 6, and a debut year later than 1992?`

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

CREATE TABLE "appearances" (
  "rank" real,
  "all_time_rank" text,
  "name" text,
  "debut_year" real,
  "current_club" text,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank with more than 498 apps, an all time rank of 6, and a debut year later than 1992?`:
```sql
                SELECT MAX("rank") FROM "appearances" WHERE "apps">498 AND "all_time_rank"='6' AND "debut_year">1992;
```