cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the maximum season number for the episode written by Jonathan Greene?`

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

CREATE TABLE "table1_23225927_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum season number for the episode written by Jonathan Greene?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_23225927_1" WHERE "written_by"='Jonathan Greene';
```
## Task
Generate a SQL query to answer the following question:
`Name the original air date for prod code 201`

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

CREATE TABLE "table1_2322716_2" (
  "num" text,
  "original_title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_dates" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for prod code 201`:
```sql
                SELECT "original_air_dates" FROM "table1_2322716_2" WHERE "prod_code"=201;
```
## Task
Generate a SQL query to answer the following question:
`Name the written by for prod code being 206`

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

CREATE TABLE "table1_2322716_2" (
  "num" text,
  "original_title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_dates" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the written by for prod code being 206`:
```sql
                SELECT "written_by" FROM "table1_2322716_2" WHERE "prod_code"=206;
```
## Task
Generate a SQL query to answer the following question:
`How many positions are there in Canadian Nascar? `

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

CREATE TABLE "driver_standings" (
  "position" real,
  "driver" text,
  "points" real,
  "starts" real,
  "wins" real,
  "top_5s" real,
  "top_10s" real,
  "winnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions are there in Canadian Nascar? `:
```sql
                SELECT MAX("position") FROM "driver_standings";
```
## Task
Generate a SQL query to answer the following question:
`How many drivers have 1942 points?`

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

CREATE TABLE "driver_standings" (
  "position" real,
  "driver" text,
  "points" real,
  "starts" real,
  "wins" real,
  "top_5s" real,
  "top_10s" real,
  "winnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers have 1942 points?`:
```sql
                SELECT COUNT("driver") FROM "driver_standings" WHERE "points"=1942;
```
## Task
Generate a SQL query to answer the following question:
`How many starts are there?`

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

CREATE TABLE "driver_standings" (
  "position" real,
  "driver" text,
  "points" real,
  "starts" real,
  "wins" real,
  "top_5s" real,
  "top_10s" real,
  "winnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many starts are there?`:
```sql
                SELECT MIN("starts") FROM "driver_standings";
```
## Task
Generate a SQL query to answer the following question:
`How many wins did Andrew Ranger have?`

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

CREATE TABLE "driver_standings" (
  "position" real,
  "driver" text,
  "points" real,
  "starts" real,
  "wins" real,
  "top_5s" real,
  "top_10s" real,
  "winnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did Andrew Ranger have?`:
```sql
                SELECT COUNT("wins") FROM "driver_standings" WHERE "driver"='Andrew Ranger';
```
## Task
Generate a SQL query to answer the following question:
`What are the winnings for position 7?`

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

CREATE TABLE "driver_standings" (
  "position" real,
  "driver" text,
  "points" real,
  "starts" real,
  "wins" real,
  "top_5s" real,
  "top_10s" real,
  "winnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the winnings for position 7?`:
```sql
                SELECT MAX("winnings") FROM "driver_standings" WHERE "position"=7;
```
## Task
Generate a SQL query to answer the following question:
`What number episode in the series was written by David Zuckerman? `

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

CREATE TABLE "table1_23242958_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 number episode in the series was written by David Zuckerman? `:
```sql
                SELECT "no_in_series" FROM "table1_23242958_1" WHERE "written_by"='David Zuckerman';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode written by David Zuckerman? `

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

CREATE TABLE "table1_23242958_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 original air date of the episode written by David Zuckerman? `:
```sql
                SELECT "original_air_date" FROM "table1_23242958_1" WHERE "written_by"='David Zuckerman';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode directed by Rodney Clouden? `

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

CREATE TABLE "table1_23242958_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 title of the episode directed by Rodney Clouden? `:
```sql
                SELECT "title" FROM "table1_23242958_1" WHERE "directed_by"='Rodney Clouden';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched the episode with the production code of 3AJN01?`

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

CREATE TABLE "table1_23242958_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 episode with the production code of 3AJN01?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_23242958_1" WHERE "production_code"='3AJN01';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that had 6.76 million U.S. viewers?`

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

CREATE TABLE "table1_23242968_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 episode that had 6.76 million U.S. viewers?`:
```sql
                SELECT "directed_by" FROM "table1_23242968_1" WHERE "u_s_viewers_millions"='6.76';
```
## Task
Generate a SQL query to answer the following question:
`What episode number of the season was also number 75 in the series?`

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

CREATE TABLE "table1_23242968_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 episode number of the season was also number 75 in the series?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_23242968_1" WHERE "no_in_series"=75;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that had a production code of 3ajn20?`

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

CREATE TABLE "table1_23242968_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 wrote the episode that had a production code of 3ajn20?`:
```sql
                SELECT "written_by" FROM "table1_23242968_1" WHERE "production_code"='3AJN20';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that was written by Jonathan Fener?`

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

CREATE TABLE "table1_23242968_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 episode that was written by Jonathan Fener?`:
```sql
                SELECT "directed_by" FROM "table1_23242968_1" WHERE "written_by"='Jonathan Fener';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the episode with a production code of 3ajn20?`

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

CREATE TABLE "table1_23242968_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 was the name of the episode with a production code of 3ajn20?`:
```sql
                SELECT "title" FROM "table1_23242968_1" WHERE "production_code"='3AJN20';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with production code 1AJN05?`

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

CREATE TABLE "table1_23242933_2" (
  "no_in_series" 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 wrote the episode with production code 1AJN05?`:
```sql
                SELECT "written_by" FROM "table1_23242933_2" WHERE "production_code"='1AJN05';
```
## Task
Generate a SQL query to answer the following question:
`How many different series numbers are there for the episode seen by 7.84 million people in the US?`

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

CREATE TABLE "table1_23242933_2" (
  "no_in_series" 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 different series numbers are there for the episode seen by 7.84 million people in the US?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_23242933_2" WHERE "u_s_viewers_millions"='7.84';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode titled "Francine's Flashback"?`

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

CREATE TABLE "table1_23242933_2" (
  "no_in_series" 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 people in the US saw the episode titled "Francine's Flashback"?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_23242933_2" WHERE "title"='\"Francine''s Flashback\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode written by Dan Vebber?`

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

CREATE TABLE "table1_23242933_2" (
  "no_in_series" 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's the series number of the episode written by Dan Vebber?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_23242933_2" WHERE "written_by"='Dan Vebber';
```
## Task
Generate a SQL query to answer the following question:
`How many different titles are there of episodes that have been seen by 7.84 million people in the US/`

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

CREATE TABLE "table1_23242933_2" (
  "no_in_series" 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 different titles are there of episodes that have been seen by 7.84 million people in the US/`:
```sql
                SELECT COUNT("title") FROM "table1_23242933_2" WHERE "u_s_viewers_millions"='7.84';
```
## Task
Generate a SQL query to answer the following question:
`When did 6.09 million people in the US see the original airing of an episode of the show?`

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

CREATE TABLE "table1_23242933_2" (
  "no_in_series" 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 did 6.09 million people in the US see the original airing of an episode of the show?`:
```sql
                SELECT "original_air_date" FROM "table1_23242933_2" WHERE "u_s_viewers_millions"='6.09';
```
## Task
Generate a SQL query to answer the following question:
`What's the season number of the episode titled "Dungeons and wagons"?`

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

CREATE TABLE "table1_23242950_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's the season number of the episode titled "Dungeons and wagons"?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_23242950_1" WHERE "title"='\"Dungeons and Wagons\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the season number of the episode originally seen by 6.64 million people in the US?`

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

CREATE TABLE "table1_23242950_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's the season number of the episode originally seen by 6.64 million people in the US?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_23242950_1" WHERE "u_s_viewers_millions"='6.64';
```
## Task
Generate a SQL query to answer the following question:
`What's the production code of the episode seen by 7.49 million people in the US?`

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

CREATE TABLE "table1_23242950_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's the production code of the episode seen by 7.49 million people in the US?`:
```sql
                SELECT "production_code" FROM "table1_23242950_1" WHERE "u_s_viewers_millions"='7.49';
```
## Task
Generate a SQL query to answer the following question:
`What opponent got 44 points in their game?`

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

CREATE TABLE "schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "sun_devils_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent got 44 points in their game?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "opp_points"=44;
```
## Task
Generate a SQL query to answer the following question:
`Where was the game with a 4-1 record played?`

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

CREATE TABLE "schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "sun_devils_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game with a 4-1 record played?`:
```sql
                SELECT "location" FROM "schedule" WHERE "record"='4-1';
```
## Task
Generate a SQL query to answer the following question:
`Who did the high rebounds in the game where Larry Hughes (21) did the high ponts?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the high rebounds in the game where Larry Hughes (21) did the high ponts?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "high_points"='Larry Hughes (21)';
```
## Task
Generate a SQL query to answer the following question:
`How many different people did different scores of high assists during the December 11 game?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different people did different scores of high assists during the December 11 game?`:
```sql
                SELECT COUNT("high_assists") FROM "game_log" WHERE "date"='December 11';
```
## Task
Generate a SQL query to answer the following question:
`Who did the high assists in the game against Portland?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the high assists in the game against Portland?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "team"='Portland';
```
## Task
Generate a SQL query to answer the following question:
`What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?`:
```sql
                SELECT "score" FROM "game_log" WHERE "location_attendance"='Madison Square Garden 19,763' AND "game"<80.0;
```
## Task
Generate a SQL query to answer the following question:
`What is every record for the team Boston?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every record for the team Boston?`:
```sql
                SELECT "record" FROM "game_log" WHERE "team"='Boston';
```
## Task
Generate a SQL query to answer the following question:
`How many values for high assists when the game is 81?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for high assists when the game is 81?`:
```sql
                SELECT COUNT("high_assists") FROM "game_log" WHERE "game"=81;
```
## Task
Generate a SQL query to answer the following question:
`How many times was the high points david lee (30)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the high points david lee (30)`:
```sql
                SELECT COUNT("date") FROM "game_log" WHERE "high_points"='David Lee (30)';
```
## Task
Generate a SQL query to answer the following question:
`Who had the high assists when the score was l 85–118 (ot)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the high assists when the score was l 85–118 (ot)`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "score"='L 85–118 (OT)';
```
## Task
Generate a SQL query to answer the following question:
`What was the record when the high rebounds was david lee (8)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when the high rebounds was david lee (8)`:
```sql
                SELECT "record" FROM "game_log" WHERE "high_rebounds"='David Lee (8)';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the record 19–34`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the record 19–34`:
```sql
                SELECT COUNT("score") FROM "game_log" WHERE "record"='19–34';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the record was 19–35`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the record was 19–35`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='19–35';
```
## Task
Generate a SQL query to answer the following question:
`What was the game when high points was david lee (30)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game when high points was david lee (30)`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "high_points"='David Lee (30)';
```
## Task
Generate a SQL query to answer the following question:
`If the population density is 7,447.32, what is the population total number?`

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

CREATE TABLE "political" (
  "city_municipality" text,
  "no_of_barangays" real,
  "area_km" text,
  "population_2010_census" real,
  "pop_density_per_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the population density is 7,447.32, what is the population total number?`:
```sql
                SELECT COUNT("population_2010_census") FROM "political" WHERE "pop_density_per_km"='7,447.32';
```
## Task
Generate a SQL query to answer the following question:
`If the number of barangays is 19, what is the population density?`

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

CREATE TABLE "political" (
  "city_municipality" text,
  "no_of_barangays" real,
  "area_km" text,
  "population_2010_census" real,
  "pop_density_per_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the number of barangays is 19, what is the population density?`:
```sql
                SELECT "pop_density_per_km" FROM "political" WHERE "no_of_barangays"=19;
```
## Task
Generate a SQL query to answer the following question:
`If the area is 66.34, what is the minimum (2010 census) population?`

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

CREATE TABLE "political" (
  "city_municipality" text,
  "no_of_barangays" real,
  "area_km" text,
  "population_2010_census" real,
  "pop_density_per_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the area is 66.34, what is the minimum (2010 census) population?`:
```sql
                SELECT MIN("population_2010_census") FROM "political" WHERE "area_km"='66.34';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the city/municipality if the population is 1,388.88?`

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

CREATE TABLE "political" (
  "city_municipality" text,
  "no_of_barangays" real,
  "area_km" text,
  "population_2010_census" real,
  "pop_density_per_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the city/municipality if the population is 1,388.88?`:
```sql
                SELECT "city_municipality" FROM "political" WHERE "pop_density_per_km"='1,388.88';
```
## Task
Generate a SQL query to answer the following question:
`When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?`

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

CREATE TABLE "cities_and_towns" (
  "rank" real,
  "city_town" text,
  "county" text,
  "region_province" text,
  "population" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?`:
```sql
                SELECT COUNT("rank") FROM "cities_and_towns" WHERE "country"='England' AND "county"='Merseyside' AND "city_town"='Birkenhead';
```
## Task
Generate a SQL query to answer the following question:
`When 2 is the rank what is the city/town?`

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

CREATE TABLE "cities_and_towns" (
  "rank" real,
  "city_town" text,
  "county" text,
  "region_province" text,
  "population" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 2 is the rank what is the city/town?`:
```sql
                SELECT "city_town" FROM "cities_and_towns" WHERE "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`When 20 is the rank and north west is the region/province what is the county?`

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

CREATE TABLE "cities_and_towns" (
  "rank" real,
  "city_town" text,
  "county" text,
  "region_province" text,
  "population" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 20 is the rank and north west is the region/province what is the county?`:
```sql
                SELECT "county" FROM "cities_and_towns" WHERE "region_province"='North West' AND "rank"=20;
```
## Task
Generate a SQL query to answer the following question:
`When fleetwood is the city/town how many sets of population are there?`

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

CREATE TABLE "cities_and_towns" (
  "rank" real,
  "city_town" text,
  "county" text,
  "region_province" text,
  "population" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `When fleetwood is the city/town how many sets of population are there?`:
```sql
                SELECT COUNT("population") FROM "cities_and_towns" WHERE "city_town"='Fleetwood';
```
## Task
Generate a SQL query to answer the following question:
`When 142900 is the population what is the highest rank?`

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

CREATE TABLE "cities_and_towns" (
  "rank" real,
  "city_town" text,
  "county" text,
  "region_province" text,
  "population" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 142900 is the population what is the highest rank?`:
```sql
                SELECT MAX("rank") FROM "cities_and_towns" WHERE "population"=142900;
```
## Task
Generate a SQL query to answer the following question:
`When 31901 is the population what is the county?`

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

CREATE TABLE "cities_and_towns" (
  "rank" real,
  "city_town" text,
  "county" text,
  "region_province" text,
  "population" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 31901 is the population what is the county?`:
```sql
                SELECT "county" FROM "cities_and_towns" WHERE "population"=31901;
```
## Task
Generate a SQL query to answer the following question:
`What was the score against the team with an 11-3 record against the Hawks?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score against the team with an 11-3 record against the Hawks?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='11-3';
```
## Task
Generate a SQL query to answer the following question:
`Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "record"='5-2';
```
## Task
Generate a SQL query to answer the following question:
`What location and it's attendance was the game against the cavaliers?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location and it's attendance was the game against the cavaliers?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "team"='Cavaliers';
```
## Task
Generate a SQL query to answer the following question:
`Who scored the highest points and how much against the raptors?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored the highest points and how much against the raptors?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "team"='Raptors';
```
## Task
Generate a SQL query to answer the following question:
`What location and it's attendance was the game against the Nets?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location and it's attendance was the game against the Nets?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "team"='Nets';
```
## Task
Generate a SQL query to answer the following question:
`List all players with highest assists from April 2.`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all players with highest assists from April 2.`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='April 2';
```
## Task
Generate a SQL query to answer the following question:
`List high points from the April 7 game.`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `List high points from the April 7 game.`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='April 7';
```
## Task
Generate a SQL query to answer the following question:
`What is every team on March 5?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every team on March 5?`:
```sql
                SELECT "team" FROM "game_log" WHERE "date"='March 5';
```
## Task
Generate a SQL query to answer the following question:
`Who is every high points for the Pistons team?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every high points for the Pistons team?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "team"='Pistons';
```
## Task
Generate a SQL query to answer the following question:
`What is every score with a record of 46-25?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every score with a record of 46-25?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='46-25';
```
## Task
Generate a SQL query to answer the following question:
`How many people had high rebounds during the game with a record of 34-32?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people had high rebounds during the game with a record of 34-32?`:
```sql
                SELECT COUNT("high_rebounds") FROM "game_log" WHERE "record"='34-32';
```
## Task
Generate a SQL query to answer the following question:
`How many people led in assists on game 71?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people led in assists on game 71?`:
```sql
                SELECT COUNT("high_assists") FROM "game_log" WHERE "game"=71;
```
## Task
Generate a SQL query to answer the following question:
`What was the location and it's attendance when the Bobcats played against Washington?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location and it's attendance when the Bobcats played against Washington?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "team"='Washington';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for milwaukee`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for milwaukee`:
```sql
                SELECT "record" FROM "game_log" WHERE "team"='Milwaukee';
```
## Task
Generate a SQL query to answer the following question:
`Name the location attendance for 10-14`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location attendance for 10-14`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='10-14';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for december 8`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for december 8`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='December 8';
```
## Task
Generate a SQL query to answer the following question:
`How did the game number 50 end?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did the game number 50 end?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"=50;
```
## Task
Generate a SQL query to answer the following question:
`How many different high assists results are there for the game played on February 24?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different high assists results are there for the game played on February 24?`:
```sql
                SELECT COUNT("high_assists") FROM "game_log" WHERE "date"='February 24';
```
## Task
Generate a SQL query to answer the following question:
`Who did the most high assists during the game played on February 6?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the most high assists during the game played on February 6?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='February 6';
```
## Task
Generate a SQL query to answer the following question:
`Where was game number 55 played?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was game number 55 played?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "game"=55;
```
## Task
Generate a SQL query to answer the following question:
`What date was game 78 played on?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was game 78 played on?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=78;
```
## Task
Generate a SQL query to answer the following question:
`What is the final score of the game on April 9?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final score of the game on April 9?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='April 9';
```
## Task
Generate a SQL query to answer the following question:
`Who scored the high points in game 78?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored the high points in game 78?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "game"=78;
```
## Task
Generate a SQL query to answer the following question:
`What is the score when the game is bigger than 29.0?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when the game is bigger than 29.0?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game">29.0;
```