cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?`:
```sql
                SELECT COUNT("sprints_classification") FROM "classification_leadership" WHERE "winner"='Joaquin Rodriguez';
```
## Task
Generate a SQL query to answer the following question:
`Who led team classification during the stage whose winner was Chris Horner?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who led team classification during the stage whose winner was Chris Horner?`:
```sql
                SELECT "team_classification" FROM "classification_leadership" WHERE "winner"='Chris Horner';
```
## Task
Generate a SQL query to answer the following question:
`Who led sprints classification when Chris Horner led general classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who led sprints classification when Chris Horner led general classification?`:
```sql
                SELECT "sprints_classification" FROM "classification_leadership" WHERE "general_classification"='Chris Horner';
```
## Task
Generate a SQL query to answer the following question:
`What are all the report for the Belgian Grand Prix? `

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the report for the Belgian Grand Prix? `:
```sql
                SELECT "report" FROM "grands_prix" WHERE "grand_prix"='Belgian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`How many winning constructor catagories are there when Mark Webber had the fastest lap? `

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winning constructor catagories are there when Mark Webber had the fastest lap? `:
```sql
                SELECT COUNT("winning_constructor") FROM "grands_prix" WHERE "fastest_lap"='Mark Webber';
```
## Task
Generate a SQL query to answer the following question:
`Who had the pole position in the Canadian Grand Prix? `

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the pole position in the Canadian Grand Prix? `:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='Canadian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What year was the institution of St. Catharine College founded?`

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

CREATE TABLE "full_members" (
  "institution" text,
  "location_population" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname_colors" text,
  "football" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the institution of St. Catharine College founded?`:
```sql
                SELECT MIN("founded") FROM "full_members" WHERE "institution"='St. Catharine College';
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment for the institution that is located in Lebanon, Tennessee (20,235)?`

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

CREATE TABLE "full_members" (
  "institution" text,
  "location_population" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname_colors" text,
  "football" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment for the institution that is located in Lebanon, Tennessee (20,235)?`:
```sql
                SELECT "enrollment" FROM "full_members" WHERE "location_population"='Lebanon, Tennessee (20,235)';
```
## Task
Generate a SQL query to answer the following question:
`What is the location and population of the institution called Bluefield College?`

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

CREATE TABLE "full_members" (
  "institution" text,
  "location_population" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname_colors" text,
  "football" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and population of the institution called Bluefield College?`:
```sql
                SELECT "location_population" FROM "full_members" WHERE "institution"='Bluefield College';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the result is hired by serepisos?`

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

CREATE TABLE "table1_26263322_1" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the result is hired by serepisos?`:
```sql
                SELECT COUNT("hometown") FROM "table1_26263322_1" WHERE "result"='Hired by Serepisos';
```
## Task
Generate a SQL query to answer the following question:
`What is the age when the result is fired in week 8`

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

CREATE TABLE "table1_26263322_1" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the age when the result is fired in week 8`:
```sql
                SELECT MIN("age") FROM "table1_26263322_1" WHERE "result"='Fired in week 8';
```
## Task
Generate a SQL query to answer the following question:
`What is the background of the candidate daniel phillips?`

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

CREATE TABLE "table1_26263322_1" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the background of the candidate daniel phillips?`:
```sql
                SELECT "background" FROM "table1_26263322_1" WHERE "candidate"='Daniel Phillips';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the background self-employed - media agency?`

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

CREATE TABLE "table1_26263322_1" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the background self-employed - media agency?`:
```sql
                SELECT COUNT("candidate") FROM "table1_26263322_1" WHERE "background"='Self-employed - media agency';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the background university student?`

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

CREATE TABLE "table1_26263322_1" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the background university student?`:
```sql
                SELECT COUNT("result") FROM "table1_26263322_1" WHERE "background"='University Student';
```
## Task
Generate a SQL query to answer the following question:
`What is the candidate whose age is 27?`

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

CREATE TABLE "table1_26263322_1" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the candidate whose age is 27?`:
```sql
                SELECT "candidate" FROM "table1_26263322_1" WHERE "age"=27;
```
## Task
Generate a SQL query to answer the following question:
`In Round 6, who is the winning team?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Round 6, who is the winning team?`:
```sql
                SELECT "winning_team" FROM "race_calendar_and_results" WHERE "round"='6';
```
## Task
Generate a SQL query to answer the following question:
`On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia?`:
```sql
                SELECT "date" FROM "race_calendar_and_results" WHERE "winning_team"='Abt Sportsline' AND "pole_position"='Mattias Ekström' AND "circuit"='Circuit Ricardo Tormo , Valencia';
```
## Task
Generate a SQL query to answer the following question:
`Round 1 is in what circuit?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Round 1 is in what circuit?`:
```sql
                SELECT "circuit" FROM "race_calendar_and_results" WHERE "round"='1';
```
## Task
Generate a SQL query to answer the following question:
`In the circuit Showevent Olympiastadion München, where the winning driver is Bruno Spengler, what is the pole position?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the circuit Showevent Olympiastadion München, where the winning driver is Bruno Spengler, what is the pole position?`:
```sql
                SELECT "pole_position" FROM "race_calendar_and_results" WHERE "winning_driver"='Bruno Spengler' AND "circuit"='Showevent Olympiastadion München';
```
## Task
Generate a SQL query to answer the following question:
`Where the fastest lap is Mike Rockenfeller, who is the winning driver?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the fastest lap is Mike Rockenfeller, who is the winning driver?`:
```sql
                SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "fastest_lap"='Mike Rockenfeller';
```
## Task
Generate a SQL query to answer the following question:
`How many dates are there in round 3?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates are there in round 3?`:
```sql
                SELECT COUNT("date") FROM "race_calendar_and_results" WHERE "round"='3';
```
## Task
Generate a SQL query to answer the following question:
`Name the least series number written by brenda hampton and directed by  burt brinckerhoff`

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

CREATE TABLE "table1_26261072_1" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least series number written by brenda hampton and directed by  burt brinckerhoff`:
```sql
                SELECT MIN("series_num") FROM "table1_26261072_1" WHERE "written_by"='Brenda Hampton' AND "directed_by"='Burt Brinckerhoff';
```
## Task
Generate a SQL query to answer the following question:
`Name the original air date for series number 15`

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

CREATE TABLE "table1_26261072_1" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for series number 15`:
```sql
                SELECT "original_air_date" FROM "table1_26261072_1" WHERE "series_num"=15;
```
## Task
Generate a SQL query to answer the following question:
`What team was Pearson on when his winnings were $5,200?`

### 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 team was Pearson on when his winnings were $5,200?`:
```sql
                SELECT "team_s" FROM "nascar_nationwide_series" WHERE "winnings"='$5,200';
```
## Task
Generate a SQL query to answer the following question:
`How many starts did Pearson have when his winnings were $101,438?`

### 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 `How many starts did Pearson have when his winnings were $101,438?`:
```sql
                SELECT "starts" FROM "nascar_nationwide_series" WHERE "winnings"='$101,438';
```
## Task
Generate a SQL query to answer the following question:
`How many top 10's did Pearson have the year he was in 8th position? `

### 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 `How many top 10's did Pearson have the year he was in 8th position? `:
```sql
                SELECT MIN("top_10") FROM "nascar_nationwide_series" WHERE "position"='8th';
```
## Task
Generate a SQL query to answer the following question:
`what is the title of the episode daphne field wrote?`

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

CREATE TABLE "table1_2626495_1" (
  "episode_num" real,
  "prod_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title of the episode daphne field wrote?`:
```sql
                SELECT "title" FROM "table1_2626495_1" WHERE "written_by"='Daphne Field';
```
## Task
Generate a SQL query to answer the following question:
`who directed the episode james clavell wrote?`

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

CREATE TABLE "table1_2626495_1" (
  "episode_num" real,
  "prod_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `who directed the episode james clavell wrote?`:
```sql
                SELECT "directed_by" FROM "table1_2626495_1" WHERE "written_by"='James Clavell';
```
## Task
Generate a SQL query to answer the following question:
`how many times was the episode directed by maury geraghty originally aired? `

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

CREATE TABLE "table1_2626495_1" (
  "episode_num" real,
  "prod_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was the episode directed by maury geraghty originally aired? `:
```sql
                SELECT COUNT("originalairdate") FROM "table1_2626495_1" WHERE "directed_by"='Maury Geraghty';
```
## Task
Generate a SQL query to answer the following question:
`What Film Festival had participants/recipients of Isao Tomita?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Film Festival had participants/recipients of Isao Tomita?`:
```sql
                SELECT "film_festival" FROM "film_festivals" WHERE "participants_recipients"='Isao Tomita';
```
## Task
Generate a SQL query to answer the following question:
`Who was the participant or recipient for the Best Female Actor?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the participant or recipient for the Best Female Actor?`:
```sql
                SELECT "participants_recipients" FROM "film_festivals" WHERE "category"='Best Female Actor';
```
## Task
Generate a SQL query to answer the following question:
`What date was the participant/recipient  takakazu watanabe?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the participant/recipient  takakazu watanabe?`:
```sql
                SELECT "date_of_ceremony" FROM "film_festivals" WHERE "participants_recipients"='Takakazu Watanabe';
```
## Task
Generate a SQL query to answer the following question:
`What film festival had the Best Male Actor?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film festival had the Best Male Actor?`:
```sql
                SELECT "film_festival" FROM "film_festivals" WHERE "category"='Best Male Actor';
```
## Task
Generate a SQL query to answer the following question:
`What film festival was the participant/recipient Isao Tomita?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film festival was the participant/recipient Isao Tomita?`:
```sql
                SELECT "film_festival" FROM "film_festivals" WHERE "participants_recipients"='Isao Tomita';
```
## Task
Generate a SQL query to answer the following question:
`What category was the the participant/recipient  otōto?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was the the participant/recipient  otōto?`:
```sql
                SELECT "category" FROM "film_festivals" WHERE "participants_recipients"='Otōto';
```
## Task
Generate a SQL query to answer the following question:
`Name the performance order of the velasco brothers`

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

CREATE TABLE "results" (
  "finished" text,
  "performance_order" real,
  "percentage_of_votes" text,
  "artist" text,
  "act" text,
  "semi_finals_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the performance order of the velasco brothers`:
```sql
                SELECT "performance_order" FROM "results" WHERE "artist"='Velasco Brothers';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of semi final results for 12 performance order`

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

CREATE TABLE "results" (
  "finished" text,
  "performance_order" real,
  "percentage_of_votes" text,
  "artist" text,
  "act" text,
  "semi_finals_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of semi final results for 12 performance order`:
```sql
                SELECT COUNT("semi_finals_result") FROM "results" WHERE "performance_order"=12;
```
## Task
Generate a SQL query to answer the following question:
`Name the performance order for 2.15%`

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

CREATE TABLE "results" (
  "finished" text,
  "performance_order" real,
  "percentage_of_votes" text,
  "artist" text,
  "act" text,
  "semi_finals_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the performance order for 2.15%`:
```sql
                SELECT "performance_order" FROM "results" WHERE "percentage_of_votes"='2.15%';
```
## Task
Generate a SQL query to answer the following question:
`Name the percentage of votes for 3rd finished`

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

CREATE TABLE "results" (
  "finished" text,
  "performance_order" real,
  "percentage_of_votes" text,
  "artist" text,
  "act" text,
  "semi_finals_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the percentage of votes for 3rd finished`:
```sql
                SELECT "percentage_of_votes" FROM "results" WHERE "finished"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`Name the percentage of votes for violinist`

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

CREATE TABLE "results" (
  "finished" text,
  "performance_order" real,
  "percentage_of_votes" text,
  "artist" text,
  "act" text,
  "semi_finals_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the percentage of votes for violinist`:
```sql
                SELECT "percentage_of_votes" FROM "results" WHERE "act"='Violinist';
```
## Task
Generate a SQL query to answer the following question:
`what are all the hometown where the average age is 16`

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

CREATE TABLE "top_36_results_summary" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "semifinal_week" real,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the hometown where the average age is 16`:
```sql
                SELECT "hometown" FROM "top_36_results_summary" WHERE "age_s"='16';
```
## Task
Generate a SQL query to answer the following question:
`What is the population in 2011 for the name Beaubassin East?`

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

CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
  "name" 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 population in 2011 for the name Beaubassin East?`:
```sql
                SELECT "population_2011" FROM "list_of_rural_communities_in_new_brunswi" WHERE "name"='Beaubassin East';
```
## Task
Generate a SQL query to answer the following question:
`What is every population density if name is Beaubassin East?`

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

CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
  "name" 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 every population density if name is Beaubassin East?`:
```sql
                SELECT "population_density" FROM "list_of_rural_communities_in_new_brunswi" WHERE "name"='Beaubassin East';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for area for population density of 100.8?`

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

CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
  "name" 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 every value for area for population density of 100.8?`:
```sql
                SELECT "area_km" FROM "list_of_rural_communities_in_new_brunswi" WHERE "population_density"='100.8';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for change% for area of 1835.01?`

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

CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
  "name" 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 every value for change% for area of 1835.01?`:
```sql
                SELECT "change_pct" FROM "list_of_rural_communities_in_new_brunswi" WHERE "area_km"='1835.01';
```
## Task
Generate a SQL query to answer the following question:
`How many names correspond to an area of 8.12?`

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

CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
  "name" 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 names correspond to an area of 8.12?`:
```sql
                SELECT COUNT("name") FROM "list_of_rural_communities_in_new_brunswi" WHERE "area_km"='8.12';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for area if change% is -3.6?`

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

CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
  "name" 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 every value for area if change% is -3.6?`:
```sql
                SELECT "area_km" FROM "list_of_rural_communities_in_new_brunswi" WHERE "change_pct"='-3.6';
```
## Task
Generate a SQL query to answer the following question:
`Name the hdi 2012 for dominica`

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

CREATE TABLE "indicators" (
  "country" text,
  "area_km_2010" real,
  "population_2011" real,
  "gdp_ppp_intl_2011" text,
  "gdp_ppp_per_capita_intl_2011" text,
  "income_inequality_1992_2010_latest_available" text,
  "hdi_2012" text,
  "fsi_2012" text,
  "cpi_2012" text,
  "ief_2013" text,
  "gpi_2012" text,
  "wpfi_2013" text,
  "di_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the hdi 2012 for dominica`:
```sql
                SELECT "hdi_2012" FROM "indicators" WHERE "country"='Dominica';
```
## Task
Generate a SQL query to answer the following question:
`Name the fsi 2012 for 42.7 cpi`

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

CREATE TABLE "indicators" (
  "country" text,
  "area_km_2010" real,
  "population_2011" real,
  "gdp_ppp_intl_2011" text,
  "gdp_ppp_per_capita_intl_2011" text,
  "income_inequality_1992_2010_latest_available" text,
  "hdi_2012" text,
  "fsi_2012" text,
  "cpi_2012" text,
  "ief_2013" text,
  "gpi_2012" text,
  "wpfi_2013" text,
  "di_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fsi 2012 for 42.7 cpi`:
```sql
                SELECT "fsi_2012" FROM "indicators" WHERE "cpi_2012"='42.7';
```
## Task
Generate a SQL query to answer the following question:
`Name the gdp per capita for haiti`

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

CREATE TABLE "indicators" (
  "country" text,
  "area_km_2010" real,
  "population_2011" real,
  "gdp_ppp_intl_2011" text,
  "gdp_ppp_per_capita_intl_2011" text,
  "income_inequality_1992_2010_latest_available" text,
  "hdi_2012" text,
  "fsi_2012" text,
  "cpi_2012" text,
  "ief_2013" text,
  "gpi_2012" text,
  "wpfi_2013" text,
  "di_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gdp per capita for haiti`:
```sql
                SELECT "gdp_ppp_per_capita_intl_2011" FROM "indicators" WHERE "country"='Haiti';
```
## Task
Generate a SQL query to answer the following question:
`How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?`

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

CREATE TABLE "table1_26335424_86" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?`:
```sql
                SELECT COUNT("round_of_16") FROM "table1_26335424_86" WHERE "round_of_32"='Lakpa Tashi Sherpa ( BHU ) W PTS 12-5';
```
## Task
Generate a SQL query to answer the following question:
`If the quarterfinals was nabil talal ( jor ) l pts 3-3, who was the athlete?`

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

CREATE TABLE "table1_26335424_86" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the quarterfinals was nabil talal ( jor ) l pts 3-3, who was the athlete?`:
```sql
                SELECT "athlete" FROM "table1_26335424_86" WHERE "quarterfinals"='Nabil Talal ( JOR ) L PTS 3-3';
```
## Task
Generate a SQL query to answer the following question:
`If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32?`

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

CREATE TABLE "table1_26335424_86" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32?`:
```sql
                SELECT "round_of_32" FROM "table1_26335424_86" WHERE "quarterfinals"='Did not advance' AND "event"='Bantamweight (-63kg)';
```
## Task
Generate a SQL query to answer the following question:
`If the round of 16 was  yulius fernando ( ina ) l pts 5-6, what was the semifinals?`

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

CREATE TABLE "table1_26335424_86" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the round of 16 was  yulius fernando ( ina ) l pts 5-6, what was the semifinals?`:
```sql
                SELECT "semifinals" FROM "table1_26335424_86" WHERE "round_of_16"='Yulius Fernando ( INA ) L PTS 5-6';
```
## Task
Generate a SQL query to answer the following question:
`If round of 32 is sawatvilay phimmasone ( lao ) w pts 9-7, what was the event?`

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

CREATE TABLE "table1_26335424_86" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text,
  "semifinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `If round of 32 is sawatvilay phimmasone ( lao ) w pts 9-7, what was the event?`:
```sql
                SELECT "event" FROM "table1_26335424_86" WHERE "round_of_32"='Sawatvilay Phimmasone ( LAO ) W PTS 9-7';
```
## Task
Generate a SQL query to answer the following question:
`What date was the district incumbent Saxby Chambliss elected? `

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

CREATE TABLE "results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the district incumbent Saxby Chambliss elected? `:
```sql
                SELECT MAX("elected") FROM "results" WHERE "incumbent"='Saxby Chambliss';
```
## Task
Generate a SQL query to answer the following question:
`What is the status in the district with the incumbent Bob Barr? `

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

CREATE TABLE "results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status in the district with the incumbent Bob Barr? `:
```sql
                SELECT "status" FROM "results" WHERE "incumbent"='Bob Barr';
```
## Task
Generate a SQL query to answer the following question:
`How many elected catagories are there for the district with Saxby Chambliss as the incumbent? `

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

CREATE TABLE "results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many elected catagories are there for the district with Saxby Chambliss as the incumbent? `:
```sql
                SELECT COUNT("elected") FROM "results" WHERE "incumbent"='Saxby Chambliss';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the district with an election in 1986`

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

CREATE TABLE "results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the district with an election in 1986`:
```sql
                SELECT "result" FROM "results" WHERE "elected"=1986;
```
## Task
Generate a SQL query to answer the following question:
`how many party classifications are there for the incumbent Mac Collins? `

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

CREATE TABLE "results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many party classifications are there for the incumbent Mac Collins? `:
```sql
                SELECT COUNT("party") FROM "results" WHERE "incumbent"='Mac Collins';
```
## Task
Generate a SQL query to answer the following question:
`For the engine family MaxxForce 11, what is the years produced?`

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

CREATE TABLE "table1_26352332_4" (
  "engine_family" text,
  "cylinder_layout" text,
  "displacement_s" text,
  "injection_type" text,
  "years_produced" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the engine family MaxxForce 11, what is the years produced?`:
```sql
                SELECT "years_produced" FROM "table1_26352332_4" WHERE "engine_family"='MaxxForce 11';
```
## Task
Generate a SQL query to answer the following question:
`The cylinder layout v8 is produced in what years?`

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

CREATE TABLE "table1_26352332_4" (
  "engine_family" text,
  "cylinder_layout" text,
  "displacement_s" text,
  "injection_type" text,
  "years_produced" text
);
### SQL
Given the database schema, here is the SQL query that answers `The cylinder layout v8 is produced in what years?`:
```sql
                SELECT "years_produced" FROM "table1_26352332_4" WHERE "cylinder_layout"='V8';
```
## Task
Generate a SQL query to answer the following question:
`The years produced for the cylinder layout v8 are what?`

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

CREATE TABLE "table1_26352332_4" (
  "engine_family" text,
  "cylinder_layout" text,
  "displacement_s" text,
  "injection_type" text,
  "years_produced" text
);
### SQL
Given the database schema, here is the SQL query that answers `The years produced for the cylinder layout v8 are what?`:
```sql
                SELECT "years_produced" FROM "table1_26352332_4" WHERE "cylinder_layout"='V8';
```
## Task
Generate a SQL query to answer the following question:
`The engine family MaxxForce 5	 in the years produced 2007-current, have what cylinder layout?`

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

CREATE TABLE "table1_26352332_4" (
  "engine_family" text,
  "cylinder_layout" text,
  "displacement_s" text,
  "injection_type" text,
  "years_produced" text
);
### SQL
Given the database schema, here is the SQL query that answers `The engine family MaxxForce 5	 in the years produced 2007-current, have what cylinder layout?`:
```sql
                SELECT "cylinder_layout" FROM "table1_26352332_4" WHERE "years_produced"='2007-current' AND "engine_family"='MaxxForce 5';
```
## Task
Generate a SQL query to answer the following question:
`Where the displacement(s) is 10.5L is, what is the engine family?`

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

CREATE TABLE "table1_26352332_4" (
  "engine_family" text,
  "cylinder_layout" text,
  "displacement_s" text,
  "injection_type" text,
  "years_produced" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the displacement(s) is 10.5L is, what is the engine family?`:
```sql
                SELECT "engine_family" FROM "table1_26352332_4" WHERE "displacement_s"='10.5L';
```
## Task
Generate a SQL query to answer the following question:
`The displacement(s) 466 cubic inches (7.6L), has what engine family?`

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

CREATE TABLE "table1_26352332_4" (
  "engine_family" text,
  "cylinder_layout" text,
  "displacement_s" text,
  "injection_type" text,
  "years_produced" text
);
### SQL
Given the database schema, here is the SQL query that answers `The displacement(s) 466 cubic inches (7.6L), has what engine family?`:
```sql
                SELECT "engine_family" FROM "table1_26352332_4" WHERE "displacement_s"='466 cubic inches (7.6L)';
```
## Task
Generate a SQL query to answer the following question:
`What is the coinage metal for a KM number of S75?`

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

CREATE TABLE "later_thalers_with_event_location_and_ye" (
  "location" text,
  "date" real,
  "denomination" text,
  "coinage_metal" text,
  "mintage" real,
  "km_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coinage metal for a KM number of S75?`:
```sql
                SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "km_number"='S75';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum date for a mintage of 150 and a KM number of S66?`

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

CREATE TABLE "later_thalers_with_event_location_and_ye" (
  "location" text,
  "date" real,
  "denomination" text,
  "coinage_metal" text,
  "mintage" real,
  "km_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum date for a mintage of 150 and a KM number of S66?`:
```sql
                SELECT MAX("date") FROM "later_thalers_with_event_location_and_ye" WHERE "mintage"=150 AND "km_number"='S66';
```
## Task
Generate a SQL query to answer the following question:
`What is the mintage for a location of Sion and a denomination of 00500 500 Francs?`

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

CREATE TABLE "later_thalers_with_event_location_and_ye" (
  "location" text,
  "date" real,
  "denomination" text,
  "coinage_metal" text,
  "mintage" real,
  "km_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mintage for a location of Sion and a denomination of 00500 500 Francs?`:
```sql
                SELECT "mintage" FROM "later_thalers_with_event_location_and_ye" WHERE "location"='Sion' AND "denomination"='00500 500 francs';
```
## Task
Generate a SQL query to answer the following question:
`What is the coinage metal for KM numbers of S45?`

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

CREATE TABLE "later_thalers_with_event_location_and_ye" (
  "location" text,
  "date" real,
  "denomination" text,
  "coinage_metal" text,
  "mintage" real,
  "km_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coinage metal for KM numbers of S45?`:
```sql
                SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "km_number"='S45';
```
## Task
Generate a SQL query to answer the following question:
`What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?`

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

CREATE TABLE "later_thalers_with_event_location_and_ye" (
  "location" text,
  "date" real,
  "denomination" text,
  "coinage_metal" text,
  "mintage" real,
  "km_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?`:
```sql
                SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "location"='Fribourg' AND "denomination"='00005 5 francs';
```
## Task
Generate a SQL query to answer the following question:
`When the under-17 was Antonio Glez, who was the under-13?`

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

CREATE TABLE "boys" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the under-17 was Antonio Glez, who was the under-13?`:
```sql
                SELECT "under_13" FROM "boys" WHERE "under_17"='Antonio Glez';
```
## Task
Generate a SQL query to answer the following question:
`In the year 2009 who was the under-13?`

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

CREATE TABLE "boys" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the year 2009 who was the under-13?`:
```sql
                SELECT "under_13" FROM "boys" WHERE "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`When Julian Illingworth was the under-19, who was the under-15?`

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

CREATE TABLE "boys" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Julian Illingworth was the under-19, who was the under-15?`:
```sql
                SELECT "under_15" FROM "boys" WHERE "under_19"='Julian Illingworth';
```