cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When Richmond was the Home team, who was the away team?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Richmond was the Home team, who was the away team?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Which home team plays in the Corio Oval venue?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team plays in the Corio Oval venue?`:
```sql
                SELECT "home_team" FROM "round_1" WHERE "venue"='corio oval';
```
## Task
Generate a SQL query to answer the following question:
`When the game was played at the EMCG venue, who was the away team?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the game was played at the EMCG venue, who was the away team?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "venue"='emcg';
```
## Task
Generate a SQL query to answer the following question:
`who is the constructor when the driver is jenson button?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the constructor when the driver is jenson button?`:
```sql
                SELECT "constructor" FROM "race" WHERE "driver"='jenson button';
```
## Task
Generate a SQL query to answer the following question:
`what is the grid when the time/retired is +27.112?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the grid when the time/retired is +27.112?`:
```sql
                SELECT "grid" FROM "race" WHERE "time_retired"='+27.112';
```
## Task
Generate a SQL query to answer the following question:
`I want the fewest Laps for Huub Rothengatter and grid less than 24`

### 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 `I want the fewest Laps for Huub Rothengatter and grid less than 24`:
```sql
                SELECT MIN("laps") FROM "classification" WHERE "driver"='huub rothengatter' AND "grid"<24;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the time/retired with Laps of 47 and driver of rené arnoux`

### 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 `Tell me the time/retired with Laps of 47 and driver of rené arnoux`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "laps"=47 AND "driver"='rené arnoux';
```
## Task
Generate a SQL query to answer the following question:
`Which Oricon has a Romaji title of nakitakunalu?`

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

CREATE TABLE "albums" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Oricon has a Romaji title of nakitakunalu?`:
```sql
                SELECT MAX("oricon") FROM "albums" WHERE "romaji_title"='nakitakunalu';
```
## Task
Generate a SQL query to answer the following question:
`Which Reference has a Release date of 1996/10/10?`

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

CREATE TABLE "albums" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Reference has a Release date of 1996/10/10?`:
```sql
                SELECT "reference" FROM "albums" WHERE "release_date"='1996/10/10';
```
## Task
Generate a SQL query to answer the following question:
`What is the occupation of the candidate that resides in Windsor Junction?`

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

CREATE TABLE "11_seats" (
  "riding" text,
  "candidate" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the occupation of the candidate that resides in Windsor Junction?`:
```sql
                SELECT "occupation" FROM "11_seats" WHERE "residence"='windsor junction';
```
## Task
Generate a SQL query to answer the following question:
`How many votes did 3rd ranking candidate Mary Louise Lorefice receive?`

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

CREATE TABLE "11_seats" (
  "riding" text,
  "candidate" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did 3rd ranking candidate Mary Louise Lorefice receive?`:
```sql
                SELECT COUNT("votes") FROM "11_seats" WHERE "rank"='3rd' AND "candidate"='mary louise lorefice';
```
## Task
Generate a SQL query to answer the following question:
`What occupation does Mary Louise Lorefice have?`

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

CREATE TABLE "11_seats" (
  "riding" text,
  "candidate" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What occupation does Mary Louise Lorefice have?`:
```sql
                SELECT "occupation" FROM "11_seats" WHERE "candidate"='mary louise lorefice';
```
## Task
Generate a SQL query to answer the following question:
`Which team has an away score of 7.9 (51)?`

### 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 team has an away score of 7.9 (51)?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "home_team_score"='7.9 (51)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game at Geelong?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game at Geelong?`:
```sql
                SELECT "date" FROM "round_7" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game with a score of 13.13 (91) played?`

### 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 `Where was the game with a score of 13.13 (91) played?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "away_team_score"='13.13 (91)';
```
## Task
Generate a SQL query to answer the following question:
`When was the game at Essendon?`

### 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 `When was the game at Essendon?`:
```sql
                SELECT "date" FROM "round_7" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Where did the away team score 14.12 (96)?`

### 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 `Where did the away team score 14.12 (96)?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "away_team_score"='14.12 (96)';
```
## Task
Generate a SQL query to answer the following question:
`What is the series name where cram competition is the team champion?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "team_champion" text,
  "secondary_class_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series name where cram competition is the team champion?`:
```sql
                SELECT "series_name" FROM "champions" WHERE "team_champion"='cram competition';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest season with International Formula Master as the series name and Marcello Puglisi (formula master italia) as the secondary class champion?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "team_champion" text,
  "secondary_class_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest season with International Formula Master as the series name and Marcello Puglisi (formula master italia) as the secondary class champion?`:
```sql
                SELECT MAX("season") FROM "champions" WHERE "series_name"='international formula master' AND "secondary_class_champion"='marcello puglisi (formula master italia)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the secondary class champion in the season after 2008?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "team_champion" text,
  "secondary_class_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the secondary class champion in the season after 2008?`:
```sql
                SELECT "secondary_class_champion" FROM "champions" WHERE "season">2008;
```
## Task
Generate a SQL query to answer the following question:
`What are the seasons where Marcello Puglisi (formula master italia) was the secondary class champion?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "team_champion" text,
  "secondary_class_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the seasons where Marcello Puglisi (formula master italia) was the secondary class champion?`:
```sql
                SELECT SUM("season") FROM "champions" WHERE "secondary_class_champion"='marcello puglisi (formula master italia)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion of JD Motorsport after 2005?`

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

CREATE TABLE "champions" (
  "season" real,
  "series_name" text,
  "champion" text,
  "team_champion" text,
  "secondary_class_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion of JD Motorsport after 2005?`:
```sql
                SELECT "champion" FROM "champions" WHERE "season">2005 AND "team_champion"='jd motorsport';
```
## Task
Generate a SQL query to answer the following question:
`Who is the constructor with the grid of 8?`

### 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 `Who is the constructor with the grid of 8?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "grid"=8;
```
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the grid is less than 3 and 45 laps?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the time/retired when the grid is less than 3 and 45 laps?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "grid"<3 AND "laps"=45;
```
## Task
Generate a SQL query to answer the following question:
`what is the most laps for driver jackie stewart?`

### 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 most laps for driver jackie stewart?`:
```sql
                SELECT MAX("laps") FROM "classification" WHERE "driver"='jackie stewart';
```
## Task
Generate a SQL query to answer the following question:
`what is the time/retired for driver richard attwood?`

### 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 time/retired for driver richard attwood?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "driver"='richard attwood';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the D 41 and R 51 of r 11`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "r_53" text,
  "r_52" text,
  "r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the D 41 and R 51 of r 11`:
```sql
                SELECT "d_41" FROM "senate_composition_before_the_elections" WHERE "r_51"='r 11';
```
## Task
Generate a SQL query to answer the following question:
`I want the D 46 which has a D 44 of r 17`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "r_53" text,
  "r_52" text,
  "r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the D 46 which has a D 44 of r 17`:
```sql
                SELECT "d_46" FROM "senate_composition_before_the_elections" WHERE "d_44"='r 17';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the D 41 for D 43 of d 18`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "r_53" text,
  "r_52" text,
  "r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the D 41 for D 43 of d 18`:
```sql
                SELECT "d_41" FROM "senate_composition_before_the_elections" WHERE "d_43"='d 18';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the D 47 for D 46 of r 35`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "r_53" text,
  "r_52" text,
  "r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the D 47 for D 46 of r 35`:
```sql
                SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_46"='r 35';
```
## Task
Generate a SQL query to answer the following question:
`I want the D 42 with R 51 of r 11`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "r_53" text,
  "r_52" text,
  "r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the D 42 with R 51 of r 11`:
```sql
                SELECT "d_42" FROM "senate_composition_before_the_elections" WHERE "r_51"='r 11';
```
## Task
Generate a SQL query to answer the following question:
`I want the R 53 of D 41 of r 21`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "r_53" text,
  "r_52" text,
  "r_51" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the R 53 of D 41 of r 21`:
```sql
                SELECT "r_53" FROM "senate_composition_before_the_elections" WHERE "d_41"='r 21';
```
## Task
Generate a SQL query to answer the following question:
`What is the low silver total for switzerland with over 0 golds?`

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

CREATE TABLE "medal_table_2007_2013" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low silver total for switzerland with over 0 golds?`:
```sql
                SELECT MIN("silver") FROM "medal_table_2007_2013" WHERE "gold">0 AND "nation"='switzerland';
```
## Task
Generate a SQL query to answer the following question:
`What is the silver total for nations with 10 bronze medals?`

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

CREATE TABLE "medal_table_2007_2013" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the silver total for nations with 10 bronze medals?`:
```sql
                SELECT SUM("silver") FROM "medal_table_2007_2013" WHERE "bronze"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is the gold total for lithuania with under 2 silvers?`

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

CREATE TABLE "medal_table_2007_2013" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gold total for lithuania with under 2 silvers?`:
```sql
                SELECT SUM("gold") FROM "medal_table_2007_2013" WHERE "nation"='lithuania' AND "silver"<2;
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the home team that played at Moorabbin Oval?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the home team that played at Moorabbin Oval?`:
```sql
                SELECT "home_team_score" FROM "round_6" WHERE "venue"='moorabbin oval';
```
## Task
Generate a SQL query to answer the following question:
`Name the size of the screen that came out in 2006 and is iliad`

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

CREATE TABLE "discontinued_models" (
  "maker" text,
  "model" text,
  "intro_year" text,
  "screen_size_inch" text,
  "self_lit" text,
  "screen_type" text,
  "screen_pixels" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the size of the screen that came out in 2006 and is iliad`:
```sql
                SELECT "screen_size_inch" FROM "discontinued_models" WHERE "intro_year"='2006' AND "model"='iliad';
```
## Task
Generate a SQL query to answer the following question:
`Which Report includes the Belgian Grand Prix Race?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Report includes the Belgian Grand Prix Race?`:
```sql
                SELECT "report" FROM "season_review" WHERE "race"='belgian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Which Report includes Monaco?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Report includes Monaco?`:
```sql
                SELECT "report" FROM "season_review" WHERE "location"='monaco';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Gunnar Nilsson make the fastest lap?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Gunnar Nilsson make the fastest lap?`:
```sql
                SELECT "date" FROM "season_review" WHERE "fastest_lap"='gunnar nilsson';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap for the German Grand Prix?`

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

CREATE TABLE "season_review" (
  "race" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap for the German Grand Prix?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "race"='german grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" real,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='3645' AND "date">1981 AND "label"='luaka bop';
```
## Task
Generate a SQL query to answer the following question:
`what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" real,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?`:
```sql
                SELECT MIN("date") FROM "release_history" WHERE "catalog"='3645' AND "format"='cd' AND "label"='luaka bop';
```
## Task
Generate a SQL query to answer the following question:
`Under what label was the album with the catalog of 3645 and came out later than 1987?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" real,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Under what label was the album with the catalog of 3645 and came out later than 1987?`:
```sql
                SELECT "label" FROM "release_history" WHERE "catalog"='3645' AND "date">1987;
```
## Task
Generate a SQL query to answer the following question:
`What is the points where Toronto was the home team and the game number was larger than 63?`

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

CREATE TABLE "february" (
  "game_num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points where Toronto was the home team and the game number was larger than 63?`:
```sql
                SELECT MAX("points") FROM "february" WHERE "home"='toronto' AND "game_num">63;
```
## Task
Generate a SQL query to answer the following question:
`How many laps did mike spence complete grids above 12?`

### 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 `How many laps did mike spence complete grids above 12?`:
```sql
                SELECT COUNT("laps") FROM "classification" WHERE "driver"='mike spence' AND "grid">12;
```
## Task
Generate a SQL query to answer the following question:
`How many average laps did brm complete in grids larger than 12?`

### 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 `How many average laps did brm complete in grids larger than 12?`:
```sql
                SELECT AVG("laps") FROM "classification" WHERE "constructor"='brm' AND "grid"=12;
```
## Task
Generate a SQL query to answer the following question:
`Who drove in grids more than 3 and exited in an accident?`

### 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 `Who drove in grids more than 3 and exited in an accident?`:
```sql
                SELECT "driver" FROM "classification" WHERE "grid">3 AND "time_retired"='accident';
```
## Task
Generate a SQL query to answer the following question:
`In what grid did jim clark drive in?`

### 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 `In what grid did jim clark drive in?`:
```sql
                SELECT "grid" FROM "classification" WHERE "driver"='jim clark';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a date 21 jul 2007?`

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

CREATE TABLE "pre_season" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a date 21 jul 2007?`:
```sql
                SELECT "opponent" FROM "pre_season" WHERE "date"='21 jul 2007';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue of the Melbourne team?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue of the Melbourne team?`:
```sql
                SELECT "venue" FROM "round_16" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the race that featured stirling moss winning with a maserati at aintree?`

### 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 `What was the race that featured stirling moss winning with a maserati at aintree?`:
```sql
                SELECT "race_name" FROM "non_championship_race_results" WHERE "constructor"='maserati' AND "circuit"='aintree' AND "winning_driver"='stirling moss';
```
## Task
Generate a SQL query to answer the following question:
`What does the Circuit of caen report?`

### 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 `What does the Circuit of caen report?`:
```sql
                SELECT "report" FROM "non_championship_race_results" WHERE "circuit"='caen';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winning drive of iv grand prix de caen?`

### 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 winning drive of iv grand prix de caen?`:
```sql
                SELECT "winning_driver" FROM "non_championship_race_results" WHERE "race_name"='iv grand prix de caen';
```
## Task
Generate a SQL query to answer the following question:
`What types of ships were made at the Froemming Brothers ship yard?`

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

CREATE TABLE "yards_on_the_great_lakes" (
  "yard_name" text,
  "location_city_state" text,
  "1st_ship_delivery_date" text,
  "ship_types_delivered" text,
  "total_number_of_ways" text
);
### SQL
Given the database schema, here is the SQL query that answers `What types of ships were made at the Froemming Brothers ship yard?`:
```sql
                SELECT "ship_types_delivered" FROM "yards_on_the_great_lakes" WHERE "yard_name"='froemming brothers';
```
## Task
Generate a SQL query to answer the following question:
`What ship types were first delivered in December 1942?`

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

CREATE TABLE "yards_on_the_great_lakes" (
  "yard_name" text,
  "location_city_state" text,
  "1st_ship_delivery_date" text,
  "ship_types_delivered" text,
  "total_number_of_ways" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ship types were first delivered in December 1942?`:
```sql
                SELECT "ship_types_delivered" FROM "yards_on_the_great_lakes" WHERE "1st_ship_delivery_date"='december 1942';
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of apperances of the person who had 36 goals?`

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

CREATE TABLE "notable_players" (
  "nationality" text,
  "position" text,
  "boro_career" text,
  "captaincy" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of apperances of the person who had 36 goals?`:
```sql
                SELECT "appearances" FROM "notable_players" WHERE "goals"=36;
```
## Task
Generate a SQL query to answer the following question:
`If the Home team was north melbourne and the Crowd was larger than 10,000, what was the Home team's 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 `If the Home team was north melbourne and the Crowd was larger than 10,000, what was the Home team's score?`:
```sql
                SELECT "home_team_score" FROM "round_8" WHERE "crowd">'10,000' AND "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in the Crowd when the Home team scored 10.7 (67)?`

### 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 people were in the Crowd when the Home team scored 10.7 (67)?`:
```sql
                SELECT COUNT("crowd") FROM "round_8" WHERE "home_team_score"='10.7 (67)';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the name with points of 151.66`

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

CREATE TABLE "ladies" (
  "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 `Tell me the name with points of 151.66`:
```sql
                SELECT "name" FROM "ladies" WHERE "points"=151.66;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of rank for places less than 94 and points less than 169.8 for japan`

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

CREATE TABLE "ladies" (
  "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 `Tell me the total number of rank for places less than 94 and points less than 169.8 for japan`:
```sql
                SELECT COUNT("rank") FROM "ladies" WHERE "places"<94 AND "points"<169.8 AND "nation"='japan';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26`

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

CREATE TABLE "ladies" (
  "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 `Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26`:
```sql
                SELECT COUNT("sp_fs") FROM "ladies" WHERE "rank">8 AND "nation"='netherlands' AND "points">127.26;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of SP+FS for places of 60 and points more than 151.66`

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

CREATE TABLE "ladies" (
  "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 `Name the total number of SP+FS for places of 60 and points more than 151.66`:
```sql
                SELECT COUNT("sp_fs") FROM "ladies" WHERE "places"=60 AND "points">151.66;
```
## Task
Generate a SQL query to answer the following question:
`Name the average SP+FS with places less tha 94 for renata baierova`

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

CREATE TABLE "ladies" (
  "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 `Name the average SP+FS with places less tha 94 for renata baierova`:
```sql
                SELECT AVG("sp_fs") FROM "ladies" WHERE "places"<94 AND "name"='renata baierova';
```
## Task
Generate a SQL query to answer the following question:
`What color is model # pd-kb400w?`

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

CREATE TABLE "features_by_model" (
  "model_name" text,
  "model_num" text,
  "color" text,
  "switch_type" text,
  "interface" text,
  "blank_keytops" text,
  "introduced" text
);
### SQL
Given the database schema, here is the SQL query that answers `What color is model # pd-kb400w?`:
```sql
                SELECT "color" FROM "features_by_model" WHERE "model_num"='pd-kb400w';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?`:
```sql
                SELECT MIN("average") FROM "preliminary_competition" WHERE "swimsuit">6.89 AND "evening_gown">7.76 AND "state"='illinois' AND "interview">8.57;
```
## Task
Generate a SQL query to answer the following question:
`What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia?`:
```sql
                SELECT MAX("swimsuit") FROM "preliminary_competition" WHERE "average"<8.073 AND "evening_gown"<8.31 AND "interview">8.23 AND "state"='georgia';
```
## Task
Generate a SQL query to answer the following question:
`What's utah's lowest swimsuit with an interview over 8.53?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's utah's lowest swimsuit with an interview over 8.53?`:
```sql
                SELECT MIN("swimsuit") FROM "preliminary_competition" WHERE "state"='utah' AND "interview">8.53;
```
## Task
Generate a SQL query to answer the following question:
`What week was October 9, 1938?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week was October 9, 1938?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='october 9, 1938';
```
## Task
Generate a SQL query to answer the following question:
`What home team played Collingwood as the away team?`

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

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

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the away team at Junction Oval?`:
```sql
                SELECT "away_team_score" FROM "round_17" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`Who built giancarlo fisichella's car?`

### 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 `Who built giancarlo fisichella's car?`:
```sql
                SELECT "constructor" FROM "race" WHERE "driver"='giancarlo fisichella';
```
## Task
Generate a SQL query to answer the following question:
`What is the high lap total for mika salo with a grid greater than 17?`

### 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 high lap total for mika salo with a grid greater than 17?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "driver"='mika salo' AND "grid">17;
```
## Task
Generate a SQL query to answer the following question:
`Where was the location with Muirfield in Scotland?`

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

CREATE TABLE "top_100_in_the_world" (
  "rank" real,
  "name" text,
  "location" text,
  "country" text,
  "designer_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the location with Muirfield in Scotland?`:
```sql
                SELECT "location" FROM "top_100_in_the_world" WHERE "country"='scotland' AND "name"='muirfield';
```
## Task
Generate a SQL query to answer the following question:
`Name the country for pieroni`

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

CREATE TABLE "players_in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for pieroni`:
```sql
                SELECT "country" FROM "players_in" WHERE "name"='pieroni';
```
## Task
Generate a SQL query to answer the following question:
`Name the country for 6-month loan and moving from of lens`

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

CREATE TABLE "players_in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for 6-month loan and moving from of lens`:
```sql
                SELECT "country" FROM "players_in" WHERE "type"='6-month loan' AND "moving_from"='lens';
```
## Task
Generate a SQL query to answer the following question:
`Name the transfer fee with a transfer window of summer for schollen`

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

CREATE TABLE "players_in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the transfer fee with a transfer window of summer for schollen`:
```sql
                SELECT "transfer_fee" FROM "players_in" WHERE "transfer_window"='summer' AND "name"='schollen';
```
## Task
Generate a SQL query to answer the following question:
`Name the name that has moving of 1. fc nürnberg.`

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

CREATE TABLE "players_in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name that has moving of 1. fc nürnberg.`:
```sql
                SELECT "name" FROM "players_in" WHERE "moving_from"='1. fc nürnberg';
```
## Task
Generate a SQL query to answer the following question:
`Name the country with polák`

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

CREATE TABLE "players_in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country with polák`:
```sql
                SELECT "country" FROM "players_in" WHERE "name"='polák';
```