cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the total number of segment d for wooden s barrel`

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

CREATE TABLE "season_10_2007_2008" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of segment d for wooden s barrel`:
```sql
                SELECT COUNT("segment_d") FROM "season_10_2007_2008" WHERE "segment_a"='Wooden s Barrel';
```
## Task
Generate a SQL query to answer the following question:
`How many segment A were in series episode 14-05`

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

CREATE TABLE "season_14_2009_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many segment A were in series episode 14-05`:
```sql
                SELECT COUNT("segment_a") FROM "season_14_2009_2010" WHERE "series_ep"='14-05';
```
## Task
Generate a SQL query to answer the following question:
`What is segment C in s07e05`

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

CREATE TABLE "season_14_2009_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is segment C in s07e05`:
```sql
                SELECT "segment_c" FROM "season_14_2009_2010" WHERE "netflix"='S07E05';
```
## Task
Generate a SQL query to answer the following question:
`What is the netflix episode number where Segment D is high-performance engines?`

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

CREATE TABLE "season_15_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the netflix episode number where Segment D is high-performance engines?`:
```sql
                SELECT "netflix" FROM "season_15_2010" WHERE "segment_d"='High-Performance Engines';
```
## Task
Generate a SQL query to answer the following question:
`What was segment D for episode 183?`

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

CREATE TABLE "season_15_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was segment D for episode 183?`:
```sql
                SELECT "segment_d" FROM "season_15_2010" WHERE "episode"=183;
```
## Task
Generate a SQL query to answer the following question:
`What is Segment A where Segment C is Sushi (part 1)? `

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

CREATE TABLE "season_15_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Segment A where Segment C is Sushi (part 1)? `:
```sql
                SELECT "segment_a" FROM "season_15_2010" WHERE "segment_c"='Sushi (Part 1)';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have the Netflix episode number S08E04?`

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

CREATE TABLE "season_15_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have the Netflix episode number S08E04?`:
```sql
                SELECT COUNT("episode") FROM "season_15_2010" WHERE "netflix"='S08E04';
```
## Task
Generate a SQL query to answer the following question:
`What is Segment A where Segment D is luxury sports cars?`

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

CREATE TABLE "season_15_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Segment A where Segment D is luxury sports cars?`:
```sql
                SELECT "segment_a" FROM "season_15_2010" WHERE "segment_d"='Luxury Sports Cars';
```
## Task
Generate a SQL query to answer the following question:
`What episode number is the episode with a segment on thinning shears?`

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

CREATE TABLE "season_20_2012_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number is the episode with a segment on thinning shears?`:
```sql
                SELECT MIN("episode") FROM "season_20_2012_2013" WHERE "segment_a"='Thinning Shears';
```
## Task
Generate a SQL query to answer the following question:
`Which episode has segment D on custom motorcycle tanks?`

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

CREATE TABLE "season_20_2012_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode has segment D on custom motorcycle tanks?`:
```sql
                SELECT MIN("episode") FROM "season_20_2012_2013" WHERE "segment_d"='Custom Motorcycle Tanks';
```
## Task
Generate a SQL query to answer the following question:
`How many segment C are there in the episode where segment D is bicycle tires?`

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

CREATE TABLE "season_20_2012_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many segment C are there in the episode where segment D is bicycle tires?`:
```sql
                SELECT COUNT("segment_c") FROM "season_20_2012_2013" WHERE "segment_d"='Bicycle Tires';
```
## Task
Generate a SQL query to answer the following question:
`What is the first episode number?`

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

CREATE TABLE "season_20_2012_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first episode number?`:
```sql
                SELECT MIN("episode") FROM "season_20_2012_2013";
```
## Task
Generate a SQL query to answer the following question:
`How many segment b's when segment a is filigree glass`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many segment b's when segment a is filigree glass`:
```sql
                SELECT COUNT("segment_b") FROM "season_16_2010_2011" WHERE "segment_a"='Filigree Glass';
```
## Task
Generate a SQL query to answer the following question:
`Whats the name of segment in s08e21`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whats the name of segment in s08e21`:
```sql
                SELECT "segment_a" FROM "season_16_2010_2011" WHERE "netflix"='S08E21';
```
## Task
Generate a SQL query to answer the following question:
`Whats the season/episode of segment a digital dentistry`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whats the season/episode of segment a digital dentistry`:
```sql
                SELECT "netflix" FROM "season_16_2010_2011" WHERE "segment_a"='Digital Dentistry';
```
## Task
Generate a SQL query to answer the following question:
`Whats the name of segment D in the episode where segment A is tequila`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whats the name of segment D in the episode where segment A is tequila`:
```sql
                SELECT "segment_d" FROM "season_16_2010_2011" WHERE "segment_a"='Tequila';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment D of the episode where segment A is tequila`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment D of the episode where segment A is tequila`:
```sql
                SELECT "segment_d" FROM "season_16_2010_2011" WHERE "segment_a"='Tequila';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of episods for segment c being s oyster`

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

CREATE TABLE "season_18_2011_2012" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of episods for segment c being s oyster`:
```sql
                SELECT COUNT("episode") FROM "season_18_2011_2012" WHERE "segment_c"='s Oyster';
```
## Task
Generate a SQL query to answer the following question:
`Name the least episode for fibre cement siding`

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

CREATE TABLE "season_18_2011_2012" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least episode for fibre cement siding`:
```sql
                SELECT MIN("episode") FROM "season_18_2011_2012" WHERE "segment_d"='Fibre Cement Siding';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment b for 226 episode`

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

CREATE TABLE "season_18_2011_2012" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment b for 226 episode`:
```sql
                SELECT "segment_b" FROM "season_18_2011_2012" WHERE "episode"=226;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of sement d for solar water heaters `

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

CREATE TABLE "season_18_2011_2012" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of sement d for solar water heaters `:
```sql
                SELECT COUNT("segment_d") FROM "season_18_2011_2012" WHERE "segment_b"='Solar Water Heaters';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment d for s cufflink`

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

CREATE TABLE "season_18_2011_2012" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment d for s cufflink`:
```sql
                SELECT "segment_d" FROM "season_18_2011_2012" WHERE "segment_a"='s Cufflink';
```
## Task
Generate a SQL query to answer the following question:
`What is the segment B of episode 242?`

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

CREATE TABLE "season_19_2012" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the segment B of episode 242?`:
```sql
                SELECT "segment_b" FROM "season_19_2012" WHERE "episode"=242;
```
## Task
Generate a SQL query to answer the following question:
`What is the segment C of the episode where segment B is Film Digitization?`

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

CREATE TABLE "season_19_2012" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the segment C of the episode where segment B is Film Digitization?`:
```sql
                SELECT "segment_c" FROM "season_19_2012" WHERE "segment_b"='Film Digitization';
```
## Task
Generate a SQL query to answer the following question:
`What is the segment A on episode 237?`

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

CREATE TABLE "season_19_2012" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the segment A on episode 237?`:
```sql
                SELECT "segment_a" FROM "season_19_2012" WHERE "episode"=237;
```
## Task
Generate a SQL query to answer the following question:
`What is the last episode which has segment d as blown glass?`

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

CREATE TABLE "season_4_2004" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last episode which has segment d as blown glass?`:
```sql
                SELECT MAX("episode") FROM "season_4_2004" WHERE "segment_d"='Blown Glass';
```
## Task
Generate a SQL query to answer the following question:
`What is the first episode with a netflix episode code of s02e20?`

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

CREATE TABLE "season_4_2004" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first episode with a netflix episode code of s02e20?`:
```sql
                SELECT MIN("episode") FROM "season_4_2004" WHERE "netflix"='S02E20';
```
## Task
Generate a SQL query to answer the following question:
`What is the netflix code for episode 46?`

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

CREATE TABLE "season_4_2004" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the netflix code for episode 46?`:
```sql
                SELECT "netflix" FROM "season_4_2004" WHERE "episode"=46;
```
## Task
Generate a SQL query to answer the following question:
`What is the netflix code where the series and episode are 4-11?`

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

CREATE TABLE "season_4_2004" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the netflix code where the series and episode are 4-11?`:
```sql
                SELECT "netflix" FROM "season_4_2004" WHERE "series_ep"='4-11';
```
## Task
Generate a SQL query to answer the following question:
`What is listed in segment b when segment c is artificial flowers?`

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

CREATE TABLE "season_21_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed in segment b when segment c is artificial flowers?`:
```sql
                SELECT "segment_b" FROM "season_21_2013" WHERE "segment_c"='Artificial Flowers';
```
## Task
Generate a SQL query to answer the following question:
`What are the titles of segment c when segment d is motorcycle brake locks?`

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

CREATE TABLE "season_21_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of segment c when segment d is motorcycle brake locks?`:
```sql
                SELECT "segment_c" FROM "season_21_2013" WHERE "segment_d"='Motorcycle Brake Locks';
```
## Task
Generate a SQL query to answer the following question:
`What are the titles of segment c for series episode is 21-08?`

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

CREATE TABLE "season_21_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of segment c for series episode is 21-08?`:
```sql
                SELECT "segment_c" FROM "season_21_2013" WHERE "series_ep"='21-08';
```
## Task
Generate a SQL query to answer the following question:
`What are the titles of segment b when segment c is standby generators (part 1)?`

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

CREATE TABLE "season_21_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of segment b when segment c is standby generators (part 1)?`:
```sql
                SELECT "segment_b" FROM "season_21_2013" WHERE "segment_c"='Standby Generators (Part 1)';
```
## Task
Generate a SQL query to answer the following question:
`What are the titles of segment a for series episode 21-12?`

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

CREATE TABLE "season_21_2013" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of segment a for series episode 21-12?`:
```sql
                SELECT "segment_a" FROM "season_21_2013" WHERE "series_ep"='21-12';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of episode for phyllo dough`

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

CREATE TABLE "season_3_2003" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of episode for phyllo dough`:
```sql
                SELECT COUNT("episode") FROM "season_3_2003" WHERE "segment_c"='Phyllo Dough';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment d for combination locks`

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

CREATE TABLE "season_3_2003" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment d for combination locks`:
```sql
                SELECT "segment_d" FROM "season_3_2003" WHERE "segment_a"='Combination Locks';
```
## Task
Generate a SQL query to answer the following question:
`Name the series ep for s02e08`

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

CREATE TABLE "season_3_2003" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series ep for s02e08`:
```sql
                SELECT "series_ep" FROM "season_3_2003" WHERE "netflix"='S02E08';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment c for couscous`

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

CREATE TABLE "season_3_2003" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment c for couscous`:
```sql
                SELECT "segment_c" FROM "season_3_2003" WHERE "segment_b"='Couscous';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment c for pottery`

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

CREATE TABLE "season_3_2003" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment c for pottery`:
```sql
                SELECT "segment_c" FROM "season_3_2003" WHERE "segment_b"='Pottery';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment d for chicken`

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

CREATE TABLE "season_3_2003" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment d for chicken`:
```sql
                SELECT "segment_d" FROM "season_3_2003" WHERE "segment_c"='Chicken';
```
## Task
Generate a SQL query to answer the following question:
`What is the Segment A for when Segment C is s Sailboard?`

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

CREATE TABLE "season_6_2005_2006" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Segment A for when Segment C is s Sailboard?`:
```sql
                SELECT "segment_a" FROM "season_6_2005_2006" WHERE "segment_c"='s Sailboard';
```
## Task
Generate a SQL query to answer the following question:
`What is the Segment B when the Segment D is s Hammock?`

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

CREATE TABLE "season_6_2005_2006" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Segment B when the Segment D is s Hammock?`:
```sql
                SELECT "segment_b" FROM "season_6_2005_2006" WHERE "segment_d"='s Hammock';
```
## Task
Generate a SQL query to answer the following question:
`What is the Netflix Episode when the Segment B is s Highlighter?`

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

CREATE TABLE "season_6_2005_2006" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Netflix Episode when the Segment B is s Highlighter?`:
```sql
                SELECT "netflix" FROM "season_6_2005_2006" WHERE "segment_b"='s Highlighter';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of #1?`

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

CREATE TABLE "bowl_games" (
  "num" real,
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of #1?`:
```sql
                SELECT "location" FROM "bowl_games" WHERE "num"=1;
```
## Task
Generate a SQL query to answer the following question:
`What stadium was the 1994 Gator Bowl in?`

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

CREATE TABLE "bowl_games" (
  "num" real,
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stadium was the 1994 Gator Bowl in?`:
```sql
                SELECT "stadium" FROM "bowl_games" WHERE "bowl_game"='1994 Gator Bowl';
```
## Task
Generate a SQL query to answer the following question:
`What is the stadium where the attendance was 75,406?`

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

CREATE TABLE "bowl_games" (
  "num" real,
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stadium where the attendance was 75,406?`:
```sql
                SELECT "stadium" FROM "bowl_games" WHERE "attendance"='75,406';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the bowl game when attendance was 79,280?`

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

CREATE TABLE "bowl_games" (
  "num" real,
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the bowl game when attendance was 79,280?`:
```sql
                SELECT MAX("num") FROM "bowl_games" WHERE "attendance"='79,280';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the bowl game in Gainesville, Fl?`

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

CREATE TABLE "bowl_games" (
  "num" real,
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the bowl game in Gainesville, Fl?`:
```sql
                SELECT "attendance" FROM "bowl_games" WHERE "location"='Gainesville, FL';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of median income for population 2006 for 365540`

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

CREATE TABLE "table1_151994_1" (
  "district" text,
  "population_2006_est" real,
  "area_km" text,
  "density_km" text,
  "median_monthly_per_capita_labour_force_income_hkd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of median income for population 2006 for 365540`:
```sql
                SELECT COUNT("median_monthly_per_capita_labour_force_income_hkd") FROM "table1_151994_1" WHERE "population_2006_est"=365540;
```
## Task
Generate a SQL query to answer the following question:
`Name the minimum derby county goals`

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

CREATE TABLE "minor_competitions" (
  "competition" text,
  "played" real,
  "derby_county" real,
  "draw" real,
  "nottingham_forest" real,
  "derby_county_goals" real,
  "nottingham_forest_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minimum derby county goals`:
```sql
                SELECT MIN("derby_county_goals") FROM "minor_competitions";
```
## Task
Generate a SQL query to answer the following question:
`Name the most derby county`

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

CREATE TABLE "minor_competitions" (
  "competition" text,
  "played" real,
  "derby_county" real,
  "draw" real,
  "nottingham_forest" real,
  "derby_county_goals" real,
  "nottingham_forest_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most derby county`:
```sql
                SELECT MAX("derby_county") FROM "minor_competitions";
```
## Task
Generate a SQL query to answer the following question:
`In episode 115 what is seen being made before British police helmets?`

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

CREATE TABLE "season_9_2007" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `In episode 115 what is seen being made before British police helmets?`:
```sql
                SELECT "segment_b" FROM "season_9_2007" WHERE "segment_c"='British Police Helmets';
```
## Task
Generate a SQL query to answer the following question:
`How many times was leather introduced before pedal steel guitars in episode 111?`

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

CREATE TABLE "season_9_2007" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was leather introduced before pedal steel guitars in episode 111?`:
```sql
                SELECT COUNT("segment_c") FROM "season_9_2007" WHERE "segment_d"='Pedal Steel Guitars';
```
## Task
Generate a SQL query to answer the following question:
`Name the engines for state trust`

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

CREATE TABLE "american_seafoods_company_fleet" (
  "name" text,
  "length" text,
  "tonnage" real,
  "built_by" text,
  "year" real,
  "engines" text,
  "horsepowers" real,
  "former_names" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the engines for state trust`:
```sql
                SELECT "engines" FROM "american_seafoods_company_fleet" WHERE "former_names"='State Trust';
```
## Task
Generate a SQL query to answer the following question:
`What are the details of the journey for the episode titled "Zambezi Express"?`

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

CREATE TABLE "table1_15211468_1" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the details of the journey for the episode titled "Zambezi Express"?`:
```sql
                SELECT "details_of_journey" FROM "table1_15211468_1" WHERE "episode_title"='\"Zambezi Express\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the UK broadcast date for the episode which visited USA?`

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

CREATE TABLE "table1_15211468_1" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the UK broadcast date for the episode which visited USA?`:
```sql
                SELECT "uk_broadcast_date" FROM "table1_15211468_1" WHERE "countries_visited"='USA';
```
## Task
Generate a SQL query to answer the following question:
`What are the details of the journey for the episode titled "Deccan"?`

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

CREATE TABLE "table1_15211468_1" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the details of the journey for the episode titled "Deccan"?`:
```sql
                SELECT "details_of_journey" FROM "table1_15211468_1" WHERE "episode_title"='\"Deccan\"';
```
## Task
Generate a SQL query to answer the following question:
`What countries are visited in the episode presented by Brian B. Thompson?`

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

CREATE TABLE "table1_15211468_1" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What countries are visited in the episode presented by Brian B. Thompson?`:
```sql
                SELECT "countries_visited" FROM "table1_15211468_1" WHERE "presenter"='Brian B. Thompson';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode title for the episode numbered #1.4?`

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

CREATE TABLE "table1_15211468_1" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode title for the episode numbered #1.4?`:
```sql
                SELECT "episode_title" FROM "table1_15211468_1" WHERE "episode_no"='#1.4';
```
## Task
Generate a SQL query to answer the following question:
`Name the social democratic party for labour`

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

CREATE TABLE "summary_of_election_results_1973_2003" (
  "election" real,
  "labour" real,
  "conservative" real,
  "liberal" real,
  "social_democratic_party" real,
  "social_and_liberal_democrats_liberal_democrats" real,
  "independent" real,
  "green" real,
  "other" text,
  "control" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the social democratic party for labour`:
```sql
                SELECT "social_democratic_party" FROM "summary_of_election_results_1973_2003" WHERE "control"='Labour';
```
## Task
Generate a SQL query to answer the following question:
`Name the least leabour for social and liberal democrats being 14`

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

CREATE TABLE "summary_of_election_results_1973_2003" (
  "election" real,
  "labour" real,
  "conservative" real,
  "liberal" real,
  "social_democratic_party" real,
  "social_and_liberal_democrats_liberal_democrats" real,
  "independent" real,
  "green" real,
  "other" text,
  "control" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least leabour for social and liberal democrats being 14`:
```sql
                SELECT MIN("labour") FROM "summary_of_election_results_1973_2003" WHERE "social_and_liberal_democrats_liberal_democrats"=14;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote episode 11, of which was directed by Will Waring?`

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

CREATE TABLE "table1_15284274_1" (
  "no_in_season" real,
  "no_disc" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode 11, of which was directed by Will Waring?`:
```sql
                SELECT "written_by" FROM "table1_15284274_1" WHERE "directed_by"='Will Waring' AND "no_in_season"=11;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode directed by Peter Woeste?`

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

CREATE TABLE "table1_15284274_1" (
  "no_in_season" real,
  "no_disc" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode directed by Peter Woeste?`:
```sql
                SELECT "written_by" FROM "table1_15284274_1" WHERE "directed_by"='Peter Woeste';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director of Pecado Mortal`

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

CREATE TABLE "submissions" (
  "year_ceremony" real,
  "original_title" text,
  "english_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of Pecado Mortal`:
```sql
                SELECT "director" FROM "submissions" WHERE "original_title"='Pecado Mortal';
```
## Task
Generate a SQL query to answer the following question:
`What was the original title of the Bruno Barreto film in 1989`

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

CREATE TABLE "submissions" (
  "year_ceremony" real,
  "original_title" text,
  "english_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 Bruno Barreto film in 1989`:
```sql
                SELECT "original_title" FROM "submissions" WHERE "director"='Bruno Barreto' AND "year_ceremony"=1989;
```
## Task
Generate a SQL query to answer the following question:
`What was the result for director Fernando Meirelles`

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

CREATE TABLE "submissions" (
  "year_ceremony" real,
  "original_title" text,
  "english_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for director Fernando Meirelles`:
```sql
                SELECT "result" FROM "submissions" WHERE "director"='Fernando Meirelles';
```
## Task
Generate a SQL query to answer the following question:
`Name the original title of the Suzana Amaral film`

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

CREATE TABLE "submissions" (
  "year_ceremony" real,
  "original_title" text,
  "english_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original title of the Suzana Amaral film`:
```sql
                SELECT "original_title" FROM "submissions" WHERE "director"='Suzana Amaral';
```
## Task
Generate a SQL query to answer the following question:
`If 0.52% is the percentage of the population in chinas tujia what is the overall amount of tujia population?`

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

CREATE TABLE "by_county" (
  "province" text,
  "prefecture" text,
  "county" text,
  "tujia_population" real,
  "pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `If 0.52% is the percentage of the population in chinas tujia what is the overall amount of tujia population?`:
```sql
                SELECT COUNT("tujia_population") FROM "by_county" WHERE "pct_of_chinas_tujia_population"='0.52%';
```
## Task
Generate a SQL query to answer the following question:
`When tujia population equals 388035 people and the % of the population is 4.83% which country is it?`

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

CREATE TABLE "by_county" (
  "province" text,
  "prefecture" text,
  "county" text,
  "tujia_population" real,
  "pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `When tujia population equals 388035 people and the % of the population is 4.83% which country is it?`:
```sql
                SELECT "county" FROM "by_county" WHERE "pct_of_chinas_tujia_population"='4.83%' AND "tujia_population"=388035;
```
## Task
Generate a SQL query to answer the following question:
`When the tujia population is 462444 what is the overall percentage of the chinas tujia population? `

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

CREATE TABLE "by_county" (
  "province" text,
  "prefecture" text,
  "county" text,
  "tujia_population" real,
  "pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the tujia population is 462444 what is the overall percentage of the chinas tujia population? `:
```sql
                SELECT "pct_of_chinas_tujia_population" FROM "by_county" WHERE "tujia_population"=462444;
```
## Task
Generate a SQL query to answer the following question:
`If the country is fenghuang how many provinces are there? `

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

CREATE TABLE "by_county" (
  "province" text,
  "prefecture" text,
  "county" text,
  "tujia_population" real,
  "pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the country is fenghuang how many provinces are there? `:
```sql
                SELECT COUNT("province") FROM "by_county" WHERE "county"='Fenghuang';
```
## Task
Generate a SQL query to answer the following question:
`If yongshun is the county what is the overall percentage of the chinas tujia population?`

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

CREATE TABLE "by_county" (
  "province" text,
  "prefecture" text,
  "county" text,
  "tujia_population" real,
  "pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `If yongshun is the county what is the overall percentage of the chinas tujia population?`:
```sql
                SELECT "pct_of_chinas_tujia_population" FROM "by_county" WHERE "county"='Yongshun';
```
## Task
Generate a SQL query to answer the following question:
`Who is in group a when indiana is in group d?`

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

CREATE TABLE "proposed_regions" (
  "region" real,
  "group_a" text,
  "group_b" text,
  "group_c" text,
  "group_d" text,
  "group_e" text,
  "group_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in group a when indiana is in group d?`:
```sql
                SELECT "group_a" FROM "proposed_regions" WHERE "group_d"='Indiana';
```
## Task
Generate a SQL query to answer the following question:
`Who is in group c when wisconsin is in group d?`

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

CREATE TABLE "proposed_regions" (
  "region" real,
  "group_a" text,
  "group_b" text,
  "group_c" text,
  "group_d" text,
  "group_e" text,
  "group_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in group c when wisconsin is in group d?`:
```sql
                SELECT "group_c" FROM "proposed_regions" WHERE "group_d"='Wisconsin';
```
## Task
Generate a SQL query to answer the following question:
`Who is in group c when iowa is in group e?`

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

CREATE TABLE "proposed_regions" (
  "region" real,
  "group_a" text,
  "group_b" text,
  "group_c" text,
  "group_d" text,
  "group_e" text,
  "group_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in group c when iowa is in group e?`:
```sql
                SELECT "group_c" FROM "proposed_regions" WHERE "group_e"='Iowa';
```
## Task
Generate a SQL query to answer the following question:
`Name the english name for orach, zarev`

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

CREATE TABLE "see_also" (
  "no" real,
  "english_name" text,
  "bulgarian_name" text,
  "bulgarian_name_transliteration" text,
  "old_bulgarian_names" text,
  "old_bulgarian_name_transliteration" text,
  "old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the english name for orach, zarev`:
```sql
                SELECT "english_name" FROM "see_also" WHERE "old_bulgarian_name_transliteration"='Orach, Zarev';
```
## Task
Generate a SQL query to answer the following question:
`Name the old bulgarian names for yuni`

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

CREATE TABLE "see_also" (
  "no" real,
  "english_name" text,
  "bulgarian_name" text,
  "bulgarian_name_transliteration" text,
  "old_bulgarian_names" text,
  "old_bulgarian_name_transliteration" text,
  "old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the old bulgarian names for yuni`:
```sql
                SELECT "old_bulgarian_names" FROM "see_also" WHERE "bulgarian_name_transliteration"='Yuni';
```
## Task
Generate a SQL query to answer the following question:
`Name the old bulgarian names for yanuari`

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

CREATE TABLE "see_also" (
  "no" real,
  "english_name" text,
  "bulgarian_name" text,
  "bulgarian_name_transliteration" text,
  "old_bulgarian_names" text,
  "old_bulgarian_name_transliteration" text,
  "old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the old bulgarian names for yanuari`:
```sql
                SELECT "old_bulgarian_names" FROM "see_also" WHERE "bulgarian_name_transliteration"='Yanuari';
```