cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the score in the final played with Fred McNair as partner?`

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

CREATE TABLE "mixed_doubles_13_4_titles_9_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the final played with Fred McNair as partner?`:
```sql
                SELECT "score_in_the_final" FROM "mixed_doubles_13_4_titles_9_runner_ups" WHERE "partner"='Fred McNair';
```
## Task
Generate a SQL query to answer the following question:
`What was the orginal air date for episodes with production code 2acx12?`

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

CREATE TABLE "episodes" (
  "num_season_num" text,
  "no_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 `What was the orginal air date for episodes with production code 2acx12?`:
```sql
                SELECT "original_air_date" FROM "episodes" WHERE "prod_code"='2ACX12';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with production code 2acx12?`

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

CREATE TABLE "episodes" (
  "num_season_num" text,
  "no_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 `Who wrote the episode with production code 2acx12?`:
```sql
                SELECT "written_by" FROM "episodes" WHERE "prod_code"='2ACX12';
```
## Task
Generate a SQL query to answer the following question:
`What numbered episode was directed by greg colton and written by patrick meighan?`

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

CREATE TABLE "episodes" (
  "num_season_num" text,
  "no_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 `What numbered episode was directed by greg colton and written by patrick meighan?`:
```sql
                SELECT "no_episode_num" FROM "episodes" WHERE "directed_by"='Greg Colton' AND "written_by"='Patrick Meighan';
```
## Task
Generate a SQL query to answer the following question:
`Who directed # (season #) is 1 ( 2 )?`

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

CREATE TABLE "episodes" (
  "num_season_num" text,
  "no_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 `Who directed # (season #) is 1 ( 2 )?`:
```sql
                SELECT "directed_by" FROM "episodes" WHERE "num_season_num"='1 ( 2 )';
```
## Task
Generate a SQL query to answer the following question:
`Who is everyone on the men's doubles when men's singles is Ma Wenge?`

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

CREATE TABLE "senior_events" (
  "season" text,
  "host" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is everyone on the men's doubles when men's singles is Ma Wenge?`:
```sql
                SELECT "mens_doubles" FROM "senior_events" WHERE "mens_singles"='Ma Wenge';
```
## Task
Generate a SQL query to answer the following question:
`Who are all men's doubles when men's singles is Jean-Michel Saive?`

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

CREATE TABLE "senior_events" (
  "season" text,
  "host" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all men's doubles when men's singles is Jean-Michel Saive?`:
```sql
                SELECT "mens_doubles" FROM "senior_events" WHERE "mens_singles"='Jean-Michel Saive';
```
## Task
Generate a SQL query to answer the following question:
`Who are all hosts when men's singles is Ma Wenge?`

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

CREATE TABLE "senior_events" (
  "season" text,
  "host" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all hosts when men's singles is Ma Wenge?`:
```sql
                SELECT "host" FROM "senior_events" WHERE "mens_singles"='Ma Wenge';
```
## Task
Generate a SQL query to answer the following question:
`How many people are women's singles in the season of 2000/01?`

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

CREATE TABLE "senior_events" (
  "season" text,
  "host" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people are women's singles in the season of 2000/01?`:
```sql
                SELECT COUNT("womens_singles") FROM "senior_events" WHERE "season"='2000/01';
```
## Task
Generate a SQL query to answer the following question:
`Name the winners of the mens doubles in the season of 1963/64.`

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

CREATE TABLE "senior_events" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winners of the mens doubles in the season of 1963/64.`:
```sql
                SELECT "mens_doubles" FROM "senior_events" WHERE "season"='1963/64';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director of the episode with series number 116?`

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

CREATE TABLE "table1_28212888_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the episode with series number 116?`:
```sql
                SELECT "directed_by" FROM "table1_28212888_2" WHERE "no_in_series"=116;
```
## Task
Generate a SQL query to answer the following question:
`Who's the writer of the episode titled "Safe Haven"?`

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

CREATE TABLE "table1_28212888_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the writer of the episode titled "Safe Haven"?`:
```sql
                SELECT "written_by" FROM "table1_28212888_2" WHERE "title"='\"Safe Haven\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode seen by 12.85 millions of people in the US?`

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

CREATE TABLE "table1_28212888_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode seen by 12.85 millions of people in the US?`:
```sql
                SELECT "title" FROM "table1_28212888_2" WHERE "u_s_viewers_millions"='12.85';
```
## Task
Generate a SQL query to answer the following question:
`How many different people wrote the episode titled "Reflection of Desire"?`

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

CREATE TABLE "table1_28212888_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different people wrote the episode titled "Reflection of Desire"?`:
```sql
                SELECT COUNT("written_by") FROM "table1_28212888_2" WHERE "title"='\"Reflection of Desire\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had 11.86 million US viewers?`

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

CREATE TABLE "season_3_2004" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had 11.86 million US viewers?`:
```sql
                SELECT COUNT("no_in_series") FROM "season_3_2004" WHERE "u_s_viewers_millions"='11.86';
```
## Task
Generate a SQL query to answer the following question:
`What is the title(s) of episodes written by aron eli coleite?`

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

CREATE TABLE "season_3_2004" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title(s) of episodes written by aron eli coleite?`:
```sql
                SELECT "title" FROM "season_3_2004" WHERE "written_by"='Aron Eli Coleite';
```
## Task
Generate a SQL query to answer the following question:
`What are the original air date(s) for episodes written by aron eli coleite?`

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

CREATE TABLE "season_3_2004" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the original air date(s) for episodes written by aron eli coleite?`:
```sql
                SELECT "original_air_date" FROM "season_3_2004" WHERE "written_by"='Aron Eli Coleite';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were titled "second chances"?`

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

CREATE TABLE "season_3_2004" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were titled "second chances"?`:
```sql
                SELECT COUNT("u_s_viewers_millions") FROM "season_3_2004" WHERE "title"='\"Second Chances\"';
```
## Task
Generate a SQL query to answer the following question:
`how many producers are responsible for the song 'calling out to marlboro?`

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

CREATE TABLE "discography_original_releases" (
  "year" real,
  "song_s" text,
  "producer_s" text,
  "written_by" text,
  "artist" text,
  "title_label" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many producers are responsible for the song 'calling out to marlboro?`:
```sql
                SELECT COUNT("producer_s") FROM "discography_original_releases" WHERE "song_s"='Calling Out to Marlboro';
```
## Task
Generate a SQL query to answer the following question:
`what was the first year that kid creole and the coconuts recorded with I Too Have Seen The Woods / Sire Records?`

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

CREATE TABLE "discography_original_releases" (
  "year" real,
  "song_s" text,
  "producer_s" text,
  "written_by" text,
  "artist" text,
  "title_label" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the first year that kid creole and the coconuts recorded with I Too Have Seen The Woods / Sire Records?`:
```sql
                SELECT MIN("year") FROM "discography_original_releases" WHERE "artist"='Kid Creole and the Coconuts';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons are there with Formula Holden?`

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

CREATE TABLE "overall_stats" (
  "series" text,
  "seasons" real,
  "races" real,
  "poles" real,
  "wins" real,
  "podiums_non_win" real,
  "point_finishes_non_podium" real,
  "teams" real,
  "total_points" real,
  "championships" real,
  "best_finish_championship" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons are there with Formula Holden?`:
```sql
                SELECT COUNT("seasons") FROM "overall_stats" WHERE "series"='Formula Holden';
```
## Task
Generate a SQL query to answer the following question:
`How many poles are there with 2 races?`

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

CREATE TABLE "overall_stats" (
  "series" text,
  "seasons" real,
  "races" real,
  "poles" real,
  "wins" real,
  "podiums_non_win" real,
  "point_finishes_non_podium" real,
  "teams" real,
  "total_points" real,
  "championships" real,
  "best_finish_championship" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles are there with 2 races?`:
```sql
                SELECT MAX("poles") FROM "overall_stats" WHERE "races"=2;
```
## Task
Generate a SQL query to answer the following question:
`What's the most amount of point finishes for v8supercar?`

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

CREATE TABLE "overall_stats" (
  "series" text,
  "seasons" real,
  "races" real,
  "poles" real,
  "wins" real,
  "podiums_non_win" real,
  "point_finishes_non_podium" real,
  "teams" real,
  "total_points" real,
  "championships" real,
  "best_finish_championship" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most amount of point finishes for v8supercar?`:
```sql
                SELECT MAX("point_finishes_non_podium") FROM "overall_stats" WHERE "series"='V8Supercar';
```
## Task
Generate a SQL query to answer the following question:
`How many people had high rebounds in game 14?`

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

CREATE TABLE "liga_acb" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people had high rebounds in game 14?`:
```sql
                SELECT COUNT("high_rebounds") FROM "liga_acb" WHERE "game"=14;
```
## Task
Generate a SQL query to answer the following question:
`What is every score when the date is January 2?`

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

CREATE TABLE "liga_acb" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every score when the date is January 2?`:
```sql
                SELECT "score" FROM "liga_acb" WHERE "date"='January 2';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of students in attendance for the university of north texas?`

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

CREATE TABLE "division_i" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of students in attendance for the university of north texas?`:
```sql
                SELECT MAX("enrollment") FROM "division_i" WHERE "institution"='University of North Texas';
```
## Task
Generate a SQL query to answer the following question:
`What is the mascot for texas tech university?`

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

CREATE TABLE "division_i" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot for texas tech university?`:
```sql
                SELECT "team_nickname" FROM "division_i" WHERE "institution"='Texas Tech University';
```
## Task
Generate a SQL query to answer the following question:
`What is the total enrollment for private/ disciples of christ?`

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

CREATE TABLE "division_i" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total enrollment for private/ disciples of christ?`:
```sql
                SELECT "enrollment" FROM "division_i" WHERE "affiliation"='Private/ Disciples of Christ';
```
## Task
Generate a SQL query to answer the following question:
`How many mascotts are there for college station, texas`

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

CREATE TABLE "division_i" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many mascotts are there for college station, texas`:
```sql
                SELECT COUNT("team_nickname") FROM "division_i" WHERE "location"='College Station, Texas';
```
## Task
Generate a SQL query to answer the following question:
`List the highest number of students in attendance for the institution that started in 1923.`

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

CREATE TABLE "division_i" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the highest number of students in attendance for the institution that started in 1923.`:
```sql
                SELECT MAX("enrollment") FROM "division_i" WHERE "founded"=1923;
```
## Task
Generate a SQL query to answer the following question:
`How many next in lines had heirs of Archduke Karl?`

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

CREATE TABLE "heirs_to_the_austrian_empire" (
  "emperor" text,
  "heir" text,
  "relationship_to_emperor_and_status" text,
  "became_heir" text,
  "ceased_to_be_heir" text,
  "next_in_line" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many next in lines had heirs of Archduke Karl?`:
```sql
                SELECT COUNT("next_in_line") FROM "heirs_to_the_austrian_empire" WHERE "heir"='Archduke Karl';
```
## Task
Generate a SQL query to answer the following question:
`Which team has a song based on  "wee deoch an doris"?`

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

CREATE TABLE "notes" (
  "club_name" text,
  "name_of_team_song" text,
  "basis_for_team_song" text,
  "first_used_as_team_song" text,
  "writer_composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a song based on  "wee deoch an doris"?`:
```sql
                SELECT "club_name" FROM "notes" WHERE "basis_for_team_song"='\"Wee Deoch an Doris\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the team that has a song writer named larry spokes.`

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

CREATE TABLE "notes" (
  "club_name" text,
  "name_of_team_song" text,
  "basis_for_team_song" text,
  "first_used_as_team_song" text,
  "writer_composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team that has a song writer named larry spokes.`:
```sql
                SELECT "club_name" FROM "notes" WHERE "writer_composer"='Larry Spokes';
```
## Task
Generate a SQL query to answer the following question:
`How man teams have a writer named harry angus?`

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

CREATE TABLE "notes" (
  "club_name" text,
  "name_of_team_song" text,
  "basis_for_team_song" text,
  "first_used_as_team_song" text,
  "writer_composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How man teams have a writer named harry angus?`:
```sql
                SELECT COUNT("name_of_team_song") FROM "notes" WHERE "writer_composer"='Harry Angus';
```
## Task
Generate a SQL query to answer the following question:
`Name the team anthem that was written by quentin eyers and les kaczmarek.`

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

CREATE TABLE "notes" (
  "club_name" text,
  "name_of_team_song" text,
  "basis_for_team_song" text,
  "first_used_as_team_song" text,
  "writer_composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team anthem that was written by quentin eyers and les kaczmarek.`:
```sql
                SELECT "name_of_team_song" FROM "notes" WHERE "writer_composer"='Quentin Eyers and Les Kaczmarek';
```
## Task
Generate a SQL query to answer the following question:
`How many team songs does fremantle have?`

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

CREATE TABLE "notes" (
  "club_name" text,
  "name_of_team_song" text,
  "basis_for_team_song" text,
  "first_used_as_team_song" text,
  "writer_composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many team songs does fremantle have?`:
```sql
                SELECT COUNT("basis_for_team_song") FROM "notes" WHERE "club_name"='Fremantle';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the team song written by ken walther?`

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

CREATE TABLE "notes" (
  "club_name" text,
  "name_of_team_song" text,
  "basis_for_team_song" text,
  "first_used_as_team_song" text,
  "writer_composer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the team song written by ken walther?`:
```sql
                SELECT "basis_for_team_song" FROM "notes" WHERE "writer_composer"='Ken Walther';
```
## Task
Generate a SQL query to answer the following question:
`In how many different years was the team nicknamed Comets founded?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many different years was the team nicknamed Comets founded?`:
```sql
                SELECT COUNT("founded") FROM "division_ii" WHERE "team_nickname"='Comets';
```
## Task
Generate a SQL query to answer the following question:
`What's the nickname of the team with enrollment of 40747?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the nickname of the team with enrollment of 40747?`:
```sql
                SELECT "team_nickname" FROM "division_ii" WHERE "enrollment"=40747;
```
## Task
Generate a SQL query to answer the following question:
`What school is located in Huntsville, Texas?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is located in Huntsville, Texas?`:
```sql
                SELECT "institution" FROM "division_ii" WHERE "location"='Huntsville, Texas';
```
## Task
Generate a SQL query to answer the following question:
`How many students are enrolled in the team nicknamed Comets?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many students are enrolled in the team nicknamed Comets?`:
```sql
                SELECT "enrollment" FROM "division_ii" WHERE "team_nickname"='Comets';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of tenants for russia at the saransk stadium`

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

CREATE TABLE "currently_proposed" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text,
  "tenant" text,
  "opening" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of tenants for russia at the saransk stadium`:
```sql
                SELECT COUNT("tenant") FROM "currently_proposed" WHERE "country"='Russia' AND "stadium"='Saransk Stadium';
```
## Task
Generate a SQL query to answer the following question:
`Name the country for lusail national stadium`

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

CREATE TABLE "currently_proposed" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text,
  "tenant" text,
  "opening" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for lusail national stadium`:
```sql
                SELECT "country" FROM "currently_proposed" WHERE "stadium"='Lusail National Stadium';
```
## Task
Generate a SQL query to answer the following question:
`Name the city for los angeles stadium`

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

CREATE TABLE "currently_proposed" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text,
  "tenant" text,
  "opening" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city for los angeles stadium`:
```sql
                SELECT "city" FROM "currently_proposed" WHERE "stadium"='Los Angeles Stadium';
```
## Task
Generate a SQL query to answer the following question:
`Name the stadium for nizhny novgorod`

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

CREATE TABLE "currently_proposed" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text,
  "tenant" text,
  "opening" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the stadium for nizhny novgorod`:
```sql
                SELECT "stadium" FROM "currently_proposed" WHERE "city"='Nizhny Novgorod';
```
## Task
Generate a SQL query to answer the following question:
`Name the country for athens`

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

CREATE TABLE "currently_proposed" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text,
  "tenant" text,
  "opening" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for athens`:
```sql
                SELECT COUNT("country") FROM "currently_proposed" WHERE "city"='Athens';
```
## Task
Generate a SQL query to answer the following question:
`When did the episode 1.13 air for the first time?`

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

CREATE TABLE "table1_28283535_4" (
  "episode" text,
  "date_aired" text,
  "timeslot" text,
  "rating" text,
  "nightly_rank" real,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode 1.13 air for the first time?`:
```sql
                SELECT "date_aired" FROM "table1_28283535_4" WHERE "episode"='1.13';
```
## Task
Generate a SQL query to answer the following question:
`What's the weekly rank of episode 1.03?`

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

CREATE TABLE "table1_28283535_4" (
  "episode" text,
  "date_aired" text,
  "timeslot" text,
  "rating" text,
  "nightly_rank" real,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the weekly rank of episode 1.03?`:
```sql
                SELECT "weekly_rank" FROM "table1_28283535_4" WHERE "episode"='1.03';
```
## Task
Generate a SQL query to answer the following question:
`What is the rating of episode 1.04?`

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

CREATE TABLE "table1_28283535_4" (
  "episode" text,
  "date_aired" text,
  "timeslot" text,
  "rating" text,
  "nightly_rank" real,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rating of episode 1.04?`:
```sql
                SELECT "rating" FROM "table1_28283535_4" WHERE "episode"='1.04';
```
## Task
Generate a SQL query to answer the following question:
`How many items are listed under caps when burnley is the club team?`

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

CREATE TABLE "canada" (
  "player" text,
  "cap_s" real,
  "goal_s" real,
  "international_debut" text,
  "club_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items are listed under caps when burnley is the club team?`:
```sql
                SELECT COUNT("cap_s") FROM "canada" WHERE "club_s"='Burnley';
```
## Task
Generate a SQL query to answer the following question:
`What club did the championship player come from who had 10 goals?`

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

CREATE TABLE "canada" (
  "player" text,
  "cap_s" real,
  "goal_s" real,
  "international_debut" text,
  "club_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club did the championship player come from who had 10 goals?`:
```sql
                SELECT "club_s" FROM "canada" WHERE "goal_s"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many goals did the player from Ipswich town score?`

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

CREATE TABLE "canada" (
  "player" text,
  "cap_s" real,
  "goal_s" real,
  "international_debut" text,
  "club_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals did the player from Ipswich town score?`:
```sql
                SELECT MIN("goal_s") FROM "canada" WHERE "club_s"='Ipswich Town';
```
## Task
Generate a SQL query to answer the following question:
`When 16 is the cap who is the player?`

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

CREATE TABLE "new_zealand" (
  "player" text,
  "cap_s" real,
  "goal_s" real,
  "international_debut" text,
  "club_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 16 is the cap who is the player?`:
```sql
                SELECT "player" FROM "new_zealand" WHERE "cap_s"=16;
```
## Task
Generate a SQL query to answer the following question:
`When 2010 v australia is the interantional debut what is the club?`

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

CREATE TABLE "new_zealand" (
  "player" text,
  "cap_s" real,
  "goal_s" real,
  "international_debut" text,
  "club_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 2010 v australia is the interantional debut what is the club?`:
```sql
                SELECT "club_s" FROM "new_zealand" WHERE "international_debut"='2010 v Australia';
```
## Task
Generate a SQL query to answer the following question:
`When winston reid category:articles with hcards is the player what is the club?`

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

CREATE TABLE "new_zealand" (
  "player" text,
  "cap_s" real,
  "goal_s" real,
  "international_debut" text,
  "club_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When winston reid category:articles with hcards is the player what is the club?`:
```sql
                SELECT "club_s" FROM "new_zealand" WHERE "player"='Winston Reid Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?`

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

CREATE TABLE "new_zealand" (
  "player" text,
  "cap_s" real,
  "goal_s" real,
  "international_debut" text,
  "club_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?`:
```sql
                SELECT COUNT("cap_s") FROM "new_zealand" WHERE "goal_s"=1 AND "player"='Tommy Smith Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`When  rory fallon category:articles with hcards is the player when is the international debut?`

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

CREATE TABLE "new_zealand" (
  "player" text,
  "cap_s" real,
  "goal_s" real,
  "international_debut" text,
  "club_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  rory fallon category:articles with hcards is the player when is the international debut?`:
```sql
                SELECT "international_debut" FROM "new_zealand" WHERE "player"='Rory Fallon Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`What is th title of the episode written by Nick Thiel?`

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

CREATE TABLE "table1_2828803_1" (
  "series_num" real,
  "title" text,
  "written_by" text,
  "directed_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 `What is th title of the episode written by Nick Thiel?`:
```sql
                SELECT "title" FROM "table1_2828803_1" WHERE "written_by"='Nick Thiel';
```
## Task
Generate a SQL query to answer the following question:
`How many million u.s. viewers watched the episode with a production code of 2t7004?`

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

CREATE TABLE "table1_2828803_1" (
  "series_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million u.s. viewers watched the episode with a production code of 2t7004?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_2828803_1" WHERE "production_code"='2T7004';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode that was directed by Dennis Smith?`

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

CREATE TABLE "table1_2828803_1" (
  "series_num" real,
  "title" text,
  "written_by" text,
  "directed_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 `What is the name of the episode that was directed by Dennis Smith?`:
```sql
                SELECT "title" FROM "table1_2828803_1" WHERE "directed_by"='Dennis Smith';
```
## Task
Generate a SQL query to answer the following question:
`What date did "The runner" originally air on?`

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

CREATE TABLE "table1_2828803_1" (
  "series_num" real,
  "title" text,
  "written_by" text,
  "directed_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 `What date did "The runner" originally air on?`:
```sql
                SELECT "original_air_date" FROM "table1_2828803_1" WHERE "title"='\"The Runner\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode nick thiel wrote?`

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

CREATE TABLE "table1_2828803_1" (
  "series_num" real,
  "title" text,
  "written_by" text,
  "directed_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 `What is the name of the episode nick thiel wrote?`:
```sql
                SELECT "title" FROM "table1_2828803_1" WHERE "written_by"='Nick Thiel';
```
## Task
Generate a SQL query to answer the following question:
`How many site entries are there at 3:30pm and the visiting team is coastal carolina?`

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

CREATE TABLE "week_one" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many site entries are there at 3:30pm and the visiting team is coastal carolina?`:
```sql
                SELECT COUNT("site") FROM "week_one" WHERE "time"='3:30pm' AND "visiting_team"='Coastal Carolina';
```
## Task
Generate a SQL query to answer the following question:
`What is the result when the visiting team is syracuse?`

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

CREATE TABLE "week_one" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result when the visiting team is syracuse?`:
```sql
                SELECT "result" FROM "week_one" WHERE "visiting_team"='Syracuse';
```
## Task
Generate a SQL query to answer the following question:
`When svein tuft is the winner what is the highest stage?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When svein tuft is the winner what is the highest stage?`:
```sql
                SELECT MAX("stage") FROM "classification_leadership" WHERE "winner"='Svein Tuft';
```
## Task
Generate a SQL query to answer the following question:
`when svein tuft is the winner how many stages are there?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `when svein tuft is the winner how many stages are there?`:
```sql
                SELECT COUNT("stage") FROM "classification_leadership" WHERE "winner"='Svein Tuft';
```
## Task
Generate a SQL query to answer the following question:
`when hayden roulston is the winner what is the team classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `when hayden roulston is the winner what is the team classification?`:
```sql
                SELECT "team_classification" FROM "classification_leadership" WHERE "winner"='Hayden Roulston';
```
## Task
Generate a SQL query to answer the following question:
`When michael reihs is the mountains classification what is the stage?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When michael reihs is the mountains classification what is the stage?`:
```sql
                SELECT "stage" FROM "classification_leadership" WHERE "mountains_classification"='Michael Reihs';
```
## Task
Generate a SQL query to answer the following question:
`When michael van stayen is the points classification what is the team classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When michael van stayen is the points classification what is the team classification?`:
```sql
                SELECT "team_classification" FROM "classification_leadership" WHERE "points_classification"='Michael Van Stayen';
```
## Task
Generate a SQL query to answer the following question:
`When hayden roulston is the winner what is the stage?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When hayden roulston is the winner what is the stage?`:
```sql
                SELECT "stage" FROM "classification_leadership" WHERE "winner"='Hayden Roulston';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game where Texas Southern was the visiting team?`

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

CREATE TABLE "week_two" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game where Texas Southern was the visiting team?`:
```sql
                SELECT "date" FROM "week_two" WHERE "visiting_team"='Texas Southern';
```
## Task
Generate a SQL query to answer the following question:
`How many Connecticut home games were broadcast?`

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

CREATE TABLE "week_two" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Connecticut home games were broadcast?`:
```sql
                SELECT COUNT("broadcast") FROM "week_two" WHERE "home_team"='Connecticut';
```
## Task
Generate a SQL query to answer the following question:
`In what facility was Pittsburgh's home game played?`

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

CREATE TABLE "week_two" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what facility was Pittsburgh's home game played?`:
```sql
                SELECT "site" FROM "week_two" WHERE "home_team"='Pittsburgh';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score of Washington's home game?`

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

CREATE TABLE "week_two" (
  "date" text,
  "time" text,
  "visiting_team" text,
  "home_team" text,
  "site" text,
  "broadcast" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of Washington's home game?`:
```sql
                SELECT "result" FROM "week_two" WHERE "home_team"='Washington';
```
## Task
Generate a SQL query to answer the following question:
`Where is the team that has a stadium capable of a capacity of 10,517 5,006 located?`

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

CREATE TABLE "current_clubs" (
  "club" text,
  "location" text,
  "home_venue" text,
  "capacity" text,
  "founded" real,
  "years_active" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the team that has a stadium capable of a capacity of 10,517 5,006 located?`:
```sql
                SELECT "location" FROM "current_clubs" WHERE "capacity"='10,517 5,006';
```