cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many manners of departure did peter voets have?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many manners of departure did peter voets have?`:
```sql
                SELECT COUNT("manner_of_departure") FROM "managerial_changes" WHERE "outgoing_manager"='Peter Voets';
```
## Task
Generate a SQL query to answer the following question:
`What is the link abilities when the predecessors is ti-85?`

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

CREATE TABLE "table1_11703336_1" (
  "calculator" text,
  "cpu" text,
  "ram" text,
  "display_size" text,
  "programming_languages" text,
  "link_abilities" text,
  "year_released" text,
  "predecessors" text,
  "successors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the link abilities when the predecessors is ti-85?`:
```sql
                SELECT "link_abilities" FROM "table1_11703336_1" WHERE "predecessors"='TI-85';
```
## Task
Generate a SQL query to answer the following question:
`What is the cpu of the calculator released in 1993?`

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

CREATE TABLE "table1_11703336_1" (
  "calculator" text,
  "cpu" text,
  "ram" text,
  "display_size" text,
  "programming_languages" text,
  "link_abilities" text,
  "year_released" text,
  "predecessors" text,
  "successors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cpu of the calculator released in 1993?`:
```sql
                SELECT "cpu" FROM "table1_11703336_1" WHERE "year_released"='1993';
```
## Task
Generate a SQL query to answer the following question:
`what is the display size for the calculator released in 1997?`

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

CREATE TABLE "table1_11703336_1" (
  "calculator" text,
  "cpu" text,
  "ram" text,
  "display_size" text,
  "programming_languages" text,
  "link_abilities" text,
  "year_released" text,
  "predecessors" text,
  "successors" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the display size for the calculator released in 1997?`:
```sql
                SELECT "display_size" FROM "table1_11703336_1" WHERE "year_released"='1997';
```
## Task
Generate a SQL query to answer the following question:
`what is the display size for the calculator ti-82?`

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

CREATE TABLE "table1_11703336_1" (
  "calculator" text,
  "cpu" text,
  "ram" text,
  "display_size" text,
  "programming_languages" text,
  "link_abilities" text,
  "year_released" text,
  "predecessors" text,
  "successors" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the display size for the calculator ti-82?`:
```sql
                SELECT "display_size" FROM "table1_11703336_1" WHERE "calculator"='TI-82';
```
## Task
Generate a SQL query to answer the following question:
`what is the cpu for the calculator with 28 kb of ram and display size 128×64 pixels 21×8 characters?`

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

CREATE TABLE "table1_11703336_1" (
  "calculator" text,
  "cpu" text,
  "ram" text,
  "display_size" text,
  "programming_languages" text,
  "link_abilities" text,
  "year_released" text,
  "predecessors" text,
  "successors" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the cpu for the calculator with 28 kb of ram and display size 128×64 pixels 21×8 characters?`:
```sql
                SELECT "cpu" FROM "table1_11703336_1" WHERE "ram"='28 KB of RAM' AND "display_size"='128×64 pixels 21×8 characters';
```
## Task
Generate a SQL query to answer the following question:
`How many series has the title "interior loft"?`

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

CREATE TABLE "table1_11715748_2" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many series has the title "interior loft"?`:
```sql
                SELECT COUNT("series_num") FROM "table1_11715748_2" WHERE "title"='\"Interior Loft\"';
```
## Task
Generate a SQL query to answer the following question:
`Who was the dirctor for season 13?`

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

CREATE TABLE "table1_11715748_2" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the dirctor for season 13?`:
```sql
                SELECT "director_s" FROM "table1_11715748_2" WHERE "season_num"=13;
```
## Task
Generate a SQL query to answer the following question:
`Who was the director for the title, "funhouse"?`

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

CREATE TABLE "table1_11715748_2" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director for the title, "funhouse"?`:
```sql
                SELECT "director_s" FROM "table1_11715748_2" WHERE "title"='\"Funhouse\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode title of the show that had a production code of 3T5764?`

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

CREATE TABLE "table1_11694832_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode title of the show that had a production code of 3T5764?`:
```sql
                SELECT "title" FROM "table1_11694832_1" WHERE "production_code"='3T5764';
```
## Task
Generate a SQL query to answer the following question:
`What is the first series number that Adele Lim wrote?`

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

CREATE TABLE "table1_11694832_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first series number that Adele Lim wrote?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_11694832_1" WHERE "written_by"='Adele Lim';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched the show with a production code of 3T5769?`

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

CREATE TABLE "table1_11694832_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S. viewers watched the show with a production code of 3T5769?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_11694832_1" WHERE "production_code"='3T5769';
```
## Task
Generate a SQL query to answer the following question:
`When was the show first aired that was viewed by 3.57 million U.S. viewers?`

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

CREATE TABLE "table1_11694832_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the show first aired that was viewed by 3.57 million U.S. viewers?`:
```sql
                SELECT "original_air_date" FROM "table1_11694832_1" WHERE "u_s_viewers_millions"='3.57';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the show that was viewed by 2.06 million U.S. people?`

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

CREATE TABLE "table1_11694832_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the show that was viewed by 2.06 million U.S. people?`:
```sql
                SELECT "directed_by" FROM "table1_11694832_1" WHERE "u_s_viewers_millions"='2.06';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player that came from the school/club team/country of Purdue?`

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

CREATE TABLE "l" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player that came from the school/club team/country of Purdue?`:
```sql
                SELECT "position" FROM "l" WHERE "school_club_team_country"='Purdue';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player who's number is 3?`

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

CREATE TABLE "l" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player who's number is 3?`:
```sql
                SELECT "player" FROM "l" WHERE "no_s"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the height for the player in 1968-72?`

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

CREATE TABLE "l" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height for the player in 1968-72?`:
```sql
                SELECT "height_in_ft" FROM "l" WHERE "years_for_rockets"='1968-72';
```
## Task
Generate a SQL query to answer the following question:
`Which player had a height of 6-0?`

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

CREATE TABLE "l" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a height of 6-0?`:
```sql
                SELECT "player" FROM "l" WHERE "height_in_ft"='6-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the position for the player that played in 2006?`

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

CREATE TABLE "l" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for the player that played in 2006?`:
```sql
                SELECT "position" FROM "l" WHERE "years_for_rockets"='2006';
```
## Task
Generate a SQL query to answer the following question:
`What are all the names of the players who are 7-0 tall?`

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

CREATE TABLE "k" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the names of the players who are 7-0 tall?`:
```sql
                SELECT "player" FROM "k" WHERE "height_in_ft"='7-0';
```
## Task
Generate a SQL query to answer the following question:
`Kimball, toby toby kimball is a player; How many times at school/ club team/country  was the player present?`

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

CREATE TABLE "k" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Kimball, toby toby kimball is a player; How many times at school/ club team/country  was the player present?`:
```sql
                SELECT COUNT("school_club_team_country") FROM "k" WHERE "player"='Kimball, Toby Toby Kimball';
```
## Task
Generate a SQL query to answer the following question:
`In connecticut the school/club team/country had a set height in ft. what is true for them?`

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

CREATE TABLE "k" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `In connecticut the school/club team/country had a set height in ft. what is true for them?`:
```sql
                SELECT "height_in_ft" FROM "k" WHERE "school_club_team_country"='Connecticut';
```
## Task
Generate a SQL query to answer the following question:
`Rockets height was 6-6 in feet, list the time frame where this was true?`

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

CREATE TABLE "k" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Rockets height was 6-6 in feet, list the time frame where this was true?`:
```sql
                SELECT "years_for_rockets" FROM "k" WHERE "height_in_ft"='6-6';
```
## Task
Generate a SQL query to answer the following question:
`What is the hight of the player who's tenure lasted from 1969-70?`

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

CREATE TABLE "s" (
  "player" text,
  "no_s" real,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hight of the player who's tenure lasted from 1969-70?`:
```sql
                SELECT "height_in_ft" FROM "s" WHERE "years_for_rockets"='1969-70';
```
## Task
Generate a SQL query to answer the following question:
`What school did the 7-4 player attend?`

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

CREATE TABLE "s" (
  "player" text,
  "no_s" real,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did the 7-4 player attend?`:
```sql
                SELECT "school_club_team_country" FROM "s" WHERE "height_in_ft"='7-4';
```
## Task
Generate a SQL query to answer the following question:
` what's the years for rockets where position is guard / forward`

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

CREATE TABLE "w" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the years for rockets where position is guard / forward`:
```sql
                SELECT "years_for_rockets" FROM "w" WHERE "position"='Guard / Forward';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of player where years for rockets is 1975-79`

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

CREATE TABLE "w" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of player where years for rockets is 1975-79`:
```sql
                SELECT COUNT("player") FROM "w" WHERE "years_for_rockets"='1975-79';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of player where years for rockets is 2004-06`

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

CREATE TABLE "w" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of player where years for rockets is 2004-06`:
```sql
                SELECT COUNT("player") FROM "w" WHERE "years_for_rockets"='2004-06';
```
## Task
Generate a SQL query to answer the following question:
` what's the position where player is williams, bernie bernie williams`

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

CREATE TABLE "w" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the position where player is williams, bernie bernie williams`:
```sql
                SELECT "position" FROM "w" WHERE "player"='Williams, Bernie Bernie Williams';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of years for rockets where school/club team/country is baylor`

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

CREATE TABLE "w" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of years for rockets where school/club team/country is baylor`:
```sql
                SELECT COUNT("years_for_rockets") FROM "w" WHERE "school_club_team_country"='Baylor';
```
## Task
Generate a SQL query to answer the following question:
`How many positions had jersey number 32`

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

CREATE TABLE "t" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions had jersey number 32`:
```sql
                SELECT COUNT("position") FROM "t" WHERE "no_s"='32';
```
## Task
Generate a SQL query to answer the following question:
`Which years had a jersey number 55`

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

CREATE TABLE "t" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years had a jersey number 55`:
```sql
                SELECT "years_for_rockets" FROM "t" WHERE "no_s"='55';
```
## Task
Generate a SQL query to answer the following question:
`Which school, club team, or country played for the rockets in the years 2000-01?`

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

CREATE TABLE "c" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school, club team, or country played for the rockets in the years 2000-01?`:
```sql
                SELECT "school_club_team_country" FROM "c" WHERE "years_for_rockets"='2000-01';
```
## Task
Generate a SQL query to answer the following question:
`During which years did number 13 play for the Rockets?`

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

CREATE TABLE "c" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which years did number 13 play for the Rockets?`:
```sql
                SELECT "years_for_rockets" FROM "c" WHERE "no_s"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest date settled for chifley?`

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

CREATE TABLE "suburbs" (
  "suburb" text,
  "population_in_2008" real,
  "median_age_in_2006" text,
  "mean_household_size_in_2006" text,
  "area_km" text,
  "density_km" real,
  "date_first_settled_as_a_suburb" real,
  "gazetted_as_a_division_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest date settled for chifley?`:
```sql
                SELECT MIN("date_first_settled_as_a_suburb") FROM "suburbs" WHERE "suburb"='Chifley';
```
## Task
Generate a SQL query to answer the following question:
`What is the density in Garran?`

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

CREATE TABLE "suburbs" (
  "suburb" text,
  "population_in_2008" real,
  "median_age_in_2006" text,
  "mean_household_size_in_2006" text,
  "area_km" text,
  "density_km" real,
  "date_first_settled_as_a_suburb" real,
  "gazetted_as_a_division_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the density in Garran?`:
```sql
                SELECT MIN("density_km") FROM "suburbs" WHERE "suburb"='Garran';
```
## Task
Generate a SQL query to answer the following question:
`What is the date settled for 40 years?`

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

CREATE TABLE "suburbs" (
  "suburb" text,
  "population_in_2008" real,
  "median_age_in_2006" text,
  "mean_household_size_in_2006" text,
  "area_km" text,
  "density_km" real,
  "date_first_settled_as_a_suburb" real,
  "gazetted_as_a_division_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date settled for 40 years?`:
```sql
                SELECT "date_first_settled_as_a_suburb" FROM "suburbs" WHERE "median_age_in_2006"='40 years';
```
## Task
Generate a SQL query to answer the following question:
`What is the median age where the area is 1.7?`

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

CREATE TABLE "suburbs" (
  "suburb" text,
  "population_in_2008" real,
  "median_age_in_2006" text,
  "mean_household_size_in_2006" text,
  "area_km" text,
  "density_km" real,
  "date_first_settled_as_a_suburb" real,
  "gazetted_as_a_division_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the median age where the area is 1.7?`:
```sql
                SELECT "median_age_in_2006" FROM "suburbs" WHERE "area_km"='1.7';
```
## Task
Generate a SQL query to answer the following question:
`Who is the thursday presenter of the show Big Brother 13?`

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

CREATE TABLE "presenters" (
  "series" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the thursday presenter of the show Big Brother 13?`:
```sql
                SELECT "thursday" FROM "presenters" WHERE "series"='Big Brother 13';
```
## Task
Generate a SQL query to answer the following question:
`Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East?`

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

CREATE TABLE "presenters" (
  "series" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East?`:
```sql
                SELECT "friday" FROM "presenters" WHERE "monday"='Emma Willis Jamie East';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Tuesday presenter of Celebrity Big Brother 8?`

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

CREATE TABLE "presenters" (
  "series" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Tuesday presenter of Celebrity Big Brother 8?`:
```sql
                SELECT "tuesday" FROM "presenters" WHERE "series"='Celebrity Big Brother 8';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Wednesday presenter of the show Big Brother 13?`

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

CREATE TABLE "presenters" (
  "series" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Wednesday presenter of the show Big Brother 13?`:
```sql
                SELECT "wednesday" FROM "presenters" WHERE "series"='Big Brother 13';
```
## Task
Generate a SQL query to answer the following question:
`List all of the shows with Alice Levine Jamie East is the Sunday presenter.`

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

CREATE TABLE "presenters" (
  "series" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text,
  "sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all of the shows with Alice Levine Jamie East is the Sunday presenter.`:
```sql
                SELECT "series" FROM "presenters" WHERE "sunday"='Alice Levine Jamie East';
```
## Task
Generate a SQL query to answer the following question:
`What are all the positions for the rockets in 2008?`

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

CREATE TABLE "g" (
  "player" text,
  "no_s" real,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the positions for the rockets in 2008?`:
```sql
                SELECT "position" FROM "g" WHERE "years_for_rockets"='2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the school club team members in clemson?`

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

CREATE TABLE "g" (
  "player" text,
  "no_s" real,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the school club team members in clemson?`:
```sql
                SELECT "height_in_ft" FROM "g" WHERE "school_club_team_country"='Clemson';
```
## Task
Generate a SQL query to answer the following question:
`What years for the rockets did player ford, alton alton ford play?`

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

CREATE TABLE "f" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years for the rockets did player ford, alton alton ford play?`:
```sql
                SELECT "years_for_rockets" FROM "f" WHERE "player"='Ford, Alton Alton Ford';
```
## Task
Generate a SQL query to answer the following question:
`What years for the rockets did the player ford, phil phil ford play?`

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

CREATE TABLE "f" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years for the rockets did the player ford, phil phil ford play?`:
```sql
                SELECT "years_for_rockets" FROM "f" WHERE "player"='Ford, Phil Phil Ford';
```
## Task
Generate a SQL query to answer the following question:
`What school/club team/country did the player fitch, gerald gerald fitch play for?`

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

CREATE TABLE "f" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school/club team/country did the player fitch, gerald gerald fitch play for?`:
```sql
                SELECT "school_club_team_country" FROM "f" WHERE "player"='Fitch, Gerald Gerald Fitch';
```
## Task
Generate a SQL query to answer the following question:
`What is the weekly rank where the number is 4?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers" text,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weekly rank where the number is 4?`:
```sql
                SELECT "weekly_rank" FROM "u_s_nielsen_ratings" WHERE "num"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the viewers for the episode "woman marries heart"?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers" text,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the viewers for the episode "woman marries heart"?`:
```sql
                SELECT "viewers" FROM "u_s_nielsen_ratings" WHERE "episode"='\"Woman Marries Heart\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum of t20 matches?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" real,
  "la_matches" real,
  "t20_matches" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum of t20 matches?`:
```sql
                SELECT MIN("t20_matches") FROM "ground_history";
```
## Task
Generate a SQL query to answer the following question:
`Where is ropery lane located?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" real,
  "la_matches" real,
  "t20_matches" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is ropery lane located?`:
```sql
                SELECT "location" FROM "ground_history" WHERE "name_of_ground"='Ropery Lane';
```
## Task
Generate a SQL query to answer the following question:
`Where is ropery lane and la matches 7 location?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" real,
  "la_matches" real,
  "t20_matches" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is ropery lane and la matches 7 location?`:
```sql
                SELECT "location" FROM "ground_history" WHERE "la_matches"=7 AND "name_of_ground"='Ropery Lane';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum fc matches?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" real,
  "la_matches" real,
  "t20_matches" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum fc matches?`:
```sql
                SELECT MAX("fc_matches") FROM "ground_history";
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum fc matches at the racecourse?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" real,
  "la_matches" real,
  "t20_matches" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum fc matches at the racecourse?`:
```sql
                SELECT MAX("fc_matches") FROM "ground_history" WHERE "name_of_ground"='The Racecourse';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum t20 on green lane?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" real,
  "la_matches" real,
  "t20_matches" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum t20 on green lane?`:
```sql
                SELECT MAX("t20_matches") FROM "ground_history" WHERE "name_of_ground"='Green Lane';
```
## Task
Generate a SQL query to answer the following question:
`what's the cylinders/ valves with model being 1.8 20v`

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

CREATE TABLE "petrol_engines" (
  "model" text,
  "cylinders_valves" text,
  "displacement_cc" real,
  "max_power_k_w_ps_at_rpm" text,
  "max_torque_nm_at_rpm" text,
  "engine_code" text,
  "top_speed_km_h" real,
  "production_period" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the cylinders/ valves with model being 1.8 20v`:
```sql
                SELECT "cylinders_valves" FROM "petrol_engines" WHERE "model"='1.8 20V';
```
## Task
Generate a SQL query to answer the following question:
`Which units are commanded by Lieutenant Colonel Francis Hepburn?`

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

CREATE TABLE "table1_11793221_2" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which units are commanded by Lieutenant Colonel Francis Hepburn?`:
```sql
                SELECT "unit" FROM "table1_11793221_2" WHERE "commander"='Lieutenant Colonel Francis Hepburn';
```
## Task
Generate a SQL query to answer the following question:
`What are the complements when the commander is Major William Lloyd?`

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

CREATE TABLE "table1_11793221_2" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the complements when the commander is Major William Lloyd?`:
```sql
                SELECT "complement" FROM "table1_11793221_2" WHERE "commander"='Major William Lloyd';
```
## Task
Generate a SQL query to answer the following question:
`How many were wounded when the complement was 173 off 2059 men?`

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

CREATE TABLE "table1_11793221_2" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were wounded when the complement was 173 off 2059 men?`:
```sql
                SELECT "wounded" FROM "table1_11793221_2" WHERE "complement"='173 off 2059 men';
```
## Task
Generate a SQL query to answer the following question:
`How many where killed under Major-General Jean Victor de Constant Rebecque's command?`

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

CREATE TABLE "table1_11793221_2" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many where killed under Major-General Jean Victor de Constant Rebecque's command?`:
```sql
                SELECT "killed" FROM "table1_11793221_2" WHERE "commander"='Major-General Jean Victor de Constant Rebecque';
```
## Task
Generate a SQL query to answer the following question:
`Who were the commanders when 8 off 0 men were wounded?`

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

CREATE TABLE "table1_11793221_2" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the commanders when 8 off 0 men were wounded?`:
```sql
                SELECT "commander" FROM "table1_11793221_2" WHERE "wounded"='8 off 0 men';
```
## Task
Generate a SQL query to answer the following question:
`What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion?`

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

CREATE TABLE "prospective_members" (
  "country" text,
  "population" real,
  "area_km" real,
  "gdp_nominal" text,
  "gdp_per_capita_nominal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion?`:
```sql
                SELECT "gdp_per_capita_nominal" FROM "prospective_members" WHERE "gdp_nominal"='$52.0 billion';
```
## Task
Generate a SQL query to answer the following question:
`How many countries has a gdp (nominal) of $29.9 billion?`

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

CREATE TABLE "prospective_members" (
  "country" text,
  "population" real,
  "area_km" real,
  "gdp_nominal" text,
  "gdp_per_capita_nominal" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries has a gdp (nominal) of $29.9 billion?`:
```sql
                SELECT COUNT("gdp_per_capita_nominal") FROM "prospective_members" WHERE "gdp_nominal"='$29.9 billion';
```
## Task
Generate a SQL query to answer the following question:
`What is the GDP (nominal) for Uzbekistan?`

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

CREATE TABLE "prospective_members" (
  "country" text,
  "population" real,
  "area_km" real,
  "gdp_nominal" text,
  "gdp_per_capita_nominal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GDP (nominal) for Uzbekistan?`:
```sql
                SELECT "gdp_nominal" FROM "prospective_members" WHERE "country"='Uzbekistan';
```
## Task
Generate a SQL query to answer the following question:
`What is the area (km²) for the country with a population of 16967000?`

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

CREATE TABLE "prospective_members" (
  "country" text,
  "population" real,
  "area_km" real,
  "gdp_nominal" text,
  "gdp_per_capita_nominal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area (km²) for the country with a population of 16967000?`:
```sql
                SELECT MIN("area_km") FROM "prospective_members" WHERE "population"=16967000;
```
## Task
Generate a SQL query to answer the following question:
`What is the aspect ratio of the DVD released on 12/10/2009?`

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

CREATE TABLE "dvd_releases" (
  "dvd_name" text,
  "released" text,
  "audio" text,
  "aspect_ratio" text,
  "duration" text,
  "number_of_episodes" real,
  "num_of_discs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aspect ratio of the DVD released on 12/10/2009?`:
```sql
                SELECT "aspect_ratio" FROM "dvd_releases" WHERE "released"='12/10/2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the DVD where the number of discs is greater than 2.0`

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

CREATE TABLE "dvd_releases" (
  "dvd_name" text,
  "released" text,
  "audio" text,
  "aspect_ratio" text,
  "duration" text,
  "number_of_episodes" real,
  "num_of_discs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the DVD where the number of discs is greater than 2.0`:
```sql
                SELECT "dvd_name" FROM "dvd_releases" WHERE "num_of_discs">2.0;
```
## Task
Generate a SQL query to answer the following question:
`How many releases did the DVD River Cottage forever have?`

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

CREATE TABLE "dvd_releases" (
  "dvd_name" text,
  "released" text,
  "audio" text,
  "aspect_ratio" text,
  "duration" text,
  "number_of_episodes" real,
  "num_of_discs" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many releases did the DVD River Cottage forever have?`:
```sql
                SELECT COUNT("released") FROM "dvd_releases" WHERE "dvd_name"='River Cottage Forever';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of discs where the run time was 4 hours 40 minutes?`

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

CREATE TABLE "dvd_releases" (
  "dvd_name" text,
  "released" text,
  "audio" text,
  "aspect_ratio" text,
  "duration" text,
  "number_of_episodes" real,
  "num_of_discs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of discs where the run time was 4 hours 40 minutes?`:
```sql
                SELECT COUNT("num_of_discs") FROM "dvd_releases" WHERE "duration"='4 hours 40 minutes';
```
## Task
Generate a SQL query to answer the following question:
`What were the wounded for complement of 46 off 656 men?`

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

CREATE TABLE "table1_11793221_4" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the wounded for complement of 46 off 656 men?`:
```sql
                SELECT "wounded" FROM "table1_11793221_4" WHERE "complement"='46 off 656 men';
```
## Task
Generate a SQL query to answer the following question:
`What was the missing for lieutenant general sir thomas picton?`

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

CREATE TABLE "table1_11793221_4" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the missing for lieutenant general sir thomas picton?`:
```sql
                SELECT "missing" FROM "table1_11793221_4" WHERE "commander"='Lieutenant General Sir Thomas Picton';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of complement for 4th hanoverian brigade`

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

CREATE TABLE "table1_11793221_4" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of complement for 4th hanoverian brigade`:
```sql
                SELECT COUNT("complement") FROM "table1_11793221_4" WHERE "unit"='4th Hanoverian Brigade';
```
## Task
Generate a SQL query to answer the following question:
`Name the commander of 167 off 2348 men`

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

CREATE TABLE "table1_11793221_4" (
  "unit" text,
  "commander" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the commander of 167 off 2348 men`:
```sql
                SELECT "commander" FROM "table1_11793221_4" WHERE "complement"='167 off 2348 men';
```
## Task
Generate a SQL query to answer the following question:
`HOW MUCH WAS THE OVERALL FOR ERIK KARLSSON?`

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

CREATE TABLE "2008_draft_picks" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MUCH WAS THE OVERALL FOR ERIK KARLSSON?`:
```sql
                SELECT MIN("overall") FROM "2008_draft_picks";
```
## Task
Generate a SQL query to answer the following question:
`WHAT ROUND WAS FORWARD ANDRE PETERSSON SELECTED?`

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

CREATE TABLE "2008_draft_picks" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT ROUND WAS FORWARD ANDRE PETERSSON SELECTED?`:
```sql
                SELECT MIN("round") FROM "2008_draft_picks" WHERE "position"='Forward';
```