cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers did watch Episode 5?`

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

CREATE TABLE "table1_12919003_3" (
  "num" real,
  "episode" text,
  "writer" text,
  "director" text,
  "viewers_millions" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of viewers did watch Episode 5?`:
```sql
                SELECT "viewers_millions" FROM "table1_12919003_3" WHERE "episode"='Episode 5';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of directors whose episodes have been seen by 9.14 million viewers?`

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

CREATE TABLE "table1_12919003_3" (
  "num" real,
  "episode" text,
  "writer" text,
  "director" text,
  "viewers_millions" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of directors whose episodes have been seen by 9.14 million viewers?`:
```sql
                SELECT COUNT("director") FROM "table1_12919003_3" WHERE "viewers_millions"='9.14';
```
## Task
Generate a SQL query to answer the following question:
`Who directed Episode 5?`

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

CREATE TABLE "table1_12919003_2" (
  "no" real,
  "episode" text,
  "writer" text,
  "director" text,
  "viewers_millions" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed Episode 5?`:
```sql
                SELECT "director" FROM "table1_12919003_2" WHERE "episode"='Episode 5';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers did Episode 5 have?`

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

CREATE TABLE "table1_12919003_2" (
  "no" real,
  "episode" text,
  "writer" text,
  "director" text,
  "viewers_millions" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers did Episode 5 have?`:
```sql
                SELECT "viewers_millions" FROM "table1_12919003_2" WHERE "episode"='Episode 5';
```
## Task
Generate a SQL query to answer the following question:
` what's the no with current club being panathinaikos and position being forward`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the no with current club being panathinaikos and position being forward`:
```sql
                SELECT COUNT("no") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='Panathinaikos' AND "position"='Forward';
```
## Task
Generate a SQL query to answer the following question:
`what's height with position being center and year born being bigger than 1980.0`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's height with position being center and year born being bigger than 1980.0`:
```sql
                SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "position"='Center' AND "year_born">1980.0;
```
## Task
Generate a SQL query to answer the following question:
`what's player with position being forward and current club being real madrid`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's player with position being forward and current club being real madrid`:
```sql
                SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "position"='Forward' AND "current_club"='Real Madrid';
```
## Task
Generate a SQL query to answer the following question:
`what's current club with player being nikolaos chatzivrettas`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's current club with player being nikolaos chatzivrettas`:
```sql
                SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "player"='Nikolaos Chatzivrettas';
```
## Task
Generate a SQL query to answer the following question:
`what's current club with height being 2.09`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's current club with height being 2.09`:
```sql
                SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "height"='2.09';
```
## Task
Generate a SQL query to answer the following question:
`what's current club with position being center and no being bigger than 12.0`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's current club with position being center and no being bigger than 12.0`:
```sql
                SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "position"='Center' AND "no">12.0;
```
## Task
Generate a SQL query to answer the following question:
`What is the opponent of the veterans stadium`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "kickoff_et" text,
  "tv" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the opponent of the veterans stadium`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "game_site"='Veterans Stadium';
```
## Task
Generate a SQL query to answer the following question:
`What year was the player born who is 2.02m tall?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the player born who is 2.02m tall?`:
```sql
                SELECT MAX("year_born") FROM "fiba_euro_basket_2007_squads" WHERE "height"='2.02';
```
## Task
Generate a SQL query to answer the following question:
`What number does aleksandar ćapin wear?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number does aleksandar ćapin wear?`:
```sql
                SELECT MAX("no") FROM "fiba_euro_basket_2007_squads" WHERE "player"='Aleksandar Ćapin';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of grupo capitol valladolid`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of grupo capitol valladolid`:
```sql
                SELECT COUNT("no") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='Grupo Capitol Valladolid';
```
## Task
Generate a SQL query to answer the following question:
`Name the height for the player born in 1980 and center?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the height for the player born in 1980 and center?`:
```sql
                SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"=1980 AND "position"='Center';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number that has a height of 2.06?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number that has a height of 2.06?`:
```sql
                SELECT COUNT("no") FROM "fiba_euro_basket_2007_squads" WHERE "height"='2.06';
```
## Task
Generate a SQL query to answer the following question:
`Name the current club for number 6`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the current club for number 6`:
```sql
                SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "no"=6;
```
## Task
Generate a SQL query to answer the following question:
`Name the current club for player sacha giffa`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the current club for player sacha giffa`:
```sql
                SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "player"='Sacha Giffa';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum year born for strasbourg?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum year born for strasbourg?`:
```sql
                SELECT MIN("year_born") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='Strasbourg';
```
## Task
Generate a SQL query to answer the following question:
`Which club had a player born in 1983?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club had a player born in 1983?`:
```sql
                SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"=1983;
```
## Task
Generate a SQL query to answer the following question:
`How tall is Marco Belinelli?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is Marco Belinelli?`:
```sql
                SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "player"='Marco Belinelli';
```
## Task
Generate a SQL query to answer the following question:
`What number is Andrea Bargnani?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number is Andrea Bargnani?`:
```sql
                SELECT MAX("no") FROM "fiba_euro_basket_2007_squads" WHERE "player"='Andrea Bargnani';
```
## Task
Generate a SQL query to answer the following question:
`What player is number 6?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player is number 6?`:
```sql
                SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "no"=6;
```
## Task
Generate a SQL query to answer the following question:
`How many clubs does number 6 play for?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs does number 6 play for?`:
```sql
                SELECT COUNT("current_club") FROM "fiba_euro_basket_2007_squads" WHERE "no"=6;
```
## Task
Generate a SQL query to answer the following question:
` how many player with no being 12`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many player with no being 12`:
```sql
                SELECT COUNT("player") FROM "fiba_euro_basket_2007_squads" WHERE "no"=12;
```
## Task
Generate a SQL query to answer the following question:
`what's the height with position being forward and current club being real madrid`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the height with position being forward and current club being real madrid`:
```sql
                SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "position"='Forward' AND "current_club"='Real Madrid';
```
## Task
Generate a SQL query to answer the following question:
`what's the height with current club being dkv joventut`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the height with current club being dkv joventut`:
```sql
                SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='DKV Joventut';
```
## Task
Generate a SQL query to answer the following question:
`what's the current club with player being felipe reyes`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "no" real,
  "player" text,
  "height" text,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the current club with player being felipe reyes`:
```sql
                SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "player"='Felipe Reyes';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that had 6.04 million viewers? `

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

CREATE TABLE "table1_12976038_1" (
  "episode_num" real,
  "series_num" real,
  "title" text,
  "director" text,
  "writer" text,
  "original_airdate" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that had 6.04 million viewers? `:
```sql
                SELECT "director" FROM "table1_12976038_1" WHERE "viewers_in_millions"='6.04';
```
## Task
Generate a SQL query to answer the following question:
`What number episode had 5.74 million viewers? `

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

CREATE TABLE "table1_12976038_1" (
  "episode_num" real,
  "series_num" real,
  "title" text,
  "director" text,
  "writer" text,
  "original_airdate" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode had 5.74 million viewers? `:
```sql
                SELECT "episode_num" FROM "table1_12976038_1" WHERE "viewers_in_millions"='5.74';
```
## Task
Generate a SQL query to answer the following question:
`When did the construction of the unit Chinon B1 with net power of 905 MW start?`

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

CREATE TABLE "reactors" (
  "unit" text,
  "type" text,
  "net_power" text,
  "total_power" text,
  "construction_start" text,
  "construction_finish" text,
  "commercial_operation" text,
  "shut_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the construction of the unit Chinon B1 with net power of 905 MW start?`:
```sql
                SELECT "construction_start" FROM "reactors" WHERE "net_power"='905 MW' AND "unit"='Chinon B1';
```
## Task
Generate a SQL query to answer the following question:
`What's the total power of the unit whose construction finished on 14.06.1963?`

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

CREATE TABLE "reactors" (
  "unit" text,
  "type" text,
  "net_power" text,
  "total_power" text,
  "construction_start" text,
  "construction_finish" text,
  "commercial_operation" text,
  "shut_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total power of the unit whose construction finished on 14.06.1963?`:
```sql
                SELECT "total_power" FROM "reactors" WHERE "construction_finish"='14.06.1963';
```
## Task
Generate a SQL query to answer the following question:
`How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984?`

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

CREATE TABLE "reactors" (
  "unit" text,
  "type" text,
  "net_power" text,
  "total_power" text,
  "construction_start" text,
  "construction_finish" text,
  "commercial_operation" text,
  "shut_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984?`:
```sql
                SELECT COUNT("total_power") FROM "reactors" WHERE "construction_start"='01.03.1977' AND "commercial_operation"='01.02.1984';
```
## Task
Generate a SQL query to answer the following question:
`What's the shut down state of the unit that's been in commercial operation since 01.02.1984?`

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

CREATE TABLE "reactors" (
  "unit" text,
  "type" text,
  "net_power" text,
  "total_power" text,
  "construction_start" text,
  "construction_finish" text,
  "commercial_operation" text,
  "shut_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the shut down state of the unit that's been in commercial operation since 01.02.1984?`:
```sql
                SELECT "shut_down" FROM "reactors" WHERE "commercial_operation"='01.02.1984';
```
## Task
Generate a SQL query to answer the following question:
`When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?`

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

CREATE TABLE "reactors" (
  "unit" text,
  "type" text,
  "net_power" text,
  "total_power" text,
  "construction_start" text,
  "construction_finish" text,
  "commercial_operation" text,
  "shut_down" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?`:
```sql
                SELECT "construction_start" FROM "reactors" WHERE "commercial_operation"='04.03.1987';
```
## Task
Generate a SQL query to answer the following question:
`what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1?`

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

CREATE TABLE "table1_12995531_3" (
  "series_number" text,
  "episode_number" real,
  "date_of_first_broadcast" text,
  "total_viewers" real,
  "series_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1?`:
```sql
                SELECT MIN("total_viewers") FROM "table1_12995531_3" WHERE "date_of_first_broadcast"='28 January 2010' AND "episode_number"=1;
```
## Task
Generate a SQL query to answer the following question:
`what is the episode number where the total viewers is 614000?`

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

CREATE TABLE "table1_12995531_3" (
  "series_number" text,
  "episode_number" real,
  "date_of_first_broadcast" text,
  "total_viewers" real,
  "series_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the episode number where the total viewers is 614000?`:
```sql
                SELECT MIN("episode_number") FROM "table1_12995531_3" WHERE "total_viewers"=614000;
```
## Task
Generate a SQL query to answer the following question:
`what is  the series number where the date of first broadcast is 16 october 2008?`

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

CREATE TABLE "table1_12995531_3" (
  "series_number" text,
  "episode_number" real,
  "date_of_first_broadcast" text,
  "total_viewers" real,
  "series_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is  the series number where the date of first broadcast is 16 october 2008?`:
```sql
                SELECT "series_number" FROM "table1_12995531_3" WHERE "date_of_first_broadcast"='16 October 2008';
```
## Task
Generate a SQL query to answer the following question:
`In what year did Easton LL Easton play in Maryland?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "delaware" text,
  "maryland" text,
  "new_jersey" text,
  "new_york" text,
  "pennsylvania" text,
  "washington_d_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did Easton LL Easton play in Maryland?`:
```sql
                SELECT COUNT("year") FROM "regional_championship" WHERE "maryland"='Easton LL Easton';
```
## Task
Generate a SQL query to answer the following question:
`What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "delaware" text,
  "maryland" text,
  "new_jersey" text,
  "new_york" text,
  "pennsylvania" text,
  "washington_d_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?`:
```sql
                SELECT "washington_d_c" FROM "regional_championship" WHERE "new_york"='Ramapo LL Ramapo';
```
## Task
Generate a SQL query to answer the following question:
`Which year did Maryland hold the title with Railroaders LL Brunswick?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "delaware" text,
  "maryland" text,
  "new_jersey" text,
  "new_york" text,
  "pennsylvania" text,
  "washington_d_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did Maryland hold the title with Railroaders LL Brunswick?`:
```sql
                SELECT "year" FROM "regional_championship" WHERE "maryland"='Railroaders LL Brunswick';
```
## Task
Generate a SQL query to answer the following question:
`Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "delaware" text,
  "maryland" text,
  "new_jersey" text,
  "new_york" text,
  "pennsylvania" text,
  "washington_d_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville?`:
```sql
                SELECT "maryland" FROM "regional_championship" WHERE "new_jersey"='Somerset Hills LL Bernardsville';
```
## Task
Generate a SQL query to answer the following question:
`After the year 2008.0, who played for Maryland the same year M.O.T. LL Middletown played in Delaware?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "delaware" text,
  "maryland" text,
  "new_jersey" text,
  "new_york" text,
  "pennsylvania" text,
  "washington_d_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `After the year 2008.0, who played for Maryland the same year M.O.T. LL Middletown played in Delaware?`:
```sql
                SELECT "maryland" FROM "regional_championship" WHERE "delaware"='M.O.T. LL Middletown' AND "year">2008.0;
```
## Task
Generate a SQL query to answer the following question:
`Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "delaware" text,
  "maryland" text,
  "new_jersey" text,
  "new_york" text,
  "pennsylvania" text,
  "washington_d_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania?`:
```sql
                SELECT "maryland" FROM "regional_championship" WHERE "pennsylvania"='Deep Run Valley LL Hilltown';
```
## Task
Generate a SQL query to answer the following question:
`Where is Bluetongue Stadium located? `

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

CREATE TABLE "table1_1301373_1" (
  "team" text,
  "location" text,
  "stadium" text,
  "founded" real,
  "joined" real,
  "head_coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Bluetongue Stadium located? `:
```sql
                SELECT "location" FROM "table1_1301373_1" WHERE "stadium"='Bluetongue Stadium';
```
## Task
Generate a SQL query to answer the following question:
`When was the team, whose captain is Matt Smith,  founded? `

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

CREATE TABLE "table1_1301373_1" (
  "team" text,
  "location" text,
  "stadium" text,
  "founded" real,
  "joined" real,
  "head_coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the team, whose captain is Matt Smith,  founded? `:
```sql
                SELECT "founded" FROM "table1_1301373_1" WHERE "captain"='Matt Smith';
```
## Task
Generate a SQL query to answer the following question:
`Who's the captain of the team whose head coach is Alistair Edwards? `

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

CREATE TABLE "table1_1301373_1" (
  "team" text,
  "location" text,
  "stadium" text,
  "founded" real,
  "joined" real,
  "head_coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the captain of the team whose head coach is Alistair Edwards? `:
```sql
                SELECT "captain" FROM "table1_1301373_1" WHERE "head_coach"='Alistair Edwards';
```
## Task
Generate a SQL query to answer the following question:
`How many locations does the team Newcastle Jets come from? `

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

CREATE TABLE "table1_1301373_1" (
  "team" text,
  "location" text,
  "stadium" text,
  "founded" real,
  "joined" real,
  "head_coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many locations does the team Newcastle Jets come from? `:
```sql
                SELECT COUNT("location") FROM "table1_1301373_1" WHERE "team"='Newcastle Jets';
```
## Task
Generate a SQL query to answer the following question:
`Where is Westpac Stadium located? `

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

CREATE TABLE "table1_1301373_1" (
  "team" text,
  "location" text,
  "stadium" text,
  "founded" real,
  "joined" real,
  "head_coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Westpac Stadium located? `:
```sql
                SELECT "location" FROM "table1_1301373_1" WHERE "stadium"='Westpac Stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the new hampshire in 2009?`

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

CREATE TABLE "regional_championship" (
  "year" real,
  "connecticut" text,
  "maine" text,
  "massachusetts" text,
  "new_hampshire" text,
  "rhode_island" text,
  "vermont" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the new hampshire in 2009?`:
```sql
                SELECT "new_hampshire" FROM "regional_championship" WHERE "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What is the most points when the won is 9?`

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

CREATE TABLE "national_league_one_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most points when the won is 9?`:
```sql
                SELECT MAX("pts_for") FROM "national_league_one_table" WHERE "won"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of played when points against 645?`

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

CREATE TABLE "national_league_one_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of played when points against 645?`:
```sql
                SELECT COUNT("played") FROM "national_league_one_table" WHERE "pts_agst"=645;
```
## Task
Generate a SQL query to answer the following question:
`Name the most points for`

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

CREATE TABLE "national_league_one_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most points for`:
```sql
                SELECT MIN("pts_for") FROM "national_league_one_table";
```
## Task
Generate a SQL query to answer the following question:
`Name the most points against when points for is 860`

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

CREATE TABLE "national_league_one_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most points against when points for is 860`:
```sql
                SELECT MAX("pts_agst") FROM "national_league_one_table" WHERE "pts_for"=860;
```
## Task
Generate a SQL query to answer the following question:
`How many teams scored 616 points?`

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

CREATE TABLE "national_league_one_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams scored 616 points?`:
```sql
                SELECT COUNT("won") FROM "national_league_one_table" WHERE "pts_for"=616;
```
## Task
Generate a SQL query to answer the following question:
`How many teams drew the widnes vikings?`

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

CREATE TABLE "national_league_one_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams drew the widnes vikings?`:
```sql
                SELECT COUNT("drawn") FROM "national_league_one_table" WHERE "club"='Widnes Vikings';
```
## Task
Generate a SQL query to answer the following question:
`How many games did whitehaven win?`

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

CREATE TABLE "national_league_one_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did whitehaven win?`:
```sql
                SELECT MIN("won") FROM "national_league_one_table" WHERE "club"='Whitehaven';
```
## Task
Generate a SQL query to answer the following question:
`What position did the sheffield eagles finish in?`

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

CREATE TABLE "national_league_one_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the sheffield eagles finish in?`:
```sql
                SELECT MAX("position") FROM "national_league_one_table" WHERE "club"='Sheffield Eagles';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game in week 14?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game in week 14?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=14;
```
## Task
Generate a SQL query to answer the following question:
`What is the total points for the tean with 8 losses?`

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

CREATE TABLE "national_league_two_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "bonus_points" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total points for the tean with 8 losses?`:
```sql
                SELECT COUNT("points") FROM "national_league_two_table" WHERE "lost"=8;
```
## Task
Generate a SQL query to answer the following question:
`How many numbers are given for losses by the Keighley Cougars?`

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

CREATE TABLE "national_league_two_table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "bonus_points" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers are given for losses by the Keighley Cougars?`:
```sql
                SELECT COUNT("lost") FROM "national_league_two_table" WHERE "club"='Keighley Cougars';
```
## Task
Generate a SQL query to answer the following question:
`Name the captain for ben sigmund`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the captain for ben sigmund`:
```sql
                SELECT "captain" FROM "marquee_player" WHERE "vice_captain"='Ben Sigmund';
```
## Task
Generate a SQL query to answer the following question:
`Name the international marquee for shane stefanutto`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the international marquee for shane stefanutto`:
```sql
                SELECT "international_marquee" FROM "marquee_player" WHERE "vice_captain"='Shane Stefanutto';
```
## Task
Generate a SQL query to answer the following question:
`Name the australian marquee for alessandro del piero`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the australian marquee for alessandro del piero`:
```sql
                SELECT "australian_marquee" FROM "marquee_player" WHERE "international_marquee"='Alessandro Del Piero';
```
## Task
Generate a SQL query to answer the following question:
`Name the vice captain for melbourne victory`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vice captain for melbourne victory`:
```sql
                SELECT "vice_captain" FROM "marquee_player" WHERE "club"='Melbourne Victory';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of australian marquee for travis dodd`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of australian marquee for travis dodd`:
```sql
                SELECT COUNT("australian_marquee") FROM "marquee_player" WHERE "vice_captain"='Travis Dodd';
```
## Task
Generate a SQL query to answer the following question:
`Name the captain for emile heskey`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the captain for emile heskey`:
```sql
                SELECT "captain" FROM "marquee_player" WHERE "international_marquee"='Emile Heskey';
```
## Task
Generate a SQL query to answer the following question:
`What championship had a margin of playoff 2?`

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

CREATE TABLE "wins_18" (
  "year" text,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What championship had a margin of playoff 2?`:
```sql
                SELECT "championship" FROM "wins_18" WHERE "margin"='Playoff 2';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of the Masters Tournament?`

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

CREATE TABLE "wins_18" (
  "year" text,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of the Masters Tournament?`:
```sql
                SELECT "margin" FROM "wins_18" WHERE "championship"='Masters Tournament';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score of the Masters Tournament?`

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

CREATE TABLE "wins_18" (
  "year" text,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score of the Masters Tournament?`:
```sql
                SELECT "winning_score" FROM "wins_18" WHERE "championship"='Masters Tournament';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score of the PGA Championship (3)?`

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

CREATE TABLE "wins_18" (
  "year" text,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score of the PGA Championship (3)?`:
```sql
                SELECT "winning_score" FROM "wins_18" WHERE "championship"='PGA Championship (3)';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of starts for 1987?`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" real,
  "starts" real,
  "wins_majors" text,
  "2nd" real,
  "3rd" real,
  "earnings" real,
  "money_list_rank" text,
  "scoring_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of starts for 1987?`:
```sql
                SELECT COUNT("starts") FROM "pga_tour_career_summary" WHERE "year"=1987;
```
## Task
Generate a SQL query to answer the following question:
`What is the scoring aerage for 111419?`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" real,
  "starts" real,
  "wins_majors" text,
  "2nd" real,
  "3rd" real,
  "earnings" real,
  "money_list_rank" text,
  "scoring_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the scoring aerage for 111419?`:
```sql
                SELECT "scoring_average" FROM "pga_tour_career_summary" WHERE "earnings"=111419;
```
## Task
Generate a SQL query to answer the following question:
`What is the money list rank for 1966?`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" real,
  "starts" real,
  "wins_majors" text,
  "2nd" real,
  "3rd" real,
  "earnings" real,
  "money_list_rank" text,
  "scoring_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the money list rank for 1966?`:
```sql
                SELECT "money_list_rank" FROM "pga_tour_career_summary" WHERE "year"=1966;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of scoring average for money list rank of 174`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" real,
  "starts" real,
  "wins_majors" text,
  "2nd" real,
  "3rd" real,
  "earnings" real,
  "money_list_rank" text,
  "scoring_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of scoring average for money list rank of 174`:
```sql
                SELECT COUNT("scoring_average") FROM "pga_tour_career_summary" WHERE "money_list_rank"='174';
```
## Task
Generate a SQL query to answer the following question:
`What is the county where kerry# is 59740?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the county where kerry# is 59740?`:
```sql
                SELECT "county" FROM "by_county" WHERE "kerrynum"=59740;
```
## Task
Generate a SQL query to answer the following question:
`In cook county Kerry# is?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `In cook county Kerry# is?`:
```sql
                SELECT "kerrynum" FROM "by_county" WHERE "county"='Cook';
```