cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the written by when the title is "his hour upon the stage"?`

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

CREATE TABLE "table1_2618072_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 `Who is the written by when the title is "his hour upon the stage"?`:
```sql
                SELECT "written_by" FROM "table1_2618072_1" WHERE "title"='\"His Hour Upon the Stage\"';
```
## Task
Generate a SQL query to answer the following question:
`Who is the directed by when the production code is 67425?`

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

CREATE TABLE "table1_2618072_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 `Who is the directed by when the production code is 67425?`:
```sql
                SELECT "directed_by" FROM "table1_2618072_1" WHERE "production_code"=67425;
```
## Task
Generate a SQL query to answer the following question:
`Who are all writers with original air date of October 23, 1996?`

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

CREATE TABLE "table1_2618119_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all writers with original air date of October 23, 1996?`:
```sql
                SELECT "written_by" FROM "table1_2618119_1" WHERE "original_air_date"='October 23, 1996';
```
## Task
Generate a SQL query to answer the following question:
`How many titles have directors of matthew Penn and number in series of 143?`

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

CREATE TABLE "table1_2618119_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles have directors of matthew Penn and number in series of 143?`:
```sql
                SELECT COUNT("title") FROM "table1_2618119_1" WHERE "directed_by"='Matthew Penn' AND "no_in_series"=143;
```
## Task
Generate a SQL query to answer the following question:
`How many numbers in series were for the number in season of 8?`

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

CREATE TABLE "table1_2618119_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers in series were for the number in season of 8?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_2618119_1" WHERE "no_in_season"=8;
```
## Task
Generate a SQL query to answer the following question:
`Who directed k0122?`

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

CREATE TABLE "table1_2618113_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed k0122?`:
```sql
                SELECT "directed_by" FROM "table1_2618113_1" WHERE "production_code"='K0122';
```
## Task
Generate a SQL query to answer the following question:
`Which season had k0104?`

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

CREATE TABLE "table1_2618113_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had k0104?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_2618113_1" WHERE "production_code"='K0104';
```
## Task
Generate a SQL query to answer the following question:
`Which season had "angel"?`

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

CREATE TABLE "table1_2618113_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had "angel"?`:
```sql
                SELECT "no_in_season" FROM "table1_2618113_1" WHERE "title"='\"Angel\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the airdate of k0120?`

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

CREATE TABLE "table1_2618113_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the airdate of k0120?`:
```sql
                SELECT "original_air_date" FROM "table1_2618113_1" WHERE "production_code"='K0120';
```
## Task
Generate a SQL query to answer the following question:
`What are the original air date(s) for "gunplay"?`

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

CREATE TABLE "table1_2618251_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the original air date(s) for "gunplay"?`:
```sql
                SELECT "original_air_date" FROM "table1_2618251_1" WHERE "title"='\"Gunplay\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode "dining out"?`

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

CREATE TABLE "table1_2618251_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode "dining out"?`:
```sql
                SELECT "directed_by" FROM "table1_2618251_1" WHERE "title"='\"Dining Out\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the institution with the nickname seahawks?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" text,
  "primary_conference" text,
  "colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the institution with the nickname seahawks?`:
```sql
                SELECT "institution" FROM "current_members" WHERE "nickname"='Seahawks';
```
## Task
Generate a SQL query to answer the following question:
`What is the colors for the nickname engineers?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" text,
  "primary_conference" text,
  "colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the colors for the nickname engineers?`:
```sql
                SELECT "colors" FROM "current_members" WHERE "nickname"='Engineers';
```
## Task
Generate a SQL query to answer the following question:
`How many have the colors blue & gold?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" text,
  "primary_conference" text,
  "colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many have the colors blue & gold?`:
```sql
                SELECT COUNT("institution") FROM "current_members" WHERE "colors"='Blue & Gold';
```
## Task
Generate a SQL query to answer the following question:
`What is the institution with the nickname engineers?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" text,
  "primary_conference" text,
  "colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the institution with the nickname engineers?`:
```sql
                SELECT "institution" FROM "current_members" WHERE "nickname"='Engineers';
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment for the colors green & black?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" text,
  "primary_conference" text,
  "colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment for the colors green & black?`:
```sql
                SELECT "enrollment" FROM "current_members" WHERE "colors"='Green & Black';
```
## Task
Generate a SQL query to answer the following question:
`What institution(s) are located in wilkes-barre, pennsylvania?`

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

CREATE TABLE "freedom_conference" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined_mac" real
);
### SQL
Given the database schema, here is the SQL query that answers `What institution(s) are located in wilkes-barre, pennsylvania?`:
```sql
                SELECT "institution" FROM "freedom_conference" WHERE "location"='Wilkes-Barre, Pennsylvania';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest enrollment schools that joined the mac in 1997?`

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

CREATE TABLE "freedom_conference" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined_mac" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest enrollment schools that joined the mac in 1997?`:
```sql
                SELECT MAX("enrollment") FROM "freedom_conference" WHERE "joined_mac"=1997;
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment at delaware valley college?`

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

CREATE TABLE "freedom_conference" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined_mac" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment at delaware valley college?`:
```sql
                SELECT MAX("joined_mac") FROM "freedom_conference" WHERE "institution"='Delaware Valley College';
```
## Task
Generate a SQL query to answer the following question:
`What year did the the school with the nickname eagles join the mac?`

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

CREATE TABLE "freedom_conference" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined_mac" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the the school with the nickname eagles join the mac?`:
```sql
                SELECT MIN("joined_mac") FROM "freedom_conference" WHERE "nickname"='Eagles';
```
## Task
Generate a SQL query to answer the following question:
`Which institution's nickname is the Bobcats? `

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "founding_religious_affiliation" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which institution's nickname is the Bobcats? `:
```sql
                SELECT "institution" FROM "current_members" WHERE "nickname"='Bobcats';
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment at the institution in New London, Connecticut? `

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "founding_religious_affiliation" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment at the institution in New London, Connecticut? `:
```sql
                SELECT "enrollment" FROM "current_members" WHERE "location"='New London, Connecticut';
```
## Task
Generate a SQL query to answer the following question:
`When did the institution located in Lewiston, Maine join the conference? `

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "founding_religious_affiliation" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the institution located in Lewiston, Maine join the conference? `:
```sql
                SELECT "joined" FROM "current_members" WHERE "location"='Lewiston, Maine';
```
## Task
Generate a SQL query to answer the following question:
`Which institution's nickname is the Polar Bears?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "founding_religious_affiliation" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which institution's nickname is the Polar Bears?`:
```sql
                SELECT "institution" FROM "current_members" WHERE "nickname"='Polar Bears';
```
## Task
Generate a SQL query to answer the following question:
`What is the nickname of Linfield College?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of Linfield College?`:
```sql
                SELECT "nickname" FROM "current_members" WHERE "institution"='Linfield College';
```
## Task
Generate a SQL query to answer the following question:
`When was the private/baptist school founded?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the private/baptist school founded?`:
```sql
                SELECT "founded" FROM "current_members" WHERE "type"='Private/Baptist';
```
## Task
Generate a SQL query to answer the following question:
`How many different items appear in the enrollment column that joined in 1931, 1949 1?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different items appear in the enrollment column that joined in 1931, 1949 1?`:
```sql
                SELECT COUNT("enrollment") FROM "current_members" WHERE "joined"='1931, 1949 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the University that joined in 1926, 1996 2?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the University that joined in 1926, 1996 2?`:
```sql
                SELECT "location" FROM "current_members" WHERE "joined"='1926, 1996 2';
```
## Task
Generate a SQL query to answer the following question:
`When was the earliest founded university?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the earliest founded university?`:
```sql
                SELECT MIN("founded") FROM "current_members";
```
## Task
Generate a SQL query to answer the following question:
`What was the team standing if the won 130 goals against another team?`

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

CREATE TABLE "regular_season" (
  "season" text,
  "games" real,
  "won" real,
  "lost" real,
  "tied" real,
  "points" real,
  "goals_for" real,
  "goals_against" real,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team standing if the won 130 goals against another team?`:
```sql
                SELECT "standing" FROM "regular_season" WHERE "goals_against"=130;
```
## Task
Generate a SQL query to answer the following question:
`What is every type for the location of Roanoke, Virginia?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "football" text,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every type for the location of Roanoke, Virginia?`:
```sql
                SELECT "type" FROM "current_members" WHERE "location"='Roanoke, Virginia';
```
## Task
Generate a SQL query to answer the following question:
`How many values for joined occur at Guilford College?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "football" text,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for joined occur at Guilford College?`:
```sql
                SELECT COUNT("joined") FROM "current_members" WHERE "institution"='Guilford College';
```
## Task
Generate a SQL query to answer the following question:
`What is every institution with the nickname of Quakers?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "football" text,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every institution with the nickname of Quakers?`:
```sql
                SELECT "institution" FROM "current_members" WHERE "nickname"='Quakers';
```
## Task
Generate a SQL query to answer the following question:
`What is every entry for football when enrollment is 998?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "football" text,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every entry for football when enrollment is 998?`:
```sql
                SELECT "football" FROM "current_members" WHERE "enrollment"=998;
```
## Task
Generate a SQL query to answer the following question:
`What is the least value of joined?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "football" text,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least value of joined?`:
```sql
                SELECT MIN("joined") FROM "current_members";
```
## Task
Generate a SQL query to answer the following question:
`What is every institution with the nickname of Wildcats?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "football" text,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every institution with the nickname of Wildcats?`:
```sql
                SELECT "institution" FROM "current_members" WHERE "nickname"='WildCats';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with production code 2alf03?`

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

CREATE TABLE "table1_26199130_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with production code 2alf03?`:
```sql
                SELECT "title" FROM "table1_26199130_1" WHERE "production_code"='2ALF03';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank (week) for episode number 34?`

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

CREATE TABLE "table1_26199130_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank (week) for episode number 34?`:
```sql
                SELECT "rank_week" FROM "table1_26199130_1" WHERE "no"=34;
```
## Task
Generate a SQL query to answer the following question:
`What numbered episode had 11.96 million US viewers?`

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

CREATE TABLE "table1_26199130_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What numbered episode had 11.96 million US viewers?`:
```sql
                SELECT MAX("no") FROM "table1_26199130_1" WHERE "u_s_viewers_million"='11.96';
```
## Task
Generate a SQL query to answer the following question:
`How many episode numbers were directed by Steven DePaul and titled "Sudden Flight"?`

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

CREATE TABLE "table1_26200084_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episode numbers were directed by Steven DePaul and titled "Sudden Flight"?`:
```sql
                SELECT COUNT("num") FROM "table1_26200084_1" WHERE "directed_by"='Steven DePaul' AND "title"='\"Sudden Flight\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the ranking of episode #19?`

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

CREATE TABLE "table1_26200084_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ranking of episode #19?`:
```sql
                SELECT "rank_week" FROM "table1_26200084_1" WHERE "num"=19;
```
## Task
Generate a SQL query to answer the following question:
`What was the production code of the episode ranked 28?`

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

CREATE TABLE "table1_26200084_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code of the episode ranked 28?`:
```sql
                SELECT "production_code" FROM "table1_26200084_1" WHERE "rank_week"='28';
```
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode directed by David Mamet?`

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

CREATE TABLE "table1_26200084_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode directed by David Mamet?`:
```sql
                SELECT "title" FROM "table1_26200084_1" WHERE "directed_by"='David Mamet';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for the episode that had 18.07 million viewers? `

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

CREATE TABLE "table1_26198709_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" real,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for the episode that had 18.07 million viewers? `:
```sql
                SELECT "production_code" FROM "table1_26198709_1" WHERE "u_s_viewers_million"='18.07';
```
## Task
Generate a SQL query to answer the following question:
`What is the weeks rank for the episode with the production code 1alf05? `

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

CREATE TABLE "table1_26198709_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" real,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weeks rank for the episode with the production code 1alf05? `:
```sql
                SELECT MAX("rank_week") FROM "table1_26198709_1" WHERE "production_code"='1ALF05';
```
## Task
Generate a SQL query to answer the following question:
`How many air dates does the episode with 15.50 million viewers have? `

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

CREATE TABLE "table1_26198709_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" real,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many air dates does the episode with 15.50 million viewers have? `:
```sql
                SELECT COUNT("original_air_date") FROM "table1_26198709_1" WHERE "u_s_viewers_million"='15.50';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with 18.07 million viewers? `

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

CREATE TABLE "table1_26198709_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" real,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with 18.07 million viewers? `:
```sql
                SELECT "written_by" FROM "table1_26198709_1" WHERE "u_s_viewers_million"='18.07';
```
## Task
Generate a SQL query to answer the following question:
`How many points were scored against the Toronto Rebels?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were scored against the Toronto Rebels?`:
```sql
                SELECT MAX("points_against") FROM "standings" WHERE "club"='Toronto Rebels';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Toronto Downtown Dingos score?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Toronto Downtown Dingos score?`:
```sql
                SELECT MIN("points_for") FROM "standings" WHERE "club"='Toronto Downtown Dingos';
```
## Task
Generate a SQL query to answer the following question:
`How many losses does Toronto Downtown Dingos have?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses does Toronto Downtown Dingos have?`:
```sql
                SELECT "losses" FROM "standings" WHERE "club"='Toronto Downtown Dingos';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage listed for the team who scored 63 points?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage listed for the team who scored 63 points?`:
```sql
                SELECT "percentage" FROM "standings" WHERE "points_for"=63;
```
## Task
Generate a SQL query to answer the following question:
`How many losses does Central Blues have?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses does Central Blues have?`:
```sql
                SELECT MAX("losses") FROM "standings" WHERE "club"='Central Blues';
```
## Task
Generate a SQL query to answer the following question:
`if the estimated exposure ( mrem )/hr* is 0.28, what is the specimen weight/size?`

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

CREATE TABLE "notes" (
  "specimen_weight_size" text,
  "calculated_activity_bq" real,
  "calculated_activity_ci" text,
  "estimated_activity_gr_api" text,
  "estimated_exposure_m_rem_hr" text
);
### SQL
Given the database schema, here is the SQL query that answers `if the estimated exposure ( mrem )/hr* is 0.28, what is the specimen weight/size?`:
```sql
                SELECT COUNT("specimen_weight_size") FROM "notes" WHERE "estimated_exposure_m_rem_hr"='0.28';
```
## Task
Generate a SQL query to answer the following question:
`If the specimen weight /size is 1000 g / 8.79 cm, what is the estimated exposure ( mrem )/hr*?`

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

CREATE TABLE "notes" (
  "specimen_weight_size" text,
  "calculated_activity_bq" real,
  "calculated_activity_ci" text,
  "estimated_activity_gr_api" text,
  "estimated_exposure_m_rem_hr" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the specimen weight /size is 1000 g / 8.79 cm, what is the estimated exposure ( mrem )/hr*?`:
```sql
                SELECT "estimated_exposure_m_rem_hr" FROM "notes" WHERE "specimen_weight_size"='1000 g / 8.79 cm';
```
## Task
Generate a SQL query to answer the following question:
`If the calculated activity (CI) is  4.96×10 −11, what is the specimen weight/size?`

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

CREATE TABLE "notes" (
  "specimen_weight_size" text,
  "calculated_activity_bq" real,
  "calculated_activity_ci" text,
  "estimated_activity_gr_api" text,
  "estimated_exposure_m_rem_hr" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the calculated activity (CI) is  4.96×10 −11, what is the specimen weight/size?`:
```sql
                SELECT "specimen_weight_size" FROM "notes" WHERE "calculated_activity_ci"='4.96×10 −11';
```
## Task
Generate a SQL query to answer the following question:
`If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?`

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

CREATE TABLE "notes" (
  "specimen_weight_size" text,
  "calculated_activity_bq" real,
  "calculated_activity_ci" text,
  "estimated_activity_gr_api" text,
  "estimated_exposure_m_rem_hr" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?`:
```sql
                SELECT COUNT("calculated_activity_bq") FROM "notes" WHERE "specimen_weight_size"='1000 g / 8.79 cm';
```
## Task
Generate a SQL query to answer the following question:
`If the new points were 5760, what is the RK?`

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

CREATE TABLE "men_s_singles" (
  "sd" real,
  "rk" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the new points were 5760, what is the RK?`:
```sql
                SELECT "rk" FROM "men_s_singles" WHERE "new_points"=5760;
```
## Task
Generate a SQL query to answer the following question:
`How many times is player Stanislas Wawrinka on the list?`

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

CREATE TABLE "men_s_singles" (
  "sd" real,
  "rk" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is player Stanislas Wawrinka on the list?`:
```sql
                SELECT COUNT("points_defending") FROM "men_s_singles" WHERE "player"='Stanislas Wawrinka';
```
## Task
Generate a SQL query to answer the following question:
`If the points won were 90 and the points defending were 45, what are the new points?`

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

CREATE TABLE "men_s_singles" (
  "sd" real,
  "rk" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the points won were 90 and the points defending were 45, what are the new points?`:
```sql
                SELECT "new_points" FROM "men_s_singles" WHERE "points_defending"=45 AND "points_won"=90;
```
## Task
Generate a SQL query to answer the following question:
`how many time was points 6675?`

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

CREATE TABLE "women_s_singles" (
  "sd" real,
  "rk" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many time was points 6675?`:
```sql
                SELECT COUNT("points_won") FROM "women_s_singles" WHERE "points"=6675;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest points won from player victoria azarenka?`

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

CREATE TABLE "women_s_singles" (
  "sd" real,
  "rk" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest points won from player victoria azarenka?`:
```sql
                SELECT MIN("points_won") FROM "women_s_singles" WHERE "player"='Victoria Azarenka';
```
## Task
Generate a SQL query to answer the following question:
`What is the status when sd is 15?`

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

CREATE TABLE "women_s_singles" (
  "sd" real,
  "rk" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status when sd is 15?`:
```sql
                SELECT "status" FROM "women_s_singles" WHERE "sd"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest sd when the status is second round lost to iveta benešová?`

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

CREATE TABLE "women_s_singles" (
  "sd" real,
  "rk" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest sd when the status is second round lost to iveta benešová?`:
```sql
                SELECT MAX("sd") FROM "women_s_singles" WHERE "status"='Second round lost to Iveta Benešová';
```
## Task
Generate a SQL query to answer the following question:
`How many clubs were founded in the westfalenstadion stadium?`

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

CREATE TABLE "table1_26218124_1" (
  "name" text,
  "original_club" text,
  "stadium" text,
  "city" text,
  "country" text,
  "sport" text,
  "founded" real,
  "reason_for_foundation_with_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs were founded in the westfalenstadion stadium?`:
```sql
                SELECT COUNT("founded") FROM "table1_26218124_1" WHERE "stadium"='Westfalenstadion';
```
## Task
Generate a SQL query to answer the following question:
`Which club was originally named hapoel katamon jerusalem f.c.?`

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

CREATE TABLE "table1_26218124_1" (
  "name" text,
  "original_club" text,
  "stadium" text,
  "city" text,
  "country" text,
  "sport" text,
  "founded" real,
  "reason_for_foundation_with_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club was originally named hapoel katamon jerusalem f.c.?`:
```sql
                SELECT "original_club" FROM "table1_26218124_1" WHERE "name"='Hapoel Katamon Jerusalem F.C.';
```
## Task
Generate a SQL query to answer the following question:
`How many clubs were founded in belo horizonte?`

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

CREATE TABLE "table1_26218124_1" (
  "name" text,
  "original_club" text,
  "stadium" text,
  "city" text,
  "country" text,
  "sport" text,
  "founded" real,
  "reason_for_foundation_with_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs were founded in belo horizonte?`:
```sql
                SELECT COUNT("founded") FROM "table1_26218124_1" WHERE "city"='Belo Horizonte';
```
## Task
Generate a SQL query to answer the following question:
`Which club was originally named the newcastle falcons?`

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

CREATE TABLE "table1_26218124_1" (
  "name" text,
  "original_club" text,
  "stadium" text,
  "city" text,
  "country" text,
  "sport" text,
  "founded" real,
  "reason_for_foundation_with_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club was originally named the newcastle falcons?`:
```sql
                SELECT "original_club" FROM "table1_26218124_1" WHERE "name"='Newcastle Falcons';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of f/laps?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of f/laps?`:
```sql
                SELECT MIN("f_laps") FROM "career_summary";
```
## Task
Generate a SQL query to answer the following question:
`How many seasons have points totals of N/A?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons have points totals of N/A?`:
```sql
                SELECT COUNT("season") FROM "career_summary" WHERE "points"='N/A';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of wins?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of wins?`:
```sql
                SELECT MAX("wins") FROM "career_summary";
```
## Task
Generate a SQL query to answer the following question:
`How many production codes does "number one" have?`

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

CREATE TABLE "table1_2623498_2" (
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many production codes does "number one" have?`:
```sql
                SELECT MAX("prod_code") FROM "table1_2623498_2" WHERE "title"='\"Number One\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote "the new Ron"?`

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

CREATE TABLE "table1_2623498_2" (
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote "the new Ron"?`:
```sql
                SELECT "written_by" FROM "table1_2623498_2" WHERE "title"='\"The New Ron\"';
```
## Task
Generate a SQL query to answer the following question:
`How many different starts had an average finish of 17.9?`

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

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

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the wins of 1983?`:
```sql
                SELECT "wins" FROM "nascar_sprint_cup_series" WHERE "year"=1983;
```
## Task
Generate a SQL query to answer the following question:
`Which episodes in season 3 were written by Mark Drop?`

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

CREATE TABLE "table1_2623498_4" (
  "episode_num" text,
  "season_episode_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episodes in season 3 were written by Mark Drop?`:
```sql
                SELECT "season_episode_num" FROM "table1_2623498_4" WHERE "written_by"='Mark Drop';
```