cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When it's the 2nd round of the open cup what is the playoffs?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `When it's the 2nd round of the open cup what is the playoffs?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "open_cup"='2nd Round';
```
## Task
Generate a SQL query to answer the following question:
`What league has an average attendance of 1452?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "u_s_open_cup" text,
  "avg_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What league has an average attendance of 1452?`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "avg_attendance"=1452;
```
## Task
Generate a SQL query to answer the following question:
`What year at the US Open Cup quarterfinals, were the playoffs in the semifinals for the USL second division?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "u_s_open_cup" text,
  "avg_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year at the US Open Cup quarterfinals, were the playoffs in the semifinals for the USL second division?`:
```sql
                SELECT "year" FROM "year_by_year" WHERE "league"='USL Second Division' AND "playoffs"='Semifinals' AND "u_s_open_cup"='Quarterfinals';
```
## Task
Generate a SQL query to answer the following question:
`Name the original air date for production code of 3t7501`

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

CREATE TABLE "table1_19396259_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for production code of 3t7501`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_19396259_1" WHERE "production_code"='3T7501';
```
## Task
Generate a SQL query to answer the following question:
`Name the title directed by charles beeson by jeremy carver`

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

CREATE TABLE "table1_19396259_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title directed by charles beeson by jeremy carver`:
```sql
                SELECT "title" FROM "table1_19396259_1" WHERE "directed_by"='Charles Beeson' AND "written_by"='Jeremy Carver';
```
## Task
Generate a SQL query to answer the following question:
`Name the directed by for production code for 3t7509`

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

CREATE TABLE "table1_19396259_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the directed by for production code for 3t7509`:
```sql
                SELECT "directed_by" FROM "table1_19396259_1" WHERE "production_code"='3T7509';
```
## Task
Generate a SQL query to answer the following question:
`What's the season number of the episode originally aired on October 14, 2008?`

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

CREATE TABLE "table1_19401346_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the season number of the episode originally aired on October 14, 2008?`:
```sql
                SELECT "no_in_season" FROM "table1_19401346_1" WHERE "original_air_date"='October 14, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode originally aired on September 23, 2008?`

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

CREATE TABLE "table1_19401346_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode originally aired on September 23, 2008?`:
```sql
                SELECT "title" FROM "table1_19401346_1" WHERE "original_air_date"='September 23, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode seen by 9.35 million people in the US?`

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

CREATE TABLE "table1_19401346_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode seen by 9.35 million people in the US?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_19401346_1" WHERE "u_s_viewers_millions"='9.35';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode with production code 10018?`

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

CREATE TABLE "table1_19401346_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode with production code 10018?`:
```sql
                SELECT "title" FROM "table1_19401346_1" WHERE "production_code"=10018;
```
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode with season number 1?`

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

CREATE TABLE "table1_19401346_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode with season number 1?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_19401346_1" WHERE "no_in_season"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many places has the rank changed since 2006, for Clane? `

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

CREATE TABLE "see_also" (
  "rank_2011" real,
  "change_since_2006" text,
  "urban_area" text,
  "county" text,
  "population_2011" real,
  "increase_since_2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many places has the rank changed since 2006, for Clane? `:
```sql
                SELECT "change_since_2006" FROM "see_also" WHERE "urban_area"='Clane';
```
## Task
Generate a SQL query to answer the following question:
`In what counties is the 2011 population 17908?`

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

CREATE TABLE "see_also" (
  "rank_2011" real,
  "change_since_2006" text,
  "urban_area" text,
  "county" text,
  "population_2011" real,
  "increase_since_2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what counties is the 2011 population 17908?`:
```sql
                SELECT "county" FROM "see_also" WHERE "population_2011"=17908;
```
## Task
Generate a SQL query to answer the following question:
`In what urban area is the 2011 population 21561? `

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

CREATE TABLE "see_also" (
  "rank_2011" real,
  "change_since_2006" text,
  "urban_area" text,
  "county" text,
  "population_2011" real,
  "increase_since_2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what urban area is the 2011 population 21561? `:
```sql
                SELECT "urban_area" FROM "see_also" WHERE "population_2011"=21561;
```
## Task
Generate a SQL query to answer the following question:
`How many places did the rank change since 22006 for County Leitrim? `

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

CREATE TABLE "see_also" (
  "rank_2011" real,
  "change_since_2006" text,
  "urban_area" text,
  "county" text,
  "population_2011" real,
  "increase_since_2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many places did the rank change since 22006 for County Leitrim? `:
```sql
                SELECT COUNT("change_since_2006") FROM "see_also" WHERE "county"='County Leitrim';
```
## Task
Generate a SQL query to answer the following question:
`Which urban area has a 2011 population of 5010? `

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

CREATE TABLE "see_also" (
  "rank_2011" real,
  "change_since_2006" text,
  "urban_area" text,
  "county" text,
  "population_2011" real,
  "increase_since_2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which urban area has a 2011 population of 5010? `:
```sql
                SELECT "urban_area" FROM "see_also" WHERE "population_2011"=5010;
```
## Task
Generate a SQL query to answer the following question:
`what were the result in semifinals when saengsawang ( tha ) l 9-15 was  in 1/8 finals?`

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

CREATE TABLE "table1_19398910_4" (
  "athlete" text,
  "class" text,
  "event" text,
  "bout_1" text,
  "bout_2" text,
  "bout_3" text,
  "bout_4" text,
  "bout_5" text,
  "bout_6" text,
  "rank" text,
  "1_8_finals" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `what were the result in semifinals when saengsawang ( tha ) l 9-15 was  in 1/8 finals?`:
```sql
                SELECT "semifinals" FROM "table1_19398910_4" WHERE "1_8_finals"='Saengsawang ( THA ) L 9-15';
```
## Task
Generate a SQL query to answer the following question:
`wich were the events when bout 2 was zhang ( chn ) l 0-5?`

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

CREATE TABLE "table1_19398910_4" (
  "athlete" text,
  "class" text,
  "event" text,
  "bout_1" text,
  "bout_2" text,
  "bout_3" text,
  "bout_4" text,
  "bout_5" text,
  "bout_6" text,
  "rank" text,
  "1_8_finals" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `wich were the events when bout 2 was zhang ( chn ) l 0-5?`:
```sql
                SELECT "event" FROM "table1_19398910_4" WHERE "bout_2"='Zhang ( CHN ) L 0-5';
```
## Task
Generate a SQL query to answer the following question:
`Which were the bout 1 when the bout 5 was andreev ( rus ) w 5-2?`

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

CREATE TABLE "table1_19398910_4" (
  "athlete" text,
  "class" text,
  "event" text,
  "bout_1" text,
  "bout_2" text,
  "bout_3" text,
  "bout_4" text,
  "bout_5" text,
  "bout_6" text,
  "rank" text,
  "1_8_finals" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which were the bout 1 when the bout 5 was andreev ( rus ) w 5-2?`:
```sql
                SELECT "bout_1" FROM "table1_19398910_4" WHERE "bout_5"='Andreev ( RUS ) W 5-2';
```
## Task
Generate a SQL query to answer the following question:
`when Sanchez ( esp ) w 5-0 were the bout 6, which were the class?`

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

CREATE TABLE "table1_19398910_4" (
  "athlete" text,
  "class" text,
  "event" text,
  "bout_1" text,
  "bout_2" text,
  "bout_3" text,
  "bout_4" text,
  "bout_5" text,
  "bout_6" text,
  "rank" text,
  "1_8_finals" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `when Sanchez ( esp ) w 5-0 were the bout 6, which were the class?`:
```sql
                SELECT "class" FROM "table1_19398910_4" WHERE "bout_6"='Sanchez ( ESP ) W 5-0';
```
## Task
Generate a SQL query to answer the following question:
`How many attempts for Bobby Layne?`

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

CREATE TABLE "team_career_passing_records" (
  "name" text,
  "completions" real,
  "attempts" real,
  "completion_pct" text,
  "yards" real,
  "touchdowns" real,
  "interceptions" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many attempts for Bobby Layne?`:
```sql
                SELECT MIN("attempts") FROM "team_career_passing_records" WHERE "name"='Bobby Layne';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of interceptions?`

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

CREATE TABLE "team_career_passing_records" (
  "name" text,
  "completions" real,
  "attempts" real,
  "completion_pct" text,
  "yards" real,
  "touchdowns" real,
  "interceptions" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of interceptions?`:
```sql
                SELECT MAX("interceptions") FROM "team_career_passing_records";
```
## Task
Generate a SQL query to answer the following question:
`How many total yards for Bobby Layne?`

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

CREATE TABLE "team_career_passing_records" (
  "name" text,
  "completions" real,
  "attempts" real,
  "completion_pct" text,
  "yards" real,
  "touchdowns" real,
  "interceptions" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total yards for Bobby Layne?`:
```sql
                SELECT MAX("yards") FROM "team_career_passing_records" WHERE "name"='Bobby Layne';
```
## Task
Generate a SQL query to answer the following question:
`Which QB had a rating of 72.3?`

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

CREATE TABLE "team_career_passing_records" (
  "name" text,
  "completions" real,
  "attempts" real,
  "completion_pct" text,
  "yards" real,
  "touchdowns" real,
  "interceptions" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which QB had a rating of 72.3?`:
```sql
                SELECT "name" FROM "team_career_passing_records" WHERE "qb_rating"='72.3';
```
## Task
Generate a SQL query to answer the following question:
`How many QB ratings for the player with 1069 completions?`

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

CREATE TABLE "team_career_passing_records" (
  "name" text,
  "completions" real,
  "attempts" real,
  "completion_pct" text,
  "yards" real,
  "touchdowns" real,
  "interceptions" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many QB ratings for the player with 1069 completions?`:
```sql
                SELECT COUNT("qb_rating") FROM "team_career_passing_records" WHERE "completions"=1069;
```
## Task
Generate a SQL query to answer the following question:
`How many yardage figures for the player with 72.3 QB rating?`

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

CREATE TABLE "team_career_passing_records" (
  "name" text,
  "completions" real,
  "attempts" real,
  "completion_pct" text,
  "yards" real,
  "touchdowns" real,
  "interceptions" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many yardage figures for the player with 72.3 QB rating?`:
```sql
                SELECT COUNT("yards") FROM "team_career_passing_records" WHERE "qb_rating"='72.3';
```
## Task
Generate a SQL query to answer the following question:
`In how many locations was the game against Barcelona Dragons played?`

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

CREATE TABLE "table1_1941183_2" (
  "week" real,
  "date" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In how many locations was the game against Barcelona Dragons played?`:
```sql
                SELECT COUNT("game_site") FROM "table1_1941183_2" WHERE "opponent"='Barcelona Dragons';
```
## Task
Generate a SQL query to answer the following question:
`how many posiitions did saudi arabia land on`

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

CREATE TABLE "table1_19412902_1" (
  "pos" real,
  "member_association" text,
  "points_total_500" real,
  "clubs" real,
  "group_stage" real,
  "play_off" real,
  "afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many posiitions did saudi arabia land on`:
```sql
                SELECT COUNT("pos") FROM "table1_19412902_1" WHERE "member_association"='Saudi Arabia';
```
## Task
Generate a SQL query to answer the following question:
`what is the play-off in group stage 4 and clubs is 12`

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

CREATE TABLE "table1_19412902_1" (
  "pos" real,
  "member_association" text,
  "points_total_500" real,
  "clubs" real,
  "group_stage" real,
  "play_off" real,
  "afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the play-off in group stage 4 and clubs is 12`:
```sql
                SELECT "play_off" FROM "table1_19412902_1" WHERE "group_stage"=4 AND "clubs"=12;
```
## Task
Generate a SQL query to answer the following question:
`which group stage was there 0 play-offs and 12 clubs played in it`

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

CREATE TABLE "table1_19412902_1" (
  "pos" real,
  "member_association" text,
  "points_total_500" real,
  "clubs" real,
  "group_stage" real,
  "play_off" real,
  "afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `which group stage was there 0 play-offs and 12 clubs played in it`:
```sql
                SELECT COUNT("group_stage") FROM "table1_19412902_1" WHERE "play_off"=0 AND "clubs"=12;
```
## Task
Generate a SQL query to answer the following question:
`which club in group stage 4 had member association iran`

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

CREATE TABLE "table1_19412902_1" (
  "pos" real,
  "member_association" text,
  "points_total_500" real,
  "clubs" real,
  "group_stage" real,
  "play_off" real,
  "afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `which club in group stage 4 had member association iran`:
```sql
                SELECT "clubs" FROM "table1_19412902_1" WHERE "group_stage"=4 AND "member_association"='Iran';
```
## Task
Generate a SQL query to answer the following question:
`who write the episode that have 14.39 million viewers`

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

CREATE TABLE "table1_19417244_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who write the episode that have 14.39 million viewers`:
```sql
                SELECT "written_by" FROM "table1_19417244_2" WHERE "u_s_viewers_millions"='14.39';
```
## Task
Generate a SQL query to answer the following question:
`how many people directed the episode that is called "dead inside"`

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

CREATE TABLE "table1_19417244_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many people directed the episode that is called "dead inside"`:
```sql
                SELECT COUNT("directed_by") FROM "table1_19417244_2" WHERE "title"='\"Dead Inside\"';
```
## Task
Generate a SQL query to answer the following question:
`who directed the episode that have 14.59 million viewers`

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

CREATE TABLE "table1_19417244_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who directed the episode that have 14.59 million viewers`:
```sql
                SELECT "directed_by" FROM "table1_19417244_2" WHERE "u_s_viewers_millions"='14.59';
```
## Task
Generate a SQL query to answer the following question:
`who write the episode 5 in no. in season`

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

CREATE TABLE "table1_19417244_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who write the episode 5 in no. in season`:
```sql
                SELECT "written_by" FROM "table1_19417244_2" WHERE "no_in_season"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many clubs are there in the Korea Republic?`

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

CREATE TABLE "table1_19412902_2" (
  "pos" real,
  "member_association" text,
  "points_total_500" real,
  "clubs" text,
  "group_stage" real,
  "play_off" real,
  "afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs are there in the Korea Republic?`:
```sql
                SELECT "clubs" FROM "table1_19412902_2" WHERE "member_association"='Korea Republic';
```
## Task
Generate a SQL query to answer the following question:
`At what position is the association with 279 points?`

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

CREATE TABLE "table1_19412902_2" (
  "pos" real,
  "member_association" text,
  "points_total_500" real,
  "clubs" text,
  "group_stage" real,
  "play_off" real,
  "afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `At what position is the association with 279 points?`:
```sql
                SELECT MIN("pos") FROM "table1_19412902_2" WHERE "points_total_500"=279;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest position?`

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

CREATE TABLE "table1_19412902_2" (
  "pos" real,
  "member_association" text,
  "points_total_500" real,
  "clubs" text,
  "group_stage" real,
  "play_off" real,
  "afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest position?`:
```sql
                SELECT MAX("pos") FROM "table1_19412902_2";
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year a house opened?`

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

CREATE TABLE "whanau_house_system" (
  "house_name" text,
  "house_mascot" text,
  "house_colour" text,
  "year_opened" real,
  "house_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year a house opened?`:
```sql
                SELECT MIN("year_opened") FROM "whanau_house_system";
```
## Task
Generate a SQL query to answer the following question:
`How many house colours are associated with house names of Hillary?`

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

CREATE TABLE "whanau_house_system" (
  "house_name" text,
  "house_mascot" text,
  "house_colour" text,
  "year_opened" real,
  "house_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many house colours are associated with house names of Hillary?`:
```sql
                SELECT COUNT("house_colour") FROM "whanau_house_system" WHERE "house_name"='Hillary';
```
## Task
Generate a SQL query to answer the following question:
`What is the house colour associated with the house name of Kupe?`

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

CREATE TABLE "whanau_house_system" (
  "house_name" text,
  "house_mascot" text,
  "house_colour" text,
  "year_opened" real,
  "house_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the house colour associated with the house name of Kupe?`:
```sql
                SELECT "house_colour" FROM "whanau_house_system" WHERE "house_name"='Kupe';
```
## Task
Generate a SQL query to answer the following question:
`How many house mascots are associated with yellow house colours?`

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

CREATE TABLE "whanau_house_system" (
  "house_name" text,
  "house_mascot" text,
  "house_colour" text,
  "year_opened" real,
  "house_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many house mascots are associated with yellow house colours?`:
```sql
                SELECT COUNT("house_mascot") FROM "whanau_house_system" WHERE "house_colour"='Yellow';
```
## Task
Generate a SQL query to answer the following question:
`what is the title of the episode where b b is 20/16`

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

CREATE TABLE "table1_19485888_1" (
  "o_o_corresponds_to_the_official_order_as_listed_by_institut_national_de_l_audiovisuel_ina_and_animez_vous_com" text,
  "b_b_corresponds_to_tf1s_broadcast_schedule" text,
  "title_french_english" text,
  "original_beechwood_bunny_tale_source_material" text,
  "air_date_france" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title of the episode where b b is 20/16`:
```sql
                SELECT "title_french_english" FROM "table1_19485888_1" WHERE "b_b_corresponds_to_tf1s_broadcast_schedule"='20/16';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum losses for the Kansas City Chiefs?`

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

CREATE TABLE "notes" (
  "team" text,
  "games" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" text,
  "playoff_berths" real,
  "division_titles" real,
  "postseason_record" text,
  "super_bowl_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum losses for the Kansas City Chiefs?`:
```sql
                SELECT MIN("losses") FROM "notes" WHERE "team"='Kansas City Chiefs';
```
## Task
Generate a SQL query to answer the following question:
`How many division titles are there when the win pc is .558?`

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

CREATE TABLE "notes" (
  "team" text,
  "games" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" text,
  "playoff_berths" real,
  "division_titles" real,
  "postseason_record" text,
  "super_bowl_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many division titles are there when the win pc is .558?`:
```sql
                SELECT "division_titles" FROM "notes" WHERE "win_pct"='.558';
```
## Task
Generate a SQL query to answer the following question:
`How many villages are there in the Magway region?`

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

CREATE TABLE "administrative_divisions_regions_and_sta" (
  "no" real,
  "state_region" text,
  "districts" real,
  "town_ships" real,
  "cities_towns" real,
  "wards" real,
  "village_groups" real,
  "villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many villages are there in the Magway region?`:
```sql
                SELECT "villages" FROM "administrative_divisions_regions_and_sta" WHERE "state_region"='Magway Region';
```
## Task
Generate a SQL query to answer the following question:
`How many townships are there in region number 2?`

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

CREATE TABLE "administrative_divisions_regions_and_sta" (
  "no" real,
  "state_region" text,
  "districts" real,
  "town_ships" real,
  "cities_towns" real,
  "wards" real,
  "village_groups" real,
  "villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many townships are there in region number 2?`:
```sql
                SELECT MAX("town_ships") FROM "administrative_divisions_regions_and_sta" WHERE "no"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many townships are there in the region with 376 village groups?`

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

CREATE TABLE "administrative_divisions_regions_and_sta" (
  "no" real,
  "state_region" text,
  "districts" real,
  "town_ships" real,
  "cities_towns" real,
  "wards" real,
  "village_groups" real,
  "villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many townships are there in the region with 376 village groups?`:
```sql
                SELECT MAX("town_ships") FROM "administrative_divisions_regions_and_sta" WHERE "village_groups"=376;
```
## Task
Generate a SQL query to answer the following question:
`How many poles for the Netherlands?`

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

CREATE TABLE "by_name" (
  "name" text,
  "country" text,
  "seasons" text,
  "championship_titles" text,
  "race_entries_starts" text,
  "poles" real,
  "wins" real,
  "podiums" real,
  "fastest_laps" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles for the Netherlands?`:
```sql
                SELECT MAX("poles") FROM "by_name" WHERE "country"='Netherlands';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons for Monaco?`

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

CREATE TABLE "by_name" (
  "name" text,
  "country" text,
  "seasons" text,
  "championship_titles" text,
  "race_entries_starts" text,
  "poles" real,
  "wins" real,
  "podiums" real,
  "fastest_laps" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons for Monaco?`:
```sql
                SELECT "seasons" FROM "by_name" WHERE "country"='Monaco';
```
## Task
Generate a SQL query to answer the following question:
`Who is the competitor from France with 10 starts?`

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

CREATE TABLE "by_name" (
  "name" text,
  "country" text,
  "seasons" text,
  "championship_titles" text,
  "race_entries_starts" text,
  "poles" real,
  "wins" real,
  "podiums" real,
  "fastest_laps" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the competitor from France with 10 starts?`:
```sql
                SELECT "name" FROM "by_name" WHERE "country"='France' AND "race_entries_starts"='10';
```
## Task
Generate a SQL query to answer the following question:
`When 1180 am is the frequency how many call signs are there?`

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

CREATE TABLE "table1_1949746_1" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "licensee" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1180 am is the frequency how many call signs are there?`:
```sql
                SELECT COUNT("call_sign") FROM "table1_1949746_1" WHERE "frequency"='1180 AM';
```
## Task
Generate a SQL query to answer the following question:
`When portsmouth is the city of license who is the licensee?`

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

CREATE TABLE "table1_1949746_1" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "licensee" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `When portsmouth is the city of license who is the licensee?`:
```sql
                SELECT "licensee" FROM "table1_1949746_1" WHERE "city_of_license"='Portsmouth';
```
## Task
Generate a SQL query to answer the following question:
`When 790 am is the frequency what is the format?`

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

CREATE TABLE "table1_1949746_1" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "licensee" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 790 am is the frequency what is the format?`:
```sql
                SELECT "format" FROM "table1_1949746_1" WHERE "frequency"='790 AM';
```
## Task
Generate a SQL query to answer the following question:
`When 90.7 fm is the frequency who is the licensee?`

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

CREATE TABLE "table1_1949746_1" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "licensee" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 90.7 fm is the frequency who is the licensee?`:
```sql
                SELECT "licensee" FROM "table1_1949746_1" WHERE "frequency"='90.7 FM';
```
## Task
Generate a SQL query to answer the following question:
`How many drivers does India have/`

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

CREATE TABLE "by_nationality" (
  "country" text,
  "total_drivers" real,
  "champions" real,
  "championships" real,
  "current_march_20_2010" real,
  "first_driver_s" text,
  "last_current_driver_s_march_20_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers does India have/`:
```sql
                SELECT COUNT("total_drivers") FROM "by_nationality" WHERE "country"='India';
```
## Task
Generate a SQL query to answer the following question:
`How many championships does Pakistan have?`

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

CREATE TABLE "by_nationality" (
  "country" text,
  "total_drivers" real,
  "champions" real,
  "championships" real,
  "current_march_20_2010" real,
  "first_driver_s" text,
  "last_current_driver_s_march_20_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many championships does Pakistan have?`:
```sql
                SELECT COUNT("championships") FROM "by_nationality" WHERE "country"='Pakistan';
```
## Task
Generate a SQL query to answer the following question:
`How many countries have 2 current drivers as of March 20, 2010?`

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

CREATE TABLE "by_nationality" (
  "country" text,
  "total_drivers" real,
  "champions" real,
  "championships" real,
  "current_march_20_2010" real,
  "first_driver_s" text,
  "last_current_driver_s_march_20_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries have 2 current drivers as of March 20, 2010?`:
```sql
                SELECT COUNT("total_drivers") FROM "by_nationality" WHERE "current_march_20_2010"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many current drivers, as of March 20, 2010 does Denmark have?`

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

CREATE TABLE "by_nationality" (
  "country" text,
  "total_drivers" real,
  "champions" real,
  "championships" real,
  "current_march_20_2010" real,
  "first_driver_s" text,
  "last_current_driver_s_march_20_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many current drivers, as of March 20, 2010 does Denmark have?`:
```sql
                SELECT "current_march_20_2010" FROM "by_nationality" WHERE "country"='Denmark';
```
## Task
Generate a SQL query to answer the following question:
`What in the minimum number of championships won by a nation?`

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

CREATE TABLE "by_nationality" (
  "country" text,
  "total_drivers" real,
  "champions" real,
  "championships" real,
  "current_march_20_2010" real,
  "first_driver_s" text,
  "last_current_driver_s_march_20_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What in the minimum number of championships won by a nation?`:
```sql
                SELECT MIN("championships") FROM "by_nationality";
```
## Task
Generate a SQL query to answer the following question:
`Where was the season that ended on June 25 located?`

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

CREATE TABLE "table1_1949994_7" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" text,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the season that ended on June 25 located?`:
```sql
                SELECT "country" FROM "table1_1949994_7" WHERE "end_date"='June 25';
```
## Task
Generate a SQL query to answer the following question:
`When did the season that end in July ? start?`

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

CREATE TABLE "table1_1949994_7" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" text,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season that end in July ? start?`:
```sql
                SELECT "start_date" FROM "table1_1949994_7" WHERE "end_date"='July ?';
```
## Task
Generate a SQL query to answer the following question:
`When did the season with 1 team format premiere?`

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

CREATE TABLE "table1_1949994_7" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" text,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season with 1 team format premiere?`:
```sql
                SELECT "premiere_air_dates" FROM "table1_1949994_7" WHERE "format"='1 Team';
```
## Task
Generate a SQL query to answer the following question:
`What's the format of the season that ended on June 25?`

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

CREATE TABLE "table1_1949994_7" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" text,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the format of the season that ended on June 25?`:
```sql
                SELECT "format" FROM "table1_1949994_7" WHERE "end_date"='June 25';
```
## Task
Generate a SQL query to answer the following question:
`What's season 3's premiere date?`

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

CREATE TABLE "table1_1949994_7" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" text,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's season 3's premiere date?`:
```sql
                SELECT "premiere_air_dates" FROM "table1_1949994_7" WHERE "no"=3;
```
## Task
Generate a SQL query to answer the following question:
`When did the season located in the Netherlands premier?`

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

CREATE TABLE "table1_1949994_7" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" text,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season located in the Netherlands premier?`:
```sql
                SELECT "premiere_air_dates" FROM "table1_1949994_7" WHERE "country"='The Netherlands';
```
## Task
Generate a SQL query to answer the following question:
`Name the viewers for the episode directed by tony phelan`

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

CREATE TABLE "table1_19501664_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the viewers for the episode directed by tony phelan`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_19501664_1" WHERE "directed_by"='Tony Phelan';
```
## Task
Generate a SQL query to answer the following question:
`Name the original air date for 15.74 viewers`

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

CREATE TABLE "table1_19501664_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for 15.74 viewers`:
```sql
                SELECT "original_air_date" FROM "table1_19501664_1" WHERE "u_s_viewers_millions"='15.74';
```
## Task
Generate a SQL query to answer the following question:
`Name the title for us viewers being 18.29`

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

CREATE TABLE "table1_19501664_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title for us viewers being 18.29`:
```sql
                SELECT "title" FROM "table1_19501664_1" WHERE "u_s_viewers_millions"='18.29';
```
## Task
Generate a SQL query to answer the following question:
`Name the platforms for cityengine`

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

CREATE TABLE "table1_19495707_1" (
  "application" text,
  "latest_release_date_and_version" text,
  "developed_by" text,
  "platforms" text,
  "mainly_used_for" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the platforms for cityengine`:
```sql
                SELECT "platforms" FROM "table1_19495707_1" WHERE "application"='CityEngine';
```
## Task
Generate a SQL query to answer the following question:
`Name the license for e-on vue`

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

CREATE TABLE "table1_19495707_1" (
  "application" text,
  "latest_release_date_and_version" text,
  "developed_by" text,
  "platforms" text,
  "mainly_used_for" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the license for e-on vue`:
```sql
                SELECT "license" FROM "table1_19495707_1" WHERE "application"='E-on Vue';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of developed by for solid edge`

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

CREATE TABLE "table1_19495707_1" (
  "application" text,
  "latest_release_date_and_version" text,
  "developed_by" text,
  "platforms" text,
  "mainly_used_for" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of developed by for solid edge`:
```sql
                SELECT COUNT("developed_by") FROM "table1_19495707_1" WHERE "application"='Solid Edge';
```
## Task
Generate a SQL query to answer the following question:
`Name the license for 2009-05-25 v 7.61`

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

CREATE TABLE "table1_19495707_1" (
  "application" text,
  "latest_release_date_and_version" text,
  "developed_by" text,
  "platforms" text,
  "mainly_used_for" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the license for 2009-05-25 v 7.61`:
```sql
                SELECT "license" FROM "table1_19495707_1" WHERE "latest_release_date_and_version"='2009-05-25 v 7.61';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of application for modeling, computer aided design, animation`

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

CREATE TABLE "table1_19495707_1" (
  "application" text,
  "latest_release_date_and_version" text,
  "developed_by" text,
  "platforms" text,
  "mainly_used_for" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of application for modeling, computer aided design, animation`:
```sql
                SELECT COUNT("application") FROM "table1_19495707_1" WHERE "mainly_used_for"='Modeling, Computer Aided Design, Animation';
```