cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the vermont for where 95.8% is 60.6%`

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

CREATE TABLE "immigration_by_state" (
  "north_carolina" text,
  "273_7pct" text,
  "south_carolina" text,
  "132_1pct" text,
  "mississippi" text,
  "95_8pct" text,
  "wisconsin" text,
  "59_4pct" text,
  "vermont" text,
  "32_5pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vermont for where 95.8% is 60.6%`:
```sql
                SELECT "vermont" FROM "immigration_by_state" WHERE "95_8pct"='60.6%';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value of PF when Ends Lost is 51?`

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

CREATE TABLE "round_robin_standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value of PF when Ends Lost is 51?`:
```sql
                SELECT MAX("pf") FROM "round_robin_standings" WHERE "ends_lost"=51;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of all Shot PCT occurrences when the value of Blank Ends is 8?`

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

CREATE TABLE "round_robin_standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of all Shot PCT occurrences when the value of Blank Ends is 8?`:
```sql
                SELECT COUNT("shot_pct") FROM "round_robin_standings" WHERE "blank_ends"=8;
```
## Task
Generate a SQL query to answer the following question:
`Where is the Locale when L is 2.`

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

CREATE TABLE "round_robin_standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Locale when L is 2.`:
```sql
                SELECT "locale" FROM "round_robin_standings" WHERE "l"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value of Blank Ends when Stolen Ends is 7. `

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

CREATE TABLE "round_robin_standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value of Blank Ends when Stolen Ends is 7. `:
```sql
                SELECT MIN("blank_ends") FROM "round_robin_standings" WHERE "stolen_ends"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the value of Ends Lost when Blank Ends is 9.`

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

CREATE TABLE "round_robin_standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of Ends Lost when Blank Ends is 9.`:
```sql
                SELECT "ends_lost" FROM "round_robin_standings" WHERE "blank_ends"=9;
```
## Task
Generate a SQL query to answer the following question:
`How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi`

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

CREATE TABLE "jersey_progress" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi`:
```sql
                SELECT COUNT("combination_classification") FROM "jersey_progress" WHERE "points_classification"='Alessandro Petacchi' AND "winner"='Erik Zabel';
```
## Task
Generate a SQL query to answer the following question:
`If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification?`

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

CREATE TABLE "jersey_progress" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification?`:
```sql
                SELECT "mountains_classification" FROM "jersey_progress" WHERE "winner"='Alejandro Valverde' AND "points_classification"='Erik Zabel';
```
## Task
Generate a SQL query to answer the following question:
`How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?`

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

CREATE TABLE "jersey_progress" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?`:
```sql
                SELECT COUNT("team_classification") FROM "jersey_progress" WHERE "combination_classification"='Alejandro Valverde' AND "points_classification"='Alessandro Petacchi';
```
## Task
Generate a SQL query to answer the following question:
`How many times were the winnings $3,816,362?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times were the winnings $3,816,362?`:
```sql
                SELECT COUNT("avg_finish") FROM "nascar_sprint_cup_series" WHERE "winnings"='$3,816,362';
```
## Task
Generate a SQL query to answer the following question:
`How many wins were there when the position was 26th?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins were there when the position was 26th?`:
```sql
                SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "position"='26th';
```
## Task
Generate a SQL query to answer the following question:
`What was the average finish when the average start was 18.4?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average finish when the average start was 18.4?`:
```sql
                SELECT "avg_finish" FROM "nascar_sprint_cup_series" WHERE "avg_start"='18.4';
```
## Task
Generate a SQL query to answer the following question:
`How many teams had a 76th position finish?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams had a 76th position finish?`:
```sql
                SELECT COUNT("team_s") FROM "nascar_sprint_cup_series" WHERE "position"='76th';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximumum number of wins?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximumum number of wins?`:
```sql
                SELECT MIN("wins") FROM "nascar_sprint_cup_series";
```
## Task
Generate a SQL query to answer the following question:
`What teams won in 2007?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams won in 2007?`:
```sql
                SELECT "team_s" FROM "nascar_sprint_cup_series" WHERE "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`How many entries arr there for the top 10 for the 78th position?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries arr there for the top 10 for the 78th position?`:
```sql
                SELECT COUNT("top_10") FROM "nascar_nationwide_series" WHERE "position"='78th';
```
## Task
Generate a SQL query to answer the following question:
`Where does team #55/#83 robby gordon motorsports rank in the top 10?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does team #55/#83 robby gordon motorsports rank in the top 10?`:
```sql
                SELECT MAX("top_10") FROM "nascar_nationwide_series" WHERE "team_s"='#55/#83 Robby Gordon Motorsports';
```
## Task
Generate a SQL query to answer the following question:
`How many entries are shown for winnings for team #07 robby gordon motorsports?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are shown for winnings for team #07 robby gordon motorsports?`:
```sql
                SELECT COUNT("winnings") FROM "nascar_nationwide_series" WHERE "team_s"='#07 Robby Gordon Motorsports';
```
## Task
Generate a SQL query to answer the following question:
`What are all values for 'to par' for the winning score of 67-67-69-69=272?`

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

CREATE TABLE "pga_tour_wins_8" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all values for 'to par' for the winning score of 67-67-69-69=272?`:
```sql
                SELECT "to_par" FROM "pga_tour_wins_8" WHERE "winning_score"='67-67-69-69=272';
```
## Task
Generate a SQL query to answer the following question:
`The tournament Buick Classic occured on what dates?`

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

CREATE TABLE "pga_tour_wins_8" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `The tournament Buick Classic occured on what dates?`:
```sql
                SELECT "date" FROM "pga_tour_wins_8" WHERE "tournament"='Buick Classic';
```
## Task
Generate a SQL query to answer the following question:
`Who are all runner-ups for No. 2?`

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

CREATE TABLE "pga_tour_wins_8" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all runner-ups for No. 2?`:
```sql
                SELECT "runner_up" FROM "pga_tour_wins_8" WHERE "no"=2;
```
## Task
Generate a SQL query to answer the following question:
`when the nickname halley is used, what are the date completed`

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

CREATE TABLE "portfolio" (
  "print_name" text,
  "nickname" text,
  "number_of_colors" text,
  "framed_size" text,
  "date_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `when the nickname halley is used, what are the date completed`:
```sql
                SELECT "date_completed" FROM "portfolio" WHERE "nickname"='Halley';
```
## Task
Generate a SQL query to answer the following question:
`the date complted is 02/91, what framed size was used`

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

CREATE TABLE "portfolio" (
  "print_name" text,
  "nickname" text,
  "number_of_colors" text,
  "framed_size" text,
  "date_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `the date complted is 02/91, what framed size was used`:
```sql
                SELECT "framed_size" FROM "portfolio" WHERE "date_completed"='02/91';
```
## Task
Generate a SQL query to answer the following question:
`for the robot black nickname, what framed size is used`

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

CREATE TABLE "portfolio" (
  "print_name" text,
  "nickname" text,
  "number_of_colors" text,
  "framed_size" text,
  "date_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the robot black nickname, what framed size is used`:
```sql
                SELECT "framed_size" FROM "portfolio" WHERE "nickname"='Robot Black';
```
## Task
Generate a SQL query to answer the following question:
`What are the attributes when the type is "DOMNodeRemoved"?`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "description" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the attributes when the type is "DOMNodeRemoved"?`:
```sql
                SELECT "attribute" FROM "common_w3_c_events" WHERE "type"='DOMNodeRemoved';
```
## Task
Generate a SQL query to answer the following question:
`How many categories are there when the attribute is "onreset"?`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "description" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many categories are there when the attribute is "onreset"?`:
```sql
                SELECT COUNT("category") FROM "common_w3_c_events" WHERE "attribute"='onreset';
```
## Task
Generate a SQL query to answer the following question:
`How many descriptions are there when the attribute is "ondragstart"?`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "description" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many descriptions are there when the attribute is "ondragstart"?`:
```sql
                SELECT COUNT("description") FROM "common_w3_c_events" WHERE "attribute"='ondragstart';
```
## Task
Generate a SQL query to answer the following question:
`When the type is "reset" what is the description?`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "description" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the type is "reset" what is the description?`:
```sql
                SELECT "description" FROM "common_w3_c_events" WHERE "type"='reset';
```
## Task
Generate a SQL query to answer the following question:
`Name all the team clasification where the combination classification is mederic clain`

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

CREATE TABLE "jersey_progress" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name all the team clasification where the combination classification is mederic clain`:
```sql
                SELECT "team_classification" FROM "jersey_progress" WHERE "combination_classification"='Mederic Clain';
```
## Task
Generate a SQL query to answer the following question:
`In how many stages did Jose Vicente Garcia Acosta won?`

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

CREATE TABLE "jersey_progress" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many stages did Jose Vicente Garcia Acosta won?`:
```sql
                SELECT COUNT("stage") FROM "jersey_progress" WHERE "winner"='Jose Vicente Garcia Acosta';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum stage where Sergei Smetanine won?`

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

CREATE TABLE "jersey_progress" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum stage where Sergei Smetanine won?`:
```sql
                SELECT MIN("stage") FROM "jersey_progress" WHERE "winner"='Sergei Smetanine';
```
## Task
Generate a SQL query to answer the following question:
`what is the minimum stage where mountains classification is aitor osa and aitor gonzález won?`

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

CREATE TABLE "jersey_progress" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum stage where mountains classification is aitor osa and aitor gonzález won?`:
```sql
                SELECT MIN("stage") FROM "jersey_progress" WHERE "mountains_classification"='Aitor Osa' AND "winner"='Aitor González';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons in the top division for the team that finished 005 5th in 2012-2013`

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

CREATE TABLE "members_for_2013_14" (
  "club" text,
  "position_in_2012_13" text,
  "first_season_in_top_division" text,
  "number_of_seasons_in_top_division" real,
  "number_of_seasons_in_prva_hnl" real,
  "first_season_of_current_spell_in_top_division" text,
  "top_division_titles" text,
  "last_top_division_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons in the top division for the team that finished 005 5th in 2012-2013`:
```sql
                SELECT COUNT("number_of_seasons_in_top_division") FROM "members_for_2013_14" WHERE "position_in_2012_13"='005 5th';
```
## Task
Generate a SQL query to answer the following question:
`How many countries does honoree Roberto de Vicenzo represent?`

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

CREATE TABLE "winners_and_honorees" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "winners_share" real,
  "honoree_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries does honoree Roberto de Vicenzo represent?`:
```sql
                SELECT COUNT("country") FROM "winners_and_honorees" WHERE "honoree_s"='Roberto De Vicenzo';
```
## Task
Generate a SQL query to answer the following question:
`For which country does Keith Fergus play?`

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

CREATE TABLE "winners_and_honorees" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "winners_share" real,
  "honoree_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which country does Keith Fergus play?`:
```sql
                SELECT "country" FROM "winners_and_honorees" WHERE "player"='Keith Fergus';
```
## Task
Generate a SQL query to answer the following question:
`Who won the tournament for Australia in the year when Byron Nelson was Honoree?`

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

CREATE TABLE "winners_and_honorees" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "winners_share" real,
  "honoree_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the tournament for Australia in the year when Byron Nelson was Honoree?`:
```sql
                SELECT "player" FROM "winners_and_honorees" WHERE "country"='Australia' AND "honoree_s"='Byron Nelson';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory in the year when the honoree was Tommy Armour?`

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

CREATE TABLE "winners_and_honorees" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "winners_share" real,
  "honoree_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory in the year when the honoree was Tommy Armour?`:
```sql
                SELECT "margin_of_victory" FROM "winners_and_honorees" WHERE "honoree_s"='Tommy Armour';
```
## Task
Generate a SQL query to answer the following question:
`What year was the most recent US Open championship?`

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

CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the most recent US Open championship?`:
```sql
                SELECT MAX("year") FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "championship"='US Open';
```
## Task
Generate a SQL query to answer the following question:
`When li fuyu is the stage winner what is points classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When li fuyu is the stage winner what is points classification?`:
```sql
                SELECT "points_classification" FROM "classification_leadership" WHERE "stage_winner"='Li Fuyu';
```
## Task
Generate a SQL query to answer the following question:
`When  anuar manan is the stage winner and the team classification is japan and suhardi hassan is the  malaysian rider classification who is the points classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  anuar manan is the stage winner and the team classification is japan and suhardi hassan is the  malaysian rider classification who is the points classification?`:
```sql
                SELECT "points_classification" FROM "classification_leadership" WHERE "malaysian_rider_classification"='Suhardi Hassan' AND "team_classification"='Japan' AND "stage_winner"='Anuar Manan';
```
## Task
Generate a SQL query to answer the following question:
`When li fuyu is the stage winner who is the general classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When li fuyu is the stage winner who is the general classification?`:
```sql
                SELECT "general_classification" FROM "classification_leadership" WHERE "stage_winner"='Li Fuyu';
```
## Task
Generate a SQL query to answer the following question:
`When hossein askari is the stage winner who is the malaysian rider classification ?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When hossein askari is the stage winner who is the malaysian rider classification ?`:
```sql
                SELECT "malaysian_rider_classification" FROM "classification_leadership" WHERE "stage_winner"='Hossein Askari';
```
## Task
Generate a SQL query to answer the following question:
`How many nominees had a net voice of 15.17%`

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

CREATE TABLE "s_e_voting_system_result" (
  "eviction_no" real,
  "nominee" text,
  "vote_to_save" text,
  "vote_to_evict" text,
  "net_vote" text,
  "eviction_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many nominees had a net voice of 15.17%`:
```sql
                SELECT COUNT("nominee") FROM "s_e_voting_system_result" WHERE "net_vote"='15.17%';
```
## Task
Generate a SQL query to answer the following question:
`What nominees had a net vote of 34.46%?`

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

CREATE TABLE "s_e_voting_system_result" (
  "eviction_no" real,
  "nominee" text,
  "vote_to_save" text,
  "vote_to_evict" text,
  "net_vote" text,
  "eviction_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nominees had a net vote of 34.46%?`:
```sql
                SELECT "nominee" FROM "s_e_voting_system_result" WHERE "net_vote"='34.46%';
```
## Task
Generate a SQL query to answer the following question:
`How many nominee's had a vote to evict percentage of 3.92%`

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

CREATE TABLE "s_e_voting_system_result" (
  "eviction_no" real,
  "nominee" text,
  "vote_to_save" text,
  "vote_to_evict" text,
  "net_vote" text,
  "eviction_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many nominee's had a vote to evict percentage of 3.92%`:
```sql
                SELECT COUNT("nominee") FROM "s_e_voting_system_result" WHERE "vote_to_evict"='3.92%';
```
## Task
Generate a SQL query to answer the following question:
`How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%?`

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

CREATE TABLE "s_e_voting_system_result" (
  "eviction_no" real,
  "nominee" text,
  "vote_to_save" text,
  "vote_to_evict" text,
  "net_vote" text,
  "eviction_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%?`:
```sql
                SELECT COUNT("eviction_result") FROM "s_e_voting_system_result" WHERE "eviction_no"=12 AND "vote_to_save"='2.76%';
```
## Task
Generate a SQL query to answer the following question:
`What was the final result when the viewers selected ejay?`

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

CREATE TABLE "house_players" (
  "task_no" real,
  "day_announced" text,
  "description" text,
  "options" text,
  "viewers_selection" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final result when the viewers selected ejay?`:
```sql
                SELECT "result" FROM "house_players" WHERE "viewers_selection"='Ejay';
```
## Task
Generate a SQL query to answer the following question:
`What was the description when the viewers selected Nan?`

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

CREATE TABLE "house_players" (
  "task_no" real,
  "day_announced" text,
  "description" text,
  "options" text,
  "viewers_selection" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the description when the viewers selected Nan?`:
```sql
                SELECT "description" FROM "house_players" WHERE "viewers_selection"='Nan';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of series episode 11-02's segment c?`

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

CREATE TABLE "season_11_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of series episode 11-02's segment c?`:
```sql
                SELECT "segment_c" FROM "season_11_2008" WHERE "series_ep"='11-02';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of series episode 11-05's segment d?`

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

CREATE TABLE "season_11_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of series episode 11-05's segment d?`:
```sql
                SELECT "segment_d" FROM "season_11_2008" WHERE "series_ep"='11-05';
```
## Task
Generate a SQL query to answer the following question:
`In seris episode 11-04, what is the B segment titled?`

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

CREATE TABLE "season_11_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `In seris episode 11-04, what is the B segment titled?`:
```sql
                SELECT "segment_b" FROM "season_11_2008" WHERE "series_ep"='11-04';
```
## Task
Generate a SQL query to answer the following question:
`In the episode where segment a is microphones, what is segment d?`

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

CREATE TABLE "season_11_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the episode where segment a is microphones, what is segment d?`:
```sql
                SELECT "segment_d" FROM "season_11_2008" WHERE "segment_a"='Microphones';
```
## Task
Generate a SQL query to answer the following question:
`What is Segment B for series episode 12-08?`

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

CREATE TABLE "season_12_2008_2009" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Segment B for series episode 12-08?`:
```sql
                SELECT "segment_b" FROM "season_12_2008_2009" WHERE "series_ep"='12-08';
```
## Task
Generate a SQL query to answer the following question:
`What is the series episode where Segment B is popcorn ?`

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

CREATE TABLE "season_12_2008_2009" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series episode where Segment B is popcorn ?`:
```sql
                SELECT "series_ep" FROM "season_12_2008_2009" WHERE "segment_b"='Popcorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the Netflix where Segment C is car washes?`

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

CREATE TABLE "season_12_2008_2009" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Netflix where Segment C is car washes?`:
```sql
                SELECT "netflix" FROM "season_12_2008_2009" WHERE "segment_c"='Car Washes';
```
## Task
Generate a SQL query to answer the following question:
`What is Segment B for series episode 12-02?`

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

CREATE TABLE "season_12_2008_2009" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Segment B for series episode 12-02?`:
```sql
                SELECT "segment_b" FROM "season_12_2008_2009" WHERE "series_ep"='12-02';
```
## Task
Generate a SQL query to answer the following question:
`What is Segment A where Segment B is Kevlar S Canoe?`

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

CREATE TABLE "season_12_2008_2009" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Segment A where Segment B is Kevlar S Canoe?`:
```sql
                SELECT "segment_a" FROM "season_12_2008_2009" WHERE "segment_b"='Kevlar s Canoe';
```
## Task
Generate a SQL query to answer the following question:
`What is the Netflix where Segment D is pressure gauges ?`

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

CREATE TABLE "season_12_2008_2009" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Netflix where Segment D is pressure gauges ?`:
```sql
                SELECT "netflix" FROM "season_12_2008_2009" WHERE "segment_d"='Pressure Gauges';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment d for bowling balls`

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

CREATE TABLE "season_13_2009" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment d for bowling balls`:
```sql
                SELECT "segment_d" FROM "season_13_2009" WHERE "segment_a"='Bowling Balls';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment b for pressure cookers`

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

CREATE TABLE "season_13_2009" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment b for pressure cookers`:
```sql
                SELECT "segment_b" FROM "season_13_2009" WHERE "segment_a"='Pressure Cookers';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment b for 167`

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

CREATE TABLE "season_13_2009" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment b for 167`:
```sql
                SELECT "segment_b" FROM "season_13_2009" WHERE "episode"=167;
```
## Task
Generate a SQL query to answer the following question:
`Name the segment a for 162`

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

CREATE TABLE "season_13_2009" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment a for 162`:
```sql
                SELECT "segment_a" FROM "season_13_2009" WHERE "episode"=162;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of segment c for pressure cookers`

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

CREATE TABLE "season_13_2009" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of segment c for pressure cookers`:
```sql
                SELECT COUNT("segment_c") FROM "season_13_2009" WHERE "segment_a"='Pressure Cookers';
```
## Task
Generate a SQL query to answer the following question:
`What was segment C when segment D was fluorescent tubes? `

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

CREATE TABLE "season_1_2001" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was segment C when segment D was fluorescent tubes? `:
```sql
                SELECT "segment_c" FROM "season_1_2001" WHERE "segment_d"='Fluorescent Tubes';
```
## Task
Generate a SQL query to answer the following question:
`What was segment C when segment B was package printing? `

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

CREATE TABLE "season_1_2001" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was segment C when segment B was package printing? `:
```sql
                SELECT "segment_c" FROM "season_1_2001" WHERE "segment_b"='Package printing';
```
## Task
Generate a SQL query to answer the following question:
`What was segment A when segment B was snowboards? `

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

CREATE TABLE "season_1_2001" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was segment A when segment B was snowboards? `:
```sql
                SELECT "segment_a" FROM "season_1_2001" WHERE "segment_b"='Snowboards';
```
## Task
Generate a SQL query to answer the following question:
`What was segment D when segment B was jeans? `

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

CREATE TABLE "season_1_2001" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was segment D when segment B was jeans? `:
```sql
                SELECT "segment_d" FROM "season_1_2001" WHERE "segment_b"='Jeans';
```
## Task
Generate a SQL query to answer the following question:
`In what episode was segment D ned Can Corn? `

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

CREATE TABLE "season_1_2001" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what episode was segment D ned Can Corn? `:
```sql
                SELECT MAX("episode") FROM "season_1_2001" WHERE "segment_d"='ned Can Corn';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment c for crash test dummies`

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

CREATE TABLE "season_10_2007_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment c for crash test dummies`:
```sql
                SELECT COUNT("segment_c") FROM "season_10_2007_2008" WHERE "segment_d"='Crash Test Dummies';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment b for s dress form`

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

CREATE TABLE "season_10_2007_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment b for s dress form`:
```sql
                SELECT "segment_b" FROM "season_10_2007_2008" WHERE "segment_a"='s Dress Form';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment a for s duvet`

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

CREATE TABLE "season_10_2007_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment a for s duvet`:
```sql
                SELECT "segment_a" FROM "season_10_2007_2008" WHERE "segment_c"='s Duvet';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of episodes for s fire extinguisher`

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

CREATE TABLE "season_10_2007_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of episodes for s fire extinguisher`:
```sql
                SELECT COUNT("episode") FROM "season_10_2007_2008" WHERE "segment_a"='s Fire Extinguisher';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of segment b for s banjo`

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

CREATE TABLE "season_10_2007_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of segment b for s banjo`:
```sql
                SELECT COUNT("segment_b") FROM "season_10_2007_2008" WHERE "segment_d"='s Banjo';
```