cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the June 21 ncaat baseball record for Fresno State Bulldogs?`

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

CREATE TABLE "schedule_results" (
  "num" real,
  "date" text,
  "opponent" text,
  "score" text,
  "site_stadium" text,
  "win" text,
  "loss" text,
  "save" text,
  "attendance" real,
  "overall_record" text,
  "ncaat_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the June 21 ncaat baseball record for Fresno State Bulldogs?`:
```sql
                SELECT "ncaat_record" FROM "schedule_results" WHERE "date"='June 21';
```
## Task
Generate a SQL query to answer the following question:
`What is the Papal name of the Pope announced as Ioannis Pauli Primi?`

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

CREATE TABLE "actual_examples" (
  "birth_name" text,
  "birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" text,
  "papal_name" text,
  "papal_name_as_announced_in_latin" text,
  "latin_declension_of_papal_name" text,
  "numeral_in_papal_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Papal name of the Pope announced as Ioannis Pauli Primi?`:
```sql
                SELECT "papal_name" FROM "actual_examples" WHERE "papal_name_as_announced_in_latin"='Ioannis Pauli primi';
```
## Task
Generate a SQL query to answer the following question:
`What is the announced birth name of the pope whose numeral is not given and whose latin declension is genitive?`

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

CREATE TABLE "actual_examples" (
  "birth_name" text,
  "birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" text,
  "papal_name" text,
  "papal_name_as_announced_in_latin" text,
  "latin_declension_of_papal_name" text,
  "numeral_in_papal_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the announced birth name of the pope whose numeral is not given and whose latin declension is genitive?`:
```sql
                SELECT "birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" FROM "actual_examples" WHERE "numeral_in_papal_name"='not given' AND "latin_declension_of_papal_name"='genitive';
```
## Task
Generate a SQL query to answer the following question:
`What pope was announced in latin as Pium?`

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

CREATE TABLE "actual_examples" (
  "birth_name" text,
  "birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" text,
  "papal_name" text,
  "papal_name_as_announced_in_latin" text,
  "latin_declension_of_papal_name" text,
  "numeral_in_papal_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pope was announced in latin as Pium?`:
```sql
                SELECT "papal_name" FROM "actual_examples" WHERE "papal_name_as_announced_in_latin"='Pium';
```
## Task
Generate a SQL query to answer the following question:
`What is the latin birth name of the pope announced as Ioannis Pauli Primi?`

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

CREATE TABLE "actual_examples" (
  "birth_name" text,
  "birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" text,
  "papal_name" text,
  "papal_name_as_announced_in_latin" text,
  "latin_declension_of_papal_name" text,
  "numeral_in_papal_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latin birth name of the pope announced as Ioannis Pauli Primi?`:
```sql
                SELECT "birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" FROM "actual_examples" WHERE "papal_name_as_announced_in_latin"='Ioannis Pauli primi';
```
## Task
Generate a SQL query to answer the following question:
`how many times did estudiantes de la plata participate in 2008 suruga bank championship`

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

CREATE TABLE "table1_18027411_1" (
  "team_competition" text,
  "2008_suruga_bank_championship" text,
  "2008_recopa_sudamericana" text,
  "2008_copa_sudamericana" text,
  "2009_copa_libertadores" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times did estudiantes de la plata participate in 2008 suruga bank championship`:
```sql
                SELECT COUNT("2008_suruga_bank_championship") FROM "table1_18027411_1" WHERE "team_competition"='Estudiantes de La Plata';
```
## Task
Generate a SQL query to answer the following question:
`How did the team which was first round eliminated by estudiantes do in 2008 recopa sudamericana`

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

CREATE TABLE "table1_18027411_1" (
  "team_competition" text,
  "2008_suruga_bank_championship" text,
  "2008_recopa_sudamericana" text,
  "2008_copa_sudamericana" text,
  "2009_copa_libertadores" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did the team which was first round eliminated by estudiantes do in 2008 recopa sudamericana`:
```sql
                SELECT "2008_recopa_sudamericana" FROM "table1_18027411_1" WHERE "2008_copa_sudamericana"='First Round eliminated by Estudiantes';
```
## Task
Generate a SQL query to answer the following question:
`how many teams were first round eliminated by estudiantes in 2008 copa sudamericana`

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

CREATE TABLE "table1_18027411_1" (
  "team_competition" text,
  "2008_suruga_bank_championship" text,
  "2008_recopa_sudamericana" text,
  "2008_copa_sudamericana" text,
  "2009_copa_libertadores" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many teams were first round eliminated by estudiantes in 2008 copa sudamericana`:
```sql
                SELECT COUNT("2008_suruga_bank_championship") FROM "table1_18027411_1" WHERE "2008_copa_sudamericana"='First Round eliminated by Estudiantes';
```
## Task
Generate a SQL query to answer the following question:
`What date was the match against Morocco played?`

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

CREATE TABLE "doubles_17" (
  "edition" text,
  "round" text,
  "date" text,
  "partnering" text,
  "against" text,
  "surface" text,
  "opponents" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the match against Morocco played?`:
```sql
                SELECT "date" FROM "doubles_17" WHERE "against"='Morocco';
```
## Task
Generate a SQL query to answer the following question:
`What country did Gil play against on 21–23 september 2007?`

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

CREATE TABLE "doubles_17" (
  "edition" text,
  "round" text,
  "date" text,
  "partnering" text,
  "against" text,
  "surface" text,
  "opponents" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country did Gil play against on 21–23 september 2007?`:
```sql
                SELECT "against" FROM "doubles_17" WHERE "date"='21–23 September 2007';
```
## Task
Generate a SQL query to answer the following question:
`Who was Gil's partner on 10–12 july 2009`

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

CREATE TABLE "doubles_17" (
  "edition" text,
  "round" text,
  "date" text,
  "partnering" text,
  "against" text,
  "surface" text,
  "opponents" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Gil's partner on 10–12 july 2009`:
```sql
                SELECT "partnering" FROM "doubles_17" WHERE "date"='10–12 July 2009';
```
## Task
Generate a SQL query to answer the following question:
`Where was the successor formally installed on December 3, 1858?`

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

CREATE TABLE "table1_1802760_3" (
  "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 `Where was the successor formally installed on December 3, 1858?`:
```sql
                SELECT "state_class" FROM "table1_1802760_3" WHERE "date_of_successors_formal_installation"='December 3, 1858';
```
## Task
Generate a SQL query to answer the following question:
`Why did the change happen in the state where the formal installation happen on February 14, 1859?`

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

CREATE TABLE "table1_1802760_3" (
  "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 `Why did the change happen in the state where the formal installation happen on February 14, 1859?`:
```sql
                SELECT "reason_for_change" FROM "table1_1802760_3" WHERE "date_of_successors_formal_installation"='February 14, 1859';
```
## Task
Generate a SQL query to answer the following question:
`Name the vacator for tennessee 1st`

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

CREATE TABLE "table1_1802522_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 vacator for tennessee 1st`:
```sql
                SELECT "vacator" FROM "table1_1802522_4" WHERE "district"='Tennessee 1st';
```
## Task
Generate a SQL query to answer the following question:
`If the passengers are 15,505,566, what is the iata code?`

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

CREATE TABLE "table1_18047346_4" (
  "rank" real,
  "airport_name" text,
  "location" text,
  "iata_code" text,
  "passengers" text,
  "pct_chg_2009_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the passengers are 15,505,566, what is the iata code?`:
```sql
                SELECT "iata_code" FROM "table1_18047346_4" WHERE "passengers"='15,505,566';
```
## Task
Generate a SQL query to answer the following question:
`If the location is Chicago, Illinois, what is the airport name?`

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

CREATE TABLE "table1_18047346_4" (
  "rank" real,
  "airport_name" text,
  "location" text,
  "iata_code" text,
  "passengers" text,
  "pct_chg_2009_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the location is Chicago, Illinois, what is the airport name?`:
```sql
                SELECT "airport_name" FROM "table1_18047346_4" WHERE "location"='Chicago, Illinois';
```
## Task
Generate a SQL query to answer the following question:
`If the amount of passengers is 15,505,566, what is the %/chg. for 2009/10?`

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

CREATE TABLE "table1_18047346_4" (
  "rank" real,
  "airport_name" text,
  "location" text,
  "iata_code" text,
  "passengers" text,
  "pct_chg_2009_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the amount of passengers is 15,505,566, what is the %/chg. for 2009/10?`:
```sql
                SELECT "pct_chg_2009_10" FROM "table1_18047346_4" WHERE "passengers"='15,505,566';
```
## Task
Generate a SQL query to answer the following question:
`What university did Steve Hoar attend. `

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

CREATE TABLE "table1_18042409_1" (
  "player" text,
  "alma_mater" text,
  "national_lacrosse_league" text,
  "major_league_lacrosse" text,
  "international_competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What university did Steve Hoar attend. `:
```sql
                SELECT "alma_mater" FROM "table1_18042409_1" WHERE "player"='Steve Hoar';
```
## Task
Generate a SQL query to answer the following question:
`List the plats that attended Wilfrid Laurier University. `

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

CREATE TABLE "table1_18042409_1" (
  "player" text,
  "alma_mater" text,
  "national_lacrosse_league" text,
  "major_league_lacrosse" text,
  "international_competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the plats that attended Wilfrid Laurier University. `:
```sql
                SELECT "player" FROM "table1_18042409_1" WHERE "alma_mater"='Wilfrid Laurier University';
```
## Task
Generate a SQL query to answer the following question:
`List all the international lacrosse league competitions for Toronto Rock.`

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

CREATE TABLE "table1_18042409_1" (
  "player" text,
  "alma_mater" text,
  "national_lacrosse_league" text,
  "major_league_lacrosse" text,
  "international_competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all the international lacrosse league competitions for Toronto Rock.`:
```sql
                SELECT "international_competition" FROM "table1_18042409_1" WHERE "national_lacrosse_league"='Toronto Rock';
```
## Task
Generate a SQL query to answer the following question:
`List all of the NLL Toronto Rock players. `

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

CREATE TABLE "table1_18042409_1" (
  "player" text,
  "alma_mater" text,
  "national_lacrosse_league" text,
  "major_league_lacrosse" text,
  "international_competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all of the NLL Toronto Rock players. `:
```sql
                SELECT "player" FROM "table1_18042409_1" WHERE "national_lacrosse_league"='Toronto Rock';
```
## Task
Generate a SQL query to answer the following question:
`What rank is the airport whose IATA Code is JFK?`

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

CREATE TABLE "table1_18047346_5" (
  "rank" real,
  "airport_name" text,
  "location" text,
  "iata_code" text,
  "tonnes" text,
  "pct_chg_2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is the airport whose IATA Code is JFK?`:
```sql
                SELECT "rank" FROM "table1_18047346_5" WHERE "iata_code"='JFK';
```
## Task
Generate a SQL query to answer the following question:
`Which airport has an IATA Code of ORD?`

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

CREATE TABLE "table1_18047346_5" (
  "rank" real,
  "airport_name" text,
  "location" text,
  "iata_code" text,
  "tonnes" text,
  "pct_chg_2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which airport has an IATA Code of ORD?`:
```sql
                SELECT "airport_name" FROM "table1_18047346_5" WHERE "iata_code"='ORD';
```
## Task
Generate a SQL query to answer the following question:
`Louisville International Airport had how many tonnes of cargo in 2011?`

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

CREATE TABLE "table1_18047346_5" (
  "rank" real,
  "airport_name" text,
  "location" text,
  "iata_code" text,
  "tonnes" text,
  "pct_chg_2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `Louisville International Airport had how many tonnes of cargo in 2011?`:
```sql
                SELECT "tonnes" FROM "table1_18047346_5" WHERE "airport_name"='Louisville International Airport';
```
## Task
Generate a SQL query to answer the following question:
`How many tonnes of cargo did the airport have with the IATA Code IND?`

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

CREATE TABLE "table1_18047346_5" (
  "rank" real,
  "airport_name" text,
  "location" text,
  "iata_code" text,
  "tonnes" text,
  "pct_chg_2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tonnes of cargo did the airport have with the IATA Code IND?`:
```sql
                SELECT "tonnes" FROM "table1_18047346_5" WHERE "iata_code"='IND';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent democratic party in district florida 11?`

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

CREATE TABLE "table1_1805191_10" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the incumbent democratic party in district florida 11?`:
```sql
                SELECT "incumbent" FROM "table1_1805191_10" WHERE "party"='Democratic' AND "district"='Florida 11';
```
## Task
Generate a SQL query to answer the following question:
`In which district is the first elected 2000?`

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

CREATE TABLE "table1_1805191_10" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which district is the first elected 2000?`:
```sql
                SELECT "district" FROM "table1_1805191_10" WHERE "first_elected"=2000;
```
## Task
Generate a SQL query to answer the following question:
`When is the first elected in the Florida 19 district?`

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

CREATE TABLE "table1_1805191_10" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the first elected in the Florida 19 district?`:
```sql
                SELECT "first_elected" FROM "table1_1805191_10" WHERE "district"='Florida 19';
```
## Task
Generate a SQL query to answer the following question:
`What are the results of incumbent dave weldon?`

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

CREATE TABLE "table1_1805191_10" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results of incumbent dave weldon?`:
```sql
                SELECT COUNT("results") FROM "table1_1805191_10" WHERE "incumbent"='Dave Weldon';
```
## Task
Generate a SQL query to answer the following question:
`How many districts have the incumbent, Charles Rangel? `

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts have the incumbent, Charles Rangel? `:
```sql
                SELECT COUNT("district") FROM "new_york" WHERE "incumbent"='Charles Rangel';
```
## Task
Generate a SQL query to answer the following question:
`What is the party affiliation of New York 26? `

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

CREATE TABLE "new_york" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party affiliation of New York 26? `:
```sql
                SELECT "party" FROM "new_york" WHERE "district"='New York 26';
```
## Task
Generate a SQL query to answer the following question:
`In the district of Pennsylvania 1, what is the total number of political parties?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the district of Pennsylvania 1, what is the total number of political parties?`:
```sql
                SELECT COUNT("party") FROM "pennsylvania" WHERE "district"='Pennsylvania 1';
```
## Task
Generate a SQL query to answer the following question:
`What year was Tim Holden first elected?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Tim Holden first elected?`:
```sql
                SELECT MIN("first_elected") FROM "pennsylvania" WHERE "incumbent"='Tim Holden';
```
## Task
Generate a SQL query to answer the following question:
`How many parties were first elected in 1994?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many parties were first elected in 1994?`:
```sql
                SELECT COUNT("party") FROM "pennsylvania" WHERE "first_elected"=1994;
```
## Task
Generate a SQL query to answer the following question:
`In district Pennsylvania 11, what was the total numbers of results?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `In district Pennsylvania 11, what was the total numbers of results?`:
```sql
                SELECT COUNT("results") FROM "pennsylvania" WHERE "district"='Pennsylvania 11';
```
## Task
Generate a SQL query to answer the following question:
`During what year was Representative Spencer Bachus first elected?`

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

CREATE TABLE "alabama" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `During what year was Representative Spencer Bachus first elected?`:
```sql
                SELECT COUNT("first_elected") FROM "alabama" WHERE "incumbent"='Spencer Bachus';
```
## Task
Generate a SQL query to answer the following question:
`What is the party affiliation of the incumbent Robert Cramer?`

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

CREATE TABLE "alabama" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party affiliation of the incumbent Robert Cramer?`:
```sql
                SELECT "party" FROM "alabama" WHERE "incumbent"='Robert Cramer';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent in the Washington 1 district? `

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

CREATE TABLE "washington" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the incumbent in the Washington 1 district? `:
```sql
                SELECT "incumbent" FROM "washington" WHERE "district"='Washington 1';
```
## Task
Generate a SQL query to answer the following question:
`How many categories of first elected are in Washington 4 district? `

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

CREATE TABLE "washington" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many categories of first elected are in Washington 4 district? `:
```sql
                SELECT COUNT("first_elected") FROM "washington" WHERE "district"='Washington 4';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in the election where the date of first elected was 2000? `

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

CREATE TABLE "washington" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in the election where the date of first elected was 2000? `:
```sql
                SELECT "results" FROM "washington" WHERE "first_elected"=2000;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "Smells Like Teen Sellout"?`

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

CREATE TABLE "table1_18054886_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode titled "Smells Like Teen Sellout"?`:
```sql
                SELECT "directed_by" FROM "table1_18054886_1" WHERE "title"='\"Smells Like Teen Sellout\"';
```
## Task
Generate a SQL query to answer the following question:
`Which title, directed by David Kendall, had 3.7 million viewers?`

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

CREATE TABLE "table1_18054886_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title, directed by David Kendall, had 3.7 million viewers?`:
```sql
                SELECT "title" FROM "table1_18054886_1" WHERE "viewers_millions"='3.7' AND "directed_by"='David Kendall';
```
## Task
Generate a SQL query to answer the following question:
`Who directed "People who use people"?`

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

CREATE TABLE "table1_18054886_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "People who use people"?`:
```sql
                SELECT "directed_by" FROM "table1_18054886_1" WHERE "title"='\"People Who Use People\"';
```
## Task
Generate a SQL query to answer the following question:
`How many people were first elected with an incument of diane watson?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were first elected with an incument of diane watson?`:
```sql
                SELECT COUNT("first_elected") FROM "california" WHERE "incumbent"='Diane Watson';
```
## Task
Generate a SQL query to answer the following question:
`What party did hilda solis represent?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party did hilda solis represent?`:
```sql
                SELECT "party" FROM "california" WHERE "incumbent"='Hilda Solis';
```
## Task
Generate a SQL query to answer the following question:
`What were the result(s) of the election featuring grace napolitano as the incumbent?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the result(s) of the election featuring grace napolitano as the incumbent?`:
```sql
                SELECT "results" FROM "california" WHERE "incumbent"='Grace Napolitano';
```
## Task
Generate a SQL query to answer the following question:
`Which place in the order is the Pinyin transcription She Jiang?`

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

CREATE TABLE "nine_pieces" (
  "standard_order" real,
  "english_translation" text,
  "transcription_based_on_pinyin" text,
  "traditional_chinese" text,
  "simplified_chinese" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which place in the order is the Pinyin transcription She Jiang?`:
```sql
                SELECT MIN("standard_order") FROM "nine_pieces" WHERE "transcription_based_on_pinyin"='She Jiang';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of "A Lament for Ying"?`

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

CREATE TABLE "nine_pieces" (
  "standard_order" real,
  "english_translation" text,
  "transcription_based_on_pinyin" text,
  "traditional_chinese" text,
  "simplified_chinese" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of "A Lament for Ying"?`:
```sql
                SELECT MAX("standard_order") FROM "nine_pieces" WHERE "english_translation"='A Lament for Ying';
```
## Task
Generate a SQL query to answer the following question:
`How many traditional Chinese for the translation of "Crossing the River"?`

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

CREATE TABLE "nine_pieces" (
  "standard_order" real,
  "english_translation" text,
  "transcription_based_on_pinyin" text,
  "traditional_chinese" text,
  "simplified_chinese" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many traditional Chinese for the translation of "Crossing the River"?`:
```sql
                SELECT COUNT("traditional_chinese") FROM "nine_pieces" WHERE "english_translation"='Crossing the River';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the Pinyin transcription Xi Wangri?`

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

CREATE TABLE "nine_pieces" (
  "standard_order" real,
  "english_translation" text,
  "transcription_based_on_pinyin" text,
  "traditional_chinese" text,
  "simplified_chinese" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the Pinyin transcription Xi Wangri?`:
```sql
                SELECT MAX("standard_order") FROM "nine_pieces" WHERE "transcription_based_on_pinyin"='Xi Wangri';
```
## Task
Generate a SQL query to answer the following question:
`What is the English translation of 哀郢?`

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

CREATE TABLE "nine_pieces" (
  "standard_order" real,
  "english_translation" text,
  "transcription_based_on_pinyin" text,
  "traditional_chinese" text,
  "simplified_chinese" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English translation of 哀郢?`:
```sql
                SELECT "english_translation" FROM "nine_pieces" WHERE "traditional_chinese"='哀郢';
```
## Task
Generate a SQL query to answer the following question:
`What is the Pinyin transcription for "Alas for the Days Gone By"?`

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

CREATE TABLE "nine_pieces" (
  "standard_order" real,
  "english_translation" text,
  "transcription_based_on_pinyin" text,
  "traditional_chinese" text,
  "simplified_chinese" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pinyin transcription for "Alas for the Days Gone By"?`:
```sql
                SELECT "transcription_based_on_pinyin" FROM "nine_pieces" WHERE "english_translation"='Alas for the Days Gone By';
```
## Task
Generate a SQL query to answer the following question:
`What's the English name for the month with พ.ย. abbreviation? `

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

CREATE TABLE "months" (
  "english_name" text,
  "thai_name" text,
  "abbr" text,
  "transcription" text,
  "sanskrit_word" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the English name for the month with พ.ย. abbreviation? `:
```sql
                SELECT "english_name" FROM "months" WHERE "abbr"='พ.ย.';
```
## Task
Generate a SQL query to answer the following question:
`What's the zodiac sing for the month abbreviated as มี.ค.?`

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

CREATE TABLE "months" (
  "english_name" text,
  "thai_name" text,
  "abbr" text,
  "transcription" text,
  "sanskrit_word" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the zodiac sing for the month abbreviated as มี.ค.?`:
```sql
                SELECT "zodiac_sign" FROM "months" WHERE "abbr"='มี.ค.';
```
## Task
Generate a SQL query to answer the following question:
`What's the transcription of the thai name of the month พฤษภาคม?`

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

CREATE TABLE "months" (
  "english_name" text,
  "thai_name" text,
  "abbr" text,
  "transcription" text,
  "sanskrit_word" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the transcription of the thai name of the month พฤษภาคม?`:
```sql
                SELECT "transcription" FROM "months" WHERE "thai_name"='พฤษภาคม';
```
## Task
Generate a SQL query to answer the following question:
`How many zodiac signs does the month by the Thai name of กันยายน belong to?`

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

CREATE TABLE "months" (
  "english_name" text,
  "thai_name" text,
  "abbr" text,
  "transcription" text,
  "sanskrit_word" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many zodiac signs does the month by the Thai name of กันยายน belong to?`:
```sql
                SELECT COUNT("zodiac_sign") FROM "months" WHERE "thai_name"='กันยายน';
```
## Task
Generate a SQL query to answer the following question:
`What's the English name of the month abbreviated as มิ.ย.?`

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

CREATE TABLE "months" (
  "english_name" text,
  "thai_name" text,
  "abbr" text,
  "transcription" text,
  "sanskrit_word" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the English name of the month abbreviated as มิ.ย.?`:
```sql
                SELECT "english_name" FROM "months" WHERE "abbr"='มิ.ย.';
```
## Task
Generate a SQL query to answer the following question:
`What's the abbreviation of the month in the zodiac sign scorpio?`

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

CREATE TABLE "months" (
  "english_name" text,
  "thai_name" text,
  "abbr" text,
  "transcription" text,
  "sanskrit_word" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the abbreviation of the month in the zodiac sign scorpio?`:
```sql
                SELECT "abbr" FROM "months" WHERE "zodiac_sign"='Scorpio';
```
## Task
Generate a SQL query to answer the following question:
`which year was the original title გაღმა ნაპირი`

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

CREATE TABLE "submissions" (
  "year_e_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "main_language_s" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `which year was the original title გაღმა ნაპირი`:
```sql
                SELECT "year_e_ceremony" FROM "submissions" WHERE "original_title"='გაღმა ნაპირი';
```
## Task
Generate a SQL query to answer the following question:
`how many times was 27 missing kisses used in nomination`

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

CREATE TABLE "submissions" (
  "year_e_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "main_language_s" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was 27 missing kisses used in nomination`:
```sql
                SELECT COUNT("year_e_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='27 Missing Kisses';
```
## Task
Generate a SQL query to answer the following question:
`when was otar iosseliani's film selected`

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

CREATE TABLE "submissions" (
  "year_e_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "main_language_s" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was otar iosseliani's film selected`:
```sql
                SELECT "year_e_ceremony" FROM "submissions" WHERE "director"='Otar Iosseliani';
```
## Task
Generate a SQL query to answer the following question:
`What is the thai name of the transcription wan chan?`

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

CREATE TABLE "weekdays" (
  "english_name" text,
  "thai_name" text,
  "transcription" text,
  "color" text,
  "sanskrit_word" text,
  "planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the thai name of the transcription wan chan?`:
```sql
                SELECT "thai_name" FROM "weekdays" WHERE "transcription"='wan chan';
```
## Task
Generate a SQL query to answer the following question:
`What is the sanskrit word for the color red?`

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

CREATE TABLE "weekdays" (
  "english_name" text,
  "thai_name" text,
  "transcription" text,
  "color" text,
  "sanskrit_word" text,
  "planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sanskrit word for the color red?`:
```sql
                SELECT "sanskrit_word" FROM "weekdays" WHERE "color"='red';
```
## Task
Generate a SQL query to answer the following question:
`What is the transcription of the sanskrit word chandra?`

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

CREATE TABLE "weekdays" (
  "english_name" text,
  "thai_name" text,
  "transcription" text,
  "color" text,
  "sanskrit_word" text,
  "planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transcription of the sanskrit word chandra?`:
```sql
                SELECT "transcription" FROM "weekdays" WHERE "sanskrit_word"='Chandra';
```
## Task
Generate a SQL query to answer the following question:
`What is the sanskrit word if the transcription is wan athit?`

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

CREATE TABLE "weekdays" (
  "english_name" text,
  "thai_name" text,
  "transcription" text,
  "color" text,
  "sanskrit_word" text,
  "planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sanskrit word if the transcription is wan athit?`:
```sql
                SELECT "sanskrit_word" FROM "weekdays" WHERE "transcription"='wan athit';
```
## Task
Generate a SQL query to answer the following question:
`What is the color of the planet venus?`

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

CREATE TABLE "weekdays" (
  "english_name" text,
  "thai_name" text,
  "transcription" text,
  "color" text,
  "sanskrit_word" text,
  "planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the color of the planet venus?`:
```sql
                SELECT "color" FROM "weekdays" WHERE "planet"='Venus';
```
## Task
Generate a SQL query to answer the following question:
`Which planet has the transcription of wan suk?`

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

CREATE TABLE "weekdays" (
  "english_name" text,
  "thai_name" text,
  "transcription" text,
  "color" text,
  "sanskrit_word" text,
  "planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which planet has the transcription of wan suk?`:
```sql
                SELECT "planet" FROM "weekdays" WHERE "transcription"='wan suk';
```
## Task
Generate a SQL query to answer the following question:
`What is the year to april when the revenue is 434.8 million dollars?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" text,
  "ebit_us_m" text,
  "net_profit_us_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year to april when the revenue is 434.8 million dollars?`:
```sql
                SELECT "year_to_april" FROM "micro_focus_international_plc_financial_" WHERE "revenue_us_million"='434.8';
```
## Task
Generate a SQL query to answer the following question:
`What is the dollar amount of ebit when the net profit is 120.6?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" text,
  "ebit_us_m" text,
  "net_profit_us_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dollar amount of ebit when the net profit is 120.6?`:
```sql
                SELECT "ebit_us_m" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='120.6';
```
## Task
Generate a SQL query to answer the following question:
`How many dollars is the revenue when the net profit is 55.4 million dollars?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" text,
  "ebit_us_m" text,
  "net_profit_us_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dollars is the revenue when the net profit is 55.4 million dollars?`:
```sql
                SELECT "revenue_us_million" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='55.4';
```
## Task
Generate a SQL query to answer the following question:
`When the earning per share is listed as 22.0 what is the year to april?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" text,
  "ebit_us_m" text,
  "net_profit_us_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the earning per share is listed as 22.0 what is the year to april?`:
```sql
                SELECT COUNT("year_to_april") FROM "micro_focus_international_plc_financial_" WHERE "earnings_per_share"='22.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the earnings per share when the net profit is 16.2 million dollars?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" text,
  "ebit_us_m" text,
  "net_profit_us_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earnings per share when the net profit is 16.2 million dollars?`:
```sql
                SELECT "earnings_per_share" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='16.2';
```
## Task
Generate a SQL query to answer the following question:
`How much is the net profit when the revenue is 150.6 million dollars?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" text,
  "ebit_us_m" text,
  "net_profit_us_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the net profit when the revenue is 150.6 million dollars?`:
```sql
                SELECT "net_profit_us_m" FROM "micro_focus_international_plc_financial_" WHERE "revenue_us_million"='150.6';
```
## Task
Generate a SQL query to answer the following question:
`Name the year for not nominated for alberto aruelo`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for not nominated for alberto aruelo`:
```sql
                SELECT "year_ceremony" FROM "submissions" WHERE "result"='Not Nominated' AND "director"='Alberto Aruelo';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of director for oro diablo`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of director for oro diablo`:
```sql
                SELECT COUNT("director") FROM "submissions" WHERE "original_title"='Oro Diablo';
```