cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?`

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

CREATE TABLE "table1_1008653_9" (
  "country_exonym" text,
  "capital_exonym" text,
  "country_endonym" text,
  "capital_endonym" text,
  "official_or_native_language_s_alphabet_script" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?`:
```sql
                SELECT "country_exonym" FROM "table1_1008653_9" WHERE "official_or_native_language_s_alphabet_script"='Icelandic';
```
## Task
Generate a SQL query to answer the following question:
`In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?`

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

CREATE TABLE "table1_1008653_9" (
  "country_exonym" text,
  "capital_exonym" text,
  "country_endonym" text,
  "capital_endonym" text,
  "official_or_native_language_s_alphabet_script" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?`:
```sql
                SELECT "country_endonym" FROM "table1_1008653_9" WHERE "official_or_native_language_s_alphabet_script"='Irish English';
```
## Task
Generate a SQL query to answer the following question:
`Which country (exonym) is the country (endonym) isle of man ellan vannin?`

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

CREATE TABLE "table1_1008653_9" (
  "country_exonym" text,
  "capital_exonym" text,
  "country_endonym" text,
  "capital_endonym" text,
  "official_or_native_language_s_alphabet_script" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country (exonym) is the country (endonym) isle of man ellan vannin?`:
```sql
                SELECT "country_exonym" FROM "table1_1008653_9" WHERE "country_endonym"='Isle of Man Ellan Vannin';
```
## Task
Generate a SQL query to answer the following question:
`The season premiere aired on September 11, 2000 aired on how many networks? `

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "network" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `The season premiere aired on September 11, 2000 aired on how many networks? `:
```sql
                SELECT COUNT("network") FROM "u_s_television_ratings" WHERE "season_premiere"='September 11, 2000';
```
## Task
Generate a SQL query to answer the following question:
`What was the ranking of the season finale aired on May 8, 2006? `

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "network" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ranking of the season finale aired on May 8, 2006? `:
```sql
                SELECT "ranking" FROM "u_s_television_ratings" WHERE "season_finale"='May 8, 2006';
```
## Task
Generate a SQL query to answer the following question:
`what is the minimum population canada 2011 census with seat of rcm being cowansville`

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

CREATE TABLE "table1_1011906_1" (
  "regional_county_municipality_rcm" text,
  "population_canada_2011_census" real,
  "land_area" text,
  "density_pop_per_km2" text,
  "seat_of_rcm" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum population canada 2011 census with seat of rcm being cowansville`:
```sql
                SELECT MIN("population_canada_2011_census") FROM "table1_1011906_1" WHERE "seat_of_rcm"='Cowansville';
```
## Task
Generate a SQL query to answer the following question:
`what's the land area with seat of rcm being granby`

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

CREATE TABLE "table1_1011906_1" (
  "regional_county_municipality_rcm" text,
  "population_canada_2011_census" real,
  "land_area" text,
  "density_pop_per_km2" text,
  "seat_of_rcm" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the land area with seat of rcm being granby`:
```sql
                SELECT "land_area" FROM "table1_1011906_1" WHERE "seat_of_rcm"='Granby';
```
## Task
Generate a SQL query to answer the following question:
`What is the population for County Mayo with the English Name Carrowteige?`

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

CREATE TABLE "habitual_irish_speakers" (
  "county" text,
  "english_name" text,
  "irish_name" text,
  "population" real,
  "irish_speakers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population for County Mayo with the English Name Carrowteige?`:
```sql
                SELECT "population" FROM "habitual_irish_speakers" WHERE "county"='County Mayo' AND "english_name"='Carrowteige';
```
## Task
Generate a SQL query to answer the following question:
`What is the Irish name listed with 62% Irish speakers?`

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

CREATE TABLE "habitual_irish_speakers" (
  "county" text,
  "english_name" text,
  "irish_name" text,
  "population" real,
  "irish_speakers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Irish name listed with 62% Irish speakers?`:
```sql
                SELECT "irish_name" FROM "habitual_irish_speakers" WHERE "irish_speakers"='62%';
```
## Task
Generate a SQL query to answer the following question:
`What is the population for the Irish Name Leitir mealláin?`

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

CREATE TABLE "habitual_irish_speakers" (
  "county" text,
  "english_name" text,
  "irish_name" text,
  "population" real,
  "irish_speakers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population for the Irish Name Leitir mealláin?`:
```sql
                SELECT "population" FROM "habitual_irish_speakers" WHERE "irish_name"='Leitir Mealláin';
```
## Task
Generate a SQL query to answer the following question:
`What is the county for the Irish name Carna?`

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

CREATE TABLE "habitual_irish_speakers" (
  "county" text,
  "english_name" text,
  "irish_name" text,
  "population" real,
  "irish_speakers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the county for the Irish name Carna?`:
```sql
                SELECT "county" FROM "habitual_irish_speakers" WHERE "irish_name"='Carna';
```
## Task
Generate a SQL query to answer the following question:
`How many County Kerry have 53% Irish speakers?`

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

CREATE TABLE "habitual_irish_speakers" (
  "county" text,
  "english_name" text,
  "irish_name" text,
  "population" real,
  "irish_speakers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many County Kerry have 53% Irish speakers?`:
```sql
                SELECT COUNT("english_name") FROM "habitual_irish_speakers" WHERE "irish_speakers"='53%' AND "county"='County Kerry';
```
## Task
Generate a SQL query to answer the following question:
`What is the population for the English name Spiddal?`

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

CREATE TABLE "habitual_irish_speakers" (
  "county" text,
  "english_name" text,
  "irish_name" text,
  "population" real,
  "irish_speakers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population for the English name Spiddal?`:
```sql
                SELECT "population" FROM "habitual_irish_speakers" WHERE "english_name"='Spiddal';
```
## Task
Generate a SQL query to answer the following question:
`What is the the Chinese population for the state that has a Filipino population of 1474707?`

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

CREATE TABLE "us_states_by_asian_americans_population" (
  "state_territory" text,
  "asian_american_population_2010_census" real,
  "chinese" real,
  "filipino" real,
  "indian" real,
  "japanese" real,
  "korean" real,
  "vietnamese" real,
  "other_asian" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the the Chinese population for the state that has a Filipino population of 1474707?`:
```sql
                SELECT MIN("chinese") FROM "us_states_by_asian_americans_population" WHERE "filipino"=1474707;
```
## Task
Generate a SQL query to answer the following question:
`How many States have an Indian population of 30947?`

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

CREATE TABLE "us_states_by_asian_americans_population" (
  "state_territory" text,
  "asian_american_population_2010_census" real,
  "chinese" real,
  "filipino" real,
  "indian" real,
  "japanese" real,
  "korean" real,
  "vietnamese" real,
  "other_asian" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many States have an Indian population of 30947?`:
```sql
                SELECT COUNT("filipino") FROM "us_states_by_asian_americans_population" WHERE "indian"=30947;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Indian population?`

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

CREATE TABLE "us_states_by_asian_americans_population" (
  "state_territory" text,
  "asian_american_population_2010_census" real,
  "chinese" real,
  "filipino" real,
  "indian" real,
  "japanese" real,
  "korean" real,
  "vietnamese" real,
  "other_asian" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Indian population?`:
```sql
                SELECT MAX("indian") FROM "us_states_by_asian_americans_population";
```
## Task
Generate a SQL query to answer the following question:
`What is Australia's role in the UN operation Unama?`

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

CREATE TABLE "table1_10121127_1" (
  "un_operation_name" text,
  "un_operation_title" text,
  "location" text,
  "dates_of_australian_involvement" text,
  "number_of_australians_involved" text,
  "australian_role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Australia's role in the UN operation Unama?`:
```sql
                SELECT "australian_role" FROM "table1_10121127_1" WHERE "un_operation_name"='UNAMA';
```
## Task
Generate a SQL query to answer the following question:
`What is the UN operation title with the UN operation name, Uncok?`

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

CREATE TABLE "table1_10121127_1" (
  "un_operation_name" text,
  "un_operation_title" text,
  "location" text,
  "dates_of_australian_involvement" text,
  "number_of_australians_involved" text,
  "australian_role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the UN operation title with the UN operation name, Uncok?`:
```sql
                SELECT "un_operation_title" FROM "table1_10121127_1" WHERE "un_operation_name"='UNCOK';
```
## Task
Generate a SQL query to answer the following question:
`How many Australians were in the UN commission on Korea?`

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

CREATE TABLE "table1_10121127_1" (
  "un_operation_name" text,
  "un_operation_title" text,
  "location" text,
  "dates_of_australian_involvement" text,
  "number_of_australians_involved" text,
  "australian_role" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Australians were in the UN commission on Korea?`:
```sql
                SELECT COUNT("number_of_australians_involved") FROM "table1_10121127_1" WHERE "un_operation_title"='UN Commission on Korea';
```
## Task
Generate a SQL query to answer the following question:
`When was it where 65 Australians were involved in the UN?`

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

CREATE TABLE "table1_10121127_1" (
  "un_operation_name" text,
  "un_operation_title" text,
  "location" text,
  "dates_of_australian_involvement" text,
  "number_of_australians_involved" text,
  "australian_role" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was it where 65 Australians were involved in the UN?`:
```sql
                SELECT "dates_of_australian_involvement" FROM "table1_10121127_1" WHERE "number_of_australians_involved"='65';
```
## Task
Generate a SQL query to answer the following question:
`What year is the season with the 10.73 million views?`

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

CREATE TABLE "u_s_broadcast_and_ratings" (
  "season" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is the season with the 10.73 million views?`:
```sql
                SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "viewers_millions"='10.73';
```
## Task
Generate a SQL query to answer the following question:
`What is the season year where the rank is 39?`

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

CREATE TABLE "u_s_broadcast_and_ratings" (
  "season" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season year where the rank is 39?`:
```sql
                SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "rank"='39';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of season premieres were 10.17 people watched?`

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

CREATE TABLE "u_s_broadcast_and_ratings" (
  "season" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of season premieres were 10.17 people watched?`:
```sql
                SELECT COUNT("season_premiere") FROM "u_s_broadcast_and_ratings" WHERE "viewers_millions"='10.17';
```
## Task
Generate a SQL query to answer the following question:
`What is the year of the season that was 12?`

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

CREATE TABLE "u_s_broadcast_and_ratings" (
  "season" real,
  "timeslot_et" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the season that was 12?`:
```sql
                SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "season"=12;
```
## Task
Generate a SQL query to answer the following question:
`In 2012 what was the average finish?`

### 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_5" 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 `In 2012 what was the average finish?`:
```sql
                SELECT "avg_finish" FROM "nascar_sprint_cup_series" WHERE "year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`How many wins happened in 1983?`

### 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_5" 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 happened in 1983?`:
```sql
                SELECT MIN("wins") FROM "nascar_sprint_cup_series" WHERE "year"=1983;
```
## Task
Generate a SQL query to answer the following question:
`How many top tens had an average start of 29.4?`

### 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_5" 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 top tens had an average start of 29.4?`:
```sql
                SELECT COUNT("top_10") FROM "nascar_sprint_cup_series" WHERE "avg_start"='29.4';
```
## Task
Generate a SQL query to answer the following question:
`How many poles had an average finish of 19.1?`

### 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_5" 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 poles had an average finish of 19.1?`:
```sql
                SELECT MAX("poles") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='19.1';
```
## Task
Generate a SQL query to answer the following question:
`How many starts did Hendrick motorsports 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_5" 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 starts did Hendrick motorsports have?`:
```sql
                SELECT MIN("starts") FROM "nascar_sprint_cup_series" WHERE "team_s"='Hendrick Motorsports';
```
## Task
Generate a SQL query to answer the following question:
`NHL players are all centre in Florida panthers.`

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

CREATE TABLE "round_ten" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `NHL players are all centre in Florida panthers.`:
```sql
                SELECT "player" FROM "round_ten" WHERE "position"='Centre' AND "nhl_team"='Florida Panthers';
```
## Task
Generate a SQL query to answer the following question:
`NHL team player San Jose Sharks is United States nationally.`

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

CREATE TABLE "round_ten" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `NHL team player San Jose Sharks is United States nationally.`:
```sql
                SELECT "player" FROM "round_ten" WHERE "nhl_team"='San Jose Sharks' AND "nationality"='United States';
```
## Task
Generate a SQL query to answer the following question:
`All players are position mark polak.`

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

CREATE TABLE "round_ten" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `All players are position mark polak.`:
```sql
                SELECT "position" FROM "round_ten" WHERE "player"='Mark Polak';
```
## Task
Generate a SQL query to answer the following question:
`Position in nhl team centre are all smaller pick than 243.0`

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

CREATE TABLE "round_ten" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Position in nhl team centre are all smaller pick than 243.0`:
```sql
                SELECT "nhl_team" FROM "round_ten" WHERE "position"='Centre' AND "pick"<243.0;
```
## Task
Generate a SQL query to answer the following question:
`What college/junior/club teams do the players from the St. Louis Blues come from?`

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

CREATE TABLE "round_eleven" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college/junior/club teams do the players from the St. Louis Blues come from?`:
```sql
                SELECT "college_junior_club_team" FROM "round_eleven" WHERE "nhl_team"='St. Louis Blues';
```
## Task
Generate a SQL query to answer the following question:
`What teams do the players from TPS (Finland) play for?`

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

CREATE TABLE "round_eleven" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams do the players from TPS (Finland) play for?`:
```sql
                SELECT "nhl_team" FROM "round_eleven" WHERE "college_junior_club_team"='TPS (Finland)';
```
## Task
Generate a SQL query to answer the following question:
`What high school team did Doug Nolan play for?`

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

CREATE TABLE "round_eleven" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What high school team did Doug Nolan play for?`:
```sql
                SELECT "college_junior_club_team" FROM "round_eleven" WHERE "player"='Doug Nolan';
```
## Task
Generate a SQL query to answer the following question:
`What club team is Per Gustafsson play for?`

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

CREATE TABLE "round_eleven" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club team is Per Gustafsson play for?`:
```sql
                SELECT "college_junior_club_team" FROM "round_eleven" WHERE "player"='Per Gustafsson';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of Shayne Wright?`

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

CREATE TABLE "round_eleven" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of Shayne Wright?`:
```sql
                SELECT "nationality" FROM "round_eleven" WHERE "player"='Shayne Wright';
```
## Task
Generate a SQL query to answer the following question:
`How many votes did Southern England cast whilst Northern Ireland cast 3?`

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

CREATE TABLE "voting" (
  "song" text,
  "mobiles" real,
  "northern_ireland" real,
  "northern_england" real,
  "scotland" real,
  "southern_england" real,
  "wales" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Southern England cast whilst Northern Ireland cast 3?`:
```sql
                SELECT "southern_england" FROM "voting" WHERE "northern_ireland"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest number of votes Scotland cast?`

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

CREATE TABLE "voting" (
  "song" text,
  "mobiles" real,
  "northern_ireland" real,
  "northern_england" real,
  "scotland" real,
  "southern_england" real,
  "wales" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest number of votes Scotland cast?`:
```sql
                SELECT MIN("scotland") FROM "voting";
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of votes if Scotland cast 35?`

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

CREATE TABLE "voting" (
  "song" text,
  "mobiles" real,
  "northern_ireland" real,
  "northern_england" real,
  "scotland" real,
  "southern_england" real,
  "wales" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of votes if Scotland cast 35?`:
```sql
                SELECT COUNT("scotland") FROM "voting" WHERE "total"=35;
```
## Task
Generate a SQL query to answer the following question:
`How many votes did Northern Ireland cast if the total was 35?`

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

CREATE TABLE "voting" (
  "song" text,
  "mobiles" real,
  "northern_ireland" real,
  "northern_england" real,
  "scotland" real,
  "southern_england" real,
  "wales" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Northern Ireland cast if the total was 35?`:
```sql
                SELECT "northern_ireland" FROM "voting" WHERE "total"=35;
```
## Task
Generate a SQL query to answer the following question:
`How many votes did Wales cast when Northern England cast 6?`

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

CREATE TABLE "voting" (
  "song" text,
  "mobiles" real,
  "northern_ireland" real,
  "northern_england" real,
  "scotland" real,
  "southern_england" real,
  "wales" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Wales cast when Northern England cast 6?`:
```sql
                SELECT MIN("wales") FROM "voting" WHERE "northern_england"=6;
```
## Task
Generate a SQL query to answer the following question:
`What teams had 9 in the top 5 and 1 wins?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" 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 `What teams had 9 in the top 5 and 1 wins?`:
```sql
                SELECT "team_s" FROM "nascar_nationwide_series" WHERE "top_5"=9 AND "wins"=1;
```
## Task
Generate a SQL query to answer the following question:
`What teams did the player vadim sharifijanov play for?`

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

CREATE TABLE "round_one" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams did the player vadim sharifijanov play for?`:
```sql
                SELECT "college_junior_club_team" FROM "round_one" WHERE "player"='Vadim Sharifijanov';
```
## Task
Generate a SQL query to answer the following question:
`What positions do the hartford whalers nhl team have?`

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

CREATE TABLE "round_one" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What positions do the hartford whalers nhl team have?`:
```sql
                SELECT "position" FROM "round_one" WHERE "nhl_team"='Hartford Whalers';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest pick for the player, brett lindros?`

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

CREATE TABLE "round_one" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest pick for the player, brett lindros?`:
```sql
                SELECT MIN("pick") FROM "round_one" WHERE "player"='Brett Lindros';
```
## Task
Generate a SQL query to answer the following question:
`What positions does the college/junior/club team, molot perm (russia) have?`

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

CREATE TABLE "round_one" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What positions does the college/junior/club team, molot perm (russia) have?`:
```sql
                SELECT "position" FROM "round_one" WHERE "college_junior_club_team"='Molot Perm (Russia)';
```
## Task
Generate a SQL query to answer the following question:
`The nhl team new york islanders is what nationality?`

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

CREATE TABLE "round_one" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `The nhl team new york islanders is what nationality?`:
```sql
                SELECT "nationality" FROM "round_one" WHERE "nhl_team"='New York Islanders';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the vacator for district Louisiana 1st?`

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

CREATE TABLE "table1_1013168_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 `What is the name of the vacator for district Louisiana 1st?`:
```sql
                SELECT "vacator" FROM "table1_1013168_3" WHERE "district"='Louisiana 1st';
```
## Task
Generate a SQL query to answer the following question:
`What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8`

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

CREATE TABLE "critical_temperature_t_c_crystal_structu" (
  "formula" text,
  "notation" text,
  "t_c_k" real,
  "no_of_cu_o_planes_in_unit_cell" real,
  "crystal_structure" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8`:
```sql
                SELECT "notation" FROM "critical_temperature_t_c_crystal_structu" WHERE "crystal_structure"='Tetragonal' AND "formula"='Bi 2 Sr 2 CaCu 2 O 8';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the formula tl 2 ba 2 cuo 6?`

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

CREATE TABLE "critical_temperature_t_c_crystal_structu" (
  "formula" text,
  "notation" text,
  "t_c_k" real,
  "no_of_cu_o_planes_in_unit_cell" real,
  "crystal_structure" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the formula tl 2 ba 2 cuo 6?`:
```sql
                SELECT "no_of_cu_o_planes_in_unit_cell" FROM "critical_temperature_t_c_crystal_structu" WHERE "formula"='Tl 2 Ba 2 CuO 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the crystal structure for the formula yba 2 cu 3 o 7?`

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

CREATE TABLE "critical_temperature_t_c_crystal_structu" (
  "formula" text,
  "notation" text,
  "t_c_k" real,
  "no_of_cu_o_planes_in_unit_cell" real,
  "crystal_structure" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the crystal structure for the formula yba 2 cu 3 o 7?`:
```sql
                SELECT "crystal_structure" FROM "critical_temperature_t_c_crystal_structu" WHERE "formula"='YBa 2 Cu 3 O 7';
```
## Task
Generate a SQL query to answer the following question:
`What is the number for t c (k) when the notation is tl-2212?`

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

CREATE TABLE "critical_temperature_t_c_crystal_structu" (
  "formula" text,
  "notation" text,
  "t_c_k" real,
  "no_of_cu_o_planes_in_unit_cell" real,
  "crystal_structure" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for t c (k) when the notation is tl-2212?`:
```sql
                SELECT COUNT("t_c_k") FROM "critical_temperature_t_c_crystal_structu" WHERE "notation"='Tl-2212';
```
## Task
Generate a SQL query to answer the following question:
`How many 2010 estimations have been done in the city of Cremona?`

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

CREATE TABLE "references" (
  "num" real,
  "city" text,
  "1981_census" real,
  "1991_census" real,
  "2001_census" real,
  "2010_est" real,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 2010 estimations have been done in the city of Cremona?`:
```sql
                SELECT COUNT("2010_est") FROM "references" WHERE "city"='Cremona';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2001 census of the region of Abruzzo where the 1871 census is bigger than 51092.0?`

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

CREATE TABLE "references" (
  "num" real,
  "city" text,
  "1981_census" real,
  "1991_census" real,
  "2001_census" real,
  "2010_est" real,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2001 census of the region of Abruzzo where the 1871 census is bigger than 51092.0?`:
```sql
                SELECT MIN("2001_census") FROM "references" WHERE "region"='Abruzzo' AND "1981_census">51092.0;
```
## Task
Generate a SQL query to answer the following question:
`What's the 1991 census of the city of Carpi?`

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

CREATE TABLE "references" (
  "num" real,
  "city" text,
  "1981_census" real,
  "1991_census" real,
  "2001_census" real,
  "2010_est" real,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1991 census of the city of Carpi?`:
```sql
                SELECT MAX("1991_census") FROM "references" WHERE "city"='Carpi';
```
## Task
Generate a SQL query to answer the following question:
`How many 2001 censuses are there on number 13?`

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

CREATE TABLE "references" (
  "num" real,
  "city" text,
  "1981_census" real,
  "1991_census" real,
  "2001_census" real,
  "2010_est" real,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 2001 censuses are there on number 13?`:
```sql
                SELECT COUNT("2001_census") FROM "references" WHERE "num"=13;
```
## Task
Generate a SQL query to answer the following question:
`What's the 1981 census of Livorno?`

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

CREATE TABLE "references" (
  "num" real,
  "city" text,
  "1981_census" real,
  "1991_census" real,
  "2001_census" real,
  "2010_est" real,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1981 census of Livorno?`:
```sql
                SELECT "1981_census" FROM "references" WHERE "city"='Livorno';
```
## Task
Generate a SQL query to answer the following question:
`Which NHL team has player Mike Loach?`

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

CREATE TABLE "round_eight" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NHL team has player Mike Loach?`:
```sql
                SELECT "nhl_team" FROM "round_eight" WHERE "player"='Mike Loach';
```
## Task
Generate a SQL query to answer the following question:
`What is the NHL team that has Peter Strom?`

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

CREATE TABLE "round_eight" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NHL team that has Peter Strom?`:
```sql
                SELECT "nhl_team" FROM "round_eight" WHERE "player"='Peter Strom';
```
## Task
Generate a SQL query to answer the following question:
`What team is Keith Mccambridge on?`

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

CREATE TABLE "round_eight" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is Keith Mccambridge on?`:
```sql
                SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Keith McCambridge';
```
## Task
Generate a SQL query to answer the following question:
`How many nationalities are the pick 193?`

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

CREATE TABLE "round_eight" (
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many nationalities are the pick 193?`:
```sql
                SELECT COUNT("nationality") FROM "round_eight" WHERE "pick"=193;
```
## Task
Generate a SQL query to answer the following question:
`Who was the succesor that was formally installed on November 8, 1978?`

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

CREATE TABLE "table1_1013168_2" (
  "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 was the succesor that was formally installed on November 8, 1978?`:
```sql
                SELECT "successor" FROM "table1_1013168_2" WHERE "date_of_successors_formal_installation"='November 8, 1978';
```
## Task
Generate a SQL query to answer the following question:
`How many songs received a 10 from Goodman and were rated by Tonioli?`

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

CREATE TABLE "table1_1014319_1" (
  "week" real,
  "dance_song" text,
  "horwood" text,
  "goodman" text,
  "dixon" text,
  "tonioli" text,
  "total" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many songs received a 10 from Goodman and were rated by Tonioli?`:
```sql
                SELECT COUNT("tonioli") FROM "table1_1014319_1" WHERE "goodman"='10';
```
## Task
Generate a SQL query to answer the following question:
`What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31?`

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

CREATE TABLE "table1_1014319_1" (
  "week" real,
  "dance_song" text,
  "horwood" text,
  "goodman" text,
  "dixon" text,
  "tonioli" text,
  "total" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31?`:
```sql
                SELECT "goodman" FROM "table1_1014319_1" WHERE "total"='31' AND "horwood"='7' AND "result"='Safe';
```
## Task
Generate a SQL query to answer the following question:
`What score did Dixon give to the song "samba / young hearts run free", which was in second place?`

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

CREATE TABLE "table1_1014319_1" (
  "week" real,
  "dance_song" text,
  "horwood" text,
  "goodman" text,
  "dixon" text,
  "tonioli" text,
  "total" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score did Dixon give to the song "samba / young hearts run free", which was in second place?`:
```sql
                SELECT "dixon" FROM "table1_1014319_1" WHERE "dance_song"='Samba / Young Hearts Run Free' AND "result"='Second place';
```
## Task
Generate a SQL query to answer the following question:
`How many scores did Goodman give to "samba / young hearts run free", which was in second place?`

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

CREATE TABLE "table1_1014319_1" (
  "week" real,
  "dance_song" text,
  "horwood" text,
  "goodman" text,
  "dixon" text,
  "tonioli" text,
  "total" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many scores did Goodman give to "samba / young hearts run free", which was in second place?`:
```sql
                SELECT COUNT("goodman") FROM "table1_1014319_1" WHERE "result"='Second place' AND "dance_song"='Samba / Young Hearts Run Free';
```
## Task
Generate a SQL query to answer the following question:
`What year was number 7 built?`

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

CREATE TABLE "current_fleet_details" (
  "class" text,
  "operator" text,
  "no_built" real,
  "year_built" text,
  "cars_per_set" real,
  "unit_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was number 7 built?`:
```sql
                SELECT "year_built" FROM "current_fleet_details" WHERE "no_built"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is we two when the case/suffix is loc.?`

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

CREATE TABLE "nominal_morphology" (
  "case_suffix" text,
  "we_two" text,
  "you_and_i" text,
  "you_two" text,
  "them_two_the_two" text,
  "who_two" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is we two when the case/suffix is loc.?`:
```sql
                SELECT "we_two" FROM "nominal_morphology" WHERE "case_suffix"='loc.';
```
## Task
Generate a SQL query to answer the following question:
`What is them two (the two) when we two is ngalbelpa?`

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

CREATE TABLE "nominal_morphology" (
  "case_suffix" text,
  "we_two" text,
  "you_and_i" text,
  "you_two" text,
  "them_two_the_two" text,
  "who_two" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is them two (the two) when we two is ngalbelpa?`:
```sql
                SELECT "them_two_the_two" FROM "nominal_morphology" WHERE "we_two"='ngalbelpa';
```
## Task
Generate a SQL query to answer the following question:
`What is them two (the two) when you and i is ngœbalngu?`

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

CREATE TABLE "nominal_morphology" (
  "case_suffix" text,
  "we_two" text,
  "you_and_i" text,
  "you_two" text,
  "them_two_the_two" text,
  "who_two" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is them two (the two) when you and i is ngœbalngu?`:
```sql
                SELECT "them_two_the_two" FROM "nominal_morphology" WHERE "you_and_i"='ngœbalngu';
```
## Task
Generate a SQL query to answer the following question:
`What is who-two where you and i is ngœban?`

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

CREATE TABLE "nominal_morphology" (
  "case_suffix" text,
  "we_two" text,
  "you_and_i" text,
  "you_two" text,
  "them_two_the_two" text,
  "who_two" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is who-two where you and i is ngœban?`:
```sql
                SELECT "who_two" FROM "nominal_morphology" WHERE "you_and_i"='ngœban';
```
## Task
Generate a SQL query to answer the following question:
`What is we two where you two is ngipen?`

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

CREATE TABLE "nominal_morphology" (
  "case_suffix" text,
  "we_two" text,
  "you_and_i" text,
  "you_two" text,
  "them_two_the_two" text,
  "who_two" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is we two where you two is ngipen?`:
```sql
                SELECT "we_two" FROM "nominal_morphology" WHERE "you_two"='ngipen';
```
## Task
Generate a SQL query to answer the following question:
`What is who-two when you two is ngipelngu?`

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

CREATE TABLE "nominal_morphology" (
  "case_suffix" text,
  "we_two" text,
  "you_and_i" text,
  "you_two" text,
  "them_two_the_two" text,
  "who_two" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is who-two when you two is ngipelngu?`:
```sql
                SELECT "who_two" FROM "nominal_morphology" WHERE "you_two"='ngipelngu';
```