cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many locations have the callsign DXGH?`

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

CREATE TABLE "dzrh_nationwide" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "station_type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many locations have the callsign DXGH?`:
```sql
                SELECT COUNT("location") FROM "dzrh_nationwide" WHERE "callsign"='DXGH';
```
## Task
Generate a SQL query to answer the following question:
`Where are the broadcasting companys with the callsign DWRH located?`

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

CREATE TABLE "dzrh_nationwide" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "station_type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where are the broadcasting companys with the callsign DWRH located?`:
```sql
                SELECT "location" FROM "dzrh_nationwide" WHERE "callsign"='DWRH';
```
## Task
Generate a SQL query to answer the following question:
`Where is the audition city when the venue is upi convention center?`

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

CREATE TABLE "table1_28793672_1" (
  "episode_air_date" text,
  "audition_city" text,
  "date" text,
  "venue" text,
  "callback_date" text,
  "callback_venue" text,
  "golden_tickets" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the audition city when the venue is upi convention center?`:
```sql
                SELECT "audition_city" FROM "table1_28793672_1" WHERE "venue"='UPI Convention Center';
```
## Task
Generate a SQL query to answer the following question:
`How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?`

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

CREATE TABLE "table1_28793672_1" (
  "episode_air_date" text,
  "audition_city" text,
  "date" text,
  "venue" text,
  "callback_date" text,
  "callback_venue" text,
  "golden_tickets" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?`:
```sql
                SELECT COUNT("golden_tickets") FROM "table1_28793672_1" WHERE "callback_venue"='RCTI Studio, Jakarta';
```
## Task
Generate a SQL query to answer the following question:
`In what year was 1.35% the average vote per candidate?`

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

CREATE TABLE "general_election_results" (
  "year" text,
  "candidates" real,
  "total_votes" real,
  "average_votes_per_candidate" real,
  "pct_of_total_vote" text,
  "average_pct_of_vote_per_candidate" text,
  "saved_deposits" real,
  "number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was 1.35% the average vote per candidate?`:
```sql
                SELECT "year" FROM "general_election_results" WHERE "average_pct_of_vote_per_candidate"='1.35';
```
## Task
Generate a SQL query to answer the following question:
`When 3.29% was the average per candidate, what was the number of average votes per candidate?`

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

CREATE TABLE "general_election_results" (
  "year" text,
  "candidates" real,
  "total_votes" real,
  "average_votes_per_candidate" real,
  "pct_of_total_vote" text,
  "average_pct_of_vote_per_candidate" text,
  "saved_deposits" real,
  "number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 3.29% was the average per candidate, what was the number of average votes per candidate?`:
```sql
                SELECT MIN("average_votes_per_candidate") FROM "general_election_results" WHERE "average_pct_of_vote_per_candidate"='3.29';
```
## Task
Generate a SQL query to answer the following question:
`What was the percentage of total votes in 1997?`

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

CREATE TABLE "general_election_results" (
  "year" text,
  "candidates" real,
  "total_votes" real,
  "average_votes_per_candidate" real,
  "pct_of_total_vote" text,
  "average_pct_of_vote_per_candidate" text,
  "saved_deposits" real,
  "number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage of total votes in 1997?`:
```sql
                SELECT "pct_of_total_vote" FROM "general_election_results" WHERE "year"='1997';
```
## Task
Generate a SQL query to answer the following question:
`How many shows were launched on CBS (2002)?`

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

CREATE TABLE "dramas" (
  "no" real,
  "name" text,
  "country" text,
  "original_channel" text,
  "no_of_episodes" real,
  "running_time" text,
  "launched" text,
  "date" text,
  "irst" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many shows were launched on CBS (2002)?`:
```sql
                SELECT COUNT("launched") FROM "dramas" WHERE "original_channel"='CBS (2002)';
```
## Task
Generate a SQL query to answer the following question:
`How many IRST figures for the show that premiered on Canale 5 (2006)?`

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

CREATE TABLE "dramas" (
  "no" real,
  "name" text,
  "country" text,
  "original_channel" text,
  "no_of_episodes" real,
  "running_time" text,
  "launched" text,
  "date" text,
  "irst" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many IRST figures for the show that premiered on Canale 5 (2006)?`:
```sql
                SELECT COUNT("irst") FROM "dramas" WHERE "original_channel"='Canale 5 (2006)';
```
## Task
Generate a SQL query to answer the following question:
`What is the original channel of the show with 88 episodes?`

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

CREATE TABLE "dramas" (
  "no" real,
  "name" text,
  "country" text,
  "original_channel" text,
  "no_of_episodes" real,
  "running_time" text,
  "launched" text,
  "date" text,
  "irst" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original channel of the show with 88 episodes?`:
```sql
                SELECT "original_channel" FROM "dramas" WHERE "no_of_episodes"=88;
```
## Task
Generate a SQL query to answer the following question:
`What are the dates that Falling Angel aired?`

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

CREATE TABLE "dramas" (
  "no" real,
  "name" text,
  "country" text,
  "original_channel" text,
  "no_of_episodes" real,
  "running_time" text,
  "launched" text,
  "date" text,
  "irst" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dates that Falling Angel aired?`:
```sql
                SELECT "date" FROM "dramas" WHERE "name"='Falling Angel';
```
## Task
Generate a SQL query to answer the following question:
`How many economy stats for the player with 2/19 BBI?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many economy stats for the player with 2/19 BBI?`:
```sql
                SELECT COUNT("economy") FROM "bowling_averages" WHERE "bbi"='2/19';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player with an average of 35.42?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player with an average of 35.42?`:
```sql
                SELECT "player" FROM "bowling_averages" WHERE "average"='35.42';
```
## Task
Generate a SQL query to answer the following question:
`What is the economy of the player with BBI of 3/33?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the economy of the player with BBI of 3/33?`:
```sql
                SELECT "economy" FROM "bowling_averages" WHERE "bbi"='3/33';
```
## Task
Generate a SQL query to answer the following question:
`What is the average when the highest score is 151?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average when the highest score is 151?`:
```sql
                SELECT "average" FROM "batting_averages" WHERE "highest_score"='151';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player when the highest score is 84?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player when the highest score is 84?`:
```sql
                SELECT "player" FROM "batting_averages" WHERE "highest_score"='84';
```
## Task
Generate a SQL query to answer the following question:
`How many runs are there when the highest score is 228*?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs are there when the highest score is 228*?`:
```sql
                SELECT MIN("runs") FROM "batting_averages" WHERE "highest_score"='228*';
```
## Task
Generate a SQL query to answer the following question:
`What is the average when the 100s is listed as 7?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average when the 100s is listed as 7?`:
```sql
                SELECT "average" FROM "batting_averages" WHERE "100s"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the innings when the highest score is 72?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the innings when the highest score is 72?`:
```sql
                SELECT MAX("innings") FROM "batting_averages" WHERE "highest_score"='72';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number listed for matches?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number listed for matches?`:
```sql
                SELECT MAX("matches") FROM "batting_averages";
```
## Task
Generate a SQL query to answer the following question:
`How many entries is under 50s column when the average is 39.60?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries is under 50s column when the average is 39.60?`:
```sql
                SELECT "50s" FROM "batting_averages" WHERE "average"='39.60';
```
## Task
Generate a SQL query to answer the following question:
`How many runs are there when the 50s column is 3?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs are there when the 50s column is 3?`:
```sql
                SELECT MIN("runs") FROM "batting_averages" WHERE "50s"=3;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player when the average is 69.66?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player when the average is 69.66?`:
```sql
                SELECT "player" FROM "batting_averages" WHERE "average"='69.66';
```
## Task
Generate a SQL query to answer the following question:
`what is the minimumfor 5wi?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real,
  "10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimumfor 5wi?`:
```sql
                SELECT MIN("5wi") FROM "bowling_averages";
```
## Task
Generate a SQL query to answer the following question:
`how many 10wi and bbi is 6/101`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real,
  "10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many 10wi and bbi is 6/101`:
```sql
                SELECT COUNT("10wi") FROM "bowling_averages" WHERE "bbi"='6/101';
```
## Task
Generate a SQL query to answer the following question:
`how many innings had bbi 4/26?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real,
  "10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many innings had bbi 4/26?`:
```sql
                SELECT "innings" FROM "bowling_averages" WHERE "bbi"='4/26';
```
## Task
Generate a SQL query to answer the following question:
`how many 5wi with an average of 33.13?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real,
  "10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many 5wi with an average of 33.13?`:
```sql
                SELECT COUNT("5wi") FROM "bowling_averages" WHERE "average"='33.13';
```
## Task
Generate a SQL query to answer the following question:
`how many innings have an average of 19.60?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real,
  "10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many innings have an average of 19.60?`:
```sql
                SELECT "innings" FROM "bowling_averages" WHERE "average"='19.60';
```
## Task
Generate a SQL query to answer the following question:
`What is the average when the BBI is 3/27?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average when the BBI is 3/27?`:
```sql
                SELECT "average" FROM "bowling_averages" WHERE "bbi"='3/27';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player when the economy is 6.14?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player when the economy is 6.14?`:
```sql
                SELECT "player" FROM "bowling_averages" WHERE "economy"='6.14';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player when the economy is 5.29?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player when the economy is 5.29?`:
```sql
                SELECT "player" FROM "bowling_averages" WHERE "economy"='5.29';
```
## Task
Generate a SQL query to answer the following question:
`What the number of matches when the BBI is 3/27?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What the number of matches when the BBI is 3/27?`:
```sql
                SELECT MIN("matches") FROM "bowling_averages" WHERE "bbi"='3/27';
```
## Task
Generate a SQL query to answer the following question:
`What is the BBI whent the economy is 5.68?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the BBI whent the economy is 5.68?`:
```sql
                SELECT "bbi" FROM "bowling_averages" WHERE "economy"='5.68';
```
## Task
Generate a SQL query to answer the following question:
`What is the year listed when tied is listed as 11?`

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

CREATE TABLE "short_tournaments" (
  "year" text,
  "position" real,
  "games_played" real,
  "won" real,
  "tied" real,
  "lost" real,
  "goals_scored" real,
  "goals_against" real,
  "points" real,
  "postseason_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year listed when tied is listed as 11?`:
```sql
                SELECT "year" FROM "short_tournaments" WHERE "tied"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the goals against listed when the goals scored is 30?`

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

CREATE TABLE "short_tournaments" (
  "year" text,
  "position" real,
  "games_played" real,
  "won" real,
  "tied" real,
  "lost" real,
  "goals_scored" real,
  "goals_against" real,
  "points" real,
  "postseason_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goals against listed when the goals scored is 30?`:
```sql
                SELECT "goals_against" FROM "short_tournaments" WHERE "goals_scored"=30;
```
## Task
Generate a SQL query to answer the following question:
`How many goals scored entries are listed when the year is verano 2001?`

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

CREATE TABLE "short_tournaments" (
  "year" text,
  "position" real,
  "games_played" real,
  "won" real,
  "tied" real,
  "lost" real,
  "goals_scored" real,
  "goals_against" real,
  "points" real,
  "postseason_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals scored entries are listed when the year is verano 2001?`:
```sql
                SELECT COUNT("goals_scored") FROM "short_tournaments" WHERE "year"='Verano 2001';
```
## Task
Generate a SQL query to answer the following question:
`What are goals scored when postition is 17 and tied is 5?`

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

CREATE TABLE "short_tournaments" (
  "year" text,
  "position" real,
  "games_played" real,
  "won" real,
  "tied" real,
  "lost" real,
  "goals_scored" real,
  "goals_against" real,
  "points" real,
  "postseason_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are goals scored when postition is 17 and tied is 5?`:
```sql
                SELECT "goals_scored" FROM "short_tournaments" WHERE "position"=17 AND "tied"=5;
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?`

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

CREATE TABLE "jersey_progression" (
  "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 was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?`:
```sql
                SELECT "winner" FROM "jersey_progression" WHERE "mountains_classification"='Jaime Vergara' AND "team_classification"='Col es Pasion Café De Colombia 472';
```
## Task
Generate a SQL query to answer the following question:
`Who was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao?`

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

CREATE TABLE "jersey_progression" (
  "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 was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao?`:
```sql
                SELECT "general_classification" FROM "jersey_progression" WHERE "winner"='Sergio Luis Henao' AND "points_classification"='Sergio Luis Henao';
```
## Task
Generate a SQL query to answer the following question:
`Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une?`

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

CREATE TABLE "jersey_progression" (
  "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 were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une?`:
```sql
                SELECT "winner" FROM "jersey_progression" WHERE "mountains_classification"='Oscar Solis' AND "team_classification"='EPM-UNE';
```
## Task
Generate a SQL query to answer the following question:
`In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis?`

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

CREATE TABLE "jersey_progression" (
  "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 `In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis?`:
```sql
                SELECT "stage" FROM "jersey_progression" WHERE "team_classification"='EPM-UNE' AND "mountains_classification"='Oscar Solis' AND "winner"='Jaime Vergara';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest series number for "The Devil Made Me Do It"?`

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

CREATE TABLE "season_1_2003_2004" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest series number for "The Devil Made Me Do It"?`:
```sql
                SELECT MAX("series_num") FROM "season_1_2003_2004" WHERE "title"='\"The Devil Made Me Do It\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode series number for "The Devil Made Me Do It" ?`

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

CREATE TABLE "season_1_2003_2004" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode series number for "The Devil Made Me Do It" ?`:
```sql
                SELECT COUNT("series_num") FROM "season_1_2003_2004" WHERE "title"='\"The Devil Made Me Do It\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for "State of Grace"?`

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

CREATE TABLE "season_1_2003_2004" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for "State of Grace"?`:
```sql
                SELECT MAX("production_code") FROM "season_1_2003_2004" WHERE "title"='\"State of Grace\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that aired November 21, 2003?`

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

CREATE TABLE "season_1_2003_2004" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that aired November 21, 2003?`:
```sql
                SELECT "directed_by" FROM "season_1_2003_2004" WHERE "original_air_date"='November 21, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode series number of "St. Joan"?`

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

CREATE TABLE "season_1_2003_2004" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode series number of "St. Joan"?`:
```sql
                SELECT "series_num" FROM "season_1_2003_2004" WHERE "title"='\"St. Joan\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episode titles have series number 4?`

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

CREATE TABLE "season_1_2003_2004" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episode titles have series number 4?`:
```sql
                SELECT COUNT("title") FROM "season_1_2003_2004" WHERE "series_num"=4;
```
## Task
Generate a SQL query to answer the following question:
`How may college/junior/club team has a the nhl team listed as Colorado Avalanche?`

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

CREATE TABLE "round_five" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How may college/junior/club team has a the nhl team listed as Colorado Avalanche?`:
```sql
                SELECT COUNT("college_junior_club_team") FROM "round_five" WHERE "nhl_team"='Colorado Avalanche';
```
## Task
Generate a SQL query to answer the following question:
`What player was picked by the New York Rangers?`

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

CREATE TABLE "round_two" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was picked by the New York Rangers?`:
```sql
                SELECT "player" FROM "round_two" WHERE "nhl_team"='New York Rangers';
```
## Task
Generate a SQL query to answer the following question:
`What position did the draft pick for Toronto Maple Leafs play?`

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

CREATE TABLE "round_eight" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the draft pick for Toronto Maple Leafs play?`:
```sql
                SELECT "position" FROM "round_eight" WHERE "nhl_team"='Toronto Maple Leafs';
```
## Task
Generate a SQL query to answer the following question:
`Who did Edmonton Oilers get for their draft pick?`

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

CREATE TABLE "round_eight" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did Edmonton Oilers get for their draft pick?`:
```sql
                SELECT "player" FROM "round_eight" WHERE "nhl_team"='Edmonton Oilers';
```
## Task
Generate a SQL query to answer the following question:
`What college team did Milan Kostolny play for?`

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

CREATE TABLE "round_eight" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college team did Milan Kostolny play for?`:
```sql
                SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Milan Kostolny';
```
## Task
Generate a SQL query to answer the following question:
`What player was picked for Buffalo Sabres?`

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

CREATE TABLE "round_eight" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was picked for Buffalo Sabres?`:
```sql
                SELECT "player" FROM "round_eight" WHERE "nhl_team"='Buffalo Sabres';
```
## Task
Generate a SQL query to answer the following question:
`What NHL team picked Sergei Luchinkin?`

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

CREATE TABLE "round_eight" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What NHL team picked Sergei Luchinkin?`:
```sql
                SELECT "nhl_team" FROM "round_eight" WHERE "player"='Sergei Luchinkin';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum MotoGP/500cc ranking?`

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

CREATE TABLE "grand_prix_motorcycle_racing_world_champ" (
  "rank" real,
  "rider" text,
  "country" text,
  "winning_span" text,
  "moto_gp_500cc" real,
  "350cc" real,
  "moto2_250cc" real,
  "moto3_125cc" real,
  "80cc_50cc" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum MotoGP/500cc ranking?`:
```sql
                SELECT MIN("moto_gp_500cc") FROM "grand_prix_motorcycle_racing_world_champ";
```
## Task
Generate a SQL query to answer the following question:
`Who was the conference player of the year from an independent conference?`

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

CREATE TABLE "table1_28884880_4" (
  "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 `Who was the conference player of the year from an independent conference?`:
```sql
                SELECT "conference_player_of_the_year" FROM "table1_28884880_4" WHERE "conference"='Independent';
```
## Task
Generate a SQL query to answer the following question:
`Who was the conference player of the year when Alabama State was the tournament winner?`

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

CREATE TABLE "table1_28884880_4" (
  "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 `Who was the conference player of the year when Alabama State was the tournament winner?`:
```sql
                SELECT "conference_player_of_the_year" FROM "table1_28884880_4" WHERE "tournament_winner"='Alabama State';
```
## Task
Generate a SQL query to answer the following question:
`Who was the tournament winner in the Southwestern Athletic Conference?`

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

CREATE TABLE "table1_28884880_4" (
  "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 `Who was the tournament winner in the Southwestern Athletic Conference?`:
```sql
                SELECT "tournament_winner" FROM "table1_28884880_4" WHERE "conference"='Southwestern Athletic Conference';
```
## Task
Generate a SQL query to answer the following question:
`what is the crashandride cymbalpads for the drumset name td-9k2`

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

CREATE TABLE "list_of_roland_drum_sets" (
  "drum_set_name" text,
  "product_line" text,
  "years_available" text,
  "drum_module" text,
  "kick_drum_pad" text,
  "snare_pad" text,
  "tom_tom_pads" text,
  "hi_hat_pad_controller" text,
  "crashand_ride_cymbal_pads" text,
  "drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the crashandride cymbalpads for the drumset name td-9k2`:
```sql
                SELECT "crashand_ride_cymbal_pads" FROM "list_of_roland_drum_sets" WHERE "drum_set_name"='TD-9K2';
```
## Task
Generate a SQL query to answer the following question:
`how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are`

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

CREATE TABLE "list_of_roland_drum_sets" (
  "drum_set_name" text,
  "product_line" text,
  "years_available" text,
  "drum_module" text,
  "kick_drum_pad" text,
  "snare_pad" text,
  "tom_tom_pads" text,
  "hi_hat_pad_controller" text,
  "crashand_ride_cymbal_pads" text,
  "drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are`:
```sql
                SELECT COUNT("drum_set_name") FROM "list_of_roland_drum_sets" WHERE "drum_stand_oftenoptional"='HD-1/3Stand' AND "tom_tom_pads"='3xCloth-Head';
```
## Task
Generate a SQL query to answer the following question:
`in which year was available the  rubber as kickdrum pad`

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

CREATE TABLE "list_of_roland_drum_sets" (
  "drum_set_name" text,
  "product_line" text,
  "years_available" text,
  "drum_module" text,
  "kick_drum_pad" text,
  "snare_pad" text,
  "tom_tom_pads" text,
  "hi_hat_pad_controller" text,
  "crashand_ride_cymbal_pads" text,
  "drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `in which year was available the  rubber as kickdrum pad`:
```sql
                SELECT "years_available" FROM "list_of_roland_drum_sets" WHERE "kick_drum_pad"='Rubber';
```
## Task
Generate a SQL query to answer the following question:
`in the drum module td-5 what are the tom-tom pads`

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

CREATE TABLE "list_of_roland_drum_sets" (
  "drum_set_name" text,
  "product_line" text,
  "years_available" text,
  "drum_module" text,
  "kick_drum_pad" text,
  "snare_pad" text,
  "tom_tom_pads" text,
  "hi_hat_pad_controller" text,
  "crashand_ride_cymbal_pads" text,
  "drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `in the drum module td-5 what are the tom-tom pads`:
```sql
                SELECT "tom_tom_pads" FROM "list_of_roland_drum_sets" WHERE "drum_module"='TD-5';
```
## Task
Generate a SQL query to answer the following question:
`for the drumset name td-15k how many snare pads are`

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

CREATE TABLE "list_of_roland_drum_sets" (
  "drum_set_name" text,
  "product_line" text,
  "years_available" text,
  "drum_module" text,
  "kick_drum_pad" text,
  "snare_pad" text,
  "tom_tom_pads" text,
  "hi_hat_pad_controller" text,
  "crashand_ride_cymbal_pads" text,
  "drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the drumset name td-15k how many snare pads are`:
```sql
                SELECT COUNT("snare_pad") FROM "list_of_roland_drum_sets" WHERE "drum_set_name"='TD-15K';
```
## Task
Generate a SQL query to answer the following question:
`Who won the race on June 26?`

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

CREATE TABLE "table1_28925058_1" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race on June 26?`:
```sql
                SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='June 26';
```
## Task
Generate a SQL query to answer the following question:
`Who won the race on August 15?`

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

CREATE TABLE "table1_28925058_1" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race on August 15?`:
```sql
                SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='August 15';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the Italian Grand Prix?`

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

CREATE TABLE "table1_28925058_1" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the Italian Grand Prix?`:
```sql
                SELECT "date" FROM "table1_28925058_1" WHERE "grand_prix"='Italian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`How many dates did Daniel Ruiz win the Spanish Grand Prix?`

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

CREATE TABLE "table1_28925058_1" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates did Daniel Ruiz win the Spanish Grand Prix?`:
```sql
                SELECT COUNT("date") FROM "table1_28925058_1" WHERE "grand_prix"='Spanish Grand Prix' AND "race_winner"='Daniel Ruiz';
```
## Task
Generate a SQL query to answer the following question:
`Who won the race on May 1?`

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

CREATE TABLE "table1_28925058_1" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race on May 1?`:
```sql
                SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='May 1';
```
## Task
Generate a SQL query to answer the following question:
`When james rutherford is the incumbent how many dates are there?`

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

CREATE TABLE "changes_during_term" (
  "by_election" real,
  "electorate" text,
  "date" text,
  "incumbent" text,
  "reason" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When james rutherford is the incumbent how many dates are there?`:
```sql
                SELECT COUNT("date") FROM "changes_during_term" WHERE "incumbent"='James Rutherford';
```
## Task
Generate a SQL query to answer the following question:
`When edward shaw is the winner what is the date?`

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

CREATE TABLE "changes_during_term" (
  "by_election" real,
  "electorate" text,
  "date" text,
  "incumbent" text,
  "reason" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When edward shaw is the winner what is the date?`:
```sql
                SELECT "date" FROM "changes_during_term" WHERE "winner"='Edward Shaw';
```
## Task
Generate a SQL query to answer the following question:
`When peninsula is the electorate what is the reason?`

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

CREATE TABLE "changes_during_term" (
  "by_election" real,
  "electorate" text,
  "date" text,
  "incumbent" text,
  "reason" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When peninsula is the electorate what is the reason?`:
```sql
                SELECT "reason" FROM "changes_during_term" WHERE "electorate"='Peninsula';
```
## Task
Generate a SQL query to answer the following question:
`When james seaton is the incumbent what is the reason?`

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

CREATE TABLE "changes_during_term" (
  "by_election" real,
  "electorate" text,
  "date" text,
  "incumbent" text,
  "reason" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When james seaton is the incumbent what is the reason?`:
```sql
                SELECT "reason" FROM "changes_during_term" WHERE "incumbent"='James Seaton';
```
## Task
Generate a SQL query to answer the following question:
`What was the handicap when the prize money was 120s?`

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

CREATE TABLE "race_record" (
  "age" real,
  "date" text,
  "track" text,
  "race" text,
  "distance_miles" text,
  "jockey" text,
  "handicap" text,
  "field_no_horses" text,
  "place" text,
  "time" text,
  "prize_money" text,
  "sweepstake" text,
  "archer_s_winnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the handicap when the prize money was 120s?`:
```sql
                SELECT "handicap" FROM "race_record" WHERE "prize_money"='120s';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the handicap 8 st 12 lb?`

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

CREATE TABLE "race_record" (
  "age" real,
  "date" text,
  "track" text,
  "race" text,
  "distance_miles" text,
  "jockey" text,
  "handicap" text,
  "field_no_horses" text,
  "place" text,
  "time" text,
  "prize_money" text,
  "sweepstake" text,
  "archer_s_winnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the handicap 8 st 12 lb?`:
```sql
                SELECT "date" FROM "race_record" WHERE "handicap"='8 st 12 lb';
```