cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the US A.C. in 1974?`

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

CREATE TABLE "singles" (
  "year" real,
  "song" text,
  "canada_singles" text,
  "us_hot_100" text,
  "us_a_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the US A.C. in 1974?`:
```sql
                SELECT "us_a_c" FROM "singles" WHERE "year"=1974;
```
## Task
Generate a SQL query to answer the following question:
`What is the average round of player Sammy Morris?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round of player Sammy Morris?`:
```sql
                SELECT AVG("round") FROM "nfl_draft" WHERE "player"='sammy morris';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum pick # of the player from round 4?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum pick # of the player from round 4?`:
```sql
                SELECT SUM("pick_num") FROM "nfl_draft" WHERE "round"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from Arizona State?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from Arizona State?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "college"='arizona state';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the round of the player who plays linebacker and has a pick # greater than 251?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the round of the player who plays linebacker and has a pick # greater than 251?`:
```sql
                SELECT SUM("round") FROM "nfl_draft" WHERE "position"='linebacker' AND "pick_num">251;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from Arizona state with a round less than 7?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from Arizona state with a round less than 7?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "round"<7 AND "college"='arizona state';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest week for the day of October 21, 1956?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest week for the day of October 21, 1956?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "date"='october 21, 1956';
```
## Task
Generate a SQL query to answer the following question:
`What is the least recent week number when the attendance is 16,562?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least recent week number when the attendance is 16,562?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "attendance"='16,562';
```
## Task
Generate a SQL query to answer the following question:
`What is Country , when Rider is Lindsay Porter?`

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

CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country , when Rider is Lindsay Porter?`:
```sql
                SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "rider"='lindsay porter';
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Speed is 87.49mph?`

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

CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time, when Speed is 87.49mph?`:
```sql
                SELECT "time" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "speed"='87.49mph';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Points are more than 12?`

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

CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Points are more than 12?`:
```sql
                SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "points">12;
```
## Task
Generate a SQL query to answer the following question:
`What is Speed, when Time is 1:24.23.0?`

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

CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Speed, when Time is 1:24.23.0?`:
```sql
                SELECT "speed" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "time"='1:24.23.0';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Time is 1:29.43.60?`

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

CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Time is 1:29.43.60?`:
```sql
                SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "time"='1:29.43.60';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Place, when Points are greater than 2?`

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

CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Place, when Points are greater than 2?`:
```sql
                SELECT MIN("place") FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "points">2;
```
## Task
Generate a SQL query to answer the following question:
`What team was the opponent when the result was l 0-27?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "location" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the opponent when the result was l 0-27?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='l 0-27';
```
## Task
Generate a SQL query to answer the following question:
`What team was the opponent on 09/20/1975?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "location" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the opponent on 09/20/1975?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='09/20/1975';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the game on 11/08/1975*?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "location" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the game on 11/08/1975*?`:
```sql
                SELECT "location" FROM "schedule" WHERE "date"='11/08/1975*';
```
## Task
Generate a SQL query to answer the following question:
`How many gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals?`:
```sql
                SELECT "gold" FROM "medal_table" WHERE "bronze">2 AND "silver"=29;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year that Cicely Tyson is the Golden Globe Award actor?`

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

CREATE TABLE "women" (
  "year" real,
  "actor" text,
  "award" text,
  "motion_picture" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that Cicely Tyson is the Golden Globe Award actor?`:
```sql
                SELECT MAX("year") FROM "women" WHERE "actor"='cicely tyson';
```
## Task
Generate a SQL query to answer the following question:
`What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress?`

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

CREATE TABLE "women" (
  "year" real,
  "actor" text,
  "award" text,
  "motion_picture" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress?`:
```sql
                SELECT "motion_picture" FROM "women" WHERE "year">2003 AND "result"='nominated' AND "actor"='viola davis' AND "award"='best supporting actress';
```
## Task
Generate a SQL query to answer the following question:
`What Award has a date of 2002?`

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

CREATE TABLE "women" (
  "year" real,
  "actor" text,
  "award" text,
  "motion_picture" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Award has a date of 2002?`:
```sql
                SELECT "award" FROM "women" WHERE "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`What Award was received bby the Motion Picture What's Love Got To Do With It?`

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

CREATE TABLE "women" (
  "year" real,
  "actor" text,
  "award" text,
  "motion_picture" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Award was received bby the Motion Picture What's Love Got To Do With It?`:
```sql
                SELECT "award" FROM "women" WHERE "motion_picture"='what''s love got to do with it';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor?`

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

CREATE TABLE "women" (
  "year" real,
  "actor" text,
  "award" text,
  "motion_picture" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor?`:
```sql
                SELECT MAX("year") FROM "women" WHERE "actor"='marianne jean-baptiste';
```
## Task
Generate a SQL query to answer the following question:
`Which film was released in August 2004?`

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

CREATE TABLE "2004" (
  "date" text,
  "title" text,
  "director" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which film was released in August 2004?`:
```sql
                SELECT "title" FROM "2004" WHERE "date"='august 2004';
```
## Task
Generate a SQL query to answer the following question:
`What was the production cost for the film directed by 2004?`

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

CREATE TABLE "2004" (
  "date" text,
  "title" text,
  "director" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production cost for the film directed by 2004?`:
```sql
                SELECT "production_cost" FROM "2004" WHERE "director"='2004';
```
## Task
Generate a SQL query to answer the following question:
`What film did Pen-Ek Ratanaruang direct?`

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

CREATE TABLE "2004" (
  "date" text,
  "title" text,
  "director" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film did Pen-Ek Ratanaruang direct?`:
```sql
                SELECT "title" FROM "2004" WHERE "director"='pen-ek ratanaruang';
```
## Task
Generate a SQL query to answer the following question:
`When was the film directed by Pen-Ek Ratanaruang released?`

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

CREATE TABLE "2004" (
  "date" text,
  "title" text,
  "director" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the film directed by Pen-Ek Ratanaruang released?`:
```sql
                SELECT "date" FROM "2004" WHERE "director"='pen-ek ratanaruang';
```
## Task
Generate a SQL query to answer the following question:
`Who directed Tequila?`

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

CREATE TABLE "2004" (
  "date" text,
  "title" text,
  "director" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed Tequila?`:
```sql
                SELECT "director" FROM "2004" WHERE "title"='tequila';
```
## Task
Generate a SQL query to answer the following question:
`Who left office in June 2011?`

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

CREATE TABLE "list_of_special_representatives" (
  "name" text,
  "born_died" text,
  "took_office" text,
  "left_office" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who left office in June 2011?`:
```sql
                SELECT "name" FROM "list_of_special_representatives" WHERE "left_office"='june 2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the Born-Died date for the Representative of Italy?`

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

CREATE TABLE "list_of_special_representatives" (
  "name" text,
  "born_died" text,
  "took_office" text,
  "left_office" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Born-Died date for the Representative of Italy?`:
```sql
                SELECT "born_died" FROM "list_of_special_representatives" WHERE "country"='italy';
```
## Task
Generate a SQL query to answer the following question:
`What is the country of the Representative that left office as incumbent?`

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

CREATE TABLE "list_of_special_representatives" (
  "name" text,
  "born_died" text,
  "took_office" text,
  "left_office" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country of the Representative that left office as incumbent?`:
```sql
                SELECT "country" FROM "list_of_special_representatives" WHERE "left_office"='incumbent';
```
## Task
Generate a SQL query to answer the following question:
`What is Package/Option, when Language is Italian, and when Television Service is Sky Radio?`

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

CREATE TABLE "music" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Package/Option, when Language is Italian, and when Television Service is Sky Radio?`:
```sql
                SELECT "package_option" FROM "music" WHERE "language"='italian' AND "television_service"='sky radio';
```
## Task
Generate a SQL query to answer the following question:
`What is HDTV, when Television Service is MTV Rocks?`

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

CREATE TABLE "music" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is HDTV, when Television Service is MTV Rocks?`:
```sql
                SELECT "hdtv" FROM "music" WHERE "television_service"='mtv rocks';
```
## Task
Generate a SQL query to answer the following question:
`What is Television Service, when HDTV is No, and when Language is Italian?`

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

CREATE TABLE "music" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Television Service, when HDTV is No, and when Language is Italian?`:
```sql
                SELECT "television_service" FROM "music" WHERE "hdtv"='no' AND "language"='italian';
```
## Task
Generate a SQL query to answer the following question:
`What is Television Service, when Package/Option is Sky Famiglia, and when Language is Italian?`

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

CREATE TABLE "music" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Television Service, when Package/Option is Sky Famiglia, and when Language is Italian?`:
```sql
                SELECT "television_service" FROM "music" WHERE "package_option"='sky famiglia' AND "language"='italian';
```
## Task
Generate a SQL query to answer the following question:
`What is HDTV, when Language is English, and when Television Service is MTV Dance?`

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

CREATE TABLE "music" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is HDTV, when Language is English, and when Television Service is MTV Dance?`:
```sql
                SELECT "hdtv" FROM "music" WHERE "language"='english' AND "television_service"='mtv dance';
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of matches when the strike rate is 87.37 and the 100s is less than 0?`

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

CREATE TABLE "one_day_batting_statistics" (
  "player" text,
  "matches" real,
  "innings" real,
  "not_out" real,
  "runs" real,
  "high_score" text,
  "average" text,
  "strike_rate" text,
  "100s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean number of matches when the strike rate is 87.37 and the 100s is less than 0?`:
```sql
                SELECT AVG("matches") FROM "one_day_batting_statistics" WHERE "strike_rate"='87.37' AND "100s"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many average 100s were there for Tim Bresnan?`

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

CREATE TABLE "one_day_batting_statistics" (
  "player" text,
  "matches" real,
  "innings" real,
  "not_out" real,
  "runs" real,
  "high_score" text,
  "average" text,
  "strike_rate" text,
  "100s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many average 100s were there for Tim Bresnan?`:
```sql
                SELECT AVG("100s") FROM "one_day_batting_statistics" WHERE "player"='tim bresnan';
```
## Task
Generate a SQL query to answer the following question:
`How many Platforms have a Frequency of less than 2?`

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

CREATE TABLE "services" (
  "platform" real,
  "frequency_per_hour" real,
  "destination" text,
  "service_pattern" text,
  "operator" text,
  "line" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Platforms have a Frequency of less than 2?`:
```sql
                SELECT COUNT("platform") FROM "services" WHERE "frequency_per_hour"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the 1999-2000 team, when the Height (cm) is less than 187, and when the Birthplace is Cloquet, Minnesota?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "1999_2000_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1999-2000 team, when the Height (cm) is less than 187, and when the Birthplace is Cloquet, Minnesota?`:
```sql
                SELECT "1999_2000_team" FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"<187 AND "birthplace"='cloquet, minnesota';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name v t e, when the Height (cm) is greater than 179, and when the 1999-2000 team is Chicago Blackhawks?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "1999_2000_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name v t e, when the Height (cm) is greater than 179, and when the 1999-2000 team is Chicago Blackhawks?`:
```sql
                SELECT "name_v_t_e" FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm">179 AND "1999_2000_team"='chicago blackhawks';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Height (cm), when the Weight (kg) is 90?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "1999_2000_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Height (cm), when the Weight (kg) is 90?`:
```sql
                SELECT SUM("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=90;
```
## Task
Generate a SQL query to answer the following question:
`Which Losses have a Pct of .451 and Finished 6th?`

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

CREATE TABLE "seasons" (
  "season" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text,
  "pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses have a Pct of .451 and Finished 6th?`:
```sql
                SELECT "losses" FROM "seasons" WHERE "pct"='.451' AND "finish"='6th';
```
## Task
Generate a SQL query to answer the following question:
`Which season has Losses of 30?`

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

CREATE TABLE "seasons" (
  "season" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text,
  "pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has Losses of 30?`:
```sql
                SELECT "season" FROM "seasons" WHERE "losses"='30';
```
## Task
Generate a SQL query to answer the following question:
`In which Season was the Division Washington Bullets?`

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

CREATE TABLE "seasons" (
  "season" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text,
  "pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which Season was the Division Washington Bullets?`:
```sql
                SELECT "season" FROM "seasons" WHERE "division"='washington bullets';
```
## Task
Generate a SQL query to answer the following question:
`In which season were there Wins of 29 and a Finished place of 3rd?`

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

CREATE TABLE "seasons" (
  "season" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text,
  "pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season were there Wins of 29 and a Finished place of 3rd?`:
```sql
                SELECT "season" FROM "seasons" WHERE "wins"='29' AND "finish"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What is the EASA (EU) when the notes show aoc 135?`

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

CREATE TABLE "charter_airlines" (
  "airline" text,
  "fleet_size" real,
  "notes" text,
  "iosa_iata" text,
  "easa_eu" text,
  "iasa_faa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the EASA (EU) when the notes show aoc 135?`:
```sql
                SELECT "easa_eu" FROM "charter_airlines" WHERE "notes"='aoc 135';
```
## Task
Generate a SQL query to answer the following question:
`What is the Notes when the fleet size is 3?`

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

CREATE TABLE "charter_airlines" (
  "airline" text,
  "fleet_size" real,
  "notes" text,
  "iosa_iata" text,
  "easa_eu" text,
  "iasa_faa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Notes when the fleet size is 3?`:
```sql
                SELECT "notes" FROM "charter_airlines" WHERE "fleet_size"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the Fleet Size when the EASA (EU) is no?`

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

CREATE TABLE "charter_airlines" (
  "airline" text,
  "fleet_size" real,
  "notes" text,
  "iosa_iata" text,
  "easa_eu" text,
  "iasa_faa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Fleet Size when the EASA (EU) is no?`:
```sql
                SELECT "fleet_size" FROM "charter_airlines" WHERE "easa_eu"='no';
```
## Task
Generate a SQL query to answer the following question:
`hat is the Airline when the EASA (EU) is yes?`

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

CREATE TABLE "charter_airlines" (
  "airline" text,
  "fleet_size" real,
  "notes" text,
  "iosa_iata" text,
  "easa_eu" text,
  "iasa_faa" text
);
### SQL
Given the database schema, here is the SQL query that answers `hat is the Airline when the EASA (EU) is yes?`:
```sql
                SELECT "airline" FROM "charter_airlines" WHERE "easa_eu"='yes';
```
## Task
Generate a SQL query to answer the following question:
`What is the Airline when the notes show aoc 135?`

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

CREATE TABLE "charter_airlines" (
  "airline" text,
  "fleet_size" real,
  "notes" text,
  "iosa_iata" text,
  "easa_eu" text,
  "iasa_faa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Airline when the notes show aoc 135?`:
```sql
                SELECT "airline" FROM "charter_airlines" WHERE "notes"='aoc 135';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Year with a Competition that is new york city marathon?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Year with a Competition that is new york city marathon?`:
```sql
                SELECT MAX("year") FROM "achievements" WHERE "competition"='new york city marathon';
```
## Task
Generate a SQL query to answer the following question:
`What is the Notes with a Venue that is venice, italy?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Notes with a Venue that is venice, italy?`:
```sql
                SELECT "notes" FROM "achievements" WHERE "venue"='venice, italy';
```
## Task
Generate a SQL query to answer the following question:
`What is 1994, when 2002 is ATP Masters Series?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1994, when 2002 is ATP Masters Series?`:
```sql
                SELECT "1994" FROM "doubles_performance_timeline" WHERE "2002"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`What is 2001, when 1987 is N/A, and when Career SR is N/A?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2001, when 1987 is N/A, and when Career SR is N/A?`:
```sql
                SELECT "2001" FROM "doubles_performance_timeline" WHERE "1987"='n/a' AND "career_sr"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What is 1989, when 1999 is F, and when 1994 is 2R?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1989, when 1999 is F, and when 1994 is 2R?`:
```sql
                SELECT "1989" FROM "doubles_performance_timeline" WHERE "1999"='f' AND "1994"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R?`:
```sql
                SELECT "2001" FROM "doubles_performance_timeline" WHERE "1990"='a' AND "1987"='nme' AND "1997"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is 1997, when 2003 is 0 / 4?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1997, when 2003 is 0 / 4?`:
```sql
                SELECT "1997" FROM "doubles_performance_timeline" WHERE "2003"='0 / 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb less than 2, a 12-inch of 0, and a Total larger than 8?`

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

CREATE TABLE "hits_on_german_ships" (
  "ship" text,
  "13_5_inch_1400lb" real,
  "13_5_inch_1250lb" real,
  "12_inch" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb less than 2, a 12-inch of 0, and a Total larger than 8?`:
```sql
                SELECT MIN("13_5_inch_1400lb") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb"<2 AND "12_inch"=0 AND "total">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 12-inch when the 13.5-inch/1250lb was 0, and the ship is seydlitz?`

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

CREATE TABLE "hits_on_german_ships" (
  "ship" text,
  "13_5_inch_1400lb" real,
  "13_5_inch_1250lb" real,
  "12_inch" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 12-inch when the 13.5-inch/1250lb was 0, and the ship is seydlitz?`:
```sql
                SELECT MIN("12_inch") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb"=0 AND "ship"='seydlitz';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb of more than 1, and a 12-inch smaller than 8?`

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

CREATE TABLE "hits_on_german_ships" (
  "ship" text,
  "13_5_inch_1400lb" real,
  "13_5_inch_1250lb" real,
  "12_inch" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb of more than 1, and a 12-inch smaller than 8?`:
```sql
                SELECT MIN("13_5_inch_1400lb") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb">1 AND "12_inch"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total when the ship was lützow, with a 13.5-inch/1400lb smaller than 0?`

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

CREATE TABLE "hits_on_german_ships" (
  "ship" text,
  "13_5_inch_1400lb" real,
  "13_5_inch_1250lb" real,
  "12_inch" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total when the ship was lützow, with a 13.5-inch/1400lb smaller than 0?`:
```sql
                SELECT AVG("total") FROM "hits_on_german_ships" WHERE "ship"='lützow' AND "13_5_inch_1400lb"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Total when the ship was lützow, and a 12-inch less than 8?`

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

CREATE TABLE "hits_on_german_ships" (
  "ship" text,
  "13_5_inch_1400lb" real,
  "13_5_inch_1250lb" real,
  "12_inch" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Total when the ship was lützow, and a 12-inch less than 8?`:
```sql
                SELECT MAX("total") FROM "hits_on_german_ships" WHERE "ship"='lützow' AND "12_inch"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5?`

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

CREATE TABLE "composition_of_the_14th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5?`:
```sql
                SELECT AVG("total") FROM "composition_of_the_14th_seanad" WHERE "nominated_by_the_taoiseach"=0 AND "agricultural_panel">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0?`

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

CREATE TABLE "composition_of_the_14th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0?`:
```sql
                SELECT SUM("cultural_and_educational_panel") FROM "composition_of_the_14th_seanad" WHERE "industrial_and_commercial_panel"=0 AND "agricultural_panel">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0?`

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

CREATE TABLE "composition_of_the_14th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0?`:
```sql
                SELECT SUM("university_of_dublin") FROM "composition_of_the_14th_seanad" WHERE "nominated_by_the_taoiseach"=2 AND "industrial_and_commercial_panel">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5?`

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

CREATE TABLE "composition_of_the_14th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5?`:
```sql
                SELECT MAX("labour_panel") FROM "composition_of_the_14th_seanad" WHERE "university_of_dublin"<2 AND "agricultural_panel">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3?`

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

CREATE TABLE "composition_of_the_14th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3?`:
```sql
                SELECT AVG("university_of_dublin") FROM "composition_of_the_14th_seanad" WHERE "industrial_and_commercial_panel">4 AND "national_university_of_ireland">3;
```
## Task
Generate a SQL query to answer the following question:
`When has a Site of tainan city and a Score of 8–6?`

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

CREATE TABLE "chinese_professional_baseball_league" (
  "year" real,
  "winning_team" text,
  "losing_team" text,
  "score" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Site of tainan city and a Score of 8–6?`:
```sql
                SELECT "year" FROM "chinese_professional_baseball_league" WHERE "site"='tainan city' AND "score"='8–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Score that has a Winning team of wei chuan dragons?`

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

CREATE TABLE "chinese_professional_baseball_league" (
  "year" real,
  "winning_team" text,
  "losing_team" text,
  "score" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score that has a Winning team of wei chuan dragons?`:
```sql
                SELECT "score" FROM "chinese_professional_baseball_league" WHERE "winning_team"='wei chuan dragons';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of 2011 passengers in millions that have traveled a distance of 1271km?`

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

CREATE TABLE "world" (
  "rank" real,
  "city_1" text,
  "city_2" text,
  "2012_passengers_in_millions" real,
  "2011_passengers_in_millions" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of 2011 passengers in millions that have traveled a distance of 1271km?`:
```sql
                SELECT "2011_passengers_in_millions" FROM "world" WHERE "distance"='1271km';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of 2012 passengers in millions that have traveled a distance of 1075km?`

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

CREATE TABLE "world" (
  "rank" real,
  "city_1" text,
  "city_2" text,
  "2012_passengers_in_millions" real,
  "2011_passengers_in_millions" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of 2012 passengers in millions that have traveled a distance of 1075km?`:
```sql
                SELECT COUNT("2012_passengers_in_millions") FROM "world" WHERE "distance"='1075km';
```
## Task
Generate a SQL query to answer the following question:
`What is the City 1 that has less than 8.211 million passengers and traveled 1075km in distance?`

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

CREATE TABLE "world" (
  "rank" real,
  "city_1" text,
  "city_2" text,
  "2012_passengers_in_millions" real,
  "2011_passengers_in_millions" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the City 1 that has less than 8.211 million passengers and traveled 1075km in distance?`:
```sql
                SELECT "city_1" FROM "world" WHERE "2012_passengers_in_millions"<8.211 AND "distance"='1075km';
```
## Task
Generate a SQL query to answer the following question:
`What is SECOND, when SIXTH is Victoria?`

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

CREATE TABLE "1992_93_to_1996_97" (
  "season" text,
  "first" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is SECOND, when SIXTH is Victoria?`:
```sql
                SELECT "second" FROM "1992_93_to_1996_97" WHERE "sixth"='victoria';
```