cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver when Michael Schumacher had the pole and the fastest lap?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver when Michael Schumacher had the pole and the fastest lap?`:
```sql
                SELECT "winning_driver" FROM "grands_prix" WHERE "fastest_lap"='Michael Schumacher' AND "pole_position"='Michael Schumacher';
```
## Task
Generate a SQL query to answer the following question:
`what are all the location where date is 5 april`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the location where date is 5 april`:
```sql
                SELECT "location" FROM "grands_prix" WHERE "date"='5 April';
```
## Task
Generate a SQL query to answer the following question:
`what are all the pole position where date is 26 july`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the pole position where date is 26 july`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "date"='26 July';
```
## Task
Generate a SQL query to answer the following question:
`who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos`:
```sql
                SELECT "winning_constructor" FROM "grands_prix" WHERE "fastest_lap"='Riccardo Patrese' AND "location"='Interlagos';
```
## Task
Generate a SQL query to answer the following question:
`what are all the report where winning constructor is williams - renault and grand prix is south african grand prix`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the report where winning constructor is williams - renault and grand prix is south african grand prix`:
```sql
                SELECT "report" FROM "grands_prix" WHERE "winning_constructor"='Williams - Renault' AND "grand_prix"='South African Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`whatthe minimum round where grand prix is german grand prix`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `whatthe minimum round where grand prix is german grand prix`:
```sql
                SELECT MIN("round") FROM "grands_prix" WHERE "grand_prix"='German Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`what of the total number of date where grand prix is portuguese grand prix`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what of the total number of date where grand prix is portuguese grand prix`:
```sql
                SELECT COUNT("date") FROM "grands_prix" WHERE "grand_prix"='Portuguese Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of pole position with a round of 15?`

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

CREATE TABLE "season_review" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of pole position with a round of 15?`:
```sql
                SELECT COUNT("pole_position") FROM "season_review" WHERE "round"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the circuit gilles villeneuve?`

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

CREATE TABLE "season_review" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the circuit gilles villeneuve?`:
```sql
                SELECT "date" FROM "season_review" WHERE "location"='Circuit Gilles Villeneuve';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of thierry boutsen?`

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

CREATE TABLE "season_review" (
  "round" real,
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of thierry boutsen?`:
```sql
                SELECT "location" FROM "season_review" WHERE "fastest_lap"='Thierry Boutsen';
```
## Task
Generate a SQL query to answer the following question:
`Who had the pole position at the German Grand Prix?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 had the pole position at the German Grand Prix?`:
```sql
                SELECT "pole_position" FROM "season_review" WHERE "grand_prix"='German Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Which rd. occurred on 22 October?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 `Which rd. occurred on 22 October?`:
```sql
                SELECT MIN("rd") FROM "season_review" WHERE "date"='22 October';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver on 13 August?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 on 13 August?`:
```sql
                SELECT "winning_driver" FROM "season_review" WHERE "date"='13 August';
```
## Task
Generate a SQL query to answer the following question:
`What was the fastest lap at the Mexican Grand Prix?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 fastest lap at the Mexican Grand Prix?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "grand_prix"='Mexican Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Which rd. took place at Hockenheimring?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 `Which rd. took place at Hockenheimring?`:
```sql
                SELECT MIN("rd") FROM "season_review" WHERE "location"='Hockenheimring';
```
## Task
Generate a SQL query to answer the following question:
`How many drivers had the fastest lap at Silverstone?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 `How many drivers had the fastest lap at Silverstone?`:
```sql
                SELECT COUNT("fastest_lap") FROM "season_review" WHERE "location"='Silverstone';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Android use when Windows is 1.15%?`

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

CREATE TABLE "table1_11381701_3" (
  "source" text,
  "date" text,
  "method" text,
  "i_os" text,
  "android" text,
  "black_berry" text,
  "symbian_series_40" text,
  "bada" text,
  "windows" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of Android use when Windows is 1.15%?`:
```sql
                SELECT "android" FROM "table1_11381701_3" WHERE "windows"='1.15%';
```
## Task
Generate a SQL query to answer the following question:
`On which dates was the value of Bada 0.05%?`

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

CREATE TABLE "table1_11381701_3" (
  "source" text,
  "date" text,
  "method" text,
  "i_os" text,
  "android" text,
  "black_berry" text,
  "symbian_series_40" text,
  "bada" text,
  "windows" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which dates was the value of Bada 0.05%?`:
```sql
                SELECT "date" FROM "table1_11381701_3" WHERE "bada"='0.05%';
```
## Task
Generate a SQL query to answer the following question:
`When the value of "other" is 0.7%, what is the percentage for Windows?`

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

CREATE TABLE "table1_11381701_3" (
  "source" text,
  "date" text,
  "method" text,
  "i_os" text,
  "android" text,
  "black_berry" text,
  "symbian_series_40" text,
  "bada" text,
  "windows" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the value of "other" is 0.7%, what is the percentage for Windows?`:
```sql
                SELECT "windows" FROM "table1_11381701_3" WHERE "other"='0.7%';
```
## Task
Generate a SQL query to answer the following question:
`When Symbian/Series 40 is 0.40%, what is the percentage of "other"?`

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

CREATE TABLE "table1_11381701_3" (
  "source" text,
  "date" text,
  "method" text,
  "i_os" text,
  "android" text,
  "black_berry" text,
  "symbian_series_40" text,
  "bada" text,
  "windows" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Symbian/Series 40 is 0.40%, what is the percentage of "other"?`:
```sql
                SELECT "other" FROM "table1_11381701_3" WHERE "symbian_series_40"='0.40%';
```
## Task
Generate a SQL query to answer the following question:
`Which source shows Blackberry at 2.9%?`

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

CREATE TABLE "table1_11381701_3" (
  "source" text,
  "date" text,
  "method" text,
  "i_os" text,
  "android" text,
  "black_berry" text,
  "symbian_series_40" text,
  "bada" text,
  "windows" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which source shows Blackberry at 2.9%?`:
```sql
                SELECT "source" FROM "table1_11381701_3" WHERE "black_berry"='2.9%';
```
## Task
Generate a SQL query to answer the following question:
`Which colleges have the english abbreviation MTC?`

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

CREATE TABLE "administered_by_independent_administrati" (
  "english_name" text,
  "japanese_orthography" text,
  "pronouciation" text,
  "abbreviation" text,
  "provider_iai" text,
  "foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which colleges have the english abbreviation MTC?`:
```sql
                SELECT "english_name" FROM "administered_by_independent_administrati" WHERE "abbreviation"='MTC';
```
## Task
Generate a SQL query to answer the following question:
`What is the Japanese orthography for the English name National Farmers Academy?`

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

CREATE TABLE "administered_by_independent_administrati" (
  "english_name" text,
  "japanese_orthography" text,
  "pronouciation" text,
  "abbreviation" text,
  "provider_iai" text,
  "foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Japanese orthography for the English name National Farmers Academy?`:
```sql
                SELECT "japanese_orthography" FROM "administered_by_independent_administrati" WHERE "english_name"='National Farmers Academy';
```
## Task
Generate a SQL query to answer the following question:
`What is the abbreviation for the college pronounced "kōkū daigakkō"?`

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

CREATE TABLE "administered_by_independent_administrati" (
  "english_name" text,
  "japanese_orthography" text,
  "pronouciation" text,
  "abbreviation" text,
  "provider_iai" text,
  "foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the abbreviation for the college pronounced "kōkū daigakkō"?`:
```sql
                SELECT "abbreviation" FROM "administered_by_independent_administrati" WHERE "pronouciation"='Kōkū Daigakkō';
```
## Task
Generate a SQL query to answer the following question:
`How many providers were founded in 1964?`

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

CREATE TABLE "administered_by_independent_administrati" (
  "english_name" text,
  "japanese_orthography" text,
  "pronouciation" text,
  "abbreviation" text,
  "provider_iai" text,
  "foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many providers were founded in 1964?`:
```sql
                SELECT COUNT("provider_iai") FROM "administered_by_independent_administrati" WHERE "foundation"=1964;
```
## Task
Generate a SQL query to answer the following question:
`What is the Japanese orthography for National Fisheries University?`

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

CREATE TABLE "administered_by_independent_administrati" (
  "english_name" text,
  "japanese_orthography" text,
  "pronouciation" text,
  "abbreviation" text,
  "provider_iai" text,
  "foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Japanese orthography for National Fisheries University?`:
```sql
                SELECT "japanese_orthography" FROM "administered_by_independent_administrati" WHERE "english_name"='National Fisheries University';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum number for the half marathon (womens)?`

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

CREATE TABLE "winners_by_country" (
  "country" text,
  "total" real,
  "marathon_mens" real,
  "marathon_womens" real,
  "half_marathon_mens" real,
  "half_marathon_womens" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number for the half marathon (womens)?`:
```sql
                SELECT MIN("half_marathon_womens") FROM "winners_by_country";
```
## Task
Generate a SQL query to answer the following question:
`Whatis the total number of half marathon (mens) that represented kazakhstan?`

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

CREATE TABLE "winners_by_country" (
  "country" text,
  "total" real,
  "marathon_mens" real,
  "marathon_womens" real,
  "half_marathon_mens" real,
  "half_marathon_womens" real
);
### SQL
Given the database schema, here is the SQL query that answers `Whatis the total number of half marathon (mens) that represented kazakhstan?`:
```sql
                SELECT COUNT("half_marathon_mens") FROM "winners_by_country" WHERE "country"='Kazakhstan';
```
## Task
Generate a SQL query to answer the following question:
`What is amount of countries where half marathon (women) is larger than 1.0?`

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

CREATE TABLE "winners_by_country" (
  "country" text,
  "total" real,
  "marathon_mens" real,
  "marathon_womens" real,
  "half_marathon_mens" real,
  "half_marathon_womens" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is amount of countries where half marathon (women) is larger than 1.0?`:
```sql
                SELECT COUNT("country") FROM "winners_by_country" WHERE "half_marathon_womens">1.0;
```
## Task
Generate a SQL query to answer the following question:
`How many times is Moldova the winner of half marathon (womens)?`

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

CREATE TABLE "winners_by_country" (
  "country" text,
  "total" real,
  "marathon_mens" real,
  "marathon_womens" real,
  "half_marathon_mens" real,
  "half_marathon_womens" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is Moldova the winner of half marathon (womens)?`:
```sql
                SELECT COUNT("half_marathon_womens") FROM "winners_by_country" WHERE "country"='Moldova';
```
## Task
Generate a SQL query to answer the following question:
`Which country has half marathon (womens) that is larger than 1.0?`

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

CREATE TABLE "winners_by_country" (
  "country" text,
  "total" real,
  "marathon_mens" real,
  "marathon_womens" real,
  "half_marathon_mens" real,
  "half_marathon_womens" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has half marathon (womens) that is larger than 1.0?`:
```sql
                SELECT "country" FROM "winners_by_country" WHERE "half_marathon_womens">1.0;
```
## Task
Generate a SQL query to answer the following question:
`What is the make of the car that won the brazilian grand prix?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 is the make of the car that won the brazilian grand prix?`:
```sql
                SELECT "constructor" FROM "season_review" WHERE "grand_prix"='Brazilian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Who drove the fastest lap for round 8?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 drove the fastest lap for round 8?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "rd"=8;
```
## Task
Generate a SQL query to answer the following question:
`What day was the grand prix in jerez?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 day was the grand prix in jerez?`:
```sql
                SELECT "date" FROM "season_review" WHERE "location"='Jerez';
```
## Task
Generate a SQL query to answer the following question:
`What event was in detroit?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 event was in detroit?`:
```sql
                SELECT "grand_prix" FROM "season_review" WHERE "location"='Detroit';
```
## Task
Generate a SQL query to answer the following question:
`How many events did nigel mansell drive the fastest and a mclaren - honda win?`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 `How many events did nigel mansell drive the fastest and a mclaren - honda win?`:
```sql
                SELECT COUNT("grand_prix") FROM "season_review" WHERE "constructor"='McLaren - Honda' AND "fastest_lap"='Nigel Mansell';
```
## Task
Generate a SQL query to answer the following question:
`What day is the french grand prix`

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

CREATE TABLE "season_review" (
  "rd" real,
  "grand_prix" text,
  "date" text,
  "location" 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 day is the french grand prix`:
```sql
                SELECT "date" FROM "season_review" WHERE "grand_prix"='French Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
` who is the winners where season result is 7th`

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

CREATE TABLE "night_series_winners_1977_1987" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the winners where season result is 7th`:
```sql
                SELECT "winners" FROM "night_series_winners_1977_1987" WHERE "season_result"='7th';
```
## Task
Generate a SQL query to answer the following question:
` who is the winners where season result is 9th`

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

CREATE TABLE "night_series_winners_1977_1987" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the winners where season result is 9th`:
```sql
                SELECT "winners" FROM "night_series_winners_1977_1987" WHERE "season_result"='9th';
```
## Task
Generate a SQL query to answer the following question:
` what's the grand finalist where winners is collingwood`

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

CREATE TABLE "night_series_winners_1977_1987" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the grand finalist where winners is collingwood`:
```sql
                SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "winners"='Collingwood';
```
## Task
Generate a SQL query to answer the following question:
` who is the season result where margin is 51`

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

CREATE TABLE "night_series_winners_1977_1987" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the season result where margin is 51`:
```sql
                SELECT "season_result" FROM "night_series_winners_1977_1987" WHERE "margin"=51;
```
## Task
Generate a SQL query to answer the following question:
` who is the grand finalist where scores is 11.11 (77) – 10.8 (68)`

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

CREATE TABLE "night_series_winners_1977_1987" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the grand finalist where scores is 11.11 (77) – 10.8 (68)`:
```sql
                SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "scores"='11.11 (77) – 10.8 (68)';
```
## Task
Generate a SQL query to answer the following question:
` who is the grand finalist where scores is 8.9 (57) – 7.12 (54)`

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

CREATE TABLE "night_series_winners_1977_1987" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the grand finalist where scores is 8.9 (57) – 7.12 (54)`:
```sql
                SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "scores"='8.9 (57) – 7.12 (54)';
```
## Task
Generate a SQL query to answer the following question:
`what was the crowd when the scores are 10.12 (72) – 8.11 (59)?`

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

CREATE TABLE "consolation_night_series_lake_oval_winne" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the crowd when the scores are 10.12 (72) – 8.11 (59)?`:
```sql
                SELECT MAX("crowd") FROM "consolation_night_series_lake_oval_winne" WHERE "scores"='10.12 (72) – 8.11 (59)';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue where the scores are 15.13 (103) – 8.4 (52)?`

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

CREATE TABLE "consolation_night_series_lake_oval_winne" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue where the scores are 15.13 (103) – 8.4 (52)?`:
```sql
                SELECT "venue" FROM "consolation_night_series_lake_oval_winne" WHERE "scores"='15.13 (103) – 8.4 (52)';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue where the margin is 4?`

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

CREATE TABLE "consolation_night_series_lake_oval_winne" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue where the margin is 4?`:
```sql
                SELECT "venue" FROM "consolation_night_series_lake_oval_winne" WHERE "margin"=4;
```
## Task
Generate a SQL query to answer the following question:
`what is the crowd when the grand finalist was south melbourne?`

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

CREATE TABLE "consolation_night_series_lake_oval_winne" (
  "year" real,
  "winners" text,
  "grand_finalist" text,
  "scores" text,
  "venue" text,
  "crowd" real,
  "margin" real,
  "season_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the crowd when the grand finalist was south melbourne?`:
```sql
                SELECT "crowd" FROM "consolation_night_series_lake_oval_winne" WHERE "grand_finalist"='South Melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the date for monaco grand prix?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `What was the date for monaco grand prix?`:
```sql
                SELECT "date" FROM "season_review" WHERE "race"='Monaco Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What was the date for the pole position of alain prost?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `What was the date for the pole position of alain prost?`:
```sql
                SELECT "date" FROM "season_review" WHERE "pole_position"='Alain Prost';
```
## Task
Generate a SQL query to answer the following question:
`What is the race winer of the portuguese grand prix?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `What is the race winer of the portuguese grand prix?`:
```sql
                SELECT "race_winner" FROM "season_review" WHERE "race"='Portuguese Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`what's the race winner with date being 12 june`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `what's the race winner with date being 12 june`:
```sql
                SELECT "race_winner" FROM "season_review" WHERE "date"='12 June';
```
## Task
Generate a SQL query to answer the following question:
`what's the constructor with location being hockenheimring`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `what's the constructor with location being hockenheimring`:
```sql
                SELECT "constructor" FROM "season_review" WHERE "location"='Hockenheimring';
```
## Task
Generate a SQL query to answer the following question:
`what's the race winner with location being jacarepaguá`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `what's the race winner with location being jacarepaguá`:
```sql
                SELECT "race_winner" FROM "season_review" WHERE "location"='Jacarepaguá';
```
## Task
Generate a SQL query to answer the following question:
`what's the total number of race winner with rnd being 10`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `what's the total number of race winner with rnd being 10`:
```sql
                SELECT COUNT("race_winner") FROM "season_review" WHERE "rnd"=10;
```
## Task
Generate a SQL query to answer the following question:
`what's the pole position with location being hockenheimring`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `what's the pole position with location being hockenheimring`:
```sql
                SELECT "pole_position" FROM "season_review" WHERE "location"='Hockenheimring';
```
## Task
Generate a SQL query to answer the following question:
`what's the report with rnd being 4`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `what's the report with rnd being 4`:
```sql
                SELECT "report" FROM "season_review" WHERE "rnd"=4;
```
## Task
Generate a SQL query to answer the following question:
`What venue has an attendance of 30824 at Essendon in 1984?`

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

CREATE TABLE "double_premiership_teams" (
  "season" real,
  "premier" text,
  "runner_up" text,
  "score" text,
  "venue" text,
  "attendance" real,
  "premiership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has an attendance of 30824 at Essendon in 1984?`:
```sql
                SELECT "venue" FROM "double_premiership_teams" WHERE "premier"='Essendon' AND "attendance"=30824;
```
## Task
Generate a SQL query to answer the following question:
`What other venue was a runner up to Hawthorn?`

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

CREATE TABLE "double_premiership_teams" (
  "season" real,
  "premier" text,
  "runner_up" text,
  "score" text,
  "venue" text,
  "attendance" real,
  "premiership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What other venue was a runner up to Hawthorn?`:
```sql
                SELECT "venue" FROM "double_premiership_teams" WHERE "runner_up"='Hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the other premiership when the runner up wis Geelong?`

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

CREATE TABLE "double_premiership_teams" (
  "season" real,
  "premier" text,
  "runner_up" text,
  "score" text,
  "venue" text,
  "attendance" real,
  "premiership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the other premiership when the runner up wis Geelong?`:
```sql
                SELECT "premiership" FROM "double_premiership_teams" WHERE "runner_up"='Geelong';
```
## Task
Generate a SQL query to answer the following question:
`Who are all the runner ups when the score is 9.12 (66) – 5.6 (36)?`

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

CREATE TABLE "double_premiership_teams" (
  "season" real,
  "premier" text,
  "runner_up" text,
  "score" text,
  "venue" text,
  "attendance" real,
  "premiership" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all the runner ups when the score is 9.12 (66) – 5.6 (36)?`:
```sql
                SELECT "runner_up" FROM "double_premiership_teams" WHERE "score"='9.12 (66) – 5.6 (36)';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap in the race where Patrick Tambay was on the pole?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 in the race where Patrick Tambay was on the pole?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "pole_position"='Patrick Tambay';
```
## Task
Generate a SQL query to answer the following question:
`What race had Nelson Piquet on the pole and was in Nürburgring?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `What race had Nelson Piquet on the pole and was in Nürburgring?`:
```sql
                SELECT "race" FROM "season_review" WHERE "pole_position"='Nelson Piquet' AND "location"='Nürburgring';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds did Patrick Tambay record the fastest lap?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `How many rounds did Patrick Tambay record the fastest lap?`:
```sql
                SELECT COUNT("rnd") FROM "season_review" WHERE "fastest_lap"='Patrick Tambay';
```
## Task
Generate a SQL query to answer the following question:
`Which race is located in kyalami?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 race is located in kyalami?`:
```sql
                SELECT "race" FROM "season_review" WHERE "location"='Kyalami';
```
## Task
Generate a SQL query to answer the following question:
`What is the fastest lap with pole position of gilles villeneuve?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `What is the fastest lap with pole position of gilles villeneuve?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "pole_position"='Gilles Villeneuve';
```
## Task
Generate a SQL query to answer the following question:
`Who did the fastest lap in the dutch grand prix?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 did the fastest lap in the dutch grand prix?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "race"='Dutch Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Who did the fastest lap with the race winner john watson?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 did the fastest lap with the race winner john watson?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "race_winner"='John Watson';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor for 9 May?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `What is the constructor for 9 May?`:
```sql
                SELECT "constructor" FROM "season_review" WHERE "date"='9 May';
```
## Task
Generate a SQL query to answer the following question:
`What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari?`:
```sql
                SELECT "pole_position" FROM "season_review" WHERE "fastest_lap"='Nelson Piquet' AND "constructor"='Ferrari';
```
## Task
Generate a SQL query to answer the following question:
`What is the report listed for the race in San Marino Grand Prix?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `What is the report listed for the race in San Marino Grand Prix?`:
```sql
                SELECT "report" FROM "season_review" WHERE "race"='San Marino Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Who was the constructor in the location Monza?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 was the constructor in the location Monza?`:
```sql
                SELECT "constructor" FROM "season_review" WHERE "location"='Monza';
```
## Task
Generate a SQL query to answer the following question:
`How many races had the pole position Alain Prost and the race winner Keke Rosberg?`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `How many races had the pole position Alain Prost and the race winner Keke Rosberg?`:
```sql
                SELECT COUNT("race") FROM "season_review" WHERE "pole_position"='Alain Prost' AND "race_winner"='Keke Rosberg';
```
## Task
Generate a SQL query to answer the following question:
`what's the report with location  österreichring`

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

CREATE TABLE "season_review" (
  "rnd" real,
  "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 `what's the report with location  österreichring`:
```sql
                SELECT "report" FROM "season_review" WHERE "location"='Österreichring';
```