cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which series number had 1.98 million viewers?`

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

CREATE TABLE "table1_22347090_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series number had 1.98 million viewers?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_22347090_4" WHERE "u_s_viewers_million"='1.98';
```
## Task
Generate a SQL query to answer the following question:
`Name the viewers for production code for 3x6704`

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

CREATE TABLE "table1_22347090_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the viewers for production code for 3x6704`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_22347090_5" WHERE "production_code"='3X6704';
```
## Task
Generate a SQL query to answer the following question:
`Name the viewers for production code being 3x6706`

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

CREATE TABLE "table1_22347090_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the viewers for production code being 3x6706`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_22347090_5" WHERE "production_code"='3X6706';
```
## Task
Generate a SQL query to answer the following question:
`Name the title that got 1.54 viewers`

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

CREATE TABLE "table1_22347090_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title that got 1.54 viewers`:
```sql
                SELECT "title" FROM "table1_22347090_5" WHERE "u_s_viewers_million"='1.54';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of number in season for 26`

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

CREATE TABLE "table1_22347090_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of number in season for 26`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_22347090_5" WHERE "no_in_series"=26;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that has a production code 3x7557?`

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

CREATE TABLE "table1_22347090_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that has a production code 3x7557?`:
```sql
                SELECT "written_by" FROM "table1_22347090_6" WHERE "production_code"='3X7557';
```
## Task
Generate a SQL query to answer the following question:
`How many directors are there for the episode that had 1.59 million U.S. viewers?`

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

CREATE TABLE "table1_22347090_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors are there for the episode that had 1.59 million U.S. viewers?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_22347090_6" WHERE "u_s_viewers_million"='1.59';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for the episode that had 1.32 million U.S. viewers?`

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

CREATE TABLE "table1_22347090_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for the episode that had 1.32 million U.S. viewers?`:
```sql
                SELECT "production_code" FROM "table1_22347090_6" WHERE "u_s_viewers_million"='1.32';
```
## Task
Generate a SQL query to answer the following question:
`What episode number in the series had a production code of 3x7554?`

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

CREATE TABLE "table1_22347090_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the series had a production code of 3x7554?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_22347090_6" WHERE "production_code"='3X7554';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of episode number 41 in the series?`

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

CREATE TABLE "table1_22347090_6" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode number 41 in the series?`:
```sql
                SELECT "title" FROM "table1_22347090_6" WHERE "no_in_series"=41;
```
## Task
Generate a SQL query to answer the following question:
`Who has the minimum number of silver?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the minimum number of silver?`:
```sql
                SELECT MIN("silver") FROM "list_of_olympic_medalists_in_athletics_m";
```
## Task
Generate a SQL query to answer the following question:
`Who is the athlete who's rank is 8 and competed in the olympics during 1948–1952?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the athlete who's rank is 8 and competed in the olympics during 1948–1952?`:
```sql
                SELECT "athlete" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "rank"=8 AND "olympics"='1948–1952';
```
## Task
Generate a SQL query to answer the following question:
`What is the nation who won 1 bronze in the Olympics during  1924–1928?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nation who won 1 bronze in the Olympics during  1924–1928?`:
```sql
                SELECT "nation" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "olympics"='1924–1928' AND "bronze"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?`:
```sql
                SELECT "athlete" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "nation"='Ethiopia (ETH)' AND "rank">7.0;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of golds?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of golds?`:
```sql
                SELECT MAX("gold") FROM "list_of_olympic_medalists_in_athletics_m";
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of silver?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest amount of silver?`:
```sql
                SELECT MIN("silver") FROM "list_of_olympic_medalists_in_athletics_m";
```
## Task
Generate a SQL query to answer the following question:
`Name the nation for abdon pamich category:articles with hcards`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nation for abdon pamich category:articles with hcards`:
```sql
                SELECT "nation" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "athlete"='Abdon Pamich Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`Name the silver for ronald weigel category:articles with hcards`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the silver for ronald weigel category:articles with hcards`:
```sql
                SELECT MAX("silver") FROM "list_of_olympic_medalists_in_athletics_m" WHERE "athlete"='Ronald Weigel Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`What's the minimal rank of a athlete shown in the chart?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the minimal rank of a athlete shown in the chart?`:
```sql
                SELECT MIN("rank") FROM "list_of_olympic_medalists_in_athletics_m";
```
## Task
Generate a SQL query to answer the following question:
`which is the minimun amount of gold medals?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `which is the minimun amount of gold medals?`:
```sql
                SELECT MIN("gold") FROM "list_of_olympic_medalists_in_athletics_m";
```
## Task
Generate a SQL query to answer the following question:
`which is the minimun amount of silver medals?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `which is the minimun amount of silver medals?`:
```sql
                SELECT MIN("silver") FROM "list_of_olympic_medalists_in_athletics_m";
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall number for  total(min. 2 medals)?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall number for  total(min. 2 medals)?`:
```sql
                SELECT MIN("total_min_2_medals") FROM "list_of_olympic_medalists_in_athletics_m";
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum rank of the nation that won 4 gold medals?`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum rank of the nation that won 4 gold medals?`:
```sql
                SELECT MAX("rank") FROM "list_of_olympic_medalists_in_athletics_m" WHERE "gold"=4;
```
## Task
Generate a SQL query to answer the following question:
`Name the most rank`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank`:
```sql
                SELECT MAX("rank") FROM "list_of_olympic_medalists_in_athletics_m";
```
## Task
Generate a SQL query to answer the following question:
`Name the most rank for 2 gold`

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

CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
  "rank" real,
  "athlete" text,
  "nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank for 2 gold`:
```sql
                SELECT MIN("rank") FROM "list_of_olympic_medalists_in_athletics_m" WHERE "gold"=2;
```
## Task
Generate a SQL query to answer the following question:
`Name the most total `

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

CREATE TABLE "table1_22360_3" (
  "discipline" text,
  "contested" text,
  "number_of_olympiads" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most total `:
```sql
                SELECT MAX("total") FROM "table1_22360_3";
```
## Task
Generate a SQL query to answer the following question:
`Name the silver for baseball`

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

CREATE TABLE "table1_22360_3" (
  "discipline" text,
  "contested" text,
  "number_of_olympiads" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the silver for baseball`:
```sql
                SELECT MIN("silver") FROM "table1_22360_3" WHERE "discipline"='Baseball';
```
## Task
Generate a SQL query to answer the following question:
`Name the discipline for bronze being 0`

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

CREATE TABLE "table1_22360_3" (
  "discipline" text,
  "contested" text,
  "number_of_olympiads" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the discipline for bronze being 0`:
```sql
                SELECT "discipline" FROM "table1_22360_3" WHERE "bronze"=0;
```
## Task
Generate a SQL query to answer the following question:
`Name the most tier 1 capital for irish nationwide`

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

CREATE TABLE "table1_22368322_2" (
  "institution" text,
  "date_of_report" text,
  "s_risk_weighted_asset_million" real,
  "tier_1_capital_million" real,
  "tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most tier 1 capital for irish nationwide`:
```sql
                SELECT MAX("tier_1_capital_million") FROM "table1_22368322_2" WHERE "institution"='Irish Nationwide';
```
## Task
Generate a SQL query to answer the following question:
`Name the institution for tier 1 capital 1394`

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

CREATE TABLE "table1_22368322_2" (
  "institution" text,
  "date_of_report" text,
  "s_risk_weighted_asset_million" real,
  "tier_1_capital_million" real,
  "tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the institution for tier 1 capital 1394`:
```sql
                SELECT "institution" FROM "table1_22368322_2" WHERE "tier_1_capital_million"=1394;
```
## Task
Generate a SQL query to answer the following question:
`Name the tier 1 ratio for irish life and permanent`

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

CREATE TABLE "table1_22368322_2" (
  "institution" text,
  "date_of_report" text,
  "s_risk_weighted_asset_million" real,
  "tier_1_capital_million" real,
  "tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tier 1 ratio for irish life and permanent`:
```sql
                SELECT "tier_1_ratio" FROM "table1_22368322_2" WHERE "institution"='Irish Life and Permanent';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of tier 1 capital for allied irish banks`

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

CREATE TABLE "table1_22368322_2" (
  "institution" text,
  "date_of_report" text,
  "s_risk_weighted_asset_million" real,
  "tier_1_capital_million" real,
  "tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of tier 1 capital for allied irish banks`:
```sql
                SELECT COUNT("tier_1_capital_million") FROM "table1_22368322_2" WHERE "institution"='Allied Irish Banks';
```
## Task
Generate a SQL query to answer the following question:
`Name the date of report for tier 1 ratio being 3.9%`

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

CREATE TABLE "table1_22368322_2" (
  "institution" text,
  "date_of_report" text,
  "s_risk_weighted_asset_million" real,
  "tier_1_capital_million" real,
  "tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date of report for tier 1 ratio being 3.9%`:
```sql
                SELECT "date_of_report" FROM "table1_22368322_2" WHERE "tier_1_ratio"='3.9%';
```
## Task
Generate a SQL query to answer the following question:
`What season ended on April 18?`

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

CREATE TABLE "division_i" (
  "no" real,
  "season" text,
  "championship" real,
  "no_of_teams" real,
  "start_reg_season" text,
  "finish_incl_championship" text,
  "top_record" text,
  "national_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season ended on April 18?`:
```sql
                SELECT "season" FROM "division_i" WHERE "finish_incl_championship"='April 18';
```
## Task
Generate a SQL query to answer the following question:
`When did the season start that ended with the top record of Lindenwood (20–0–0)?`

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

CREATE TABLE "division_i" (
  "no" real,
  "season" text,
  "championship" real,
  "no_of_teams" real,
  "start_reg_season" text,
  "finish_incl_championship" text,
  "top_record" text,
  "national_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season start that ended with the top record of Lindenwood (20–0–0)?`:
```sql
                SELECT "start_reg_season" FROM "division_i" WHERE "top_record"='Lindenwood (20–0–0)';
```
## Task
Generate a SQL query to answer the following question:
`What is the year range of season 4?`

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

CREATE TABLE "division_i" (
  "no" real,
  "season" text,
  "championship" real,
  "no_of_teams" real,
  "start_reg_season" text,
  "finish_incl_championship" text,
  "top_record" text,
  "national_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year range of season 4?`:
```sql
                SELECT "season" FROM "division_i" WHERE "no"=4;
```
## Task
Generate a SQL query to answer the following question:
`When is the finish of the season that started on September 25?`

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

CREATE TABLE "division_i" (
  "no" real,
  "season" text,
  "championship" real,
  "no_of_teams" real,
  "start_reg_season" text,
  "finish_incl_championship" text,
  "top_record" text,
  "national_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the finish of the season that started on September 25?`:
```sql
                SELECT "finish_incl_championship" FROM "division_i" WHERE "start_reg_season"='September 25';
```
## Task
Generate a SQL query to answer the following question:
`On what air date were there 2.15 million u.s. viewers?`

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

CREATE TABLE "table1_22380270_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what air date were there 2.15 million u.s. viewers?`:
```sql
                SELECT "original_air_date" FROM "table1_22380270_1" WHERE "u_s_viewers_millions"='2.15';
```
## Task
Generate a SQL query to answer the following question:
`How many u.s. views were there for the epidosde titled, "now you lift your eyes to the sun"?`

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

CREATE TABLE "table1_22380270_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many u.s. views were there for the epidosde titled, "now you lift your eyes to the sun"?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_22380270_1" WHERE "title"='\"Now You Lift Your Eyes to the Sun\"';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the episode with 2.15 million u.s.viewers?`

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

CREATE TABLE "table1_22380270_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the episode with 2.15 million u.s.viewers?`:
```sql
                SELECT "written_by" FROM "table1_22380270_1" WHERE "u_s_viewers_millions"='2.15';
```
## Task
Generate a SQL query to answer the following question:
`Who walked in space from STS-101 Eva 1?`

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

CREATE TABLE "table1_22385461_1" (
  "num" text,
  "spacecraft" text,
  "spacewalkers" text,
  "start_utc" text,
  "end_utc" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who walked in space from STS-101 Eva 1?`:
```sql
                SELECT "spacewalkers" FROM "table1_22385461_1" WHERE "spacecraft"='STS-101 EVA 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the end (UTC) if the duration is 6 hours, 55 minutes?`

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

CREATE TABLE "table1_22385461_8" (
  "num" text,
  "spacecraft" text,
  "spacewalkers" text,
  "start_utc" text,
  "end_utc" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the end (UTC) if the duration is 6 hours, 55 minutes?`:
```sql
                SELECT "end_utc" FROM "table1_22385461_8" WHERE "duration"='6 hours, 55 minutes';
```
## Task
Generate a SQL query to answer the following question:
`If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?`

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

CREATE TABLE "table1_22385461_8" (
  "num" text,
  "spacecraft" text,
  "spacewalkers" text,
  "start_utc" text,
  "end_utc" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?`:
```sql
                SELECT "spacewalkers" FROM "table1_22385461_8" WHERE "end_utc"='January 31, 2007 23:09';
```
## Task
Generate a SQL query to answer the following question:
`What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53?`

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

CREATE TABLE "table1_22385461_8" (
  "num" text,
  "spacecraft" text,
  "spacewalkers" text,
  "start_utc" text,
  "end_utc" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53?`:
```sql
                SELECT "spacewalkers" FROM "table1_22385461_8" WHERE "end_utc"='October 30, 2007 15:53';
```
## Task
Generate a SQL query to answer the following question:
`Which position is player bernie doan?`

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

CREATE TABLE "draft_picks" (
  "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 is player bernie doan?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "player"='Bernie Doan';
```
## Task
Generate a SQL query to answer the following question:
`How many pick # are there for the goaltender position?`

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

CREATE TABLE "draft_picks" (
  "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 pick # are there for the goaltender position?`:
```sql
                SELECT MIN("pick_num") FROM "draft_picks" WHERE "position"='Goaltender';
```
## Task
Generate a SQL query to answer the following question:
`How many college/junior/clubteams have John garrett as the player?`

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

CREATE TABLE "draft_picks" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many college/junior/clubteams have John garrett as the player?`:
```sql
                SELECT COUNT("college_junior_club_team") FROM "draft_picks" WHERE "player"='John Garrett';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player with the pick# 80?`

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

CREATE TABLE "draft_picks" (
  "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 player with the pick# 80?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "pick_num"=80;
```
## Task
Generate a SQL query to answer the following question:
`Which nationality is player John Garrett?`

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

CREATE TABLE "draft_picks" (
  "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 player John Garrett?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "player"='John Garrett';
```
## Task
Generate a SQL query to answer the following question:
`what team had ricardo serrano for combativity prize?`

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

CREATE TABLE "jersey_progress" (
  "stage_winner" text,
  "general_classification" text,
  "sprints_classification" text,
  "mountains_classification" text,
  "youth_classification" text,
  "team_classification" text,
  "combativity_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team had ricardo serrano for combativity prize?`:
```sql
                SELECT "team_classification" FROM "jersey_progress" WHERE "combativity_prize"='Ricardo Serrano';
```
## Task
Generate a SQL query to answer the following question:
`How many production stage managers worked with Gabriel di Chiara as the Male Rep?`

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

CREATE TABLE "past_board_members" (
  "year" text,
  "chairman" text,
  "artistic_director" text,
  "performance_liaison" text,
  "secretary" text,
  "business_manager" text,
  "production_stagemanager" text,
  "dramaturge" text,
  "public_relations" text,
  "first_second_year_rep" text,
  "male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many production stage managers worked with Gabriel di Chiara as the Male Rep?`:
```sql
                SELECT COUNT("production_stagemanager") FROM "past_board_members" WHERE "male_rep"='Gabriel Di Chiara';
```
## Task
Generate a SQL query to answer the following question:
`How many production stage managers worked with secretary Rachel Hartmann?`

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

CREATE TABLE "past_board_members" (
  "year" text,
  "chairman" text,
  "artistic_director" text,
  "performance_liaison" text,
  "secretary" text,
  "business_manager" text,
  "production_stagemanager" text,
  "dramaturge" text,
  "public_relations" text,
  "first_second_year_rep" text,
  "male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many production stage managers worked with secretary Rachel Hartmann?`:
```sql
                SELECT COUNT("production_stagemanager") FROM "past_board_members" WHERE "secretary"='Rachel Hartmann';
```
## Task
Generate a SQL query to answer the following question:
`Who were the performance liaisons for the dramaturge Chrisena Ricci?`

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

CREATE TABLE "past_board_members" (
  "year" text,
  "chairman" text,
  "artistic_director" text,
  "performance_liaison" text,
  "secretary" text,
  "business_manager" text,
  "production_stagemanager" text,
  "dramaturge" text,
  "public_relations" text,
  "first_second_year_rep" text,
  "male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the performance liaisons for the dramaturge Chrisena Ricci?`:
```sql
                SELECT "performance_liaison" FROM "past_board_members" WHERE "dramaturge"='Chrisena Ricci';
```
## Task
Generate a SQL query to answer the following question:
`Who was the first/second year rep. when the performance liaison was Kira Josephson?`

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

CREATE TABLE "past_board_members" (
  "year" text,
  "chairman" text,
  "artistic_director" text,
  "performance_liaison" text,
  "secretary" text,
  "business_manager" text,
  "production_stagemanager" text,
  "dramaturge" text,
  "public_relations" text,
  "first_second_year_rep" text,
  "male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first/second year rep. when the performance liaison was Kira Josephson?`:
```sql
                SELECT "first_second_year_rep" FROM "past_board_members" WHERE "performance_liaison"='Kira Josephson';
```
## Task
Generate a SQL query to answer the following question:
`What year were the first/second year reps Katie Pautler and Devery North?`

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

CREATE TABLE "past_board_members" (
  "year" text,
  "chairman" text,
  "artistic_director" text,
  "performance_liaison" text,
  "secretary" text,
  "business_manager" text,
  "production_stagemanager" text,
  "dramaturge" text,
  "public_relations" text,
  "first_second_year_rep" text,
  "male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year were the first/second year reps Katie Pautler and Devery North?`:
```sql
                SELECT "year" FROM "past_board_members" WHERE "first_second_year_rep"='Katie Pautler and Devery North';
```
## Task
Generate a SQL query to answer the following question:
`Who was the male rep. when Caroline Rhoads was the artistic director?`

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

CREATE TABLE "past_board_members" (
  "year" text,
  "chairman" text,
  "artistic_director" text,
  "performance_liaison" text,
  "secretary" text,
  "business_manager" text,
  "production_stagemanager" text,
  "dramaturge" text,
  "public_relations" text,
  "first_second_year_rep" text,
  "male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the male rep. when Caroline Rhoads was the artistic director?`:
```sql
                SELECT "male_rep" FROM "past_board_members" WHERE "artistic_director"='Caroline Rhoads';
```
## Task
Generate a SQL query to answer the following question:
`How many different drivers were there for the team when the manufacturer was Toyota?`

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

CREATE TABLE "table1_2241101_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different drivers were there for the team when the manufacturer was Toyota?`:
```sql
                SELECT COUNT("driver") FROM "table1_2241101_1" WHERE "manufacturer"='Toyota';
```
## Task
Generate a SQL query to answer the following question:
`In how many different years did the race happen on February 27?`

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

CREATE TABLE "table1_2241101_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many different years did the race happen on February 27?`:
```sql
                SELECT COUNT("year") FROM "table1_2241101_1" WHERE "date"='February 27';
```
## Task
Generate a SQL query to answer the following question:
`What team had average speed of 107.063 mph?`

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

CREATE TABLE "table1_2241101_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team had average speed of 107.063 mph?`:
```sql
                SELECT "team" FROM "table1_2241101_1" WHERE "average_speed_mph"='107.063';
```
## Task
Generate a SQL query to answer the following question:
`What was the report for 2010?`

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

CREATE TABLE "table1_2241101_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the report for 2010?`:
```sql
                SELECT "report" FROM "table1_2241101_1" WHERE "year"=2010;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of race time for kevin harvick`

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

CREATE TABLE "table1_2241259_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of race time for kevin harvick`:
```sql
                SELECT COUNT("race_time") FROM "table1_2241259_1" WHERE "driver"='Kevin Harvick';
```
## Task
Generate a SQL query to answer the following question:
`What manufacturer made the car that won in 2004?`

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

CREATE TABLE "table1_2241841_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What manufacturer made the car that won in 2004?`:
```sql
                SELECT "manufacturer" FROM "table1_2241841_1" WHERE "year"='2004';
```
## Task
Generate a SQL query to answer the following question:
`How many wins are with Dodge vehicles?`

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

CREATE TABLE "table1_2241841_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins are with Dodge vehicles?`:
```sql
                SELECT COUNT("miles_km") FROM "table1_2241841_1" WHERE "manufacturer"='Dodge';
```
## Task
Generate a SQL query to answer the following question:
`Who made the car that won the race on May 21?`

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

CREATE TABLE "table1_2241841_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the car that won the race on May 21?`:
```sql
                SELECT "manufacturer" FROM "table1_2241841_1" WHERE "date"='May 21';
```
## Task
Generate a SQL query to answer the following question:
`In the race with a winning time of 4:17:18, how many laps were run?`

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

CREATE TABLE "table1_2241841_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the race with a winning time of 4:17:18, how many laps were run?`:
```sql
                SELECT "laps" FROM "table1_2241841_1" WHERE "race_time"='4:17:18';
```
## Task
Generate a SQL query to answer the following question:
`What team set a 3:15:43 winning time?`

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

CREATE TABLE "table1_2241841_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team set a 3:15:43 winning time?`:
```sql
                SELECT "team" FROM "table1_2241841_1" WHERE "race_time"='3:15:43';
```
## Task
Generate a SQL query to answer the following question:
`How many different cities are represented by contestants whose height stands at 1.80?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different cities are represented by contestants whose height stands at 1.80?`:
```sql
                SELECT COUNT("hometown") FROM "delegates" WHERE "height"='1.80';
```
## Task
Generate a SQL query to answer the following question:
`How tall is contestant Alexandra Díaz Bello?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is contestant Alexandra Díaz Bello?`:
```sql
                SELECT "height" FROM "delegates" WHERE "contestant"='Alexandra Díaz Bello';
```
## Task
Generate a SQL query to answer the following question:
`Which contestant hails from Dajabón?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which contestant hails from Dajabón?`:
```sql
                SELECT "contestant" FROM "delegates" WHERE "province_community"='Dajabón';
```
## Task
Generate a SQL query to answer the following question:
`Which province is Villa Bisonó in?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province is Villa Bisonó in?`:
```sql
                SELECT "province_community" FROM "delegates" WHERE "hometown"='Villa Bisonó';
```
## Task
Generate a SQL query to answer the following question:
`How old is contestant Valerie Chardonnens Vargas?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old is contestant Valerie Chardonnens Vargas?`:
```sql
                SELECT MAX("age") FROM "delegates" WHERE "contestant"='Valerie Chardonnens Vargas';
```
## Task
Generate a SQL query to answer the following question:
`Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?`

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

CREATE TABLE "principal_roles_and_cast_members" (
  "character" text,
  "original_manchester_performer" text,
  "original_west_end_performer" text,
  "original_broadway_performer" text,
  "original_uk_tour_performer" text,
  "original_non_equity_us_tour_performer" text,
  "original_italian_tour_performer" text,
  "original_south_korean_performer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?`:
```sql
                SELECT "original_south_korean_performer" FROM "principal_roles_and_cast_members" WHERE "original_manchester_performer"='Adebayo Bolaji';
```