cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who were the  quarterfinalists for the runner-ups of mike de palmer gary donnelly?`

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

CREATE TABLE "table1_21584646_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the  quarterfinalists for the runner-ups of mike de palmer gary donnelly?`:
```sql
                SELECT "quarterfinalists" FROM "table1_21584646_10" WHERE "runner_up"='Mike De Palmer Gary Donnelly';
```
## Task
Generate a SQL query to answer the following question:
`Who are the quarterfinalists for runner-up  jimmy connors?`

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

CREATE TABLE "table1_21584646_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the quarterfinalists for runner-up  jimmy connors?`:
```sql
                SELECT "quarterfinalists" FROM "table1_21584646_10" WHERE "runner_up"='Jimmy Connors';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks are shown for the champion of john mcenroe 6–2, 6–3?`

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

CREATE TABLE "table1_21584646_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks are shown for the champion of john mcenroe 6–2, 6–3?`:
```sql
                SELECT COUNT("week_of") FROM "table1_21584646_10" WHERE "champion"='John McEnroe 6–2, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`What is every reason for change for the date of successors installation is March 16, 1960?`

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

CREATE TABLE "table1_2159571_1" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every reason for change for the date of successors installation is March 16, 1960?`:
```sql
                SELECT "reason_for_change" FROM "table1_2159571_1" WHERE "date_of_successors_formal_installation"='March 16, 1960';
```
## Task
Generate a SQL query to answer the following question:
`Who is every vacator if date of successors formal installation is August 8, 1960?`

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

CREATE TABLE "table1_2159571_1" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every vacator if date of successors formal installation is August 8, 1960?`:
```sql
                SELECT "vacator" FROM "table1_2159571_1" WHERE "date_of_successors_formal_installation"='August 8, 1960';
```
## Task
Generate a SQL query to answer the following question:
`Who is every successor for the Washington 3rd District?`

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

CREATE TABLE "table1_2159571_2" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every successor for the Washington 3rd District?`:
```sql
                SELECT "successor" FROM "table1_2159571_2" WHERE "district"='Washington 3rd';
```
## Task
Generate a SQL query to answer the following question:
`What is every reason for change for the Washington 3rd District?`

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

CREATE TABLE "table1_2159571_2" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every reason for change for the Washington 3rd District?`:
```sql
                SELECT "reason_for_change" FROM "table1_2159571_2" WHERE "district"='Washington 3rd';
```
## Task
Generate a SQL query to answer the following question:
`Who is every vacator with reason for change as resigned December 31, 1959?`

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

CREATE TABLE "table1_2159571_2" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every vacator with reason for change as resigned December 31, 1959?`:
```sql
                SELECT "vacator" FROM "table1_2159571_2" WHERE "reason_for_change"='Resigned December 31, 1959';
```
## Task
Generate a SQL query to answer the following question:
`In what district was the successor seated August 31, 1943?`

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

CREATE TABLE "table1_2159537_3" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what district was the successor seated August 31, 1943?`:
```sql
                SELECT "district" FROM "table1_2159537_3" WHERE "date_successor_seated"='August 31, 1943';
```
## Task
Generate a SQL query to answer the following question:
`Who was the successor for the reason for change being "died January 16, 1944?`

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

CREATE TABLE "table1_2159537_3" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the successor for the reason for change being "died January 16, 1944?`:
```sql
                SELECT "successor" FROM "table1_2159537_3" WHERE "reason_for_change"='Died January 16, 1944';
```
## Task
Generate a SQL query to answer the following question:
`Who was the successor in New York 11th district?`

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

CREATE TABLE "table1_2159537_3" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the successor in New York 11th district?`:
```sql
                SELECT "successor" FROM "table1_2159537_3" WHERE "district"='New York 11th';
```
## Task
Generate a SQL query to answer the following question:
`On what date was James P. Buchanan (d)'s successor seated?`

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

CREATE TABLE "table1_2159547_3" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was James P. Buchanan (d)'s successor seated?`:
```sql
                SELECT "date_successor_seated" FROM "table1_2159547_3" WHERE "vacator"='James P. Buchanan (D)';
```
## Task
Generate a SQL query to answer the following question:
`How many people vacated to successor Dave E. Satterfield, Jr. (d)?`

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

CREATE TABLE "table1_2159547_3" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people vacated to successor Dave E. Satterfield, Jr. (d)?`:
```sql
                SELECT COUNT("vacator") FROM "table1_2159547_3" WHERE "successor"='Dave E. Satterfield, Jr. (D)';
```
## Task
Generate a SQL query to answer the following question:
`Why did Robert L. Bacon (r) vacate?`

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

CREATE TABLE "table1_2159547_3" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Why did Robert L. Bacon (r) vacate?`:
```sql
                SELECT "reason_for_change" FROM "table1_2159547_3" WHERE "vacator"='Robert L. Bacon (R)';
```
## Task
Generate a SQL query to answer the following question:
`Makio Inoue dubbed on which character?`

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

CREATE TABLE "full_cast" (
  "character" text,
  "original_japanese" text,
  "english_streamline" text,
  "english_manga_uk" text,
  "english_pioneer_geneon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Makio Inoue dubbed on which character?`:
```sql
                SELECT "character" FROM "full_cast" WHERE "original_japanese"='Makio Inoue';
```
## Task
Generate a SQL query to answer the following question:
`Who was the cast on the English (Manga UK) version if Kō Nishimura acted on the original Japanese?`

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

CREATE TABLE "full_cast" (
  "character" text,
  "original_japanese" text,
  "english_streamline" text,
  "english_manga_uk" text,
  "english_pioneer_geneon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the cast on the English (Manga UK) version if Kō Nishimura acted on the original Japanese?`:
```sql
                SELECT "english_manga_uk" FROM "full_cast" WHERE "original_japanese"='Kō Nishimura';
```
## Task
Generate a SQL query to answer the following question:
`Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?`

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

CREATE TABLE "full_cast" (
  "character" text,
  "original_japanese" text,
  "english_streamline" text,
  "english_manga_uk" text,
  "english_pioneer_geneon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?`:
```sql
                SELECT "original_japanese" FROM "full_cast" WHERE "english_manga_uk"='Sean Barrett';
```
## Task
Generate a SQL query to answer the following question:
`Name the district for reason for change being died july 4, 1939`

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

CREATE TABLE "table1_2160008_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the district for reason for change being died july 4, 1939`:
```sql
                SELECT "district" FROM "table1_2160008_4" WHERE "reason_for_change"='Died July 4, 1939';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of reason for change on may 11, 1939`

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

CREATE TABLE "table1_2160008_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of reason for change on may 11, 1939`:
```sql
                SELECT COUNT("reason_for_change") FROM "table1_2160008_4" WHERE "date_successor_seated"='May 11, 1939';
```
## Task
Generate a SQL query to answer the following question:
`What were the time and speed for the rider ranked in 12 on Wed, June 3?`

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

CREATE TABLE "practice_times_leaderboard_superbike_sen" (
  "rank" real,
  "rider" text,
  "mon_1_june" text,
  "tue_2_june" text,
  "wed_3_june" text,
  "thurs_4_june" text,
  "fri_5_june" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the time and speed for the rider ranked in 12 on Wed, June 3?`:
```sql
                SELECT "wed_3_june" FROM "practice_times_leaderboard_superbike_sen" WHERE "rank"=12;
```
## Task
Generate a SQL query to answer the following question:
`What is the series number for the Golden Frog?`

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

CREATE TABLE "table1_2161859_1" (
  "series_num" real,
  "title" text,
  "story_num" real,
  "artist" text,
  "strip_numbers" text,
  "number_of_strips" text,
  "dates_of_original_publication_of_strip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number for the Golden Frog?`:
```sql
                SELECT "series_num" FROM "table1_2161859_1" WHERE "title"='The Golden Frog';
```
## Task
Generate a SQL query to answer the following question:
`Who is the artist for strip numbers 3932-4031a?`

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

CREATE TABLE "table1_2161859_1" (
  "series_num" real,
  "title" text,
  "story_num" real,
  "artist" text,
  "strip_numbers" text,
  "number_of_strips" text,
  "dates_of_original_publication_of_strip" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the artist for strip numbers 3932-4031a?`:
```sql
                SELECT "artist" FROM "table1_2161859_1" WHERE "strip_numbers"='3932-4031A';
```
## Task
Generate a SQL query to answer the following question:
`who got the first position when  Ehime Shimanami got the third position?`

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

CREATE TABLE "champions_list" (
  "regional" text,
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `who got the first position when  Ehime Shimanami got the third position?`:
```sql
                SELECT "champions" FROM "champions_list" WHERE "third_place"='Ehime Shimanami';
```
## Task
Generate a SQL query to answer the following question:
`who got the third position when laranja kyoto got the second position?`

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

CREATE TABLE "champions_list" (
  "regional" text,
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `who got the third position when laranja kyoto got the second position?`:
```sql
                SELECT "third_place" FROM "champions_list" WHERE "runners_up"='Laranja Kyoto';
```
## Task
Generate a SQL query to answer the following question:
`how many persons got the third position whan sanyo electric tokushima got the fourth position?`

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

CREATE TABLE "champions_list" (
  "regional" text,
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many persons got the third position whan sanyo electric tokushima got the fourth position?`:
```sql
                SELECT COUNT("third_place") FROM "champions_list" WHERE "fourth_place"='Sanyo Electric Tokushima';
```
## Task
Generate a SQL query to answer the following question:
`how many persons got the fourth position when the regional was shikoku?`

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

CREATE TABLE "champions_list" (
  "regional" text,
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many persons got the fourth position when the regional was shikoku?`:
```sql
                SELECT COUNT("fourth_place") FROM "champions_list" WHERE "regional"='Shikoku';
```
## Task
Generate a SQL query to answer the following question:
`who got the first place when the Japanese Regional Leagues was in hokushinetsu?`

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

CREATE TABLE "champions_list" (
  "regional" text,
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `who got the first place when the Japanese Regional Leagues was in hokushinetsu?`:
```sql
                SELECT "champions" FROM "champions_list" WHERE "regional"='Hokushinetsu';
```
## Task
Generate a SQL query to answer the following question:
`who got the first position when fujieda city government got the fourth position?`

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

CREATE TABLE "champions_list" (
  "regional" text,
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `who got the first position when fujieda city government got the fourth position?`:
```sql
                SELECT "champions" FROM "champions_list" WHERE "fourth_place"='Fujieda City Government';
```
## Task
Generate a SQL query to answer the following question:
`What are the civilian total when the security force total is 36?`

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

CREATE TABLE "table1_21636599_2" (
  "period" real,
  "civilians" text,
  "security_forces" text,
  "insurgents" text,
  "total_per_period" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the civilian total when the security force total is 36?`:
```sql
                SELECT "civilians" FROM "table1_21636599_2" WHERE "security_forces"='36';
```
## Task
Generate a SQL query to answer the following question:
`What are the security forces when the civilians are 202?`

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

CREATE TABLE "table1_21636599_2" (
  "period" real,
  "civilians" text,
  "security_forces" text,
  "insurgents" text,
  "total_per_period" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the security forces when the civilians are 202?`:
```sql
                SELECT "security_forces" FROM "table1_21636599_2" WHERE "civilians"='202';
```
## Task
Generate a SQL query to answer the following question:
`How many figures are named for security forces in 1998?`

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

CREATE TABLE "table1_21636599_2" (
  "period" real,
  "civilians" text,
  "security_forces" text,
  "insurgents" text,
  "total_per_period" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are named for security forces in 1998?`:
```sql
                SELECT COUNT("security_forces") FROM "table1_21636599_2" WHERE "period"=1998;
```
## Task
Generate a SQL query to answer the following question:
`How many insurgents are there when the total per period is 156?`

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

CREATE TABLE "table1_21636599_2" (
  "period" real,
  "civilians" text,
  "security_forces" text,
  "insurgents" text,
  "total_per_period" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many insurgents are there when the total per period is 156?`:
```sql
                SELECT "insurgents" FROM "table1_21636599_2" WHERE "total_per_period"=156;
```
## Task
Generate a SQL query to answer the following question:
`How many U.S. viewers watched the episode directed by Frank Waldeck?`

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

CREATE TABLE "table1_21634403_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many U.S. viewers watched the episode directed by Frank Waldeck?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_21634403_2" WHERE "directed_by"='Frank Waldeck';
```
## Task
Generate a SQL query to answer the following question:
`How many tournaments were at sime darby lpga malaysia?`

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

CREATE TABLE "lpga_tour_wins_7" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tournaments were at sime darby lpga malaysia?`:
```sql
                SELECT COUNT("no") FROM "lpga_tour_wins_7" WHERE "tournament"='Sime Darby LPGA Malaysia';
```
## Task
Generate a SQL query to answer the following question:
`Margin of victory on no. 4 was?`

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

CREATE TABLE "lpga_tour_wins_7" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Margin of victory on no. 4 was?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_tour_wins_7" WHERE "no"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner up when the won by 4 strokes?`

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

CREATE TABLE "lpga_tour_wins_7" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner up when the won by 4 strokes?`:
```sql
                SELECT "runner_s_up" FROM "lpga_tour_wins_7" WHERE "margin_of_victory"='4 strokes';
```
## Task
Generate a SQL query to answer the following question:
`Which film title used in nomination has the year (ceremony) 1990 (63rd)?`

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

CREATE TABLE "table1_21655290_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 `Which film title used in nomination has the year (ceremony) 1990 (63rd)?`:
```sql
                SELECT "film_title_used_in_nomination" FROM "table1_21655290_1" WHERE "year_ceremony"='1990 (63rd)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director of kon-tiki original title?`

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

CREATE TABLE "table1_21655290_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 `Who is the director of kon-tiki original title?`:
```sql
                SELECT "director" FROM "table1_21655290_1" WHERE "original_title"='Kon-Tiki';
```
## Task
Generate a SQL query to answer the following question:
`Which film title used in nomination has vinterkyss as the original title?`

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

CREATE TABLE "table1_21655290_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 `Which film title used in nomination has vinterkyss as the original title?`:
```sql
                SELECT "film_title_used_in_nomination" FROM "table1_21655290_1" WHERE "original_title"='Vinterkyss';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the tournament McDonald's wpga championship?`

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

CREATE TABLE "ladies_european_tour_wins_6" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the tournament McDonald's wpga championship?`:
```sql
                SELECT "date" FROM "ladies_european_tour_wins_6" WHERE "tournament"='McDonald''s WPGA Championship';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score when 5 strokes is the margin of victory?`

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

CREATE TABLE "ladies_european_tour_wins_6" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score when 5 strokes is the margin of victory?`:
```sql
                SELECT "winning_score" FROM "ladies_european_tour_wins_6" WHERE "margin_of_victory"='5 strokes';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par with the winning score of 74-67-71-73=285?`

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

CREATE TABLE "ladies_european_tour_wins_6" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par with the winning score of 74-67-71-73=285?`:
```sql
                SELECT "to_par" FROM "ladies_european_tour_wins_6" WHERE "winning_score"='74-67-71-73=285';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the winning score 74-67-71-73=285?`

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

CREATE TABLE "ladies_european_tour_wins_6" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the winning score 74-67-71-73=285?`:
```sql
                SELECT "date" FROM "ladies_european_tour_wins_6" WHERE "winning_score"='74-67-71-73=285';
```
## Task
Generate a SQL query to answer the following question:
`What number in series is "Diamonds"?`

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

CREATE TABLE "table1_21666472_1" (
  "no_in_total" text,
  "no_in_series" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number in series is "Diamonds"?`:
```sql
                SELECT "no_in_series" FROM "table1_21666472_1" WHERE "title"='\"Diamonds\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed "A Tale of Two Hitmen"?`

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

CREATE TABLE "table1_21666472_1" (
  "no_in_total" text,
  "no_in_series" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "A Tale of Two Hitmen"?`:
```sql
                SELECT "directed_by" FROM "table1_21666472_1" WHERE "title"='\"A Tale of Two Hitmen\"';
```
## Task
Generate a SQL query to answer the following question:
`How many number in series's are written by Greg Haddrick?`

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

CREATE TABLE "table1_21666472_1" (
  "no_in_total" text,
  "no_in_series" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number in series's are written by Greg Haddrick?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_21666472_1" WHERE "written_by"='Greg Haddrick';
```
## Task
Generate a SQL query to answer the following question:
`What number in series is "Judas Kiss"?`

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

CREATE TABLE "table1_21666472_1" (
  "no_in_total" text,
  "no_in_series" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number in series is "Judas Kiss"?`:
```sql
                SELECT "no_in_series" FROM "table1_21666472_1" WHERE "title"='\"Judas Kiss\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the original airdate of "A Nice Little Earner"?`

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

CREATE TABLE "table1_21666472_1" (
  "no_in_total" text,
  "no_in_series" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original airdate of "A Nice Little Earner"?`:
```sql
                SELECT "original_air_date" FROM "table1_21666472_1" WHERE "title"='\"A Nice Little Earner\"';
```
## Task
Generate a SQL query to answer the following question:
`whatis the year the first establishment had research grants in the amount of 4.027?`

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

CREATE TABLE "table1_216655_1" (
  "university" text,
  "established_as_a_university" real,
  "first_establishment" real,
  "student_population_fte_2009" real,
  "research_grants_2009_in_billion_sek" text
);
### SQL
Given the database schema, here is the SQL query that answers `whatis the year the first establishment had research grants in the amount of 4.027?`:
```sql
                SELECT MAX("first_establishment") FROM "table1_216655_1" WHERE "research_grants_2009_in_billion_sek"='4.027';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of established univeristy receiving research grants in the amount of 2.203?`

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

CREATE TABLE "table1_216655_1" (
  "university" text,
  "established_as_a_university" real,
  "first_establishment" real,
  "student_population_fte_2009" real,
  "research_grants_2009_in_billion_sek" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of established univeristy receiving research grants in the amount of 2.203?`:
```sql
                SELECT COUNT("established_as_a_university") FROM "table1_216655_1" WHERE "research_grants_2009_in_billion_sek"='2.203';
```
## Task
Generate a SQL query to answer the following question:
`what are the student population where research grants is 1.812?`

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

CREATE TABLE "table1_216655_1" (
  "university" text,
  "established_as_a_university" real,
  "first_establishment" real,
  "student_population_fte_2009" real,
  "research_grants_2009_in_billion_sek" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the student population where research grants is 1.812?`:
```sql
                SELECT "student_population_fte_2009" FROM "table1_216655_1" WHERE "research_grants_2009_in_billion_sek"='1.812';
```
## Task
Generate a SQL query to answer the following question:
`what is the first establishement where research grants is 2.033?`

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

CREATE TABLE "table1_216655_1" (
  "university" text,
  "established_as_a_university" real,
  "first_establishment" real,
  "student_population_fte_2009" real,
  "research_grants_2009_in_billion_sek" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the first establishement where research grants is 2.033?`:
```sql
                SELECT "first_establishment" FROM "table1_216655_1" WHERE "research_grants_2009_in_billion_sek"='2.033';
```
## Task
Generate a SQL query to answer the following question:
`what is the minimum student population where the research grants is 2.203?`

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

CREATE TABLE "table1_216655_1" (
  "university" text,
  "established_as_a_university" real,
  "first_establishment" real,
  "student_population_fte_2009" real,
  "research_grants_2009_in_billion_sek" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum student population where the research grants is 2.203?`:
```sql
                SELECT MIN("student_population_fte_2009") FROM "table1_216655_1" WHERE "research_grants_2009_in_billion_sek"='2.203';
```
## Task
Generate a SQL query to answer the following question:
`When were the odds of winner 16.66?`

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

CREATE TABLE "all_winners_of_olympiatravet" (
  "year" real,
  "horse" text,
  "driver" text,
  "trainer" text,
  "country_of_owner" text,
  "odds_of_winner" text,
  "winning_time_km_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `When were the odds of winner 16.66?`:
```sql
                SELECT "year" FROM "all_winners_of_olympiatravet" WHERE "odds_of_winner"='16.66';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning time in the year when the odds of the winner were 2.94?`

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

CREATE TABLE "all_winners_of_olympiatravet" (
  "year" real,
  "horse" text,
  "driver" text,
  "trainer" text,
  "country_of_owner" text,
  "odds_of_winner" text,
  "winning_time_km_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning time in the year when the odds of the winner were 2.94?`:
```sql
                SELECT "winning_time_km_rate" FROM "all_winners_of_olympiatravet" WHERE "odds_of_winner"='2.94';
```
## Task
Generate a SQL query to answer the following question:
`What were Gentleman's odds of winner?`

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

CREATE TABLE "all_winners_of_olympiatravet" (
  "year" real,
  "horse" text,
  "driver" text,
  "trainer" text,
  "country_of_owner" text,
  "odds_of_winner" text,
  "winning_time_km_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were Gentleman's odds of winner?`:
```sql
                SELECT "odds_of_winner" FROM "all_winners_of_olympiatravet" WHERE "horse"='Gentleman';
```
## Task
Generate a SQL query to answer the following question:
`How many countries did Utah Bulwark's owner come from?`

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

CREATE TABLE "all_winners_of_olympiatravet" (
  "year" real,
  "horse" text,
  "driver" text,
  "trainer" text,
  "country_of_owner" text,
  "odds_of_winner" text,
  "winning_time_km_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries did Utah Bulwark's owner come from?`:
```sql
                SELECT COUNT("country_of_owner") FROM "all_winners_of_olympiatravet" WHERE "horse"='Utah Bulwark';
```
## Task
Generate a SQL query to answer the following question:
`How many horses are mentioned competing in 1985?`

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

CREATE TABLE "all_winners_of_olympiatravet" (
  "year" real,
  "horse" text,
  "driver" text,
  "trainer" text,
  "country_of_owner" text,
  "odds_of_winner" text,
  "winning_time_km_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many horses are mentioned competing in 1985?`:
```sql
                SELECT COUNT("horse") FROM "all_winners_of_olympiatravet" WHERE "year"=1985;
```
## Task
Generate a SQL query to answer the following question:
`If the headquarters is Bharatpur, what is the maximum area?`

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

CREATE TABLE "table1_2168295_1" (
  "district" text,
  "headquarters" text,
  "area_km" real,
  "population_2011" real,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the headquarters is Bharatpur, what is the maximum area?`:
```sql
                SELECT MAX("area_km") FROM "table1_2168295_1" WHERE "headquarters"='Bharatpur';
```
## Task
Generate a SQL query to answer the following question:
`If the district is Chittorgarh, what is the area?`

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

CREATE TABLE "table1_2168295_1" (
  "district" text,
  "headquarters" text,
  "area_km" real,
  "population_2011" real,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the district is Chittorgarh, what is the area?`:
```sql
                SELECT "area_km" FROM "table1_2168295_1" WHERE "district"='Chittorgarh';
```
## Task
Generate a SQL query to answer the following question:
`If the 2011 population is 3685681, what is the name of the headquarters?`

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

CREATE TABLE "table1_2168295_1" (
  "district" text,
  "headquarters" text,
  "area_km" real,
  "population_2011" real,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the 2011 population is 3685681, what is the name of the headquarters?`:
```sql
                SELECT "headquarters" FROM "table1_2168295_1" WHERE "population_2011"=3685681;
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum area id the 2011 population is 3067549?`

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

CREATE TABLE "table1_2168295_1" (
  "district" text,
  "headquarters" text,
  "area_km" real,
  "population_2011" real,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum area id the 2011 population is 3067549?`:
```sql
                SELECT MIN("area_km") FROM "table1_2168295_1" WHERE "population_2011"=3067549;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2011 population if the headquarters is Chittorgarh?`

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

CREATE TABLE "table1_2168295_1" (
  "district" text,
  "headquarters" text,
  "area_km" real,
  "population_2011" real,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2011 population if the headquarters is Chittorgarh?`:
```sql
                SELECT "population_2011" FROM "table1_2168295_1" WHERE "headquarters"='Chittorgarh';
```
## Task
Generate a SQL query to answer the following question:
`How many different municipal mayors were there in the municipality with an area of 42.66 km2?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "type" text,
  "district" text,
  "area_km" text,
  "population_2010" real,
  "pop_density_per_km" text,
  "no_of_barangays" real,
  "municipal_mayor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different municipal mayors were there in the municipality with an area of 42.66 km2?`:
```sql
                SELECT COUNT("municipal_mayor") FROM "municipalities" WHERE "area_km"='42.66';
```
## Task
Generate a SQL query to answer the following question:
`What municipality had 26839 people living in it in 2010?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "type" text,
  "district" text,
  "area_km" text,
  "population_2010" real,
  "pop_density_per_km" text,
  "no_of_barangays" real,
  "municipal_mayor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What municipality had 26839 people living in it in 2010?`:
```sql
                SELECT "municipality" FROM "municipalities" WHERE "population_2010"=26839;
```
## Task
Generate a SQL query to answer the following question:
`In what municipality were there 757.5 people per km2?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "type" text,
  "district" text,
  "area_km" text,
  "population_2010" real,
  "pop_density_per_km" text,
  "no_of_barangays" real,
  "municipal_mayor" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what municipality were there 757.5 people per km2?`:
```sql
                SELECT "municipality" FROM "municipalities" WHERE "pop_density_per_km"='757.5';
```
## Task
Generate a SQL query to answer the following question:
`How many different counts of the population in Cavinti in 2010 are there?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "type" text,
  "district" text,
  "area_km" text,
  "population_2010" real,
  "pop_density_per_km" text,
  "no_of_barangays" real,
  "municipal_mayor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different counts of the population in Cavinti in 2010 are there?`:
```sql
                SELECT COUNT("population_2010") FROM "municipalities" WHERE "municipality"='Cavinti';
```
## Task
Generate a SQL query to answer the following question:
`How many people per km2 are there in the municipality whose mayor is Boy Quiat?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "type" text,
  "district" text,
  "area_km" text,
  "population_2010" real,
  "pop_density_per_km" text,
  "no_of_barangays" real,
  "municipal_mayor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people per km2 are there in the municipality whose mayor is Boy Quiat?`:
```sql
                SELECT "pop_density_per_km" FROM "municipalities" WHERE "municipal_mayor"='Boy Quiat';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode seen by 2.24 million people in the US?`

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

CREATE TABLE "table1_21696800_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the episode seen by 2.24 million people in the US?`:
```sql
                SELECT "num" FROM "table1_21696800_1" WHERE "u_s_viewers_million"='2.24';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode titled "Rabid"?`

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

CREATE TABLE "table1_21696800_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode titled "Rabid"?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_21696800_1" WHERE "title"='\"Rabid\"';
```
## Task
Generate a SQL query to answer the following question:
`How many different episode numbers are there for episodes directed by Wayne Rose?`

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

CREATE TABLE "table1_21696800_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different episode numbers are there for episodes directed by Wayne Rose?`:
```sql
                SELECT COUNT("num") FROM "table1_21696800_1" WHERE "directed_by"='Wayne Rose';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode titled "Kandor"?`

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

CREATE TABLE "table1_21696800_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode titled "Kandor"?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_21696800_1" WHERE "title"='\"Kandor\"';
```
## Task
Generate a SQL query to answer the following question:
`How many wins does he get when he starts at 10?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins does he get when he starts at 10?`:
```sql
                SELECT "wins" FROM "nascar_sprint_cup_series" WHERE "starts"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many wins does he have?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins does he have?`:
```sql
                SELECT MAX("wins") FROM "nascar_sprint_cup_series";
```