cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What country is charley hoffman from?`

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

CREATE TABLE "table1_28498999_4" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country is charley hoffman from?`:
```sql
                SELECT "country" FROM "table1_28498999_4" WHERE "player"='Charley Hoffman';
```
## Task
Generate a SQL query to answer the following question:
`What is the before for the score of 63-67-66-71=267?`

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

CREATE TABLE "table1_28498999_4" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the before for the score of 63-67-66-71=267?`:
```sql
                SELECT MIN("before") FROM "table1_28498999_4" WHERE "score"='63-67-66-71=267';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for the winnings of 232500?`

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

CREATE TABLE "table1_28498999_4" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for the winnings of 232500?`:
```sql
                SELECT "to_par" FROM "table1_28498999_4" WHERE "winnings"=232500;
```
## Task
Generate a SQL query to answer the following question:
`What were the winnings for the score of 66-64-67-71=268?`

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

CREATE TABLE "table1_28498999_4" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the winnings for the score of 66-64-67-71=268?`:
```sql
                SELECT "winnings" FROM "table1_28498999_4" WHERE "score"='66-64-67-71=268';
```
## Task
Generate a SQL query to answer the following question:
`What is the after for geoff ogilvy?`

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

CREATE TABLE "table1_28498999_4" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the after for geoff ogilvy?`:
```sql
                SELECT MAX("after") FROM "table1_28498999_4" WHERE "player"='Geoff Ogilvy';
```
## Task
Generate a SQL query to answer the following question:
`what is the most number where the person is luke donald`

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

CREATE TABLE "reset_points" (
  "num" real,
  "player" text,
  "country" text,
  "points" real,
  "reset_points" real,
  "events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the most number where the person is luke donald`:
```sql
                SELECT MAX("reset_points") FROM "reset_points" WHERE "player"='Luke Donald';
```
## Task
Generate a SQL query to answer the following question:
`what is the place where the person is luke donald`

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

CREATE TABLE "reset_points" (
  "num" real,
  "player" text,
  "country" text,
  "points" real,
  "reset_points" real,
  "events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the place where the person is luke donald`:
```sql
                SELECT "country" FROM "reset_points" WHERE "player"='Luke Donald';
```
## Task
Generate a SQL query to answer the following question:
`what is the person there the numbers is 2343`

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

CREATE TABLE "reset_points" (
  "num" real,
  "player" text,
  "country" text,
  "points" real,
  "reset_points" real,
  "events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the person there the numbers is 2343`:
```sql
                SELECT "player" FROM "reset_points" WHERE "points"=2343;
```
## Task
Generate a SQL query to answer the following question:
`what is the number of pieces where the person is charley hoffman`

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

CREATE TABLE "reset_points" (
  "num" real,
  "player" text,
  "country" text,
  "points" real,
  "reset_points" real,
  "events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of pieces where the person is charley hoffman`:
```sql
                SELECT COUNT("reset_points") FROM "reset_points" WHERE "player"='Charley Hoffman';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of people where the pieces is 3015`

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

CREATE TABLE "reset_points" (
  "num" real,
  "player" text,
  "country" text,
  "points" real,
  "reset_points" real,
  "events" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of people where the pieces is 3015`:
```sql
                SELECT COUNT("player") FROM "reset_points" WHERE "points"=3015;
```
## Task
Generate a SQL query to answer the following question:
`Which team drafted Ron Annear? `

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

CREATE TABLE "round_ten" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team drafted Ron Annear? `:
```sql
                SELECT "nhl_team" FROM "round_ten" WHERE "player"='Ron Annear';
```
## Task
Generate a SQL query to answer the following question:
`Which team drafted Joakim Persson?`

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

CREATE TABLE "round_ten" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team drafted Joakim Persson?`:
```sql
                SELECT "nhl_team" FROM "round_ten" WHERE "player"='Joakim Persson';
```
## Task
Generate a SQL query to answer the following question:
`Which team drafted a player from HC Slavia Praha (Czechoslovakia)? `

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

CREATE TABLE "round_ten" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team drafted a player from HC Slavia Praha (Czechoslovakia)? `:
```sql
                SELECT "nhl_team" FROM "round_ten" WHERE "college_junior_club_team"='HC Slavia Praha (Czechoslovakia)';
```
## Task
Generate a SQL query to answer the following question:
`Which player was drafted by the New York Rangers? `

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

CREATE TABLE "round_ten" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was drafted by the New York Rangers? `:
```sql
                SELECT "player" FROM "round_ten" WHERE "nhl_team"='New York Rangers';
```
## Task
Generate a SQL query to answer the following question:
`Which team drafted Michael Orn?`

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

CREATE TABLE "round_ten" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team drafted Michael Orn?`:
```sql
                SELECT "nhl_team" FROM "round_ten" WHERE "player"='Michael Orn';
```
## Task
Generate a SQL query to answer the following question:
`What position was the player who was drafted by the Washington Capitals? `

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

CREATE TABLE "round_ten" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position was the player who was drafted by the Washington Capitals? `:
```sql
                SELECT "position" FROM "round_ten" WHERE "nhl_team"='Washington Capitals';
```
## Task
Generate a SQL query to answer the following question:
`What is Timo Lehkonen's highest pick number?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Timo Lehkonen's highest pick number?`:
```sql
                SELECT MAX("pick_num") FROM "round_five" WHERE "player"='Timo Lehkonen';
```
## Task
Generate a SQL query to answer the following question:
`What college/junior/club team played right wing position with NHL team Chicago Black Hawks?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college/junior/club team played right wing position with NHL team Chicago Black Hawks?`:
```sql
                SELECT "college_junior_club_team" FROM "round_five" WHERE "position"='Right Wing' AND "nhl_team"='Chicago Black Hawks';
```
## Task
Generate a SQL query to answer the following question:
`How many college/junior/club teams are from Sweden?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many college/junior/club teams are from Sweden?`:
```sql
                SELECT COUNT("college_junior_club_team") FROM "round_five" WHERE "nationality"='Sweden';
```
## Task
Generate a SQL query to answer the following question:
`What is Robert Dirk's nationality?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Robert Dirk's nationality?`:
```sql
                SELECT "nationality" FROM "round_three" WHERE "player"='Robert Dirk';
```
## Task
Generate a SQL query to answer the following question:
`What country is Trent Yawney from?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Trent Yawney from?`:
```sql
                SELECT "nationality" FROM "round_three" WHERE "player"='Trent Yawney';
```
## Task
Generate a SQL query to answer the following question:
`What is Michal Pivonka's pick number?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Michal Pivonka's pick number?`:
```sql
                SELECT COUNT("pick_num") FROM "round_three" WHERE "player"='Michal Pivonka';
```
## Task
Generate a SQL query to answer the following question:
`Which team did David McLay play for?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team did David McLay play for?`:
```sql
                SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='David McLay';
```
## Task
Generate a SQL query to answer the following question:
`What is Robert Dirk's team?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Robert Dirk's team?`:
```sql
                SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='Robert Dirk';
```
## Task
Generate a SQL query to answer the following question:
`What is Graeme Bonar's lowest pick number?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Graeme Bonar's lowest pick number?`:
```sql
                SELECT MIN("pick_num") FROM "round_three" WHERE "player"='Graeme Bonar';
```
## Task
Generate a SQL query to answer the following question:
`where did glenn greenough come from`

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

CREATE TABLE "round_eight" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `where did glenn greenough come from`:
```sql
                SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Glenn Greenough';
```
## Task
Generate a SQL query to answer the following question:
`how many parts does detroit red wings person urban nordin play`

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

CREATE TABLE "round_eight" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many parts does detroit red wings person urban nordin play`:
```sql
                SELECT COUNT("position") FROM "round_eight" WHERE "nhl_team"='Detroit Red Wings' AND "player"='Urban Nordin';
```
## Task
Generate a SQL query to answer the following question:
`What is the affiliation of the school with the website http://www.nicholasbreakspearschool.co.uk/?`

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

CREATE TABLE "state_schools" (
  "school" text,
  "gender" text,
  "age_range" text,
  "religious_affiliation" text,
  "location" text,
  "school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the affiliation of the school with the website http://www.nicholasbreakspearschool.co.uk/?`:
```sql
                SELECT "religious_affiliation" FROM "state_schools" WHERE "school_website"='http://www.nicholasbreakspearschool.co.uk/';
```
## Task
Generate a SQL query to answer the following question:
`What is the gender of the Roman Catholic school is AL4?`

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

CREATE TABLE "state_schools" (
  "school" text,
  "gender" text,
  "age_range" text,
  "religious_affiliation" text,
  "location" text,
  "school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of the Roman Catholic school is AL4?`:
```sql
                SELECT "gender" FROM "state_schools" WHERE "religious_affiliation"='Roman Catholic' AND "location"='AL4';
```
## Task
Generate a SQL query to answer the following question:
`What is the gender of the school which has the website http://www.nicholasbreakspearschool.co.uk/?`

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

CREATE TABLE "state_schools" (
  "school" text,
  "gender" text,
  "age_range" text,
  "religious_affiliation" text,
  "location" text,
  "school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of the school which has the website http://www.nicholasbreakspearschool.co.uk/?`:
```sql
                SELECT "gender" FROM "state_schools" WHERE "school_website"='http://www.nicholasbreakspearschool.co.uk/';
```
## Task
Generate a SQL query to answer the following question:
`What is the affiliation of the school with website http://www.townsend.herts.sch.uk/?`

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

CREATE TABLE "state_schools" (
  "school" text,
  "gender" text,
  "age_range" text,
  "religious_affiliation" text,
  "location" text,
  "school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the affiliation of the school with website http://www.townsend.herts.sch.uk/?`:
```sql
                SELECT "religious_affiliation" FROM "state_schools" WHERE "school_website"='http://www.townsend.herts.sch.uk/';
```
## Task
Generate a SQL query to answer the following question:
`What is the affiliation of the school whose website is http://www.samuelryderacademy.co.uk/?`

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

CREATE TABLE "state_schools" (
  "school" text,
  "gender" text,
  "age_range" text,
  "religious_affiliation" text,
  "location" text,
  "school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the affiliation of the school whose website is http://www.samuelryderacademy.co.uk/?`:
```sql
                SELECT "religious_affiliation" FROM "state_schools" WHERE "school_website"='http://www.samuelryderacademy.co.uk/';
```
## Task
Generate a SQL query to answer the following question:
`What is the website of the school affiliated with the Church of England?`

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

CREATE TABLE "state_schools" (
  "school" text,
  "gender" text,
  "age_range" text,
  "religious_affiliation" text,
  "location" text,
  "school_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the website of the school affiliated with the Church of England?`:
```sql
                SELECT "school_website" FROM "state_schools" WHERE "religious_affiliation"='Church of England';
```
## Task
Generate a SQL query to answer the following question:
`What nationality is listed when the college/junior/club team is oshawa generals (ohl)?`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is listed when the college/junior/club team is oshawa generals (ohl)?`:
```sql
                SELECT "nationality" FROM "round_seven" WHERE "college_junior_club_team"='Oshawa Generals (OHL)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player when the college/junior/club team is new westminster bruins (whl)?`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player when the college/junior/club team is new westminster bruins (whl)?`:
```sql
                SELECT "player" FROM "round_seven" WHERE "college_junior_club_team"='New Westminster Bruins (WHL)';
```
## Task
Generate a SQL query to answer the following question:
`How many college/junior/club teams are ther when nhl team is edmonton oilers?`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many college/junior/club teams are ther when nhl team is edmonton oilers?`:
```sql
                SELECT COUNT("college_junior_club_team") FROM "round_seven" WHERE "nhl_team"='Edmonton Oilers';
```
## Task
Generate a SQL query to answer the following question:
`What is the postion when the nhl team is los angeles kings?`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the postion when the nhl team is los angeles kings?`:
```sql
                SELECT "position" FROM "round_seven" WHERE "nhl_team"='Los Angeles Kings';
```
## Task
Generate a SQL query to answer the following question:
`How many nhl teams are listed when college/junior/club team is listed as newton north high school (ushs-ma)?`

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

CREATE TABLE "round_seven" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many nhl teams are listed when college/junior/club team is listed as newton north high school (ushs-ma)?`:
```sql
                SELECT COUNT("nhl_team") FROM "round_seven" WHERE "college_junior_club_team"='Newton North High School (USHS-MA)';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?`

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

CREATE TABLE "table1_28511558_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date_u_s" text,
  "original_air_date_international" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?`:
```sql
                SELECT "original_air_date_u_s" FROM "table1_28511558_2" WHERE "directed_by"='Victor Cook' AND "written_by"='Brat Jennett';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode written by Mitch Watson and directed by Curt Geda originally air in the U.S.?`

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

CREATE TABLE "table1_28511558_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date_u_s" text,
  "original_air_date_international" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode written by Mitch Watson and directed by Curt Geda originally air in the U.S.?`:
```sql
                SELECT "original_air_date_u_s" FROM "table1_28511558_2" WHERE "directed_by"='Curt Geda' AND "written_by"='Mitch Watson';
```
## Task
Generate a SQL query to answer the following question:
`When Alberto Contador Kanstantsin Sivtsov was the general classification and Alessandro Petacchi was the points classification at the same time while Mark Cavendish is the winner, who was the mountain classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Alberto Contador Kanstantsin Sivtsov was the general classification and Alessandro Petacchi was the points classification at the same time while Mark Cavendish is the winner, who was the mountain classification?`:
```sql
                SELECT "mountains_classification" FROM "classification_leadership" WHERE "general_classification"='Alberto Contador Kanstantsin Sivtsov' AND "points_classification"='Alessandro Petacchi' AND "winner"='Mark Cavendish';
```
## Task
Generate a SQL query to answer the following question:
`Who was the young rider classification when Alessandro Petacchi won?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the young rider classification when Alessandro Petacchi won?`:
```sql
                SELECT "young_rider_classification" FROM "classification_leadership" WHERE "winner"='Alessandro Petacchi';
```
## Task
Generate a SQL query to answer the following question:
`Who was the young rider classification when Diego Ulissi won? `

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the young rider classification when Diego Ulissi won? `:
```sql
                SELECT COUNT("young_rider_classification") FROM "classification_leadership" WHERE "winner"='Diego Ulissi';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the young rider classification when Paolo Tiralongo won?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the young rider classification when Paolo Tiralongo won?`:
```sql
                SELECT "young_rider_classification" FROM "classification_leadership" WHERE "winner"='Paolo Tiralongo';
```
## Task
Generate a SQL query to answer the following question:
`What's the version in the 1.0.4 release?`

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

CREATE TABLE "version_history" (
  "version" text,
  "release" text,
  "release_date" text,
  "end_of_maintenance" text,
  "requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the version in the 1.0.4 release?`:
```sql
                SELECT "version" FROM "version_history" WHERE "release"='1.0.4';
```
## Task
Generate a SQL query to answer the following question:
`What's the release date in the 1.1.10 release?`

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

CREATE TABLE "version_history" (
  "version" text,
  "release" text,
  "release_date" text,
  "end_of_maintenance" text,
  "requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release date in the 1.1.10 release?`:
```sql
                SELECT "release_date" FROM "version_history" WHERE "release"='1.1.10';
```
## Task
Generate a SQL query to answer the following question:
`When's the end of maintenance in the  august 11, 2013 release date?`

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

CREATE TABLE "version_history" (
  "version" text,
  "release" text,
  "release_date" text,
  "end_of_maintenance" text,
  "requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `When's the end of maintenance in the  august 11, 2013 release date?`:
```sql
                SELECT "end_of_maintenance" FROM "version_history" WHERE "release_date"='August 11, 2013';
```
## Task
Generate a SQL query to answer the following question:
`What's the version of the 1.0.12 release?`

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

CREATE TABLE "version_history" (
  "version" text,
  "release" text,
  "release_date" text,
  "end_of_maintenance" text,
  "requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the version of the 1.0.12 release?`:
```sql
                SELECT "version" FROM "version_history" WHERE "release"='1.0.12';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of the 1.0.9 release version?`

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

CREATE TABLE "version_history" (
  "version" text,
  "release" text,
  "release_date" text,
  "end_of_maintenance" text,
  "requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the 1.0.9 release version?`:
```sql
                SELECT COUNT("version") FROM "version_history" WHERE "release"='1.0.9';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of the 1.0.12 release version?`

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

CREATE TABLE "version_history" (
  "version" text,
  "release" text,
  "release_date" text,
  "end_of_maintenance" text,
  "requirement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the 1.0.12 release version?`:
```sql
                SELECT COUNT("version") FROM "version_history" WHERE "release"='1.0.12';
```
## Task
Generate a SQL query to answer the following question:
`What is the event 3 africa stone result for the man with an 1= (11 reps) event 2 squat lift result and a  3= (5 reps) event 4 overhead lift i result?`

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

CREATE TABLE "heat_4" (
  "position" text,
  "name" text,
  "nationality" text,
  "event_1_giant_farmers_walk" text,
  "event_2_squat_lift" text,
  "event_3_africa_stone" text,
  "event_4_overhead_lift" text,
  "event_5_deadlift_hold" text,
  "event_6_loading_race" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the event 3 africa stone result for the man with an 1= (11 reps) event 2 squat lift result and a  3= (5 reps) event 4 overhead lift i result?`:
```sql
                SELECT "event_3_africa_stone" FROM "heat_4" WHERE "event_2_squat_lift"='1= (11 reps)' AND "event_4_overhead_lift"='3= (5 reps)';
```
## Task
Generate a SQL query to answer the following question:
`For how many series were there 11.84 million watchers?`

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

CREATE TABLE "table1_28561455_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `For how many series were there 11.84 million watchers?`:
```sql
                SELECT "no_in_series" FROM "table1_28561455_1" WHERE "u_s_viewers_million"='11.84';
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest season number?`

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

CREATE TABLE "table1_28561455_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest season number?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_28561455_1";
```
## Task
Generate a SQL query to answer the following question:
`How many people watched the episode "bad girls"?`

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

CREATE TABLE "table1_28561455_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people watched the episode "bad girls"?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_28561455_1" WHERE "title"='\"Bad Girls\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episodes that were directed by Peter O'Fallon?`

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

CREATE TABLE "table1_28561455_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episodes that were directed by Peter O'Fallon?`:
```sql
                SELECT "written_by" FROM "table1_28561455_1" WHERE "directed_by"='Peter O''Fallon';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest episode number that Meredith Averill wrote?`

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

CREATE TABLE "table1_28561455_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest episode number that Meredith Averill wrote?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_28561455_1" WHERE "written_by"='Meredith Averill';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest episode number that was directed by Tom Dicillo?`

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

CREATE TABLE "table1_28561455_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest episode number that was directed by Tom Dicillo?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_28561455_1" WHERE "directed_by"='Tom DiCillo';
```
## Task
Generate a SQL query to answer the following question:
`How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "austria" text,
  "belgium" text,
  "england" text,
  "germany" text,
  "italy" text,
  "netherlands" text,
  "saudi_arabia" text,
  "spain" text,
  "united_arab_emirates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London?`:
```sql
                SELECT COUNT("germany") FROM "regional_championship" WHERE "italy"='Naples LL Naples' AND "england"='London Area Youth London';
```
## Task
Generate a SQL query to answer the following question:
`What was the team from Austria when the Netherlands sent Brunssum/Schinnen LL Brunssum and Belgium sent Shape and Waterloo LL Brussels?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "austria" text,
  "belgium" text,
  "england" text,
  "germany" text,
  "italy" text,
  "netherlands" text,
  "saudi_arabia" text,
  "spain" text,
  "united_arab_emirates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team from Austria when the Netherlands sent Brunssum/Schinnen LL Brunssum and Belgium sent Shape and Waterloo LL Brussels?`:
```sql
                SELECT "austria" FROM "regional_championship" WHERE "netherlands"='Brunssum/Schinnen LL Brunssum' AND "belgium"='SHAPE and Waterloo LL Brussels';
```
## Task
Generate a SQL query to answer the following question:
`How many times has the 100s record been 1?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" real,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times has the 100s record been 1?`:
```sql
                SELECT COUNT("highest_score") FROM "batting_averages" WHERE "100s"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of matches in a game?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" real,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of matches in a game?`:
```sql
                SELECT MAX("matches") FROM "batting_averages";
```
## Task
Generate a SQL query to answer the following question:
`What is the highest score in those games where the average is 9.88?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" real,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest score in those games where the average is 9.88?`:
```sql
                SELECT MIN("highest_score") FROM "batting_averages" WHERE "average"='9.88';
```
## Task
Generate a SQL query to answer the following question:
`What digital channel corresponds to virtual channel 23.2?`

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

CREATE TABLE "broadcast" (
  "callsign" text,
  "city_of_license" text,
  "virtual_channel" text,
  "digital_channel" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What digital channel corresponds to virtual channel 23.2?`:
```sql
                SELECT "digital_channel" FROM "broadcast" WHERE "virtual_channel"='23.2';
```
## Task
Generate a SQL query to answer the following question:
`What digital channel corresponds to virtual channel 5.2?`

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

CREATE TABLE "broadcast" (
  "callsign" text,
  "city_of_license" text,
  "virtual_channel" text,
  "digital_channel" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What digital channel corresponds to virtual channel 5.2?`:
```sql
                SELECT "digital_channel" FROM "broadcast" WHERE "virtual_channel"='5.2';
```
## Task
Generate a SQL query to answer the following question:
`What network airs on virtual channel 23.1?`

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

CREATE TABLE "broadcast" (
  "callsign" text,
  "city_of_license" text,
  "virtual_channel" text,
  "digital_channel" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network airs on virtual channel 23.1?`:
```sql
                SELECT "network" FROM "broadcast" WHERE "virtual_channel"='23.1';
```
## Task
Generate a SQL query to answer the following question:
`How many networks run on virtual channel 23.4?`

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

CREATE TABLE "broadcast" (
  "callsign" text,
  "city_of_license" text,
  "virtual_channel" text,
  "digital_channel" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many networks run on virtual channel 23.4?`:
```sql
                SELECT COUNT("network") FROM "broadcast" WHERE "virtual_channel"='23.4';
```
## Task
Generate a SQL query to answer the following question:
`What city licensed the broadcast on virtual channel 8.2?`

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

CREATE TABLE "broadcast" (
  "callsign" text,
  "city_of_license" text,
  "virtual_channel" text,
  "digital_channel" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city licensed the broadcast on virtual channel 8.2?`:
```sql
                SELECT "city_of_license" FROM "broadcast" WHERE "virtual_channel"='8.2';
```
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode with production code 2J5515?`

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

CREATE TABLE "table1_28582091_2" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode with production code 2J5515?`:
```sql
                SELECT "title" FROM "table1_28582091_2" WHERE "production_code"='2J5515';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007/08number when the 2010/11 is 1,633.6?`

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

CREATE TABLE "table1_28578233_1" (
  "ime_exchange_including_spot_credit_and_forward_transactions" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007/08number when the 2010/11 is 1,633.6?`:
```sql
                SELECT "2007_08" FROM "table1_28578233_1" WHERE "2010_11"='1,633.6';
```
## Task
Generate a SQL query to answer the following question:
`When 2007/08 is 6,443.8 what is ime exchange (including spot, credit and forward transactions)?`

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

CREATE TABLE "table1_28578233_1" (
  "ime_exchange_including_spot_credit_and_forward_transactions" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 2007/08 is 6,443.8 what is ime exchange (including spot, credit and forward transactions)?`:
```sql
                SELECT "ime_exchange_including_spot_credit_and_forward_transactions" FROM "table1_28578233_1" WHERE "2007_08"='6,443.8';
```
## Task
Generate a SQL query to answer the following question:
`When ime exchange (including spot, credit and forward transactions) is agricultural - volume (thousand tons) what is 2008/09?`

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

CREATE TABLE "table1_28578233_1" (
  "ime_exchange_including_spot_credit_and_forward_transactions" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When ime exchange (including spot, credit and forward transactions) is agricultural - volume (thousand tons) what is 2008/09?`:
```sql
                SELECT "2008_09" FROM "table1_28578233_1" WHERE "ime_exchange_including_spot_credit_and_forward_transactions"='Agricultural - Volume (thousand tons)';
```
## Task
Generate a SQL query to answer the following question:
`When  ime exchange (including spot, credit and forward transactions) is oil products - value (billion rials) what is the 2008/09 number?`

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

CREATE TABLE "table1_28578233_1" (
  "ime_exchange_including_spot_credit_and_forward_transactions" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  ime exchange (including spot, credit and forward transactions) is oil products - value (billion rials) what is the 2008/09 number?`:
```sql
                SELECT COUNT("2008_09") FROM "table1_28578233_1" WHERE "ime_exchange_including_spot_credit_and_forward_transactions"='Oil Products - Value (billion rials)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010/11 number when the 2007/08 is 772.6?`

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

CREATE TABLE "table1_28578233_1" (
  "ime_exchange_including_spot_credit_and_forward_transactions" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010/11 number when the 2007/08 is 772.6?`:
```sql
                SELECT "2010_11" FROM "table1_28578233_1" WHERE "2007_08"='772.6';
```
## Task
Generate a SQL query to answer the following question:
`When the ime exchange (including spot, credit and forward transactions) is agricultural - value (billion rials ) what is 2010/11?`

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

CREATE TABLE "table1_28578233_1" (
  "ime_exchange_including_spot_credit_and_forward_transactions" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the ime exchange (including spot, credit and forward transactions) is agricultural - value (billion rials ) what is 2010/11?`:
```sql
                SELECT "2010_11" FROM "table1_28578233_1" WHERE "ime_exchange_including_spot_credit_and_forward_transactions"='Agricultural - Value (billion rials )';
```