cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the years for engin 5.7l hemi v8?`

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

CREATE TABLE "engines" (
  "years" text,
  "engine" text,
  "power" text,
  "torque" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the years for engin 5.7l hemi v8?`:
```sql
                SELECT "years" FROM "engines" WHERE "engine"='5.7l hemi v8';
```
## Task
Generate a SQL query to answer the following question:
`what is the years when the notes is laredo, limited, overland and the engine is 5.7l hemi v8?`

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

CREATE TABLE "engines" (
  "years" text,
  "engine" text,
  "power" text,
  "torque" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the years when the notes is laredo, limited, overland and the engine is 5.7l hemi v8?`:
```sql
                SELECT "years" FROM "engines" WHERE "notes"='laredo, limited, overland' AND "engine"='5.7l hemi v8';
```
## Task
Generate a SQL query to answer the following question:
`what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?`

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

CREATE TABLE "engines" (
  "years" text,
  "engine" text,
  "power" text,
  "torque" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?`:
```sql
                SELECT "torque" FROM "engines" WHERE "notes"='laredo, limited, overland' AND "engine"='5.7l hemi v8';
```
## Task
Generate a SQL query to answer the following question:
`Who drove the ferrari that went 57 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove the ferrari that went 57 laps?`:
```sql
                SELECT "driver" FROM "race" WHERE "constructor"='ferrari' AND "laps"=57;
```
## Task
Generate a SQL query to answer the following question:
`What is place number of Frank Kleber who started in 2001?`

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

CREATE TABLE "men" (
  "place" real,
  "name" text,
  "from" real,
  "until" real,
  "titles" real,
  "seconds" text,
  "thirds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is place number of Frank Kleber who started in 2001?`:
```sql
                SELECT COUNT("place") FROM "men" WHERE "name"='frank kleber' AND "from"<2001;
```
## Task
Generate a SQL query to answer the following question:
`How many seconds did the champion who started in 1971 and placed above 2 have?`

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

CREATE TABLE "men" (
  "place" real,
  "name" text,
  "from" real,
  "until" real,
  "titles" real,
  "seconds" text,
  "thirds" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seconds did the champion who started in 1971 and placed above 2 have?`:
```sql
                SELECT "seconds" FROM "men" WHERE "from">1971 AND "place"<2;
```
## Task
Generate a SQL query to answer the following question:
`What place did R. Wenzel, who was active after 1934, have?`

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

CREATE TABLE "men" (
  "place" real,
  "name" text,
  "from" real,
  "until" real,
  "titles" real,
  "seconds" text,
  "thirds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place did R. Wenzel, who was active after 1934, have?`:
```sql
                SELECT SUM("place") FROM "men" WHERE "name"='r. wenzel' AND "until">1934;
```
## Task
Generate a SQL query to answer the following question:
`What's the time for a round of n/a when the opponent is mikhail ilyukhin?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the time for a round of n/a when the opponent is mikhail ilyukhin?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"='n/a' AND "opponent"='mikhail ilyukhin';
```
## Task
Generate a SQL query to answer the following question:
`What is the pole position of the 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,
  "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 pole position of the Portuguese Grand Prix?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='portuguese grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the pole position of the grand prix with 1 round?`

### 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 `What is the pole position of the grand prix with 1 round?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "round"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the pole position of the Hungarian 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,
  "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 pole position of the Hungarian Grand Prix?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='hungarian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the pole position of the Belgian 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,
  "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 pole position of the Belgian Grand Prix?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='belgian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position?`

### 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 `What is the grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position?`:
```sql
                SELECT "grand_prix" FROM "grands_prix" WHERE "fastest_lap"='gerhard berger' AND "pole_position"='michael schumacher';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s`

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

CREATE TABLE "6201_6300" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s`:
```sql
                SELECT "declination_j2000" FROM "6201_6300" WHERE "constellation"='ophiuchus' AND "apparent_magnitude"<8.6 AND "right_ascension_j2000"='16h47m14.5s';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the right ascensuon for object type of globular cluster and apparent magnitude of 8.5 and NGC number of 6273`

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

CREATE TABLE "6201_6300" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the right ascensuon for object type of globular cluster and apparent magnitude of 8.5 and NGC number of 6273`:
```sql
                SELECT "right_ascension_j2000" FROM "6201_6300" WHERE "object_type"='globular cluster' AND "apparent_magnitude"=8.5 AND "ngc_number"=6273;
```
## Task
Generate a SQL query to answer the following question:
`When was the game played where St Kilda was the home team?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game played where St Kilda was the home team?`:
```sql
                SELECT "date" FROM "round_7" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score with an away team of Melbourne?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team score with an away team of Melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_7" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the average amount of spectators when the home team scored 11.14 (80)?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average amount of spectators when the home team scored 11.14 (80)?`:
```sql
                SELECT AVG("crowd") FROM "round_7" WHERE "home_team_score"='11.14 (80)';
```
## Task
Generate a SQL query to answer the following question:
`Which away team had a home team that scored 12.19 (91)?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team had a home team that scored 12.19 (91)?`:
```sql
                SELECT "away_team" FROM "round_7" WHERE "home_team_score"='12.19 (91)';
```
## Task
Generate a SQL query to answer the following question:
`Which away team played the home team of Footscray?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team played the home team of Footscray?`:
```sql
                SELECT "away_team" FROM "round_7" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`How many spectators were present when the away team scored 10.12 (72)?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many spectators were present when the away team scored 10.12 (72)?`:
```sql
                SELECT COUNT("crowd") FROM "round_7" WHERE "away_team_score"='10.12 (72)';
```
## Task
Generate a SQL query to answer the following question:
`How old was the conservative party member that left the house in 2001?`

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

CREATE TABLE "list_of_oldest_sitting_m_ps_since_1945" (
  "born" text,
  "became_oldest_mp" text,
  "left_house" text,
  "age_on_leaving" text,
  "died" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old was the conservative party member that left the house in 2001?`:
```sql
                SELECT "age_on_leaving" FROM "list_of_oldest_sitting_m_ps_since_1945" WHERE "political_party"='conservative' AND "left_house"='2001';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest Attendance for the Staples Center Arena when the Points were over 14?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest Attendance for the Staples Center Arena when the Points were over 14?`:
```sql
                SELECT MIN("attendance") FROM "regular_season" WHERE "points">14 AND "arena"='staples center';
```
## Task
Generate a SQL query to answer the following question:
`Name the leading scorer for 12 january 2008`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the leading scorer for 12 january 2008`:
```sql
                SELECT "leading_scorer" FROM "january" WHERE "date"='12 january 2008';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for 21 january 2008`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for 21 january 2008`:
```sql
                SELECT "record" FROM "january" WHERE "date"='21 january 2008';
```
## Task
Generate a SQL query to answer the following question:
`what is the date when the away team is melbourne?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date when the away team is melbourne?`:
```sql
                SELECT "date" FROM "round_1" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`who is the home team when the home team score is 18.17 (125)?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the home team when the home team score is 18.17 (125)?`:
```sql
                SELECT "home_team" FROM "round_1" WHERE "home_team_score"='18.17 (125)';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the home team for the venue glenferrie oval?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the home team for the venue glenferrie oval?`:
```sql
                SELECT "home_team_score" FROM "round_1" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team when the home team score is 14.19 (103)?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team when the home team score is 14.19 (103)?`:
```sql
                SELECT "home_team" FROM "round_1" WHERE "home_team_score"='14.19 (103)';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue when the away team score is 17.13 (115)?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when the away team score is 17.13 (115)?`:
```sql
                SELECT "venue" FROM "round_1" WHERE "away_team_score"='17.13 (115)';
```
## Task
Generate a SQL query to answer the following question:
`What was South Melbourne's score when they played as the away team?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was South Melbourne's score when they played as the away team?`:
```sql
                SELECT "away_team_score" FROM "round_11" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the North Melbourne's home game?`

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

CREATE TABLE "round_11" (
  "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 attendance for the North Melbourne's home game?`:
```sql
                SELECT "crowd" FROM "round_11" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the home team that played at brunswick street oval with a crowd larger than 12,000?`

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

CREATE TABLE "round_18" (
  "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 score of the home team that played at brunswick street oval with a crowd larger than 12,000?`:
```sql
                SELECT "home_team_score" FROM "round_18" WHERE "crowd">'12,000' AND "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the venue where home team st kilda played?`

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

CREATE TABLE "round_18" (
  "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 where home team st kilda played?`:
```sql
                SELECT "venue" FROM "round_18" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score that played away team carlton?`

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

CREATE TABLE "round_18" (
  "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 that played away team carlton?`:
```sql
                SELECT "home_team_score" FROM "round_18" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Who won in the game before 1985 attended by over 62,026?`

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

CREATE TABLE "1980s_bears_11_7" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won in the game before 1985 attended by over 62,026?`:
```sql
                SELECT "winner" FROM "1980s_bears_11_7" WHERE "attendance">'62,026' AND "year"<1985;
```
## Task
Generate a SQL query to answer the following question:
`When the Year is smaller than 2004, and Mike Joy is the Lap-by-lap, what are the Ratings?`

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

CREATE TABLE "fox_nbc_era_2001_2006" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "s_color_commentator" text,
  "pre_race_host" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Year is smaller than 2004, and Mike Joy is the Lap-by-lap, what are the Ratings?`:
```sql
                SELECT "ratings" FROM "fox_nbc_era_2001_2006" WHERE "year"<2004 AND "lap_by_lap"='mike joy';
```
## Task
Generate a SQL query to answer the following question:
`Which Network has Bill Weber for the Lap-by-lap?`

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

CREATE TABLE "fox_nbc_era_2001_2006" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "s_color_commentator" text,
  "pre_race_host" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Network has Bill Weber for the Lap-by-lap?`:
```sql
                SELECT "network" FROM "fox_nbc_era_2001_2006" WHERE "lap_by_lap"='bill weber';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005?`

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

CREATE TABLE "fox_nbc_era_2001_2006" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "s_color_commentator" text,
  "pre_race_host" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005?`:
```sql
                SELECT "pre_race_host" FROM "fox_nbc_era_2001_2006" WHERE "lap_by_lap"='mike joy' AND "year"=2005;
```
## Task
Generate a SQL query to answer the following question:
`How many Years have Ratings of 10.9/23?`

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

CREATE TABLE "fox_nbc_era_2001_2006" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "s_color_commentator" text,
  "pre_race_host" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Years have Ratings of 10.9/23?`:
```sql
                SELECT COUNT("year") FROM "fox_nbc_era_2001_2006" WHERE "ratings"='10.9/23';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team of lake oval's score?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team of lake oval's score?`:
```sql
                SELECT "home_team_score" FROM "round_7" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`When was victoria park used as a venue?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was victoria park used as a venue?`:
```sql
                SELECT "date" FROM "round_7" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`Which date has an Away team of fitzroy?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has an Away team of fitzroy?`:
```sql
                SELECT "date" FROM "round_7" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd for a Home team of carlton?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest crowd for a Home team of carlton?`:
```sql
                SELECT MAX("crowd") FROM "round_7" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`When the Away team scored 12.9 (81), what was the average Crowd size?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team scored 12.9 (81), what was the average Crowd size?`:
```sql
                SELECT AVG("crowd") FROM "round_17" WHERE "away_team_score"='12.9 (81)';
```
## Task
Generate a SQL query to answer the following question:
`When the Home team had a score of 16.10 (106), what was the Date?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Home team had a score of 16.10 (106), what was the Date?`:
```sql
                SELECT "date" FROM "round_17" WHERE "home_team_score"='16.10 (106)';
```
## Task
Generate a SQL query to answer the following question:
`When the Away team is melbourne, what's the lowest Crowd attended?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team is melbourne, what's the lowest Crowd attended?`:
```sql
                SELECT MIN("crowd") FROM "round_17" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`When the Away team is essendon, what's the Home team score?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team is essendon, what's the Home team score?`:
```sql
                SELECT "home_team_score" FROM "round_17" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`If the Venue is brunswick street oval, what date was the game played ?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Venue is brunswick street oval, what date was the game played ?`:
```sql
                SELECT "date" FROM "round_17" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`Name the first for countries of trinidad and tobago for hutchinson for years before 2004`

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

CREATE TABLE "olympians" (
  "last" text,
  "first" text,
  "year" real,
  "sport" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the first for countries of trinidad and tobago for hutchinson for years before 2004`:
```sql
                SELECT "first" FROM "olympians" WHERE "country"='trinidad and tobago' AND "last"='hutchinson' AND "year"<2004;
```
## Task
Generate a SQL query to answer the following question:
`Name the sport for canada in 2004`

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

CREATE TABLE "olympians" (
  "last" text,
  "first" text,
  "year" real,
  "sport" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sport for canada in 2004`:
```sql
                SELECT "sport" FROM "olympians" WHERE "country"='canada' AND "year"=2004;
```
## Task
Generate a SQL query to answer the following question:
`Name the last for softball before 2000`

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

CREATE TABLE "olympians" (
  "last" text,
  "first" text,
  "year" real,
  "sport" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the last for softball before 2000`:
```sql
                SELECT "last" FROM "olympians" WHERE "year"<2000 AND "sport"='softball';
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of year for swimming and first of mike`

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

CREATE TABLE "olympians" (
  "last" text,
  "first" text,
  "year" real,
  "sport" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of year for swimming and first of mike`:
```sql
                SELECT SUM("year") FROM "olympians" WHERE "sport"='swimming' AND "first"='mike';
```
## Task
Generate a SQL query to answer the following question:
`Name the sport for puerto rico and year of 2000`

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

CREATE TABLE "olympians" (
  "last" text,
  "first" text,
  "year" real,
  "sport" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sport for puerto rico and year of 2000`:
```sql
                SELECT "sport" FROM "olympians" WHERE "country"='puerto rico' AND "year"=2000;
```
## Task
Generate a SQL query to answer the following question:
`Cumulative point total for all teams playing on the Discovery Channel?`

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

CREATE TABLE "individual_2007_uci_pro_tour_standings_a" (
  "rank" real,
  "name" text,
  "nationality" text,
  "team" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Cumulative point total for all teams playing on the Discovery Channel?`:
```sql
                SELECT COUNT("points") FROM "individual_2007_uci_pro_tour_standings_a" WHERE "team"='discovery channel';
```
## Task
Generate a SQL query to answer the following question:
`Which player is from Belgium?`

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

CREATE TABLE "individual_2007_uci_pro_tour_standings_a" (
  "rank" real,
  "name" text,
  "nationality" text,
  "team" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is from Belgium?`:
```sql
                SELECT "name" FROM "individual_2007_uci_pro_tour_standings_a" WHERE "nationality"='belgium';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team that played against the Kings?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team that played against the Kings?`:
```sql
                SELECT "visitor" FROM "december" WHERE "home"='kings';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the player for round more than 5 and position of c`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the player for round more than 5 and position of c`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "round">5 AND "position"='c';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the college for carl hagelin`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the college for carl hagelin`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='carl hagelin';
```
## Task
Generate a SQL query to answer the following question:
`What year is the player who attended la salle with under 6 assists from?`

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

CREATE TABLE "l" (
  "player" text,
  "pos" text,
  "from" real,
  "school_country" text,
  "rebs" real,
  "asts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year is the player who attended la salle with under 6 assists from?`:
```sql
                SELECT SUM("from") FROM "l" WHERE "school_country"='la salle' AND "asts"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which year has a total of 0 points and a chassis of Toleman tg181?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has a total of 0 points and a chassis of Toleman tg181?`:
```sql
                SELECT AVG("year") FROM "complete_formula_one_results" WHERE "points"=0 AND "chassis"='toleman tg181';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year that has more than 5 points and a renault ef15 1.5 v6 t engine?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that has more than 5 points and a renault ef15 1.5 v6 t engine?`:
```sql
                SELECT MAX("year") FROM "complete_formula_one_results" WHERE "engine"='renault ef15 1.5 v6 t' AND "points">5;
```
## Task
Generate a SQL query to answer the following question:
`Which year had a toleman tg183 chassis?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year had a toleman tg183 chassis?`:
```sql
                SELECT COUNT("year") FROM "complete_formula_one_results" WHERE "chassis"='toleman tg183';
```
## Task
Generate a SQL query to answer the following question:
`What is the time for tony myres?`

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

CREATE TABLE "junior_classic_race" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time for tony myres?`:
```sql
                SELECT "time" FROM "junior_classic_race" WHERE "rider"='tony myres';
```
## Task
Generate a SQL query to answer the following question:
`Name the speed for andy reynolds`

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

CREATE TABLE "junior_classic_race" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the speed for andy reynolds`:
```sql
                SELECT "speed" FROM "junior_classic_race" WHERE "rider"='andy reynolds';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of rank for 348cc petty manx`

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

CREATE TABLE "junior_classic_race" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of rank for 348cc petty manx`:
```sql
                SELECT COUNT("rank") FROM "junior_classic_race" WHERE "team"='348cc petty manx';
```
## Task
Generate a SQL query to answer the following question:
`Name the speed for 1:36.46.93`

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

CREATE TABLE "junior_classic_race" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the speed for 1:36.46.93`:
```sql
                SELECT "speed" FROM "junior_classic_race" WHERE "time"='1:36.46.93';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team score of Melbourne?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team score of Melbourne?`:
```sql
                SELECT "away_team_score" FROM "round_6" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What away team has a score of 12.10 (82)?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team has a score of 12.10 (82)?`:
```sql
                SELECT "away_team" FROM "round_6" WHERE "away_team_score"='12.10 (82)';
```
## Task
Generate a SQL query to answer the following question:
`What is Prime Mover of Model FM CFA-16-4?`

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

CREATE TABLE "c_liners" (
  "model" text,
  "build_year" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Prime Mover of Model FM CFA-16-4?`:
```sql
                SELECT "prime_mover" FROM "c_liners" WHERE "model"='fm cfa-16-4';
```
## Task
Generate a SQL query to answer the following question:
`with a 1st prize larger than 315,000 what was the score?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `with a 1st prize larger than 315,000 what was the score?`:
```sql
                SELECT "score" FROM "tournament_results" WHERE "1st_prize">'315,000';
```
## Task
Generate a SQL query to answer the following question:
`what was the purse ($) in illinois?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `what was the purse ($) in illinois?`:
```sql
                SELECT MAX("purse") FROM "tournament_results" WHERE "location"='illinois';
```
## Task
Generate a SQL query to answer the following question:
`who won with a score of 199 (-14) on oct 31?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `who won with a score of 199 (-14) on oct 31?`:
```sql
                SELECT "winner" FROM "tournament_results" WHERE "score"='199 (-14)' AND "date"='oct 31';
```
## Task
Generate a SQL query to answer the following question:
`How many years did he play in santiago de compostela?`

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

CREATE TABLE "spanish_national_championship" (
  "city" text,
  "position" real,
  "event" text,
  "year" real,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did he play in santiago de compostela?`:
```sql
                SELECT SUM("year") FROM "spanish_national_championship" WHERE "city"='santiago de compostela';
```
## Task
Generate a SQL query to answer the following question:
`What is the Total Finale of 女人唔易做?`

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

CREATE TABLE "highest_rating_drama_series_of_2006" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total Finale of 女人唔易做?`:
```sql
                SELECT SUM("finale") FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='女人唔易做';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Premiere peaking at more than 35 with a Rank of 10 and Finale greater than 33?`

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

CREATE TABLE "highest_rating_drama_series_of_2006" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Premiere peaking at more than 35 with a Rank of 10 and Finale greater than 33?`:
```sql
                SELECT MIN("premiere") FROM "highest_rating_drama_series_of_2006" WHERE "peak">35 AND "rank"=10 AND "finale">33;
```
## Task
Generate a SQL query to answer the following question:
`What is the Chinese Title Premiering 32 with 2.07 million HK viewers?`

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

CREATE TABLE "highest_rating_drama_series_of_2006" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Chinese Title Premiering 32 with 2.07 million HK viewers?`:
```sql
                SELECT "chinese_title" FROM "highest_rating_drama_series_of_2006" WHERE "hk_viewers"='2.07 million' AND "premiere"=32;
```
## Task
Generate a SQL query to answer the following question:
`What is the Average of Men in Pain with a Finale of less than 33?`

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

CREATE TABLE "highest_rating_drama_series_of_2006" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Average of Men in Pain with a Finale of less than 33?`:
```sql
                SELECT AVG("average") FROM "highest_rating_drama_series_of_2006" WHERE "english_title"='men in pain' AND "finale"<33;
```