cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Whcih Date has an Event of 3000 m?`

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

CREATE TABLE "women" (
  "event" text,
  "record" text,
  "nation" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whcih Date has an Event of 3000 m?`:
```sql
                SELECT "date" FROM "women" WHERE "event"='3000 m';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Date of 23 february 1986?`

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

CREATE TABLE "women" (
  "event" text,
  "record" text,
  "nation" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Date of 23 february 1986?`:
```sql
                SELECT "record" FROM "women" WHERE "date"='23 february 1986';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 8:39.49?`

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

CREATE TABLE "women" (
  "event" text,
  "record" text,
  "nation" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Record of 8:39.49?`:
```sql
                SELECT "date" FROM "women" WHERE "record"='8:39.49';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Date of 3 march 2013?`

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

CREATE TABLE "women" (
  "event" text,
  "record" text,
  "nation" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Date of 3 march 2013?`:
```sql
                SELECT "record" FROM "women" WHERE "date"='3 march 2013';
```
## Task
Generate a SQL query to answer the following question:
`Which Nation has a Record of 15.16 m?`

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

CREATE TABLE "women" (
  "event" text,
  "record" text,
  "nation" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nation has a Record of 15.16 m?`:
```sql
                SELECT "nation" FROM "women" WHERE "record"='15.16 m';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nationality of the Player with more than 8 Goals and Apps of 52?`

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

CREATE TABLE "player_statistics" (
  "pos" text,
  "nationality" text,
  "player" text,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nationality of the Player with more than 8 Goals and Apps of 52?`:
```sql
                SELECT "nationality" FROM "player_statistics" WHERE "goals">8 AND "apps"=52;
```
## Task
Generate a SQL query to answer the following question:
`How many Apps did Player Gilberto with more than 1 Goals have?`

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

CREATE TABLE "player_statistics" (
  "pos" text,
  "nationality" text,
  "player" text,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Apps did Player Gilberto with more than 1 Goals have?`:
```sql
                SELECT AVG("apps") FROM "player_statistics" WHERE "player"='gilberto' AND "goals">1;
```
## Task
Generate a SQL query to answer the following question:
`On what date was the 4th round, with home team Itabuna, played?`

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

CREATE TABLE "second_three_matches" (
  "round" text,
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the 4th round, with home team Itabuna, played?`:
```sql
                SELECT "date" FROM "second_three_matches" WHERE "round"='4th' AND "home_team"='itabuna';
```
## Task
Generate a SQL query to answer the following question:
`In the 6th round match with home team Bahia, who was the away team?`

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

CREATE TABLE "second_three_matches" (
  "round" text,
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the 6th round match with home team Bahia, who was the away team?`:
```sql
                SELECT "away_team" FROM "second_three_matches" WHERE "round"='6th' AND "home_team"='bahia';
```
## Task
Generate a SQL query to answer the following question:
`For the 5th round match with away team of Bahia, what was the final score?`

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

CREATE TABLE "second_three_matches" (
  "round" text,
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 5th round match with away team of Bahia, what was the final score?`:
```sql
                SELECT "score" FROM "second_three_matches" WHERE "round"='5th' AND "away_team"='bahia';
```
## Task
Generate a SQL query to answer the following question:
`Which League has a Regular Season of 2nd, southeast?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which League has a Regular Season of 2nd, southeast?`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "regular_season"='2nd, southeast';
```
## Task
Generate a SQL query to answer the following question:
`Who Playoffs has a Regular Season of on hiatus.?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who Playoffs has a Regular Season of on hiatus.?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "regular_season"='on hiatus.';
```
## Task
Generate a SQL query to answer the following question:
`What is the population of Kragerø?`

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

CREATE TABLE "city_status_since_after_1996" (
  "city" text,
  "municipality" text,
  "county" text,
  "town_status" text,
  "population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of Kragerø?`:
```sql
                SELECT MIN("population") FROM "city_status_since_after_1996" WHERE "city"='kragerø';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest population of a city that has a town status of 2010?`

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

CREATE TABLE "city_status_since_after_1996" (
  "city" text,
  "municipality" text,
  "county" text,
  "town_status" text,
  "population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population of a city that has a town status of 2010?`:
```sql
                SELECT MAX("population") FROM "city_status_since_after_1996" WHERE "town_status"='2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest population within the municipality of Porsgrunn?`

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

CREATE TABLE "city_status_since_after_1996" (
  "city" text,
  "municipality" text,
  "county" text,
  "town_status" text,
  "population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population within the municipality of Porsgrunn?`:
```sql
                SELECT MAX("population") FROM "city_status_since_after_1996" WHERE "municipality"='porsgrunn';
```
## Task
Generate a SQL query to answer the following question:
`What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11?`

### 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,
  "jersey_number" real,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "2009_10_team" text,
  "nhl_rights_if_any" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11?`:
```sql
                SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='d' AND "height_cm"=190 AND "jersey_number"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player who played for the London Knights during 2009-2010?`

### 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,
  "jersey_number" real,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "2009_10_team" text,
  "nhl_rights_if_any" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player who played for the London Knights during 2009-2010?`:
```sql
                SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "2009_10_team"='london knights';
```
## Task
Generate a SQL query to answer the following question:
`What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?`:
```sql
                SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "year"<1971 AND "entrant"='scuderia ferrari' AND "engine"='ferrari v12';
```
## Task
Generate a SQL query to answer the following question:
`What's the least amount of points that Walter Wolf Racing had after 1974?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the least amount of points that Walter Wolf Racing had after 1974?`:
```sql
                SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "year">1974 AND "entrant"='walter wolf racing';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?`

### 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,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?`:
```sql
                SELECT SUM("year") FROM "achievements" WHERE "position"='6th' AND "competition"='commonwealth games';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Year, when the Venue is Beijing, PR China?`

### 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,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Year, when the Venue is Beijing, PR China?`:
```sql
                SELECT MAX("year") FROM "achievements" WHERE "venue"='beijing, pr china';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Year, when Competition is Oceania Youth Championships?`

### 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,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Year, when Competition is Oceania Youth Championships?`:
```sql
                SELECT AVG("year") FROM "achievements" WHERE "competition"='oceania youth championships';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Position is 4th?`

### 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,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Position is 4th?`:
```sql
                SELECT "event" FROM "achievements" WHERE "position"='4th';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date with a Format that is cd?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date with a Format that is cd?`:
```sql
                SELECT "date" FROM "release_history" WHERE "format"='cd';
```
## Task
Generate a SQL query to answer the following question:
`What is the Catalog with a Date that is march 13, 2002?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Catalog with a Date that is march 13, 2002?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "date"='march 13, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What is the Label with a Catalog that is mhcl-20017?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Label with a Catalog that is mhcl-20017?`:
```sql
                SELECT "label" FROM "release_history" WHERE "catalog"='mhcl-20017';
```
## Task
Generate a SQL query to answer the following question:
`What is the Catalog with a Date that is february 20, 2002?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Catalog with a Date that is february 20, 2002?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "date"='february 20, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980?`

### 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,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1999_2000_team" text,
  "nhl_rights" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980?`:
```sql
                SELECT MIN("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num">22 AND "position"='f' AND "birthdate"='march 19, 1980';
```
## Task
Generate a SQL query to answer the following question:
`What is the Position, when the Birthplace is Buffalo, New York?`

### 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,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1999_2000_team" text,
  "nhl_rights" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Position, when the Birthplace is Buffalo, New York?`:
```sql
                SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='buffalo, new york';
```
## Task
Generate a SQL query to answer the following question:
`What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?`

### 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,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1999_2000_team" text,
  "nhl_rights" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?`:
```sql
                SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"<18 AND "height_cm">185 AND "birthdate"='march 3, 1980';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game with 65,309 people in attendance?`

### 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,
  "game_site" text,
  "final_score" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game with 65,309 people in attendance?`:
```sql
                SELECT "final_score" FROM "schedule" WHERE "attendance"='65,309';
```
## Task
Generate a SQL query to answer the following question:
`What average week number had the Chicago bears as the opponent?`

### 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,
  "game_site" text,
  "final_score" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average week number had the Chicago bears as the opponent?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "opponent"='chicago bears';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the game against New England Patriots at the Rich Stadium?`

### 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,
  "game_site" text,
  "final_score" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the game against New England Patriots at the Rich Stadium?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game_site"='rich stadium' AND "opponent"='new england patriots';
```
## Task
Generate a SQL query to answer the following question:
`What did the Dallara chassis with a 5 start in 2006 finish?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the Dallara chassis with a 5 start in 2006 finish?`:
```sql
                SELECT "finish" FROM "indianapolis_500" WHERE "chassis"='dallara' AND "start"='5' AND "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`What is the chassis of the Honda Engine from 2008?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chassis of the Honda Engine from 2008?`:
```sql
                SELECT "chassis" FROM "indianapolis_500" WHERE "engine"='honda' AND "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year of the Honda Engine with a finish of 4?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year of the Honda Engine with a finish of 4?`:
```sql
                SELECT MIN("year") FROM "indianapolis_500" WHERE "engine"='honda' AND "finish"=4;
```
## Task
Generate a SQL query to answer the following question:
`What was 2002, when 2008 was, "career statistics"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was 2002, when 2008 was, "career statistics"?`:
```sql
                SELECT "2002" FROM "singles_performance_timeline" WHERE "2008"='career statistics';
```
## Task
Generate a SQL query to answer the following question:
`What was 2009, when 2001 was, "not masters series"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was 2009, when 2001 was, "not masters series"?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2001"='not masters series';
```
## Task
Generate a SQL query to answer the following question:
`What was 2011, when 2005 was 2R, and when 2003 was 2R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was 2011, when 2005 was 2R, and when 2003 was 2R?`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "2005"='2r' AND "2003"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2003"='a' AND "tournament"='madrid masters';
```
## Task
Generate a SQL query to answer the following question:
`What was 2002, when 2011 was, "atp masters series"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was 2002, when 2011 was, "atp masters series"?`:
```sql
                SELECT "2002" FROM "singles_performance_timeline" WHERE "2011"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest wins of Larry Nelson, who ranked less than 5?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest wins of Larry Nelson, who ranked less than 5?`:
```sql
                SELECT MIN("wins") FROM "leaders" WHERE "player"='larry nelson' AND "rank"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the earnings for rank 3?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the earnings for rank 3?`:
```sql
                SELECT SUM("earnings") FROM "leaders" WHERE "rank"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest rank which earned 24,920,665?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest rank which earned 24,920,665?`:
```sql
                SELECT MIN("rank") FROM "leaders" WHERE "earnings"='24,920,665';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of wins for a rank less than 3, and earnings more than 24,920,665?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of wins for a rank less than 3, and earnings more than 24,920,665?`:
```sql
                SELECT SUM("wins") FROM "leaders" WHERE "rank"<3 AND "earnings">'24,920,665';
```
## Task
Generate a SQL query to answer the following question:
`What is the country is ranked more than 4?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country is ranked more than 4?`:
```sql
                SELECT "country" FROM "leaders" WHERE "rank">4;
```
## Task
Generate a SQL query to answer the following question:
`What the total of Week with attendance of 53,147`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the total of Week with attendance of 53,147`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "attendance"='53,147';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest week for December 26, 1999`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest week for December 26, 1999`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "date"='december 26, 1999';
```
## Task
Generate a SQL query to answer the following question:
`What season has 6 races and the team is Australia?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What season has 6 races and the team is Australia?`:
```sql
                SELECT "season" FROM "career_summary" WHERE "races"=6 AND "team"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Races when there were more than 8 wins?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Races when there were more than 8 wins?`:
```sql
                SELECT COUNT("races") FROM "career_summary" WHERE "wins">8;
```
## Task
Generate a SQL query to answer the following question:
`Who's the Socialist ticket with a Republican ticket of john a. may?`

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

CREATE TABLE "1936_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Socialist ticket with a Republican ticket of john a. may?`:
```sql
                SELECT "socialist_ticket" FROM "1936_state_election_results" WHERE "republican_ticket"='john a. may';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Republican ticket with a Democratic ticket of m. william bray?`

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

CREATE TABLE "1936_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Republican ticket with a Democratic ticket of m. william bray?`:
```sql
                SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "democratic_ticket"='m. william bray';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Socialist ticket with a Democratic ticket of herbert h. lehman?`

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

CREATE TABLE "1936_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Socialist ticket with a Democratic ticket of herbert h. lehman?`:
```sql
                SELECT "socialist_ticket" FROM "1936_state_election_results" WHERE "democratic_ticket"='herbert h. lehman';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?`

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

CREATE TABLE "1936_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?`:
```sql
                SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "socialist_ticket"='frank r. crosswaith';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Republican ticket with a Socialist ticket of edna mitchell blue?`

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

CREATE TABLE "1936_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Republican ticket with a Socialist ticket of edna mitchell blue?`:
```sql
                SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "socialist_ticket"='edna mitchell blue';
```
## Task
Generate a SQL query to answer the following question:
`what's the earliest year that serena williams had more than 2 sets?`

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

CREATE TABLE "women" (
  "aces" real,
  "player" text,
  "opponent" text,
  "year" real,
  "event" text,
  "sets" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the earliest year that serena williams had more than 2 sets?`:
```sql
                SELECT MIN("year") FROM "women" WHERE "player"='serena williams' AND "sets">2;
```
## Task
Generate a SQL query to answer the following question:
`what's the earliest year that the wimbledon opponent was zheng jie?`

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

CREATE TABLE "women" (
  "aces" real,
  "player" text,
  "opponent" text,
  "year" real,
  "event" text,
  "sets" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the earliest year that the wimbledon opponent was zheng jie?`:
```sql
                SELECT MIN("year") FROM "women" WHERE "event"='wimbledon' AND "opponent"='zheng jie';
```
## Task
Generate a SQL query to answer the following question:
`what year was the opponent caroline garcia?`

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

CREATE TABLE "women" (
  "aces" real,
  "player" text,
  "opponent" text,
  "year" real,
  "event" text,
  "sets" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year was the opponent caroline garcia?`:
```sql
                SELECT SUM("year") FROM "women" WHERE "opponent"='caroline garcia';
```
## Task
Generate a SQL query to answer the following question:
`what's the most recent year that samantha stosur was the opponent with 20 aces and having played more than 2 sets?`

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

CREATE TABLE "women" (
  "aces" real,
  "player" text,
  "opponent" text,
  "year" real,
  "event" text,
  "sets" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the most recent year that samantha stosur was the opponent with 20 aces and having played more than 2 sets?`:
```sql
                SELECT MAX("year") FROM "women" WHERE "aces"=20 AND "opponent"='samantha stosur' AND "sets">2;
```
## Task
Generate a SQL query to answer the following question:
`what year was the memphis event?`

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

CREATE TABLE "women" (
  "aces" real,
  "player" text,
  "opponent" text,
  "year" real,
  "event" text,
  "sets" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year was the memphis event?`:
```sql
                SELECT SUM("year") FROM "women" WHERE "event"='memphis';
```
## Task
Generate a SQL query to answer the following question:
`What season did the player who had the number 26 play on who came from far eastern?`

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

CREATE TABLE "a" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" real,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season did the player who had the number 26 play on who came from far eastern?`:
```sql
                SELECT "season" FROM "a" WHERE "school_club_team"='far eastern' AND "number"=26;
```
## Task
Generate a SQL query to answer the following question:
`What season did the player who came from Cebu play in?`

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

CREATE TABLE "a" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" real,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season did the player who came from Cebu play in?`:
```sql
                SELECT "season" FROM "a" WHERE "school_club_team"='cebu';
```
## Task
Generate a SQL query to answer the following question:
`How much did Champion jessica shepley share when she won?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much did Champion jessica shepley share when she won?`:
```sql
                SELECT "winner_s_share" FROM "winners" WHERE "champion"='jessica shepley';
```
## Task
Generate a SQL query to answer the following question:
`What was the country in the year 2012?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the country in the year 2012?`:
```sql
                SELECT "country" FROM "winners" WHERE "year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`How many purses were there after 2012 that had a winner's share of less than 15,000?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many purses were there after 2012 that had a winner's share of less than 15,000?`:
```sql
                SELECT COUNT("purse") FROM "winners" WHERE "year">2012 AND "winner_s_share"<'15,000';
```
## Task
Generate a SQL query to answer the following question:
`In what year was Letecke Zavody N.P., Jinonice the manufacturer?`

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

CREATE TABLE "list" (
  "country" text,
  "automobile_name" text,
  "manufacturer" text,
  "engine_make_capacity" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was Letecke Zavody N.P., Jinonice the manufacturer?`:
```sql
                SELECT "year" FROM "list" WHERE "manufacturer"='letecke zavody n.p., jinonice';
```
## Task
Generate a SQL query to answer the following question:
`What country had the car with the Jawa 350cc engine?`

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

CREATE TABLE "list" (
  "country" text,
  "automobile_name" text,
  "manufacturer" text,
  "engine_make_capacity" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had the car with the Jawa 350cc engine?`:
```sql
                SELECT "country" FROM "list" WHERE "engine_make_capacity"='jawa 350cc';
```
## Task
Generate a SQL query to answer the following question:
`In what country was the car with the čz 171cc engine?`

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

CREATE TABLE "list" (
  "country" text,
  "automobile_name" text,
  "manufacturer" text,
  "engine_make_capacity" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what country was the car with the čz 171cc engine?`:
```sql
                SELECT "country" FROM "list" WHERE "engine_make_capacity"='čz 171cc';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the car that was made in the years 1956-1958?`

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

CREATE TABLE "list" (
  "country" text,
  "automobile_name" text,
  "manufacturer" text,
  "engine_make_capacity" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the car that was made in the years 1956-1958?`:
```sql
                SELECT "automobile_name" FROM "list" WHERE "year"='1956-1958';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the car manufactured by Letecke Zavody N.P., Jinonice?`

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

CREATE TABLE "list" (
  "country" text,
  "automobile_name" text,
  "manufacturer" text,
  "engine_make_capacity" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the car manufactured by Letecke Zavody N.P., Jinonice?`:
```sql
                SELECT "automobile_name" FROM "list" WHERE "manufacturer"='letecke zavody n.p., jinonice';
```
## Task
Generate a SQL query to answer the following question:
`Who manufactured the car with the jawa 249cc engine that was made in the years 1956-1963?`

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

CREATE TABLE "list" (
  "country" text,
  "automobile_name" text,
  "manufacturer" text,
  "engine_make_capacity" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who manufactured the car with the jawa 249cc engine that was made in the years 1956-1963?`:
```sql
                SELECT "manufacturer" FROM "list" WHERE "engine_make_capacity"='jawa 249cc' AND "year"='1956-1963';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 2 with a Date that is jun 29?`

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

CREATE TABLE "results_pool_c" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 2 with a Date that is jun 29?`:
```sql
                SELECT "set_2" FROM "results_pool_c" WHERE "date"='jun 29';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 1 with a Set 2 that is 25-19?`

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

CREATE TABLE "results_pool_c" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 1 with a Set 2 that is 25-19?`:
```sql
                SELECT "set_1" FROM "results_pool_c" WHERE "set_2"='25-19';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 5 with a Date that is jun 29?`

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

CREATE TABLE "results_pool_c" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 5 with a Date that is jun 29?`:
```sql
                SELECT "set_5" FROM "results_pool_c" WHERE "date"='jun 29';
```
## Task
Generate a SQL query to answer the following question:
`When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?`

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

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?`:
```sql
                SELECT "construction_completed" FROM "superfund_sites" WHERE "listed"='09/21/1984' AND "deleted"='11/04/1999';
```
## Task
Generate a SQL query to answer the following question:
`What is the partially deleted result for a completed construction of m– in St. Maries Creosote?`

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

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the partially deleted result for a completed construction of m– in St. Maries Creosote?`:
```sql
                SELECT "partially_deleted" FROM "superfund_sites" WHERE "construction_completed"='–' AND "name"='st. maries creosote';
```
## Task
Generate a SQL query to answer the following question:
`What is the partially deleted result for Bunker Hill Mining & Metallurgical?`

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

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the partially deleted result for Bunker Hill Mining & Metallurgical?`:
```sql
                SELECT "partially_deleted" FROM "superfund_sites" WHERE "name"='bunker hill mining & metallurgical';
```