cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`On december 16, 1985, all the records were what?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On december 16, 1985, all the records were what?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='December 16, 1985';
```
## Task
Generate a SQL query to answer the following question:
`How many results are there for the 0-4 record?`

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

CREATE TABLE "game_by_game_results" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many results are there for the 0-4 record?`:
```sql
                SELECT COUNT("result") FROM "game_by_game_results" WHERE "record"='0-4';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks are there that include the date October 11, 1969.`

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

CREATE TABLE "game_by_game_results" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks are there that include the date October 11, 1969.`:
```sql
                SELECT COUNT("week") FROM "game_by_game_results" WHERE "date"='October 11, 1969';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks are there that include the date November 9, 1969.`

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

CREATE TABLE "game_by_game_results" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks are there that include the date November 9, 1969.`:
```sql
                SELECT COUNT("week") FROM "game_by_game_results" WHERE "date"='November 9, 1969';
```
## Task
Generate a SQL query to answer the following question:
`How many records are there at the War Memorial Stadium?`

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

CREATE TABLE "game_by_game_results" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many records are there at the War Memorial Stadium?`:
```sql
                SELECT COUNT("record") FROM "game_by_game_results" WHERE "stadium"='War Memorial Stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the minimum attendance on December 7, 1969?`

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

CREATE TABLE "game_by_game_results" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum attendance on December 7, 1969?`:
```sql
                SELECT MIN("attendance") FROM "game_by_game_results" WHERE "date"='December 7, 1969';
```
## Task
Generate a SQL query to answer the following question:
`What week corresponds to the last one to be played at the memorial stadium?`

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

CREATE TABLE "schedule" (
  "week" real,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week corresponds to the last one to be played at the memorial stadium?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "stadium"='Memorial Stadium';
```
## Task
Generate a SQL query to answer the following question:
`In which stadium is the week 5 game played?`

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

CREATE TABLE "schedule" (
  "week" real,
  "opponent" text,
  "result" text,
  "stadium" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In which stadium is the week 5 game played?`:
```sql
                SELECT "stadium" FROM "schedule" WHERE "week"=5;
```
## Task
Generate a SQL query to answer the following question:
`In Penney's game what is the probability where the 1st player wins if the probability of a draw is 8.28% and the 2nd player chooses B BR?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_players_choice" text,
  "2nd_players_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Penney's game what is the probability where the 1st player wins if the probability of a draw is 8.28% and the 2nd player chooses B BR?`:
```sql
                SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_of_a_draw"='8.28%' AND "2nd_players_choice"='B BR';
```
## Task
Generate a SQL query to answer the following question:
`If the first player chooses RB B, what is the second player's choices?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_players_choice" text,
  "2nd_players_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the first player chooses RB B, what is the second player's choices?`:
```sql
                SELECT "2nd_players_choice" FROM "variation_with_playing_cards" WHERE "1st_players_choice"='RB B';
```
## Task
Generate a SQL query to answer the following question:
`What is the probability where the second player wins where their choice is R RB and the first player has a 5.18% chance of winning?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_players_choice" text,
  "2nd_players_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the probability where the second player wins where their choice is R RB and the first player has a 5.18% chance of winning?`:
```sql
                SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "2nd_players_choice"='R RB' AND "probability_1st_player_wins"='5.18%';
```
## Task
Generate a SQL query to answer the following question:
`What are the chances the first player will win if the 2nd player has an 80.11% chance of winning with the choice of R RB?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_players_choice" text,
  "2nd_players_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the chances the first player will win if the 2nd player has an 80.11% chance of winning with the choice of R RB?`:
```sql
                SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='80.11%' AND "2nd_players_choice"='R RB';
```
## Task
Generate a SQL query to answer the following question:
`What are the chances that player 2 wins if player 1's choice is BB R?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_players_choice" text,
  "2nd_players_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the chances that player 2 wins if player 1's choice is BB R?`:
```sql
                SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "1st_players_choice"='BB R';
```
## Task
Generate a SQL query to answer the following question:
`How high is the chance that player 1 wins if player 2 has an 88.29% chance of winning with the choice of R RB?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_players_choice" text,
  "2nd_players_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `How high is the chance that player 1 wins if player 2 has an 88.29% chance of winning with the choice of R RB?`:
```sql
                SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='88.29%' AND "2nd_players_choice"='R RB';
```
## Task
Generate a SQL query to answer the following question:
` what is the nfl team where player is thane gash`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what is the nfl team where player is thane gash`:
```sql
                SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='Thane Gash';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum pick # where player is anthony blaylock`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum pick # where player is anthony blaylock`:
```sql
                SELECT MAX("pick_num") FROM "nfl_draft" WHERE "player"='Anthony Blaylock';
```
## Task
Generate a SQL query to answer the following question:
` what's the nfl team where player is clifford charlton`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the nfl team where player is clifford charlton`:
```sql
                SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='Clifford Charlton';
```
## Task
Generate a SQL query to answer the following question:
` what's the position where player is anthony blaylock`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the position where player is anthony blaylock`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "player"='Anthony Blaylock';
```
## Task
Generate a SQL query to answer the following question:
`what is the minimum pick # where position is defensive tackle`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum pick # where position is defensive tackle`:
```sql
                SELECT MIN("pick_num") FROM "nfl_draft" WHERE "position"='Defensive Tackle';
```
## Task
Generate a SQL query to answer the following question:
`Which province has a density of 971.4?`

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

CREATE TABLE "population_area_and_density_sortable_on_" (
  "province" text,
  "population_2004_estimate" real,
  "area_km" real,
  "density" text,
  "gdp_2003_pps_in_mil" real,
  "gdp_per_cap_2003_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which province has a density of 971.4?`:
```sql
                SELECT "province" FROM "population_area_and_density_sortable_on_" WHERE "density"='971.4';
```
## Task
Generate a SQL query to answer the following question:
`What is Friesland's gdp per capita?`

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

CREATE TABLE "population_area_and_density_sortable_on_" (
  "province" text,
  "population_2004_estimate" real,
  "area_km" real,
  "density" text,
  "gdp_2003_pps_in_mil" real,
  "gdp_per_cap_2003_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Friesland's gdp per capita?`:
```sql
                SELECT MIN("gdp_per_cap_2003_in") FROM "population_area_and_density_sortable_on_" WHERE "province"='Friesland';
```
## Task
Generate a SQL query to answer the following question:
`What is the area of the place that has a population density of 331.4?`

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

CREATE TABLE "population_area_and_density_sortable_on_" (
  "province" text,
  "population_2004_estimate" real,
  "area_km" real,
  "density" text,
  "gdp_2003_pps_in_mil" real,
  "gdp_per_cap_2003_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area of the place that has a population density of 331.4?`:
```sql
                SELECT MAX("area_km") FROM "population_area_and_density_sortable_on_" WHERE "density"='331.4';
```
## Task
Generate a SQL query to answer the following question:
`Which province has a gdp of 38355€  million euros?`

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

CREATE TABLE "population_area_and_density_sortable_on_" (
  "province" text,
  "population_2004_estimate" real,
  "area_km" real,
  "density" text,
  "gdp_2003_pps_in_mil" real,
  "gdp_per_cap_2003_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which province has a gdp of 38355€  million euros?`:
```sql
                SELECT "province" FROM "population_area_and_density_sortable_on_" WHERE "gdp_2003_pps_in_mil"=38355;
```
## Task
Generate a SQL query to answer the following question:
`What is the population estimate for the place that gad a 18496€  million euro gdp?`

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

CREATE TABLE "population_area_and_density_sortable_on_" (
  "province" text,
  "population_2004_estimate" real,
  "area_km" real,
  "density" text,
  "gdp_2003_pps_in_mil" real,
  "gdp_per_cap_2003_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population estimate for the place that gad a 18496€  million euro gdp?`:
```sql
                SELECT "population_2004_estimate" FROM "population_area_and_density_sortable_on_" WHERE "gdp_2003_pps_in_mil"=18496;
```
## Task
Generate a SQL query to answer the following question:
`What is the title when original air date is may15,2008?`

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

CREATE TABLE "table1_10701133_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title when original air date is may15,2008?`:
```sql
                SELECT "title" FROM "table1_10701133_1" WHERE "original_air_date"='May15,2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest no. in season?`

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

CREATE TABLE "table1_10701133_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest no. in season?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_10701133_1";
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode where u.s. viewers (million) is 12.90?`

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

CREATE TABLE "table1_10701133_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode where u.s. viewers (million) is 12.90?`:
```sql
                SELECT "directed_by" FROM "table1_10701133_1" WHERE "u_s_viewers_million"='12.90';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes aired in Region 2 beginning May 26, 2008?`

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

CREATE TABLE "table1_1067134_1" (
  "dvd_name" text,
  "num_of_ep" real,
  "region_1" text,
  "region_2" text,
  "region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes aired in Region 2 beginning May 26, 2008?`:
```sql
                SELECT MIN("num_of_ep") FROM "table1_1067134_1" WHERE "region_2"='May 26, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What date did the DVD for season six come out in region 2?`

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

CREATE TABLE "table1_1067134_1" (
  "dvd_name" text,
  "num_of_ep" real,
  "region_1" text,
  "region_2" text,
  "region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the DVD for season six come out in region 2?`:
```sql
                SELECT "region_2" FROM "table1_1067134_1" WHERE "dvd_name"='Season Six';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of season epidsodes?`

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

CREATE TABLE "table1_1067134_1" (
  "dvd_name" text,
  "num_of_ep" real,
  "region_1" text,
  "region_2" text,
  "region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of season epidsodes?`:
```sql
                SELECT MIN("num_of_ep") FROM "table1_1067134_1";
```
## Task
Generate a SQL query to answer the following question:
`What DVD season/name for region 2 was released August 22, 2010?`

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

CREATE TABLE "table1_1067134_1" (
  "dvd_name" text,
  "num_of_ep" real,
  "region_1" text,
  "region_2" text,
  "region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What DVD season/name for region 2 was released August 22, 2010?`:
```sql
                SELECT "dvd_name" FROM "table1_1067134_1" WHERE "region_2"='August 22, 2010';
```
## Task
Generate a SQL query to answer the following question:
`How many points for 2005?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for 2005?`:
```sql
                SELECT COUNT("points") FROM "career_summary" WHERE "season"='2005';
```
## Task
Generate a SQL query to answer the following question:
`what is the score for the dams?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score for the dams?`:
```sql
                SELECT "points" FROM "career_summary" WHERE "team_name"='DAMS';
```
## Task
Generate a SQL query to answer the following question:
`how many positions in 2009?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many positions in 2009?`:
```sql
                SELECT COUNT("position") FROM "career_summary" WHERE "season"='2009';
```
## Task
Generate a SQL query to answer the following question:
`what is the least number of poles?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least number of poles?`:
```sql
                SELECT MIN("poles") FROM "career_summary";
```
## Task
Generate a SQL query to answer the following question:
`Which series with 62 points?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series with 62 points?`:
```sql
                SELECT "series" FROM "career_summary" WHERE "points"=62;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for 10th position?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for 10th position?`:
```sql
                SELECT COUNT("points") FROM "career_summary" WHERE "position"='10th';
```
## Task
Generate a SQL query to answer the following question:
`how many reports of races took place on october 16?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many reports of races took place on october 16?`:
```sql
                SELECT COUNT("report") FROM "races" WHERE "date"='October 16';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the report that lists the race name as long beach grand prix?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the report that lists the race name as long beach grand prix?`:
```sql
                SELECT "report" FROM "races" WHERE "race_name"='Long Beach Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`what is the report called where the circuit took place at the nazareth speedway?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the report called where the circuit took place at the nazareth speedway?`:
```sql
                SELECT "report" FROM "races" WHERE "circuit"='Nazareth Speedway';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the race where newman/haas racing is the winning team and rick mears is at the pole position?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the race where newman/haas racing is the winning team and rick mears is at the pole position?`:
```sql
                SELECT "race_name" FROM "races" WHERE "winning_team"='Newman/Haas Racing' AND "pole_position"='Rick Mears';
```
## Task
Generate a SQL query to answer the following question:
`meadowlands sports complex is the circuit at which city/location?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `meadowlands sports complex is the circuit at which city/location?`:
```sql
                SELECT "city_location" FROM "races" WHERE "circuit"='Meadowlands Sports Complex';
```
## Task
Generate a SQL query to answer the following question:
`What is the literacy rate for groups that grew 103.1% between 1991 and 2001?`

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

CREATE TABLE "statistics" (
  "religious_group" text,
  "population_pct" text,
  "growth_1991_2001" text,
  "sex_ratio_total" real,
  "literacy_pct" text,
  "work_participation_pct" text,
  "sex_ratio_rural" real,
  "sex_ratio_urban" real,
  "sex_ratio_child" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the literacy rate for groups that grew 103.1% between 1991 and 2001?`:
```sql
                SELECT "literacy_pct" FROM "statistics" WHERE "growth_1991_2001"='103.1%';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest sex ratio in rural areas?`

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

CREATE TABLE "statistics" (
  "religious_group" text,
  "population_pct" text,
  "growth_1991_2001" text,
  "sex_ratio_total" real,
  "literacy_pct" text,
  "work_participation_pct" text,
  "sex_ratio_rural" real,
  "sex_ratio_urban" real,
  "sex_ratio_child" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest sex ratio in rural areas?`:
```sql
                SELECT MIN("sex_ratio_rural") FROM "statistics";
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest child sex ratio in groups where employment is 31.3%?`

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

CREATE TABLE "statistics" (
  "religious_group" text,
  "population_pct" text,
  "growth_1991_2001" text,
  "sex_ratio_total" real,
  "literacy_pct" text,
  "work_participation_pct" text,
  "sex_ratio_rural" real,
  "sex_ratio_urban" real,
  "sex_ratio_child" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest child sex ratio in groups where employment is 31.3%?`:
```sql
                SELECT MIN("sex_ratio_child") FROM "statistics" WHERE "work_participation_pct"='31.3%';
```
## Task
Generate a SQL query to answer the following question:
`What is the population percentage of the group where the rural sex ratio is 953?`

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

CREATE TABLE "statistics" (
  "religious_group" text,
  "population_pct" text,
  "growth_1991_2001" text,
  "sex_ratio_total" real,
  "literacy_pct" text,
  "work_participation_pct" text,
  "sex_ratio_rural" real,
  "sex_ratio_urban" real,
  "sex_ratio_child" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population percentage of the group where the rural sex ratio is 953?`:
```sql
                SELECT "population_pct" FROM "statistics" WHERE "sex_ratio_rural"=953;
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date for the title "felonious monk"?`

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

CREATE TABLE "table1_10715317_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for the title "felonious monk"?`:
```sql
                SELECT "original_air_date" FROM "table1_10715317_2" WHERE "title"='\"Felonious Monk\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode directed by Peter Markle and written by Jerry Stahl?`

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

CREATE TABLE "table1_10715317_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode directed by Peter Markle and written by Jerry Stahl?`:
```sql
                SELECT "title" FROM "table1_10715317_2" WHERE "directed_by"='Peter Markle' AND "written_by"='Jerry Stahl';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were titled "identity crisis"?`

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

CREATE TABLE "table1_10715317_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were titled "identity crisis"?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_10715317_2" WHERE "title"='\"Identity Crisis\"';
```
## Task
Generate a SQL query to answer the following question:
`Who does the lap-by-lap in 2011?`

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

CREATE TABLE "television_broadcasters" (
  "year" real,
  "network" text,
  "host" text,
  "pre_race_analyst" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who does the lap-by-lap in 2011?`:
```sql
                SELECT "lap_by_lap" FROM "television_broadcasters" WHERE "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`Which network has Marty Reid as host and lap-by-lap broadcaster?`

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

CREATE TABLE "television_broadcasters" (
  "year" real,
  "network" text,
  "host" text,
  "pre_race_analyst" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network has Marty Reid as host and lap-by-lap broadcaster?`:
```sql
                SELECT "network" FROM "television_broadcasters" WHERE "lap_by_lap"='Marty Reid' AND "host"='Marty Reid';
```
## Task
Generate a SQL query to answer the following question:
`How many pre-race analysis occur when Allen Bestwick does the lap-by-lap?`

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

CREATE TABLE "television_broadcasters" (
  "year" real,
  "network" text,
  "host" text,
  "pre_race_analyst" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pre-race analysis occur when Allen Bestwick does the lap-by-lap?`:
```sql
                SELECT COUNT("pre_race_analyst") FROM "television_broadcasters" WHERE "lap_by_lap"='Allen Bestwick';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest season number of an episode in the series?`

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

CREATE TABLE "table1_10718192_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest season number of an episode in the series?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_10718192_2";
```
## Task
Generate a SQL query to answer the following question:
`When did the episode titled "Lucky Strike" air for the first time?`

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

CREATE TABLE "table1_10718192_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode titled "Lucky Strike" air for the first time?`:
```sql
                SELECT "original_air_date" FROM "table1_10718192_2" WHERE "title"='\"Lucky Strike\"';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer of the episode titled "One Hit Wonder"?`

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

CREATE TABLE "table1_10718192_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer of the episode titled "One Hit Wonder"?`:
```sql
                SELECT "written_by" FROM "table1_10718192_2" WHERE "title"='\"One Hit Wonder\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the date of the first airing of the episode with series number 63?`

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

CREATE TABLE "table1_10718192_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the date of the first airing of the episode with series number 63?`:
```sql
                SELECT "original_air_date" FROM "table1_10718192_2" WHERE "no_in_series"=63;
```
## Task
Generate a SQL query to answer the following question:
`How many titles got a viewership of 26.53 million?`

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

CREATE TABLE "table1_10718525_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles got a viewership of 26.53 million?`:
```sql
                SELECT COUNT("title") FROM "table1_10718525_2" WHERE "u_s_viewers_millions"='26.53';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers tuned into the show directed by Matt Earl Beesley?`

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

CREATE TABLE "table1_10718525_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers tuned into the show directed by Matt Earl Beesley?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_10718525_2" WHERE "directed_by"='Matt Earl Beesley';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote episode 94?`

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

CREATE TABLE "table1_10718631_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode 94?`:
```sql
                SELECT "written_by" FROM "table1_10718631_2" WHERE "no_in_series"=94;
```
## Task
Generate a SQL query to answer the following question:
`Which episode was the number in the season where the number in the season is 10?`

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

CREATE TABLE "table1_10718631_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode was the number in the season where the number in the season is 10?`:
```sql
                SELECT "no_in_series" FROM "table1_10718631_2" WHERE "no_in_season"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were in the season that had the epiosde of "crow's feet"?`

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

CREATE TABLE "table1_10718631_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were in the season that had the epiosde of "crow's feet"?`:
```sql
                SELECT "no_in_season" FROM "table1_10718631_2" WHERE "title"='\"Crow''s Feet\"';
```
## Task
Generate a SQL query to answer the following question:
`When did the 113 episode air?`

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

CREATE TABLE "table1_10718631_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the 113 episode air?`:
```sql
                SELECT "original_air_date" FROM "table1_10718631_2" WHERE "no_in_series"=113;
```
## Task
Generate a SQL query to answer the following question:
`How many titles were there for the 113 episode?`

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

CREATE TABLE "table1_10718631_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles were there for the 113 episode?`:
```sql
                SELECT COUNT("title") FROM "table1_10718631_2" WHERE "no_in_series"=113;
```
## Task
Generate a SQL query to answer the following question:
`What is the number in the season that Marlene Meyer wrote and 20.49 million people watched?`

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

CREATE TABLE "table1_10718984_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in the season that Marlene Meyer wrote and 20.49 million people watched?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_10718984_2" WHERE "written_by"='Marlene Meyer' AND "u_s_viewers_millions"='20.49';
```
## Task
Generate a SQL query to answer the following question:
`When did the no. 23 show originally air?`

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

CREATE TABLE "table1_10718984_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the no. 23 show originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_10718984_2" WHERE "no_in_season"=23;
```
## Task
Generate a SQL query to answer the following question:
`Which circuits had a race on October 4?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuits had a race on October 4?`:
```sql
                SELECT "circuit" FROM "races" WHERE "date"='October 4';
```
## Task
Generate a SQL query to answer the following question:
`In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?`:
```sql
                SELECT "report" FROM "races" WHERE "pole_position"='Michael Andretti' AND "winning_team"='Galles-Kraco Racing';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds were there of the Bosch Spark Plug Grand Prix?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were there of the Bosch Spark Plug Grand Prix?`:
```sql
                SELECT COUNT("rnd") FROM "races" WHERE "race_name"='Bosch Spark Plug Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Which rounds were held on August 9?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rounds were held on August 9?`:
```sql
                SELECT "rnd" FROM "races" WHERE "date"='August 9';
```
## Task
Generate a SQL query to answer the following question:
`On how many dates did the Michigan International Speedway hold a round?`

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

CREATE TABLE "races" (
  "rnd" text,
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many dates did the Michigan International Speedway hold a round?`:
```sql
                SELECT COUNT("date") FROM "races" WHERE "circuit"='Michigan International Speedway';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of bids of the sun belt conference`

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

CREATE TABLE "record_by_conference" (
  "conference" text,
  "num_of_bids" real,
  "record" text,
  "win_pct" text,
  "round_of_32" real,
  "sweet_sixteen" real,
  "elite_eight" real,
  "final_four" real,
  "championship_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of bids of the sun belt conference`:
```sql
                SELECT COUNT("num_of_bids") FROM "record_by_conference" WHERE "conference"='Sun Belt';
```
## Task
Generate a SQL query to answer the following question:
`Name the round of 32 in conference usa`

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

CREATE TABLE "record_by_conference" (
  "conference" text,
  "num_of_bids" real,
  "record" text,
  "win_pct" text,
  "round_of_32" real,
  "sweet_sixteen" real,
  "elite_eight" real,
  "final_four" real,
  "championship_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the round of 32 in conference usa`:
```sql
                SELECT "round_of_32" FROM "record_by_conference" WHERE "conference"='Conference USA';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when round of 32 is 0 and metro atlantic conference?`

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

CREATE TABLE "record_by_conference" (
  "conference" text,
  "num_of_bids" real,
  "record" text,
  "win_pct" text,
  "round_of_32" real,
  "sweet_sixteen" real,
  "elite_eight" real,
  "final_four" real,
  "championship_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when round of 32 is 0 and metro atlantic conference?`:
```sql
                SELECT "record" FROM "record_by_conference" WHERE "round_of_32"=0 AND "conference"='Metro Atlantic';
```