cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Namethe democrat john lynch for joe kenney being 27%`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_john_lynch" text,
  "republican_joe_kenney" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `Namethe democrat john lynch for joe kenney being 27%`:
```sql
                SELECT "democrat_john_lynch" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='27%';
```
## Task
Generate a SQL query to answer the following question:
`Name the poll source for republican joe kenney being 28%`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_john_lynch" text,
  "republican_joe_kenney" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the poll source for republican joe kenney being 28%`:
```sql
                SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='28%';
```
## Task
Generate a SQL query to answer the following question:
`Name the lead margin for democrat john lynch being 62%`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_john_lynch" text,
  "republican_joe_kenney" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lead margin for democrat john lynch being 62%`:
```sql
                SELECT "lead_margin" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_john_lynch"='62%';
```
## Task
Generate a SQL query to answer the following question:
`Name the most lead margin for republican joe kenney being 23%`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_john_lynch" text,
  "republican_joe_kenney" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most lead margin for republican joe kenney being 23%`:
```sql
                SELECT MAX("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='23%';
```
## Task
Generate a SQL query to answer the following question:
`How many 3rd ru does Costa Rica have? `

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country" text,
  "miss_united_continent" real,
  "virreina" real,
  "1st_ru" real,
  "2nd_ru" real,
  "3rd_ru" real,
  "4th_ru" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many 3rd ru does Costa Rica have? `:
```sql
                SELECT MAX("3rd_ru") FROM "by_country_tally" WHERE "country"='Costa Rica';
```
## Task
Generate a SQL query to answer the following question:
`How many 3rd ru does Canada have? `

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country" text,
  "miss_united_continent" real,
  "virreina" real,
  "1st_ru" real,
  "2nd_ru" real,
  "3rd_ru" real,
  "4th_ru" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many 3rd ru does Canada have? `:
```sql
                SELECT COUNT("3rd_ru") FROM "by_country_tally" WHERE "country"='Canada';
```
## Task
Generate a SQL query to answer the following question:
`What is the least number of miss united continents? `

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country" text,
  "miss_united_continent" real,
  "virreina" real,
  "1st_ru" real,
  "2nd_ru" real,
  "3rd_ru" real,
  "4th_ru" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of miss united continents? `:
```sql
                SELECT MIN("miss_united_continent") FROM "by_country_tally";
```
## Task
Generate a SQL query to answer the following question:
`Who's the poll source that claimed the Lead Margin was 17 and the Democrat: Jay Nixon had 54% of the votes?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_jay_nixon" text,
  "republican_kenny_hulshof" text,
  "lead_margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the poll source that claimed the Lead Margin was 17 and the Democrat: Jay Nixon had 54% of the votes?`:
```sql
                SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_jay_nixon"='54%' AND "lead_margin"='17';
```
## Task
Generate a SQL query to answer the following question:
`What poll source claimed that Republican: Kenny Hulshof had 43%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_jay_nixon" text,
  "republican_kenny_hulshof" text,
  "lead_margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What poll source claimed that Republican: Kenny Hulshof had 43%?`:
```sql
                SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_kenny_hulshof"='43%';
```
## Task
Generate a SQL query to answer the following question:
`How many different lead margins were stated in the poll administered on September 11, 2008?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_jay_nixon" text,
  "republican_kenny_hulshof" text,
  "lead_margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different lead margins were stated in the poll administered on September 11, 2008?`:
```sql
                SELECT COUNT("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "dates_administered"='September 11, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What percentage was claimed that Republican: Kenny Hulshof got in the poll that also claimed Democrat: Jay Nixon got 48%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_jay_nixon" text,
  "republican_kenny_hulshof" text,
  "lead_margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage was claimed that Republican: Kenny Hulshof got in the poll that also claimed Democrat: Jay Nixon got 48%?`:
```sql
                SELECT "republican_kenny_hulshof" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_jay_nixon"='48%';
```
## Task
Generate a SQL query to answer the following question:
`Name the common name for rhampholeon spectrum `

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

CREATE TABLE "description" (
  "scientific_name" text,
  "common_name" text,
  "length_male" text,
  "length_female" text,
  "color" text,
  "lifespan_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the common name for rhampholeon spectrum `:
```sql
                SELECT "common_name" FROM "description" WHERE "scientific_name"='Rhampholeon spectrum';
```
## Task
Generate a SQL query to answer the following question:
`Name the scientific name for veiled chameleon`

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

CREATE TABLE "description" (
  "scientific_name" text,
  "common_name" text,
  "length_male" text,
  "length_female" text,
  "color" text,
  "lifespan_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the scientific name for veiled chameleon`:
```sql
                SELECT "scientific_name" FROM "description" WHERE "common_name"='Veiled chameleon';
```
## Task
Generate a SQL query to answer the following question:
`Name the common name for furcifer pardalis`

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

CREATE TABLE "description" (
  "scientific_name" text,
  "common_name" text,
  "length_male" text,
  "length_female" text,
  "color" text,
  "lifespan_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the common name for furcifer pardalis`:
```sql
                SELECT "common_name" FROM "description" WHERE "scientific_name"='Furcifer pardalis';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of color for furcifer pardalis`

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

CREATE TABLE "description" (
  "scientific_name" text,
  "common_name" text,
  "length_male" text,
  "length_female" text,
  "color" text,
  "lifespan_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of color for furcifer pardalis`:
```sql
                SELECT COUNT("color") FROM "description" WHERE "scientific_name"='Furcifer pardalis';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of international frieghts for domestic mail of 260`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of international frieghts for domestic mail of 260`:
```sql
                SELECT COUNT("international_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "domestic_mail"=260;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of domestic mail for 7853 for total frieght and mail`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of domestic mail for 7853 for total frieght and mail`:
```sql
                SELECT COUNT("domestic_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "total_freight_and_mail"=7853;
```
## Task
Generate a SQL query to answer the following question:
`Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260`:
```sql
                SELECT COUNT("domestic_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "international_mail">1.0 AND "domestic_mail"=260;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest vote for others?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real,
  "2000_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest vote for others?`:
```sql
                SELECT MAX("othersnum") FROM "by_county";
```
## Task
Generate a SQL query to answer the following question:
`When the result was +2.5, what were the kerry%?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real,
  "2000_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the result was +2.5, what were the kerry%?`:
```sql
                SELECT "kerrypct" FROM "by_county" WHERE "2000_result"='+2.5';
```
## Task
Generate a SQL query to answer the following question:
`When Kerry# was 199060, what was the percentage?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real,
  "2000_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Kerry# was 199060, what was the percentage?`:
```sql
                SELECT "kerrypct" FROM "by_county" WHERE "kerrynum"=199060;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest vote number for Bush?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real,
  "2000_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest vote number for Bush?`:
```sql
                SELECT MAX("bushnum") FROM "by_county";
```
## Task
Generate a SQL query to answer the following question:
`When the 200 result was +1.6, what was the percentage?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real,
  "2000_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the 200 result was +1.6, what was the percentage?`:
```sql
                SELECT "kerrypct" FROM "by_county" WHERE "2000_result"='+1.6';
```
## Task
Generate a SQL query to answer the following question:
`How many transfer windows coming from Crystal Palace?`

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

CREATE TABLE "in" (
  "n" real,
  "p" text,
  "name" text,
  "eu" text,
  "country" text,
  "age" real,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many transfer windows coming from Crystal Palace?`:
```sql
                SELECT COUNT("transfer_window") FROM "in" WHERE "moving_from"='Crystal Palace';
```
## Task
Generate a SQL query to answer the following question:
`What country has a P of GK?`

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

CREATE TABLE "in" (
  "n" real,
  "p" text,
  "name" text,
  "eu" text,
  "country" text,
  "age" real,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a P of GK?`:
```sql
                SELECT "country" FROM "in" WHERE "p"='GK';
```
## Task
Generate a SQL query to answer the following question:
`What is the P for the player moving from Everton?`

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

CREATE TABLE "in" (
  "n" real,
  "p" text,
  "name" text,
  "eu" text,
  "country" text,
  "age" real,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the P for the player moving from Everton?`:
```sql
                SELECT "p" FROM "in" WHERE "moving_from"='Everton';
```
## Task
Generate a SQL query to answer the following question:
`Name the competition of panathinaikos`

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

CREATE TABLE "table1_17594659_1" (
  "season" text,
  "competition" text,
  "round" text,
  "opposition" text,
  "first_leg" text,
  "second_leg" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the competition of panathinaikos`:
```sql
                SELECT "competition" FROM "table1_17594659_1" WHERE "opposition"='Panathinaikos';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "timeslot" text,
  "premiere" text,
  "finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot?`:
```sql
                SELECT "viewers_in_millions" FROM "u_s_television_ratings" WHERE "ranking"='#51' AND "timeslot"='Tuesday 9:00 p.m.';
```
## Task
Generate a SQL query to answer the following question:
`What finales took place in the Tuesday 9:30 p.m. timeslot?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "timeslot" text,
  "premiere" text,
  "finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What finales took place in the Tuesday 9:30 p.m. timeslot?`:
```sql
                SELECT "finale" FROM "u_s_television_ratings" WHERE "timeslot"='Tuesday 9:30 p.m.';
```
## Task
Generate a SQL query to answer the following question:
`What premieres had a finale on May 25, 2004?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "timeslot" text,
  "premiere" text,
  "finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What premieres had a finale on May 25, 2004?`:
```sql
                SELECT "premiere" FROM "u_s_television_ratings" WHERE "finale"='May 25, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What seasons had a finale on May 25, 2004?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "timeslot" text,
  "premiere" text,
  "finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons had a finale on May 25, 2004?`:
```sql
                SELECT "season" FROM "u_s_television_ratings" WHERE "finale"='May 25, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What seasons had a ranking of #47?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "timeslot" text,
  "premiere" text,
  "finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons had a ranking of #47?`:
```sql
                SELECT "season" FROM "u_s_television_ratings" WHERE "ranking"='#47';
```
## Task
Generate a SQL query to answer the following question:
`What are all values for viewers for 1st season?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "timeslot" text,
  "premiere" text,
  "finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all values for viewers for 1st season?`:
```sql
                SELECT "viewers_in_millions" FROM "u_s_television_ratings" WHERE "season"='1st';
```
## Task
Generate a SQL query to answer the following question:
`What is the withdraw date for secr no. 771?`

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

CREATE TABLE "l_class_locomotive_fleet_summary" (
  "secr_no" real,
  "sr_no" real,
  "br_no" real,
  "builder" text,
  "date_delivered" text,
  "date_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the withdraw date for secr no. 771?`:
```sql
                SELECT "date_withdrawn" FROM "l_class_locomotive_fleet_summary" WHERE "secr_no"=771;
```
## Task
Generate a SQL query to answer the following question:
`Who is the builder for br no. 31779?`

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

CREATE TABLE "l_class_locomotive_fleet_summary" (
  "secr_no" real,
  "sr_no" real,
  "br_no" real,
  "builder" text,
  "date_delivered" text,
  "date_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the builder for br no. 31779?`:
```sql
                SELECT "builder" FROM "l_class_locomotive_fleet_summary" WHERE "br_no"=31779;
```
## Task
Generate a SQL query to answer the following question:
`what ist he country where the loan club is fulham?`

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

CREATE TABLE "loans_in" (
  "no" real,
  "p" text,
  "name" text,
  "country" text,
  "age" real,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text,
  "end_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `what ist he country where the loan club is fulham?`:
```sql
                SELECT "country" FROM "loans_in" WHERE "loan_club"='Fulham';
```
## Task
Generate a SQL query to answer the following question:
`what ist he total number of ages where the start date is 6 november?`

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

CREATE TABLE "loans_in" (
  "no" real,
  "p" text,
  "name" text,
  "country" text,
  "age" real,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text,
  "end_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `what ist he total number of ages where the start date is 6 november?`:
```sql
                SELECT COUNT("age") FROM "loans_in" WHERE "started"='6 November';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of eipsode 618?`

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

CREATE TABLE "table1_17624965_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of eipsode 618?`:
```sql
                SELECT "title" FROM "table1_17624965_1" WHERE "production_code"=618;
```
## Task
Generate a SQL query to answer the following question:
`When did "secrets" air?`

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

CREATE TABLE "table1_17624965_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did "secrets" air?`:
```sql
                SELECT "original_air_date" FROM "table1_17624965_1" WHERE "title"='\"Secrets\"';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons did "strangled, not stirred" air?`

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

CREATE TABLE "table1_17624965_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did "strangled, not stirred" air?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_17624965_1" WHERE "title"='\"Strangled, Not Stirred\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes did Alison Maclean direct?`

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

CREATE TABLE "table1_17624965_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes did Alison Maclean direct?`:
```sql
                SELECT COUNT("written_by") FROM "table1_17624965_1" WHERE "directed_by"='Alison Maclean';
```
## Task
Generate a SQL query to answer the following question:
`Name the high points for may 29`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high points for may 29`:
```sql
                SELECT "high_points" FROM "playoffs" WHERE "date"='May 29';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for series 2-2`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for series 2-2`:
```sql
                SELECT "date" FROM "playoffs" WHERE "series"='2-2';
```
## Task
Generate a SQL query to answer the following question:
`Name the high assists for may 21`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high assists for may 21`:
```sql
                SELECT "high_assists" FROM "playoffs" WHERE "date"='May 21';
```
## Task
Generate a SQL query to answer the following question:
`How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play" text,
  "colour_commentator_s" text,
  "sideline_reporters" text,
  "pregame_host" text,
  "pregame_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers?`:
```sql
                SELECT COUNT("play_by_play") FROM "2000s" WHERE "pregame_analysts"='Darren Flutie, Eric Tillman and Greg Frers';
```
## Task
Generate a SQL query to answer the following question:
`Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play" text,
  "colour_commentator_s" text,
  "sideline_reporters" text,
  "pregame_host" text,
  "pregame_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving?`:
```sql
                SELECT "play_by_play" FROM "2000s" WHERE "pregame_host"='Brian Williams' AND "sideline_reporters"='Steve Armitage and Brenda Irving';
```
## Task
Generate a SQL query to answer the following question:
`Who were the pregame hosts when the sideline reporters were Steve Armitage and Brenda Irving?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play" text,
  "colour_commentator_s" text,
  "sideline_reporters" text,
  "pregame_host" text,
  "pregame_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the pregame hosts when the sideline reporters were Steve Armitage and Brenda Irving?`:
```sql
                SELECT "pregame_host" FROM "2000s" WHERE "sideline_reporters"='Steve Armitage and Brenda Irving';
```
## Task
Generate a SQL query to answer the following question:
`Who did pregame analysis in 2002?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play" text,
  "colour_commentator_s" text,
  "sideline_reporters" text,
  "pregame_host" text,
  "pregame_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did pregame analysis in 2002?`:
```sql
                SELECT "pregame_analysts" FROM "2000s" WHERE "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`Name the state for lake county`

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

CREATE TABLE "list_of_the_most_populous_us_counties_so" (
  "rank" real,
  "county" text,
  "state" text,
  "land_area_km" text,
  "land_area_mi" text,
  "april_1_2010_census" real,
  "april_1_2010_density_km" real,
  "april_1_2010_density_mi" real,
  "july_1_2010_official_estimate" real,
  "july_1_2010_density_km" real,
  "july_1_2010_density_mi" real,
  "july_1_2011_official_estimate" real,
  "july_1_2011_density_km" real,
  "july_1_2011_density_mi" real,
  "mid_2010_to_mid_2011_change_absolute" real,
  "mid_2010_to_mid_2011_change_pct" text,
  "county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the state for lake county`:
```sql
                SELECT "state" FROM "list_of_the_most_populous_us_counties_so" WHERE "county"='Lake County';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of county seat or courthouse for april 1 2010 denisty is 2205`

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

CREATE TABLE "list_of_the_most_populous_us_counties_so" (
  "rank" real,
  "county" text,
  "state" text,
  "land_area_km" text,
  "land_area_mi" text,
  "april_1_2010_census" real,
  "april_1_2010_density_km" real,
  "april_1_2010_density_mi" real,
  "july_1_2010_official_estimate" real,
  "july_1_2010_density_km" real,
  "july_1_2010_density_mi" real,
  "july_1_2011_official_estimate" real,
  "july_1_2011_density_km" real,
  "july_1_2011_density_mi" real,
  "mid_2010_to_mid_2011_change_absolute" real,
  "mid_2010_to_mid_2011_change_pct" text,
  "county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of county seat or courthouse for april 1 2010 denisty is 2205`:
```sql
                SELECT COUNT("county_seat_or_courthouse") FROM "list_of_the_most_populous_us_counties_so" WHERE "april_1_2010_density_mi"=2205;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of states for july 1 2010 density is 1209`

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

CREATE TABLE "list_of_the_most_populous_us_counties_so" (
  "rank" real,
  "county" text,
  "state" text,
  "land_area_km" text,
  "land_area_mi" text,
  "april_1_2010_census" real,
  "april_1_2010_density_km" real,
  "april_1_2010_density_mi" real,
  "july_1_2010_official_estimate" real,
  "july_1_2010_density_km" real,
  "july_1_2010_density_mi" real,
  "july_1_2011_official_estimate" real,
  "july_1_2011_density_km" real,
  "july_1_2011_density_mi" real,
  "mid_2010_to_mid_2011_change_absolute" real,
  "mid_2010_to_mid_2011_change_pct" text,
  "county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of states for july 1 2010 density is 1209`:
```sql
                SELECT COUNT("state") FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2010_density_mi"=1209;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest season?`

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

CREATE TABLE "semi_pro_seasons_1987_1993" (
  "season" real,
  "winners" text,
  "total_wins" real,
  "runners_up" text,
  "third_place" text,
  "number_of_clubs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest season?`:
```sql
                SELECT MIN("season") FROM "semi_pro_seasons_1987_1993";
```
## Task
Generate a SQL query to answer the following question:
`How many values for number of clubs have Shandong as the runner-up?`

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

CREATE TABLE "semi_pro_seasons_1987_1993" (
  "season" real,
  "winners" text,
  "total_wins" real,
  "runners_up" text,
  "third_place" text,
  "number_of_clubs" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for number of clubs have Shandong as the runner-up?`:
```sql
                SELECT COUNT("number_of_clubs") FROM "semi_pro_seasons_1987_1993" WHERE "runners_up"='Shandong';
```
## Task
Generate a SQL query to answer the following question:
`How many total wins with Shanghai as runner-up?`

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

CREATE TABLE "semi_pro_seasons_1987_1993" (
  "season" real,
  "winners" text,
  "total_wins" real,
  "runners_up" text,
  "third_place" text,
  "number_of_clubs" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total wins with Shanghai as runner-up?`:
```sql
                SELECT COUNT("total_wins") FROM "semi_pro_seasons_1987_1993" WHERE "runners_up"='Shanghai';
```
## Task
Generate a SQL query to answer the following question:
`Name the club for when tries for is 32`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the club for when tries for is 32`:
```sql
                SELECT "club" FROM "league_table" WHERE "tries_for"='32';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of lost where tries for is 109`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of lost where tries for is 109`:
```sql
                SELECT COUNT("lost") FROM "league_table" WHERE "tries_for"='109';
```
## Task
Generate a SQL query to answer the following question:
`Name the won when tries against is 72`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the won when tries against is 72`:
```sql
                SELECT "won" FROM "league_table" WHERE "tries_against"='72';
```
## Task
Generate a SQL query to answer the following question:
`Name the points aginst when drawn is 1 and points is 51`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points aginst when drawn is 1 and points is 51`:
```sql
                SELECT "points_against" FROM "league_table" WHERE "drawn"='1' AND "points"='51';
```
## Task
Generate a SQL query to answer the following question:
`Name the original air date for number in season being 1`

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

CREATE TABLE "table1_17625876_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for number in season being 1`:
```sql
                SELECT "original_air_date" FROM "table1_17625876_1" WHERE "no_in_season"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many were won when 5 were lost? `

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were won when 5 were lost? `:
```sql
                SELECT "won" FROM "league_table" WHERE "lost"='5';
```
## Task
Generate a SQL query to answer the following question:
`How many were drawn when 13 were lost? `

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were drawn when 13 were lost? `:
```sql
                SELECT "drawn" FROM "league_table" WHERE "lost"='13';
```
## Task
Generate a SQL query to answer the following question:
`How many points are there for 63 tries against? `

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are there for 63 tries against? `:
```sql
                SELECT "points_for" FROM "league_table" WHERE "tries_against"='63';
```
## Task
Generate a SQL query to answer the following question:
`What is the try bonus when the tries against are 17? `

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the try bonus when the tries against are 17? `:
```sql
                SELECT "try_bonus" FROM "league_table" WHERE "tries_against"='17';
```
## Task
Generate a SQL query to answer the following question:
`How many tries for are there when 11 were won? `

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries for are there when 11 were won? `:
```sql
                SELECT "tries_for" FROM "league_table" WHERE "won"='11';
```
## Task
Generate a SQL query to answer the following question:
`How many points categories are there when the losing bonus is 2 and points for are 642?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points categories are there when the losing bonus is 2 and points for are 642?`:
```sql
                SELECT COUNT("points") FROM "league_table" WHERE "losing_bonus"='2' AND "points_for"='642';
```
## Task
Generate a SQL query to answer the following question:
`How many people wrote the episode that had 6.34 million viewers?`

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

CREATE TABLE "table1_17641206_2" (
  "episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "duration" text,
  "viewership" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people wrote the episode that had 6.34 million viewers?`:
```sql
                SELECT COUNT("written_by") FROM "table1_17641206_2" WHERE "viewership"='6.34 million';
```
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode with 5.04 million viewers?`

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

CREATE TABLE "table1_17641206_4" (
  "episode" real,
  "original_title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "duration" text,
  "viewership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode with 5.04 million viewers?`:
```sql
                SELECT "original_title" FROM "table1_17641206_4" WHERE "viewership"='5.04 million';
```
## Task
Generate a SQL query to answer the following question:
`What was the first airdate with a viewership of 4.77 million?`

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

CREATE TABLE "table1_17641206_4" (
  "episode" real,
  "original_title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "duration" text,
  "viewership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first airdate with a viewership of 4.77 million?`:
```sql
                SELECT "original_airdate" FROM "table1_17641206_4" WHERE "viewership"='4.77 million';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes  of 30 minutes were written by John Sullivan?`

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

CREATE TABLE "table1_17641206_4" (
  "episode" real,
  "original_title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "duration" text,
  "viewership" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes  of 30 minutes were written by John Sullivan?`:
```sql
                SELECT COUNT("duration") FROM "table1_17641206_4" WHERE "written_by"='John Sullivan';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director when the writer was John Sullivan?`

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

CREATE TABLE "table1_17641206_4" (
  "episode" real,
  "original_title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "duration" text,
  "viewership" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director when the writer was John Sullivan?`:
```sql
                SELECT "directed_by" FROM "table1_17641206_4" WHERE "written_by"='John Sullivan';
```
## Task
Generate a SQL query to answer the following question:
`What is the total length when the title is " one man's junk "`

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

CREATE TABLE "table1_17641206_8" (
  "episode" real,
  "original_title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "duration" text,
  "viewership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total length when the title is " one man's junk "`:
```sql
                SELECT COUNT("duration") FROM "table1_17641206_8" WHERE "original_title"='\" One Man''s Junk \"';
```
## Task
Generate a SQL query to answer the following question:
`What are the movies that are written and dircted by  john sullivan  with the airdate of 15january2009.`

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

CREATE TABLE "table1_17641206_8" (
  "episode" real,
  "original_title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "duration" text,
  "viewership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the movies that are written and dircted by  john sullivan  with the airdate of 15january2009.`:
```sql
                SELECT "directed_by" FROM "table1_17641206_8" WHERE "written_by"='John Sullivan' AND "original_airdate"='15January2009';
```