cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the most number of families in regions where average family size is 2.7?`

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

CREATE TABLE "table1_16048129_5" (
  "region_of_ussr" text,
  "number_of_families" real,
  "number_of_people" real,
  "average_family_size" text,
  "pct_of_total_deportees" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of families in regions where average family size is 2.7?`:
```sql
                SELECT MAX("number_of_families") FROM "table1_16048129_5" WHERE "average_family_size"='2.7';
```
## Task
Generate a SQL query to answer the following question:
`How many total families are there in regions with 5.8 percent of the population being made up of deportees?`

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

CREATE TABLE "table1_16048129_5" (
  "region_of_ussr" text,
  "number_of_families" real,
  "number_of_people" real,
  "average_family_size" text,
  "pct_of_total_deportees" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total families are there in regions with 5.8 percent of the population being made up of deportees?`:
```sql
                SELECT COUNT("number_of_families") FROM "table1_16048129_5" WHERE "pct_of_total_deportees"='5.8';
```
## Task
Generate a SQL query to answer the following question:
`What is the most number of families among regions where the population is made up of 5.8% deportees?`

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

CREATE TABLE "table1_16048129_5" (
  "region_of_ussr" text,
  "number_of_families" real,
  "number_of_people" real,
  "average_family_size" text,
  "pct_of_total_deportees" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of families among regions where the population is made up of 5.8% deportees?`:
```sql
                SELECT MAX("number_of_families") FROM "table1_16048129_5" WHERE "pct_of_total_deportees"='5.8';
```
## Task
Generate a SQL query to answer the following question:
`Which operator runs the Mamariga shuttle line?`

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

CREATE TABLE "table1_1603807_2" (
  "line" text,
  "terminals" text,
  "status" text,
  "length" text,
  "total_number_of_stations" real,
  "operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which operator runs the Mamariga shuttle line?`:
```sql
                SELECT "operator" FROM "table1_1603807_2" WHERE "line"='Mamariga Shuttle';
```
## Task
Generate a SQL query to answer the following question:
`How many lengths of line 3 are given?`

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

CREATE TABLE "table1_1603807_2" (
  "line" text,
  "terminals" text,
  "status" text,
  "length" text,
  "total_number_of_stations" real,
  "operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many lengths of line 3 are given?`:
```sql
                SELECT COUNT("length") FROM "table1_1603807_2" WHERE "line"='Line 3';
```
## Task
Generate a SQL query to answer the following question:
`What are the terminals for line 2?`

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

CREATE TABLE "table1_1603807_2" (
  "line" text,
  "terminals" text,
  "status" text,
  "length" text,
  "total_number_of_stations" real,
  "operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the terminals for line 2?`:
```sql
                SELECT "terminals" FROM "table1_1603807_2" WHERE "line"='Line 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the airport line?`

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

CREATE TABLE "table1_1603807_2" (
  "line" text,
  "terminals" text,
  "status" text,
  "length" text,
  "total_number_of_stations" real,
  "operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the airport line?`:
```sql
                SELECT "status" FROM "table1_1603807_2" WHERE "line"='Airport Line';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of hangul chosongul for 8,352`

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

CREATE TABLE "provinces_since_the_division_of_korea" (
  "rr_romaja" text,
  "m_r_romaja" text,
  "hangul_chosongul" text,
  "hanja" text,
  "iso" text,
  "area" text,
  "capital" text,
  "region" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of hangul chosongul for 8,352`:
```sql
                SELECT COUNT("hangul_chosongul") FROM "provinces_since_the_division_of_korea" WHERE "area"='8,352';
```
## Task
Generate a SQL query to answer the following question:
`Name the iso for chungcheongnam`

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

CREATE TABLE "provinces_since_the_division_of_korea" (
  "rr_romaja" text,
  "m_r_romaja" text,
  "hangul_chosongul" text,
  "hanja" text,
  "iso" text,
  "area" text,
  "capital" text,
  "region" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the iso for chungcheongnam`:
```sql
                SELECT "iso" FROM "provinces_since_the_division_of_korea" WHERE "rr_romaja"='Chungcheongnam';
```
## Task
Generate a SQL query to answer the following question:
`Name the country for 11,891 area`

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

CREATE TABLE "provinces_since_the_division_of_korea" (
  "rr_romaja" text,
  "m_r_romaja" text,
  "hangul_chosongul" text,
  "hanja" text,
  "iso" text,
  "area" text,
  "capital" text,
  "region" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for 11,891 area`:
```sql
                SELECT "country" FROM "provinces_since_the_division_of_korea" WHERE "area"='11,891';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of region for  경상남도`

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

CREATE TABLE "provinces_since_the_division_of_korea" (
  "rr_romaja" text,
  "m_r_romaja" text,
  "hangul_chosongul" text,
  "hanja" text,
  "iso" text,
  "area" text,
  "capital" text,
  "region" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of region for  경상남도`:
```sql
                SELECT COUNT("region") FROM "provinces_since_the_division_of_korea" WHERE "hangul_chosongul"='경상남도';
```
## Task
Generate a SQL query to answer the following question:
`Name the m r romaja for kwanbuk`

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

CREATE TABLE "provinces_since_the_division_of_korea" (
  "rr_romaja" text,
  "m_r_romaja" text,
  "hangul_chosongul" text,
  "hanja" text,
  "iso" text,
  "area" text,
  "capital" text,
  "region" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the m r romaja for kwanbuk`:
```sql
                SELECT "m_r_romaja" FROM "provinces_since_the_division_of_korea" WHERE "region"='Kwanbuk';
```
## Task
Generate a SQL query to answer the following question:
`Name the population density where population % is 1.1% for slovakia`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" text,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the population density where population % is 1.1% for slovakia`:
```sql
                SELECT "pop_density_people_km_2" FROM "area_and_population" WHERE "population_pct_of_eu"='1.1%' AND "member_state"='Slovakia';
```
## Task
Generate a SQL query to answer the following question:
`Name the population density people where population % eu for 1.7%`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" text,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the population density people where population % eu for 1.7%`:
```sql
                SELECT COUNT("pop_density_people_km_2") FROM "area_and_population" WHERE "population_pct_of_eu"='1.7%';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of area km 2 for population density is 87`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" text,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of area km 2 for population density is 87`:
```sql
                SELECT COUNT("area_km_2") FROM "area_and_population" WHERE "pop_density_people_km_2"='87';
```
## Task
Generate a SQL query to answer the following question:
`Name the population % of eu for greece`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" text,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the population % of eu for greece`:
```sql
                SELECT "population_pct_of_eu" FROM "area_and_population" WHERE "member_state"='Greece';
```
## Task
Generate a SQL query to answer the following question:
`How many networks are there that have a channel number 7?`

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

CREATE TABLE "table1_160728_4" (
  "channel" real,
  "band" text,
  "video_frequency" text,
  "audio_frequency" text,
  "station" text,
  "network" text,
  "transmission" text,
  "format" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many networks are there that have a channel number 7?`:
```sql
                SELECT COUNT("network") FROM "table1_160728_4" WHERE "channel"=7;
```
## Task
Generate a SQL query to answer the following question:
`What station on the network is tv3?`

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

CREATE TABLE "table1_160728_4" (
  "channel" real,
  "band" text,
  "video_frequency" text,
  "audio_frequency" text,
  "station" text,
  "network" text,
  "transmission" text,
  "format" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What station on the network is tv3?`:
```sql
                SELECT "network" FROM "table1_160728_4" WHERE "station"='TV3';
```
## Task
Generate a SQL query to answer the following question:
`What year was the team named the Raiders established?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the team named the Raiders established?`:
```sql
                SELECT MAX("founded") FROM "division_ii" WHERE "team_nickname"='Raiders';
```
## Task
Generate a SQL query to answer the following question:
`What conference does Gonzaga University play in?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What conference does Gonzaga University play in?`:
```sql
                SELECT "primary_conference" FROM "division_ii" WHERE "institution"='Gonzaga University';
```
## Task
Generate a SQL query to answer the following question:
`How many Universities were founded in Tacoma, Washington?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Universities were founded in Tacoma, Washington?`:
```sql
                SELECT COUNT("founded") FROM "division_ii" WHERE "location"='Tacoma, Washington';
```
## Task
Generate a SQL query to answer the following question:
`Which school's team has the nickname of the Wildcats?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school's team has the nickname of the Wildcats?`:
```sql
                SELECT "institution" FROM "division_ii" WHERE "team_nickname"='Wildcats';
```
## Task
Generate a SQL query to answer the following question:
`What year was the university that is located in Ellensburg, Washington established?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the university that is located in Ellensburg, Washington established?`:
```sql
                SELECT MIN("founded") FROM "division_ii" WHERE "location"='Ellensburg, Washington';
```
## Task
Generate a SQL query to answer the following question:
`Where is the university located that's nicknamed the Wolves?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the university located that's nicknamed the Wolves?`:
```sql
                SELECT "location" FROM "division_ii" WHERE "team_nickname"='Wolves';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of viewers where the share is 7 and the week rank is 64?`

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

CREATE TABLE "u_s_standard_ratings" (
  "num" real,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers" text,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of viewers where the share is 7 and the week rank is 64?`:
```sql
                SELECT COUNT("viewers") FROM "u_s_standard_ratings" WHERE "share"=7 AND "weekly_rank"='64';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have a share bigger than 7.0?`

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

CREATE TABLE "u_s_standard_ratings" (
  "num" real,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers" text,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have a share bigger than 7.0?`:
```sql
                SELECT COUNT("num") FROM "u_s_standard_ratings" WHERE "share">7.0;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have a weekly rank tba and are broadcast at 8:00 p.m.?`

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

CREATE TABLE "u_s_standard_ratings" (
  "num" real,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers" text,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have a weekly rank tba and are broadcast at 8:00 p.m.?`:
```sql
                SELECT COUNT("num") FROM "u_s_standard_ratings" WHERE "weekly_rank"='TBA' AND "timeslot"='8:00 P.M.';
```
## Task
Generate a SQL query to answer the following question:
`What are the timeslot(s) for broadcast on February 22, 2008?`

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

CREATE TABLE "u_s_standard_ratings" (
  "num" real,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers" text,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the timeslot(s) for broadcast on February 22, 2008?`:
```sql
                SELECT "timeslot" FROM "u_s_standard_ratings" WHERE "air_date"='February 22, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What broadcast dates have a weekly rank of 73?`

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

CREATE TABLE "u_s_standard_ratings" (
  "num" real,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers" text,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What broadcast dates have a weekly rank of 73?`:
```sql
                SELECT COUNT("air_date") FROM "u_s_standard_ratings" WHERE "weekly_rank"='73';
```
## Task
Generate a SQL query to answer the following question:
`When was the date of appointment for St. Johnstone's manager? `

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the date of appointment for St. Johnstone's manager? `:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='St. Johnstone';
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager for Aberdeen? `

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager for Aberdeen? `:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='Aberdeen';
```
## Task
Generate a SQL query to answer the following question:
`When was the date of appointment for the manager replacing Wim Jansen? `

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the date of appointment for the manager replacing Wim Jansen? `:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Wim Jansen';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for salmonella spp. if you use citrate?`

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

CREATE TABLE "usage" (
  "species" text,
  "indole" text,
  "methyl_red" text,
  "voges_proskauer" text,
  "citrate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for salmonella spp. if you use citrate?`:
```sql
                SELECT COUNT("citrate") FROM "usage" WHERE "species"='Salmonella spp.';
```
## Task
Generate a SQL query to answer the following question:
`Which species show a negative result with both voges-proskauer and indole?`

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

CREATE TABLE "usage" (
  "species" text,
  "indole" text,
  "methyl_red" text,
  "voges_proskauer" text,
  "citrate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which species show a negative result with both voges-proskauer and indole?`:
```sql
                SELECT "species" FROM "usage" WHERE "voges_proskauer"='Negative' AND "indole"='Negative';
```
## Task
Generate a SQL query to answer the following question:
`What are the results for testing the species with voges-proskauer when citrate yields a positive result?`

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

CREATE TABLE "usage" (
  "species" text,
  "indole" text,
  "methyl_red" text,
  "voges_proskauer" text,
  "citrate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results for testing the species with voges-proskauer when citrate yields a positive result?`:
```sql
                SELECT "voges_proskauer" FROM "usage" WHERE "citrate"='Positive';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of proteus mirabilis tested with indole?`

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

CREATE TABLE "usage" (
  "species" text,
  "indole" text,
  "methyl_red" text,
  "voges_proskauer" text,
  "citrate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of proteus mirabilis tested with indole?`:
```sql
                SELECT "indole" FROM "usage" WHERE "species"='Proteus mirabilis';
```
## Task
Generate a SQL query to answer the following question:
`When was the show originally aired that had a TV broadcast of S07E04?`

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

CREATE TABLE "table1_16090262_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "tv_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the show originally aired that had a TV broadcast of S07E04?`:
```sql
                SELECT "originalairdate" FROM "table1_16090262_1" WHERE "tv_broadcast"='S07E04';
```
## Task
Generate a SQL query to answer the following question:
`Which title was No. 4 in season?`

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

CREATE TABLE "table1_16090262_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "tv_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title was No. 4 in season?`:
```sql
                SELECT "title" FROM "table1_16090262_1" WHERE "no_in_season"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the show that had a TV broadcast of S07E04?`

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

CREATE TABLE "table1_16090262_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "tv_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the show that had a TV broadcast of S07E04?`:
```sql
                SELECT "directed_by" FROM "table1_16090262_1" WHERE "tv_broadcast"='S07E04';
```
## Task
Generate a SQL query to answer the following question:
`What seasons did unicaja málaga finish in 3rd?`

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

CREATE TABLE "by_season" (
  "season" text,
  "1st_place" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons did unicaja málaga finish in 3rd?`:
```sql
                SELECT "season" FROM "by_season" WHERE "3rd_place"='Unicaja Málaga';
```
## Task
Generate a SQL query to answer the following question:
`What teams finished 3rd when limoges finished 4th?`

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

CREATE TABLE "by_season" (
  "season" text,
  "1st_place" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams finished 3rd when limoges finished 4th?`:
```sql
                SELECT "3rd_place" FROM "by_season" WHERE "4th_place"='Limoges';
```
## Task
Generate a SQL query to answer the following question:
`What team finished in 1st when tau cerámica was in 3rd?`

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

CREATE TABLE "by_season" (
  "season" text,
  "1st_place" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team finished in 1st when tau cerámica was in 3rd?`:
```sql
                SELECT "1st_place" FROM "by_season" WHERE "3rd_place"='TAU Cerámica';
```
## Task
Generate a SQL query to answer the following question:
`What teams finished in 3rd when panathinaikos finished 2nd?`

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

CREATE TABLE "by_season" (
  "season" text,
  "1st_place" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams finished in 3rd when panathinaikos finished 2nd?`:
```sql
                SELECT "3rd_place" FROM "by_season" WHERE "2nd_place"='Panathinaikos';
```
## Task
Generate a SQL query to answer the following question:
`What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California?`

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

CREATE TABLE "table1_16105186_2" (
  "vehicle" text,
  "epa_rated_all_electric_range" text,
  "epa_rated_combined_fuel_economy" text,
  "alaska_juneau" text,
  "california_san_francisco" text,
  "mid_atlantic_south_washington_d_c" text,
  "u_s_national_average_electric_mix" text,
  "southeast_atlanta" text,
  "midwest_des_moines" text,
  "rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California?`:
```sql
                SELECT "mid_atlantic_south_washington_d_c" FROM "table1_16105186_2" WHERE "alaska_juneau"='90 g/mi (56 g/km)' AND "california_san_francisco"='110 g/mi (68 g/km)';
```
## Task
Generate a SQL query to answer the following question:
`What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest?`

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

CREATE TABLE "table1_16105186_2" (
  "vehicle" text,
  "epa_rated_all_electric_range" text,
  "epa_rated_combined_fuel_economy" text,
  "alaska_juneau" text,
  "california_san_francisco" text,
  "mid_atlantic_south_washington_d_c" text,
  "u_s_national_average_electric_mix" text,
  "southeast_atlanta" text,
  "midwest_des_moines" text,
  "rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest?`:
```sql
                SELECT "mid_atlantic_south_washington_d_c" FROM "table1_16105186_2" WHERE "midwest_des_moines"='300 g/mi (186 g/km)';
```
## Task
Generate a SQL query to answer the following question:
`What was the US national average electric mix rating for the vehicle that was rated 280 g/mi (174 g/km) in the Midwest?`

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

CREATE TABLE "table1_16105186_2" (
  "vehicle" text,
  "epa_rated_all_electric_range" text,
  "epa_rated_combined_fuel_economy" text,
  "alaska_juneau" text,
  "california_san_francisco" text,
  "mid_atlantic_south_washington_d_c" text,
  "u_s_national_average_electric_mix" text,
  "southeast_atlanta" text,
  "midwest_des_moines" text,
  "rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the US national average electric mix rating for the vehicle that was rated 280 g/mi (174 g/km) in the Midwest?`:
```sql
                SELECT "u_s_national_average_electric_mix" FROM "table1_16105186_2" WHERE "midwest_des_moines"='280 g/mi (174 g/km)';
```
## Task
Generate a SQL query to answer the following question:
`How many Ford Focus electric vehicle emission test scores were recorded in California?`

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

CREATE TABLE "table1_16105186_2" (
  "vehicle" text,
  "epa_rated_all_electric_range" text,
  "epa_rated_combined_fuel_economy" text,
  "alaska_juneau" text,
  "california_san_francisco" text,
  "mid_atlantic_south_washington_d_c" text,
  "u_s_national_average_electric_mix" text,
  "southeast_atlanta" text,
  "midwest_des_moines" text,
  "rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Ford Focus electric vehicle emission test scores were recorded in California?`:
```sql
                SELECT COUNT("california_san_francisco") FROM "table1_16105186_2" WHERE "vehicle"='Ford Focus Electric';
```
## Task
Generate a SQL query to answer the following question:
`What was the emission rating in California for the vehicle that was rated 80 g/mi (50 g/km) in Alaska and 250 g/mi (155 g/km) in the Southeast ?`

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

CREATE TABLE "table1_16105186_2" (
  "vehicle" text,
  "epa_rated_all_electric_range" text,
  "epa_rated_combined_fuel_economy" text,
  "alaska_juneau" text,
  "california_san_francisco" text,
  "mid_atlantic_south_washington_d_c" text,
  "u_s_national_average_electric_mix" text,
  "southeast_atlanta" text,
  "midwest_des_moines" text,
  "rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the emission rating in California for the vehicle that was rated 80 g/mi (50 g/km) in Alaska and 250 g/mi (155 g/km) in the Southeast ?`:
```sql
                SELECT "california_san_francisco" FROM "table1_16105186_2" WHERE "alaska_juneau"='80 g/mi (50 g/km)' AND "southeast_atlanta"='250 g/mi (155 g/km)';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest no. of attendance on record?`

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "at_vs" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest no. of attendance on record?`:
```sql
                SELECT MIN("attendance") FROM "game_log";
```
## Task
Generate a SQL query to answer the following question:
`When was the game played if the attendance is less than 6427.0?`

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "at_vs" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game played if the attendance is less than 6427.0?`:
```sql
                SELECT "date" FROM "game_log" WHERE "attendance"<6427.0;
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance during the game on January 9, 1988?`

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "at_vs" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance during the game on January 9, 1988?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "date"='January 9, 1988';
```
## Task
Generate a SQL query to answer the following question:
`Where is the headquarters of the place whose abbreviation is hy?`

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

CREATE TABLE "external_links" (
  "code" text,
  "district" text,
  "headquarters" text,
  "population_2011" real,
  "area_km" real,
  "density_km" real,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the headquarters of the place whose abbreviation is hy?`:
```sql
                SELECT "headquarters" FROM "external_links" WHERE "code"='HY';
```
## Task
Generate a SQL query to answer the following question:
`Where is the headquarters of the place whose population in 2011 was 3811738?`

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

CREATE TABLE "external_links" (
  "code" text,
  "district" text,
  "headquarters" text,
  "population_2011" real,
  "area_km" real,
  "density_km" real,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the headquarters of the place whose population in 2011 was 3811738?`:
```sql
                SELECT "headquarters" FROM "external_links" WHERE "population_2011"=3811738;
```
## Task
Generate a SQL query to answer the following question:
`What was the minimum population in 2011 of the district of Prakasam?`

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

CREATE TABLE "external_links" (
  "code" text,
  "district" text,
  "headquarters" text,
  "population_2011" real,
  "area_km" real,
  "density_km" real,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum population in 2011 of the district of Prakasam?`:
```sql
                SELECT MIN("population_2011") FROM "external_links" WHERE "district"='Prakasam';
```
## Task
Generate a SQL query to answer the following question:
`What is the abbreviation of the district of Mahbubnagar?`

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

CREATE TABLE "external_links" (
  "code" text,
  "district" text,
  "headquarters" text,
  "population_2011" real,
  "area_km" real,
  "density_km" real,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the abbreviation of the district of Mahbubnagar?`:
```sql
                SELECT "code" FROM "external_links" WHERE "district"='Mahbubnagar';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2011 population of the district of East Godavari?`

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

CREATE TABLE "external_links" (
  "code" text,
  "district" text,
  "headquarters" text,
  "population_2011" real,
  "area_km" real,
  "density_km" real,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2011 population of the district of East Godavari?`:
```sql
                SELECT "population_2011" FROM "external_links" WHERE "district"='East Godavari';
```
## Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP when the nominal GDP per capita is 2874?`

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

CREATE TABLE "table1_1610496_3" (
  "year" real,
  "gdp_nominal_billions" text,
  "gdp_adjusted_billions" text,
  "population_millions" text,
  "gdp_per_capita_nominal" real,
  "gdp_per_capita_adjusted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the adjusted GDP when the nominal GDP per capita is 2874?`:
```sql
                SELECT "gdp_adjusted_billions" FROM "table1_1610496_3" WHERE "gdp_per_capita_nominal"=2874;
```
## Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP per capita when the population is 37.376 million?`

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

CREATE TABLE "table1_1610496_3" (
  "year" real,
  "gdp_nominal_billions" text,
  "gdp_adjusted_billions" text,
  "population_millions" text,
  "gdp_per_capita_nominal" real,
  "gdp_per_capita_adjusted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the adjusted GDP per capita when the population is 37.376 million?`:
```sql
                SELECT "gdp_per_capita_adjusted" FROM "table1_1610496_3" WHERE "population_millions"='37.376';
```
## Task
Generate a SQL query to answer the following question:
`What is the nominal GDP per capita when the population is 63.056 million?`

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

CREATE TABLE "table1_1610496_3" (
  "year" real,
  "gdp_nominal_billions" text,
  "gdp_adjusted_billions" text,
  "population_millions" text,
  "gdp_per_capita_nominal" real,
  "gdp_per_capita_adjusted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nominal GDP per capita when the population is 63.056 million?`:
```sql
                SELECT MIN("gdp_per_capita_nominal") FROM "table1_1610496_3" WHERE "population_millions"='63.056';
```
## Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP when the population is 5.141 million?`

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

CREATE TABLE "table1_1610496_3" (
  "year" real,
  "gdp_nominal_billions" text,
  "gdp_adjusted_billions" text,
  "population_millions" text,
  "gdp_per_capita_nominal" real,
  "gdp_per_capita_adjusted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the adjusted GDP when the population is 5.141 million?`:
```sql
                SELECT "gdp_adjusted_billions" FROM "table1_1610496_3" WHERE "population_millions"='5.141';
```
## Task
Generate a SQL query to answer the following question:
`What is the population in millions when the adjusted GDP is 492 billion?`

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

CREATE TABLE "table1_1610496_3" (
  "year" real,
  "gdp_nominal_billions" text,
  "gdp_adjusted_billions" text,
  "population_millions" text,
  "gdp_per_capita_nominal" real,
  "gdp_per_capita_adjusted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population in millions when the adjusted GDP is 492 billion?`:
```sql
                SELECT "population_millions" FROM "table1_1610496_3" WHERE "gdp_adjusted_billions"='492';
```
## Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP when the nominal GDP is 8.43 (in billions)?`

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

CREATE TABLE "table1_1610496_3" (
  "year" real,
  "gdp_nominal_billions" text,
  "gdp_adjusted_billions" text,
  "population_millions" text,
  "gdp_per_capita_nominal" real,
  "gdp_per_capita_adjusted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the adjusted GDP when the nominal GDP is 8.43 (in billions)?`:
```sql
                SELECT "gdp_adjusted_billions" FROM "table1_1610496_3" WHERE "gdp_nominal_billions"='8.43';
```
## Task
Generate a SQL query to answer the following question:
`What was the opearint profit (s$m) associated with an expenditure (s$m) of 12,127.8?`

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

CREATE TABLE "singapore_airlines_group_financial_highl" (
  "year_ended" text,
  "revenue_s_m" text,
  "expenditure_s_m" text,
  "operating_profit_s_m" text,
  "profit_before_taxation_s_m" text,
  "profit_attributable_to_equity_holders_s_m" text,
  "eps_after_tax_diluted_cents" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opearint profit (s$m) associated with an expenditure (s$m) of 12,127.8?`:
```sql
                SELECT "operating_profit_s_m" FROM "singapore_airlines_group_financial_highl" WHERE "expenditure_s_m"='12,127.8';
```
## Task
Generate a SQL query to answer the following question:
`What was the expenditure (s$m) associated with an operating profit (s$m) of 717.1?`

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

CREATE TABLE "singapore_airlines_group_financial_highl" (
  "year_ended" text,
  "revenue_s_m" text,
  "expenditure_s_m" text,
  "operating_profit_s_m" text,
  "profit_before_taxation_s_m" text,
  "profit_attributable_to_equity_holders_s_m" text,
  "eps_after_tax_diluted_cents" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the expenditure (s$m) associated with an operating profit (s$m) of 717.1?`:
```sql
                SELECT "expenditure_s_m" FROM "singapore_airlines_group_financial_highl" WHERE "operating_profit_s_m"='717.1';
```
## Task
Generate a SQL query to answer the following question:
`How many years was the operating profit (s$m) 717.1?`

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

CREATE TABLE "singapore_airlines_group_financial_highl" (
  "year_ended" text,
  "revenue_s_m" text,
  "expenditure_s_m" text,
  "operating_profit_s_m" text,
  "profit_before_taxation_s_m" text,
  "profit_attributable_to_equity_holders_s_m" text,
  "eps_after_tax_diluted_cents" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the operating profit (s$m) 717.1?`:
```sql
                SELECT COUNT("profit_before_taxation_s_m") FROM "singapore_airlines_group_financial_highl" WHERE "operating_profit_s_m"='717.1';
```
## Task
Generate a SQL query to answer the following question:
`Name the simplified characters for wade giles is ch'ing-yüan … i-ma`

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

CREATE TABLE "development_of_chinese_mind_monkey_terms" (
  "date_ce" text,
  "text" text,
  "simplified_characters" text,
  "traditional_characters" text,
  "pinyin" text,
  "wade_giles" text,
  "literal_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the simplified characters for wade giles is ch'ing-yüan … i-ma`:
```sql
                SELECT "simplified_characters" FROM "development_of_chinese_mind_monkey_terms" WHERE "wade_giles"='ch''ing-yüan … i-ma';
```
## Task
Generate a SQL query to answer the following question:
`Name the pinyin for 657 date`

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

CREATE TABLE "development_of_chinese_mind_monkey_terms" (
  "date_ce" text,
  "text" text,
  "simplified_characters" text,
  "traditional_characters" text,
  "pinyin" text,
  "wade_giles" text,
  "literal_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pinyin for 657 date`:
```sql
                SELECT "pinyin" FROM "development_of_chinese_mind_monkey_terms" WHERE "date_ce"='657';
```
## Task
Generate a SQL query to answer the following question:
`Name the text for 心猿意马`

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

CREATE TABLE "development_of_chinese_mind_monkey_terms" (
  "date_ce" text,
  "text" text,
  "simplified_characters" text,
  "traditional_characters" text,
  "pinyin" text,
  "wade_giles" text,
  "literal_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the text for 心猿意马`:
```sql
                SELECT "text" FROM "development_of_chinese_mind_monkey_terms" WHERE "simplified_characters"='心猿意马';
```
## Task
Generate a SQL query to answer the following question:
`Name the simplified charaacters being hsin-yüan … i-ma`

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

CREATE TABLE "development_of_chinese_mind_monkey_terms" (
  "date_ce" text,
  "text" text,
  "simplified_characters" text,
  "traditional_characters" text,
  "pinyin" text,
  "wade_giles" text,
  "literal_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the simplified charaacters being hsin-yüan … i-ma`:
```sql
                SELECT "simplified_characters" FROM "development_of_chinese_mind_monkey_terms" WHERE "wade_giles"='hsin-yüan … i-ma';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of pinyin for hsin-yüan-i-ma`

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

CREATE TABLE "development_of_chinese_mind_monkey_terms" (
  "date_ce" text,
  "text" text,
  "simplified_characters" text,
  "traditional_characters" text,
  "pinyin" text,
  "wade_giles" text,
  "literal_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of pinyin for hsin-yüan-i-ma`:
```sql
                SELECT COUNT("pinyin") FROM "development_of_chinese_mind_monkey_terms" WHERE "wade_giles"='hsin-yüan-i-ma';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for qíngyuán … yìmǎ`

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

CREATE TABLE "development_of_chinese_mind_monkey_terms" (
  "date_ce" text,
  "text" text,
  "simplified_characters" text,
  "traditional_characters" text,
  "pinyin" text,
  "wade_giles" text,
  "literal_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for qíngyuán … yìmǎ`:
```sql
                SELECT "date_ce" FROM "development_of_chinese_mind_monkey_terms" WHERE "pinyin"='qíngyuán … yìmǎ';
```