cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the general classification leader when the young rider classification leader was Salvatore Commesso and the winner was Erik Dekker?`

### 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,
  "young_rider_classification" text,
  "team_classification" text,
  "combativity_award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the general classification leader when the young rider classification leader was Salvatore Commesso and the winner was Erik Dekker?`:
```sql
                SELECT "general_classification" FROM "classification_leadership" WHERE "young_rider_classification"='Salvatore Commesso' AND "winner"='Erik Dekker';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?`

### 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,
  "young_rider_classification" text,
  "team_classification" text,
  "combativity_award" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?`:
```sql
                SELECT COUNT("team_classification") FROM "classification_leadership" WHERE "young_rider_classification"='Salvatore Commesso' AND "combativity_award"='Jacky Durand';
```
## Task
Generate a SQL query to answer the following question:
`In what round did Al Unser win at Wisconsin State Fair Park Speedway? `

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round did Al Unser win at Wisconsin State Fair Park Speedway? `:
```sql
                SELECT MIN("rnd") FROM "schedule_and_results" WHERE "winning_driver"='Al Unser' AND "track"='Wisconsin State Fair Park Speedway';
```
## Task
Generate a SQL query to answer the following question:
`How many races are in College Station, Texas and won by Johnny Rutherford? `

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races are in College Station, Texas and won by Johnny Rutherford? `:
```sql
                SELECT COUNT("race_name") FROM "schedule_and_results" WHERE "location"='College Station, Texas' AND "winning_driver"='Johnny Rutherford';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the race that Al Unser had the pole position? `

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the race that Al Unser had the pole position? `:
```sql
                SELECT "race_name" FROM "schedule_and_results" WHERE "pole_position"='Al Unser';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the track for the International 500 mile Sweepstakes race? `

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the track for the International 500 mile Sweepstakes race? `:
```sql
                SELECT "track" FROM "schedule_and_results" WHERE "race_name"='International 500 Mile Sweepstakes';
```
## Task
Generate a SQL query to answer the following question:
`Which locations did Gordon Johncock hold the pole position? `

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which locations did Gordon Johncock hold the pole position? `:
```sql
                SELECT "location" FROM "schedule_and_results" WHERE "pole_position"='Gordon Johncock';
```
## Task
Generate a SQL query to answer the following question:
`What classifications does Fish Rap live! has?`

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

CREATE TABLE "contemporary_humor_magazines" (
  "title" text,
  "language" text,
  "country" text,
  "years_published" text,
  "frequency" text,
  "medium" text,
  "classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What classifications does Fish Rap live! has?`:
```sql
                SELECT "classification" FROM "contemporary_humor_magazines" WHERE "title"='Fish Rap Live!';
```
## Task
Generate a SQL query to answer the following question:
`How many races took place on October 1?`

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "type" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races took place on October 1?`:
```sql
                SELECT COUNT("race_name") FROM "schedule_and_results" WHERE "date"='October 1';
```
## Task
Generate a SQL query to answer the following question:
`How many types of tracks are there on the Phoenix International raceway?`

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "type" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many types of tracks are there on the Phoenix International raceway?`:
```sql
                SELECT COUNT("type") FROM "schedule_and_results" WHERE "track"='Phoenix International Raceway';
```
## Task
Generate a SQL query to answer the following question:
`Daily Empress Indy Silverstone took place on which round?`

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "type" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `Daily Empress Indy Silverstone took place on which round?`:
```sql
                SELECT MAX("rnd") FROM "schedule_and_results" WHERE "race_name"='Daily Empress Indy Silverstone';
```
## Task
Generate a SQL query to answer the following question:
`How many races took place on the Indianapolis Motor Speedway track?`

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "type" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races took place on the Indianapolis Motor Speedway track?`:
```sql
                SELECT COUNT("race_name") FROM "schedule_and_results" WHERE "track"='Indianapolis Motor Speedway';
```
## Task
Generate a SQL query to answer the following question:
`What driver achieved a 3:50:12 race time?`

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

CREATE TABLE "table1_2267465_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What driver achieved a 3:50:12 race time?`:
```sql
                SELECT "driver" FROM "table1_2267465_1" WHERE "race_time"='3:50:12';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the manufacturer behind Race Hill Farm Team?`

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

CREATE TABLE "table1_2267465_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the manufacturer behind Race Hill Farm Team?`:
```sql
                SELECT "manufacturer" FROM "table1_2267465_1" WHERE "team"='Race Hill Farm Team';
```
## Task
Generate a SQL query to answer the following question:
`How many laps have a 3:34:26 race time?`

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

CREATE TABLE "table1_2267465_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have a 3:34:26 race time?`:
```sql
                SELECT COUNT("laps") FROM "table1_2267465_1" WHERE "race_time"='3:34:26';
```
## Task
Generate a SQL query to answer the following question:
`What's the average mph of 1964?`

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

CREATE TABLE "table1_2267465_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average mph of 1964?`:
```sql
                SELECT "average_speed_mph" FROM "table1_2267465_1" WHERE "year"='1964';
```
## Task
Generate a SQL query to answer the following question:
`Whose is the manufacturer for team Ranier-Lundy? `

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

CREATE TABLE "table1_2268216_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" real,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose is the manufacturer for team Ranier-Lundy? `:
```sql
                SELECT "manufacturer" FROM "table1_2268216_1" WHERE "team"='Ranier-Lundy';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the average speed 92.68?`

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

CREATE TABLE "table1_2268216_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" real,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the average speed 92.68?`:
```sql
                SELECT "year" FROM "table1_2268216_1" WHERE "average_speed_mph"='92.68';
```
## Task
Generate a SQL query to answer the following question:
`How many years was Pontiac the manufacturer for Joe Gibbs Racing? `

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

CREATE TABLE "table1_2268216_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" real,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was Pontiac the manufacturer for Joe Gibbs Racing? `:
```sql
                SELECT COUNT("year") FROM "table1_2268216_1" WHERE "team"='Joe Gibbs Racing' AND "manufacturer"='Pontiac';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the race that had the time of 2:43:19?`

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

CREATE TABLE "table1_2268216_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" real,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the race that had the time of 2:43:19?`:
```sql
                SELECT "date" FROM "table1_2268216_1" WHERE "race_time"='2:43:19';
```
## Task
Generate a SQL query to answer the following question:
`How many average speeds are listed in the year 2003? `

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

CREATE TABLE "table1_2268216_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" real,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many average speeds are listed in the year 2003? `:
```sql
                SELECT COUNT("average_speed_mph") FROM "table1_2268216_1" WHERE "year"='2003';
```
## Task
Generate a SQL query to answer the following question:
`What team had a race time of 2:53:57?`

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

CREATE TABLE "table1_2268216_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" real,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team had a race time of 2:53:57?`:
```sql
                SELECT "team" FROM "table1_2268216_1" WHERE "race_time"='2:53:57';
```
## Task
Generate a SQL query to answer the following question:
`Name the sprint classification being alejandro valverde`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "sprint_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sprint classification being alejandro valverde`:
```sql
                SELECT "sprint_classification" FROM "riders_jersey_progress_table" WHERE "winner"='Alejandro Valverde';
```
## Task
Generate a SQL query to answer the following question:
`Name the stage for no award`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "sprint_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the stage for no award`:
```sql
                SELECT "stage" FROM "riders_jersey_progress_table" WHERE "mountains_classification"='no award';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of stage for lloyd mondory`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "sprint_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of stage for lloyd mondory`:
```sql
                SELECT COUNT("stage") FROM "riders_jersey_progress_table" WHERE "mountains_classification"='Lloyd Mondory';
```
## Task
Generate a SQL query to answer the following question:
`Name the most stage for alejandro valverde and astana greg henderson`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "sprint_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most stage for alejandro valverde and astana greg henderson`:
```sql
                SELECT MAX("stage") FROM "riders_jersey_progress_table" WHERE "general_classification"='Alejandro Valverde' AND "team_classification"='Astana' AND "winner"='Greg Henderson';
```
## Task
Generate a SQL query to answer the following question:
`When the Border Conference was held, who was 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 `When the Border Conference was held, who was the tournament winner?`:
```sql
                SELECT "tournament_winner" FROM "conference_winners_and_tournaments" WHERE "conference"='Border Conference';
```
## Task
Generate a SQL query to answer the following question:
`When Princeton was the regular season winner, who was 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 `When Princeton was the regular season winner, who was the tournament winner?`:
```sql
                SELECT "tournament_winner" FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Princeton';
```
## Task
Generate a SQL query to answer the following question:
`When Wyoming won the regular season, who was the conference player of the year?`

### 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 Wyoming won the regular season, who was the conference player of the year?`:
```sql
                SELECT "conference_player_of_the_year" FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Wyoming';
```
## Task
Generate a SQL query to answer the following question:
`How long has Mel Daniels been playing?`

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

CREATE TABLE "roster" (
  "number" real,
  "name" text,
  "position" text,
  "height" text,
  "experience" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long has Mel Daniels been playing?`:
```sql
                SELECT "experience" FROM "roster" WHERE "name"='Mel Daniels';
```
## Task
Generate a SQL query to answer the following question:
`What position did the player from San Jose State play?`

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

CREATE TABLE "roster" (
  "number" real,
  "name" text,
  "position" text,
  "height" text,
  "experience" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the player from San Jose State play?`:
```sql
                SELECT "position" FROM "roster" WHERE "college"='San Jose State';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of the player that was 6-6?`

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

CREATE TABLE "roster" (
  "number" real,
  "name" text,
  "position" text,
  "height" text,
  "experience" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of the player that was 6-6?`:
```sql
                SELECT "number" FROM "roster" WHERE "height"='6-6';
```
## Task
Generate a SQL query to answer the following question:
`If the song choice is Coba and the order number is 10, what is the result?`

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

CREATE TABLE "performances_and_result" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the song choice is Coba and the order number is 10, what is the result?`:
```sql
                SELECT "result" FROM "performances_and_result" WHERE "order_num"='10' AND "song_choice"='Coba';
```
## Task
Generate a SQL query to answer the following question:
`What is the result if Coba is the song choice?`

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

CREATE TABLE "performances_and_result" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result if Coba is the song choice?`:
```sql
                SELECT "result" FROM "performances_and_result" WHERE "song_choice"='Coba';
```
## Task
Generate a SQL query to answer the following question:
`If Coba is the song choice, what is the order number?`

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

CREATE TABLE "performances_and_result" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `If Coba is the song choice, what is the order number?`:
```sql
                SELECT "order_num" FROM "performances_and_result" WHERE "song_choice"='Coba';
```
## Task
Generate a SQL query to answer the following question:
`If Crazy In Love is the song choice, what is the theme?`

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

CREATE TABLE "performances_and_result" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `If Crazy In Love is the song choice, what is the theme?`:
```sql
                SELECT "theme" FROM "performances_and_result" WHERE "song_choice"='Crazy In Love';
```
## Task
Generate a SQL query to answer the following question:
`For week number of the top 40, what was the results?`

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

CREATE TABLE "performances_and_result" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For week number of the top 40, what was the results?`:
```sql
                SELECT "result" FROM "performances_and_result" WHERE "week_num"='Top 40';
```
## Task
Generate a SQL query to answer the following question:
`For week of top 9, what were the results?`

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

CREATE TABLE "performances_and_result" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For week of top 9, what were the results?`:
```sql
                SELECT "result" FROM "performances_and_result" WHERE "week_num"='Top 9';
```
## Task
Generate a SQL query to answer the following question:
`The city of Birmingham is what type of location?`

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

CREATE TABLE "group_membership" (
  "city" text,
  "county" text,
  "region" text,
  "local_authority" text,
  "type" text,
  "population" real,
  "urban_area" real,
  "metropolitan_area" real
);
### SQL
Given the database schema, here is the SQL query that answers `The city of Birmingham is what type of location?`:
```sql
                SELECT "type" FROM "group_membership" WHERE "city"='Birmingham';
```
## Task
Generate a SQL query to answer the following question:
`Leeds City Council is the local authority for what type of location?`

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

CREATE TABLE "group_membership" (
  "city" text,
  "county" text,
  "region" text,
  "local_authority" text,
  "type" text,
  "population" real,
  "urban_area" real,
  "metropolitan_area" real
);
### SQL
Given the database schema, here is the SQL query that answers `Leeds City Council is the local authority for what type of location?`:
```sql
                SELECT "type" FROM "group_membership" WHERE "local_authority"='Leeds City Council';
```
## Task
Generate a SQL query to answer the following question:
`Tyne and Wear County has what total membership for their metropolitan area?`

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

CREATE TABLE "group_membership" (
  "city" text,
  "county" text,
  "region" text,
  "local_authority" text,
  "type" text,
  "population" real,
  "urban_area" real,
  "metropolitan_area" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tyne and Wear County has what total membership for their metropolitan area?`:
```sql
                SELECT "metropolitan_area" FROM "group_membership" WHERE "county"='Tyne and Wear';
```
## Task
Generate a SQL query to answer the following question:
`What is the total membership for the metropolitan area in the city of Manchester?`

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

CREATE TABLE "group_membership" (
  "city" text,
  "county" text,
  "region" text,
  "local_authority" text,
  "type" text,
  "population" real,
  "urban_area" real,
  "metropolitan_area" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total membership for the metropolitan area in the city of Manchester?`:
```sql
                SELECT MAX("metropolitan_area") FROM "group_membership" WHERE "city"='Manchester';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up (a) if K. P. Ramalingam won the election?`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up (a) if K. P. Ramalingam won the election?`:
```sql
                SELECT "runner_up_a" FROM "list_of_elected_m_ps" WHERE "winner"='K. P. Ramalingam';
```
## Task
Generate a SQL query to answer the following question:
`When 1 (5) is the races what is the team name?`

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

CREATE TABLE "summary" (
  "year" real,
  "class" text,
  "team_name" text,
  "bike" text,
  "riders" text,
  "races" text,
  "wins" real,
  "podiums" real,
  "poles" real,
  "f_laps" real,
  "points" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1 (5) is the races what is the team name?`:
```sql
                SELECT "team_name" FROM "summary" WHERE "races"='1 (5)';
```
## Task
Generate a SQL query to answer the following question:
`When 19th is the position what is the highest amount of poles?`

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

CREATE TABLE "summary" (
  "year" real,
  "class" text,
  "team_name" text,
  "bike" text,
  "riders" text,
  "races" text,
  "wins" real,
  "podiums" real,
  "poles" real,
  "f_laps" real,
  "points" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 19th is the position what is the highest amount of poles?`:
```sql
                SELECT MAX("poles") FROM "summary" WHERE "pos"='19th';
```
## Task
Generate a SQL query to answer the following question:
`When 86  is the amount of points what is the position?`

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

CREATE TABLE "summary" (
  "year" real,
  "class" text,
  "team_name" text,
  "bike" text,
  "riders" text,
  "races" text,
  "wins" real,
  "podiums" real,
  "poles" real,
  "f_laps" real,
  "points" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 86  is the amount of points what is the position?`:
```sql
                SELECT "pos" FROM "summary" WHERE "points"=86;
```
## Task
Generate a SQL query to answer the following question:
`Name the most margin for nco party and p. ramachandran won`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most margin for nco party and p. ramachandran won`:
```sql
                SELECT MAX("margin") FROM "list_of_elected_m_ps" WHERE "party"='NCO' AND "winner"='P. Ramachandran';
```
## Task
Generate a SQL query to answer the following question:
`Name the party a for m. s. k. sathiyendran runner up`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the party a for m. s. k. sathiyendran runner up`:
```sql
                SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='M. S. K. Sathiyendran';
```
## Task
Generate a SQL query to answer the following question:
`Name the party a for  sriperumbudur`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the party a for  sriperumbudur`:
```sql
                SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "constituency"='Sriperumbudur';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of runner up a for  perambalur`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of runner up a for  perambalur`:
```sql
                SELECT COUNT("runner_up_a") FROM "list_of_elected_m_ps" WHERE "constituency"='Perambalur';
```
## Task
Generate a SQL query to answer the following question:
`Name the constituency for 175130`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the constituency for 175130`:
```sql
                SELECT "constituency" FROM "list_of_elected_m_ps" WHERE "margin"=175130;
```
## Task
Generate a SQL query to answer the following question:
`How many margins have a winner of S. Singaravadivel?`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many margins have a winner of S. Singaravadivel?`:
```sql
                SELECT COUNT("margin") FROM "list_of_elected_m_ps" WHERE "winner"='S. Singaravadivel';
```
## Task
Generate a SQL query to answer the following question:
`How many winners have a runner-up of A. Karthikeyan?`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winners have a runner-up of A. Karthikeyan?`:
```sql
                SELECT COUNT("winner") FROM "list_of_elected_m_ps" WHERE "runner_up_a"='A. Karthikeyan';
```
## Task
Generate a SQL query to answer the following question:
`What is every party with a winner of P. Chidambaram?`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every party with a winner of P. Chidambaram?`:
```sql
                SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "winner"='P. Chidambaram';
```
## Task
Generate a SQL query to answer the following question:
`What is every party A with a constituency of Tiruchendur?`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every party A with a constituency of Tiruchendur?`:
```sql
                SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "constituency"='Tiruchendur';
```
## Task
Generate a SQL query to answer the following question:
`Who is the constituency when the runner-up was d. Venugopal? `

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the constituency when the runner-up was d. Venugopal? `:
```sql
                SELECT "constituency" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='D. Venugopal';
```
## Task
Generate a SQL query to answer the following question:
`What is the party where the constituency is 10. Tindivanam? `

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party where the constituency is 10. Tindivanam? `:
```sql
                SELECT "party" FROM "list_of_elected_m_ps" WHERE "constituency"='10. Tindivanam';
```
## Task
Generate a SQL query to answer the following question:
`What is the party when the constituency is 1. Chennai North? `

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party when the constituency is 1. Chennai North? `:
```sql
                SELECT "party" FROM "list_of_elected_m_ps" WHERE "constituency"='1. Chennai North';
```
## Task
Generate a SQL query to answer the following question:
`How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? `

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? `:
```sql
                SELECT COUNT("margin") FROM "list_of_elected_m_ps" WHERE "party"='Indian National Congress' AND "winner"='L. Adaikalaraj c';
```
## Task
Generate a SQL query to answer the following question:
`What is the margin when k. balathandayutham is the winner?`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the margin when k. balathandayutham is the winner?`:
```sql
                SELECT MAX("margin") FROM "list_of_elected_m_ps" WHERE "winner"='K. Balathandayutham';
```
## Task
Generate a SQL query to answer the following question:
`What is the margin when periyakulam is the constituency?`

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

CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the margin when periyakulam is the constituency?`:
```sql
                SELECT "margin" FROM "list_of_elected_m_ps" WHERE "constituency"='Periyakulam';
```
## Task
Generate a SQL query to answer the following question:
`Who had the pole position in the August 15, 1981 race? `

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "type" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the pole position in the August 15, 1981 race? `:
```sql
                SELECT "pole_position" FROM "schedule_and_results" WHERE "date"='August 15, 1981';
```
## Task
Generate a SQL query to answer the following question:
`Which track was used on September 12, 1981? `

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

CREATE TABLE "schedule_and_results" (
  "rnd" real,
  "date" text,
  "race_name" text,
  "length" text,
  "track" text,
  "location" text,
  "type" text,
  "pole_position" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which track was used on September 12, 1981? `:
```sql
                SELECT "track" FROM "schedule_and_results" WHERE "date"='September 12, 1981';
```
## Task
Generate a SQL query to answer the following question:
`Name the park and ride for university of washington`

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

CREATE TABLE "stations_under_construction" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" real,
  "transit_connections" text,
  "park_and_ride" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the park and ride for university of washington`:
```sql
                SELECT "park_and_ride" FROM "stations_under_construction" WHERE "city_neighborhood"='University of Washington';
```
## Task
Generate a SQL query to answer the following question:
`Name the extension for university of washington`

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

CREATE TABLE "stations_under_construction" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" real,
  "transit_connections" text,
  "park_and_ride" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the extension for university of washington`:
```sql
                SELECT "extension" FROM "stations_under_construction" WHERE "city_neighborhood"='University of Washington';
```
## Task
Generate a SQL query to answer the following question:
`Name the least projected opening`

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

CREATE TABLE "stations_under_construction" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" real,
  "transit_connections" text,
  "park_and_ride" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least projected opening`:
```sql
                SELECT MIN("projected_opening") FROM "stations_under_construction";
```
## Task
Generate a SQL query to answer the following question:
`Name the transit connections for capitol hill u`

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

CREATE TABLE "stations_under_construction" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" real,
  "transit_connections" text,
  "park_and_ride" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the transit connections for capitol hill u`:
```sql
                SELECT "transit_connections" FROM "stations_under_construction" WHERE "station"='Capitol Hill U';
```
## Task
Generate a SQL query to answer the following question:
`Name the park and ride for roosevelt u`

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

CREATE TABLE "stations_under_construction" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" real,
  "transit_connections" text,
  "park_and_ride" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the park and ride for roosevelt u`:
```sql
                SELECT "park_and_ride" FROM "stations_under_construction" WHERE "station"='Roosevelt U';
```
## Task
Generate a SQL query to answer the following question:
`How many park and rides are proposed for Overlake Village?`

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

CREATE TABLE "planned_or_proposed_stations" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" text,
  "park_and_ride" text,
  "funded_by_st2" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many park and rides are proposed for Overlake Village?`:
```sql
                SELECT COUNT("park_and_ride") FROM "planned_or_proposed_stations" WHERE "station"='Overlake Village';
```
## Task
Generate a SQL query to answer the following question:
`How many neighborhoods have a station proposed at a Hospital?`

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

CREATE TABLE "planned_or_proposed_stations" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" text,
  "park_and_ride" text,
  "funded_by_st2" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many neighborhoods have a station proposed at a Hospital?`:
```sql
                SELECT COUNT("city_neighborhood") FROM "planned_or_proposed_stations" WHERE "station"='Hospital';
```
## Task
Generate a SQL query to answer the following question:
`What are all the City/Neighborhoods whose extension is East Link and proposed parking lot status is yes and whose proposed station is Overlake transit Center?`

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

CREATE TABLE "planned_or_proposed_stations" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" text,
  "park_and_ride" text,
  "funded_by_st2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the City/Neighborhoods whose extension is East Link and proposed parking lot status is yes and whose proposed station is Overlake transit Center?`:
```sql
                SELECT "city_neighborhood" FROM "planned_or_proposed_stations" WHERE "extension"='East Link' AND "park_and_ride"='Yes' AND "station"='Overlake Transit Center';
```
## Task
Generate a SQL query to answer the following question:
`What is the funded by st2 status of the Redondo/Star Lake station?`

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

CREATE TABLE "planned_or_proposed_stations" (
  "station" text,
  "extension" text,
  "city_neighborhood" text,
  "projected_opening" text,
  "park_and_ride" text,
  "funded_by_st2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the funded by st2 status of the Redondo/Star Lake station?`:
```sql
                SELECT "funded_by_st2" FROM "planned_or_proposed_stations" WHERE "station"='Redondo/Star Lake';
```
## Task
Generate a SQL query to answer the following question:
`What are the transit connections from Pioneer Square U?`

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

CREATE TABLE "stations" (
  "station" text,
  "line_s" text,
  "city_neighborhood" text,
  "year_opened" real,
  "transit_connections" text,
  "park_and_ride" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the transit connections from Pioneer Square U?`:
```sql
                SELECT "transit_connections" FROM "stations" WHERE "station"='Pioneer Square U';
```