cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When the population rank is 34, what the is % change?`

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

CREATE TABLE "references" (
  "name" text,
  "2011_census" real,
  "2006_census" real,
  "pct_change" text,
  "land_area_km" text,
  "density_pop_km" text,
  "population_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the population rank is 34, what the is % change?`:
```sql
                SELECT "pct_change" FROM "references" WHERE "population_rank"=34;
```
## Task
Generate a SQL query to answer the following question:
`How many teams scored exactly 38 points`

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

CREATE TABLE "all_time_results_record" (
  "team" text,
  "first_played" real,
  "played" real,
  "win" real,
  "draw" real,
  "loss" real,
  "points_for" real,
  "ponts_against" real,
  "last_meeting" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams scored exactly 38 points`:
```sql
                SELECT COUNT("team") FROM "all_time_results_record" WHERE "points_for"=38;
```
## Task
Generate a SQL query to answer the following question:
`In what year did Italy begin playing?`

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

CREATE TABLE "all_time_results_record" (
  "team" text,
  "first_played" real,
  "played" real,
  "win" real,
  "draw" real,
  "loss" real,
  "points_for" real,
  "ponts_against" real,
  "last_meeting" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did Italy begin playing?`:
```sql
                SELECT MIN("first_played") FROM "all_time_results_record" WHERE "team"='Italy';
```
## Task
Generate a SQL query to answer the following question:
`For teams that played 5 games, what was the smallest number of wins?`

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

CREATE TABLE "all_time_results_record" (
  "team" text,
  "first_played" real,
  "played" real,
  "win" real,
  "draw" real,
  "loss" real,
  "points_for" real,
  "ponts_against" real,
  "last_meeting" real
);
### SQL
Given the database schema, here is the SQL query that answers `For teams that played 5 games, what was the smallest number of wins?`:
```sql
                SELECT MIN("win") FROM "all_time_results_record" WHERE "played"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many games did the team that began in 2011 and scored 36 points play?`

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

CREATE TABLE "all_time_results_record" (
  "team" text,
  "first_played" real,
  "played" real,
  "win" real,
  "draw" real,
  "loss" real,
  "points_for" real,
  "ponts_against" real,
  "last_meeting" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did the team that began in 2011 and scored 36 points play?`:
```sql
                SELECT COUNT("played") FROM "all_time_results_record" WHERE "first_played"=2011 AND "points_for"=36;
```
## Task
Generate a SQL query to answer the following question:
`What are all the run times with 8.2 million viewers?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the run times with 8.2 million viewers?`:
```sql
                SELECT "run_time" FROM "serial_details_by_episode" WHERE "viewers_in_millions"='8.2';
```
## Task
Generate a SQL query to answer the following question:
`What are all the episodes with an episode run time of 24:01?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the episodes with an episode run time of 24:01?`:
```sql
                SELECT "episode" FROM "serial_details_by_episode" WHERE "run_time"='24:01';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had a broadcast date and run time of 24:43?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had a broadcast date and run time of 24:43?`:
```sql
                SELECT COUNT("broadcast_date") FROM "serial_details_by_episode" WHERE "run_time"='24:43';
```
## Task
Generate a SQL query to answer the following question:
`How many members gained university status in 1900?`

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

CREATE TABLE "members" (
  "institution" text,
  "location" text,
  "established" real,
  "gained_university_status" real,
  "vice_chancellor" text,
  "total_number_of_students" real,
  "research_funding_000" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many members gained university status in 1900?`:
```sql
                SELECT COUNT("research_funding_000") FROM "members" WHERE "gained_university_status"=1900;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of students?`

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

CREATE TABLE "members" (
  "institution" text,
  "location" text,
  "established" real,
  "gained_university_status" real,
  "vice_chancellor" text,
  "total_number_of_students" real,
  "research_funding_000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of students?`:
```sql
                SELECT MAX("total_number_of_students") FROM "members";
```
## Task
Generate a SQL query to answer the following question:
`How many members have professor edward acton as vice-chancellor?`

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

CREATE TABLE "members" (
  "institution" text,
  "location" text,
  "established" real,
  "gained_university_status" real,
  "vice_chancellor" text,
  "total_number_of_students" real,
  "research_funding_000" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many members have professor edward acton as vice-chancellor?`:
```sql
                SELECT COUNT("total_number_of_students") FROM "members" WHERE "vice_chancellor"='Professor Edward Acton';
```
## Task
Generate a SQL query to answer the following question:
`What is the year leicester was established?`

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

CREATE TABLE "members" (
  "institution" text,
  "location" text,
  "established" real,
  "gained_university_status" real,
  "vice_chancellor" text,
  "total_number_of_students" real,
  "research_funding_000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year leicester was established?`:
```sql
                SELECT MAX("established") FROM "members" WHERE "location"='Leicester';
```
## Task
Generate a SQL query to answer the following question:
`which country has miss universe Hungary as former pageant?`

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

CREATE TABLE "replaced_pageants" (
  "country_territory" text,
  "former_pageant" text,
  "last_competed" real,
  "new_pageant" text,
  "franchise_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `which country has miss universe Hungary as former pageant?`:
```sql
                SELECT "country_territory" FROM "replaced_pageants" WHERE "former_pageant"='Miss Universe Hungary';
```
## Task
Generate a SQL query to answer the following question:
`which is the former pageant in the country where the new pageant is miss bahamas?`

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

CREATE TABLE "replaced_pageants" (
  "country_territory" text,
  "former_pageant" text,
  "last_competed" real,
  "new_pageant" text,
  "franchise_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `which is the former pageant in the country where the new pageant is miss bahamas?`:
```sql
                SELECT "former_pageant" FROM "replaced_pageants" WHERE "new_pageant"='Miss Bahamas';
```
## Task
Generate a SQL query to answer the following question:
`when did new zealand last compete?`

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

CREATE TABLE "replaced_pageants" (
  "country_territory" text,
  "former_pageant" text,
  "last_competed" real,
  "new_pageant" text,
  "franchise_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `when did new zealand last compete?`:
```sql
                SELECT MAX("last_competed") FROM "replaced_pageants" WHERE "country_territory"='New Zealand';
```
## Task
Generate a SQL query to answer the following question:
`How many new pageants does Aruba have?`

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

CREATE TABLE "replaced_pageants" (
  "country_territory" text,
  "former_pageant" text,
  "last_competed" real,
  "new_pageant" text,
  "franchise_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many new pageants does Aruba have?`:
```sql
                SELECT COUNT("new_pageant") FROM "replaced_pageants" WHERE "country_territory"='Aruba';
```
## Task
Generate a SQL query to answer the following question:
`which is the new pageant from spain?`

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

CREATE TABLE "replaced_pageants" (
  "country_territory" text,
  "former_pageant" text,
  "last_competed" real,
  "new_pageant" text,
  "franchise_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `which is the new pageant from spain?`:
```sql
                SELECT "new_pageant" FROM "replaced_pageants" WHERE "country_territory"='Spain';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when Carlton was the home team?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when Carlton was the home team?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "home_team"='Carlton';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of teams where conmebol 1996 did not qualify?`

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

CREATE TABLE "argentine_clubs_in_international_competi" (
  "team" text,
  "intercontinental" text,
  "recopa_1996" text,
  "supercopa_1996" text,
  "conmebol_1996" text,
  "copa_libertadores_1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of teams where conmebol 1996 did not qualify?`:
```sql
                SELECT COUNT("team") FROM "argentine_clubs_in_international_competi" WHERE "conmebol_1996"='did not qualify';
```
## Task
Generate a SQL query to answer the following question:
`what is the racing club where copa libertadores 1997?`

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

CREATE TABLE "argentine_clubs_in_international_competi" (
  "team" text,
  "intercontinental" text,
  "recopa_1996" text,
  "supercopa_1996" text,
  "conmebol_1996" text,
  "copa_libertadores_1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the racing club where copa libertadores 1997?`:
```sql
                SELECT "copa_libertadores_1997" FROM "argentine_clubs_in_international_competi" WHERE "team"='Racing Club';
```
## Task
Generate a SQL query to answer the following question:
`what is th copa libertadores 1997 is qf?`

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

CREATE TABLE "argentine_clubs_in_international_competi" (
  "team" text,
  "intercontinental" text,
  "recopa_1996" text,
  "supercopa_1996" text,
  "conmebol_1996" text,
  "copa_libertadores_1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is th copa libertadores 1997 is qf?`:
```sql
                SELECT "copa_libertadores_1997" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1996"='QF';
```
## Task
Generate a SQL query to answer the following question:
`What's the maximum crowd when scg is the ground?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the maximum crowd when scg is the ground?`:
```sql
                SELECT MAX("crowd") FROM "round_19" WHERE "ground"='SCG';
```
## Task
Generate a SQL query to answer the following question:
`What are the away teams when they scored 5.11 (41)?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the away teams when they scored 5.11 (41)?`:
```sql
                SELECT "away_team" FROM "round_19" WHERE "away_team_score"='5.11 (41)';
```
## Task
Generate a SQL query to answer the following question:
`What are the ground when the away team scored 6.9 (45)?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the ground when the away team scored 6.9 (45)?`:
```sql
                SELECT "ground" FROM "round_19" WHERE "away_team_score"='6.9 (45)';
```
## Task
Generate a SQL query to answer the following question:
`What are the ground where the crowd totals 19929?`

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

CREATE TABLE "round_19" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the ground where the crowd totals 19929?`:
```sql
                SELECT "ground" FROM "round_19" WHERE "crowd"=19929;
```
## Task
Generate a SQL query to answer the following question:
`Name the home team for manuka oval`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the home team for manuka oval`:
```sql
                SELECT "home_team" FROM "round_18" WHERE "ground"='Manuka Oval';
```
## Task
Generate a SQL query to answer the following question:
`Name the away team score for richmond`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the away team score for richmond`:
```sql
                SELECT "away_team_score" FROM "round_18" WHERE "away_team"='Richmond';
```
## Task
Generate a SQL query to answer the following question:
`Who made the report when the home team is north Melbourne?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the report when the home team is north Melbourne?`:
```sql
                SELECT "report" FROM "round_22" WHERE "home_team"='North Melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who played Richmond at home?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played Richmond at home?`:
```sql
                SELECT "home_team" FROM "round_22" WHERE "away_team"='Richmond';
```
## Task
Generate a SQL query to answer the following question:
`Who has the home ground Aami stadium?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the home ground Aami stadium?`:
```sql
                SELECT "home_team" FROM "round_22" WHERE "ground"='AAMI Stadium';
```
## Task
Generate a SQL query to answer the following question:
`Who were all candidate when incumbent was D. Wyatt Aiken?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were all candidate when incumbent was D. Wyatt Aiken?`:
```sql
                SELECT "candidates" FROM "south_carolina" WHERE "incumbent"='D. Wyatt Aiken';
```
## Task
Generate a SQL query to answer the following question:
`How many incumbents for the district of South Carolina 5?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many incumbents for the district of South Carolina 5?`:
```sql
                SELECT COUNT("incumbent") FROM "south_carolina" WHERE "district"='South Carolina 5';
```
## Task
Generate a SQL query to answer the following question:
`Who was everyone first elected when incumbent was John J. Hemphill?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was everyone first elected when incumbent was John J. Hemphill?`:
```sql
                SELECT "first_elected" FROM "south_carolina" WHERE "incumbent"='John J. Hemphill';
```
## Task
Generate a SQL query to answer the following question:
`When the girls singles is lindaweni fanetri what is the mixed doubled?`

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

CREATE TABLE "juniors" (
  "year" real,
  "boys_singles" text,
  "girls_singles" text,
  "boys_doubles" text,
  "girls_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the girls singles is lindaweni fanetri what is the mixed doubled?`:
```sql
                SELECT "mixed_doubles" FROM "juniors" WHERE "girls_singles"='Lindaweni Fanetri';
```
## Task
Generate a SQL query to answer the following question:
`When the girls doubles is ayu pratiwi anggi widia what is the boys doubles?`

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

CREATE TABLE "juniors" (
  "year" real,
  "boys_singles" text,
  "girls_singles" text,
  "boys_doubles" text,
  "girls_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the girls doubles is ayu pratiwi anggi widia what is the boys doubles?`:
```sql
                SELECT "boys_doubles" FROM "juniors" WHERE "girls_doubles"='Ayu Pratiwi Anggi Widia';
```
## Task
Generate a SQL query to answer the following question:
`When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?`

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

CREATE TABLE "juniors" (
  "year" real,
  "boys_singles" text,
  "girls_singles" text,
  "boys_doubles" text,
  "girls_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?`:
```sql
                SELECT MAX("year") FROM "juniors" WHERE "mixed_doubles"='Didit Juang Indrianto Yayu Rahayu';
```
## Task
Generate a SQL query to answer the following question:
`When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?`

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

CREATE TABLE "juniors" (
  "year" real,
  "boys_singles" text,
  "girls_singles" text,
  "boys_doubles" text,
  "girls_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?`:
```sql
                SELECT "boys_singles" FROM "juniors" WHERE "mixed_doubles"='Danny Bawa Chrisnanta Debby Susanto';
```
## Task
Generate a SQL query to answer the following question:
`When girls doubles is  anneke feinya agustin wenny setiawati what is the mixed doubles?`

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

CREATE TABLE "juniors" (
  "year" real,
  "boys_singles" text,
  "girls_singles" text,
  "boys_doubles" text,
  "girls_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When girls doubles is  anneke feinya agustin wenny setiawati what is the mixed doubles?`:
```sql
                SELECT "mixed_doubles" FROM "juniors" WHERE "girls_doubles"='Anneke Feinya Agustin Wenny Setiawati';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of publishers for flushed away`

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

CREATE TABLE "table1_14325653_2" (
  "year_ceremony" text,
  "video_game" text,
  "publisher_s" text,
  "platform_s_a" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of publishers for flushed away`:
```sql
                SELECT COUNT("publisher_s") FROM "table1_14325653_2" WHERE "video_game"='Flushed Away';
```
## Task
Generate a SQL query to answer the following question:
`Name the publisher for resident evil 4`

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

CREATE TABLE "table1_14325653_2" (
  "year_ceremony" text,
  "video_game" text,
  "publisher_s" text,
  "platform_s_a" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the publisher for resident evil 4`:
```sql
                SELECT "publisher_s" FROM "table1_14325653_2" WHERE "video_game"='Resident Evil 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total number?`

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

CREATE TABLE "table1_14330096_4" (
  "totalnum" real,
  "seriesnum" real,
  "title" text,
  "writer" text,
  "director" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total number?`:
```sql
                SELECT MAX("totalnum") FROM "table1_14330096_4";
```
## Task
Generate a SQL query to answer the following question:
`How many of the episodes have Roger Goldby as the director?`

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

CREATE TABLE "table1_14330096_4" (
  "totalnum" real,
  "seriesnum" real,
  "title" text,
  "writer" text,
  "director" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many of the episodes have Roger Goldby as the director?`:
```sql
                SELECT "totalnum" FROM "table1_14330096_4" WHERE "director"='Roger Goldby';
```
## Task
Generate a SQL query to answer the following question:
`Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?`

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

CREATE TABLE "table1_14330096_4" (
  "totalnum" real,
  "seriesnum" real,
  "title" text,
  "writer" text,
  "director" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?`:
```sql
                SELECT "title" FROM "table1_14330096_4" WHERE "director"='Patrick Lau' AND "writer"='Lisa Holdsworth';
```
## Task
Generate a SQL query to answer the following question:
`What is the Closure date of Hunterston B`

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

CREATE TABLE "current_agr_reactors" (
  "agr_power_station" text,
  "net_m_we" real,
  "construction_started" real,
  "connected_to_grid" real,
  "commercial_operation" real,
  "accounting_closure_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Closure date of Hunterston B`:
```sql
                SELECT MIN("accounting_closure_date") FROM "current_agr_reactors" WHERE "agr_power_station"='Hunterston B';
```
## Task
Generate a SQL query to answer the following question:
`How many power stations are connected to grid at Heysham 2`

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

CREATE TABLE "current_agr_reactors" (
  "agr_power_station" text,
  "net_m_we" real,
  "construction_started" real,
  "connected_to_grid" real,
  "commercial_operation" real,
  "accounting_closure_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many power stations are connected to grid at Heysham 2`:
```sql
                SELECT COUNT("connected_to_grid") FROM "current_agr_reactors" WHERE "agr_power_station"='Heysham 2';
```
## Task
Generate a SQL query to answer the following question:
`What year did construction start at Heysham 1`

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

CREATE TABLE "current_agr_reactors" (
  "agr_power_station" text,
  "net_m_we" real,
  "construction_started" real,
  "connected_to_grid" real,
  "commercial_operation" real,
  "accounting_closure_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did construction start at Heysham 1`:
```sql
                SELECT "construction_started" FROM "current_agr_reactors" WHERE "agr_power_station"='Heysham 1';
```
## Task
Generate a SQL query to answer the following question:
`When did construction start on the Power station with a net MWE of 1190`

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

CREATE TABLE "current_agr_reactors" (
  "agr_power_station" text,
  "net_m_we" real,
  "construction_started" real,
  "connected_to_grid" real,
  "commercial_operation" real,
  "accounting_closure_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did construction start on the Power station with a net MWE of 1190`:
```sql
                SELECT MIN("construction_started") FROM "current_agr_reactors" WHERE "net_m_we"=1190;
```
## Task
Generate a SQL query to answer the following question:
`Name the most extra points for john heston`

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

CREATE TABLE "scoring_leaders" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most extra points for john heston`:
```sql
                SELECT MAX("extra_points") FROM "scoring_leaders" WHERE "player"='John Heston';
```
## Task
Generate a SQL query to answer the following question:
`Who scored the most points?`

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

CREATE TABLE "michigan_63_oberlin_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored the most points?`:
```sql
                SELECT MAX("points") FROM "michigan_63_oberlin_0";
```
## Task
Generate a SQL query to answer the following question:
`What position did Joe Maddock play?`

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

CREATE TABLE "michigan_63_oberlin_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position did Joe Maddock play?`:
```sql
                SELECT "position" FROM "michigan_63_oberlin_0" WHERE "player"='Joe Maddock';
```
## Task
Generate a SQL query to answer the following question:
`How many extra points did Paul Jones score?`

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

CREATE TABLE "michigan_63_oberlin_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many extra points did Paul Jones score?`:
```sql
                SELECT COUNT("extra_points") FROM "michigan_63_oberlin_0" WHERE "player"='Paul Jones';
```
## Task
Generate a SQL query to answer the following question:
`How many points did Albert Herrnstein make?`

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

CREATE TABLE "michigan_86_ohio_state_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Albert Herrnstein make?`:
```sql
                SELECT "points" FROM "michigan_86_ohio_state_0" WHERE "player"='Albert Herrnstein';
```
## Task
Generate a SQL query to answer the following question:
`What positions did Paul Jones play?`

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

CREATE TABLE "michigan_86_ohio_state_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What positions did Paul Jones play?`:
```sql
                SELECT "position" FROM "michigan_86_ohio_state_0" WHERE "player"='Paul Jones';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of field goals made by a player?`

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

CREATE TABLE "michigan_86_ohio_state_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of field goals made by a player?`:
```sql
                SELECT MIN("field_goals") FROM "michigan_86_ohio_state_0";
```
## Task
Generate a SQL query to answer the following question:
`How many extra points did Paul Dickey received`

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

CREATE TABLE "scoring_summary" (
  "player" text,
  "touchdowns_5_points" real,
  "extra_points_1_point" real,
  "field_goals_5_points" real,
  "safeties_2_points" real,
  "total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many extra points did Paul Dickey received`:
```sql
                SELECT MAX("extra_points_1_point") FROM "scoring_summary" WHERE "player"='Paul Dickey';
```
## Task
Generate a SQL query to answer the following question:
`How many 5 points field goals is minimum`

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

CREATE TABLE "scoring_summary" (
  "player" text,
  "touchdowns_5_points" real,
  "extra_points_1_point" real,
  "field_goals_5_points" real,
  "safeties_2_points" real,
  "total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many 5 points field goals is minimum`:
```sql
                SELECT MIN("field_goals_5_points") FROM "scoring_summary";
```
## Task
Generate a SQL query to answer the following question:
`How many player with total points of 75`

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

CREATE TABLE "scoring_summary" (
  "player" text,
  "touchdowns_5_points" real,
  "extra_points_1_point" real,
  "field_goals_5_points" real,
  "safeties_2_points" real,
  "total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many player with total points of 75`:
```sql
                SELECT COUNT("player") FROM "scoring_summary" WHERE "total_points"=75;
```
## Task
Generate a SQL query to answer the following question:
`Name the most field goals`

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

CREATE TABLE "michigan_65_ohio_normal_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most field goals`:
```sql
                SELECT MAX("field_goals") FROM "michigan_65_ohio_normal_0";
```
## Task
Generate a SQL query to answer the following question:
`Name the number of points for right halfback and starter being yes`

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

CREATE TABLE "michigan_65_ohio_normal_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of points for right halfback and starter being yes`:
```sql
                SELECT COUNT("points") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right halfback' AND "starter"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Na,e the number of field goals for right tackle`

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

CREATE TABLE "michigan_65_ohio_normal_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Na,e the number of field goals for right tackle`:
```sql
                SELECT COUNT("field_goals") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right tackle';
```
## Task
Generate a SQL query to answer the following question:
`Name the most extra points for right halfback`

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

CREATE TABLE "michigan_65_ohio_normal_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most extra points for right halfback`:
```sql
                SELECT MAX("extra_points") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right halfback';
```
## Task
Generate a SQL query to answer the following question:
`What positions does Tom Hammond play?`

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

CREATE TABLE "michigan_48_ohio_northern_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What positions does Tom Hammond play?`:
```sql
                SELECT "position" FROM "michigan_48_ohio_northern_0" WHERE "player"='Tom Hammond';
```
## Task
Generate a SQL query to answer the following question:
`What positions does Hal Weeks play?`

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

CREATE TABLE "michigan_48_ohio_northern_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What positions does Hal Weeks play?`:
```sql
                SELECT "position" FROM "michigan_48_ohio_northern_0" WHERE "player"='Hal Weeks';
```
## Task
Generate a SQL query to answer the following question:
`How many points does Clark have? `

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

CREATE TABLE "michigan_48_ohio_northern_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does Clark have? `:
```sql
                SELECT "points" FROM "michigan_48_ohio_northern_0" WHERE "player"='Clark';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the player who was right guard score?`

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

CREATE TABLE "michigan_72_american_medical_school_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the player who was right guard score?`:
```sql
                SELECT COUNT("points") FROM "michigan_72_american_medical_school_0" WHERE "position"='Right guard';
```
## Task
Generate a SQL query to answer the following question:
`Was there a starter when 3 touchdowns were scored?`

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

CREATE TABLE "michigan_72_american_medical_school_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Was there a starter when 3 touchdowns were scored?`:
```sql
                SELECT "starter" FROM "michigan_72_american_medical_school_0" WHERE "touchdowns"=3;
```
## Task
Generate a SQL query to answer the following question:
`How many touchdowns were there when Heston was in play?`

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

CREATE TABLE "michigan_72_american_medical_school_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns were there when Heston was in play?`:
```sql
                SELECT MAX("touchdowns") FROM "michigan_72_american_medical_school_0" WHERE "player"='Heston';
```
## Task
Generate a SQL query to answer the following question:
`How many maximum points were there when the left tackle was played and there were 5 extra points?`

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

CREATE TABLE "michigan_72_american_medical_school_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many maximum points were there when the left tackle was played and there were 5 extra points?`:
```sql
                SELECT MAX("points") FROM "michigan_72_american_medical_school_0" WHERE "position"='Left tackle' AND "extra_points"=5;
```
## Task
Generate a SQL query to answer the following question:
`Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?`

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

CREATE TABLE "presenters" (
  "series" text,
  "main_presenter" text,
  "co_presenter" text,
  "comedian" text,
  "uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?`:
```sql
                SELECT COUNT("uk_co_presenter") FROM "presenters" WHERE "co_presenter"='Joe Swash' AND "comedian"='Russell Kane';
```
## Task
Generate a SQL query to answer the following question:
`What series have Caroline Flack as a main presenter?`

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

CREATE TABLE "presenters" (
  "series" text,
  "main_presenter" text,
  "co_presenter" text,
  "comedian" text,
  "uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series have Caroline Flack as a main presenter?`:
```sql
                SELECT "series" FROM "presenters" WHERE "main_presenter"='Caroline Flack';
```
## Task
Generate a SQL query to answer the following question:
`Who is the co-presenter of the series Seven (2007)?`

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

CREATE TABLE "presenters" (
  "series" text,
  "main_presenter" text,
  "co_presenter" text,
  "comedian" text,
  "uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the co-presenter of the series Seven (2007)?`:
```sql
                SELECT "co_presenter" FROM "presenters" WHERE "series"='Seven (2007)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the main presenter of the series Twelve (2012)?`

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

CREATE TABLE "presenters" (
  "series" text,
  "main_presenter" text,
  "co_presenter" text,
  "comedian" text,
  "uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the main presenter of the series Twelve (2012)?`:
```sql
                SELECT "main_presenter" FROM "presenters" WHERE "series"='Twelve (2012)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the UK co-presenters that have Joe Swash as a co-presenter of the series Eleven (2011)?`

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

CREATE TABLE "presenters" (
  "series" text,
  "main_presenter" text,
  "co_presenter" text,
  "comedian" text,
  "uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the UK co-presenters that have Joe Swash as a co-presenter of the series Eleven (2011)?`:
```sql
                SELECT "uk_co_presenter" FROM "presenters" WHERE "co_presenter"='Joe Swash' AND "series"='Eleven (2011)';
```
## Task
Generate a SQL query to answer the following question:
`What position did Nell McAndrew finish?`

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

CREATE TABLE "series_1_2002" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did Nell McAndrew finish?`:
```sql
                SELECT "finished" FROM "series_1_2002" WHERE "celebrity"='Nell McAndrew';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion boxer?`

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

CREATE TABLE "series_1_2002" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion boxer?`:
```sql
                SELECT "celebrity" FROM "series_1_2002" WHERE "famous_for"='Champion boxer';
```
## Task
Generate a SQL query to answer the following question:
`When did Darren Day enter?`

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

CREATE TABLE "series_1_2002" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Darren Day enter?`:
```sql
                SELECT "entered" FROM "series_1_2002" WHERE "celebrity"='Darren Day';
```
## Task
Generate a SQL query to answer the following question:
`What position did Tara Palmer-Tomkinson finish?`

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

CREATE TABLE "series_1_2002" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did Tara Palmer-Tomkinson finish?`:
```sql
                SELECT "finished" FROM "series_1_2002" WHERE "celebrity"='Tara Palmer-Tomkinson';
```
## Task
Generate a SQL query to answer the following question:
`When did the 4th finisher enter?`

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

CREATE TABLE "series_1_2002" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the 4th finisher enter?`:
```sql
                SELECT "entered" FROM "series_1_2002" WHERE "finished"='4th';
```