cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the number of bids with elite eight larger than 1.0`

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

CREATE TABLE "record_by_conference" (
  "conference" text,
  "num_of_bids" real,
  "record" text,
  "win_pct" text,
  "round_of_32" real,
  "sweet_sixteen" real,
  "elite_eight" real,
  "final_four" real,
  "championship_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of bids with elite eight larger than 1.0`:
```sql
                SELECT COUNT("num_of_bids") FROM "record_by_conference" WHERE "elite_eight">1.0;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with production code 7aff03?`

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

CREATE TABLE "table1_10749143_2" (
  "series_num" real,
  "season_num" 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 with production code 7aff03?`:
```sql
                SELECT "directed_by" FROM "table1_10749143_2" WHERE "production_code"='7AFF03';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode wtih 10.34 million U.S viewers?`

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

CREATE TABLE "table1_10749143_2" (
  "series_num" real,
  "season_num" 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 `What is the title of the episode wtih 10.34 million U.S viewers?`:
```sql
                SELECT "title" FROM "table1_10749143_2" WHERE "u_s_viewers_millions"='10.34';
```
## Task
Generate a SQL query to answer the following question:
`What place is the team that completed 6 races?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is the team that completed 6 races?`:
```sql
                SELECT "position" FROM "career_summary" WHERE "races"=6;
```
## Task
Generate a SQL query to answer the following question:
`how much did the british formula three called "fortec motorsport" score?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `how much did the british formula three called "fortec motorsport" score?`:
```sql
                SELECT "points" FROM "career_summary" WHERE "series"='British Formula Three' AND "team_name"='Fortec Motorsport';
```
## Task
Generate a SQL query to answer the following question:
`how many races were in 2009 with 0 wins?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many races were in 2009 with 0 wins?`:
```sql
                SELECT "races" FROM "career_summary" WHERE "season"='2009' AND "wins"=0;
```
## Task
Generate a SQL query to answer the following question:
`What years did art grand prix compete?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did art grand prix compete?`:
```sql
                SELECT "season" FROM "career_summary" WHERE "team_name"='ART Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What year had a score of 9?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a score of 9?`:
```sql
                SELECT "season" FROM "career_summary" WHERE "points"='9';
```
## Task
Generate a SQL query to answer the following question:
`what is the greatest number of wins by japanese formula three?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the greatest number of wins by japanese formula three?`:
```sql
                SELECT MAX("wins") FROM "career_summary" WHERE "series"='Japanese Formula Three';
```
## Task
Generate a SQL query to answer the following question:
`Who took test #4?`

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

CREATE TABLE "episodes" (
  "num" real,
  "air_date" text,
  "challenge" text,
  "winner" text,
  "test_taker" text,
  "passed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who took test #4?`:
```sql
                SELECT "test_taker" FROM "episodes" WHERE "num"=4;
```
## Task
Generate a SQL query to answer the following question:
`What episode aired on 18 April 2007?`

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

CREATE TABLE "episodes" (
  "num" real,
  "air_date" text,
  "challenge" text,
  "winner" text,
  "test_taker" text,
  "passed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode aired on 18 April 2007?`:
```sql
                SELECT MIN("num") FROM "episodes" WHERE "air_date"='18 April 2007';
```
## Task
Generate a SQL query to answer the following question:
`Who had the challenge of night driving?`

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

CREATE TABLE "episodes" (
  "num" real,
  "air_date" text,
  "challenge" text,
  "winner" text,
  "test_taker" text,
  "passed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the challenge of night driving?`:
```sql
                SELECT "test_taker" FROM "episodes" WHERE "challenge"='Night Driving';
```
## Task
Generate a SQL query to answer the following question:
`How many directors were there for the film Course Completed?`

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

CREATE TABLE "table1_10798928_1" (
  "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 `How many directors were there for the film Course Completed?`:
```sql
                SELECT COUNT("director") FROM "table1_10798928_1" WHERE "film_title_used_in_nomination"='Course Completed';
```
## Task
Generate a SQL query to answer the following question:
`Who directed El Nido?`

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

CREATE TABLE "table1_10798928_1" (
  "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 directed El Nido?`:
```sql
                SELECT "director" FROM "table1_10798928_1" WHERE "original_title"='El nido';
```
## Task
Generate a SQL query to answer the following question:
`Who directed Dulcinea?`

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

CREATE TABLE "table1_10798928_1" (
  "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 directed Dulcinea?`:
```sql
                SELECT "director" FROM "table1_10798928_1" WHERE "original_title"='Dulcinea';
```
## Task
Generate a SQL query to answer the following question:
`What are the slovenian names of the villages that had 65.9% of slovenes in 1951?`

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

CREATE TABLE "references" (
  "village_german" text,
  "village_slovenian" text,
  "number_of_people_1991" real,
  "percent_of_slovenes_1991" text,
  "percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the slovenian names of the villages that had 65.9% of slovenes in 1951?`:
```sql
                SELECT "village_slovenian" FROM "references" WHERE "percent_of_slovenes_1951"='65.9%';
```
## Task
Generate a SQL query to answer the following question:
`What are the slovenian names of the villages that had 16.7% of slovenes in 1991?`

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

CREATE TABLE "references" (
  "village_german" text,
  "village_slovenian" text,
  "number_of_people_1991" real,
  "percent_of_slovenes_1991" text,
  "percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the slovenian names of the villages that had 16.7% of slovenes in 1991?`:
```sql
                SELECT "village_slovenian" FROM "references" WHERE "percent_of_slovenes_1991"='16.7%';
```
## Task
Generate a SQL query to answer the following question:
`How many villages had 21.7% of slovenes in 1991?`

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

CREATE TABLE "references" (
  "village_german" text,
  "village_slovenian" text,
  "number_of_people_1991" real,
  "percent_of_slovenes_1991" text,
  "percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many villages had 21.7% of slovenes in 1991?`:
```sql
                SELECT COUNT("village_german") FROM "references" WHERE "percent_of_slovenes_1991"='21.7%';
```
## Task
Generate a SQL query to answer the following question:
`what percent of slovenes did the village called čahorče in slovenian have in 1991?`

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

CREATE TABLE "references" (
  "village_german" text,
  "village_slovenian" text,
  "number_of_people_1991" real,
  "percent_of_slovenes_1991" text,
  "percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `what percent of slovenes did the village called čahorče in slovenian have in 1991?`:
```sql
                SELECT "percent_of_slovenes_1991" FROM "references" WHERE "village_slovenian"='Čahorče';
```
## Task
Generate a SQL query to answer the following question:
`What is the slovenian name for the village that in german is known as st.margarethen?`

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

CREATE TABLE "references" (
  "village_german" text,
  "village_slovenian" text,
  "number_of_people_1991" real,
  "percent_of_slovenes_1991" text,
  "percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the slovenian name for the village that in german is known as st.margarethen?`:
```sql
                SELECT "village_slovenian" FROM "references" WHERE "village_german"='St.Margarethen';
```
## Task
Generate a SQL query to answer the following question:
`For games on December 20, how many points did the scoring leaders get?`

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

CREATE TABLE "game_log" (
  "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 `For games on December 20, how many points did the scoring leaders get?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='December 20';
```
## Task
Generate a SQL query to answer the following question:
`Who was the scoring leader and how many points did he get in games on December 23?`

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

CREATE TABLE "game_log" (
  "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 `Who was the scoring leader and how many points did he get in games on December 23?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='December 23';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick # for the position de?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick # for the position de?`:
```sql
                SELECT "pick_num" FROM "round_three" WHERE "position"='DE';
```
## Task
Generate a SQL query to answer the following question:
`Which player went to college at Saint Mary's?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to college at Saint Mary's?`:
```sql
                SELECT "player" FROM "round_three" WHERE "college"='Saint Mary''s';
```
## Task
Generate a SQL query to answer the following question:
`What is the position for the player with cfl team Winnipeg blue bombers?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for the player with cfl team Winnipeg blue bombers?`:
```sql
                SELECT "position" FROM "round_three" WHERE "cfl_team"='Winnipeg Blue Bombers';
```
## Task
Generate a SQL query to answer the following question:
`Which player went to college at Laval?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to college at Laval?`:
```sql
                SELECT "player" FROM "round_three" WHERE "college"='Laval';
```
## Task
Generate a SQL query to answer the following question:
`What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?`:
```sql
                SELECT "college" FROM "round_three" WHERE "cfl_team"='Edmonton Eskimos (via Calgary)';
```
## Task
Generate a SQL query to answer the following question:
`What's the team of the player from St. Francis Xavier College?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the team of the player from St. Francis Xavier College?`:
```sql
                SELECT "cfl_team" FROM "round_five" WHERE "college"='St. Francis Xavier';
```
## Task
Generate a SQL query to answer the following question:
`What player is on the Montreal Alouettes CFl team?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player is on the Montreal Alouettes CFl team?`:
```sql
                SELECT "player" FROM "round_five" WHERE "cfl_team"='Montreal Alouettes';
```
## Task
Generate a SQL query to answer the following question:
`What's the pick number of the player from Toronto Argonauts?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the pick number of the player from Toronto Argonauts?`:
```sql
                SELECT MIN("pick_num") FROM "round_five" WHERE "cfl_team"='Toronto Argonauts';
```
## Task
Generate a SQL query to answer the following question:
`What's the pick number of the player whose position is CB?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the pick number of the player whose position is CB?`:
```sql
                SELECT "pick_num" FROM "round_five" WHERE "position"='CB';
```
## Task
Generate a SQL query to answer the following question:
`What's the pick number of the player from New Mexico?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the pick number of the player from New Mexico?`:
```sql
                SELECT MAX("pick_num") FROM "round_five" WHERE "college"='New Mexico';
```
## Task
Generate a SQL query to answer the following question:
`What player went to Ohio State College?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player went to Ohio State College?`:
```sql
                SELECT "player" FROM "round_five" WHERE "college"='Ohio State';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum introduced value for the Departmental region?`

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

CREATE TABLE "br_railbuses" (
  "number_range" text,
  "builder" text,
  "introduced" real,
  "no_built" real,
  "region" text,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum introduced value for the Departmental region?`:
```sql
                SELECT MIN("introduced") FROM "br_railbuses" WHERE "region"='Departmental';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest introduced value?`

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

CREATE TABLE "br_railbuses" (
  "number_range" text,
  "builder" text,
  "introduced" real,
  "no_built" real,
  "region" text,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest introduced value?`:
```sql
                SELECT MIN("introduced") FROM "br_railbuses";
```
## Task
Generate a SQL query to answer the following question:
`Which CFL Teams drafted an OL in 2006?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which CFL Teams drafted an OL in 2006?`:
```sql
                SELECT "cfl_team" FROM "round_four" WHERE "position"='OL';
```
## Task
Generate a SQL query to answer the following question:
`Which college is aligned to the Saskatchewan Roughriders?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college is aligned to the Saskatchewan Roughriders?`:
```sql
                SELECT "college" FROM "round_four" WHERE "cfl_team"='Saskatchewan Roughriders';
```
## Task
Generate a SQL query to answer the following question:
`What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft.`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft.`:
```sql
                SELECT "position" FROM "round_four" WHERE "cfl_team"='Hamilton Tiger-Cats (via Ottawa)';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest pick listed in the table.`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest pick listed in the table.`:
```sql
                SELECT MIN("pick_num") FROM "round_four";
```
## Task
Generate a SQL query to answer the following question:
`What episode number had production code e4423?`

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

CREATE TABLE "table1_10842344_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 `What episode number had production code e4423?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_10842344_1" WHERE "production_code"='E4423';
```
## Task
Generate a SQL query to answer the following question:
`What's the latest episode in a season where the U.S. viewers totaled 14.37 million?`

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

CREATE TABLE "table1_10842344_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 `What's the latest episode in a season where the U.S. viewers totaled 14.37 million?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_10842344_1" WHERE "u_s_viewers_millions"='14.37';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode "Escape"?`

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

CREATE TABLE "table1_10842344_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 "Escape"?`:
```sql
                SELECT "directed_by" FROM "table1_10842344_1" WHERE "title"='\"Escape\"';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons is the season finale on May 26, 2010?`

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

CREATE TABLE "table1_10819266_8" (
  "season" real,
  "episodes" real,
  "time_slot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons is the season finale on May 26, 2010?`:
```sql
                SELECT COUNT("season") FROM "table1_10819266_8" WHERE "season_finale"='May 26, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What episodes are there where the season premier is September 23, 2009?`

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

CREATE TABLE "table1_10819266_8" (
  "season" real,
  "episodes" real,
  "time_slot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episodes are there where the season premier is September 23, 2009?`:
```sql
                SELECT "episodes" FROM "table1_10819266_8" WHERE "season_premiere"='September 23, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the season finale for season 4?`

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

CREATE TABLE "table1_10819266_8" (
  "season" real,
  "episodes" real,
  "time_slot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season finale for season 4?`:
```sql
                SELECT "season_finale" FROM "table1_10819266_8" WHERE "season"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many season premiers have a rank of #21?`

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

CREATE TABLE "table1_10819266_8" (
  "season" real,
  "episodes" real,
  "time_slot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season premiers have a rank of #21?`:
```sql
                SELECT "season_premiere" FROM "table1_10819266_8" WHERE "rank"='#21';
```
## Task
Generate a SQL query to answer the following question:
`What are the seasons where September 26, 2007 is the season premier?`

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

CREATE TABLE "table1_10819266_8" (
  "season" real,
  "episodes" real,
  "time_slot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the seasons where September 26, 2007 is the season premier?`:
```sql
                SELECT "tv_season" FROM "table1_10819266_8" WHERE "season_premiere"='September 26, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What max processor has a maximum memory of 256 gb?`

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

CREATE TABLE "table1_10818465_1" (
  "model" text,
  "ru" real,
  "max_processors" text,
  "processor_frequency" text,
  "max_memory" text,
  "max_disk_capacity" text,
  "ga_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What max processor has a maximum memory of 256 gb?`:
```sql
                SELECT "max_processors" FROM "table1_10818465_1" WHERE "max_memory"='256 GB';
```
## Task
Generate a SQL query to answer the following question:
`What is the max memory of the t5120 model?`

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

CREATE TABLE "table1_10818465_1" (
  "model" text,
  "ru" real,
  "max_processors" text,
  "processor_frequency" text,
  "max_memory" text,
  "max_disk_capacity" text,
  "ga_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the max memory of the t5120 model?`:
```sql
                SELECT "max_memory" FROM "table1_10818465_1" WHERE "model"='T5120';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest ru?`

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

CREATE TABLE "table1_10818465_1" (
  "model" text,
  "ru" real,
  "max_processors" text,
  "processor_frequency" text,
  "max_memory" text,
  "max_disk_capacity" text,
  "ga_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest ru?`:
```sql
                SELECT MIN("ru") FROM "table1_10818465_1";
```
## Task
Generate a SQL query to answer the following question:
`What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?`

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

CREATE TABLE "table1_10818465_1" (
  "model" text,
  "ru" real,
  "max_processors" text,
  "processor_frequency" text,
  "max_memory" text,
  "max_disk_capacity" text,
  "ga_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?`:
```sql
                SELECT "ga_date" FROM "table1_10818465_1" WHERE "processor_frequency"='1.0, 1.2, 1.4GHz';
```
## Task
Generate a SQL query to answer the following question:
`What is the ga date of the t5120 model?`

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

CREATE TABLE "table1_10818465_1" (
  "model" text,
  "ru" real,
  "max_processors" text,
  "processor_frequency" text,
  "max_memory" text,
  "max_disk_capacity" text,
  "ga_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ga date of the t5120 model?`:
```sql
                SELECT "ga_date" FROM "table1_10818465_1" WHERE "model"='T5120';
```
## Task
Generate a SQL query to answer the following question:
`What is the sport of the La Liga league?`

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

CREATE TABLE "top_10_in_total_attendance" (
  "league" text,
  "sport" text,
  "country" text,
  "season" text,
  "games" real,
  "average_attendance" real,
  "total_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sport of the La Liga league?`:
```sql
                SELECT "sport" FROM "top_10_in_total_attendance" WHERE "league"='La Liga';
```
## Task
Generate a SQL query to answer the following question:
`What's the minimum total attendance of the Premier League association football?`

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

CREATE TABLE "top_10_in_total_attendance" (
  "league" text,
  "sport" text,
  "country" text,
  "season" text,
  "games" real,
  "average_attendance" real,
  "total_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the minimum total attendance of the Premier League association football?`:
```sql
                SELECT MIN("total_attendance") FROM "top_10_in_total_attendance" WHERE "sport"='Association football' AND "league"='Premier League';
```
## Task
Generate a SQL query to answer the following question:
`What's the average attendance of the leagues in the season of 2013?`

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

CREATE TABLE "top_10_in_total_attendance" (
  "league" text,
  "sport" text,
  "country" text,
  "season" text,
  "games" real,
  "average_attendance" real,
  "total_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average attendance of the leagues in the season of 2013?`:
```sql
                SELECT MIN("average_attendance") FROM "top_10_in_total_attendance" WHERE "season"='2013';
```
## Task
Generate a SQL query to answer the following question:
`What's the total attendance of the leagues in season of 2010?`

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

CREATE TABLE "top_10_in_total_attendance" (
  "league" text,
  "sport" text,
  "country" text,
  "season" text,
  "games" real,
  "average_attendance" real,
  "total_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total attendance of the leagues in season of 2010?`:
```sql
                SELECT COUNT("total_attendance") FROM "top_10_in_total_attendance" WHERE "season"='2010';
```
## Task
Generate a SQL query to answer the following question:
`Who were the directors of the film submitted with the title Young Törless?`

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

CREATE TABLE "table1_10874596_1" (
  "year_e_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 were the directors of the film submitted with the title Young Törless?`:
```sql
                SELECT "director" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='Young Törless';
```
## Task
Generate a SQL query to answer the following question:
`What was the original title of the film submitted with the title A Woman in Flames?`

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

CREATE TABLE "table1_10874596_1" (
  "year_e_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 `What was the original title of the film submitted with the title A Woman in Flames?`:
```sql
                SELECT "original_title" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='A Woman in Flames';
```
## Task
Generate a SQL query to answer the following question:
`In what years was a film submitted with the title The Enigma of Kaspar Hauser?`

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

CREATE TABLE "table1_10874596_1" (
  "year_e_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 `In what years was a film submitted with the title The Enigma of Kaspar Hauser?`:
```sql
                SELECT "year_e_ceremony" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='The Enigma of Kaspar Hauser';
```
## Task
Generate a SQL query to answer the following question:
`Who were the directors of the film with the original title o.k.?`

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

CREATE TABLE "table1_10874596_1" (
  "year_e_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 were the directors of the film with the original title o.k.?`:
```sql
                SELECT "director" FROM "table1_10874596_1" WHERE "original_title"='o.k.';
```
## Task
Generate a SQL query to answer the following question:
`What is the division for the division semifinals playoffs?`

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

CREATE TABLE "kansas_city_comets" (
  "year" text,
  "division" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "avg_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the division for the division semifinals playoffs?`:
```sql
                SELECT "division" FROM "kansas_city_comets" WHERE "playoffs"='Division Semifinals';
```
## Task
Generate a SQL query to answer the following question:
`What is the number in series of "say uncle"?`

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

CREATE TABLE "table1_10908676_7" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in series of "say uncle"?`:
```sql
                SELECT "no_in_series" FROM "table1_10908676_7" WHERE "title"='\"Say Uncle\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the title written by David Mamet?`

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

CREATE TABLE "table1_10908676_7" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title written by David Mamet?`:
```sql
                SELECT "title" FROM "table1_10908676_7" WHERE "written_by"='David Mamet';
```
## Task
Generate a SQL query to answer the following question:
`What was the finale for 潮爆大狀`

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

CREATE TABLE "highest_rating_drama_series_of_2006" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finale for 潮爆大狀`:
```sql
                SELECT "finale" FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀';
```
## Task
Generate a SQL query to answer the following question:
`What was the finale for  潮爆大狀`

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

CREATE TABLE "highest_rating_drama_series_of_2006" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finale for  潮爆大狀`:
```sql
                SELECT "finale" FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers were there for the premier with 34`

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

CREATE TABLE "highest_rating_drama_series_of_2006" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers were there for the premier with 34`:
```sql
                SELECT "hk_viewers" FROM "highest_rating_drama_series_of_2006" WHERE "premiere"=34;
```
## Task
Generate a SQL query to answer the following question:
`How many are listed under 潮爆大狀`

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

CREATE TABLE "highest_rating_drama_series_of_2006" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many are listed under 潮爆大狀`:
```sql
                SELECT COUNT("peak") FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director of the episode with a production code of 2393059?`

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

CREATE TABLE "season_2_1993_1994" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the episode with a production code of 2393059?`:
```sql
                SELECT "director" FROM "season_2_1993_1994" WHERE "production_code"='2393059';
```
## Task
Generate a SQL query to answer the following question:
`How many people wrote "Michael's Game"?`

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

CREATE TABLE "season_2_1993_1994" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people wrote "Michael's Game"?`:
```sql
                SELECT COUNT("writer_s") FROM "season_2_1993_1994" WHERE "title"='\"Michael''s Game\"';
```
## Task
Generate a SQL query to answer the following question:
`When did the episode title "Duet For One" air?`

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

CREATE TABLE "season_2_1993_1994" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode title "Duet For One" air?`:
```sql
                SELECT "original_air_date" FROM "season_2_1993_1994" WHERE "title"='\"Duet for One\"';
```
## Task
Generate a SQL query to answer the following question:
`Which episode had 16.38 million U.S. viewers?`

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

CREATE TABLE "table1_10935548_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 `Which episode had 16.38 million U.S. viewers?`:
```sql
                SELECT "title" FROM "table1_10935548_1" WHERE "u_s_viewers_millions"='16.38';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode written by José Molina that aired on October 12, 2004?`

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

CREATE TABLE "table1_10935548_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 `What is the production code of the episode written by José Molina that aired on October 12, 2004?`:
```sql
                SELECT "production_code" FROM "table1_10935548_1" WHERE "written_by"='José Molina' AND "original_air_date"='October 12, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date of the episode "Quarry"?`

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

CREATE TABLE "table1_10935548_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 `What was the original air date of the episode "Quarry"?`:
```sql
                SELECT "original_air_date" FROM "table1_10935548_1" WHERE "title"='\"Quarry\"';
```
## Task
Generate a SQL query to answer the following question:
`Which episode was directed by Jean de Segonzac?`

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

CREATE TABLE "table1_10935548_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 `Which episode was directed by Jean de Segonzac?`:
```sql
                SELECT "title" FROM "table1_10935548_1" WHERE "directed_by"='Jean de Segonzac';
```
## Task
Generate a SQL query to answer the following question:
`what are the original air dates with a production code of 2394087`

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

CREATE TABLE "table1_10953197_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the original air dates with a production code of 2394087`:
```sql
                SELECT "original_air_date" FROM "table1_10953197_3" WHERE "production_code"='2394087';
```
## Task
Generate a SQL query to answer the following question:
`Who are the writers for the title "boxing sydney"`

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

CREATE TABLE "table1_10953197_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the writers for the title "boxing sydney"`:
```sql
                SELECT "writer_s" FROM "table1_10953197_3" WHERE "title"='\"Boxing Sydney\"';
```
## Task
Generate a SQL query to answer the following question:
`What are the production codes for the title "all about brooke"`

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

CREATE TABLE "table1_10953197_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the production codes for the title "all about brooke"`:
```sql
                SELECT "production_code" FROM "table1_10953197_3" WHERE "title"='\"All About Brooke\"';
```