cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the director of the film with the title лепа села лепо горе?`

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

CREATE TABLE "fr_yugoslavia" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the film with the title лепа села лепо горе?`:
```sql
                SELECT "director" FROM "fr_yugoslavia" WHERE "original_title"='Лепа села лепо горе';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers in millions watched the episode with the production code 6acx16?`

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

CREATE TABLE "table1_22261877_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers in millions watched the episode with the production code 6acx16?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_22261877_1" WHERE "production_code"='6ACX16';
```
## Task
Generate a SQL query to answer the following question:
`What is the air date of the episode with the production code 6acx19? `

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

CREATE TABLE "table1_22261877_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air date of the episode with the production code 6acx19? `:
```sql
                SELECT "original_air_date" FROM "table1_22261877_1" WHERE "production_code"='6ACX19';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date for the production code of 1.12?`

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

CREATE TABLE "table1_2226817_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for the production code of 1.12?`:
```sql
                SELECT "original_air_date" FROM "table1_2226817_2" WHERE "production_code"='1.12';
```
## Task
Generate a SQL query to answer the following question:
`How many number of series have a production code of 1.11?`

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

CREATE TABLE "table1_2226817_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of series have a production code of 1.11?`:
```sql
                SELECT "no_in_series" FROM "table1_2226817_2" WHERE "production_code"='1.11';
```
## Task
Generate a SQL query to answer the following question:
`How many number of series have the production code of 1.11?`

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

CREATE TABLE "table1_2226817_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of series have the production code of 1.11?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_2226817_2" WHERE "production_code"='1.11';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote when the original airdate is April 5, 1987?`

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

CREATE TABLE "table1_2226817_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote when the original airdate is April 5, 1987?`:
```sql
                SELECT "written_by" FROM "table1_2226817_2" WHERE "original_air_date"='April 5, 1987';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the title "peggy sue got work"?`

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

CREATE TABLE "table1_2226817_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the title "peggy sue got work"?`:
```sql
                SELECT "directed_by" FROM "table1_2226817_2" WHERE "title"='\"Peggy Sue Got Work\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed when the production code is 1.02?`

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

CREATE TABLE "table1_2226817_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed when the production code is 1.02?`:
```sql
                SELECT "directed_by" FROM "table1_2226817_2" WHERE "production_code"='1.02';
```
## Task
Generate a SQL query to answer the following question:
`Name the production code for november 27, 1988`

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

CREATE TABLE "table1_2226817_4" (
  "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 `Name the production code for november 27, 1988`:
```sql
                SELECT "production_code" FROM "table1_2226817_4" WHERE "original_air_date"='November 27, 1988';
```
## Task
Generate a SQL query to answer the following question:
`Name the original air date for 3.04 production code`

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

CREATE TABLE "table1_2226817_4" (
  "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 `Name the original air date for 3.04 production code`:
```sql
                SELECT "original_air_date" FROM "table1_2226817_4" WHERE "production_code"='3.04';
```
## Task
Generate a SQL query to answer the following question:
`Name who wrote the episode that aired april 9, 1989`

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

CREATE TABLE "table1_2226817_4" (
  "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 `Name who wrote the episode that aired april 9, 1989`:
```sql
                SELECT "written_by" FROM "table1_2226817_4" WHERE "original_air_date"='April 9, 1989';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of number in season for 3.09`

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

CREATE TABLE "table1_2226817_4" (
  "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 `Name the number of number in season for 3.09`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_2226817_4" WHERE "production_code"='3.09';
```
## Task
Generate a SQL query to answer the following question:
`when was the episode premiere if the production code is 11.19? `

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

CREATE TABLE "table1_2226817_12" (
  "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 `when was the episode premiere if the production code is 11.19? `:
```sql
                SELECT COUNT("original_air_date") FROM "table1_2226817_12" WHERE "production_code"='11.19';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the episode whose premiere was in march 2, 1997?`

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

CREATE TABLE "table1_2226817_12" (
  "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 is the name of the episode whose premiere was in march 2, 1997?`:
```sql
                SELECT "title" FROM "table1_2226817_12" WHERE "original_air_date"='March 2, 1997';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the episode when the production code is 11.01?`

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

CREATE TABLE "table1_2226817_12" (
  "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 is the name of the episode when the production code is 11.01?`:
```sql
                SELECT "title" FROM "table1_2226817_12" WHERE "production_code"='11.01';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the episode if the production code is 11.12?`

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

CREATE TABLE "table1_2226817_12" (
  "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 is the name of the episode if the production code is 11.12?`:
```sql
                SELECT "title" FROM "table1_2226817_12" WHERE "production_code"='11.12';
```
## Task
Generate a SQL query to answer the following question:
`how many episodes has been directed by Mark K. Samuels ?`

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

CREATE TABLE "table1_2226817_12" (
  "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 `how many episodes has been directed by Mark K. Samuels ?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_2226817_12" WHERE "directed_by"='Mark K. Samuels';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of the episode in series that is called "breaking up is easy to do (part 1)"?`

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

CREATE TABLE "table1_2226817_12" (
  "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 is the number of the episode in series that is called "breaking up is easy to do (part 1)"?`:
```sql
                SELECT "no_in_series" FROM "table1_2226817_12" WHERE "title"='\"Breaking Up Is Easy to Do (Part 1)\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the title "the razor's edge"?`

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

CREATE TABLE "table1_2226817_3" (
  "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 the title "the razor's edge"?`:
```sql
                SELECT "directed_by" FROM "table1_2226817_3" WHERE "title"='\"The Razor''s Edge\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?`

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

CREATE TABLE "table1_2226817_3" (
  "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 what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?`:
```sql
                SELECT "directed_by" FROM "table1_2226817_3" WHERE "written_by"='Michael G. Moye & Ron Leavitt & J. Stanford Parker';
```
## Task
Generate a SQL query to answer the following question:
`What are all the production codes of episodes written by Michael G. Moye?`

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

CREATE TABLE "table1_2226817_8" (
  "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 are all the production codes of episodes written by Michael G. Moye?`:
```sql
                SELECT "production_code" FROM "table1_2226817_8" WHERE "written_by"='Michael G. Moye';
```
## Task
Generate a SQL query to answer the following question:
`Who is the writer of episode 13?`

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

CREATE TABLE "table1_2226817_8" (
  "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 is the writer of episode 13?`:
```sql
                SELECT COUNT("written_by") FROM "table1_2226817_8" WHERE "no_in_season"=13;
```
## Task
Generate a SQL query to answer the following question:
`Which series number has the production code 7.07?`

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

CREATE TABLE "table1_2226817_8" (
  "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 series number has the production code 7.07?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_2226817_8" WHERE "production_code"='7.07';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons have the production code 7.01 for an episode? `

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

CREATE TABLE "table1_2226817_8" (
  "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 `How many seasons have the production code 7.01 for an episode? `:
```sql
                SELECT MAX("no_in_season") FROM "table1_2226817_8" WHERE "production_code"='7.01';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes in the series are from season 12?`

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

CREATE TABLE "table1_2226817_8" (
  "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 `How many episodes in the series are from season 12?`:
```sql
                SELECT "no_in_series" FROM "table1_2226817_8" WHERE "no_in_season"=12;
```
## Task
Generate a SQL query to answer the following question:
`How many seasons had episode 158?`

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

CREATE TABLE "table1_2226817_9" (
  "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 `How many seasons had episode 158?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_2226817_9" WHERE "no_in_series"=158;
```
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode directed by Stacie Lipp?`

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

CREATE TABLE "table1_2226817_9" (
  "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 is the production code of the episode directed by Stacie Lipp?`:
```sql
                SELECT "production_code" FROM "table1_2226817_9" WHERE "written_by"='Stacie Lipp';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of episode 165?`

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

CREATE TABLE "table1_2226817_9" (
  "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 is the name of episode 165?`:
```sql
                SELECT "title" FROM "table1_2226817_9" WHERE "no_in_series"=165;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have the production code 8.04`

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

CREATE TABLE "table1_2226817_9" (
  "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 `How many episodes have the production code 8.04`:
```sql
                SELECT COUNT("directed_by") FROM "table1_2226817_9" WHERE "production_code"='8.04';
```
## Task
Generate a SQL query to answer the following question:
`What is the Alpha 2 code for the area also known as TCA?`

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

CREATE TABLE "officially_assigned_code_elements" (
  "english_short_name_upper_lower_case" text,
  "alpha_2_code" text,
  "alpha_3_code" text,
  "numeric_code" real,
  "iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Alpha 2 code for the area also known as TCA?`:
```sql
                SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='TCA';
```
## Task
Generate a SQL query to answer the following question:
`What is the Alpha 3 code for the area also known as FO?`

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

CREATE TABLE "officially_assigned_code_elements" (
  "english_short_name_upper_lower_case" text,
  "alpha_2_code" text,
  "alpha_3_code" text,
  "numeric_code" real,
  "iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Alpha 3 code for the area also known as FO?`:
```sql
                SELECT "alpha_3_code" FROM "officially_assigned_code_elements" WHERE "alpha_2_code"='FO';
```
## Task
Generate a SQL query to answer the following question:
`What is the alpha 2  code for the area also known as NZL?`

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

CREATE TABLE "officially_assigned_code_elements" (
  "english_short_name_upper_lower_case" text,
  "alpha_2_code" text,
  "alpha_3_code" text,
  "numeric_code" real,
  "iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the alpha 2  code for the area also known as NZL?`:
```sql
                SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='NZL';
```
## Task
Generate a SQL query to answer the following question:
`What is the ISO for South Sudan?`

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

CREATE TABLE "officially_assigned_code_elements" (
  "english_short_name_upper_lower_case" text,
  "alpha_2_code" text,
  "alpha_3_code" text,
  "numeric_code" real,
  "iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ISO for South Sudan?`:
```sql
                SELECT "iso_3166_2_codes" FROM "officially_assigned_code_elements" WHERE "english_short_name_upper_lower_case"='South Sudan';
```
## Task
Generate a SQL query to answer the following question:
`What is the Alpha 2 code for Papua New Guinea?`

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

CREATE TABLE "officially_assigned_code_elements" (
  "english_short_name_upper_lower_case" text,
  "alpha_2_code" text,
  "alpha_3_code" text,
  "numeric_code" real,
  "iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Alpha 2 code for Papua New Guinea?`:
```sql
                SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "english_short_name_upper_lower_case"='Papua New Guinea';
```
## Task
Generate a SQL query to answer the following question:
`What is the number reference for LIE?`

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

CREATE TABLE "officially_assigned_code_elements" (
  "english_short_name_upper_lower_case" text,
  "alpha_2_code" text,
  "alpha_3_code" text,
  "numeric_code" real,
  "iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number reference for LIE?`:
```sql
                SELECT "numeric_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='LIE';
```
## Task
Generate a SQL query to answer the following question:
`How many launch dates are there for digital transmission?`

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

CREATE TABLE "free_to_air_television" (
  "ch" text,
  "channel" text,
  "channel_content" text,
  "transmission" text,
  "format" text,
  "launch_date" text,
  "licence" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many launch dates are there for digital transmission?`:
```sql
                SELECT COUNT("launch_date") FROM "free_to_air_television" WHERE "transmission"='Digital';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the title with production code 7acx14?`

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

CREATE TABLE "table1_22269839_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the title with production code 7acx14?`:
```sql
                SELECT "written_by" FROM "table1_22269839_1" WHERE "production_code"='7ACX14';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the title written by cherry chevapravatdumrong?`

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

CREATE TABLE "table1_22269839_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the title written by cherry chevapravatdumrong?`:
```sql
                SELECT "directed_by" FROM "table1_22269839_1" WHERE "written_by"='Cherry Chevapravatdumrong';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the title with the production code is 7acx08?`

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

CREATE TABLE "table1_22269839_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the title with the production code is 7acx08?`:
```sql
                SELECT "written_by" FROM "table1_22269839_1" WHERE "production_code"='7ACX08';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode written by patrick meighan?`

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

CREATE TABLE "table1_22269839_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode written by patrick meighan?`:
```sql
                SELECT "directed_by" FROM "table1_22269839_1" WHERE "written_by"='Patrick Meighan';
```
## Task
Generate a SQL query to answer the following question:
`When is every date that control site condition or owner is machine shop on Martin Dr.?`

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

CREATE TABLE "wisconsin" (
  "code_location" text,
  "missile_type" text,
  "defense_area" text,
  "dates" text,
  "control_site_condition_owner" text,
  "launch_site_condition_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is every date that control site condition or owner is machine shop on Martin Dr.?`:
```sql
                SELECT "dates" FROM "wisconsin" WHERE "control_site_condition_owner"='machine shop on Martin Dr.';
```
## Task
Generate a SQL query to answer the following question:
`What is every missile type with a code and location of M-20 Harbor Drive?`

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

CREATE TABLE "wisconsin" (
  "code_location" text,
  "missile_type" text,
  "defense_area" text,
  "dates" text,
  "control_site_condition_owner" text,
  "launch_site_condition_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every missile type with a code and location of M-20 Harbor Drive?`:
```sql
                SELECT "missile_type" FROM "wisconsin" WHERE "code_location"='M-20 Harbor Drive';
```
## Task
Generate a SQL query to answer the following question:
`What is every code and location where the launch site condition and owner is obliterated?`

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

CREATE TABLE "wisconsin" (
  "code_location" text,
  "missile_type" text,
  "defense_area" text,
  "dates" text,
  "control_site_condition_owner" text,
  "launch_site_condition_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every code and location where the launch site condition and owner is obliterated?`:
```sql
                SELECT "code_location" FROM "wisconsin" WHERE "launch_site_condition_owner"='Obliterated';
```
## Task
Generate a SQL query to answer the following question:
`What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?`

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

CREATE TABLE "wisconsin" (
  "code_location" text,
  "missile_type" text,
  "defense_area" text,
  "dates" text,
  "control_site_condition_owner" text,
  "launch_site_condition_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?`:
```sql
                SELECT "control_site_condition_owner" FROM "wisconsin" WHERE "launch_site_condition_owner"='lakefront office buildings';
```
## Task
Generate a SQL query to answer the following question:
`Which team had an outgoing manager of Behtash Fariba?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had an outgoing manager of Behtash Fariba?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Behtash Fariba';
```
## Task
Generate a SQL query to answer the following question:
`Which team had a manager who was replaced by Faraz Kamalvand?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a manager who was replaced by Faraz Kamalvand?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Faraz Kamalvand';
```
## Task
Generate a SQL query to answer the following question:
`Which outgoing manager was replaced by Jafar Fatahi?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which outgoing manager was replaced by Jafar Fatahi?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='Jafar Fatahi';
```
## Task
Generate a SQL query to answer the following question:
`Which team had a manager replaced by Ebrahim Talebi?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a manager replaced by Ebrahim Talebi?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Ebrahim Talebi';
```
## Task
Generate a SQL query to answer the following question:
`What was the date in which Behtash Fariba left his team?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date in which Behtash Fariba left his team?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Behtash Fariba';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of leaving the team for the manager of Gostaresh Foolad?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of leaving the team for the manager of Gostaresh Foolad?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Gostaresh Foolad';
```
## Task
Generate a SQL query to answer the following question:
`How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009?`

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

CREATE TABLE "comparison_of_county_community_colleges_" (
  "college" text,
  "2007_headcount" real,
  "2007_2008_credit_hours" real,
  "county_population_18_yrs" real,
  "penetration_in_terms_of_enrollment_per_1000_adults" real,
  "in_county_tuition_per_credit_hour_fall_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009?`:
```sql
                SELECT "in_county_tuition_per_credit_hour_fall_2009" FROM "comparison_of_county_community_colleges_" WHERE "college"='Gloucester';
```
## Task
Generate a SQL query to answer the following question:
`How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?`

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

CREATE TABLE "comparison_of_county_community_colleges_" (
  "college" text,
  "2007_headcount" real,
  "2007_2008_credit_hours" real,
  "county_population_18_yrs" real,
  "penetration_in_terms_of_enrollment_per_1000_adults" real,
  "in_county_tuition_per_credit_hour_fall_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?`:
```sql
                SELECT "in_county_tuition_per_credit_hour_fall_2009" FROM "comparison_of_county_community_colleges_" WHERE "college"='Mercer';
```
## Task
Generate a SQL query to answer the following question:
`What is the biggest number for county population 18 years+?`

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

CREATE TABLE "comparison_of_county_community_colleges_" (
  "college" text,
  "2007_headcount" real,
  "2007_2008_credit_hours" real,
  "county_population_18_yrs" real,
  "penetration_in_terms_of_enrollment_per_1000_adults" real,
  "in_county_tuition_per_credit_hour_fall_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggest number for county population 18 years+?`:
```sql
                SELECT MAX("county_population_18_yrs") FROM "comparison_of_county_community_colleges_";
```
## Task
Generate a SQL query to answer the following question:
`Who was the replacement manager for the vacancy of 12 Dec 2009?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the replacement manager for the vacancy of 12 Dec 2009?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='12 Dec 2009';
```
## Task
Generate a SQL query to answer the following question:
`What team did Alireza mansourian leave?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did Alireza mansourian leave?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Alireza Mansourian';
```
## Task
Generate a SQL query to answer the following question:
`Why did Majid bagherinia leave?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Why did Majid bagherinia leave?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='Majid Bagherinia';
```
## Task
Generate a SQL query to answer the following question:
`What team did a manager leave on 12 Dec 2009`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did a manager leave on 12 Dec 2009`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "date_of_vacancy"='12 Dec 2009';
```
## Task
Generate a SQL query to answer the following question:
`How many teams did Farhad Kazemi leave?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams did Farhad Kazemi leave?`:
```sql
                SELECT COUNT("team") FROM "managerial_changes" WHERE "outgoing_manager"='Farhad Kazemi';
```
## Task
Generate a SQL query to answer the following question:
`If the school is Rend Lake College, what is the team name?`

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

CREATE TABLE "current_schools_in_the_grac_and_general_" (
  "school" text,
  "location" text,
  "team_name" text,
  "colors" text,
  "varsity_teams" real,
  "njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the school is Rend Lake College, what is the team name?`:
```sql
                SELECT "team_name" FROM "current_schools_in_the_grac_and_general_" WHERE "school"='Rend Lake College';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum possible for the NJCAA championships?`

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

CREATE TABLE "current_schools_in_the_grac_and_general_" (
  "school" text,
  "location" text,
  "team_name" text,
  "colors" text,
  "varsity_teams" real,
  "njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum possible for the NJCAA championships?`:
```sql
                SELECT MIN("njcaa_championships") FROM "current_schools_in_the_grac_and_general_";
```
## Task
Generate a SQL query to answer the following question:
`If the varsity team is 6, what is the location?`

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

CREATE TABLE "current_schools_in_the_grac_and_general_" (
  "school" text,
  "location" text,
  "team_name" text,
  "colors" text,
  "varsity_teams" real,
  "njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the varsity team is 6, what is the location?`:
```sql
                SELECT "location" FROM "current_schools_in_the_grac_and_general_" WHERE "varsity_teams"=6;
```
## Task
Generate a SQL query to answer the following question:
`If the school is John A. Logan College, what are the colors?`

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

CREATE TABLE "current_schools_in_the_grac_and_general_" (
  "school" text,
  "location" text,
  "team_name" text,
  "colors" text,
  "varsity_teams" real,
  "njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the school is John A. Logan College, what are the colors?`:
```sql
                SELECT "colors" FROM "current_schools_in_the_grac_and_general_" WHERE "school"='John A. Logan College';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum possible NJCAA championships?`

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

CREATE TABLE "current_schools_in_the_grac_and_general_" (
  "school" text,
  "location" text,
  "team_name" text,
  "colors" text,
  "varsity_teams" real,
  "njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum possible NJCAA championships?`:
```sql
                SELECT MIN("njcaa_championships") FROM "current_schools_in_the_grac_and_general_";
```
## Task
Generate a SQL query to answer the following question:
`On how many different dates was the race at the Silverstone circuit?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_drivers" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many different dates was the race at the Silverstone circuit?`:
```sql
                SELECT COUNT("date") FROM "calendar" WHERE "circuit"='Silverstone';
```
## Task
Generate a SQL query to answer the following question:
`When was the circuit Donington Park?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_drivers" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the circuit Donington Park?`:
```sql
                SELECT "date" FROM "calendar" WHERE "circuit"='Donington Park';
```
## Task
Generate a SQL query to answer the following question:
`What is the weight is the name is Stuart Craig?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight is the name is Stuart Craig?`:
```sql
                SELECT "weight" FROM "roster" WHERE "name"='Stuart Craig';
```
## Task
Generate a SQL query to answer the following question:
`If the name is Timo Higgins, what is the total date of birth amount?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the name is Timo Higgins, what is the total date of birth amount?`:
```sql
                SELECT COUNT("date_of_birth") FROM "roster" WHERE "name"='Timo Higgins';
```
## Task
Generate a SQL query to answer the following question:
`If the height is 181cm, what was the position?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the height is 181cm, what was the position?`:
```sql
                SELECT "position" FROM "roster" WHERE "height"='181cm';
```
## Task
Generate a SQL query to answer the following question:
`If the home team is UMBC and the weight is 78kg, what the the name total number?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the home team is UMBC and the weight is 78kg, what the the name total number?`:
```sql
                SELECT COUNT("name") FROM "roster" WHERE "weight"='78kg' AND "home_team"='UMBC';
```
## Task
Generate a SQL query to answer the following question:
`If the height is 185cm and the home team is Heaton Mersey, what is the date of birth?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the height is 185cm and the home team is Heaton Mersey, what is the date of birth?`:
```sql
                SELECT "date_of_birth" FROM "roster" WHERE "height"='185cm' AND "home_team"='Heaton Mersey';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers tuned in for season 2?`

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

CREATE TABLE "table1_22347090_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers tuned in for season 2?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_22347090_4" WHERE "no_in_season"=2;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that has 3x6752 listed as the production code?`

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

CREATE TABLE "table1_22347090_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that has 3x6752 listed as the production code?`:
```sql
                SELECT "directed_by" FROM "table1_22347090_4" WHERE "production_code"='3X6752';
```