cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the NBA Draft for the School Bishop O'Connell High School?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NBA Draft for the School Bishop O'Connell High School?`:
```sql
                SELECT "nba_draft" FROM "2010_boys_team" WHERE "school"='bishop o''connell high school';
```
## Task
Generate a SQL query to answer the following question:
`Which School is located in Winter Park, FL (Hometown)?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School is located in Winter Park, FL (Hometown)?`:
```sql
                SELECT "school" FROM "2010_boys_team" WHERE "hometown"='winter park, fl';
```
## Task
Generate a SQL query to answer the following question:
`When the School is Bishop Luers High School, what is the Hometown?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the School is Bishop Luers High School, what is the Hometown?`:
```sql
                SELECT "hometown" FROM "2010_boys_team" WHERE "school"='bishop luers high school';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hometown for Villanova College?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hometown for Villanova College?`:
```sql
                SELECT "hometown" FROM "2010_boys_team" WHERE "college"='villanova';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at the game when the Thrashers had a record of 18–18–1?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team at the game when the Thrashers had a record of 18–18–1?`:
```sql
                SELECT "home" FROM "december" WHERE "record"='18–18–1';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people?`:
```sql
                SELECT "date" FROM "december" WHERE "decision"='lehtonen' AND "attendance">'17,731';
```
## Task
Generate a SQL query to answer the following question:
`What is the average grid for johnny herbert with a Time/Retired of +1 lap?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average grid for johnny herbert with a Time/Retired of +1 lap?`:
```sql
                SELECT AVG("grid") FROM "classification" WHERE "time_retired"='+1 lap' AND "driver"='johnny herbert';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at mcg?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team at mcg?`:
```sql
                SELECT "away_team" FROM "round_2" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at princes park?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team at princes park?`:
```sql
                SELECT "home_team" FROM "round_2" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″?`

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

CREATE TABLE "2101_2200" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″?`:
```sql
                SELECT "object_type" FROM "2101_2200" WHERE "constellation"='orion' AND "ngc_number">2174 AND "declination_j2000"='°48′06″';
```
## Task
Generate a SQL query to answer the following question:
`Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171?`

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

CREATE TABLE "2101_2200" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171?`:
```sql
                SELECT "right_ascension_j2000" FROM "2101_2200" WHERE "constellation"='mensa' AND "ngc_number">2171;
```
## Task
Generate a SQL query to answer the following question:
`Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s?`

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

CREATE TABLE "2101_2200" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s?`:
```sql
                SELECT MAX("ngc_number") FROM "2101_2200" WHERE "object_type"='open cluster' AND "right_ascension_j2000"='06h01m06s';
```
## Task
Generate a SQL query to answer the following question:
`Which Object type has an NGC number of 2171?`

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

CREATE TABLE "2101_2200" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Object type has an NGC number of 2171?`:
```sql
                SELECT "object_type" FROM "2101_2200" WHERE "ngc_number"=2171;
```
## Task
Generate a SQL query to answer the following question:
`What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?`

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

CREATE TABLE "lieutenant_governors_of_illinois" (
  "lt_governor" text,
  "commission_date" text,
  "end_date" text,
  "governor" text,
  "party" text,
  "term" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?`:
```sql
                SELECT "end_date" FROM "lieutenant_governors_of_illinois" WHERE "governor"='richard j. oglesby' AND "term"='1885–1889';
```
## Task
Generate a SQL query to answer the following question:
`What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?`

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

CREATE TABLE "deep_space_rendezvous" (
  "date_and_time_utc" text,
  "rocket" text,
  "site" text,
  "orbit" text,
  "function" text,
  "decay_utc" text
);
### SQL
Given the database schema, here is the SQL query that answers `What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?`:
```sql
                SELECT "site" FROM "deep_space_rendezvous" WHERE "orbit"='leo' AND "decay_utc"='still in orbit' AND "function"='magnetosphere research';
```
## Task
Generate a SQL query to answer the following question:
`What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?`

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

CREATE TABLE "deep_space_rendezvous" (
  "date_and_time_utc" text,
  "rocket" text,
  "site" text,
  "orbit" text,
  "function" text,
  "decay_utc" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?`:
```sql
                SELECT "date_and_time_utc" FROM "deep_space_rendezvous" WHERE "orbit"='sub-orbital' AND "function"='aeronomy research' AND "rocket"='nike orion' AND "site"='poker flat';
```
## Task
Generate a SQL query to answer the following question:
`what is the tournament when the winning score is 2 and 1?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the tournament when the winning score is 2 and 1?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_5" WHERE "winning_score"='2 and 1';
```
## Task
Generate a SQL query to answer the following question:
`what is the margin of victory for the tournament travelers championship?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the margin of victory for the tournament travelers championship?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "tournament"='travelers championship';
```
## Task
Generate a SQL query to answer the following question:
`what is the margin of victory for the waste management phoenix open tournament?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the margin of victory for the waste management phoenix open tournament?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "tournament"='waste management phoenix open';
```
## Task
Generate a SQL query to answer the following question:
`who is the runner-up when the winning score is −16 (68-70-65-65=268)?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the runner-up when the winning score is −16 (68-70-65-65=268)?`:
```sql
                SELECT "runner_up" FROM "pga_tour_wins_5" WHERE "winning_score"='−16 (68-70-65-65=268)';
```
## Task
Generate a SQL query to answer the following question:
`For which Game 4 did Michael O'Connor play wing position?`

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

CREATE TABLE "1987_series" (
  "position" text,
  "game_1" text,
  "game_2" text,
  "game_3" text,
  "game_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which Game 4 did Michael O'Connor play wing position?`:
```sql
                SELECT "game_4" FROM "1987_series" WHERE "position"='wing' AND "game_1"='michael o''connor';
```
## Task
Generate a SQL query to answer the following question:
`For which Game 4, did David Boyle play in Game 3?`

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

CREATE TABLE "1987_series" (
  "position" text,
  "game_1" text,
  "game_2" text,
  "game_3" text,
  "game_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which Game 4, did David Boyle play in Game 3?`:
```sql
                SELECT "game_4" FROM "1987_series" WHERE "game_3"='david boyle';
```
## Task
Generate a SQL query to answer the following question:
`Which Game 1 has a fullback?`

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

CREATE TABLE "1987_series" (
  "position" text,
  "game_1" text,
  "game_2" text,
  "game_3" text,
  "game_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game 1 has a fullback?`:
```sql
                SELECT "game_1" FROM "1987_series" WHERE "position"='fullback';
```
## Task
Generate a SQL query to answer the following question:
`For which Game 4 did Michael O'Connor play during Game 1?`

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

CREATE TABLE "1987_series" (
  "position" text,
  "game_1" text,
  "game_2" text,
  "game_3" text,
  "game_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which Game 4 did Michael O'Connor play during Game 1?`:
```sql
                SELECT "game_4" FROM "1987_series" WHERE "game_1"='michael o''connor';
```
## Task
Generate a SQL query to answer the following question:
`During Game 2, which position did Andrew Farrar play?`

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

CREATE TABLE "1987_series" (
  "position" text,
  "game_1" text,
  "game_2" text,
  "game_3" text,
  "game_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `During Game 2, which position did Andrew Farrar play?`:
```sql
                SELECT "position" FROM "1987_series" WHERE "game_2"='andrew farrar';
```
## Task
Generate a SQL query to answer the following question:
`During which Game 4, did Brett Kenny play Game 2?`

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

CREATE TABLE "1987_series" (
  "position" text,
  "game_1" text,
  "game_2" text,
  "game_3" text,
  "game_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which Game 4, did Brett Kenny play Game 2?`:
```sql
                SELECT "game_4" FROM "1987_series" WHERE "game_2"='brett kenny';
```
## Task
Generate a SQL query to answer the following question:
`Where was the former private member that was founded in 1891 and left in 1975?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the former private member that was founded in 1891 and left in 1975?`:
```sql
                SELECT "location" FROM "former_members" WHERE "left"=1975 AND "type"='private' AND "founded"=1891;
```
## Task
Generate a SQL query to answer the following question:
`what is the places when for the soviet union with a rank more than 11?`

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

CREATE TABLE "men" (
  "rank" real,
  "name" text,
  "nation" text,
  "sp_fs" real,
  "points" real,
  "places" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the places when for the soviet union with a rank more than 11?`:
```sql
                SELECT SUM("places") FROM "men" WHERE "nation"='soviet union' AND "rank">11;
```
## Task
Generate a SQL query to answer the following question:
`what is the name when the nation is soviet union and the points is 185?`

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

CREATE TABLE "men" (
  "rank" real,
  "name" text,
  "nation" text,
  "sp_fs" real,
  "points" real,
  "places" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when the nation is soviet union and the points is 185?`:
```sql
                SELECT "name" FROM "men" WHERE "nation"='soviet union' AND "points"=185;
```
## Task
Generate a SQL query to answer the following question:
`What constructor has less than 3 laps and grid 15?`

### 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 constructor has less than 3 laps and grid 15?`:
```sql
                SELECT "constructor" FROM "race" WHERE "laps"<3 AND "grid"=15;
```
## Task
Generate a SQL query to answer the following question:
`Which Home team has an Away team of collingwood?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team has an Away team of collingwood?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4`

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

CREATE TABLE "2009_ladder" (
  "mid_gippsland_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4`:
```sql
                SELECT MIN("against") FROM "2009_ladder" WHERE "losses"=4 AND "draws"=0 AND "wins">14;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum against for byes less than 0`

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

CREATE TABLE "2009_ladder" (
  "mid_gippsland_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum against for byes less than 0`:
```sql
                SELECT SUM("against") FROM "2009_ladder" WHERE "byes"<0;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of draws for losses less than 2 and wins of 16`

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

CREATE TABLE "2009_ladder" (
  "mid_gippsland_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of draws for losses less than 2 and wins of 16`:
```sql
                SELECT SUM("draws") FROM "2009_ladder" WHERE "wins"=16 AND "losses"<2;
```
## Task
Generate a SQL query to answer the following question:
`How few laps were finished in 17?`

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

CREATE TABLE "indy_500_career" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How few laps were finished in 17?`:
```sql
                SELECT MIN("laps") FROM "indy_500_career" WHERE "finish"='17';
```
## Task
Generate a SQL query to answer the following question:
`What is 1966's Qual rating?`

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

CREATE TABLE "indy_500_career" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1966's Qual rating?`:
```sql
                SELECT "qual" FROM "indy_500_career" WHERE "year"='1966';
```
## Task
Generate a SQL query to answer the following question:
`What race has a finish time of 10?`

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

CREATE TABLE "indy_500_career" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What race has a finish time of 10?`:
```sql
                SELECT "start" FROM "indy_500_career" WHERE "finish"='10';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest lap with a rank of 30?`

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

CREATE TABLE "indy_500_career" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest lap with a rank of 30?`:
```sql
                SELECT MIN("laps") FROM "indy_500_career" WHERE "rank"='30';
```
## Task
Generate a SQL query to answer the following question:
`What finish time started at 32?`

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

CREATE TABLE "indy_500_career" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What finish time started at 32?`:
```sql
                SELECT "finish" FROM "indy_500_career" WHERE "start"='32';
```
## Task
Generate a SQL query to answer the following question:
`Who is the lowest ranked player from the United States that has less than 3 Wins?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the lowest ranked player from the United States that has less than 3 Wins?`:
```sql
                SELECT MIN("rank") FROM "leaders" WHERE "country"='united states' AND "wins"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game that had a visiting team of Edmonton?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game that had a visiting team of Edmonton?`:
```sql
                SELECT "score" FROM "game_log" WHERE "visitor"='edmonton';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg?`:
```sql
                SELECT "record" FROM "game_log" WHERE "home"='colorado' AND "visitor"='winnipeg';
```
## Task
Generate a SQL query to answer the following question:
`What team was visiting on February 15?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was visiting on February 15?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "date"='february 15';
```
## Task
Generate a SQL query to answer the following question:
`What theme had an issue price of $489.95 after 2005?`

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

CREATE TABLE "canadian_commerce" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What theme had an issue price of $489.95 after 2005?`:
```sql
                SELECT "theme" FROM "canadian_commerce" WHERE "issue_price"='$489.95' AND "year">2005;
```
## Task
Generate a SQL query to answer the following question:
`What year was the timber trade?`

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

CREATE TABLE "canadian_commerce" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the timber trade?`:
```sql
                SELECT SUM("year") FROM "canadian_commerce" WHERE "theme"='timber trade';
```
## Task
Generate a SQL query to answer the following question:
`What year has an issue price of $697.95?`

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

CREATE TABLE "canadian_commerce" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has an issue price of $697.95?`:
```sql
                SELECT COUNT("year") FROM "canadian_commerce" WHERE "issue_price"='$697.95';
```
## Task
Generate a SQL query to answer the following question:
`What was the engine driven by Jean-Pierre Jarier and has a chassis of PC4?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the engine driven by Jean-Pierre Jarier and has a chassis of PC4?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "driver"='jean-pierre jarier' AND "chassis"='pc4';
```
## Task
Generate a SQL query to answer the following question:
`What Season had Dundee United as a Winner?`

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

CREATE TABLE "results" (
  "season" text,
  "winners" text,
  "score" text,
  "runners_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Season had Dundee United as a Winner?`:
```sql
                SELECT "season" FROM "results" WHERE "winners"='dundee united';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park?`

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

CREATE TABLE "results" (
  "season" text,
  "winners" text,
  "score" text,
  "runners_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park?`:
```sql
                SELECT "score" FROM "results" WHERE "venue"='hampden park' AND "runners_up"='rangers' AND "winners"='hibernian';
```
## Task
Generate a SQL query to answer the following question:
`What Runners-up have a Venue in Broadwood Stadium?`

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

CREATE TABLE "results" (
  "season" text,
  "winners" text,
  "score" text,
  "runners_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Runners-up have a Venue in Broadwood Stadium?`:
```sql
                SELECT "runners_up" FROM "results" WHERE "venue"='broadwood stadium';
```
## Task
Generate a SQL query to answer the following question:
`When is the completed date of the destroyer with a pennant number h63?`

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

CREATE TABLE "g_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the completed date of the destroyer with a pennant number h63?`:
```sql
                SELECT "completed" FROM "g_class" WHERE "pennant_number"='h63';
```
## Task
Generate a SQL query to answer the following question:
`When is the completed date of the destroyer with a pennant number h59?`

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

CREATE TABLE "g_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the completed date of the destroyer with a pennant number h59?`:
```sql
                SELECT "completed" FROM "g_class" WHERE "pennant_number"='h59';
```
## Task
Generate a SQL query to answer the following question:
`What ship has a pennant number h05?`

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

CREATE TABLE "g_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ship has a pennant number h05?`:
```sql
                SELECT "ship" FROM "g_class" WHERE "pennant_number"='h05';
```
## Task
Generate a SQL query to answer the following question:
`What is the launched date of the destroyer completed 25 February 1936?`

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

CREATE TABLE "g_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launched date of the destroyer completed 25 February 1936?`:
```sql
                SELECT "launched" FROM "g_class" WHERE "completed"='25 february 1936';
```
## Task
Generate a SQL query to answer the following question:
`What is the launched date of the destroyer completed 1 July 1936?`

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

CREATE TABLE "g_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launched date of the destroyer completed 1 July 1936?`:
```sql
                SELECT "launched" FROM "g_class" WHERE "completed"='1 july 1936';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score when the VFL played at Western Oval?`

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

CREATE TABLE "round_19" (
  "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 score when the VFL played at Western Oval?`:
```sql
                SELECT "home_team_score" FROM "round_19" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was North Melbourne's home opponent?`

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

CREATE TABLE "round_19" (
  "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 North Melbourne's home opponent?`:
```sql
                SELECT "home_team" FROM "round_19" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score when the VFL played at Princes Park?`

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

CREATE TABLE "round_19" (
  "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 score when the VFL played at Princes Park?`:
```sql
                SELECT "home_team_score" FROM "round_19" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?`

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

CREATE TABLE "alpine_club_classification" (
  "ave_no" real,
  "name" text,
  "country" text,
  "highest_mountain" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?`:
```sql
                SELECT SUM("ave_no") FROM "alpine_club_classification" WHERE "name"='albula alps' AND "height_m">3418;
```
## Task
Generate a SQL query to answer the following question:
`Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?`

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

CREATE TABLE "alpine_club_classification" (
  "ave_no" real,
  "name" text,
  "country" text,
  "highest_mountain" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?`:
```sql
                SELECT MIN("height_m") FROM "alpine_club_classification" WHERE "name"='plessur alps' AND "ave_no">63;
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a Height (m) of 2980?`

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

CREATE TABLE "alpine_club_classification" (
  "ave_no" real,
  "name" text,
  "country" text,
  "highest_mountain" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Height (m) of 2980?`:
```sql
                SELECT "name" FROM "alpine_club_classification" WHERE "height_m"=2980;
```
## Task
Generate a SQL query to answer the following question:
`Which AVE-No has a Name of livigno alps?`

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

CREATE TABLE "alpine_club_classification" (
  "ave_no" real,
  "name" text,
  "country" text,
  "highest_mountain" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which AVE-No has a Name of livigno alps?`:
```sql
                SELECT MIN("ave_no") FROM "alpine_club_classification" WHERE "name"='livigno alps';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?`

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

CREATE TABLE "grands_prix" (
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?`:
```sql
                SELECT "winning_driver" FROM "grands_prix" WHERE "fastest_lap"='michael schumacher' AND "constructor"='ferrari' AND "pole_position"='jenson button';
```
## Task
Generate a SQL query to answer the following question:
`What was the pole position at the san marino grand prix with michael schumacher as winning driver?`

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

CREATE TABLE "grands_prix" (
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the pole position at the san marino grand prix with michael schumacher as winning driver?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "winning_driver"='michael schumacher' AND "grand_prix"='san marino grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Name the Grand Prix for pole position of kimi räikkönen`

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

CREATE TABLE "grands_prix" (
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Grand Prix for pole position of kimi räikkönen`:
```sql
                SELECT "grand_prix" FROM "grands_prix" WHERE "pole_position"='kimi räikkönen';
```
## Task
Generate a SQL query to answer the following question:
`How many Established groups have a multicultural sub category?`

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

CREATE TABLE "annual_events" (
  "event_name" text,
  "established" real,
  "category" text,
  "sub_category" text,
  "main_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Established groups have a multicultural sub category?`:
```sql
                SELECT COUNT("established") FROM "annual_events" WHERE "sub_category"='multicultural';
```
## Task
Generate a SQL query to answer the following question:
`Which is the category of the group was establishe in 1990?`

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

CREATE TABLE "annual_events" (
  "event_name" text,
  "established" real,
  "category" text,
  "sub_category" text,
  "main_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the category of the group was establishe in 1990?`:
```sql
                SELECT "category" FROM "annual_events" WHERE "established"=1990;
```
## Task
Generate a SQL query to answer the following question:
`What is the category of the touchdown atlantic?`

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

CREATE TABLE "annual_events" (
  "event_name" text,
  "established" real,
  "category" text,
  "sub_category" text,
  "main_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the category of the touchdown atlantic?`:
```sql
                SELECT "category" FROM "annual_events" WHERE "event_name"='touchdown atlantic';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for 13 october 2004`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for 13 october 2004`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='13 october 2004';
```
## Task
Generate a SQL query to answer the following question:
`Name the date that has a friendly competition at rheinpark stadion, vaduz`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date that has a friendly competition at rheinpark stadion, vaduz`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='friendly' AND "venue"='rheinpark stadion, vaduz';
```
## Task
Generate a SQL query to answer the following question:
`Who is the constructor of John Surtees's Oulton Park circuit car?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the constructor of John Surtees's Oulton Park circuit car?`:
```sql
                SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='oulton park' AND "winning_driver"='john surtees';
```
## Task
Generate a SQL query to answer the following question:
`Which race was Matra the constructor?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race was Matra the constructor?`:
```sql
                SELECT "race_name" FROM "non_championship_race_results" WHERE "constructor"='matra';
```
## Task
Generate a SQL query to answer the following question:
`Which race was at Hockenheim circuit?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race was at Hockenheim circuit?`:
```sql
                SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='hockenheim';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner of the XII Spring Trophy race with BRM as the constructor?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of the XII Spring Trophy race with BRM as the constructor?`:
```sql
                SELECT "winning_driver" FROM "non_championship_race_results" WHERE "constructor"='brm' AND "race_name"='xii spring trophy';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team at victoria park?`

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

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

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has an Away team score of 17.14 (116)?`:
```sql
                SELECT "venue" FROM "round_8" WHERE "away_team_score"='17.14 (116)';
```
## Task
Generate a SQL query to answer the following question:
`Which away team is from junction oval?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team is from junction oval?`:
```sql
                SELECT "away_team" FROM "round_8" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team score has Home team score of 13.12 (90)?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Away team score has Home team score of 13.12 (90)?`:
```sql
                SELECT "away_team_score" FROM "round_8" WHERE "home_team_score"='13.12 (90)';
```
## Task
Generate a SQL query to answer the following question:
`What was the term of Hon Peter Morris?`

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

CREATE TABLE "notes" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the term of Hon Peter Morris?`:
```sql
                SELECT "term_in_office" FROM "notes" WHERE "member"='hon peter morris';
```
## Task
Generate a SQL query to answer the following question:
`What party is the member that has an electorate of Lindsay?`

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

CREATE TABLE "notes" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party is the member that has an electorate of Lindsay?`:
```sql
                SELECT "party" FROM "notes" WHERE "electorate"='lindsay';
```