cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the highest crowd listed when the away side scores 4.9 (33)?`

### 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 is the highest crowd listed when the away side scores 4.9 (33)?`:
```sql
                SELECT MAX("crowd") FROM "round_16" WHERE "away_team_score"='4.9 (33)';
```
## Task
Generate a SQL query to answer the following question:
`What venue features an away team score of 4.9 (33)?`

### 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 venue features an away team score of 4.9 (33)?`:
```sql
                SELECT "venue" FROM "round_16" WHERE "away_team_score"='4.9 (33)';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team's score when Geelong was the away team?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team's score when Geelong was the away team?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the average crowd size at a game when the away team scored 17.12 (114)?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average crowd size at a game when the away team scored 17.12 (114)?`:
```sql
                SELECT AVG("crowd") FROM "round_3" WHERE "away_team_score"='17.12 (114)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of the 1978 Veteran membership that has a late 1943 more than 78,000 and a september 1943 larger than 60,000?`

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

CREATE TABLE "composition" (
  "late_1941" text,
  "late_1942" real,
  "sept_1943" real,
  "late_1943" real,
  "late_1944" real,
  "1978_veteran_membership" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of the 1978 Veteran membership that has a late 1943 more than 78,000 and a september 1943 larger than 60,000?`:
```sql
                SELECT COUNT("1978_veteran_membership") FROM "composition" WHERE "late_1943">'78,000' AND "sept_1943">'60,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest late 1943 number with a late 1941 of vojvodina and a 1978 membership less than 40,000?`

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

CREATE TABLE "composition" (
  "late_1941" text,
  "late_1942" real,
  "sept_1943" real,
  "late_1943" real,
  "late_1944" real,
  "1978_veteran_membership" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest late 1943 number with a late 1941 of vojvodina and a 1978 membership less than 40,000?`:
```sql
                SELECT MAX("late_1943") FROM "composition" WHERE "late_1941"='vojvodina' AND "1978_veteran_membership"<'40,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?`

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

CREATE TABLE "composition" (
  "late_1941" text,
  "late_1942" real,
  "sept_1943" real,
  "late_1943" real,
  "late_1944" real,
  "1978_veteran_membership" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?`:
```sql
                SELECT SUM("1978_veteran_membership") FROM "composition" WHERE "late_1941"='macedonia' AND "late_1943"<'10,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 1978 Veteran membership with less than 48,000 in sept. 1943, a late 1941 of vojvodina, and a late 1942 bigger than 1,000?`

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

CREATE TABLE "composition" (
  "late_1941" text,
  "late_1942" real,
  "sept_1943" real,
  "late_1943" real,
  "late_1944" real,
  "1978_veteran_membership" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 1978 Veteran membership with less than 48,000 in sept. 1943, a late 1941 of vojvodina, and a late 1942 bigger than 1,000?`:
```sql
                SELECT MIN("1978_veteran_membership") FROM "composition" WHERE "sept_1943"<'48,000' AND "late_1941"='vojvodina' AND "late_1942">'1,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest late 1943 with a late 1944 bigger than 22,000, a late 1942 bigger than 1,000, a late 1941 slovenia, and less than 4000 in september 1943?`

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

CREATE TABLE "composition" (
  "late_1941" text,
  "late_1942" real,
  "sept_1943" real,
  "late_1943" real,
  "late_1944" real,
  "1978_veteran_membership" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest late 1943 with a late 1944 bigger than 22,000, a late 1942 bigger than 1,000, a late 1941 slovenia, and less than 4000 in september 1943?`:
```sql
                SELECT MAX("late_1943") FROM "composition" WHERE "late_1944">'22,000' AND "late_1942">'1,000' AND "late_1941"='slovenia' AND "sept_1943"<4000;
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Season of 2011/12?`

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

CREATE TABLE "uefa_club_competitions_record" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "result" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Season of 2011/12?`:
```sql
                SELECT "opponent" FROM "uefa_club_competitions_record" WHERE "season"='2011/12';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Season of 2010/11?`

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

CREATE TABLE "uefa_club_competitions_record" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "result" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Season of 2010/11?`:
```sql
                SELECT "opponent" FROM "uefa_club_competitions_record" WHERE "season"='2010/11';
```
## Task
Generate a SQL query to answer the following question:
`Which competition has a Season of 2010/11?`

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

CREATE TABLE "uefa_club_competitions_record" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "result" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has a Season of 2010/11?`:
```sql
                SELECT "competition" FROM "uefa_club_competitions_record" WHERE "season"='2010/11';
```
## Task
Generate a SQL query to answer the following question:
`What Opponent has a Result of –?`

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

CREATE TABLE "uefa_club_competitions_record" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "result" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Opponent has a Result of –?`:
```sql
                SELECT "opponent" FROM "uefa_club_competitions_record" WHERE "result"='–';
```
## Task
Generate a SQL query to answer the following question:
`Which season has a Result of 6–9?`

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

CREATE TABLE "uefa_club_competitions_record" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "result" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has a Result of 6–9?`:
```sql
                SELECT "season" FROM "uefa_club_competitions_record" WHERE "result"='6–9';
```
## Task
Generate a SQL query to answer the following question:
`Which round has a Venue of nicosia, and a Opponent of levski sofia zapad?`

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

CREATE TABLE "uefa_club_competitions_record" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "result" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has a Venue of nicosia, and a Opponent of levski sofia zapad?`:
```sql
                SELECT "round" FROM "uefa_club_competitions_record" WHERE "venue"='nicosia' AND "opponent"='levski sofia zapad';
```
## Task
Generate a SQL query to answer the following question:
`What resulted in a score of 22-21?`

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

CREATE TABLE "2003_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What resulted in a score of 22-21?`:
```sql
                SELECT "result" FROM "2003_fixtures_and_results" WHERE "score"='22-21';
```
## Task
Generate a SQL query to answer the following question:
`What competition was held on the date 6/7/03`

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

CREATE TABLE "2003_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition was held on the date 6/7/03`:
```sql
                SELECT "competition" FROM "2003_fixtures_and_results" WHERE "date"='6/7/03';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the date of 15/6/03`

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

CREATE TABLE "2003_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the date of 15/6/03`:
```sql
                SELECT "score" FROM "2003_fixtures_and_results" WHERE "date"='15/6/03';
```
## Task
Generate a SQL query to answer the following question:
`What venue is on the date of 8/6/03`

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

CREATE TABLE "2003_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue is on the date of 8/6/03`:
```sql
                SELECT "venue" FROM "2003_fixtures_and_results" WHERE "date"='8/6/03';
```
## Task
Generate a SQL query to answer the following question:
`What outcome has a score of 12-22?`

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

CREATE TABLE "2003_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What outcome has a score of 12-22?`:
```sql
                SELECT "result" FROM "2003_fixtures_and_results" WHERE "score"='12-22';
```
## Task
Generate a SQL query to answer the following question:
`What date is for Venue of jjb stadium, and a Result of w?`

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

CREATE TABLE "2003_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date is for Venue of jjb stadium, and a Result of w?`:
```sql
                SELECT "date" FROM "2003_fixtures_and_results" WHERE "venue"='jjb stadium' AND "result"='w';
```
## Task
Generate a SQL query to answer the following question:
`What is the high lap total for françois cevert?`

### 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 high lap total for françois cevert?`:
```sql
                SELECT MAX("laps") FROM "classification" WHERE "driver"='françois cevert';
```
## Task
Generate a SQL query to answer the following question:
`Who constructed rolf stommelen's car?`

### 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 constructed rolf stommelen's car?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "driver"='rolf stommelen';
```
## Task
Generate a SQL query to answer the following question:
`Who drive the car that retired due to engine failure and a grid of less than 9?`

### 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 drive the car that retired due to engine failure and a grid of less than 9?`:
```sql
                SELECT "driver" FROM "classification" WHERE "time_retired"='engine' AND "grid"<9;
```
## Task
Generate a SQL query to answer the following question:
`When was the race that set the record for the Izod Indycar Series?`

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

CREATE TABLE "track_records" (
  "record" text,
  "date" text,
  "driver" text,
  "time" text,
  "speed_avg_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the race that set the record for the Izod Indycar Series?`:
```sql
                SELECT "date" FROM "track_records" WHERE "record"='izod indycar series';
```
## Task
Generate a SQL query to answer the following question:
`Which driver set the Qualifying record with a time of 24.761 seconds?`

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

CREATE TABLE "track_records" (
  "record" text,
  "date" text,
  "driver" text,
  "time" text,
  "speed_avg_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver set the Qualifying record with a time of 24.761 seconds?`:
```sql
                SELECT "driver" FROM "track_records" WHERE "record"='qualifying' AND "time"='24.761';
```
## Task
Generate a SQL query to answer the following question:
`What Utah Jazz guard, played at BYU?`

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

CREATE TABLE "f" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Utah Jazz guard, played at BYU?`:
```sql
                SELECT "player" FROM "f" WHERE "position"='guard' AND "school_club_team"='byu';
```
## Task
Generate a SQL query to answer the following question:
`What college team did Derek Fisher play for?`

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

CREATE TABLE "f" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college team did Derek Fisher play for?`:
```sql
                SELECT "school_club_team" FROM "f" WHERE "player"='derek fisher';
```
## Task
Generate a SQL query to answer the following question:
`The Utah Jazz Player from UTEP was what nationality?`

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

CREATE TABLE "f" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Utah Jazz Player from UTEP was what nationality?`:
```sql
                SELECT "nationality" FROM "f" WHERE "school_club_team"='utep';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the venue when the home team is Richmond?`

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

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

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game when the away team score is 15.14 (104)?`:
```sql
                SELECT "date" FROM "round_10" WHERE "away_team_score"='15.14 (104)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the away team when the crowd is larger than 21,122 and the home team score is 13.7 (85)?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team when the crowd is larger than 21,122 and the home team score is 13.7 (85)?`:
```sql
                SELECT "away_team" FROM "round_10" WHERE "crowd">'21,122' AND "home_team_score"='13.7 (85)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score when the venue is Princes Park?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team score when the venue is Princes Park?`:
```sql
                SELECT "home_team_score" FROM "round_10" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`How many wins did Hale Irwin get with earnings smaller than 20,592,965?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did Hale Irwin get with earnings smaller than 20,592,965?`:
```sql
                SELECT SUM("wins") FROM "leaders" WHERE "player"='hale irwin' AND "earnings"<'20,592,965';
```
## Task
Generate a SQL query to answer the following question:
`What actor plays glen cole?`

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

CREATE TABLE "law_enforcement" (
  "character" text,
  "position" text,
  "actor" text,
  "first_episode" text,
  "final_episode" text,
  "duration" text,
  "final_episode_count" real
);
### SQL
Given the database schema, here is the SQL query that answers `What actor plays glen cole?`:
```sql
                SELECT "actor" FROM "law_enforcement" WHERE "character"='glen cole';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number for a final episode featuring maxine valera?`

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

CREATE TABLE "law_enforcement" (
  "character" text,
  "position" text,
  "actor" text,
  "first_episode" text,
  "final_episode" text,
  "duration" text,
  "final_episode_count" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number for a final episode featuring maxine valera?`:
```sql
                SELECT AVG("final_episode_count") FROM "law_enforcement" WHERE "character"='maxine valera';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were driven in 2:54:23.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 `How many laps were driven in 2:54:23.8?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "time_retired"='2:54:23.8';
```
## Task
Generate a SQL query to answer the following question:
`Which constructor has laps less than 100 and a time/retired +10 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 `Which constructor has laps less than 100 and a time/retired +10 laps?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "laps"<100 AND "time_retired"='+10 laps';
```
## Task
Generate a SQL query to answer the following question:
`What are the highest number of laps for grid 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 `What are the highest number of laps for grid 8?`:
```sql
                SELECT MAX("laps") FROM "classification" WHERE "grid"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which grid is the highest and has a time/retired of +0.3?`

### 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 `Which grid is the highest and has a time/retired of +0.3?`:
```sql
                SELECT MAX("grid") FROM "classification" WHERE "time_retired"='+0.3';
```
## Task
Generate a SQL query to answer the following question:
`Which driver for Maserati has more laps than 23 and a grid greater than 7?`

### 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 `Which driver for Maserati has more laps than 23 and a grid greater than 7?`:
```sql
                SELECT "driver" FROM "classification" WHERE "constructor"='maserati' AND "laps">23 AND "grid">7;
```
## Task
Generate a SQL query to answer the following question:
`Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?`:
```sql
                SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "general_classification"='bernard hinault' AND "trofeo_fast_team"='bianchi' AND "winner"='urs freuler' AND "stage"='4';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3?`:
```sql
                SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='giuseppe saronni' AND "trofeo_fast_team"='bianchi' AND "stage"='3';
```
## Task
Generate a SQL query to answer the following question:
`Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault?`:
```sql
                SELECT "stage" FROM "classification_leadership_by_stage" WHERE "points_classification"='francesco moser' AND "general_classification"='bernard hinault';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner of Stage 12 with a Points Classification of Francesco Moser?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of Stage 12 with a Points Classification of Francesco Moser?`:
```sql
                SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='francesco moser' AND "stage"='12';
```
## Task
Generate a SQL query to answer the following question:
`Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser?`:
```sql
                SELECT "stage" FROM "classification_leadership_by_stage" WHERE "winner"='bernard hinault' AND "points_classification"='francesco moser';
```
## Task
Generate a SQL query to answer the following question:
`Who was the loser on December 12, 1971?`

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

CREATE TABLE "1970s_raiders_12_6_2" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the loser on December 12, 1971?`:
```sql
                SELECT "loser" FROM "1970s_raiders_12_6_2" WHERE "date"='december 12' AND "year"=1971;
```
## Task
Generate a SQL query to answer the following question:
`Who was the loser at Municipal Stadium after 1970?`

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

CREATE TABLE "1970s_raiders_12_6_2" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the loser at Municipal Stadium after 1970?`:
```sql
                SELECT "loser" FROM "1970s_raiders_12_6_2" WHERE "location"='municipal stadium' AND "year">1970;
```
## Task
Generate a SQL query to answer the following question:
`What is the date where the winner was the Oakland Raiders in 1975?`

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

CREATE TABLE "1970s_raiders_12_6_2" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date where the winner was the Oakland Raiders in 1975?`:
```sql
                SELECT "date" FROM "1970s_raiders_12_6_2" WHERE "year"=1975 AND "winner"='oakland raiders';
```
## Task
Generate a SQL query to answer the following question:
`What is result of the game at Arrowhead Stadium where the loser was the Kansas City Chiefs?`

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

CREATE TABLE "1970s_raiders_12_6_2" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is result of the game at Arrowhead Stadium where the loser was the Kansas City Chiefs?`:
```sql
                SELECT "result" FROM "1970s_raiders_12_6_2" WHERE "location"='arrowhead stadium' AND "loser"='kansas city chiefs';
```
## Task
Generate a SQL query to answer the following question:
`What draw for "ljubav jedne žene" with under 153 points?`

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

CREATE TABLE "dora_1999_7_march_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What draw for "ljubav jedne žene" with under 153 points?`:
```sql
                SELECT SUM("draw") FROM "dora_1999_7_march_1999" WHERE "song"='\"ljubav jedne žene\"' AND "points"<153;
```
## Task
Generate a SQL query to answer the following question:
`What place for "jednom u životu" with a draw larger than 18?`

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

CREATE TABLE "dora_1999_7_march_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What place for "jednom u životu" with a draw larger than 18?`:
```sql
                SELECT COUNT("place") FROM "dora_1999_7_march_1999" WHERE "song"='\"jednom u životu\"' AND "draw">18;
```
## Task
Generate a SQL query to answer the following question:
`What was nominated for the Best Movie category?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "category" text,
  "work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was nominated for the Best Movie category?`:
```sql
                SELECT "work" FROM "awards" WHERE "category"='best movie';
```
## Task
Generate a SQL query to answer the following question:
`Which award did Scream receive a nomination and/or win for in 1997?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "category" text,
  "work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which award did Scream receive a nomination and/or win for in 1997?`:
```sql
                SELECT "award" FROM "awards" WHERE "work"='scream' AND "year"=1997;
```
## Task
Generate a SQL query to answer the following question:
`What category was Scream nominated for at the International Horror Guild?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "category" text,
  "work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was Scream nominated for at the International Horror Guild?`:
```sql
                SELECT "category" FROM "awards" WHERE "work"='scream' AND "award"='international horror guild';
```
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the laps is less than 54 and the driver is mark donohue?`

### 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 laps is less than 54 and the driver is mark donohue?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "laps"<54 AND "driver"='mark donohue';
```
## Task
Generate a SQL query to answer the following question:
`what is the grid when the driver is mario andretti and the laps is less than 54?`

### 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 grid when the driver is mario andretti and the laps is less than 54?`:
```sql
                SELECT MAX("grid") FROM "classification" WHERE "driver"='mario andretti' AND "laps"<54;
```
## Task
Generate a SQL query to answer the following question:
`how many laps were there when the grid was 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 `how many laps were there when the grid was 24?`:
```sql
                SELECT COUNT("laps") FROM "classification" WHERE "grid"=24;
```
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni?`

### 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 laps is 6, the grid is less than 18 and the driver is clay regazzoni?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "laps"=6 AND "grid"<18 AND "driver"='clay regazzoni';
```
## Task
Generate a SQL query to answer the following question:
`Which class is smaller than 5 and the GWR is 1322–1323?`

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

CREATE TABLE "barry_railway" (
  "class" text,
  "type" text,
  "quantity" real,
  "barry_nos" text,
  "gwr_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class is smaller than 5 and the GWR is 1322–1323?`:
```sql
                SELECT "class" FROM "barry_railway" WHERE "quantity"<5 AND "gwr_nos"='1322–1323';
```
## Task
Generate a SQL query to answer the following question:
`Whose term expired in 1996 and was from the province of Central Highlands?`

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

CREATE TABLE "sources" (
  "name" text,
  "party" text,
  "province" text,
  "term_expires" real,
  "term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose term expired in 1996 and was from the province of Central Highlands?`:
```sql
                SELECT "name" FROM "sources" WHERE "province"='central highlands' AND "term_expires"=1996;
```
## Task
Generate a SQL query to answer the following question:
`Ken Wright of the National Party was from which province?`

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

CREATE TABLE "sources" (
  "name" text,
  "party" text,
  "province" text,
  "term_expires" real,
  "term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Ken Wright of the National Party was from which province?`:
```sql
                SELECT "province" FROM "sources" WHERE "party"='national' AND "name"='ken wright';
```
## Task
Generate a SQL query to answer the following question:
`Which venue hosted a race in 1967?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue hosted a race in 1967?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"=1967;
```
## Task
Generate a SQL query to answer the following question:
`Which tournament was held after 1966?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was held after 1966?`:
```sql
                SELECT "tournament" FROM "achievements" WHERE "year">1966;
```
## Task
Generate a SQL query to answer the following question:
`Which venue hosted a tournament in 1965?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue hosted a tournament in 1965?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"=1965;
```
## Task
Generate a SQL query to answer the following question:
`What is the result for the best new musical nominee?`

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

CREATE TABLE "original_london_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for the best new musical nominee?`:
```sql
                SELECT "result" FROM "original_london_production" WHERE "nominee"='best new musical';
```
## Task
Generate a SQL query to answer the following question:
`How many years does simon baker appear as a nominee?`

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

CREATE TABLE "original_london_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years does simon baker appear as a nominee?`:
```sql
                SELECT COUNT("year") FROM "original_london_production" WHERE "nominee"='simon baker';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height for Years of Rockets of 2005-06?`

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

CREATE TABLE "f" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height for Years of Rockets of 2005-06?`:
```sql
                SELECT "height_in_ft" FROM "f" WHERE "years_for_rockets"='2005-06';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height for Years for Rockets of 2005-06?`

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

CREATE TABLE "f" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height for Years for Rockets of 2005-06?`:
```sql
                SELECT "height_in_ft" FROM "f" WHERE "years_for_rockets"='2005-06';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance on august 15?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance on august 15?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "date"='august 15';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor for the race with Nigel Mansell as 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 `What is the constructor for the race with Nigel Mansell as the fastest lap?`:
```sql
                SELECT "constructor" FROM "season_review" WHERE "fastest_lap"='nigel mansell';
```
## Task
Generate a SQL query to answer the following question:
`What is the fastest lap at estoril?`

### 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 `What is the fastest lap at estoril?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "location"='estoril';
```
## Task
Generate a SQL query to answer the following question:
`What is the race in Paul Ricard with Keke Rosberg as 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 `What is the race in Paul Ricard with Keke Rosberg as the fastest lap?`:
```sql
                SELECT "race" FROM "season_review" WHERE "fastest_lap"='keke rosberg' AND "location"='paul ricard';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner at spa-francorchamps?`

### 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 was the winner at spa-francorchamps?`:
```sql
                SELECT "race_winner" FROM "season_review" WHERE "location"='spa-francorchamps';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game with result 7-2 played?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game with result 7-2 played?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "result"='7-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the Friendly competition where the result was 7-2?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the Friendly competition where the result was 7-2?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='friendly' AND "result"='7-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on 27 January 1996?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game on 27 January 1996?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='27 january 1996';
```
## Task
Generate a SQL query to answer the following question:
`What is the event with a result of 3-2?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the event with a result of 3-2?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "result"='3-2';
```