cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Where is the home venue of the team founded in 1993?`

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

CREATE TABLE "current_clubs" (
  "club" text,
  "location" text,
  "home_venue" text,
  "capacity" text,
  "founded" real,
  "years_active" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the home venue of the team founded in 1993?`:
```sql
                SELECT "home_venue" FROM "current_clubs" WHERE "founded"=1993;
```
## Task
Generate a SQL query to answer the following question:
`How long has the team who owns North Shore Events Centre Vector Arena been active?`

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

CREATE TABLE "current_clubs" (
  "club" text,
  "location" text,
  "home_venue" text,
  "capacity" text,
  "founded" real,
  "years_active" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long has the team who owns North Shore Events Centre Vector Arena been active?`:
```sql
                SELECT "years_active" FROM "current_clubs" WHERE "home_venue"='North Shore Events Centre Vector Arena';
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity for the Home Venue of the New Zealand Breakers club?`

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

CREATE TABLE "current_clubs" (
  "club" text,
  "location" text,
  "home_venue" text,
  "capacity" text,
  "founded" real,
  "years_active" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity for the Home Venue of the New Zealand Breakers club?`:
```sql
                SELECT "capacity" FROM "current_clubs" WHERE "club"='New Zealand Breakers';
```
## Task
Generate a SQL query to answer the following question:
`Who directed "From Russia With Love"?`

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

CREATE TABLE "table1_28334498_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "From Russia With Love"?`:
```sql
                SELECT "directed_by" FROM "table1_28334498_3" WHERE "title"='\"From Russia With Love\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were directed by Jeff Melman and 1.21million viewers?`

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

CREATE TABLE "table1_28334498_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were directed by Jeff Melman and 1.21million viewers?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_28334498_3" WHERE "directed_by"='Jeff Melman' AND "u_s_viewers_millions"='1.21';
```
## Task
Generate a SQL query to answer the following question:
`What air date had 1.01 million U.S. viewers?`

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

CREATE TABLE "table1_28334498_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What air date had 1.01 million U.S. viewers?`:
```sql
                SELECT "original_air_date" FROM "table1_28334498_3" WHERE "u_s_viewers_millions"='1.01';
```
## Task
Generate a SQL query to answer the following question:
`Name the aircraft type for  furstenau/vorden`

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

CREATE TABLE "table1_28342423_1" (
  "parent_unit" text,
  "geschwader_base" text,
  "unit_gruppe_staffel" text,
  "aircraft_type" text,
  "commanding_officer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the aircraft type for  furstenau/vorden`:
```sql
                SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "geschwader_base"='Furstenau/Vorden';
```
## Task
Generate a SQL query to answer the following question:
`Name the parent unit for ludwig franzisket`

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

CREATE TABLE "table1_28342423_1" (
  "parent_unit" text,
  "geschwader_base" text,
  "unit_gruppe_staffel" text,
  "aircraft_type" text,
  "commanding_officer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the parent unit for ludwig franzisket`:
```sql
                SELECT "parent_unit" FROM "table1_28342423_1" WHERE "commanding_officer"='Ludwig Franzisket';
```
## Task
Generate a SQL query to answer the following question:
`Name the aircraft type for jagdgeschwader 6`

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

CREATE TABLE "table1_28342423_1" (
  "parent_unit" text,
  "geschwader_base" text,
  "unit_gruppe_staffel" text,
  "aircraft_type" text,
  "commanding_officer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the aircraft type for jagdgeschwader 6`:
```sql
                SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "parent_unit"='Jagdgeschwader 6';
```
## Task
Generate a SQL query to answer the following question:
`Name the aircraft type for  jagdgeschwader 26`

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

CREATE TABLE "table1_28342423_1" (
  "parent_unit" text,
  "geschwader_base" text,
  "unit_gruppe_staffel" text,
  "aircraft_type" text,
  "commanding_officer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the aircraft type for  jagdgeschwader 26`:
```sql
                SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "parent_unit"='Jagdgeschwader 26';
```
## Task
Generate a SQL query to answer the following question:
`Name the parent unit for josef priller`

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

CREATE TABLE "table1_28342423_1" (
  "parent_unit" text,
  "geschwader_base" text,
  "unit_gruppe_staffel" text,
  "aircraft_type" text,
  "commanding_officer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the parent unit for josef priller`:
```sql
                SELECT "parent_unit" FROM "table1_28342423_1" WHERE "commanding_officer"='Josef Priller';
```
## Task
Generate a SQL query to answer the following question:
`Name who directed the episode  "bro-lo el cuñado"`

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

CREATE TABLE "table1_28348757_3" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name who directed the episode  "bro-lo el cuñado"`:
```sql
                SELECT "directed_by" FROM "table1_28348757_3" WHERE "title"='\"Bro-Lo El Cuñado\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the production code for number 8`

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

CREATE TABLE "table1_28348757_3" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the production code for number 8`:
```sql
                SELECT "production_code" FROM "table1_28348757_3" WHERE "num"=8;
```
## Task
Generate a SQL query to answer the following question:
`Name the least number for xle02007`

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

CREATE TABLE "table1_28348757_3" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least number for xle02007`:
```sql
                SELECT MIN("no") FROM "table1_28348757_3" WHERE "production_code"='XLE02007';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with the code xle05012?`

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

CREATE TABLE "table1_28348757_6" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with the code xle05012?`:
```sql
                SELECT "written_by" FROM "table1_28348757_6" WHERE "production_code"='XLE05012';
```
## Task
Generate a SQL query to answer the following question:
`what are the numbers of episodes that had 0.79 million US views?`

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

CREATE TABLE "table1_28348757_6" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the numbers of episodes that had 0.79 million US views?`:
```sql
                SELECT "num" FROM "table1_28348757_6" WHERE "u_s_viewers_million"='0.79';
```
## Task
Generate a SQL query to answer the following question:
`What female fenced with a saber on the team that had an average fencer rank of 3.5?`

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

CREATE TABLE "mixed_team_event" (
  "team" text,
  "female_p_e" text,
  "male_p_e" text,
  "female_foil" text,
  "male_foil" text,
  "female_saber" text,
  "male_saber" text,
  "average_fencers_rank" text,
  "initial_team_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What female fenced with a saber on the team that had an average fencer rank of 3.5?`:
```sql
                SELECT "female_saber" FROM "mixed_team_event" WHERE "average_fencers_rank"='3.5';
```
## Task
Generate a SQL query to answer the following question:
`What team had an average fencer rank of 1.33?`

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

CREATE TABLE "mixed_team_event" (
  "team" text,
  "female_p_e" text,
  "male_p_e" text,
  "female_foil" text,
  "male_foil" text,
  "female_saber" text,
  "male_saber" text,
  "average_fencers_rank" text,
  "initial_team_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team had an average fencer rank of 1.33?`:
```sql
                SELECT "team" FROM "mixed_team_event" WHERE "average_fencers_rank"='1.33';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the corporation that incorporated on october 15, 1955?`

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

CREATE TABLE "list" (
  "name" text,
  "corporate_name" text,
  "regional_district" text,
  "incorporation_date_city" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" text,
  "area_km" text,
  "population_density" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the corporation that incorporated on october 15, 1955?`:
```sql
                SELECT "corporate_name" FROM "list" WHERE "incorporation_date_city"='October 15, 1955';
```
## Task
Generate a SQL query to answer the following question:
`What is the area of the corporation named the powell river, the corporation of the city of?`

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

CREATE TABLE "list" (
  "name" text,
  "corporate_name" text,
  "regional_district" text,
  "incorporation_date_city" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" text,
  "area_km" text,
  "population_density" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area of the corporation named the powell river, the corporation of the city of?`:
```sql
                SELECT "area_km" FROM "list" WHERE "corporate_name"='Powell River, The Corporation of the City of';
```
## Task
Generate a SQL query to answer the following question:
`How many Area's are there for Armstrong?`

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

CREATE TABLE "list" (
  "name" text,
  "corporate_name" text,
  "regional_district" text,
  "incorporation_date_city" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" text,
  "area_km" text,
  "population_density" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Area's are there for Armstrong?`:
```sql
                SELECT COUNT("area_km") FROM "list" WHERE "name"='Armstrong';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the city which incorporated on july 16, 1860?`

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

CREATE TABLE "list" (
  "name" text,
  "corporate_name" text,
  "regional_district" text,
  "incorporation_date_city" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" text,
  "area_km" text,
  "population_density" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the city which incorporated on july 16, 1860?`:
```sql
                SELECT "name" FROM "list" WHERE "incorporation_date_city"='July 16, 1860';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the corporation with an area of 15.63 km?`

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

CREATE TABLE "list" (
  "name" text,
  "corporate_name" text,
  "regional_district" text,
  "incorporation_date_city" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" text,
  "area_km" text,
  "population_density" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the corporation with an area of 15.63 km?`:
```sql
                SELECT "corporate_name" FROM "list" WHERE "area_km"='15.63';
```
## Task
Generate a SQL query to answer the following question:
`How many areas are there for the corporation named fort st. john, city of?`

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

CREATE TABLE "list" (
  "name" text,
  "corporate_name" text,
  "regional_district" text,
  "incorporation_date_city" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" text,
  "area_km" text,
  "population_density" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many areas are there for the corporation named fort st. john, city of?`:
```sql
                SELECT COUNT("area_km") FROM "list" WHERE "corporate_name"='Fort St. John, City of';
```
## Task
Generate a SQL query to answer the following question:
`What was Emma Bunton's score for the performance with a total score of 22?`

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

CREATE TABLE "table1_28352386_1" (
  "week" real,
  "portraying" text,
  "song" text,
  "julian_clary" text,
  "emma_bunton" text,
  "guest_judge" text,
  "bonus_points" text,
  "total" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Emma Bunton's score for the performance with a total score of 22?`:
```sql
                SELECT "emma_bunton" FROM "table1_28352386_1" WHERE "total"='22';
```
## Task
Generate a SQL query to answer the following question:
`What was the total score when the guest judge gave a score of 10?`

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

CREATE TABLE "table1_28352386_1" (
  "week" real,
  "portraying" text,
  "song" text,
  "julian_clary" text,
  "emma_bunton" text,
  "guest_judge" text,
  "bonus_points" text,
  "total" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total score when the guest judge gave a score of 10?`:
```sql
                SELECT "total" FROM "table1_28352386_1" WHERE "guest_judge"='10';
```
## Task
Generate a SQL query to answer the following question:
`how many millions of north american viewers had the episode called "smother"? `

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

CREATE TABLE "table1_28358487_3" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many millions of north american viewers had the episode called "smother"? `:
```sql
                SELECT "u_s_viewers_million" FROM "table1_28358487_3" WHERE "title"='\"Smother\"';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of  the episode in the season whose production code is 101? `

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

CREATE TABLE "table1_28358487_3" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of  the episode in the season whose production code is 101? `:
```sql
                SELECT COUNT("no") FROM "table1_28358487_3" WHERE "production_code"=101;
```
## Task
Generate a SQL query to answer the following question:
`During what conference is North Carolina listed as the tournament winner?`

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

CREATE TABLE "conference_winners_and_tournaments" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `During what conference is North Carolina listed as the tournament winner?`:
```sql
                SELECT "conference" FROM "conference_winners_and_tournaments" WHERE "tournament_winner"='North Carolina';
```
## Task
Generate a SQL query to answer the following question:
`During the Big Seven Conference which team was the regular season winner?`

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

CREATE TABLE "conference_winners_and_tournaments" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the Big Seven Conference which team was the regular season winner?`:
```sql
                SELECT "regular_season_winner" FROM "conference_winners_and_tournaments" WHERE "conference"='Big Seven Conference';
```
## Task
Generate a SQL query to answer the following question:
`What tournament venue is listed during the Missouri Valley Conference?`

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

CREATE TABLE "conference_winners_and_tournaments" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament venue is listed during the Missouri Valley Conference?`:
```sql
                SELECT "tournament_venue_city" FROM "conference_winners_and_tournaments" WHERE "conference"='Missouri Valley Conference';
```
## Task
Generate a SQL query to answer the following question:
`During the Mid-American Conference who is listed as the tournament winner?`

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

CREATE TABLE "conference_winners_and_tournaments" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the Mid-American Conference who is listed as the tournament winner?`:
```sql
                SELECT "tournament_winner" FROM "conference_winners_and_tournaments" WHERE "conference"='Mid-American Conference';
```
## Task
Generate a SQL query to answer the following question:
`When Yale is listed as the regular season winner, what tournament venue is given?`

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

CREATE TABLE "conference_winners_and_tournaments" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Yale is listed as the regular season winner, what tournament venue is given?`:
```sql
                SELECT "tournament_venue_city" FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Yale';
```
## Task
Generate a SQL query to answer the following question:
`How many entries for conference tournament are listed when Texas Western is the regular season winner?`

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

CREATE TABLE "conference_winners_and_tournaments" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries for conference tournament are listed when Texas Western is the regular season winner?`:
```sql
                SELECT COUNT("conference_tournament") FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Texas Western';
```
## Task
Generate a SQL query to answer the following question:
`Which team drafted the player from the HC Lada Togliatti (Russia)?`

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

CREATE TABLE "round_five" (
  "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 team drafted the player from the HC Lada Togliatti (Russia)?`:
```sql
                SELECT "nhl_team" FROM "round_five" WHERE "college_junior_club_team"='HC Lada Togliatti (Russia)';
```
## Task
Generate a SQL query to answer the following question:
`who is the person that plays left wing and is from canada that plays on the st. louis blues`

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

CREATE TABLE "round_three" (
  "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 `who is the person that plays left wing and is from canada that plays on the st. louis blues`:
```sql
                SELECT "player" FROM "round_three" WHERE "position"='Left Wing' AND "nationality"='Canada' AND "nhl_team"='St. Louis Blues';
```
## Task
Generate a SQL query to answer the following question:
`what is the overall number of chosen ideas where the person is scott parker`

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

CREATE TABLE "round_three" (
  "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 overall number of chosen ideas where the person is scott parker`:
```sql
                SELECT COUNT("pick") FROM "round_three" WHERE "player"='Scott Parker';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of the chosen club where the hc dukla trenčín (slovakia) is from`

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

CREATE TABLE "round_three" (
  "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 number of the chosen club where the hc dukla trenčín (slovakia) is from`:
```sql
                SELECT COUNT("pick") FROM "round_three" WHERE "college_junior_club_team"='HC Dukla Trenčín (Slovakia)';
```
## Task
Generate a SQL query to answer the following question:
`How many players were drafted by the Edmonton Oilers?`

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

CREATE TABLE "round_two" (
  "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 players were drafted by the Edmonton Oilers?`:
```sql
                SELECT COUNT("player") FROM "round_two" WHERE "nhl_team"='Edmonton Oilers';
```
## Task
Generate a SQL query to answer the following question:
`Who was drafted by the Washington Capitals?`

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

CREATE TABLE "round_two" (
  "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 `Who was drafted by the Washington Capitals?`:
```sql
                SELECT "player" FROM "round_two" WHERE "nhl_team"='Washington Capitals';
```
## Task
Generate a SQL query to answer the following question:
`Which team drafted Travis Brigley?`

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

CREATE TABLE "round_two" (
  "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 team drafted Travis Brigley?`:
```sql
                SELECT "nhl_team" FROM "round_two" WHERE "player"='Travis Brigley';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum pick of a centre from the Czech Republic?`

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

CREATE TABLE "round_two" (
  "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 minimum pick of a centre from the Czech Republic?`:
```sql
                SELECT MIN("pick") FROM "round_two" WHERE "position"='Centre' AND "nationality"='Czech Republic';
```
## Task
Generate a SQL query to answer the following question:
`Which player made exactly 223 passes?`

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

CREATE TABLE "table1_28461589_2" (
  "nr" real,
  "player" text,
  "games_played" real,
  "starting" real,
  "sub" real,
  "subbed" real,
  "mins_played" real,
  "goals" real,
  "pens_against" real,
  "pens_for" real,
  "fouls_suff" real,
  "fouls_comm" real,
  "yellow_c" real,
  "red_c" real,
  "assists" real,
  "passes" real,
  "good_passes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player made exactly 223 passes?`:
```sql
                SELECT "player" FROM "table1_28461589_2" WHERE "passes"=223;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest minutes played for the player with exactly 638 good passes?`

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

CREATE TABLE "table1_28461589_2" (
  "nr" real,
  "player" text,
  "games_played" real,
  "starting" real,
  "sub" real,
  "subbed" real,
  "mins_played" real,
  "goals" real,
  "pens_against" real,
  "pens_for" real,
  "fouls_suff" real,
  "fouls_comm" real,
  "yellow_c" real,
  "red_c" real,
  "assists" real,
  "passes" real,
  "good_passes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest minutes played for the player with exactly 638 good passes?`:
```sql
                SELECT MIN("mins_played") FROM "table1_28461589_2" WHERE "good_passes"=638;
```
## Task
Generate a SQL query to answer the following question:
`What is the most number of assists for players with exactly 25 games played?`

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

CREATE TABLE "table1_28461589_2" (
  "nr" real,
  "player" text,
  "games_played" real,
  "starting" real,
  "sub" real,
  "subbed" real,
  "mins_played" real,
  "goals" real,
  "pens_against" real,
  "pens_for" real,
  "fouls_suff" real,
  "fouls_comm" real,
  "yellow_c" real,
  "red_c" real,
  "assists" real,
  "passes" real,
  "good_passes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of assists for players with exactly 25 games played?`:
```sql
                SELECT MAX("assists") FROM "table1_28461589_2" WHERE "games_played"=25;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of passes for players starting exactly 34 games?`

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

CREATE TABLE "table1_28461589_2" (
  "nr" real,
  "player" text,
  "games_played" real,
  "starting" real,
  "sub" real,
  "subbed" real,
  "mins_played" real,
  "goals" real,
  "pens_against" real,
  "pens_for" real,
  "fouls_suff" real,
  "fouls_comm" real,
  "yellow_c" real,
  "red_c" real,
  "assists" real,
  "passes" real,
  "good_passes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of passes for players starting exactly 34 games?`:
```sql
                SELECT MAX("passes") FROM "table1_28461589_2" WHERE "starting"=34;
```
## Task
Generate a SQL query to answer the following question:
`When καθ are the letters what is the nickname?`

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

CREATE TABLE "national_panhellenic_conference_npc" (
  "letters" text,
  "organization" text,
  "nickname" text,
  "founding_date" text,
  "founding_university" text,
  "type" text,
  "canadian_chapters" text
);
### SQL
Given the database schema, here is the SQL query that answers `When καθ are the letters what is the nickname?`:
```sql
                SELECT "nickname" FROM "national_panhellenic_conference_npc" WHERE "letters"='ΚΑΘ';
```
## Task
Generate a SQL query to answer the following question:
`When 1873-12-25 is the founding date how many organizations are there?`

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

CREATE TABLE "national_panhellenic_conference_npc" (
  "letters" text,
  "organization" text,
  "nickname" text,
  "founding_date" text,
  "founding_university" text,
  "type" text,
  "canadian_chapters" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1873-12-25 is the founding date how many organizations are there?`:
```sql
                SELECT COUNT("organization") FROM "national_panhellenic_conference_npc" WHERE "founding_date"='1873-12-25';
```
## Task
Generate a SQL query to answer the following question:
`When 1872-10-10 is the founding date what are the canadian chapters?`

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

CREATE TABLE "national_panhellenic_conference_npc" (
  "letters" text,
  "organization" text,
  "nickname" text,
  "founding_date" text,
  "founding_university" text,
  "type" text,
  "canadian_chapters" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1872-10-10 is the founding date what are the canadian chapters?`:
```sql
                SELECT "canadian_chapters" FROM "national_panhellenic_conference_npc" WHERE "founding_date"='1872-10-10';
```
## Task
Generate a SQL query to answer the following question:
`When 1 active, 1 inactive is the canadian chapters how many founding dates are there?`

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

CREATE TABLE "national_panhellenic_conference_npc" (
  "letters" text,
  "organization" text,
  "nickname" text,
  "founding_date" text,
  "founding_university" text,
  "type" text,
  "canadian_chapters" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1 active, 1 inactive is the canadian chapters how many founding dates are there?`:
```sql
                SELECT COUNT("founding_date") FROM "national_panhellenic_conference_npc" WHERE "canadian_chapters"='1 Active, 1 Inactive';
```
## Task
Generate a SQL query to answer the following question:
`when was the ending time where the enemy met in the iron bowl`

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

CREATE TABLE "primary_auburn_football_rivalries_all_ti" (
  "name_of_rivalry" text,
  "rival" text,
  "games_played" real,
  "first_meeting" real,
  "last_meeting" real,
  "au_won" real,
  "au_lost" real,
  "ties" real,
  "streak" text,
  "latest_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the ending time where the enemy met in the iron bowl`:
```sql
                SELECT "last_meeting" FROM "primary_auburn_football_rivalries_all_ti" WHERE "name_of_rivalry"='Iron Bowl';
```
## Task
Generate a SQL query to answer the following question:
`what was the lowest number that auburn triumphed where the activities took part was 92`

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

CREATE TABLE "primary_auburn_football_rivalries_all_ti" (
  "name_of_rivalry" text,
  "rival" text,
  "games_played" real,
  "first_meeting" real,
  "last_meeting" real,
  "au_won" real,
  "au_lost" real,
  "ties" real,
  "streak" text,
  "latest_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the lowest number that auburn triumphed where the activities took part was 92`:
```sql
                SELECT MIN("au_won") FROM "primary_auburn_football_rivalries_all_ti" WHERE "games_played"=92;
```
## Task
Generate a SQL query to answer the following question:
`what are all the adversary where the beginning is 1899`

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

CREATE TABLE "primary_auburn_football_rivalries_all_ti" (
  "name_of_rivalry" text,
  "rival" text,
  "games_played" real,
  "first_meeting" real,
  "last_meeting" real,
  "au_won" real,
  "au_lost" real,
  "ties" real,
  "streak" text,
  "latest_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the adversary where the beginning is 1899`:
```sql
                SELECT "rival" FROM "primary_auburn_football_rivalries_all_ti" WHERE "first_meeting"=1899;
```
## Task
Generate a SQL query to answer the following question:
`what is the length where the time is 2009`

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

CREATE TABLE "primary_auburn_football_rivalries_all_ti" (
  "name_of_rivalry" text,
  "rival" text,
  "games_played" real,
  "first_meeting" real,
  "last_meeting" real,
  "au_won" real,
  "au_lost" real,
  "ties" real,
  "streak" text,
  "latest_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the length where the time is 2009`:
```sql
                SELECT "streak" FROM "primary_auburn_football_rivalries_all_ti" WHERE "last_meeting"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing?`

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

CREATE TABLE "table1_28490105_1" (
  "rnd" real,
  "date" text,
  "circuit" text,
  "supporting" text,
  "distance" text,
  "gt_winning_car" text,
  "tc_winning_car" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing?`:
```sql
                SELECT "distance" FROM "table1_28490105_1" WHERE "supporting"='Champ Car World Series ( Grand Prix of Cleveland )' AND "tc_winning_car"='Pierre Kleinubing';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest round where the gt winning car is max angelelli?`

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

CREATE TABLE "table1_28490105_1" (
  "rnd" real,
  "date" text,
  "circuit" text,
  "supporting" text,
  "distance" text,
  "gt_winning_car" text,
  "tc_winning_car" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest round where the gt winning car is max angelelli?`:
```sql
                SELECT MIN("rnd") FROM "table1_28490105_1" WHERE "gt_winning_car"='Max Angelelli';
```
## Task
Generate a SQL query to answer the following question:
`Who was supporting in round 1 where the gt winning car was dodge viper?`

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

CREATE TABLE "table1_28490105_1" (
  "rnd" real,
  "date" text,
  "circuit" text,
  "supporting" text,
  "distance" text,
  "gt_winning_car" text,
  "tc_winning_car" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was supporting in round 1 where the gt winning car was dodge viper?`:
```sql
                SELECT "supporting" FROM "table1_28490105_1" WHERE "gt_winning_car"='Dodge Viper' AND "rnd"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who was supporting in the round when the gt winning car was dino crescentini?`

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

CREATE TABLE "table1_28490105_1" (
  "rnd" real,
  "date" text,
  "circuit" text,
  "supporting" text,
  "distance" text,
  "gt_winning_car" text,
  "tc_winning_car" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was supporting in the round when the gt winning car was dino crescentini?`:
```sql
                SELECT "supporting" FROM "table1_28490105_1" WHERE "gt_winning_car"='Dino Crescentini';
```
## Task
Generate a SQL query to answer the following question:
`How many writers wrote the episode "Woke Up Dead"?`

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

CREATE TABLE "table1_28466323_2" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many writers wrote the episode "Woke Up Dead"?`:
```sql
                SELECT COUNT("written_by") FROM "table1_28466323_2" WHERE "title"='\"Woke Up Dead\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with production code 2j5568?`

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

CREATE TABLE "table1_28466323_2" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 2j5568?`:
```sql
                SELECT "written_by" FROM "table1_28466323_2" WHERE "production_code"='2J5568';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode watched by 2.01 million US viewers?`

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

CREATE TABLE "table1_28466323_2" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode watched by 2.01 million US viewers?`:
```sql
                SELECT "directed_by" FROM "table1_28466323_2" WHERE "u_s_viewers_million"='2.01';
```
## Task
Generate a SQL query to answer the following question:
`How many divisions in bowling ? `

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

CREATE TABLE "boys" (
  "season" text,
  "sport" text,
  "tournament_structure" text,
  "num_of_divisions" real,
  "1st_tournament" real,
  "2012_2013_state_tournament_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many divisions in bowling ? `:
```sql
                SELECT "num_of_divisions" FROM "boys" WHERE "sport"='Bowling';
```
## Task
Generate a SQL query to answer the following question:
`How many 7th season episodes had 2nd season viewerships of 6 594 469?`

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

CREATE TABLE "viewing_figures" (
  "episode" real,
  "1st_season" text,
  "2nd_season" text,
  "3rd_season" text,
  "4th_season" text,
  "5th_season" text,
  "6th_season" text,
  "7th_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 7th season episodes had 2nd season viewerships of 6 594 469?`:
```sql
                SELECT COUNT("7th_season") FROM "viewing_figures" WHERE "2nd_season"='6 594 469';
```
## Task
Generate a SQL query to answer the following question:
`How many first tournaments were winter sports with exactly 1 division?`

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

CREATE TABLE "girls" (
  "season" text,
  "sport" text,
  "tournament_structure" text,
  "num_of_divisions" real,
  "1st_tournament" real,
  "2011_2012_state_tournament_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many first tournaments were winter sports with exactly 1 division?`:
```sql
                SELECT COUNT("1st_tournament") FROM "girls" WHERE "season"='Winter' AND "num_of_divisions"=1;
```
## Task
Generate a SQL query to answer the following question:
`Where was the 2011-2012 soccer state tournament held?`

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

CREATE TABLE "girls" (
  "season" text,
  "sport" text,
  "tournament_structure" text,
  "num_of_divisions" real,
  "1st_tournament" real,
  "2011_2012_state_tournament_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the 2011-2012 soccer state tournament held?`:
```sql
                SELECT "2011_2012_state_tournament_location" FROM "girls" WHERE "sport"='Soccer';
```
## Task
Generate a SQL query to answer the following question:
`How many first tournaments are associated with bowling?`

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

CREATE TABLE "girls" (
  "season" text,
  "sport" text,
  "tournament_structure" text,
  "num_of_divisions" real,
  "1st_tournament" real,
  "2011_2012_state_tournament_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many first tournaments are associated with bowling?`:
```sql
                SELECT COUNT("1st_tournament") FROM "girls" WHERE "sport"='Bowling';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the player vaughn taylor listed?`

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

CREATE TABLE "table1_28498999_3" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the player vaughn taylor listed?`:
```sql
                SELECT COUNT("before") FROM "table1_28498999_3" WHERE "player"='Vaughn Taylor';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest after when the player is adam scott?`

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

CREATE TABLE "table1_28498999_3" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest after when the player is adam scott?`:
```sql
                SELECT MIN("after") FROM "table1_28498999_3" WHERE "player"='Adam Scott';
```
## Task
Generate a SQL query to answer the following question:
`What is the country for the score 72-63-71-68=274?`

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

CREATE TABLE "table1_28498999_3" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country for the score 72-63-71-68=274?`:
```sql
                SELECT "country" FROM "table1_28498999_3" WHERE "score"='72-63-71-68=274';
```
## Task
Generate a SQL query to answer the following question:
`What is the after for the player kevin streelman?`

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

CREATE TABLE "table1_28498999_3" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the after for the player kevin streelman?`:
```sql
                SELECT "after" FROM "table1_28498999_3" WHERE "player"='Kevin Streelman';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par when the after is 33?`

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

CREATE TABLE "table1_28498999_3" (
  "num" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "winnings" real,
  "after" real,
  "before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par when the after is 33?`:
```sql
                SELECT "to_par" FROM "table1_28498999_3" WHERE "after"=33;
```