cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the total number for November, larger than 8.53 in February, 20.21 in March, and less than 7.9 in September?`

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

CREATE TABLE "monthly_mobile_subscriber_additions" (
  "year" real,
  "january" real,
  "february" real,
  "march" real,
  "april" real,
  "june" real,
  "july" real,
  "august" real,
  "september" real,
  "october" real,
  "november" real,
  "december" real,
  "annual_additions_in_millions" real,
  "average_monthly_additions_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number for November, larger than 8.53 in February, 20.21 in March, and less than 7.9 in September?`:
```sql
                SELECT COUNT("november") FROM "monthly_mobile_subscriber_additions" WHERE "february">8.53 AND "march"=20.21 AND "september"<7.9;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February?`

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

CREATE TABLE "monthly_mobile_subscriber_additions" (
  "year" real,
  "january" real,
  "february" real,
  "march" real,
  "april" real,
  "june" real,
  "july" real,
  "august" real,
  "september" real,
  "october" real,
  "november" real,
  "december" real,
  "annual_additions_in_millions" real,
  "average_monthly_additions_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February?`:
```sql
                SELECT SUM("december") FROM "monthly_mobile_subscriber_additions" WHERE "july"=0.36 AND "february">0.35000000000000003;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?`

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

CREATE TABLE "monthly_mobile_subscriber_additions" (
  "year" real,
  "january" real,
  "february" real,
  "march" real,
  "april" real,
  "june" real,
  "july" real,
  "august" real,
  "september" real,
  "october" real,
  "november" real,
  "december" real,
  "annual_additions_in_millions" real,
  "average_monthly_additions_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?`:
```sql
                SELECT COUNT("july") FROM "monthly_mobile_subscriber_additions" WHERE "october"<8.05 AND "december">4.46 AND "november">6.79;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February?`

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

CREATE TABLE "monthly_mobile_subscriber_additions" (
  "year" real,
  "january" real,
  "february" real,
  "march" real,
  "april" real,
  "june" real,
  "july" real,
  "august" real,
  "september" real,
  "october" real,
  "november" real,
  "december" real,
  "annual_additions_in_millions" real,
  "average_monthly_additions_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February?`:
```sql
                SELECT COUNT("october") FROM "monthly_mobile_subscriber_additions" WHERE "september"<2.48 AND "year">2002 AND "june">1.42 AND "february"<7.44;
```
## Task
Generate a SQL query to answer the following question:
`What is the Catalog with a Region that is europe?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Catalog with a Region that is europe?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "region"='europe';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?`

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

CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
  "engine_type" text,
  "scenario" text,
  "sfc_in_lb_lbf_h" real,
  "sfc_in_g_k_n_s" real,
  "specific_impulse_s" real,
  "effective_exhaust_velocity_m_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?`:
```sql
                SELECT MAX("sfc_in_g_k_n_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "engine_type"='rolls-royce/snecma olympus 593' AND "sfc_in_lb_lbf_h"<1.195;
```
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini?`

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

CREATE TABLE "may" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini?`:
```sql
                SELECT "winner" FROM "may" WHERE "week_of"='8 may' AND "semi_finalists"='helena suková mary pierce' AND "runner_up"='conchita martínez patricia tarabini';
```
## Task
Generate a SQL query to answer the following question:
`What is Week, when Semi Finalists is Sandrine Testud Yone Kamio?`

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

CREATE TABLE "may" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Week, when Semi Finalists is Sandrine Testud Yone Kamio?`:
```sql
                SELECT "week_of" FROM "may" WHERE "semi_finalists"='sandrine testud yone kamio';
```
## Task
Generate a SQL query to answer the following question:
`In what Season was Colin Miller (TAS) the Player?`

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

CREATE TABLE "most_wickets_in_a_season" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Season was Colin Miller (TAS) the Player?`:
```sql
                SELECT "season" FROM "most_wickets_in_a_season" WHERE "player"='colin miller (tas)';
```
## Task
Generate a SQL query to answer the following question:
`What Rank has a 65 s Wicket?`

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

CREATE TABLE "most_wickets_in_a_season" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Rank has a 65 s Wicket?`:
```sql
                SELECT "rank" FROM "most_wickets_in_a_season" WHERE "s_wicket"='65';
```
## Task
Generate a SQL query to answer the following question:
`Which result featured the Indianapolis Colts as opponents?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which result featured the Indianapolis Colts as opponents?`:
```sql
                SELECT "result" FROM "schedule" WHERE "opponent"='indianapolis colts';
```
## Task
Generate a SQL query to answer the following question:
`Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )?`

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

CREATE TABLE "former_special_cities_now_core_or_design" (
  "name" text,
  "japanese" text,
  "date_of_designation" text,
  "date_of_reclassification" text,
  "region" text,
  "prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )?`:
```sql
                SELECT "name" FROM "former_special_cities_now_core_or_design" WHERE "date_of_reclassification"='2003-04-01 (merge into shizuoka )';
```
## Task
Generate a SQL query to answer the following question:
`WHich Japanese has a Prefecture of iwate?`

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

CREATE TABLE "former_special_cities_now_core_or_design" (
  "name" text,
  "japanese" text,
  "date_of_designation" text,
  "date_of_reclassification" text,
  "region" text,
  "prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Japanese has a Prefecture of iwate?`:
```sql
                SELECT "japanese" FROM "former_special_cities_now_core_or_design" WHERE "prefecture"='iwate';
```
## Task
Generate a SQL query to answer the following question:
`Which Date of designation has a Name of kurume?`

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

CREATE TABLE "former_special_cities_now_core_or_design" (
  "name" text,
  "japanese" text,
  "date_of_designation" text,
  "date_of_reclassification" text,
  "region" text,
  "prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date of designation has a Name of kurume?`:
```sql
                SELECT "date_of_designation" FROM "former_special_cities_now_core_or_design" WHERE "name"='kurume';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Japanese has a Region of tōhoku?`

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

CREATE TABLE "former_special_cities_now_core_or_design" (
  "name" text,
  "japanese" text,
  "date_of_designation" text,
  "date_of_reclassification" text,
  "region" text,
  "prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Japanese has a Region of tōhoku?`:
```sql
                SELECT "japanese" FROM "former_special_cities_now_core_or_design" WHERE "region"='tōhoku';
```
## Task
Generate a SQL query to answer the following question:
`WHose Name has a Region of kansai on 2012-04-01 ( core city )?`

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

CREATE TABLE "former_special_cities_now_core_or_design" (
  "name" text,
  "japanese" text,
  "date_of_designation" text,
  "date_of_reclassification" text,
  "region" text,
  "prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHose Name has a Region of kansai on 2012-04-01 ( core city )?`:
```sql
                SELECT "name" FROM "former_special_cities_now_core_or_design" WHERE "region"='kansai' AND "date_of_reclassification"='2012-04-01 ( core city )';
```
## Task
Generate a SQL query to answer the following question:
`What is the Position with a Birthdate that is august 17, 1980?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1998_1999_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Position with a Birthdate that is august 17, 1980?`:
```sql
                SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthdate"='august 17, 1980';
```
## Task
Generate a SQL query to answer the following question:
`Which capacity has a purple and white colors?`

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

CREATE TABLE "references" (
  "residence_hall" text,
  "established" real,
  "rector" text,
  "campus" text,
  "capacity" real,
  "colors" text,
  "mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which capacity has a purple and white colors?`:
```sql
                SELECT "capacity" FROM "references" WHERE "colors"='purple and white';
```
## Task
Generate a SQL query to answer the following question:
`How many households have a median family income of $60,400?`

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

CREATE TABLE "virginia_counties_and_cities_ranked_by_p" (
  "county_or_city" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many households have a median family income of $60,400?`:
```sql
                SELECT "number_of_households" FROM "virginia_counties_and_cities_ranked_by_p" WHERE "median_family_income"='$60,400';
```
## Task
Generate a SQL query to answer the following question:
`What county of city has more than 9,505 households with a median household income greater than $94,880?`

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

CREATE TABLE "virginia_counties_and_cities_ranked_by_p" (
  "county_or_city" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What county of city has more than 9,505 households with a median household income greater than $94,880?`:
```sql
                SELECT "county_or_city" FROM "virginia_counties_and_cities_ranked_by_p" WHERE "number_of_households">'9,505' AND "median_household_income"='$94,880';
```
## Task
Generate a SQL query to answer the following question:
`What is the average weight of the player with a height of 180 cm and plays the d position?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_number" real,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "2008_09_team" text,
  "nhl_rights_if_any" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average weight of the player with a height of 180 cm and plays the d position?`:
```sql
                SELECT AVG("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=180 AND "position"='d';
```
## Task
Generate a SQL query to answer the following question:
`What is the birthplace of the player with Calgary Flames NHL rights, plays the f position, and has a height taller than 175 cm?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_number" real,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "2008_09_team" text,
  "nhl_rights_if_any" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birthplace of the player with Calgary Flames NHL rights, plays the f position, and has a height taller than 175 cm?`:
```sql
                SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='f' AND "height_cm">175 AND "nhl_rights_if_any"='calgary flames';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008-09 team of the player who plays the f position and has NHL rights with the New Jersey Devils?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_number" real,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "2008_09_team" text,
  "nhl_rights_if_any" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008-09 team of the player who plays the f position and has NHL rights with the New Jersey Devils?`:
```sql
                SELECT "2008_09_team" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='f' AND "nhl_rights_if_any"='new jersey devils';
```
## Task
Generate a SQL query to answer the following question:
`What was the resting potential with an AP duration of 1.0 and a median giant fiber cell type?`

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

CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
  "animal" text,
  "cell_type" text,
  "resting_potential_m_v" text,
  "ap_increase_m_v" text,
  "ap_duration_ms" text,
  "conduction_speed_m_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resting potential with an AP duration of 1.0 and a median giant fiber cell type?`:
```sql
                SELECT "resting_potential_m_v" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='1.0' AND "cell_type"='median giant fiber';
```
## Task
Generate a SQL query to answer the following question:
`Which animal has a resting potential of −60?`

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

CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
  "animal" text,
  "cell_type" text,
  "resting_potential_m_v" text,
  "ap_increase_m_v" text,
  "ap_duration_ms" text,
  "conduction_speed_m_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which animal has a resting potential of −60?`:
```sql
                SELECT "animal" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "resting_potential_m_v"='−60';
```
## Task
Generate a SQL query to answer the following question:
`Which animal has an AP duration of 1.0 and a conduction speed of 7–30?`

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

CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
  "animal" text,
  "cell_type" text,
  "resting_potential_m_v" text,
  "ap_increase_m_v" text,
  "ap_duration_ms" text,
  "conduction_speed_m_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which animal has an AP duration of 1.0 and a conduction speed of 7–30?`:
```sql
                SELECT "animal" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='1.0' AND "conduction_speed_m_s"='7–30';
```
## Task
Generate a SQL query to answer the following question:
`What AP increase has an AP duration of 0.75?`

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

CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
  "animal" text,
  "cell_type" text,
  "resting_potential_m_v" text,
  "ap_increase_m_v" text,
  "ap_duration_ms" text,
  "conduction_speed_m_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What AP increase has an AP duration of 0.75?`:
```sql
                SELECT "ap_increase_m_v" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='0.75';
```
## Task
Generate a SQL query to answer the following question:
`Which cell type has a conduction speed of 35?`

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

CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
  "animal" text,
  "cell_type" text,
  "resting_potential_m_v" text,
  "ap_increase_m_v" text,
  "ap_duration_ms" text,
  "conduction_speed_m_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which cell type has a conduction speed of 35?`:
```sql
                SELECT "cell_type" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "conduction_speed_m_s"='35';
```
## Task
Generate a SQL query to answer the following question:
`What was the total matches that ranked above 10?`

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

CREATE TABLE "england" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total matches that ranked above 10?`:
```sql
                SELECT SUM("matches") FROM "england" WHERE "rank">10;
```
## Task
Generate a SQL query to answer the following question:
`What was the total amount of matches for Alan Shearer?`

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

CREATE TABLE "england" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total amount of matches for Alan Shearer?`:
```sql
                SELECT COUNT("matches") FROM "england" WHERE "name"='alan shearer';
```
## Task
Generate a SQL query to answer the following question:
`What is the average goals for Jimmy Greaves, and matches more than 516?`

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

CREATE TABLE "england" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average goals for Jimmy Greaves, and matches more than 516?`:
```sql
                SELECT AVG("goals") FROM "england" WHERE "name"='jimmy greaves' AND "matches">516;
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of matches for Nat Lofthouse, ranking higher than 7?`

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

CREATE TABLE "england" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of matches for Nat Lofthouse, ranking higher than 7?`:
```sql
                SELECT COUNT("matches") FROM "england" WHERE "name"='nat lofthouse' AND "rank">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for Nat Lofthouse, and goals more than 255?`

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

CREATE TABLE "england" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank for Nat Lofthouse, and goals more than 255?`:
```sql
                SELECT MAX("rank") FROM "england" WHERE "name"='nat lofthouse' AND "goals">255;
```
## Task
Generate a SQL query to answer the following question:
`What is the location/state that has adelaide international raceway as the circuit?`

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

CREATE TABLE "calendar" (
  "round" text,
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location/state that has adelaide international raceway as the circuit?`:
```sql
                SELECT "location_state" FROM "calendar" WHERE "circuit"='adelaide international raceway';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the director for the episode titled "homewrecker for the holidays"?`

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

CREATE TABLE "episodes" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the director for the episode titled "homewrecker for the holidays"?`:
```sql
                SELECT "directed_by" FROM "episodes" WHERE "title"='\"homewrecker for the holidays\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Original air date for the episode with a Production code of 07-00-107?`

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

CREATE TABLE "episodes" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original air date for the episode with a Production code of 07-00-107?`:
```sql
                SELECT "original_air_date" FROM "episodes" WHERE "production_code"='07-00-107';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the director of the episode written by robin schwartz & robert tarlow?`

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

CREATE TABLE "episodes" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the director of the episode written by robin schwartz & robert tarlow?`:
```sql
                SELECT "directed_by" FROM "episodes" WHERE "written_by"='robin schwartz & robert tarlow';
```
## Task
Generate a SQL query to answer the following question:
`What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109?`

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

CREATE TABLE "episodes" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109?`:
```sql
                SELECT "original_air_date" FROM "episodes" WHERE "directed_by"='lev l. spiro' AND "production_code"='07-00-109';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the writer for the episode with an Original air date of october 9, 2000?`

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

CREATE TABLE "episodes" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the writer for the episode with an Original air date of october 9, 2000?`:
```sql
                SELECT "written_by" FROM "episodes" WHERE "original_air_date"='october 9, 2000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001?`

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

CREATE TABLE "episodes" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001?`:
```sql
                SELECT "title" FROM "episodes" WHERE "written_by"='terri hughes & ron milbauer' AND "original_air_date"='march 6, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What time or retired does Scott Dixon have?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What time or retired does Scott Dixon have?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "driver"='scott dixon';
```
## Task
Generate a SQL query to answer the following question:
`Which driver has a grid bigger than 3 and a time of +62.6 secs?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver has a grid bigger than 3 and a time of +62.6 secs?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid">3 AND "time_retired"='+62.6 secs';
```
## Task
Generate a SQL query to answer the following question:
`Who drives for Newman-Haas Racing with a time of 1:51:47.260?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drives for Newman-Haas Racing with a time of 1:51:47.260?`:
```sql
                SELECT "driver" FROM "race" WHERE "team"='newman-haas racing' AND "time_retired"='1:51:47.260';
```
## Task
Generate a SQL query to answer the following question:
`Which driver had less than 65 laps for Sigma Autosport?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver had less than 65 laps for Sigma Autosport?`:
```sql
                SELECT "driver" FROM "race" WHERE "laps"<65 AND "team"='sigma autosport';
```
## Task
Generate a SQL query to answer the following question:
`Which game modes have Pinyin of chāojí mǎlìōu shìjiè?`

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

CREATE TABLE "i_que_game_boy_advance" (
  "chinese_title" text,
  "pinyin" text,
  "released_date" real,
  "genre" text,
  "game_modes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game modes have Pinyin of chāojí mǎlìōu shìjiè?`:
```sql
                SELECT "game_modes" FROM "i_que_game_boy_advance" WHERE "pinyin"='chāojí mǎlìōu shìjiè';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Population (1 July 2005 est.), when Area (km²) is less than 5,131, when Population density (per km²) is less than 180, when Subdivisions is Parishes, and when Capital is Roseau?`

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

CREATE TABLE "sovereign_states" (
  "name" text,
  "subdivisions" text,
  "area_km" real,
  "population_1_july_2005_est" real,
  "population_density_per_km" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Population (1 July 2005 est.), when Area (km²) is less than 5,131, when Population density (per km²) is less than 180, when Subdivisions is Parishes, and when Capital is Roseau?`:
```sql
                SELECT SUM("population_1_july_2005_est") FROM "sovereign_states" WHERE "area_km"<'5,131' AND "population_density_per_km"<180 AND "subdivisions"='parishes' AND "capital"='roseau';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0?`

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

CREATE TABLE "sovereign_states" (
  "name" text,
  "subdivisions" text,
  "area_km" real,
  "population_1_july_2005_est" real,
  "population_density_per_km" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0?`:
```sql
                SELECT MIN("population_1_july_2005_est") FROM "sovereign_states" WHERE "population_density_per_km"=0;
```
## Task
Generate a SQL query to answer the following question:
`What is Population density (per km²), when Name is Antigua and Barbuda, and when Capital is St. John's?`

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

CREATE TABLE "sovereign_states" (
  "name" text,
  "subdivisions" text,
  "area_km" real,
  "population_1_july_2005_est" real,
  "population_density_per_km" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Population density (per km²), when Name is Antigua and Barbuda, and when Capital is St. John's?`:
```sql
                SELECT "population_density_per_km" FROM "sovereign_states" WHERE "name"='antigua and barbuda' AND "capital"='st. john''s';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents on grass when playing with Mark Woodforde, and the outcome of winner, and a year greater than 1996?`

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

CREATE TABLE "grand_slam_men_s_doubles_finals_20_16_4" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents on grass when playing with Mark Woodforde, and the outcome of winner, and a year greater than 1996?`:
```sql
                SELECT "opponents" FROM "grand_slam_men_s_doubles_finals_20_16_4" WHERE "surface"='grass' AND "partner"='mark woodforde' AND "outcome"='winner' AND "year">1996;
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner at the Australian Open, Melbourne when the score was 2–6, 7–5, 6–2, 4–6, 3–6?`

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

CREATE TABLE "grand_slam_men_s_doubles_finals_20_16_4" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner at the Australian Open, Melbourne when the score was 2–6, 7–5, 6–2, 4–6, 3–6?`:
```sql
                SELECT "partner" FROM "grand_slam_men_s_doubles_finals_20_16_4" WHERE "championship"='australian open, melbourne' AND "score"='2–6, 7–5, 6–2, 4–6, 3–6';
```
## Task
Generate a SQL query to answer the following question:
`When playing on grass who was the opponents in a year greater than 1993, and playing with Jonas Björkman?`

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

CREATE TABLE "grand_slam_men_s_doubles_finals_20_16_4" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When playing on grass who was the opponents in a year greater than 1993, and playing with Jonas Björkman?`:
```sql
                SELECT "opponents" FROM "grand_slam_men_s_doubles_finals_20_16_4" WHERE "surface"='grass' AND "year">1993 AND "partner"='jonas björkman';
```
## Task
Generate a SQL query to answer the following question:
`Which league's playoffs was national semi-finals?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_canada_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which league's playoffs was national semi-finals?`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "playoffs"='national semi-finals';
```
## Task
Generate a SQL query to answer the following question:
`Which country is Lemd the ICAO of?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is Lemd the ICAO of?`:
```sql
                SELECT "country" FROM "references" WHERE "icao"='lemd';
```
## Task
Generate a SQL query to answer the following question:
`Paris-Charles de Gaulle airport is in which country?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Paris-Charles de Gaulle airport is in which country?`:
```sql
                SELECT "country" FROM "references" WHERE "airport"='paris-charles de gaulle airport';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for Riyadh, Saudi Arabia?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for Riyadh, Saudi Arabia?`:
```sql
                SELECT "icao" FROM "references" WHERE "country"='saudi arabia' AND "city"='riyadh';
```
## Task
Generate a SQL query to answer the following question:
`What is the IATA for Benghazi, Libya?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA for Benghazi, Libya?`:
```sql
                SELECT "iata" FROM "references" WHERE "country"='libya' AND "city"='benghazi';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884?`:
```sql
                SELECT AVG("grid") FROM "superbike_race_1_classification" WHERE "bike"='honda cbr1000rr' AND "laps"=18 AND "time"='+1:12.884';
```
## Task
Generate a SQL query to answer the following question:
`What is the Bike with 18 laps and +41.280 as the time?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Bike with 18 laps and +41.280 as the time?`:
```sql
                SELECT "bike" FROM "superbike_race_1_classification" WHERE "laps"=18 AND "time"='+41.280';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time when there are 18 laps, grid larger than 15, and Rider of Russell Holland?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time when there are 18 laps, grid larger than 15, and Rider of Russell Holland?`:
```sql
                SELECT "time" FROM "superbike_race_1_classification" WHERE "laps"=18 AND "grid">15 AND "rider"='russell holland';
```
## Task
Generate a SQL query to answer the following question:
`What is the Bike with a grid more than 4 and the rider is Michel Fabrizio?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Bike with a grid more than 4 and the rider is Michel Fabrizio?`:
```sql
                SELECT "bike" FROM "superbike_race_1_classification" WHERE "grid">4 AND "rider"='michel fabrizio';
```
## Task
Generate a SQL query to answer the following question:
`What was Lee Smith's highest number of goals when he made fewer than 364 appearances?`

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

CREATE TABLE "most_goals" (
  "name" text,
  "career" text,
  "goals" real,
  "appearances" real,
  "goals_game_ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Lee Smith's highest number of goals when he made fewer than 364 appearances?`:
```sql
                SELECT MAX("goals") FROM "most_goals" WHERE "name"='lee smith' AND "appearances"<364;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Rob Coldray's goals when he made fewer than 348 appearances with goals/game ratio less than 0.313?`

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

CREATE TABLE "most_goals" (
  "name" text,
  "career" text,
  "goals" real,
  "appearances" real,
  "goals_game_ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Rob Coldray's goals when he made fewer than 348 appearances with goals/game ratio less than 0.313?`:
```sql
                SELECT SUM("goals") FROM "most_goals" WHERE "goals_game_ratio"<0.313 AND "name"='rob coldray' AND "appearances"<348;
```
## Task
Generate a SQL query to answer the following question:
`Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances?`

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

CREATE TABLE "most_goals" (
  "name" text,
  "career" text,
  "goals" real,
  "appearances" real,
  "goals_game_ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances?`:
```sql
                SELECT "goals_game_ratio" FROM "most_goals" WHERE "goals"<201 AND "appearances"<170;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the airport in São Paulo with passengers totaling less than 18,795,596?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of the airport in São Paulo with passengers totaling less than 18,795,596?`:
```sql
                SELECT AVG("rank") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "location"='são paulo' AND "total_passengers"<'18,795,596';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the airport with a 9.3% annual change?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of the airport with a 9.3% annual change?`:
```sql
                SELECT AVG("rank") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "annual_change"='9.3%';
```
## Task
Generate a SQL query to answer the following question:
`Where is the airport located that has a 98.9% in use capacity?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the airport located that has a 98.9% in use capacity?`:
```sql
                SELECT "location" FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "capacity_in_use"='98.9%';
```
## Task
Generate a SQL query to answer the following question:
`What rank is the airport in Fortaleza?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is the airport in Fortaleza?`:
```sql
                SELECT "rank" FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "location"='fortaleza';
```
## Task
Generate a SQL query to answer the following question:
`What is the Award name with a Team name that is cougar robotics team?`

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

CREATE TABLE "recent_winners" (
  "year_theme" text,
  "award_name" text,
  "team_name" text,
  "team_number" real,
  "city_state_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Award name with a Team name that is cougar robotics team?`:
```sql
                SELECT "award_name" FROM "recent_winners" WHERE "team_name"='cougar robotics team';
```
## Task
Generate a SQL query to answer the following question:
`What is the zan 1 that has 11 as the nor 1?`

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

CREATE TABLE "rookie_cup" (
  "driver" text,
  "nor_1" text,
  "nor_2" text,
  "zan_1" text,
  "zan_2" text,
  "n_r_1" text,
  "n_r_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the zan 1 that has 11 as the nor 1?`:
```sql
                SELECT "zan_1" FROM "rookie_cup" WHERE "nor_1"='11';
```
## Task
Generate a SQL query to answer the following question:
`What driver has 19 as the zan 1?`

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

CREATE TABLE "rookie_cup" (
  "driver" text,
  "nor_1" text,
  "nor_2" text,
  "zan_1" text,
  "zan_2" text,
  "n_r_1" text,
  "n_r_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What driver has 19 as the zan 1?`:
```sql
                SELECT "driver" FROM "rookie_cup" WHERE "zan_1"='19';
```
## Task
Generate a SQL query to answer the following question:
`What driver has 5 as the zan 2?`

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

CREATE TABLE "rookie_cup" (
  "driver" text,
  "nor_1" text,
  "nor_2" text,
  "zan_1" text,
  "zan_2" text,
  "n_r_1" text,
  "n_r_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What driver has 5 as the zan 2?`:
```sql
                SELECT "driver" FROM "rookie_cup" WHERE "zan_2"='5';
```