cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the away team at the venue victoria park?`

### 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 away team at the venue victoria park?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`When the home team was hawthorn, what was the date?`

### 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 the home team was hawthorn, what was the date?`:
```sql
                SELECT "date" FROM "round_7" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`Where did the game take place when the away team scored 14.15 (99)?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the game take place when the away team scored 14.15 (99)?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "away_team_score"='14.15 (99)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team scored 23.18 (156)?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team scored 23.18 (156)?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "home_team_score"='23.18 (156)';
```
## Task
Generate a SQL query to answer the following question:
`How many spectators had a home team score of 15.14 (104)?`

### 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 had a home team score of 15.14 (104)?`:
```sql
                SELECT AVG("crowd") FROM "round_7" WHERE "home_team_score"='15.14 (104)';
```
## Task
Generate a SQL query to answer the following question:
`What did Geelong score as the away 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 `What did Geelong score as the away team?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What date did the home team of footscray play?`

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

CREATE TABLE "round_15" (
  "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 date did the home team of footscray play?`:
```sql
                SELECT "date" FROM "round_15" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`Which away team scored 5.8 (38)?`

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

CREATE TABLE "round_15" (
  "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 scored 5.8 (38)?`:
```sql
                SELECT "away_team" FROM "round_15" WHERE "away_team_score"='5.8 (38)';
```
## Task
Generate a SQL query to answer the following question:
`Name the club team for overall of 188 for canada`

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

CREATE TABLE "1998_draft_picks" (
  "round" real,
  "overall" real,
  "player" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the club team for overall of 188 for canada`:
```sql
                SELECT "club_team" FROM "1998_draft_picks" WHERE "nationality"='canada' AND "overall"=188;
```
## Task
Generate a SQL query to answer the following question:
`Name the nationality of the player with an overall of 74`

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

CREATE TABLE "1998_draft_picks" (
  "round" real,
  "overall" real,
  "player" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nationality of the player with an overall of 74`:
```sql
                SELECT "nationality" FROM "1998_draft_picks" WHERE "overall"=74;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?`

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

CREATE TABLE "belt_changes_april_2010_figures_not_avai" (
  "feb_2010" text,
  "mar_2010" text,
  "may_2010" real,
  "jun_2010" real,
  "jul_2010" real,
  "aug_2010" real,
  "sep_2010" real,
  "oct_2010" real,
  "nov_2010" real,
  "dec_2010" real,
  "jan_2011" real,
  "feb_2011" real,
  "mar_2011" real,
  "apr_2011" real,
  "may_2011" real,
  "jun_2011" real,
  "jul_2011" real,
  "aug_2011" real,
  "sep_2011" real,
  "oct_2011" real,
  "nov_2011" real,
  "dec_2011" real,
  "jan_2012" real,
  "feb_2012" real,
  "mar_2012" real,
  "apr_2012" real,
  "may_2012" real,
  "jun_2012" real,
  "jul_2012" real,
  "aug_2012" real,
  "sep_2012" real,
  "oct_2012" real,
  "nov_2012" real,
  "dec_2012" real,
  "jan_2013" real,
  "feb_2013" real,
  "mar_2013" real,
  "apr_2013" real,
  "may_2013" real,
  "jun_2013" real,
  "jul_2013" real,
  "aug_2013" real,
  "sep_2013" real,
  "oct_2013" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?`:
```sql
                SELECT MAX("aug_2013") FROM "belt_changes_april_2010_figures_not_avai" WHERE "nov_2011"<968 AND "jul_2012"=31 AND "jun_2011">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Apr 2013 with a Jun 2011 less than 14?`

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

CREATE TABLE "belt_changes_april_2010_figures_not_avai" (
  "feb_2010" text,
  "mar_2010" text,
  "may_2010" real,
  "jun_2010" real,
  "jul_2010" real,
  "aug_2010" real,
  "sep_2010" real,
  "oct_2010" real,
  "nov_2010" real,
  "dec_2010" real,
  "jan_2011" real,
  "feb_2011" real,
  "mar_2011" real,
  "apr_2011" real,
  "may_2011" real,
  "jun_2011" real,
  "jul_2011" real,
  "aug_2011" real,
  "sep_2011" real,
  "oct_2011" real,
  "nov_2011" real,
  "dec_2011" real,
  "jan_2012" real,
  "feb_2012" real,
  "mar_2012" real,
  "apr_2012" real,
  "may_2012" real,
  "jun_2012" real,
  "jul_2012" real,
  "aug_2012" real,
  "sep_2012" real,
  "oct_2012" real,
  "nov_2012" real,
  "dec_2012" real,
  "jan_2013" real,
  "feb_2013" real,
  "mar_2013" real,
  "apr_2013" real,
  "may_2013" real,
  "jun_2013" real,
  "jul_2013" real,
  "aug_2013" real,
  "sep_2013" real,
  "oct_2013" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Apr 2013 with a Jun 2011 less than 14?`:
```sql
                SELECT AVG("apr_2013") FROM "belt_changes_april_2010_figures_not_avai" WHERE "jun_2011"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32?`

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

CREATE TABLE "belt_changes_april_2010_figures_not_avai" (
  "feb_2010" text,
  "mar_2010" text,
  "may_2010" real,
  "jun_2010" real,
  "jul_2010" real,
  "aug_2010" real,
  "sep_2010" real,
  "oct_2010" real,
  "nov_2010" real,
  "dec_2010" real,
  "jan_2011" real,
  "feb_2011" real,
  "mar_2011" real,
  "apr_2011" real,
  "may_2011" real,
  "jun_2011" real,
  "jul_2011" real,
  "aug_2011" real,
  "sep_2011" real,
  "oct_2011" real,
  "nov_2011" real,
  "dec_2011" real,
  "jan_2012" real,
  "feb_2012" real,
  "mar_2012" real,
  "apr_2012" real,
  "may_2012" real,
  "jun_2012" real,
  "jul_2012" real,
  "aug_2012" real,
  "sep_2012" real,
  "oct_2012" real,
  "nov_2012" real,
  "dec_2012" real,
  "jan_2013" real,
  "feb_2013" real,
  "mar_2013" real,
  "apr_2013" real,
  "may_2013" real,
  "jun_2013" real,
  "jul_2013" real,
  "aug_2013" real,
  "sep_2013" real,
  "oct_2013" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32?`:
```sql
                SELECT AVG("feb_2013") FROM "belt_changes_april_2010_figures_not_avai" WHERE "feb_2010"='37' AND "nov_2012"<32;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?`

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

CREATE TABLE "belt_changes_april_2010_figures_not_avai" (
  "feb_2010" text,
  "mar_2010" text,
  "may_2010" real,
  "jun_2010" real,
  "jul_2010" real,
  "aug_2010" real,
  "sep_2010" real,
  "oct_2010" real,
  "nov_2010" real,
  "dec_2010" real,
  "jan_2011" real,
  "feb_2011" real,
  "mar_2011" real,
  "apr_2011" real,
  "may_2011" real,
  "jun_2011" real,
  "jul_2011" real,
  "aug_2011" real,
  "sep_2011" real,
  "oct_2011" real,
  "nov_2011" real,
  "dec_2011" real,
  "jan_2012" real,
  "feb_2012" real,
  "mar_2012" real,
  "apr_2012" real,
  "may_2012" real,
  "jun_2012" real,
  "jul_2012" real,
  "aug_2012" real,
  "sep_2012" real,
  "oct_2012" real,
  "nov_2012" real,
  "dec_2012" real,
  "jan_2013" real,
  "feb_2013" real,
  "mar_2013" real,
  "apr_2013" real,
  "may_2013" real,
  "jun_2013" real,
  "jul_2013" real,
  "aug_2013" real,
  "sep_2013" real,
  "oct_2013" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?`:
```sql
                SELECT COUNT("nov_2012") FROM "belt_changes_april_2010_figures_not_avai" WHERE "jun_2013">542 AND "aug_2011">935;
```
## Task
Generate a SQL query to answer the following question:
`What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44?`

### 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's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44?`:
```sql
                SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='+1:03.741' AND "laps">44;
```
## Task
Generate a SQL query to answer the following question:
`What did the home team at Brunswick Street Oval score?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the home team at Brunswick Street Oval score?`:
```sql
                SELECT "home_team_score" FROM "round_8" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest rebounds of the game with A. Johnson (6) as the highest assist?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest rebounds of the game with A. Johnson (6) as the highest assist?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='a. johnson (6)';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest rebounds of the game with A. Johnson (14) as the highest assists?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest rebounds of the game with A. Johnson (14) as the highest assists?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='a. johnson (14)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on August 30?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on August 30?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='august 30';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on August 8?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on August 8?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='august 8';
```
## Task
Generate a SQL query to answer the following question:
`Which pick was the lowest from Manila College in Philippines?`

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

CREATE TABLE "round_2" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which pick was the lowest from Manila College in Philippines?`:
```sql
                SELECT MIN("pick") FROM "round_2" WHERE "country_of_origin"='philippines' AND "college"='manila';
```
## Task
Generate a SQL query to answer the following question:
`How many picks included Kenny Evans?`

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

CREATE TABLE "round_2" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks included Kenny Evans?`:
```sql
                SELECT COUNT("pick") FROM "round_2" WHERE "player"='kenny evans';
```
## Task
Generate a SQL query to answer the following question:
`How many picks went to College of Letran?`

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

CREATE TABLE "round_2" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks went to College of Letran?`:
```sql
                SELECT COUNT("pick") FROM "round_2" WHERE "college"='letran';
```
## Task
Generate a SQL query to answer the following question:
`Which player has a PBA team of Red Bull Thunder?`

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

CREATE TABLE "round_2" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a PBA team of Red Bull Thunder?`:
```sql
                SELECT "player" FROM "round_2" WHERE "pba_team"='red bull thunder';
```
## Task
Generate a SQL query to answer the following question:
`In which event did he place 6th in 1971?`

### 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 `In which event did he place 6th in 1971?`:
```sql
                SELECT "event" FROM "achievements" WHERE "year"=1971 AND "result"='6th';
```
## Task
Generate a SQL query to answer the following question:
`When was the first year he placed 2nd in Izmir, Turkey?`

### 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 `When was the first year he placed 2nd in Izmir, Turkey?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "result"='2nd' AND "venue"='izmir, turkey';
```
## Task
Generate a SQL query to answer the following question:
`How did he place in 1970?`

### 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 `How did he place in 1970?`:
```sql
                SELECT "result" FROM "achievements" WHERE "year"=1970;
```
## Task
Generate a SQL query to answer the following question:
`How many were in Attendance on the Date May 29?`

### 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 `How many were in Attendance on the Date May 29?`:
```sql
                SELECT COUNT("attendance") FROM "game_log" WHERE "date"='may 29';
```
## Task
Generate a SQL query to answer the following question:
`What was the Record on the Date May 8?`

### 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 was the Record on the Date May 8?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='may 8';
```
## Task
Generate a SQL query to answer the following question:
`What is the 10:00 with a 5:00 with monster knockouts?`

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

CREATE TABLE "schedule" (
  "5_00" text,
  "6_00" text,
  "7_00" text,
  "8_00" text,
  "10_00" text,
  "11_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 10:00 with a 5:00 with monster knockouts?`:
```sql
                SELECT "10_00" FROM "schedule" WHERE "5_00"='monster knockouts';
```
## Task
Generate a SQL query to answer the following question:
`What is the 6:00 with a 10:00 with mysteryquest?`

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

CREATE TABLE "schedule" (
  "5_00" text,
  "6_00" text,
  "7_00" text,
  "8_00" text,
  "10_00" text,
  "11_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 6:00 with a 10:00 with mysteryquest?`:
```sql
                SELECT "6_00" FROM "schedule" WHERE "10_00"='mysteryquest';
```
## Task
Generate a SQL query to answer the following question:
`What is the 11:00 with a 5:00 with monster knockouts?`

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

CREATE TABLE "schedule" (
  "5_00" text,
  "6_00" text,
  "7_00" text,
  "8_00" text,
  "10_00" text,
  "11_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 11:00 with a 5:00 with monster knockouts?`:
```sql
                SELECT "11_00" FROM "schedule" WHERE "5_00"='monster knockouts';
```
## Task
Generate a SQL query to answer the following question:
`What is the 10:00 with a 7:00 with mostly true stories: urban legends revealed?`

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

CREATE TABLE "schedule" (
  "5_00" text,
  "6_00" text,
  "7_00" text,
  "8_00" text,
  "10_00" text,
  "11_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 10:00 with a 7:00 with mostly true stories: urban legends revealed?`:
```sql
                SELECT "10_00" FROM "schedule" WHERE "7_00"='mostly true stories: urban legends revealed';
```
## Task
Generate a SQL query to answer the following question:
`What is the 6:00 with a 7:00 of mostly true stories: urban legends revealed, and a 10:00 with mysteryquest?`

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

CREATE TABLE "schedule" (
  "5_00" text,
  "6_00" text,
  "7_00" text,
  "8_00" text,
  "10_00" text,
  "11_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 6:00 with a 7:00 of mostly true stories: urban legends revealed, and a 10:00 with mysteryquest?`:
```sql
                SELECT "6_00" FROM "schedule" WHERE "7_00"='mostly true stories: urban legends revealed' AND "10_00"='mysteryquest';
```
## Task
Generate a SQL query to answer the following question:
`What is the 6:00 with an 11:00 of underbelly, and a 10:00 with nostradamus effect?`

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

CREATE TABLE "schedule" (
  "5_00" text,
  "6_00" text,
  "7_00" text,
  "8_00" text,
  "10_00" text,
  "11_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 6:00 with an 11:00 of underbelly, and a 10:00 with nostradamus effect?`:
```sql
                SELECT "6_00" FROM "schedule" WHERE "11_00"='underbelly' AND "10_00"='nostradamus effect';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at the game played on April 14, 2008?`

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

CREATE TABLE "april" (
  "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 `Who was the home team at the game played on April 14, 2008?`:
```sql
                SELECT "home" FROM "april" WHERE "date"='april 14, 2008';
```
## Task
Generate a SQL query to answer the following question:
`How many votes were cast when the notes reported lost to incumbent vic gilliam?`

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

CREATE TABLE "2008_ipo_general_election_results" (
  "race" text,
  "candidate" text,
  "party" text,
  "notes" text,
  "votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes were cast when the notes reported lost to incumbent vic gilliam?`:
```sql
                SELECT "votes" FROM "2008_ipo_general_election_results" WHERE "notes"='lost to incumbent vic gilliam';
```
## Task
Generate a SQL query to answer the following question:
`Who is the candidate in Race for State representative, hd18?`

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

CREATE TABLE "2008_ipo_general_election_results" (
  "race" text,
  "candidate" text,
  "party" text,
  "notes" text,
  "votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the candidate in Race for State representative, hd18?`:
```sql
                SELECT "candidate" FROM "2008_ipo_general_election_results" WHERE "race"='state representative, hd18';
```
## Task
Generate a SQL query to answer the following question:
`What club/province does the prop player with over 45 caps play for?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club/province does the prop player with over 45 caps play for?`:
```sql
                SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "caps">45 AND "position"='prop';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the Staples Center?`

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

CREATE TABLE "preseason" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text,
  "arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the Staples Center?`:
```sql
                SELECT "opponent" FROM "preseason" WHERE "arena"='staples center';
```
## Task
Generate a SQL query to answer the following question:
`In what arena was the game against the Sharks played?`

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

CREATE TABLE "preseason" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text,
  "arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what arena was the game against the Sharks played?`:
```sql
                SELECT "arena" FROM "preseason" WHERE "opponent"='sharks';
```
## Task
Generate a SQL query to answer the following question:
`What is the label with the LP format?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the label with the LP format?`:
```sql
                SELECT "label" FROM "release_history" WHERE "format"='lp';
```
## Task
Generate a SQL query to answer the following question:
`What date had a 4ad label and a CD (reissue) format?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had a 4ad label and a CD (reissue) format?`:
```sql
                SELECT "date" FROM "release_history" WHERE "label"='4ad' AND "format"='cd (reissue)';
```
## Task
Generate a SQL query to answer the following question:
`Which country had a cad 4011 catalogue #?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country had a cad 4011 catalogue #?`:
```sql
                SELECT "country" FROM "release_history" WHERE "catalogue_num"='cad 4011';
```
## Task
Generate a SQL query to answer the following question:
`Which date was for Japan?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date was for Japan?`:
```sql
                SELECT "date" FROM "release_history" WHERE "country"='japan';
```
## Task
Generate a SQL query to answer the following question:
`What is the label on the United States?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the label on the United States?`:
```sql
                SELECT "label" FROM "release_history" WHERE "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the date with the catalogue # cocy-80093?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date with the catalogue # cocy-80093?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalogue_num"='cocy-80093';
```
## Task
Generate a SQL query to answer the following question:
`What category was danson tang nominated?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was danson tang nominated?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "nomination"='danson tang';
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of years than had best improved singer (躍進歌手)?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of years than had best improved singer (躍進歌手)?`:
```sql
                SELECT SUM("year") FROM "awards_and_nominations" WHERE "category"='best improved singer (躍進歌手)';
```
## Task
Generate a SQL query to answer the following question:
`Who constructed the car with a grid over 19 that retired due to suspension?`

### 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 constructed the car with a grid over 19 that retired due to suspension?`:
```sql
                SELECT "constructor" FROM "race" WHERE "grid">19 AND "time_retired"='suspension';
```
## Task
Generate a SQL query to answer the following question:
`What driver has a 9 grid total?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What driver has a 9 grid total?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"=9;
```
## Task
Generate a SQL query to answer the following question:
`What was the winning car's chassis for the 1982 season?`

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

CREATE TABLE "by_season" (
  "season" text,
  "champion" text,
  "team" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning car's chassis for the 1982 season?`:
```sql
                SELECT "chassis" FROM "by_season" WHERE "season"='1982';
```
## Task
Generate a SQL query to answer the following question:
`Which team, with champion Bastian Kolmsee, used a Dallara f302 for the chassis?`

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

CREATE TABLE "by_season" (
  "season" text,
  "champion" text,
  "team" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team, with champion Bastian Kolmsee, used a Dallara f302 for the chassis?`:
```sql
                SELECT "team" FROM "by_season" WHERE "chassis"='dallara f302' AND "champion"='bastian kolmsee';
```
## Task
Generate a SQL query to answer the following question:
`What chassis was the car with the Volkswagen engine built on in 2010?`

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

CREATE TABLE "by_season" (
  "season" text,
  "champion" text,
  "team" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What chassis was the car with the Volkswagen engine built on in 2010?`:
```sql
                SELECT "chassis" FROM "by_season" WHERE "engine"='volkswagen' AND "season"='2010';
```
## Task
Generate a SQL query to answer the following question:
`Which engine did Korten Motorsport use?`

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

CREATE TABLE "by_season" (
  "season" text,
  "champion" text,
  "team" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine did Korten Motorsport use?`:
```sql
                SELECT "engine" FROM "by_season" WHERE "team"='korten motorsport';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion that drove the car with the Ford engine in 1971?`

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

CREATE TABLE "by_season" (
  "season" text,
  "champion" text,
  "team" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion that drove the car with the Ford engine in 1971?`:
```sql
                SELECT "champion" FROM "by_season" WHERE "engine"='ford' AND "season"='1971';
```
## Task
Generate a SQL query to answer the following question:
`In which season did Jimmy Eriksson win the championship for Team Lotus?`

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

CREATE TABLE "by_season" (
  "season" text,
  "champion" text,
  "team" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season did Jimmy Eriksson win the championship for Team Lotus?`:
```sql
                SELECT "season" FROM "by_season" WHERE "team"='lotus' AND "champion"='jimmy eriksson';
```
## Task
Generate a SQL query to answer the following question:
`Which name had 6 goals?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name had 6 goals?`:
```sql
                SELECT "name" FROM "squad_information" WHERE "goals"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest goal number when the transfer fee was £0.8m?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest goal number when the transfer fee was £0.8m?`:
```sql
                SELECT MAX("goals") FROM "squad_information" WHERE "transfer_fee"='£0.8m';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of a1 women's - handball?`

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

CREATE TABLE "main_sports_clubs" (
  "club" text,
  "leagues" text,
  "venue" text,
  "location" text,
  "capacity" real,
  "established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of a1 women's - handball?`:
```sql
                SELECT "location" FROM "main_sports_clubs" WHERE "leagues"='a1 women''s - handball';
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity at the nop aquatic centre, established after 1929?`

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

CREATE TABLE "main_sports_clubs" (
  "club" text,
  "leagues" text,
  "venue" text,
  "location" text,
  "capacity" real,
  "established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity at the nop aquatic centre, established after 1929?`:
```sql
                SELECT COUNT("capacity") FROM "main_sports_clubs" WHERE "venue"='nop aquatic centre' AND "established">1929;
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity for b national - basketball?`

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

CREATE TABLE "main_sports_clubs" (
  "club" text,
  "leagues" text,
  "venue" text,
  "location" text,
  "capacity" real,
  "established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity for b national - basketball?`:
```sql
                SELECT COUNT("capacity") FROM "main_sports_clubs" WHERE "leagues"='b national - basketball';
```
## Task
Generate a SQL query to answer the following question:
`What game week did the Buccaneers play against the Minnesota Vikings?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game week did the Buccaneers play against the Minnesota Vikings?`:
```sql
                SELECT "week" FROM "schedule" WHERE "opponent"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`What game week did the buccaneers have a record of 0-5?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game week did the buccaneers have a record of 0-5?`:
```sql
                SELECT "week" FROM "schedule" WHERE "record"='0-5';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the buccaneers on December 4, 1983?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the buccaneers on December 4, 1983?`:
```sql
                SELECT "record" FROM "schedule" WHERE "date"='december 4, 1983';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game against Ottawa?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game against Ottawa?`:
```sql
                SELECT AVG("attendance") FROM "december" WHERE "visitor"='ottawa';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance at a Detroit home game?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance at a Detroit home game?`:
```sql
                SELECT MAX("attendance") FROM "december" WHERE "home"='detroit';
```
## Task
Generate a SQL query to answer the following question:
`Which team had an attendance larger than 14,333 in a game against Toronto?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had an attendance larger than 14,333 in a game against Toronto?`:
```sql
                SELECT "home" FROM "december" WHERE "attendance">'14,333' AND "visitor"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the Florida vs. Montreal game?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the Florida vs. Montreal game?`:
```sql
                SELECT AVG("attendance") FROM "december" WHERE "home"='florida' AND "visitor"='montreal';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected`:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='unaffected' AND "bleeding_time"='prolonged' AND "partial_thromboplastin_time"='unaffected' AND "platelet_count"='decreased or unaffected';
```
## Task
Generate a SQL query to answer the following question:
`I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected`:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='prolonged' AND "platelet_count"='decreased or unaffected';
```
## Task
Generate a SQL query to answer the following question:
`I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor`:
```sql
                SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged' AND "bleeding_time"='unaffected' AND "condition"='factor xii deficiency';
```
## Task
Generate a SQL query to answer the following question:
`I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time`:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged' AND "bleeding_time"='unaffected';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for Antalya Airport?`

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

CREATE TABLE "current_destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for Antalya Airport?`:
```sql
                SELECT "icao" FROM "current_destinations" WHERE "airport"='antalya airport';
```
## Task
Generate a SQL query to answer the following question:
`What is the IATA of Leonardo da Vinci-Fiumicino Airport?`

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

CREATE TABLE "current_destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA of Leonardo da Vinci-Fiumicino Airport?`:
```sql
                SELECT "iata" FROM "current_destinations" WHERE "airport"='leonardo da vinci-fiumicino airport';
```