cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the name of the 1st Party that has a 3rd Party of Unionist, and 2nd Member of Sir John Boyd-Orr?`

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

CREATE TABLE "members_of_parliament" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text,
  "3rd_member" text,
  "3rd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the 1st Party that has a 3rd Party of Unionist, and 2nd Member of Sir John Boyd-Orr?`:
```sql
                SELECT "1st_party" FROM "members_of_parliament" WHERE "3rd_party"='unionist' AND "2nd_member"='sir john boyd-orr';
```
## Task
Generate a SQL query to answer the following question:
`Which Election had 2nd Member George Alexander Morrison, a 1st Party of Unionist, and 3rd Member of John Buchan?`

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

CREATE TABLE "members_of_parliament" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text,
  "3rd_member" text,
  "3rd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Election had 2nd Member George Alexander Morrison, a 1st Party of Unionist, and 3rd Member of John Buchan?`:
```sql
                SELECT "election" FROM "members_of_parliament" WHERE "2nd_member"='george alexander morrison' AND "1st_party"='unionist' AND "3rd_member"='john buchan';
```
## Task
Generate a SQL query to answer the following question:
`What was the 2nd Party in the 1918 Election?`

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

CREATE TABLE "members_of_parliament" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text,
  "3rd_member" text,
  "3rd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2nd Party in the 1918 Election?`:
```sql
                SELECT "2nd_party" FROM "members_of_parliament" WHERE "election"='1918';
```
## Task
Generate a SQL query to answer the following question:
`What 3rd Member had 2nd Member of University Constituencies abolished?`

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

CREATE TABLE "members_of_parliament" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text,
  "3rd_member" text,
  "3rd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 3rd Member had 2nd Member of University Constituencies abolished?`:
```sql
                SELECT "3rd_member" FROM "members_of_parliament" WHERE "2nd_member"='university constituencies abolished';
```
## Task
Generate a SQL query to answer the following question:
`What was the 3rd Party in the Election of 1922?`

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

CREATE TABLE "members_of_parliament" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text,
  "3rd_member" text,
  "3rd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 3rd Party in the Election of 1922?`:
```sql
                SELECT "3rd_party" FROM "members_of_parliament" WHERE "election"='1922';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st Party when the 2nd Party was Independent?`

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

CREATE TABLE "members_of_parliament" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text,
  "3rd_member" text,
  "3rd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1st Party when the 2nd Party was Independent?`:
```sql
                SELECT "1st_party" FROM "members_of_parliament" WHERE "2nd_party"='independent';
```
## Task
Generate a SQL query to answer the following question:
`What is the ERP W number where the frequency is smaller than 91.1?`

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

CREATE TABLE "broadcast_translators_of_whrz_lp" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ERP W number where the frequency is smaller than 91.1?`:
```sql
                SELECT MAX("erp_w") FROM "broadcast_translators_of_whrz_lp" WHERE "frequency_m_hz"<91.1;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of Collingwood?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of Collingwood?`:
```sql
                SELECT "home_team_score" FROM "round_1" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Where did South Melbourne play?`

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

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

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of North Melbourne?`:
```sql
                SELECT "venue" FROM "round_1" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss from the coyotes as opponents?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss from the coyotes as opponents?`:
```sql
                SELECT "loss" FROM "regular_season" WHERE "opponent"='coyotes';
```
## Task
Generate a SQL query to answer the following question:
`What was the last episode featuring Rob Estes?`

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

CREATE TABLE "relatives_of_law_enforcement" (
  "character" text,
  "actor" text,
  "first_episode" text,
  "final_episode" text,
  "episode_count" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the last episode featuring Rob Estes?`:
```sql
                SELECT "final_episode" FROM "relatives_of_law_enforcement" WHERE "actor"='rob estes';
```
## Task
Generate a SQL query to answer the following question:
`What block has a COSPAR ID of 1995-060a?`

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

CREATE TABLE "spacecraft" (
  "name" text,
  "block" text,
  "launch_date_time_utc" text,
  "cospar_id" text,
  "rocket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What block has a COSPAR ID of 1995-060a?`:
```sql
                SELECT "block" FROM "spacecraft" WHERE "cospar_id"='1995-060a';
```
## Task
Generate a SQL query to answer the following question:
`What rocket has a Block of block i and a COSPAR ID of 1995-060a?`

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

CREATE TABLE "spacecraft" (
  "name" text,
  "block" text,
  "launch_date_time_utc" text,
  "cospar_id" text,
  "rocket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rocket has a Block of block i and a COSPAR ID of 1995-060a?`:
```sql
                SELECT "rocket" FROM "spacecraft" WHERE "block"='block i' AND "cospar_id"='1995-060a';
```
## Task
Generate a SQL query to answer the following question:
`What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid?`

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

CREATE TABLE "spacecraft" (
  "name" text,
  "block" text,
  "launch_date_time_utc" text,
  "cospar_id" text,
  "rocket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid?`:
```sql
                SELECT "name" FROM "spacecraft" WHERE "rocket"='titan iv(401)b' AND "block"='block i/ii hybrid';
```
## Task
Generate a SQL query to answer the following question:
`What rocket has a block i/ii hybrid?`

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

CREATE TABLE "spacecraft" (
  "name" text,
  "block" text,
  "launch_date_time_utc" text,
  "cospar_id" text,
  "rocket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rocket has a block i/ii hybrid?`:
```sql
                SELECT "rocket" FROM "spacecraft" WHERE "block"='block i/ii hybrid';
```
## Task
Generate a SQL query to answer the following question:
`What rocket has a COSPAR ID of 2002-001a?`

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

CREATE TABLE "spacecraft" (
  "name" text,
  "block" text,
  "launch_date_time_utc" text,
  "cospar_id" text,
  "rocket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rocket has a COSPAR ID of 2002-001a?`:
```sql
                SELECT "rocket" FROM "spacecraft" WHERE "cospar_id"='2002-001a';
```
## Task
Generate a SQL query to answer the following question:
`What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01?`

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

CREATE TABLE "spacecraft" (
  "name" text,
  "block" text,
  "launch_date_time_utc" text,
  "cospar_id" text,
  "rocket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01?`:
```sql
                SELECT "cospar_id" FROM "spacecraft" WHERE "launch_date_time_utc"='1995-11-06, 05:15:01';
```
## Task
Generate a SQL query to answer the following question:
`On 15/04/07 in the competition Super League XII, what was the score?`

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

CREATE TABLE "2007_fixtures_results" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "goals" text,
  "attendance" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On 15/04/07 in the competition Super League XII, what was the score?`:
```sql
                SELECT "score" FROM "2007_fixtures_results" WHERE "competition"='super league xii' AND "date"='15/04/07';
```
## Task
Generate a SQL query to answer the following question:
`On 21/07/07, what was the score?`

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

CREATE TABLE "2007_fixtures_results" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "goals" text,
  "attendance" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On 21/07/07, what was the score?`:
```sql
                SELECT "score" FROM "2007_fixtures_results" WHERE "date"='21/07/07';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue of season 1907?`

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

CREATE TABLE "best_figures_in_a_match" (
  "bowling" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue of season 1907?`:
```sql
                SELECT "venue" FROM "best_figures_in_a_match" WHERE "season"='1907';
```
## Task
Generate a SQL query to answer the following question:
`What is the bowling score of season 1907?`

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

CREATE TABLE "best_figures_in_a_match" (
  "bowling" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bowling score of season 1907?`:
```sql
                SELECT "bowling" FROM "best_figures_in_a_match" WHERE "season"='1907';
```
## Task
Generate a SQL query to answer the following question:
`Which season did Tich Freeman play against opponent V Warwickshire?`

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

CREATE TABLE "best_figures_in_a_match" (
  "bowling" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season did Tich Freeman play against opponent V Warwickshire?`:
```sql
                SELECT "season" FROM "best_figures_in_a_match" WHERE "player"='tich freeman' AND "opponent"='v warwickshire';
```
## Task
Generate a SQL query to answer the following question:
`What was Essendon's score at the game where they were the away team and the crowd was larger than 15,130?`

### 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 Essendon's score at the game where they were the away team and the crowd was larger than 15,130?`:
```sql
                SELECT "away_team_score" FROM "round_15" WHERE "crowd">'15,130' AND "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What was South Melbourne's score 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 `What was South Melbourne's score as the home team?`:
```sql
                SELECT "home_team_score" FROM "round_15" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was Richmond's score as the home team at the game with a crowd larger than 15,130?`

### 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 Richmond's score as the home team at the game with a crowd larger than 15,130?`:
```sql
                SELECT "home_team_score" FROM "round_15" WHERE "crowd">'15,130' AND "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the home team Essendon score?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the home team Essendon score?`:
```sql
                SELECT "home_team_score" FROM "round_8" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What character is in over 22 episodes?`

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

CREATE TABLE "cast" (
  "actor" text,
  "character" text,
  "duration" text,
  "no_of_series" text,
  "episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What character is in over 22 episodes?`:
```sql
                SELECT "character" FROM "cast" WHERE "episodes">22;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of episodes for anabel barnston?`

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

CREATE TABLE "cast" (
  "actor" text,
  "character" text,
  "duration" text,
  "no_of_series" text,
  "episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of episodes for anabel barnston?`:
```sql
                SELECT MIN("episodes") FROM "cast" WHERE "actor"='anabel barnston';
```
## Task
Generate a SQL query to answer the following question:
`What character is played by dani harmer for under 23 episodes?`

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

CREATE TABLE "cast" (
  "actor" text,
  "character" text,
  "duration" text,
  "no_of_series" text,
  "episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What character is played by dani harmer for under 23 episodes?`:
```sql
                SELECT "character" FROM "cast" WHERE "episodes"<23 AND "actor"='dani harmer';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have a duration of 3?`

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

CREATE TABLE "cast" (
  "actor" text,
  "character" text,
  "duration" text,
  "no_of_series" text,
  "episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have a duration of 3?`:
```sql
                SELECT COUNT("episodes") FROM "cast" WHERE "duration"='3';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the home team score 22.11 (143)?`

### 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 `On what date did the home team score 22.11 (143)?`:
```sql
                SELECT "date" FROM "round_14" WHERE "home_team_score"='22.11 (143)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the home team whose opponent scored 18.16 (124)?`

### 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 name of the home team whose opponent scored 18.16 (124)?`:
```sql
                SELECT "home_team" FROM "round_14" WHERE "away_team_score"='18.16 (124)';
```
## Task
Generate a SQL query to answer the following question:
`What is the size of the crowd for the game where the away team scored 18.16 (124)?`

### 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 size of the crowd for the game where the away team scored 18.16 (124)?`:
```sql
                SELECT MIN("crowd") FROM "round_14" WHERE "away_team_score"='18.16 (124)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the away team who play Collingwood?`

### 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 name of the away team who play Collingwood?`:
```sql
                SELECT "away_team" FROM "round_14" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What date did Collingwood play as 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 date did Collingwood play as the home team?`:
```sql
                SELECT "date" FROM "round_14" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?`

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

CREATE TABLE "owned_and_operated" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_rf" text,
  "year_of_affiliation" real,
  "year_of_disaffiliation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?`:
```sql
                SELECT MAX("year_of_disaffiliation") FROM "owned_and_operated" WHERE "station"='chch-tv' AND "year_of_affiliation">2001;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year of disaffiliation of a CHCH-TV station, licensed in Hamilton, Ontario?`

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

CREATE TABLE "owned_and_operated" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_rf" text,
  "year_of_affiliation" real,
  "year_of_disaffiliation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year of disaffiliation of a CHCH-TV station, licensed in Hamilton, Ontario?`:
```sql
                SELECT MIN("year_of_disaffiliation") FROM "owned_and_operated" WHERE "city_of_license_market"='hamilton, ontario';
```
## Task
Generate a SQL query to answer the following question:
`How many bronze medals did west germany win when they had less than 2 silver medals?`

### 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 `How many bronze medals did west germany win when they had less than 2 silver medals?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='west germany' AND "silver"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?`

### 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 `How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "total">2 AND "gold">2;
```
## Task
Generate a SQL query to answer the following question:
`How many gold medals were won when more than 2 bronze medals were won?`

### 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 `How many gold medals were won when more than 2 bronze medals were won?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "bronze">2;
```
## Task
Generate a SQL query to answer the following question:
`What was the PI GP fpr pick# 235 for Rd# larger than 12?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the PI GP fpr pick# 235 for Rd# larger than 12?`:
```sql
                SELECT MIN("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"=235 AND "rd_num">12;
```
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd when South Melbourne 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 when South Melbourne was the away team?`:
```sql
                SELECT MAX("crowd") FROM "round_10" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is richmond's scores when they are the home team?`

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

CREATE TABLE "round_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 richmond's scores when they are the home team?`:
```sql
                SELECT "home_team_score" FROM "round_10" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is south melbourne's scores when they are 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 is south melbourne's scores when they are the away team?`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What dates were the matches at windy hill?`

### 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 dates were the matches at windy hill?`:
```sql
                SELECT "date" FROM "round_10" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of laps for the driver Piero Taruffi?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of laps for the driver Piero Taruffi?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "driver"='piero taruffi';
```
## Task
Generate a SQL query to answer the following question:
`Which driver has 12 laps and a grid of less than 10?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver has 12 laps and a grid of less than 10?`:
```sql
                SELECT "driver" FROM "race" WHERE "laps"=12 AND "grid"<10;
```
## Task
Generate a SQL query to answer the following question:
`What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta?`

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

CREATE TABLE "2008" (
  "date_of_issue" text,
  "theme" text,
  "design" text,
  "illustration" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta?`:
```sql
                SELECT "illustration" FROM "2008" WHERE "design"='tim nokes' AND "first_day_cover_cancellation"='calgary, alberta';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of Issue with a Theme with mental health?`

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

CREATE TABLE "2008" (
  "date_of_issue" text,
  "theme" text,
  "design" text,
  "illustration" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Issue with a Theme with mental health?`:
```sql
                SELECT "date_of_issue" FROM "2008" WHERE "theme"='mental health';
```
## Task
Generate a SQL query to answer the following question:
`What is the Theme with a Design with sputnik design partners?`

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

CREATE TABLE "2008" (
  "date_of_issue" text,
  "theme" text,
  "design" text,
  "illustration" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Theme with a Design with sputnik design partners?`:
```sql
                SELECT "theme" FROM "2008" WHERE "design"='sputnik design partners';
```
## Task
Generate a SQL query to answer the following question:
`What is the Paper Type with a First Day Cover Cancellation with ottawa, on?`

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

CREATE TABLE "2008" (
  "date_of_issue" text,
  "theme" text,
  "design" text,
  "illustration" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Paper Type with a First Day Cover Cancellation with ottawa, on?`:
```sql
                SELECT "paper_type" FROM "2008" WHERE "first_day_cover_cancellation"='ottawa, on';
```
## Task
Generate a SQL query to answer the following question:
`What is the Paper Type with an Illustration with martin dee, ubc public affairs?`

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

CREATE TABLE "2008" (
  "date_of_issue" text,
  "theme" text,
  "design" text,
  "illustration" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Paper Type with an Illustration with martin dee, ubc public affairs?`:
```sql
                SELECT "paper_type" FROM "2008" WHERE "illustration"='martin dee, ubc public affairs';
```
## Task
Generate a SQL query to answer the following question:
`What is the Theme with a Paper Type of tullis russell coatings, and a Date with Issue of 1 october 2008?`

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

CREATE TABLE "2008" (
  "date_of_issue" text,
  "theme" text,
  "design" text,
  "illustration" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Theme with a Paper Type of tullis russell coatings, and a Date with Issue of 1 october 2008?`:
```sql
                SELECT "theme" FROM "2008" WHERE "paper_type"='tullis russell coatings' AND "date_of_issue"='1 october 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the tie number when the away team is Lewes?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tie number when the away team is Lewes?`:
```sql
                SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='lewes';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team when the home team is Cheltenham Town?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team when the home team is Cheltenham Town?`:
```sql
                SELECT "away_team" FROM "first_round_proper" WHERE "home_team"='cheltenham town';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team of the game with tie number 34?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team of the game with tie number 34?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='34';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team of the game with tie number 31?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team of the game with tie number 31?`:
```sql
                SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='31';
```
## Task
Generate a SQL query to answer the following question:
`How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?`:
```sql
                SELECT SUM("goals_for") FROM "final_standing" WHERE "wins"<4 AND "losses">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the average losses for the team(s) that played more than 8 games?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average losses for the team(s) that played more than 8 games?`:
```sql
                SELECT AVG("losses") FROM "final_standing" WHERE "games_played">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the fleet size of the Vanguard 0-6-0dh class?`

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

CREATE TABLE "fleet_details" (
  "class" text,
  "type" text,
  "introduced" text,
  "fleet_size" real,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fleet size of the Vanguard 0-6-0dh class?`:
```sql
                SELECT "fleet_size" FROM "fleet_details" WHERE "class"='vanguard 0-6-0dh';
```
## Task
Generate a SQL query to answer the following question:
`What is the year of introduction for the Electro-Diesel locomotive?`

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

CREATE TABLE "fleet_details" (
  "class" text,
  "type" text,
  "introduced" text,
  "fleet_size" real,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of introduction for the Electro-Diesel locomotive?`:
```sql
                SELECT "introduced" FROM "fleet_details" WHERE "type"='electro-diesel locomotive';
```
## Task
Generate a SQL query to answer the following question:
`What is the average fleet size for the Shunter type introduced in 1959?`

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

CREATE TABLE "fleet_details" (
  "class" text,
  "type" text,
  "introduced" text,
  "fleet_size" real,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average fleet size for the Shunter type introduced in 1959?`:
```sql
                SELECT AVG("fleet_size") FROM "fleet_details" WHERE "type"='shunter' AND "introduced"='1959';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest fleet size with a type of shunter introduced in 1953?`

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

CREATE TABLE "fleet_details" (
  "class" text,
  "type" text,
  "introduced" text,
  "fleet_size" real,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest fleet size with a type of shunter introduced in 1953?`:
```sql
                SELECT MIN("fleet_size") FROM "fleet_details" WHERE "type"='shunter' AND "introduced"='1953';
```
## Task
Generate a SQL query to answer the following question:
`What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions?`

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

CREATE TABLE "weekly_ratings" (
  "episode" text,
  "air_date" text,
  "time_slot_est" text,
  "rating" real,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" real,
  "rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions?`:
```sql
                SELECT MIN("viewers_m") FROM "weekly_ratings" WHERE "air_date"='january 24, 2008' AND "rating">3.6;
```
## Task
Generate a SQL query to answer the following question:
`Which round has a car with a chassis of sf01?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has a car with a chassis of sf01?`:
```sql
                SELECT "rounds" FROM "teams_and_drivers" WHERE "chassis"='sf01';
```
## Task
Generate a SQL query to answer the following question:
`Which country has swimsuit more than 9.46 and interview more than 9.22 with average less than 9.6?`

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

CREATE TABLE "scores" (
  "country" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has swimsuit more than 9.46 and interview more than 9.22 with average less than 9.6?`:
```sql
                SELECT "country" FROM "scores" WHERE "average"<9.6 AND "interview">9.22 AND "swimsuit">9.46;
```
## Task
Generate a SQL query to answer the following question:
`Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?`

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

CREATE TABLE "scores" (
  "country" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?`:
```sql
                SELECT COUNT("evening_gown") FROM "scores" WHERE "swimsuit"<9.36 AND "average"<9.23;
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77`

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

CREATE TABLE "scores" (
  "country" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77`:
```sql
                SELECT MIN("average") FROM "scores" WHERE "interview">9.57 AND "country"='delaware' AND "evening_gown">9.77;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73`

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

CREATE TABLE "scores" (
  "country" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73`:
```sql
                SELECT SUM("swimsuit") FROM "scores" WHERE "average">9.23 AND "country"='delaware' AND "interview">9.73;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of average for interview more than 9.57 and swimsuit more than 9.65`

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

CREATE TABLE "scores" (
  "country" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of average for interview more than 9.57 and swimsuit more than 9.65`:
```sql
                SELECT SUM("average") FROM "scores" WHERE "interview">9.57 AND "swimsuit">9.65;
```
## Task
Generate a SQL query to answer the following question:
`Name the evening gown for swimsuit more than 9.51 for maryland`

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

CREATE TABLE "scores" (
  "country" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the evening gown for swimsuit more than 9.51 for maryland`:
```sql
                SELECT "evening_gown" FROM "scores" WHERE "swimsuit">9.51 AND "country"='maryland';
```
## Task
Generate a SQL query to answer the following question:
`What points awarded are higher than 6 but smaller than 9`

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

CREATE TABLE "ranking_points" (
  "finishing_position" text,
  "points_awarded_platinum" real,
  "points_awarded_gold" real,
  "points_awarded_silver" real,
  "points_awarded_satellite" real
);
### SQL
Given the database schema, here is the SQL query that answers `What points awarded are higher than 6 but smaller than 9`:
```sql
                SELECT MAX("points_awarded_platinum") FROM "ranking_points" WHERE "points_awarded_gold"=9 AND "points_awarded_silver">6;
```
## Task
Generate a SQL query to answer the following question:
`In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?`:
```sql
                SELECT "tyre" FROM "season_review" WHERE "pole_position"='jacky ickx' AND "race"='canadian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit?`:
```sql
                SELECT "circuit" FROM "season_review" WHERE "tyre"='d' AND "pole_position"='jochen rindt' AND "fastest_lap"='jackie stewart';
```
## Task
Generate a SQL query to answer the following question:
`What was the circuit when Jochen Rindt won?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the circuit when Jochen Rindt won?`:
```sql
                SELECT "circuit" FROM "season_review" WHERE "winning_driver"='jochen rindt';
```
## Task
Generate a SQL query to answer the following question:
`What tyre was used in Kyalami?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tyre was used in Kyalami?`:
```sql
                SELECT "tyre" FROM "season_review" WHERE "circuit"='kyalami';
```