cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
` what's the home team where score is l 80–88`

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

CREATE TABLE "march" (
  "num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the home team where score is l 80–88`:
```sql
                SELECT "home" FROM "march" WHERE "score"='L 80–88';
```
## Task
Generate a SQL query to answer the following question:
` what's the leading scorer on march 2`

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

CREATE TABLE "march" (
  "num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the leading scorer on march 2`:
```sql
                SELECT "leading_scorer" FROM "march" WHERE "date"='March 2';
```
## Task
Generate a SQL query to answer the following question:
` what's the leading scorer where home is sacramento kings`

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

CREATE TABLE "march" (
  "num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the leading scorer where home is sacramento kings`:
```sql
                SELECT "leading_scorer" FROM "march" WHERE "home"='Sacramento Kings';
```
## Task
Generate a SQL query to answer the following question:
` what's the team where date is february 8`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the team where date is february 8`:
```sql
                SELECT "team" FROM "game_log" WHERE "date"='February 8';
```
## Task
Generate a SQL query to answer the following question:
` what's the location attendance where high rebounds is nick collison (14)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the location attendance where high rebounds is nick collison (14)`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "high_rebounds"='Nick Collison (14)';
```
## Task
Generate a SQL query to answer the following question:
` what's the record where score is w 105–92 (ot)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the record where score is w 105–92 (ot)`:
```sql
                SELECT "record" FROM "game_log" WHERE "score"='W 105–92 (OT)';
```
## Task
Generate a SQL query to answer the following question:
` what's the location attendance where record is 14–39`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the location attendance where record is 14–39`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='14–39';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum game where high points is mickaël gelabale (21)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum game where high points is mickaël gelabale (21)`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "high_points"='Mickaël Gelabale (21)';
```
## Task
Generate a SQL query to answer the following question:
` what's the record where location attendance is keyarena 13,627`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the record where location attendance is keyarena 13,627`:
```sql
                SELECT "record" FROM "game_log" WHERE "location_attendance"='KeyArena 13,627';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for april 29?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for april 29?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "date"='April 29';
```
## Task
Generate a SQL query to answer the following question:
`Name the minimum game`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minimum game`:
```sql
                SELECT MIN("game") FROM "playoffs";
```
## Task
Generate a SQL query to answer the following question:
`Name the high points for toyota center 18,269?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high points for toyota center 18,269?`:
```sql
                SELECT "high_points" FROM "playoffs" WHERE "location_attendance"='Toyota Center 18,269';
```
## Task
Generate a SQL query to answer the following question:
`what's the preliminaries with average being 9.135`

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

CREATE TABLE "scores" (
  "country" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the preliminaries with average being 9.135`:
```sql
                SELECT "preliminaries" FROM "scores" WHERE "average"='9.135';
```
## Task
Generate a SQL query to answer the following question:
`what's the evening gown with preliminaries being 9.212`

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

CREATE TABLE "scores" (
  "country" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the evening gown with preliminaries being 9.212`:
```sql
                SELECT "evening_gown" FROM "scores" WHERE "preliminaries"='9.212';
```
## Task
Generate a SQL query to answer the following question:
`what's the interview with swimsuit being 9.140`

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

CREATE TABLE "scores" (
  "country" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the interview with swimsuit being 9.140`:
```sql
                SELECT "interview" FROM "scores" WHERE "swimsuit"='9.140';
```
## Task
Generate a SQL query to answer the following question:
`what's the evening gown with swimsuit being 9.134`

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

CREATE TABLE "scores" (
  "country" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the evening gown with swimsuit being 9.134`:
```sql
                SELECT "evening_gown" FROM "scores" WHERE "swimsuit"='9.134';
```
## Task
Generate a SQL query to answer the following question:
`what's the preliminaries with average being 9.360`

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

CREATE TABLE "scores" (
  "country" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the preliminaries with average being 9.360`:
```sql
                SELECT "preliminaries" FROM "scores" WHERE "average"='9.360';
```
## Task
Generate a SQL query to answer the following question:
`How many successors were seated in the New York 20th district?`

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

CREATE TABLE "table1_1199219_2" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many successors were seated in the New York 20th district?`:
```sql
                SELECT COUNT("successor") FROM "table1_1199219_2" WHERE "district"='New York 20th';
```
## Task
Generate a SQL query to answer the following question:
`What playoff result happened during the season in which they finished 1st, southern?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What playoff result happened during the season in which they finished 1st, southern?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "reg_season"='1st, Southern';
```
## Task
Generate a SQL query to answer the following question:
`How many teams placed 4th in the regular season?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams placed 4th in the regular season?`:
```sql
                SELECT COUNT("division") FROM "year_by_year" WHERE "reg_season"='4th';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the open cup when they finished 4th in the regular season?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the open cup when they finished 4th in the regular season?`:
```sql
                SELECT "open_cup" FROM "year_by_year" WHERE "reg_season"='4th';
```
## Task
Generate a SQL query to answer the following question:
`How many open cups were hosted in 1993?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many open cups were hosted in 1993?`:
```sql
                SELECT COUNT("open_cup") FROM "year_by_year" WHERE "year"=1993;
```
## Task
Generate a SQL query to answer the following question:
`What year did they finish 1st, southern?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did they finish 1st, southern?`:
```sql
                SELECT MAX("year") FROM "year_by_year" WHERE "reg_season"='1st, Southern';
```
## Task
Generate a SQL query to answer the following question:
`What was the playoff result for theteam in the apsl in 1992?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the playoff result for theteam in the apsl in 1992?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "league"='APSL' AND "year"=1992;
```
## Task
Generate a SQL query to answer the following question:
`What was the status of tropartic?`

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

CREATE TABLE "box_score" (
  "finish" real,
  "start" real,
  "car_no" real,
  "driver" text,
  "car_name" text,
  "car_make" text,
  "entrant" text,
  "laps" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the status of tropartic?`:
```sql
                SELECT "status" FROM "box_score" WHERE "car_name"='TropArtic';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of joe gibbs racing?`

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

CREATE TABLE "box_score" (
  "finish" real,
  "start" real,
  "car_no" real,
  "driver" text,
  "car_name" text,
  "car_make" text,
  "entrant" text,
  "laps" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of joe gibbs racing?`:
```sql
                SELECT "status" FROM "box_score" WHERE "entrant"='Joe Gibbs Racing';
```
## Task
Generate a SQL query to answer the following question:
`What is the laops of marcis auto racing?`

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

CREATE TABLE "box_score" (
  "finish" real,
  "start" real,
  "car_no" real,
  "driver" text,
  "car_name" text,
  "car_make" text,
  "entrant" text,
  "laps" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the laops of marcis auto racing?`:
```sql
                SELECT "laps" FROM "box_score" WHERE "entrant"='Marcis Auto Racing';
```
## Task
Generate a SQL query to answer the following question:
`what's the author / editor / source with index (year) being press freedom (2007)`

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

CREATE TABLE "table" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the author / editor / source with index (year) being press freedom (2007)`:
```sql
                SELECT "author_editor_source" FROM "table" WHERE "index_year"='Press Freedom (2007)';
```
## Task
Generate a SQL query to answer the following question:
` how many countries sampled with year of publication being 2007 and ranking l.a. (2) being 7th`

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

CREATE TABLE "table" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many countries sampled with year of publication being 2007 and ranking l.a. (2) being 7th`:
```sql
                SELECT COUNT("countries_sampled") FROM "table" WHERE "year_of_publication"='2007' AND "ranking_l_a_2"='7th';
```
## Task
Generate a SQL query to answer the following question:
`what's the author / editor / source with world ranking (1) being 73rd`

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

CREATE TABLE "table" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the author / editor / source with world ranking (1) being 73rd`:
```sql
                SELECT "author_editor_source" FROM "table" WHERE "world_ranking_1"='73rd';
```
## Task
Generate a SQL query to answer the following question:
`How many losingteams were for the cup finaldate 20 August 1989?`

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

CREATE TABLE "nsl_cup_winners" (
  "season" text,
  "cup_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "cup_final_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losingteams were for the cup finaldate 20 August 1989?`:
```sql
                SELECT COUNT("losing_team") FROM "nsl_cup_winners" WHERE "cup_final_date"='20 August 1989';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons was the losing team Adelaide City?`

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

CREATE TABLE "nsl_cup_winners" (
  "season" text,
  "cup_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "cup_final_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons was the losing team Adelaide City?`:
```sql
                SELECT COUNT("season") FROM "nsl_cup_winners" WHERE "losing_team"='Adelaide City';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning team in the 1989 season?`

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

CREATE TABLE "nsl_cup_winners" (
  "season" text,
  "cup_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "cup_final_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning team in the 1989 season?`:
```sql
                SELECT "winning_team" FROM "nsl_cup_winners" WHERE "season"='1989';
```
## Task
Generate a SQL query to answer the following question:
`Who won the womens doubles when wu jianqui won the womens singles?`

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

CREATE TABLE "table1_12027364_1" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the womens doubles when wu jianqui won the womens singles?`:
```sql
                SELECT "womens_doubles" FROM "table1_12027364_1" WHERE "womens_singles"='Wu Jianqui';
```
## Task
Generate a SQL query to answer the following question:
`Who won the mixed doubles when ji xinpeng won the mens singles?`

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

CREATE TABLE "table1_12027364_1" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the mixed doubles when ji xinpeng won the mens singles?`:
```sql
                SELECT "mixed_doubles" FROM "table1_12027364_1" WHERE "mens_singles"='Ji Xinpeng';
```
## Task
Generate a SQL query to answer the following question:
`How many womens singles winners were there when peter rasmussen won the mens singles?`

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

CREATE TABLE "table1_12027364_1" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many womens singles winners were there when peter rasmussen won the mens singles?`:
```sql
                SELECT COUNT("womens_singles") FROM "table1_12027364_1" WHERE "mens_singles"='Peter Rasmussen';
```
## Task
Generate a SQL query to answer the following question:
`WHO WROTE THE STORY WITH THE PRODUCTION CODE OF 1ADK-03`

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

CREATE TABLE "table1_12033013_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHO WROTE THE STORY WITH THE PRODUCTION CODE OF 1ADK-03`:
```sql
                SELECT "written_by" FROM "table1_12033013_1" WHERE "production_code"='1ADK-03';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS "DAVE MOVES OUT" PRODUCTION CODE?`

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

CREATE TABLE "table1_12033013_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS "DAVE MOVES OUT" PRODUCTION CODE?`:
```sql
                SELECT "production_code" FROM "table1_12033013_1" WHERE "title"='\"Dave Moves Out\"';
```
## Task
Generate a SQL query to answer the following question:
`WHO WROTE "DAD'S DEAD"`

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

CREATE TABLE "table1_12033013_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHO WROTE "DAD'S DEAD"`:
```sql
                SELECT "written_by" FROM "table1_12033013_1" WHERE "title"='\"Dad''s Dead\"';
```
## Task
Generate a SQL query to answer the following question:
`WHO AUTHORED "RED ASPHALT"?`

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

CREATE TABLE "table1_12033013_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHO AUTHORED "RED ASPHALT"?`:
```sql
                SELECT "written_by" FROM "table1_12033013_1" WHERE "title"='\"Red Asphalt\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of titles written by adam i. lapidus`

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

CREATE TABLE "table1_12030612_9" (
  "series_num" real,
  "season_num" 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 `Name the number of titles written by adam i. lapidus`:
```sql
                SELECT COUNT("title") FROM "table1_12030612_9" WHERE "written_by"='Adam I. Lapidus';
```
## Task
Generate a SQL query to answer the following question:
`What's the season number of the episode titled "Houseboat"?`

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

CREATE TABLE "table1_12033013_3" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the season number of the episode titled "Houseboat"?`:
```sql
                SELECT "no_in_season" FROM "table1_12033013_3" WHERE "title"='\"Houseboat\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the season number of the episode titled "Grad school"?`

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

CREATE TABLE "table1_12033013_3" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the season number of the episode titled "Grad school"?`:
```sql
                SELECT "no_in_season" FROM "table1_12033013_3" WHERE "title"='\"Grad School\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with a production code 3ADK-03?`

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

CREATE TABLE "table1_12033013_3" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with a production code 3ADK-03?`:
```sql
                SELECT "directed_by" FROM "table1_12033013_3" WHERE "production_code"='3ADK-03';
```
## Task
Generate a SQL query to answer the following question:
`When pinyin is xīnluó qū, what is the simplified value?`

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

CREATE TABLE "administration" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "hakka" text,
  "area" real,
  "population" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `When pinyin is xīnluó qū, what is the simplified value?`:
```sql
                SELECT COUNT("simplified") FROM "administration" WHERE "pinyin"='Xīnluó Qū';
```
## Task
Generate a SQL query to answer the following question:
`What is the pinyin for the English name Wuping County?`

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

CREATE TABLE "administration" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "hakka" text,
  "area" real,
  "population" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pinyin for the English name Wuping County?`:
```sql
                SELECT "pinyin" FROM "administration" WHERE "english_name"='Wuping County';
```
## Task
Generate a SQL query to answer the following question:
`What is the area of the English name Shanghang County?`

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

CREATE TABLE "administration" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "hakka" text,
  "area" real,
  "population" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area of the English name Shanghang County?`:
```sql
                SELECT "area" FROM "administration" WHERE "english_name"='Shanghang County';
```
## Task
Generate a SQL query to answer the following question:
`Which pinyin have a population of 374047?`

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

CREATE TABLE "administration" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "hakka" text,
  "area" real,
  "population" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which pinyin have a population of 374047?`:
```sql
                SELECT "pinyin" FROM "administration" WHERE "population"=374047;
```
## Task
Generate a SQL query to answer the following question:
`How many NHL teams are there in the Phoenix, Arizona area?`

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

CREATE TABLE "overview_by_city" (
  "metropolitan_area" text,
  "media_market_ranking" real,
  "hosted_4_teams_since" real,
  "nfl_team_s" text,
  "mlb_team_s" text,
  "nba_team_s" text,
  "nhl_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many NHL teams are there in the Phoenix, Arizona area?`:
```sql
                SELECT COUNT("nhl_team_s") FROM "overview_by_city" WHERE "metropolitan_area"='Phoenix, Arizona';
```
## Task
Generate a SQL query to answer the following question:
`What is the media market ranking for the Blackhawks?`

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

CREATE TABLE "overview_by_city" (
  "metropolitan_area" text,
  "media_market_ranking" real,
  "hosted_4_teams_since" real,
  "nfl_team_s" text,
  "mlb_team_s" text,
  "nba_team_s" text,
  "nhl_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the media market ranking for the Blackhawks?`:
```sql
                SELECT COUNT("media_market_ranking") FROM "overview_by_city" WHERE "nhl_team_s"='Blackhawks';
```
## Task
Generate a SQL query to answer the following question:
`What is the the name of the NHL team that is in the same market as the NBA team, Nuggets?`

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

CREATE TABLE "overview_by_city" (
  "metropolitan_area" text,
  "media_market_ranking" real,
  "hosted_4_teams_since" real,
  "nfl_team_s" text,
  "mlb_team_s" text,
  "nba_team_s" text,
  "nhl_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the the name of the NHL team that is in the same market as the NBA team, Nuggets?`:
```sql
                SELECT "nhl_team_s" FROM "overview_by_city" WHERE "nba_team_s"='Nuggets';
```
## Task
Generate a SQL query to answer the following question:
`What is the NHL team in the media market ranking number 7?`

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

CREATE TABLE "overview_by_city" (
  "metropolitan_area" text,
  "media_market_ranking" real,
  "hosted_4_teams_since" real,
  "nfl_team_s" text,
  "mlb_team_s" text,
  "nba_team_s" text,
  "nhl_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NHL team in the media market ranking number 7?`:
```sql
                SELECT "nhl_team_s" FROM "overview_by_city" WHERE "media_market_ranking"=7;
```
## Task
Generate a SQL query to answer the following question:
`How many netflow version are there when the vendor and type is enterasys switches?`

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

CREATE TABLE "table1_1206114_2" (
  "vendor_and_type" text,
  "models" text,
  "net_flow_version" text,
  "implementation" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many netflow version are there when the vendor and type is enterasys switches?`:
```sql
                SELECT COUNT("net_flow_version") FROM "table1_1206114_2" WHERE "vendor_and_type"='Enterasys Switches';
```
## Task
Generate a SQL query to answer the following question:
`What are the comments when the  vendor and type is alcatel-lucent routers?`

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

CREATE TABLE "table1_1206114_2" (
  "vendor_and_type" text,
  "models" text,
  "net_flow_version" text,
  "implementation" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the comments when the  vendor and type is alcatel-lucent routers?`:
```sql
                SELECT "comments" FROM "table1_1206114_2" WHERE "vendor_and_type"='Alcatel-Lucent routers';
```
## Task
Generate a SQL query to answer the following question:
`What are the comments when vendor and type is enterasys switches?`

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

CREATE TABLE "table1_1206114_2" (
  "vendor_and_type" text,
  "models" text,
  "net_flow_version" text,
  "implementation" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the comments when vendor and type is enterasys switches?`:
```sql
                SELECT "comments" FROM "table1_1206114_2" WHERE "vendor_and_type"='Enterasys Switches';
```
## Task
Generate a SQL query to answer the following question:
`What is the netflow version when vendor and type is pc and servers?`

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

CREATE TABLE "table1_1206114_2" (
  "vendor_and_type" text,
  "models" text,
  "net_flow_version" text,
  "implementation" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the netflow version when vendor and type is pc and servers?`:
```sql
                SELECT "net_flow_version" FROM "table1_1206114_2" WHERE "vendor_and_type"='PC and Servers';
```
## Task
Generate a SQL query to answer the following question:
`What are the comments when the implementation is software running on central processor module?`

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

CREATE TABLE "table1_1206114_2" (
  "vendor_and_type" text,
  "models" text,
  "net_flow_version" text,
  "implementation" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the comments when the implementation is software running on central processor module?`:
```sql
                SELECT "comments" FROM "table1_1206114_2" WHERE "implementation"='Software running on Central Processor Module';
```
## Task
Generate a SQL query to answer the following question:
`What is the implementation when the netflow version is v5, v8, v9, ipfix?`

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

CREATE TABLE "table1_1206114_2" (
  "vendor_and_type" text,
  "models" text,
  "net_flow_version" text,
  "implementation" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the implementation when the netflow version is v5, v8, v9, ipfix?`:
```sql
                SELECT "implementation" FROM "table1_1206114_2" WHERE "net_flow_version"='v5, v8, v9, IPFIX';
```
## Task
Generate a SQL query to answer the following question:
`Name the minimum for prohibition?`

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

CREATE TABLE "results_of_the_national_referendum_on_pr" (
  "jurisdiction" text,
  "for_prohibition" real,
  "percent_for" text,
  "against_prohibition" real,
  "percent_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minimum for prohibition?`:
```sql
                SELECT MIN("for_prohibition") FROM "results_of_the_national_referendum_on_pr";
```
## Task
Generate a SQL query to answer the following question:
`What is the number of jurisdiction for 57.3 percent?`

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

CREATE TABLE "results_of_the_national_referendum_on_pr" (
  "jurisdiction" text,
  "for_prohibition" real,
  "percent_for" text,
  "against_prohibition" real,
  "percent_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of jurisdiction for 57.3 percent?`:
```sql
                SELECT COUNT("jurisdiction") FROM "results_of_the_national_referendum_on_pr" WHERE "percent_for"='57.3';
```
## Task
Generate a SQL query to answer the following question:
`Name the max for prohibition.`

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

CREATE TABLE "results_of_the_national_referendum_on_pr" (
  "jurisdiction" text,
  "for_prohibition" real,
  "percent_for" text,
  "against_prohibition" real,
  "percent_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max for prohibition.`:
```sql
                SELECT MAX("for_prohibition") FROM "results_of_the_national_referendum_on_pr";
```
## Task
Generate a SQL query to answer the following question:
`What is the percent for when against prohibition is 2978?`

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

CREATE TABLE "results_of_the_national_referendum_on_pr" (
  "jurisdiction" text,
  "for_prohibition" real,
  "percent_for" text,
  "against_prohibition" real,
  "percent_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percent for when against prohibition is 2978?`:
```sql
                SELECT "percent_for" FROM "results_of_the_national_referendum_on_pr" WHERE "against_prohibition"=2978;
```
## Task
Generate a SQL query to answer the following question:
`What is the percent for in manitoba?`

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

CREATE TABLE "results_of_the_national_referendum_on_pr" (
  "jurisdiction" text,
  "for_prohibition" real,
  "percent_for" text,
  "against_prohibition" real,
  "percent_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percent for in manitoba?`:
```sql
                SELECT "percent_for" FROM "results_of_the_national_referendum_on_pr" WHERE "jurisdiction"='Manitoba';
```
## Task
Generate a SQL query to answer the following question:
`How many trains leave from puri?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many trains leave from puri?`:
```sql
                SELECT COUNT("train_name") FROM "train_services" WHERE "origin"='Puri';
```
## Task
Generate a SQL query to answer the following question:
`What train number is heading to amritsar?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What train number is heading to amritsar?`:
```sql
                SELECT "train_no" FROM "train_services" WHERE "destination"='Amritsar';
```
## Task
Generate a SQL query to answer the following question:
`How often does a train leave sealdah?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `How often does a train leave sealdah?`:
```sql
                SELECT "frequency" FROM "train_services" WHERE "origin"='Sealdah';
```
## Task
Generate a SQL query to answer the following question:
`Where does the bg express train end?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does the bg express train end?`:
```sql
                SELECT "destination" FROM "train_services" WHERE "train_name"='BG Express';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of train number 15647/48?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of train number 15647/48?`:
```sql
                SELECT "train_name" FROM "train_services" WHERE "train_no"='15647/48';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of nationality in 1992?`

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

CREATE TABLE "table1_12086015_7" (
  "player" text,
  "nationality" text,
  "finals" real,
  "win_loss" text,
  "year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of nationality in 1992?`:
```sql
                SELECT COUNT("nationality") FROM "table1_12086015_7" WHERE "year_s"='1992';
```
## Task
Generate a SQL query to answer the following question:
`Who is the academic & University affairs when the Human resources & operations is N. Charles Hamilton?`

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

CREATE TABLE "executive_commissioners" (
  "year" text,
  "communications_and_corporate_affairs" text,
  "human_resources_operations" text,
  "local_affairs" text,
  "academic_university_affairs" text,
  "external_affairs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the academic & University affairs when the Human resources & operations is N. Charles Hamilton?`:
```sql
                SELECT "academic_university_affairs" FROM "executive_commissioners" WHERE "human_resources_operations"='N. Charles Hamilton';
```
## Task
Generate a SQL query to answer the following question:
`What year was communications and corporate affairs held by Jeff Rotman?`

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

CREATE TABLE "executive_commissioners" (
  "year" text,
  "communications_and_corporate_affairs" text,
  "human_resources_operations" text,
  "local_affairs" text,
  "academic_university_affairs" text,
  "external_affairs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was communications and corporate affairs held by Jeff Rotman?`:
```sql
                SELECT "year" FROM "executive_commissioners" WHERE "communications_and_corporate_affairs"='Jeff Rotman';
```
## Task
Generate a SQL query to answer the following question:
`What was the built data for Knocklayd rebuild?`

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

CREATE TABLE "building_and_withdrawal_data" (
  "number" real,
  "builder" text,
  "built" text,
  "rebuilt" text,
  "name_as_rebuilt" text,
  "scrapped_sold" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the built data for Knocklayd rebuild?`:
```sql
                SELECT "built" FROM "building_and_withdrawal_data" WHERE "name_as_rebuilt"='Knocklayd';
```
## Task
Generate a SQL query to answer the following question:
`How many times does the  rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data contain cannot handle non-empty timestamp argument! 1954?`

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

CREATE TABLE "building_and_withdrawal_data" (
  "number" real,
  "builder" text,
  "built" text,
  "rebuilt" text,
  "name_as_rebuilt" text,
  "scrapped_sold" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times does the  rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data contain cannot handle non-empty timestamp argument! 1954?`:
```sql
                SELECT COUNT("number") FROM "building_and_withdrawal_data" WHERE "rebuilt"='Cannot handle non-empty timestamp argument! 1929' AND "scrapped_sold"='Cannot handle non-empty timestamp argument! 1954';
```
## Task
Generate a SQL query to answer the following question:
`What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947?`

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

CREATE TABLE "building_and_withdrawal_data" (
  "number" real,
  "builder" text,
  "built" text,
  "rebuilt" text,
  "name_as_rebuilt" text,
  "scrapped_sold" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947?`:
```sql
                SELECT "built" FROM "building_and_withdrawal_data" WHERE "scrapped_sold"='Cannot handle non-empty timestamp argument! 1947';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the rebuilt data cannot handle non-empty timestamp argument! 1934?`

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

CREATE TABLE "building_and_withdrawal_data" (
  "number" real,
  "builder" text,
  "built" text,
  "rebuilt" text,
  "name_as_rebuilt" text,
  "scrapped_sold" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the rebuilt data cannot handle non-empty timestamp argument! 1934?`:
```sql
                SELECT COUNT("number") FROM "building_and_withdrawal_data" WHERE "rebuilt"='Cannot handle non-empty timestamp argument! 1934';
```
## Task
Generate a SQL query to answer the following question:
`What is the built data for number 34?`

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

CREATE TABLE "building_and_withdrawal_data" (
  "number" real,
  "builder" text,
  "built" text,
  "rebuilt" text,
  "name_as_rebuilt" text,
  "scrapped_sold" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the built data for number 34?`:
```sql
                SELECT "built" FROM "building_and_withdrawal_data" WHERE "number"=34;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number listed?`

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

CREATE TABLE "building_and_withdrawal_data" (
  "number" real,
  "builder" text,
  "built" text,
  "rebuilt" text,
  "name_as_rebuilt" text,
  "scrapped_sold" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number listed?`:
```sql
                SELECT MAX("number") FROM "building_and_withdrawal_data";
```