cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many high points occur with the team Umass?`

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

CREATE TABLE "schedule" (
  "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 high points occur with the team Umass?`:
```sql
                SELECT COUNT("high_points") FROM "schedule" WHERE "team"='UMass';
```
## Task
Generate a SQL query to answer the following question:
`When la salle is the team who has the highest amount of points?`

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

CREATE TABLE "schedule" (
  "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 `When la salle is the team who has the highest amount of points?`:
```sql
                SELECT "high_points" FROM "schedule" WHERE "team"='La Salle';
```
## Task
Generate a SQL query to answer the following question:
`When allen/moore/wyatt – 4 have the highest amount of assists what is the highest game?`

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

CREATE TABLE "schedule" (
  "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 `When allen/moore/wyatt – 4 have the highest amount of assists what is the highest game?`:
```sql
                SELECT MAX("game") FROM "schedule" WHERE "high_assists"='Allen/Moore/Wyatt – 4';
```
## Task
Generate a SQL query to answer the following question:
`When dayton is the team what is the record?`

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

CREATE TABLE "schedule" (
  "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 `When dayton is the team what is the record?`:
```sql
                SELECT "record" FROM "schedule" WHERE "team"='Dayton';
```
## Task
Generate a SQL query to answer the following question:
`What the title of the song when the result is to the live shows?`

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

CREATE TABLE "2010" (
  "episode" text,
  "theme_date" text,
  "song_title" text,
  "original_performer" text,
  "result_placement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the title of the song when the result is to the live shows?`:
```sql
                SELECT "song_title" FROM "2010" WHERE "result_placement"='to the Live Shows';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode when the original performaer is diana ross?`

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

CREATE TABLE "2010" (
  "episode" text,
  "theme_date" text,
  "song_title" text,
  "original_performer" text,
  "result_placement" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode when the original performaer is diana ross?`:
```sql
                SELECT "episode" FROM "2010" WHERE "original_performer"='Diana Ross';
```
## Task
Generate a SQL query to answer the following question:
`Who is the original performer when the episode is casting?`

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

CREATE TABLE "2010" (
  "episode" text,
  "theme_date" text,
  "song_title" text,
  "original_performer" text,
  "result_placement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the original performer when the episode is casting?`:
```sql
                SELECT "original_performer" FROM "2010" WHERE "episode"='Casting';
```
## Task
Generate a SQL query to answer the following question:
`What is the pa listed when the ends won is 21?`

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

CREATE TABLE "standings_pool_b" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pa listed when the ends won is 21?`:
```sql
                SELECT MAX("pa") FROM "standings_pool_b" WHERE "ends_won"=21;
```
## Task
Generate a SQL query to answer the following question:
`How many times is there an entry in stolen ends when skip (club) is listed as debbie folk (nutana)?`

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

CREATE TABLE "standings_pool_b" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is there an entry in stolen ends when skip (club) is listed as debbie folk (nutana)?`:
```sql
                SELECT COUNT("stolen_ends") FROM "standings_pool_b" WHERE "skip_club"='Debbie Folk (Nutana)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total mumber of skip (club) entries when the pf is 40?`

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

CREATE TABLE "standings_pool_b" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total mumber of skip (club) entries when the pf is 40?`:
```sql
                SELECT COUNT("skip_club") FROM "standings_pool_b" WHERE "pf"=40;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of ends won entries when the skip (club) is chantelle eberle (tartan)?`

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

CREATE TABLE "standings_pool_b" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of ends won entries when the skip (club) is chantelle eberle (tartan)?`:
```sql
                SELECT COUNT("ends_won") FROM "standings_pool_b" WHERE "skip_club"='Chantelle Eberle (Tartan)';
```
## Task
Generate a SQL query to answer the following question:
`What horse had a starting price of 66/1?`

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

CREATE TABLE "finishing_order" (
  "position" text,
  "name" text,
  "jockey" text,
  "age" real,
  "weight_st_lb" text,
  "starting_price" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What horse had a starting price of 66/1?`:
```sql
                SELECT "name" FROM "finishing_order" WHERE "starting_price"='66/1';
```
## Task
Generate a SQL query to answer the following question:
`Who is listed under skip (club) when the ends won is 43?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is listed under skip (club) when the ends won is 43?`:
```sql
                SELECT "skip_club" FROM "standings" WHERE "ends_won"=43;
```
## Task
Generate a SQL query to answer the following question:
`What is the L when the skip club is Jeff Richard (kelowna)?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the L when the skip club is Jeff Richard (kelowna)?`:
```sql
                SELECT MAX("l") FROM "standings" WHERE "skip_club"='Jeff Richard (Kelowna)';
```
## Task
Generate a SQL query to answer the following question:
`What is the L when the W is 4?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the L when the W is 4?`:
```sql
                SELECT MIN("l") FROM "standings" WHERE "w"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number in L?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number in L?`:
```sql
                SELECT MAX("l") FROM "standings";
```
## Task
Generate a SQL query to answer the following question:
`What is the PA when the PF is 73?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the PA when the PF is 73?`:
```sql
                SELECT MIN("pa") FROM "standings" WHERE "pf"=73;
```
## Task
Generate a SQL query to answer the following question:
`What is the blank ends record when the win record is higher than 6.0?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the blank ends record when the win record is higher than 6.0?`:
```sql
                SELECT "blank_ends" FROM "standings" WHERE "w">6.0;
```
## Task
Generate a SQL query to answer the following question:
`What is the win record where the pa record is 62?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the win record where the pa record is 62?`:
```sql
                SELECT "w" FROM "standings" WHERE "pa"=62;
```
## Task
Generate a SQL query to answer the following question:
`What is listed under L when the stolen ends is 1?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed under L when the stolen ends is 1?`:
```sql
                SELECT "l" FROM "standings" WHERE "stolen_ends"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is listed under W when the ends won is 22?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed under W when the ends won is 22?`:
```sql
                SELECT MIN("w") FROM "standings" WHERE "ends_won"=22;
```
## Task
Generate a SQL query to answer the following question:
`What is listed under L when the ends won is 21?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed under L when the ends won is 21?`:
```sql
                SELECT MAX("l") FROM "standings" WHERE "ends_won"=21;
```
## Task
Generate a SQL query to answer the following question:
`How many rank entries are there when new points are 1155?`

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

CREATE TABLE "men_s_singles" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rank entries are there when new points are 1155?`:
```sql
                SELECT COUNT("rank") FROM "men_s_singles" WHERE "new_points"=1155;
```
## Task
Generate a SQL query to answer the following question:
`What is listed in new points when status is second round lost to xavier malisse?`

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

CREATE TABLE "men_s_singles" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed in new points when status is second round lost to xavier malisse?`:
```sql
                SELECT MIN("new_points") FROM "men_s_singles" WHERE "status"='Second round lost to Xavier Malisse';
```
## Task
Generate a SQL query to answer the following question:
`What is the status when points is 4595?`

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

CREATE TABLE "men_s_singles" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status when points is 4595?`:
```sql
                SELECT "status" FROM "men_s_singles" WHERE "points"=4595;
```
## Task
Generate a SQL query to answer the following question:
`What is the status when the rank is 2?`

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

CREATE TABLE "men_s_singles" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status when the rank is 2?`:
```sql
                SELECT "status" FROM "men_s_singles" WHERE "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many points are listed when the rank is 17?`

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

CREATE TABLE "men_s_singles" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are listed when the rank is 17?`:
```sql
                SELECT MAX("points") FROM "men_s_singles" WHERE "rank"=17;
```
## Task
Generate a SQL query to answer the following question:
`How many seed entries are there when points are 2175?`

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

CREATE TABLE "men_s_singles" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" real,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seed entries are there when points are 2175?`:
```sql
                SELECT COUNT("seed") FROM "men_s_singles" WHERE "points"=2175;
```
## Task
Generate a SQL query to answer the following question:
`How many clubs remained when there were 4 winners from the previous round?`

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

CREATE TABLE "teams" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" real,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs remained when there were 4 winners from the previous round?`:
```sql
                SELECT "clubs_remaining" FROM "teams" WHERE "winners_from_previous_round"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of clubs remaining when the league entering at this round was allsvenskan?`

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

CREATE TABLE "teams" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" real,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of clubs remaining when the league entering at this round was allsvenskan?`:
```sql
                SELECT MIN("clubs_remaining") FROM "teams" WHERE "leagues_entering_at_this_round"='Allsvenskan';
```
## Task
Generate a SQL query to answer the following question:
`How many different values of clubs involved were there when the league entering at this round was allsvenskan?`

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

CREATE TABLE "teams" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" real,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different values of clubs involved were there when the league entering at this round was allsvenskan?`:
```sql
                SELECT COUNT("clubs_involved") FROM "teams" WHERE "leagues_entering_at_this_round"='Allsvenskan';
```
## Task
Generate a SQL query to answer the following question:
`Which programs were originally broadcast on CITV?`

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

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel_s" text,
  "date_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which programs were originally broadcast on CITV?`:
```sql
                SELECT "programme" FROM "returning_this_year_after_a_break_of_one" WHERE "original_channel_s"='CITV';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of return for the program for the program "Big Brother"?`

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

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel_s" text,
  "date_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of return for the program for the program "Big Brother"?`:
```sql
                SELECT "date_of_return" FROM "returning_this_year_after_a_break_of_one" WHERE "programme"='Big Brother';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes are directed by Jamie Payne?`

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

CREATE TABLE "table1_29574579_1" (
  "episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_viewers_million" text,
  "share_pct" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes are directed by Jamie Payne?`:
```sql
                SELECT COUNT("episode") FROM "table1_29574579_1" WHERE "directed_by"='Jamie Payne';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers are listed when the share is 10.8?`

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

CREATE TABLE "table1_29574579_1" (
  "episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_viewers_million" text,
  "share_pct" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of viewers are listed when the share is 10.8?`:
```sql
                SELECT "uk_viewers_million" FROM "table1_29574579_1" WHERE "share_pct"='10.8';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director when there are 2.70 million viewers?`

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

CREATE TABLE "table1_29574579_1" (
  "episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_viewers_million" text,
  "share_pct" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director when there are 2.70 million viewers?`:
```sql
                SELECT "directed_by" FROM "table1_29574579_1" WHERE "uk_viewers_million"='2.70';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have the title "episode 2"?`

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

CREATE TABLE "table1_29574579_1" (
  "episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_viewers_million" text,
  "share_pct" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have the title "episode 2"?`:
```sql
                SELECT MIN("episode") FROM "table1_29574579_1" WHERE "title"='\"Episode 2\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes hve 4.50 million viewers?`

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

CREATE TABLE "table1_29574579_1" (
  "episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_viewers_million" text,
  "share_pct" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes hve 4.50 million viewers?`:
```sql
                SELECT "episode" FROM "table1_29574579_1" WHERE "uk_viewers_million"='4.50';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director when the share is 11.8?`

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

CREATE TABLE "table1_29574579_1" (
  "episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_viewers_million" text,
  "share_pct" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director when the share is 11.8?`:
```sql
                SELECT "directed_by" FROM "table1_29574579_1" WHERE "share_pct"='11.8';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with production code 57376?`

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

CREATE TABLE "table1_29583441_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 57376?`:
```sql
                SELECT "written_by" FROM "table1_29583441_1" WHERE "production_code"=57376;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest numbered production code listed?`

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

CREATE TABLE "table1_29583441_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest numbered production code listed?`:
```sql
                SELECT MIN("production_code") FROM "table1_29583441_1";
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode that was directed by Christian i. nyby ii originally air on?`

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

CREATE TABLE "table1_29583441_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode that was directed by Christian i. nyby ii originally air on?`:
```sql
                SELECT "original_air_date" FROM "table1_29583441_1" WHERE "directed_by"='Christian I. Nyby II';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode that was number 31 in the series? `

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

CREATE TABLE "table1_29584044_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode that was number 31 in the series? `:
```sql
                SELECT "original_air_date" FROM "table1_29584044_1" WHERE "no_in_series"=31;
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode that was directed by Bruce Seth Green?`

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

CREATE TABLE "table1_29584044_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode that was directed by Bruce Seth Green?`:
```sql
                SELECT "original_air_date" FROM "table1_29584044_1" WHERE "directed_by"='Bruce Seth Green';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode titled "Goliath (Part 2)"?`

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

CREATE TABLE "table1_29584044_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode titled "Goliath (Part 2)"?`:
```sql
                SELECT "written_by" FROM "table1_29584044_1" WHERE "title"='\"Goliath (Part 2)\"';
```
## Task
Generate a SQL query to answer the following question:
`What number episode in the season was titled "K.I.T.T. the Cat"?`

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

CREATE TABLE "table1_29584044_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode in the season was titled "K.I.T.T. the Cat"?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_29584044_1" WHERE "title"='\"K.I.T.T. the Cat\"';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the couple kerry & daniel?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the couple kerry & daniel?`:
```sql
                SELECT COUNT("place") FROM "average_score_chart" WHERE "couple"='Kerry & Daniel';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the total points 128.0?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the total points 128.0?`:
```sql
                SELECT COUNT("couple") FROM "average_score_chart" WHERE "total_points"='128.0';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the couple laura and colin?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the couple laura and colin?`:
```sql
                SELECT COUNT("place") FROM "average_score_chart" WHERE "couple"='Laura and Colin';
```
## Task
Generate a SQL query to answer the following question:
`what is the average when the place is 16?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average when the place is 16?`:
```sql
                SELECT "average" FROM "average_score_chart" WHERE "place"=16;
```
## Task
Generate a SQL query to answer the following question:
`How many times is the rank by average 4?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the rank by average 4?`:
```sql
                SELECT COUNT("place") FROM "average_score_chart" WHERE "rank_by_average"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many different season numbers does the episode "The Nineteenth Hole" have?`

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

CREATE TABLE "table1_29584601_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different season numbers does the episode "The Nineteenth Hole" have?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_29584601_1" WHERE "title"='\"The Nineteenth Hole\"';
```
## Task
Generate a SQL query to answer the following question:
`How many different pairs of writers wrote the episode with series number 56?`

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

CREATE TABLE "table1_29584601_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different pairs of writers wrote the episode with series number 56?`:
```sql
                SELECT COUNT("written_by") FROM "table1_29584601_1" WHERE "no_in_series"=56;
```
## Task
Generate a SQL query to answer the following question:
`what is the school for chris mcnamara?`

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

CREATE TABLE "roster" (
  "name" text,
  "number" real,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "hometown" text,
  "last_school_college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the school for chris mcnamara?`:
```sql
                SELECT "last_school_college" FROM "roster" WHERE "name"='Chris McNamara';
```
## Task
Generate a SQL query to answer the following question:
`how many hometowns for faisal aden?`

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

CREATE TABLE "roster" (
  "name" text,
  "number" real,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "hometown" text,
  "last_school_college" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many hometowns for faisal aden?`:
```sql
                SELECT COUNT("hometown") FROM "roster" WHERE "name"='Faisal Aden';
```
## Task
Generate a SQL query to answer the following question:
`what year is chris mcnamara?`

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

CREATE TABLE "roster" (
  "name" text,
  "number" real,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "hometown" text,
  "last_school_college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year is chris mcnamara?`:
```sql
                SELECT "year" FROM "roster" WHERE "name"='Chris McNamara';
```
## Task
Generate a SQL query to answer the following question:
`what is the height of columbia river hs?`

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

CREATE TABLE "roster" (
  "name" text,
  "number" real,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "hometown" text,
  "last_school_college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the height of columbia river hs?`:
```sql
                SELECT "height" FROM "roster" WHERE "last_school_college"='Columbia River HS';
```
## Task
Generate a SQL query to answer the following question:
`what is the hometown for mike ladd?`

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

CREATE TABLE "roster" (
  "name" text,
  "number" real,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "hometown" text,
  "last_school_college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the hometown for mike ladd?`:
```sql
                SELECT "hometown" FROM "roster" WHERE "name"='Mike Ladd';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons did Apocalypstix place 2nd?`

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

CREATE TABLE "home_teams" (
  "season" real,
  "apocalypstix" text,
  "denim_demons" text,
  "sake_tuyas" text,
  "toxic_shocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did Apocalypstix place 2nd?`:
```sql
                SELECT COUNT("season") FROM "home_teams" WHERE "apocalypstix"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`What season did the Sake Tuyas come in 1st place?`

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

CREATE TABLE "home_teams" (
  "season" real,
  "apocalypstix" text,
  "denim_demons" text,
  "sake_tuyas" text,
  "toxic_shocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season did the Sake Tuyas come in 1st place?`:
```sql
                SELECT "season" FROM "home_teams" WHERE "sake_tuyas"='1st';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent season where the Denim Demons placed 3rd?`

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

CREATE TABLE "home_teams" (
  "season" real,
  "apocalypstix" text,
  "denim_demons" text,
  "sake_tuyas" text,
  "toxic_shocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent season where the Denim Demons placed 3rd?`:
```sql
                SELECT MAX("season") FROM "home_teams" WHERE "denim_demons"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What place did the Sake Tuyas come in when the Denim Demons were 4th?`

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

CREATE TABLE "home_teams" (
  "season" real,
  "apocalypstix" text,
  "denim_demons" text,
  "sake_tuyas" text,
  "toxic_shocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place did the Sake Tuyas come in when the Denim Demons were 4th?`:
```sql
                SELECT "sake_tuyas" FROM "home_teams" WHERE "denim_demons"='4th';
```
## Task
Generate a SQL query to answer the following question:
`List all the places that the Apocalypstix occupied when the Denim Demons were 2nd.`

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

CREATE TABLE "home_teams" (
  "season" real,
  "apocalypstix" text,
  "denim_demons" text,
  "sake_tuyas" text,
  "toxic_shocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all the places that the Apocalypstix occupied when the Denim Demons were 2nd.`:
```sql
                SELECT "apocalypstix" FROM "home_teams" WHERE "denim_demons"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`Which team has a midfielder of konrad warzycha?`

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

CREATE TABLE "table1_29626583_3" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a midfielder of konrad warzycha?`:
```sql
                SELECT "mls_team" FROM "table1_29626583_3" WHERE "position"='Midfielder' AND "player"='Konrad Warzycha';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number for the team toronto fc and affiliation is ldu quito?`

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

CREATE TABLE "table1_29626583_3" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for the team toronto fc and affiliation is ldu quito?`:
```sql
                SELECT MAX("pick_num") FROM "table1_29626583_3" WHERE "mls_team"='Toronto FC' AND "affiliation"='LDU Quito';
```
## Task
Generate a SQL query to answer the following question:
`Which MLS team picked player Jason Herrick?`

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

CREATE TABLE "table1_29626583_3" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which MLS team picked player Jason Herrick?`:
```sql
                SELECT "mls_team" FROM "table1_29626583_3" WHERE "player"='Jason Herrick';
```
## Task
Generate a SQL query to answer the following question:
`What position did the team new york red bulls pick?`

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

CREATE TABLE "table1_29626583_3" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the team new york red bulls pick?`:
```sql
                SELECT "position" FROM "table1_29626583_3" WHERE "mls_team"='New York Red Bulls';
```
## Task
Generate a SQL query to answer the following question:
`What was the position when the affiliation is ldu quito?`

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

CREATE TABLE "table1_29626583_3" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position when the affiliation is ldu quito?`:
```sql
                SELECT "position" FROM "table1_29626583_3" WHERE "affiliation"='LDU Quito';
```
## Task
Generate a SQL query to answer the following question:
`how many peaks where for the chinese episode named 萬凰之王`

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

CREATE TABLE "highest_rating_serial_dramas_of_2011" (
  "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 peaks where for the chinese episode named 萬凰之王`:
```sql
                SELECT COUNT("peak") FROM "highest_rating_serial_dramas_of_2011" WHERE "chinese_title"='萬凰之王';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of the average of the drama titled  魚躍在花見`

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

CREATE TABLE "highest_rating_serial_dramas_of_2011" (
  "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 is the number of the average of the drama titled  魚躍在花見`:
```sql
                SELECT MAX("average") FROM "highest_rating_serial_dramas_of_2011" WHERE "chinese_title"='魚躍在花見';
```
## Task
Generate a SQL query to answer the following question:
`how many milion of viewers where in the episode called in english "is a great way to care"`

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

CREATE TABLE "highest_rating_serial_dramas_of_2011" (
  "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 milion of viewers where in the episode called in english "is a great way to care"`:
```sql
                SELECT "hk_viewers" FROM "highest_rating_serial_dramas_of_2011" WHERE "english_title"='A Great Way to Care';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of the premiere for the 34 peak`

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

CREATE TABLE "highest_rating_serial_dramas_of_2011" (
  "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 is the number of the premiere for the 34 peak`:
```sql
                SELECT "premiere" FROM "highest_rating_serial_dramas_of_2011" WHERE "peak"=34;
```
## Task
Generate a SQL query to answer the following question:
`In what week was the first game played?`

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

CREATE TABLE "table1_29679510_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what week was the first game played?`:
```sql
                SELECT MIN("week") FROM "table1_29679510_2";
```
## Task
Generate a SQL query to answer the following question:
`How many object dates have origin in Samoa?`

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

CREATE TABLE "table1_29635868_1" (
  "episode_number" real,
  "title_link_to_episode_on_you_tube" text,
  "origin" text,
  "object_date" text,
  "description" text,
  "te_papas_collections_online_link" text,
  "host_additional_contributors" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many object dates have origin in Samoa?`:
```sql
                SELECT COUNT("object_date") FROM "table1_29635868_1" WHERE "origin"='Samoa';
```
## Task
Generate a SQL query to answer the following question:
`How many origins have titles of Samoan cricket bats?`

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

CREATE TABLE "table1_29635868_1" (
  "episode_number" real,
  "title_link_to_episode_on_you_tube" text,
  "origin" text,
  "object_date" text,
  "description" text,
  "te_papas_collections_online_link" text,
  "host_additional_contributors" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many origins have titles of Samoan cricket bats?`:
```sql
                SELECT COUNT("origin") FROM "table1_29635868_1" WHERE "title_link_to_episode_on_you_tube"='Samoan Cricket Bats';
```
## Task
Generate a SQL query to answer the following question:
`How many object dates does episode #16 have?`

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

CREATE TABLE "table1_29635868_1" (
  "episode_number" real,
  "title_link_to_episode_on_you_tube" text,
  "origin" text,
  "object_date" text,
  "description" text,
  "te_papas_collections_online_link" text,
  "host_additional_contributors" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many object dates does episode #16 have?`:
```sql
                SELECT COUNT("object_date") FROM "table1_29635868_1" WHERE "episode_number"=16;
```
## Task
Generate a SQL query to answer the following question:
`Which films participated in the 61st Berlin international film festival?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which films participated in the 61st Berlin international film festival?`:
```sql
                SELECT "participants_recipients" FROM "film_festivals" WHERE "film_festival"='61st Berlin International Film Festival';
```