cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who won the points classifications in the stage where Matteo Priamo was the winner?`

### 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 won the points classifications in the stage where Matteo Priamo was the winner?`:
```sql
                SELECT COUNT("points_classification") FROM "classification_leadership" WHERE "winner"='Matteo Priamo';
```
## Task
Generate a SQL query to answer the following question:
`Who was awarded the young ride classification leader when the winner was Marzio Bruseghin?`

### 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 awarded the young ride classification leader when the winner was Marzio Bruseghin?`:
```sql
                SELECT "young_rider_classification" FROM "classification_leadership" WHERE "winner"='Marzio Bruseghin';
```
## Task
Generate a SQL query to answer the following question:
`Which title did Neil Affleck direct?`

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

CREATE TABLE "table1_14724369_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title did Neil Affleck direct?`:
```sql
                SELECT "title" FROM "table1_14724369_1" WHERE "directed_by"='Neil Affleck';
```
## Task
Generate a SQL query to answer the following question:
`What is the first number in series that had the production code 1ACX03?`

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

CREATE TABLE "table1_14724369_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first number in series that had the production code 1ACX03?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_14724369_1" WHERE "production_code"='1ACX03';
```
## Task
Generate a SQL query to answer the following question:
`Which title had the production code 1ACX04?`

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

CREATE TABLE "table1_14724369_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title had the production code 1ACX04?`:
```sql
                SELECT "title" FROM "table1_14724369_1" WHERE "production_code"='1ACX04';
```
## Task
Generate a SQL query to answer the following question:
`When did the show directed by Michael Dimartino first air?`

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

CREATE TABLE "table1_14724369_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the show directed by Michael Dimartino first air?`:
```sql
                SELECT "original_air_date" FROM "table1_14724369_1" WHERE "directed_by"='Michael DiMartino';
```
## Task
Generate a SQL query to answer the following question:
`Which series numbers were directed by Monte Young?`

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

CREATE TABLE "table1_14724369_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series numbers were directed by Monte Young?`:
```sql
                SELECT "no_in_series" FROM "table1_14724369_1" WHERE "directed_by"='Monte Young';
```
## Task
Generate a SQL query to answer the following question:
`How many people directed the show written by Chris Sheridan?`

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

CREATE TABLE "table1_14724369_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people directed the show written by Chris Sheridan?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_14724369_1" WHERE "written_by"='Chris Sheridan';
```
## Task
Generate a SQL query to answer the following question:
`What regular seasons occurred in 2011?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What regular seasons occurred in 2011?`:
```sql
                SELECT "regular_season" FROM "year_by_year" WHERE "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest numbered?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest numbered?`:
```sql
                SELECT MAX("division") FROM "year_by_year";
```
## Task
Generate a SQL query to answer the following question:
`How many positions does rene villemure play?`

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

CREATE TABLE "round_two" (
  "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 positions does rene villemure play?`:
```sql
                SELECT COUNT("position") FROM "round_two" WHERE "player"='Rene Villemure';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick# for the medicine hat tigers (wchl)?`

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

CREATE TABLE "round_two" (
  "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 pick# for the medicine hat tigers (wchl)?`:
```sql
                SELECT MIN("pick_num") FROM "round_two" WHERE "college_junior_club_team"='Medicine Hat Tigers (WCHL)';
```
## Task
Generate a SQL query to answer the following question:
`What nhl team does stan weir play for?`

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

CREATE TABLE "round_two" (
  "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 nhl team does stan weir play for?`:
```sql
                SELECT "nhl_team" FROM "round_two" WHERE "player"='Stan Weir';
```
## Task
Generate a SQL query to answer the following question:
`What nhl team does dwight bialowas play for?`

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

CREATE TABLE "round_two" (
  "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 nhl team does dwight bialowas play for?`:
```sql
                SELECT "nhl_team" FROM "round_two" WHERE "player"='Dwight Bialowas';
```
## Task
Generate a SQL query to answer the following question:
`Lorne Henning has the lowest pick# of?`

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

CREATE TABLE "round_two" (
  "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 `Lorne Henning has the lowest pick# of?`:
```sql
                SELECT MIN("pick_num") FROM "round_two";
```
## Task
Generate a SQL query to answer the following question:
`Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team?`

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

CREATE TABLE "round_two" (
  "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 `Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team?`:
```sql
                SELECT "nhl_team" FROM "round_two" WHERE "college_junior_club_team"='Oshawa Generals (OMJHL)';
```
## Task
Generate a SQL query to answer the following question:
`Which colle/junior/club team did Michel Boudreau 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 colle/junior/club team did Michel Boudreau play for?`:
```sql
                SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='Michel Boudreau';
```
## Task
Generate a SQL query to answer the following question:
`Which players played right wing?`

### 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 players played right wing?`:
```sql
                SELECT "player" FROM "round_three" WHERE "position"='Right Wing';
```
## Task
Generate a SQL query to answer the following question:
`Which nationality is the player from the Philadelphia Flyers?`

### 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 nationality is the player from the Philadelphia Flyers?`:
```sql
                SELECT "nationality" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers';
```
## Task
Generate a SQL query to answer the following question:
`Which position did the player hold that played for the Philadelphia Flyers in NHL?`

### 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 position did the player hold that played for the Philadelphia Flyers in NHL?`:
```sql
                SELECT "position" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers';
```
## Task
Generate a SQL query to answer the following question:
`Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?`

### 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 college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?`:
```sql
                SELECT "college_junior_club_team" FROM "round_three" WHERE "nhl_team"='Buffalo Sabres';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of teams for college/junior club for philadelphia flyers`

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

CREATE TABLE "round_four" (
  "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 `Name the number of teams for college/junior club for philadelphia flyers`:
```sql
                SELECT COUNT("college_junior_club_team") FROM "round_four" WHERE "nhl_team"='Philadelphia Flyers';
```
## Task
Generate a SQL query to answer the following question:
`Name the position for ron lalonde`

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

CREATE TABLE "round_four" (
  "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 `Name the position for ron lalonde`:
```sql
                SELECT "position" FROM "round_four" WHERE "player"='Ron Lalonde';
```
## Task
Generate a SQL query to answer the following question:
`Name the college/junior club team for pick number 63`

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

CREATE TABLE "round_four" (
  "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 `Name the college/junior club team for pick number 63`:
```sql
                SELECT "college_junior_club_team" FROM "round_four" WHERE "pick_num"=63;
```
## Task
Generate a SQL query to answer the following question:
`How many positions did 1972 NHL Draft pick Rene Lambert play?`

### 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 `How many positions did 1972 NHL Draft pick Rene Lambert play?`:
```sql
                SELECT COUNT("position") FROM "round_ten" WHERE "player"='Rene Lambert';
```
## Task
Generate a SQL query to answer the following question:
`what's the college/junior/club team with nhl team being california golden seals`

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

CREATE TABLE "round_nine" (
  "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's the college/junior/club team with nhl team being california golden seals`:
```sql
                SELECT "college_junior_club_team" FROM "round_nine" WHERE "nhl_team"='California Golden Seals';
```
## Task
Generate a SQL query to answer the following question:
`what's the nhl team with college/junior/club team being brandon wheat kings (wchl)`

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

CREATE TABLE "round_nine" (
  "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's the nhl team with college/junior/club team being brandon wheat kings (wchl)`:
```sql
                SELECT "nhl_team" FROM "round_nine" WHERE "college_junior_club_team"='Brandon Wheat Kings (WCHL)';
```
## Task
Generate a SQL query to answer the following question:
`who is the the player with pick # being 132`

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

CREATE TABLE "round_nine" (
  "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 `who is the the player with pick # being 132`:
```sql
                SELECT "player" FROM "round_nine" WHERE "pick_num"=132;
```
## Task
Generate a SQL query to answer the following question:
` how many player with nhl team being vancouver canucks`

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

CREATE TABLE "round_nine" (
  "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 player with nhl team being vancouver canucks`:
```sql
                SELECT COUNT("player") FROM "round_nine" WHERE "nhl_team"='Vancouver Canucks';
```
## Task
Generate a SQL query to answer the following question:
`what's the position with player being ray boutin`

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

CREATE TABLE "round_nine" (
  "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's the position with player being ray boutin`:
```sql
                SELECT "position" FROM "round_nine" WHERE "player"='Ray Boutin';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the borough where station uses is 28702?`

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

CREATE TABLE "railway_stations_currently_in_use" (
  "station_and_code" text,
  "managed_by" text,
  "lines_served" text,
  "station_users_2007_8" real,
  "station_users_2008_9" text,
  "year_opened" text,
  "platforms" text,
  "borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the borough where station uses is 28702?`:
```sql
                SELECT "borough" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='28702';
```
## Task
Generate a SQL query to answer the following question:
`what are the lines served where station users is 210076?`

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

CREATE TABLE "railway_stations_currently_in_use" (
  "station_and_code" text,
  "managed_by" text,
  "lines_served" text,
  "station_users_2007_8" real,
  "station_users_2008_9" text,
  "year_opened" text,
  "platforms" text,
  "borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the lines served where station users is 210076?`:
```sql
                SELECT "lines_served" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='210076';
```
## Task
Generate a SQL query to answer the following question:
`whatis hte station code where users are 130368?`

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

CREATE TABLE "railway_stations_currently_in_use" (
  "station_and_code" text,
  "managed_by" text,
  "lines_served" text,
  "station_users_2007_8" real,
  "station_users_2008_9" text,
  "year_opened" text,
  "platforms" text,
  "borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `whatis hte station code where users are 130368?`:
```sql
                SELECT "station_and_code" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='130368';
```
## Task
Generate a SQL query to answer the following question:
`Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA`

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

CREATE TABLE "list_of_prior_winners" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA`:
```sql
                SELECT "class_a" FROM "list_of_prior_winners" WHERE "class_aaaaa"='Weslaco' AND "class_aaaa"='Brownwood';
```
## Task
Generate a SQL query to answer the following question:
`Which is the class A when Marion was the class AA`

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

CREATE TABLE "list_of_prior_winners" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the class A when Marion was the class AA`:
```sql
                SELECT "class_a" FROM "list_of_prior_winners" WHERE "class_aa"='Marion';
```
## Task
Generate a SQL query to answer the following question:
`Which is the class AA when graford was the class A`

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

CREATE TABLE "list_of_prior_winners" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the class AA when graford was the class A`:
```sql
                SELECT "class_aa" FROM "list_of_prior_winners" WHERE "class_a"='Graford';
```
## Task
Generate a SQL query to answer the following question:
`How many class AA in the year 2002-03`

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

CREATE TABLE "list_of_prior_winners" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many class AA in the year 2002-03`:
```sql
                SELECT COUNT("class_aa") FROM "list_of_prior_winners" WHERE "school_year"='2002-03';
```
## Task
Generate a SQL query to answer the following question:
`Who was the class AAAA when class AAAAA was Weslaco in 1994-95`

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

CREATE TABLE "list_of_prior_winners" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the class AAAA when class AAAAA was Weslaco in 1994-95`:
```sql
                SELECT "class_aaaa" FROM "list_of_prior_winners" WHERE "class_aaaaa"='Weslaco' AND "school_year"='1994-95';
```
## Task
Generate a SQL query to answer the following question:
`What was the class AAAA when San Angelo Lake View was the class AAAA`

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

CREATE TABLE "list_of_prior_winners" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the class AAAA when San Angelo Lake View was the class AAAA`:
```sql
                SELECT "class_aaaaa" FROM "list_of_prior_winners" WHERE "class_aaaa"='San Angelo Lake View';
```
## Task
Generate a SQL query to answer the following question:
`What are the changes from 2009 to 2010 in Tunisia?`

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

CREATE TABLE "africa" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2011" text,
  "international_tourist_arrivals_2010" text,
  "change_2010_to_2011" text,
  "change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the changes from 2009 to 2010 in Tunisia?`:
```sql
                SELECT "change_2009_to_2010" FROM "africa" WHERE "country"='Tunisia';
```
## Task
Generate a SQL query to answer the following question:
`What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ?`

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

CREATE TABLE "africa" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2011" text,
  "international_tourist_arrivals_2010" text,
  "change_2010_to_2011" text,
  "change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ?`:
```sql
                SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2010_to_2011"='+11.2%';
```
## Task
Generate a SQL query to answer the following question:
`What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?`

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

CREATE TABLE "africa" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2011" text,
  "international_tourist_arrivals_2010" text,
  "change_2010_to_2011" text,
  "change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?`:
```sql
                SELECT "change_2010_to_2011" FROM "africa" WHERE "international_tourist_arrivals_2011"='1.7 million';
```
## Task
Generate a SQL query to answer the following question:
`What are the international tourist arrivals(2010) where change from 2009 to 2010 is +11.1%?`

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

CREATE TABLE "africa" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2011" text,
  "international_tourist_arrivals_2010" text,
  "change_2010_to_2011" text,
  "change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the international tourist arrivals(2010) where change from 2009 to 2010 is +11.1%?`:
```sql
                SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2009_to_2010"='+11.1%';
```
## Task
Generate a SQL query to answer the following question:
`What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%`

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

CREATE TABLE "africa" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2011" text,
  "international_tourist_arrivals_2010" text,
  "change_2010_to_2011" text,
  "change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%`:
```sql
                SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2010_to_2011"='+15%';
```
## Task
Generate a SQL query to answer the following question:
`How many international tourist arrivals were in Senegal in 2011?`

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

CREATE TABLE "africa" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2011" text,
  "international_tourist_arrivals_2010" text,
  "change_2010_to_2011" text,
  "change_2009_to_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many international tourist arrivals were in Senegal in 2011?`:
```sql
                SELECT "international_tourist_arrivals_2011" FROM "africa" WHERE "country"='Senegal';
```
## Task
Generate a SQL query to answer the following question:
`When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)?`

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

CREATE TABLE "europe" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)?`:
```sql
                SELECT "change_2011_to_2012" FROM "europe" WHERE "change_2010_to_2011"='+1.0%';
```
## Task
Generate a SQL query to answer the following question:
`When the change (2011 to 2012) is -0.1% what is the country?`

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

CREATE TABLE "europe" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the change (2011 to 2012) is -0.1% what is the country?`:
```sql
                SELECT "country" FROM "europe" WHERE "change_2011_to_2012"='-0.1%';
```
## Task
Generate a SQL query to answer the following question:
`When the change (2011 to 2012) is +13.4% what is the country?`

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

CREATE TABLE "europe" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the change (2011 to 2012) is +13.4% what is the country?`:
```sql
                SELECT "country" FROM "europe" WHERE "change_2011_to_2012"='+13.4%';
```
## Task
Generate a SQL query to answer the following question:
`When 24.1 million is international tourist arrivals (2012) what is the  change (2010 to 2011) ?`

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

CREATE TABLE "europe" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 24.1 million is international tourist arrivals (2012) what is the  change (2010 to 2011) ?`:
```sql
                SELECT "change_2010_to_2011" FROM "europe" WHERE "international_tourist_arrivals_2012"='24.1 million';
```
## Task
Generate a SQL query to answer the following question:
`United kingdom is the country what is the change (2011 to 2012)?`

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

CREATE TABLE "europe" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `United kingdom is the country what is the change (2011 to 2012)?`:
```sql
                SELECT "change_2011_to_2012" FROM "europe" WHERE "country"='United Kingdom';
```
## Task
Generate a SQL query to answer the following question:
`When the 1 is the rank what is the overall amount of  international tourist arrivals in 2012?`

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

CREATE TABLE "europe" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the 1 is the rank what is the overall amount of  international tourist arrivals in 2012?`:
```sql
                SELECT COUNT("international_tourist_arrivals_2012") FROM "europe" WHERE "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment amount where Hispanic (%) is 3.6?`

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

CREATE TABLE "enrollment_racial_demographics_and_free_" (
  "year" real,
  "enrollment" real,
  "black_pct" text,
  "white_pct" text,
  "hispanic_pct" text,
  "asian_pct" text,
  "free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment amount where Hispanic (%) is 3.6?`:
```sql
                SELECT "enrollment" FROM "enrollment_racial_demographics_and_free_" WHERE "hispanic_pct"='3.6';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of Asians are there in the year 2009?`

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

CREATE TABLE "enrollment_racial_demographics_and_free_" (
  "year" real,
  "enrollment" real,
  "black_pct" text,
  "white_pct" text,
  "hispanic_pct" text,
  "asian_pct" text,
  "free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of Asians are there in the year 2009?`:
```sql
                SELECT "asian_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What percentage of Asians are there in the year 2004?`

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

CREATE TABLE "enrollment_racial_demographics_and_free_" (
  "year" real,
  "enrollment" real,
  "black_pct" text,
  "white_pct" text,
  "hispanic_pct" text,
  "asian_pct" text,
  "free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of Asians are there in the year 2004?`:
```sql
                SELECT "asian_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "year"=2004;
```
## Task
Generate a SQL query to answer the following question:
`What percentage of hispanics are there when the free/reduced lunch percentage is 81.4?`

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

CREATE TABLE "enrollment_racial_demographics_and_free_" (
  "year" real,
  "enrollment" real,
  "black_pct" text,
  "white_pct" text,
  "hispanic_pct" text,
  "asian_pct" text,
  "free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of hispanics are there when the free/reduced lunch percentage is 81.4?`:
```sql
                SELECT "hispanic_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "free_reduced_lunch_pct"='81.4';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of free/reduced lunch  are there when the hispanic percentage is 3.7?`

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

CREATE TABLE "enrollment_racial_demographics_and_free_" (
  "year" real,
  "enrollment" real,
  "black_pct" text,
  "white_pct" text,
  "hispanic_pct" text,
  "asian_pct" text,
  "free_reduced_lunch_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of free/reduced lunch  are there when the hispanic percentage is 3.7?`:
```sql
                SELECT "free_reduced_lunch_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "hispanic_pct"='3.7';
```
## Task
Generate a SQL query to answer the following question:
`Who was the arranger for the track written by Nizar Francis ?`

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

CREATE TABLE "track_listing" (
  "num" real,
  "title" text,
  "length" text,
  "writer" text,
  "composer" text,
  "arranger" text,
  "dialect" text,
  "mix_engineer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the arranger for the track written by Nizar Francis ?`:
```sql
                SELECT "arranger" FROM "track_listing" WHERE "writer"='Nizar Francis';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the song 4:29 in length?`

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

CREATE TABLE "track_listing" (
  "num" real,
  "title" text,
  "length" text,
  "writer" text,
  "composer" text,
  "arranger" text,
  "dialect" text,
  "mix_engineer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the song 4:29 in length?`:
```sql
                SELECT "writer" FROM "track_listing" WHERE "length"='4:29';
```
## Task
Generate a SQL query to answer the following question:
`What track number is 4:29 in length?`

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

CREATE TABLE "track_listing" (
  "num" real,
  "title" text,
  "length" text,
  "writer" text,
  "composer" text,
  "arranger" text,
  "dialect" text,
  "mix_engineer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What track number is 4:29 in length?`:
```sql
                SELECT "num" FROM "track_listing" WHERE "length"='4:29';
```
## Task
Generate a SQL query to answer the following question:
`What is the female rank in Karnataka?`

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

CREATE TABLE "nfhs_data" (
  "states" text,
  "males_pct" text,
  "males_rank" real,
  "females_pct" text,
  "females_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the female rank in Karnataka?`:
```sql
                SELECT "females_rank" FROM "nfhs_data" WHERE "states"='Karnataka';
```
## Task
Generate a SQL query to answer the following question:
`What is the English title when the original title is Die Qual Der Wahl?`

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

CREATE TABLE "season_1" (
  "number_of_episode" real,
  "number_of_season" real,
  "title_original" text,
  "title_english" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English title when the original title is Die Qual Der Wahl?`:
```sql
                SELECT "title_english" FROM "season_1" WHERE "title_original"='Die Qual der Wahl';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode number where the English title is Pilot?`

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

CREATE TABLE "season_1" (
  "number_of_episode" real,
  "number_of_season" real,
  "title_original" text,
  "title_english" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number where the English title is Pilot?`:
```sql
                SELECT "number_of_episode" FROM "season_1" WHERE "title_english"='Pilot';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date for episode number 6?`

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

CREATE TABLE "season_1" (
  "number_of_episode" real,
  "number_of_season" real,
  "title_original" text,
  "title_english" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date for episode number 6?`:
```sql
                SELECT "original_air_date" FROM "season_1" WHERE "number_of_episode"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the original title of season number 3?`

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

CREATE TABLE "season_1" (
  "number_of_episode" real,
  "number_of_season" real,
  "title_original" text,
  "title_english" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original title of season number 3?`:
```sql
                SELECT "title_original" FROM "season_1" WHERE "number_of_season"=3;
```
## Task
Generate a SQL query to answer the following question:
`What municipality where the human development index in the year 2000 was 0.7827?`

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

CREATE TABLE "references" (
  "inegi_code" real,
  "municipality" text,
  "municipal_seat" text,
  "area_km_2" text,
  "population_2005" real,
  "population_density_km_2" text,
  "human_development_index_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What municipality where the human development index in the year 2000 was 0.7827?`:
```sql
                SELECT "municipality" FROM "references" WHERE "human_development_index_2000"='0.7827';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?`

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

CREATE TABLE "references" (
  "inegi_code" real,
  "municipality" text,
  "municipal_seat" text,
  "area_km_2" text,
  "population_2005" real,
  "population_density_km_2" text,
  "human_development_index_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?`:
```sql
                SELECT COUNT("population_2005") FROM "references" WHERE "population_density_km_2"='35.9';
```
## Task
Generate a SQL query to answer the following question:
`What is the human development index for the year 2000 where the ingei code is 10?`

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

CREATE TABLE "references" (
  "inegi_code" real,
  "municipality" text,
  "municipal_seat" text,
  "area_km_2" text,
  "population_2005" real,
  "population_density_km_2" text,
  "human_development_index_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the human development index for the year 2000 where the ingei code is 10?`:
```sql
                SELECT "human_development_index_2000" FROM "references" WHERE "inegi_code"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is the area (km 2) where the population density (/mk2) is 84.3?`

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

CREATE TABLE "references" (
  "inegi_code" real,
  "municipality" text,
  "municipal_seat" text,
  "area_km_2" text,
  "population_2005" real,
  "population_density_km_2" text,
  "human_development_index_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area (km 2) where the population density (/mk2) is 84.3?`:
```sql
                SELECT "area_km_2" FROM "references" WHERE "population_density_km_2"='84.3';
```
## Task
Generate a SQL query to answer the following question:
`Name the mandate for list pct 12.39%`

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

CREATE TABLE "election_results" (
  "year" real,
  "candidate" text,
  "hare_quota" real,
  "mandate" text,
  "list_votes" real,
  "list_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mandate for list pct 12.39%`:
```sql
                SELECT "mandate" FROM "election_results" WHERE "list_pct"='12.39%';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of list votes for 20.95%`

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

CREATE TABLE "election_results" (
  "year" real,
  "candidate" text,
  "hare_quota" real,
  "mandate" text,
  "list_votes" real,
  "list_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of list votes for 20.95%`:
```sql
                SELECT COUNT("list_votes") FROM "election_results" WHERE "list_pct"='20.95%';
```
## Task
Generate a SQL query to answer the following question:
`What was the scoring rank for Angela Stanford in 2009?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the scoring rank for Angela Stanford in 2009?`:
```sql
                SELECT "scoring_rank" FROM "lpga_tour_career_summary" WHERE "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number on money list rank for Angela Stanford's career?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number on money list rank for Angela Stanford's career?`:
```sql
                SELECT MAX("money_list_rank") FROM "lpga_tour_career_summary";
```
## Task
Generate a SQL query to answer the following question:
`In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?`:
```sql
                SELECT COUNT("2nd") FROM "lpga_tour_career_summary" WHERE "scoring_average"='71.62';
```
## Task
Generate a SQL query to answer the following question:
`who is hte player with a 3 dart avg of 89.57?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is hte player with a 3 dart avg of 89.57?`:
```sql
                SELECT "player" FROM "statistics" WHERE "3_dart_average"='89.57';
```