cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many times was the GFR 2006 equal to 53.2?`

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

CREATE TABLE "references" (
  "county" text,
  "live_births_2006" real,
  "gfr_2006" text,
  "tfr_2006" text,
  "whites_as_pct_of_pop" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the GFR 2006 equal to 53.2?`:
```sql
                SELECT COUNT("whites_as_pct_of_pop") FROM "references" WHERE "gfr_2006"='53.2';
```
## Task
Generate a SQL query to answer the following question:
`How many mens doubles took place in 1970/1971?`

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

CREATE TABLE "table1_12266757_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many mens doubles took place in 1970/1971?`:
```sql
                SELECT COUNT("mens_doubles") FROM "table1_12266757_1" WHERE "season"='1970/1971';
```
## Task
Generate a SQL query to answer the following question:
`Where were the Womens Doubles in the 1951/1952 season and who won?`

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

CREATE TABLE "table1_12266757_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where were the Womens Doubles in the 1951/1952 season and who won?`:
```sql
                SELECT "womens_doubles" FROM "table1_12266757_1" WHERE "season"='1951/1952';
```
## Task
Generate a SQL query to answer the following question:
`Who was the womens singles winnerwhen the mens doubles were  stefan karlsson claes nordin , bk aura gbk?`

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

CREATE TABLE "table1_12266757_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the womens singles winnerwhen the mens doubles were  stefan karlsson claes nordin , bk aura gbk?`:
```sql
                SELECT "womens_singles" FROM "table1_12266757_1" WHERE "mens_doubles"='Stefan Karlsson Claes Nordin , BK Aura GBK';
```
## Task
Generate a SQL query to answer the following question:
`Who were the winners of mens doubles in the 1986/1987 season held?`

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

CREATE TABLE "table1_12266757_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the winners of mens doubles in the 1986/1987 season held?`:
```sql
                SELECT "mens_doubles" FROM "table1_12266757_1" WHERE "season"='1986/1987';
```
## Task
Generate a SQL query to answer the following question:
`Who won the Mens Singles when the Mixed doubles went to Stellan Mohlin Kerstin Ståhl , Aik?`

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

CREATE TABLE "table1_12266757_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Mens Singles when the Mixed doubles went to Stellan Mohlin Kerstin Ståhl , Aik?`:
```sql
                SELECT "mens_singles" FROM "table1_12266757_1" WHERE "mixed_doubles"='Stellan Mohlin Kerstin Ståhl , AIK';
```
## Task
Generate a SQL query to answer the following question:
`Who won the womens singles in the 1958/1959 season?`

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

CREATE TABLE "table1_12266757_1" (
  "season" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the womens singles in the 1958/1959 season?`:
```sql
                SELECT "womens_singles" FROM "table1_12266757_1" WHERE "season"='1958/1959';
```
## Task
Generate a SQL query to answer the following question:
`What county is in isolation of 29?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "peak" text,
  "elevation_m" real,
  "prominence_m" real,
  "isolation_km" real,
  "municipality" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What county is in isolation of 29?`:
```sql
                SELECT "county" FROM "see_also" WHERE "isolation_km"=29;
```
## Task
Generate a SQL query to answer the following question:
`What is the county with an elevation of 1262?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "peak" text,
  "elevation_m" real,
  "prominence_m" real,
  "isolation_km" real,
  "municipality" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the county with an elevation of 1262?`:
```sql
                SELECT "county" FROM "see_also" WHERE "elevation_m"=1262;
```
## Task
Generate a SQL query to answer the following question:
`Name the rank where the municipality is sunndal?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "peak" text,
  "elevation_m" real,
  "prominence_m" real,
  "isolation_km" real,
  "municipality" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank where the municipality is sunndal?`:
```sql
                SELECT "rank" FROM "see_also" WHERE "municipality"='Sunndal';
```
## Task
Generate a SQL query to answer the following question:
`Name the county with the peak being indre russetind?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "peak" text,
  "elevation_m" real,
  "prominence_m" real,
  "isolation_km" real,
  "municipality" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the county with the peak being indre russetind?`:
```sql
                SELECT "county" FROM "see_also" WHERE "peak"='Indre Russetind';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of rank of peak fresvikbreen?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "peak" text,
  "elevation_m" real,
  "prominence_m" real,
  "isolation_km" real,
  "municipality" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of rank of peak fresvikbreen?`:
```sql
                SELECT COUNT("rank") FROM "see_also" WHERE "peak"='Fresvikbreen';
```
## Task
Generate a SQL query to answer the following question:
`Who won the mens singles when sayaka sato won the womens singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the mens singles when sayaka sato won the womens singles?`:
```sql
                SELECT "mens_singles" FROM "previous_winners" WHERE "womens_singles"='Sayaka Sato';
```
## Task
Generate a SQL query to answer the following question:
`When did Chetan Anand win his first men's single?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Chetan Anand win his first men's single?`:
```sql
                SELECT MIN("year") FROM "previous_winners" WHERE "mens_singles"='Chetan Anand';
```
## Task
Generate a SQL query to answer the following question:
`How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year?`:
```sql
                SELECT COUNT("year") FROM "previous_winners" WHERE "mens_singles"='Niels Christian Kaldau' AND "womens_singles"='Pi Hongyan';
```
## Task
Generate a SQL query to answer the following question:
`Who won the men's double when Chou Tien-Chen won the men's single?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the men's double when Chou Tien-Chen won the men's single?`:
```sql
                SELECT "mens_doubles" FROM "previous_winners" WHERE "mens_singles"='Chou Tien-chen';
```
## Task
Generate a SQL query to answer the following question:
`What team was promoted in the Serbian League East in the same season when Kolubara was promoted in the Serbian League Belgrade?`

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

CREATE TABLE "table1_12283621_6" (
  "season" text,
  "serbian_league_belgrade" text,
  "serbian_league_east" text,
  "serbian_league_vojvodina" text,
  "serbian_league_west" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was promoted in the Serbian League East in the same season when Kolubara was promoted in the Serbian League Belgrade?`:
```sql
                SELECT "serbian_league_east" FROM "table1_12283621_6" WHERE "serbian_league_belgrade"='Kolubara';
```
## Task
Generate a SQL query to answer the following question:
`what's the series with reverse being swimming`

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

CREATE TABLE "1_yuan" (
  "year" real,
  "denomination" text,
  "alloy" text,
  "reverse" text,
  "diameter" text,
  "weight" text,
  "obverse" text,
  "mintage" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the series with reverse being swimming`:
```sql
                SELECT "series" FROM "1_yuan" WHERE "reverse"='Swimming';
```
## Task
Generate a SQL query to answer the following question:
`what's the alloy with series being ii series`

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

CREATE TABLE "1_yuan" (
  "year" real,
  "denomination" text,
  "alloy" text,
  "reverse" text,
  "diameter" text,
  "weight" text,
  "obverse" text,
  "mintage" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the alloy with series being ii series`:
```sql
                SELECT "alloy" FROM "1_yuan" WHERE "series"='II series';
```
## Task
Generate a SQL query to answer the following question:
`what's the denomination with year being 2008 and reverse being football`

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

CREATE TABLE "1_yuan" (
  "year" real,
  "denomination" text,
  "alloy" text,
  "reverse" text,
  "diameter" text,
  "weight" text,
  "obverse" text,
  "mintage" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the denomination with year being 2008 and reverse being football`:
```sql
                SELECT "denomination" FROM "1_yuan" WHERE "year"=2008 AND "reverse"='Football';
```
## Task
Generate a SQL query to answer the following question:
` how many reverse with series being iii series`

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

CREATE TABLE "1_yuan" (
  "year" real,
  "denomination" text,
  "alloy" text,
  "reverse" text,
  "diameter" text,
  "weight" text,
  "obverse" text,
  "mintage" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many reverse with series being iii series`:
```sql
                SELECT COUNT("reverse") FROM "1_yuan" WHERE "series"='III series';
```
## Task
Generate a SQL query to answer the following question:
`How many times did kingfisher east bengal fc win?`

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

CREATE TABLE "performances_by_clubs" (
  "num" real,
  "nation" text,
  "winners" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did kingfisher east bengal fc win?`:
```sql
                SELECT MIN("winners") FROM "performances_by_clubs" WHERE "nation"='Kingfisher East Bengal FC';
```
## Task
Generate a SQL query to answer the following question:
`How many times did bec tero sasana win?`

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

CREATE TABLE "performances_by_clubs" (
  "num" real,
  "nation" text,
  "winners" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did bec tero sasana win?`:
```sql
                SELECT MAX("winners") FROM "performances_by_clubs" WHERE "nation"='BEC Tero Sasana';
```
## Task
Generate a SQL query to answer the following question:
`Nigeria competed on July2, 1999.`

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

CREATE TABLE "junior_under_20_women" (
  "rank" real,
  "fastest_time_s" text,
  "wind_m_s" text,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Nigeria competed on July2, 1999.`:
```sql
                SELECT "date" FROM "junior_under_20_women" WHERE "nation"='Nigeria';
```
## Task
Generate a SQL query to answer the following question:
`Nigeria had the fastest time once.`

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

CREATE TABLE "junior_under_20_women" (
  "rank" real,
  "fastest_time_s" text,
  "wind_m_s" text,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Nigeria had the fastest time once.`:
```sql
                SELECT COUNT("fastest_time_s") FROM "junior_under_20_women" WHERE "nation"='Nigeria';
```
## Task
Generate a SQL query to answer the following question:
` how many runners-up with nation being india`

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

CREATE TABLE "performances_by_nations" (
  "num" real,
  "nation" text,
  "winners" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many runners-up with nation being india`:
```sql
                SELECT COUNT("runners_up") FROM "performances_by_nations" WHERE "nation"='India';
```
## Task
Generate a SQL query to answer the following question:
`what's the runners-up with nation being malaysia`

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

CREATE TABLE "performances_by_nations" (
  "num" real,
  "nation" text,
  "winners" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the runners-up with nation being malaysia`:
```sql
                SELECT "runners_up" FROM "performances_by_nations" WHERE "nation"='Malaysia';
```
## Task
Generate a SQL query to answer the following question:
` how many winners with # being 4`

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

CREATE TABLE "performances_by_nations" (
  "num" real,
  "nation" text,
  "winners" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many winners with # being 4`:
```sql
                SELECT COUNT("winners") FROM "performances_by_nations" WHERE "num"=4;
```
## Task
Generate a SQL query to answer the following question:
`how many maximum winners`

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

CREATE TABLE "performances_by_nations" (
  "num" real,
  "nation" text,
  "winners" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many maximum winners`:
```sql
                SELECT MAX("winners") FROM "performances_by_nations";
```
## Task
Generate a SQL query to answer the following question:
`how many winners from vietnam`

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

CREATE TABLE "performances_by_nations" (
  "num" real,
  "nation" text,
  "winners" real,
  "runners_up" real,
  "3rd_place" real,
  "4th_place" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many winners from vietnam`:
```sql
                SELECT "winners" FROM "performances_by_nations" WHERE "nation"='Vietnam';
```
## Task
Generate a SQL query to answer the following question:
`What was the total of arlenes vote when craig voted for brian and karen?`

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

CREATE TABLE "dance_offs" (
  "week" real,
  "craigs_vote" text,
  "arlenes_vote" text,
  "brunos_vote" text,
  "lens_vote" text,
  "safe" text,
  "eliminated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total of arlenes vote when craig voted for brian and karen?`:
```sql
                SELECT COUNT("arlenes_vote") FROM "dance_offs" WHERE "craigs_vote"='Brian and Karen';
```
## Task
Generate a SQL query to answer the following question:
`What is the max week where kate and anton are eliminated?`

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

CREATE TABLE "dance_offs" (
  "week" real,
  "craigs_vote" text,
  "arlenes_vote" text,
  "brunos_vote" text,
  "lens_vote" text,
  "safe" text,
  "eliminated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the max week where kate and anton are eliminated?`:
```sql
                SELECT MAX("week") FROM "dance_offs" WHERE "eliminated"='Kate and Anton';
```
## Task
Generate a SQL query to answer the following question:
`What is the number eliminated when kelly and brendan are safe?`

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

CREATE TABLE "dance_offs" (
  "week" real,
  "craigs_vote" text,
  "arlenes_vote" text,
  "brunos_vote" text,
  "lens_vote" text,
  "safe" text,
  "eliminated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number eliminated when kelly and brendan are safe?`:
```sql
                SELECT COUNT("eliminated") FROM "dance_offs" WHERE "safe"='Kelly and Brendan';
```
## Task
Generate a SQL query to answer the following question:
`Who is safe if John and Nicole are eliminated?`

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

CREATE TABLE "dance_offs" (
  "week" real,
  "craigs_vote" text,
  "arlenes_vote" text,
  "brunos_vote" text,
  "lens_vote" text,
  "safe" text,
  "eliminated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is safe if John and Nicole are eliminated?`:
```sql
                SELECT "safe" FROM "dance_offs" WHERE "eliminated"='John and Nicole';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of brunos vote when willie and erin are eliminated?`

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

CREATE TABLE "dance_offs" (
  "week" real,
  "craigs_vote" text,
  "arlenes_vote" text,
  "brunos_vote" text,
  "lens_vote" text,
  "safe" text,
  "eliminated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of brunos vote when willie and erin are eliminated?`:
```sql
                SELECT COUNT("brunos_vote") FROM "dance_offs" WHERE "eliminated"='Willie and Erin';
```
## Task
Generate a SQL query to answer the following question:
`How many goals were scored by the player who played 17 matches?`

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

CREATE TABLE "foreign_players" (
  "country" text,
  "player_name" text,
  "period" text,
  "position" text,
  "matches" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals were scored by the player who played 17 matches?`:
```sql
                SELECT "goals" FROM "foreign_players" WHERE "matches"='17';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player who played in 2009 only?`

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

CREATE TABLE "foreign_players" (
  "country" text,
  "player_name" text,
  "period" text,
  "position" text,
  "matches" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player who played in 2009 only?`:
```sql
                SELECT "player_name" FROM "foreign_players" WHERE "period"='2009';
```
## Task
Generate a SQL query to answer the following question:
`How many goals have been scored by Tiago Gomes?`

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

CREATE TABLE "foreign_players" (
  "country" text,
  "player_name" text,
  "period" text,
  "position" text,
  "matches" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals have been scored by Tiago Gomes?`:
```sql
                SELECT "goals" FROM "foreign_players" WHERE "player_name"='Tiago Gomes';
```
## Task
Generate a SQL query to answer the following question:
`Which athlete is from Mexico City?`

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

CREATE TABLE "youth_under_18_girls" (
  "rank" real,
  "fastest_time_s" text,
  "wind_m_s" text,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which athlete is from Mexico City?`:
```sql
                SELECT "athlete" FROM "youth_under_18_girls" WHERE "location"='Mexico City';
```
## Task
Generate a SQL query to answer the following question:
`What is the athlete from Edwardsville?`

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

CREATE TABLE "youth_under_18_girls" (
  "rank" real,
  "fastest_time_s" text,
  "wind_m_s" text,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the athlete from Edwardsville?`:
```sql
                SELECT "athlete" FROM "youth_under_18_girls" WHERE "location"='Edwardsville';
```
## Task
Generate a SQL query to answer the following question:
`What was the wind on 21 june 1976?`

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

CREATE TABLE "youth_under_18_girls" (
  "rank" real,
  "fastest_time_s" text,
  "wind_m_s" text,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the wind on 21 june 1976?`:
```sql
                SELECT "wind_m_s" FROM "youth_under_18_girls" WHERE "date"='21 June 1976';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of locations with the fastest times of 11.13?`

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

CREATE TABLE "youth_under_18_girls" (
  "rank" real,
  "fastest_time_s" text,
  "wind_m_s" text,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of locations with the fastest times of 11.13?`:
```sql
                SELECT COUNT("location") FROM "youth_under_18_girls" WHERE "fastest_time_s"='11.13';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode with a broadcast order s04 e01?`

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

CREATE TABLE "table1_1231892_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "villain_s" text,
  "u_s_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode with a broadcast order s04 e01?`:
```sql
                SELECT "title" FROM "table1_1231892_4" WHERE "broadcast_order"='S04 E01';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of episodes with a broadcast order s04 e07?`

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

CREATE TABLE "table1_1231892_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "villain_s" text,
  "u_s_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of episodes with a broadcast order s04 e07?`:
```sql
                SELECT COUNT("number_in_series") FROM "table1_1231892_4" WHERE "broadcast_order"='S04 E07';
```
## Task
Generate a SQL query to answer the following question:
`what's the total number of episodes with a US air date of january 15, 2005?`

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

CREATE TABLE "table1_1231892_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "villain_s" text,
  "u_s_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the total number of episodes with a US air date of january 15, 2005?`:
```sql
                SELECT COUNT("production_code") FROM "table1_1231892_4" WHERE "u_s_air_date"='January 15, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode titled "The Quest"?`

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

CREATE TABLE "table1_1231892_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "villain_s" text,
  "u_s_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode titled "The Quest"?`:
```sql
                SELECT MAX("number_in_series") FROM "table1_1231892_4" WHERE "title"='\"The Quest\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the original air date of the episode with a broadcast order s04 e01?`

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

CREATE TABLE "table1_1231892_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "villain_s" text,
  "u_s_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the original air date of the episode with a broadcast order s04 e01?`:
```sql
                SELECT "u_s_air_date" FROM "table1_1231892_4" WHERE "broadcast_order"='S04 E01';
```
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode with a broadcast order s04 e07?`

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

CREATE TABLE "table1_1231892_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "villain_s" text,
  "u_s_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode with a broadcast order s04 e07?`:
```sql
                SELECT MAX("number_in_series") FROM "table1_1231892_4" WHERE "broadcast_order"='S04 E07';
```
## Task
Generate a SQL query to answer the following question:
`Which police force serves a population of 17000?`

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

CREATE TABLE "municipal_detachments" (
  "municipality" text,
  "population" real,
  "police_officers" real,
  "residents_per_officer" real,
  "total_costs_2005" text,
  "cost_per_capita" text,
  "case_burden" real,
  "crime_rate_per_1_000_people" real,
  "police_force" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which police force serves a population of 17000?`:
```sql
                SELECT "police_force" FROM "municipal_detachments" WHERE "population"=17000;
```
## Task
Generate a SQL query to answer the following question:
`When total costs (2005) are $700,116, what is the cost per capita?`

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

CREATE TABLE "municipal_detachments" (
  "municipality" text,
  "population" real,
  "police_officers" real,
  "residents_per_officer" real,
  "total_costs_2005" text,
  "cost_per_capita" text,
  "case_burden" real,
  "crime_rate_per_1_000_people" real,
  "police_force" text
);
### SQL
Given the database schema, here is the SQL query that answers `When total costs (2005) are $700,116, what is the cost per capita?`:
```sql
                SELECT "cost_per_capita" FROM "municipal_detachments" WHERE "total_costs_2005"='$700,116';
```
## Task
Generate a SQL query to answer the following question:
`What is the cost per capita in the Courtenay municipality?`

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

CREATE TABLE "municipal_detachments" (
  "municipality" text,
  "population" real,
  "police_officers" real,
  "residents_per_officer" real,
  "total_costs_2005" text,
  "cost_per_capita" text,
  "case_burden" real,
  "crime_rate_per_1_000_people" real,
  "police_force" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cost per capita in the Courtenay municipality?`:
```sql
                SELECT "cost_per_capita" FROM "municipal_detachments" WHERE "municipality"='Courtenay';
```
## Task
Generate a SQL query to answer the following question:
`Which crime rate per 1,000 people is associated with a cost per capita of $152?`

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

CREATE TABLE "municipal_detachments" (
  "municipality" text,
  "population" real,
  "police_officers" real,
  "residents_per_officer" real,
  "total_costs_2005" text,
  "cost_per_capita" text,
  "case_burden" real,
  "crime_rate_per_1_000_people" real,
  "police_force" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which crime rate per 1,000 people is associated with a cost per capita of $152?`:
```sql
                SELECT MAX("crime_rate_per_1_000_people") FROM "municipal_detachments" WHERE "cost_per_capita"='$152';
```
## Task
Generate a SQL query to answer the following question:
`If the number of police officers is 94, what is the lowest population number?`

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

CREATE TABLE "municipal_detachments" (
  "municipality" text,
  "population" real,
  "police_officers" real,
  "residents_per_officer" real,
  "total_costs_2005" text,
  "cost_per_capita" text,
  "case_burden" real,
  "crime_rate_per_1_000_people" real,
  "police_force" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the number of police officers is 94, what is the lowest population number?`:
```sql
                SELECT MIN("population") FROM "municipal_detachments" WHERE "police_officers"=94;
```
## Task
Generate a SQL query to answer the following question:
`What is the value of total costs (2005) in the Coldstream municipality?`

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

CREATE TABLE "municipal_detachments" (
  "municipality" text,
  "population" real,
  "police_officers" real,
  "residents_per_officer" real,
  "total_costs_2005" text,
  "cost_per_capita" text,
  "case_burden" real,
  "crime_rate_per_1_000_people" real,
  "police_force" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of total costs (2005) in the Coldstream municipality?`:
```sql
                SELECT "total_costs_2005" FROM "municipal_detachments" WHERE "municipality"='Coldstream';
```
## Task
Generate a SQL query to answer the following question:
`What is the interview score for the state of Virginia?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the interview score for the state of Virginia?`:
```sql
                SELECT "interview" FROM "final_competition_scores" WHERE "state"='Virginia';
```
## Task
Generate a SQL query to answer the following question:
`How much is the average score for New York state?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the average score for New York state?`:
```sql
                SELECT "average" FROM "final_competition_scores" WHERE "state"='New York';
```
## Task
Generate a SQL query to answer the following question:
`Which interview score corresponds with the evening gown score of 8.977?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which interview score corresponds with the evening gown score of 8.977?`:
```sql
                SELECT "interview" FROM "final_competition_scores" WHERE "evening_gown"='8.977';
```
## Task
Generate a SQL query to answer the following question:
`What is the preliminary score associated with the interview score of 8.488?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the preliminary score associated with the interview score of 8.488?`:
```sql
                SELECT COUNT("preliminaries") FROM "final_competition_scores" WHERE "interview"='8.488';
```
## Task
Generate a SQL query to answer the following question:
`What swimsuit score did the state of Virginia contestant achieve?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What swimsuit score did the state of Virginia contestant achieve?`:
```sql
                SELECT COUNT("swimsuit") FROM "final_competition_scores" WHERE "state"='Virginia';
```
## Task
Generate a SQL query to answer the following question:
`Which interview score belongs to the state of Nevada contestant?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminaries" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which interview score belongs to the state of Nevada contestant?`:
```sql
                SELECT "interview" FROM "final_competition_scores" WHERE "state"='Nevada';
```
## Task
Generate a SQL query to answer the following question:
`For the competition Mithras Cup 2nd Rd (2nd Leg), what is the date and time?`

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

CREATE TABLE "scores" (
  "record" text,
  "date_and_time" text,
  "competition" text,
  "home_or_away" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the competition Mithras Cup 2nd Rd (2nd Leg), what is the date and time?`:
```sql
                SELECT "date_and_time" FROM "scores" WHERE "competition"='Mithras Cup 2nd Rd (2nd Leg)';
```
## Task
Generate a SQL query to answer the following question:
`Is the biggest win recorded as home or away?`

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

CREATE TABLE "scores" (
  "record" text,
  "date_and_time" text,
  "competition" text,
  "home_or_away" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Is the biggest win recorded as home or away?`:
```sql
                SELECT "home_or_away" FROM "scores" WHERE "record"='Biggest win';
```
## Task
Generate a SQL query to answer the following question:
`What competitions record a date and time of 17.04.1920 at 15:00?`

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

CREATE TABLE "scores" (
  "record" text,
  "date_and_time" text,
  "competition" text,
  "home_or_away" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competitions record a date and time of 17.04.1920 at 15:00?`:
```sql
                SELECT "competition" FROM "scores" WHERE "date_and_time"='17.04.1920 at 15:00';
```
## Task
Generate a SQL query to answer the following question:
`What records are hit where the opponent is Aylesbury United?`

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

CREATE TABLE "scores" (
  "record" text,
  "date_and_time" text,
  "competition" text,
  "home_or_away" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What records are hit where the opponent is Aylesbury United?`:
```sql
                SELECT "record" FROM "scores" WHERE "opponent"='Aylesbury United';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent during the biggest defeat?`

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

CREATE TABLE "scores" (
  "record" text,
  "date_and_time" text,
  "competition" text,
  "home_or_away" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent during the biggest defeat?`:
```sql
                SELECT "opponent" FROM "scores" WHERE "record"='Biggest defeat';
```
## Task
Generate a SQL query to answer the following question:
`How many results are there with the original title of ani ohev otach roza (אני אוהב אותך רוזה)?`

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

CREATE TABLE "table1_12369913_1" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many results are there with the original title of ani ohev otach roza (אני אוהב אותך רוזה)?`:
```sql
                SELECT COUNT("result") FROM "table1_12369913_1" WHERE "original_title"='Ani Ohev Otach Roza (אני אוהב אותך רוזה)';
```
## Task
Generate a SQL query to answer the following question:
`What is the power when ch# is tv-26 and dyfj-tv?`

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

CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "coverage_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power when ch# is tv-26 and dyfj-tv?`:
```sql
                SELECT "power_k_w" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "ch_num"='TV-26' AND "callsign"='DYFJ-TV';
```
## Task
Generate a SQL query to answer the following question:
`What is the coverage for relay tv-37?`

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

CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "coverage_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coverage for relay tv-37?`:
```sql
                SELECT "coverage_transmitter_site" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "station_type"='Relay' AND "ch_num"='TV-37';
```
## Task
Generate a SQL query to answer the following question:
`What is the ch# of dwlj-tv?`

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

CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "coverage_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ch# of dwlj-tv?`:
```sql
                SELECT "ch_num" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "callsign"='DWLJ-TV';
```
## Task
Generate a SQL query to answer the following question:
`What is the coverage of relay 5kw of dyfj-tv?`

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

CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "coverage_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coverage of relay 5kw of dyfj-tv?`:
```sql
                SELECT "coverage_transmitter_site" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "station_type"='Relay' AND "power_k_w"='5kW' AND "callsign"='DYFJ-TV';
```
## Task
Generate a SQL query to answer the following question:
`What is the running of marlene sanchez?`

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

CREATE TABLE "women" (
  "num" real,
  "athlete" text,
  "shooting" text,
  "fencing" text,
  "swimming" text,
  "riding" text,
  "running" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the running of marlene sanchez?`:
```sql
                SELECT "running" FROM "women" WHERE "athlete"='Marlene Sanchez';
```
## Task
Generate a SQL query to answer the following question:
`What is the numberof running wiht pamela zapata?`

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

CREATE TABLE "women" (
  "num" real,
  "athlete" text,
  "shooting" text,
  "fencing" text,
  "swimming" text,
  "riding" text,
  "running" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the numberof running wiht pamela zapata?`:
```sql
                SELECT COUNT("running") FROM "women" WHERE "athlete"='Pamela Zapata';
```
## Task
Generate a SQL query to answer the following question:
`What's Luis Siri's shooting score?`

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

CREATE TABLE "men" (
  "num" real,
  "athlete_noc" text,
  "shooting" text,
  "fencing" text,
  "swimming" text,
  "riding" text,
  "running" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Luis Siri's shooting score?`:
```sql
                SELECT "shooting" FROM "men" WHERE "athlete_noc"='Luis Siri';
```
## Task
Generate a SQL query to answer the following question:
`What's Eduardo Salas' riding score?`

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

CREATE TABLE "men" (
  "num" real,
  "athlete_noc" text,
  "shooting" text,
  "fencing" text,
  "swimming" text,
  "riding" text,
  "running" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Eduardo Salas' riding score?`:
```sql
                SELECT "riding" FROM "men" WHERE "athlete_noc"='Eduardo Salas';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of the player with 68.46 (1144 pts) in riding?`

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

CREATE TABLE "men" (
  "num" real,
  "athlete_noc" text,
  "shooting" text,
  "fencing" text,
  "swimming" text,
  "riding" text,
  "running" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the player with 68.46 (1144 pts) in riding?`:
```sql
                SELECT MAX("num") FROM "men" WHERE "riding"='68.46 (1144 pts)';
```
## Task
Generate a SQL query to answer the following question:
`Who's the player with 2:05.63 (1296 pts) swimming score?`

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

CREATE TABLE "men" (
  "num" real,
  "athlete_noc" text,
  "shooting" text,
  "fencing" text,
  "swimming" text,
  "riding" text,
  "running" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the player with 2:05.63 (1296 pts) swimming score?`:
```sql
                SELECT "athlete_noc" FROM "men" WHERE "swimming"='2:05.63 (1296 pts)';
```
## Task
Generate a SQL query to answer the following question:
`What's the fencing score of the player with 9:40.31 (1080 pts) in running?`

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

CREATE TABLE "men" (
  "num" real,
  "athlete_noc" text,
  "shooting" text,
  "fencing" text,
  "swimming" text,
  "riding" text,
  "running" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the fencing score of the player with 9:40.31 (1080 pts) in running?`:
```sql
                SELECT "fencing" FROM "men" WHERE "running"='9:40.31 (1080 pts)';
```