cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`In the 2012 production in Wales, who played the character that Owen Little played in Australia?`

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

CREATE TABLE "characters" (
  "character" text,
  "original_cast_2009" text,
  "revival_cast_2010" text,
  "wales_cast_2012" text,
  "new_zealand_cast_2012" text,
  "australian_cast_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the 2012 production in Wales, who played the character that Owen Little played in Australia?`:
```sql
                SELECT "wales_cast_2012" FROM "characters" WHERE "australian_cast_2012"='Owen Little';
```
## Task
Generate a SQL query to answer the following question:
`Who played Lily Cahill in the Australian 2012 production?`

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

CREATE TABLE "characters" (
  "character" text,
  "original_cast_2009" text,
  "revival_cast_2010" text,
  "wales_cast_2012" text,
  "new_zealand_cast_2012" text,
  "australian_cast_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played Lily Cahill in the Australian 2012 production?`:
```sql
                SELECT "australian_cast_2012" FROM "characters" WHERE "character"='Lily Cahill';
```
## Task
Generate a SQL query to answer the following question:
`In the 2012 Wales production, who played the character that Clementine Mills played in Australia?`

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

CREATE TABLE "characters" (
  "character" text,
  "original_cast_2009" text,
  "revival_cast_2010" text,
  "wales_cast_2012" text,
  "new_zealand_cast_2012" text,
  "australian_cast_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the 2012 Wales production, who played the character that Clementine Mills played in Australia?`:
```sql
                SELECT "wales_cast_2012" FROM "characters" WHERE "australian_cast_2012"='Clementine Mills';
```
## Task
Generate a SQL query to answer the following question:
`In the original cast, who played the character portrayed by Edward Franklin in the revival?`

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

CREATE TABLE "characters" (
  "character" text,
  "original_cast_2009" text,
  "revival_cast_2010" text,
  "wales_cast_2012" text,
  "new_zealand_cast_2012" text,
  "australian_cast_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the original cast, who played the character portrayed by Edward Franklin in the revival?`:
```sql
                SELECT "original_cast_2009" FROM "characters" WHERE "revival_cast_2010"='Edward Franklin';
```
## Task
Generate a SQL query to answer the following question:
`In the original cast, who played the character portrayed by Christopher Harris in Wales?`

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

CREATE TABLE "characters" (
  "character" text,
  "original_cast_2009" text,
  "revival_cast_2010" text,
  "wales_cast_2012" text,
  "new_zealand_cast_2012" text,
  "australian_cast_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the original cast, who played the character portrayed by Christopher Harris in Wales?`:
```sql
                SELECT "original_cast_2009" FROM "characters" WHERE "wales_cast_2012"='Christopher Harris';
```
## Task
Generate a SQL query to answer the following question:
`which tournament was the champion nick saviano florin segărceanu 6–3, 6–4?`

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

CREATE TABLE "table1_29296103_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `which tournament was the champion nick saviano florin segărceanu 6–3, 6–4?`:
```sql
                SELECT "tournament" FROM "table1_29296103_10" WHERE "champion"='Nick Saviano Florin Segărceanu 6–3, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament was runner-up  paul annacone eric korita?`

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

CREATE TABLE "table1_29296103_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was runner-up  paul annacone eric korita?`:
```sql
                SELECT "tournament" FROM "table1_29296103_10" WHERE "runner_up"='Paul Annacone Eric Korita';
```
## Task
Generate a SQL query to answer the following question:
`Who were the semifinalists when sammy giammalva was  runner-up?`

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

CREATE TABLE "table1_29296103_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the semifinalists when sammy giammalva was  runner-up?`:
```sql
                SELECT "semifinalists" FROM "table1_29296103_10" WHERE "runner_up"='Sammy Giammalva';
```
## Task
Generate a SQL query to answer the following question:
`which tournament was the champion pat cash 4–6, 6–4, 6–3?`

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

CREATE TABLE "table1_29296103_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `which tournament was the champion pat cash 4–6, 6–4, 6–3?`:
```sql
                SELECT "tournament" FROM "table1_29296103_10" WHERE "champion"='Pat Cash 4–6, 6–4, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament was on the week of  24 october and champion is matt doyle 1–6, 6–1, 6–2?`

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

CREATE TABLE "table1_29296103_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was on the week of  24 october and champion is matt doyle 1–6, 6–1, 6–2?`:
```sql
                SELECT "tournament" FROM "table1_29296103_10" WHERE "week_of"='24 October' AND "champion"='Matt Doyle 1–6, 6–1, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2?`

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

CREATE TABLE "table1_29296103_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2?`:
```sql
                SELECT COUNT("runner_up") FROM "table1_29296103_10" WHERE "tournament"='Cologne , Germany Carpet – $75,000 – S32/D16' AND "champion"='Matt Doyle 1–6, 6–1, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`which train number departs pune at 13:00`

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

CREATE TABLE "pune_lonavala_service" (
  "train_number" real,
  "train_name" text,
  "departure_pune" text,
  "arrival_lonavla" text,
  "frequency" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `which train number departs pune at 13:00`:
```sql
                SELECT "train_number" FROM "pune_lonavala_service" WHERE "departure_pune"='13:00';
```
## Task
Generate a SQL query to answer the following question:
`which train number arrives in lonavla at 17:45`

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

CREATE TABLE "pune_lonavala_service" (
  "train_number" real,
  "train_name" text,
  "departure_pune" text,
  "arrival_lonavla" text,
  "frequency" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `which train number arrives in lonavla at 17:45`:
```sql
                SELECT "train_number" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='17:45';
```
## Task
Generate a SQL query to answer the following question:
`which train name arrives in lonavla at 17:45`

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

CREATE TABLE "pune_lonavala_service" (
  "train_number" real,
  "train_name" text,
  "departure_pune" text,
  "arrival_lonavla" text,
  "frequency" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `which train name arrives in lonavla at 17:45`:
```sql
                SELECT "train_name" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='17:45';
```
## Task
Generate a SQL query to answer the following question:
`how many trains run daily to lonavla and arrive at 12:25`

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

CREATE TABLE "pune_lonavala_service" (
  "train_number" real,
  "train_name" text,
  "departure_pune" text,
  "arrival_lonavla" text,
  "frequency" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many trains run daily to lonavla and arrive at 12:25`:
```sql
                SELECT COUNT("train_number") FROM "pune_lonavala_service" WHERE "frequency"='Daily' AND "arrival_lonavla"='12:25';
```
## Task
Generate a SQL query to answer the following question:
`how many trains have the number 99808`

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

CREATE TABLE "pune_lonavala_service" (
  "train_number" real,
  "train_name" text,
  "departure_pune" text,
  "arrival_lonavla" text,
  "frequency" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many trains have the number 99808`:
```sql
                SELECT COUNT("train_name") FROM "pune_lonavala_service" WHERE "train_number"=99808;
```
## Task
Generate a SQL query to answer the following question:
`what time does the train that arrives in lonavla at 22:22 depart pune`

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

CREATE TABLE "pune_lonavala_service" (
  "train_number" real,
  "train_name" text,
  "departure_pune" text,
  "arrival_lonavla" text,
  "frequency" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `what time does the train that arrives in lonavla at 22:22 depart pune`:
```sql
                SELECT "departure_pune" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='22:22';
```
## Task
Generate a SQL query to answer the following question:
`Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up?`

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

CREATE TABLE "table1_29295463_9" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up?`:
```sql
                SELECT "champion" FROM "table1_29295463_9" WHERE "runner_up"='Marty Davis';
```
## Task
Generate a SQL query to answer the following question:
`Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2?`

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

CREATE TABLE "table1_29295463_9" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2?`:
```sql
                SELECT "quarterfinalists" FROM "table1_29295463_9" WHERE "champion"='Terry Moor 3-6, 7-6, 6-2';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion in the tournament where Scott Davis Chris Dunk was the runner up?`

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

CREATE TABLE "table1_29295463_9" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion in the tournament where Scott Davis Chris Dunk was the runner up?`:
```sql
                SELECT "champion" FROM "table1_29295463_9" WHERE "runner_up"='Scott Davis Chris Dunk';
```
## Task
Generate a SQL query to answer the following question:
`Who were the semifinalists in the tournament where Mats Wilander 7-6, 6-3 was declared the champion?`

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

CREATE TABLE "table1_29295463_9" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the semifinalists in the tournament where Mats Wilander 7-6, 6-3 was declared the champion?`:
```sql
                SELECT "semifinalists" FROM "table1_29295463_9" WHERE "champion"='Mats Wilander 7-6, 6-3';
```
## Task
Generate a SQL query to answer the following question:
`How many years saw 3 hurricanes wherein the strongest storm was level three?`

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

CREATE TABLE "1850s" (
  "year" real,
  "number_of_tropical_storms" real,
  "number_of_hurricanes" real,
  "number_of_major_hurricanes" real,
  "deaths" text,
  "strongest_storm" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years saw 3 hurricanes wherein the strongest storm was level three?`:
```sql
                SELECT COUNT("year") FROM "1850s" WHERE "number_of_hurricanes"=3 AND "strongest_storm"='Three';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest overall number of major hurricanes?`

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

CREATE TABLE "1860s" (
  "year" real,
  "number_of_tropical_storms" real,
  "number_of_hurricanes" real,
  "number_of_major_hurricanes" real,
  "deaths" text,
  "strongest_storm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest overall number of major hurricanes?`:
```sql
                SELECT MAX("number_of_major_hurricanes") FROM "1860s";
```
## Task
Generate a SQL query to answer the following question:
`When the death is none what is the number of major hurricanes?`

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

CREATE TABLE "1860s" (
  "year" real,
  "number_of_tropical_storms" real,
  "number_of_hurricanes" real,
  "number_of_major_hurricanes" real,
  "deaths" text,
  "strongest_storm" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the death is none what is the number of major hurricanes?`:
```sql
                SELECT COUNT("number_of_major_hurricanes") FROM "1860s" WHERE "deaths"='None';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall number of hurricanes?`

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

CREATE TABLE "1860s" (
  "year" real,
  "number_of_tropical_storms" real,
  "number_of_hurricanes" real,
  "number_of_major_hurricanes" real,
  "deaths" text,
  "strongest_storm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall number of hurricanes?`:
```sql
                SELECT MIN("number_of_hurricanes") FROM "1860s";
```
## Task
Generate a SQL query to answer the following question:
`What country offered a prize of 66400 US dollars?`

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

CREATE TABLE "table1_29302711_13" (
  "rk" real,
  "name" text,
  "country" text,
  "matches_played" real,
  "matches_won" real,
  "points" real,
  "prize_money_usd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country offered a prize of 66400 US dollars?`:
```sql
                SELECT "country" FROM "table1_29302711_13" WHERE "prize_money_usd"=66400;
```
## Task
Generate a SQL query to answer the following question:
`What country does the player named Mark Cox play for?`

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

CREATE TABLE "table1_29302711_13" (
  "rk" real,
  "name" text,
  "country" text,
  "matches_played" real,
  "matches_won" real,
  "points" real,
  "prize_money_usd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country does the player named Mark Cox play for?`:
```sql
                SELECT "country" FROM "table1_29302711_13" WHERE "name"='Mark Cox';
```
## Task
Generate a SQL query to answer the following question:
`How many deaths did the eyar with exactly 6 hurricanes have?`

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

CREATE TABLE "1870s" (
  "year" real,
  "number_of_tropical_storms" real,
  "number_of_hurricanes" real,
  "number_of_major_hurricanes" real,
  "deaths" text,
  "strongest_storm" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deaths did the eyar with exactly 6 hurricanes have?`:
```sql
                SELECT COUNT("deaths") FROM "1870s" WHERE "number_of_hurricanes"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of tropical storms in the year that had exactly 34 deaths?`

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

CREATE TABLE "1870s" (
  "year" real,
  "number_of_tropical_storms" real,
  "number_of_hurricanes" real,
  "number_of_major_hurricanes" real,
  "deaths" text,
  "strongest_storm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of tropical storms in the year that had exactly 34 deaths?`:
```sql
                SELECT MAX("number_of_tropical_storms") FROM "1870s" WHERE "deaths"='34';
```
## Task
Generate a SQL query to answer the following question:
`How many deaths did the year with 10 hurricanes and exactly 1 major hurricane have?`

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

CREATE TABLE "1870s" (
  "year" real,
  "number_of_tropical_storms" real,
  "number_of_hurricanes" real,
  "number_of_major_hurricanes" real,
  "deaths" text,
  "strongest_storm" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deaths did the year with 10 hurricanes and exactly 1 major hurricane have?`:
```sql
                SELECT "deaths" FROM "1870s" WHERE "number_of_hurricanes"=10 AND "number_of_major_hurricanes"=1;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of episodes that jim barnes wrote for 1.82 million viewers`

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

CREATE TABLE "table1_29329432_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of episodes that jim barnes wrote for 1.82 million viewers`:
```sql
                SELECT COUNT("no") FROM "table1_29329432_1" WHERE "written_by"='Jim Barnes' AND "u_s_viewers_million"='1.82';
```
## Task
Generate a SQL query to answer the following question:
`Name the least number for production code 3x6266`

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

CREATE TABLE "table1_29329432_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least number for production code 3x6266`:
```sql
                SELECT MIN("no") FROM "table1_29329432_1" WHERE "production_code"='3X6266';
```
## Task
Generate a SQL query to answer the following question:
`How many characters does Maurice Dean Wint play in the movie Cube?`

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

CREATE TABLE "cube_film_series" (
  "name" text,
  "occupation" text,
  "gender" text,
  "prison_connection" text,
  "played_by" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many characters does Maurice Dean Wint play in the movie Cube?`:
```sql
                SELECT COUNT("status") FROM "cube_film_series" WHERE "played_by"='Maurice Dean Wint';
```
## Task
Generate a SQL query to answer the following question:
`What is Joan Leaven's occupation?`

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

CREATE TABLE "cube_film_series" (
  "name" text,
  "occupation" text,
  "gender" text,
  "prison_connection" text,
  "played_by" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Joan Leaven's occupation?`:
```sql
                SELECT "occupation" FROM "cube_film_series" WHERE "name"='Joan Leaven';
```
## Task
Generate a SQL query to answer the following question:
`What gender is Quentin?`

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

CREATE TABLE "cube_film_series" (
  "name" text,
  "occupation" text,
  "gender" text,
  "prison_connection" text,
  "played_by" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What gender is Quentin?`:
```sql
                SELECT "gender" FROM "cube_film_series" WHERE "name"='Quentin';
```
## Task
Generate a SQL query to answer the following question:
`Who played the mathematics student?`

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

CREATE TABLE "cube_film_series" (
  "name" text,
  "occupation" text,
  "gender" text,
  "prison_connection" text,
  "played_by" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played the mathematics student?`:
```sql
                SELECT "played_by" FROM "cube_film_series" WHERE "occupation"='Mathematics Student';
```
## Task
Generate a SQL query to answer the following question:
`How many prisons is Joan Leaven connected with?`

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

CREATE TABLE "cube_film_series" (
  "name" text,
  "occupation" text,
  "gender" text,
  "prison_connection" text,
  "played_by" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many prisons is Joan Leaven connected with?`:
```sql
                SELECT COUNT("prison_connection") FROM "cube_film_series" WHERE "name"='Joan Leaven';
```
## Task
Generate a SQL query to answer the following question:
`What is aggressive rider Richie Porte's team classifaction?`

### 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,
  "mountains_classification" text,
  "sprint_classification" text,
  "young_rider_classification" text,
  "team_classification" text,
  "aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is aggressive rider Richie Porte's team classifaction?`:
```sql
                SELECT "team_classification" FROM "classification_leadership" WHERE "aggressive_rider"='Richie Porte';
```
## Task
Generate a SQL query to answer the following question:
`Thomas de Gendt performed on what stage as aggressive rider?`

### 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,
  "mountains_classification" text,
  "sprint_classification" text,
  "young_rider_classification" text,
  "team_classification" text,
  "aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `Thomas de Gendt performed on what stage as aggressive rider?`:
```sql
                SELECT MAX("stage") FROM "classification_leadership" WHERE "aggressive_rider"='Thomas De Gendt';
```
## Task
Generate a SQL query to answer the following question:
`Where Luke Durbridge is the aggressive rider who is listed as the young rider classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "sprint_classification" text,
  "young_rider_classification" text,
  "team_classification" text,
  "aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where Luke Durbridge is the aggressive rider who is listed as the young rider classification?`:
```sql
                SELECT "young_rider_classification" FROM "classification_leadership" WHERE "aggressive_rider"='Luke Durbridge';
```
## Task
Generate a SQL query to answer the following question:
`Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider?`

### 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,
  "mountains_classification" text,
  "sprint_classification" text,
  "young_rider_classification" text,
  "team_classification" text,
  "aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider?`:
```sql
                SELECT "general_classification" FROM "classification_leadership" WHERE "winner"='Ben Swift' AND "young_rider_classification"='Cameron Meyer';
```
## Task
Generate a SQL query to answer the following question:
`Who is the sprint classification where Francisco Ventoso wins?`

### 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,
  "mountains_classification" text,
  "sprint_classification" text,
  "young_rider_classification" text,
  "team_classification" text,
  "aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the sprint classification where Francisco Ventoso wins?`:
```sql
                SELECT "sprint_classification" FROM "classification_leadership" WHERE "winner"='Francisco Ventoso';
```
## Task
Generate a SQL query to answer the following question:
`In the week of what was the runner-up Pat Du Pré?`

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

CREATE TABLE "table1_29302781_12" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the week of what was the runner-up Pat Du Pré?`:
```sql
                SELECT "week_of" FROM "table1_29302781_12" WHERE "runner_up"='Pat Du Pré';
```
## Task
Generate a SQL query to answer the following question:
`Who were the semifinalists when the runner-up was Peter Feigl?`

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

CREATE TABLE "table1_29302781_12" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the semifinalists when the runner-up was Peter Feigl?`:
```sql
                SELECT "semifinalists" FROM "table1_29302781_12" WHERE "runner_up"='Peter Feigl';
```
## Task
Generate a SQL query to answer the following question:
`Who were the semifinalists when the runner-up was Pat Du Pré?`

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

CREATE TABLE "table1_29302781_12" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the semifinalists when the runner-up was Pat Du Pré?`:
```sql
                SELECT "semifinalists" FROM "table1_29302781_12" WHERE "runner_up"='Pat Du Pré';
```
## Task
Generate a SQL query to answer the following question:
`Who were the semifinalists in the week of 13 November when the runner-up was Pat Du Pré?`

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

CREATE TABLE "table1_29302781_12" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the semifinalists in the week of 13 November when the runner-up was Pat Du Pré?`:
```sql
                SELECT "semifinalists" FROM "table1_29302781_12" WHERE "week_of"='13 November' AND "runner_up"='Pat Du Pré';
```
## Task
Generate a SQL query to answer the following question:
`What are the quarterfinalists when the runner up is andrew pattison?`

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

CREATE TABLE "table1_29302816_8" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the quarterfinalists when the runner up is andrew pattison?`:
```sql
                SELECT "quarterfinalists" FROM "table1_29302816_8" WHERE "runner_up"='Andrew Pattison';
```
## Task
Generate a SQL query to answer the following question:
`When indonesia is the country what is the rank of  2010?`

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

CREATE TABLE "table1_293465_1" (
  "rank_2011" real,
  "country" text,
  "production_in_2011_1_000_ton" real,
  "share_2011" text,
  "rank_2010" real,
  "production_in_2010_1_000_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `When indonesia is the country what is the rank of  2010?`:
```sql
                SELECT "rank_2010" FROM "table1_293465_1" WHERE "country"='Indonesia';
```
## Task
Generate a SQL query to answer the following question:
`When 5 is the rank of 2011 what is the country?`

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

CREATE TABLE "table1_293465_1" (
  "rank_2011" real,
  "country" text,
  "production_in_2011_1_000_ton" real,
  "share_2011" text,
  "rank_2010" real,
  "production_in_2010_1_000_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 5 is the rank of 2011 what is the country?`:
```sql
                SELECT "country" FROM "table1_293465_1" WHERE "rank_2011"=5;
```
## Task
Generate a SQL query to answer the following question:
`When sweden is the country what is the highest production in 2010 (1,000 ton)?`

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

CREATE TABLE "table1_293465_1" (
  "rank_2011" real,
  "country" text,
  "production_in_2011_1_000_ton" real,
  "share_2011" text,
  "rank_2010" real,
  "production_in_2010_1_000_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `When sweden is the country what is the highest production in 2010 (1,000 ton)?`:
```sql
                SELECT MAX("production_in_2010_1_000_ton") FROM "table1_293465_1" WHERE "country"='Sweden';
```
## Task
Generate a SQL query to answer the following question:
`When 75849 is the production in 2010 (1,000 ton) what is the production in 2011 (1,000 ton)?`

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

CREATE TABLE "table1_293465_1" (
  "rank_2011" real,
  "country" text,
  "production_in_2011_1_000_ton" real,
  "share_2011" text,
  "rank_2010" real,
  "production_in_2010_1_000_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 75849 is the production in 2010 (1,000 ton) what is the production in 2011 (1,000 ton)?`:
```sql
                SELECT "production_in_2011_1_000_ton" FROM "table1_293465_1" WHERE "production_in_2010_1_000_ton"=75849;
```
## Task
Generate a SQL query to answer the following question:
`Valmir Benavides won pole position at which circuit?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Valmir Benavides won pole position at which circuit?`:
```sql
                SELECT "circuit" FROM "race_calendar_and_results" WHERE "pole_position"='Valmir Benavides';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team?`:
```sql
                SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "pole_position"='Roberval Andrade' AND "fastest_lap"='Felipe Giaffone' AND "winning_team"='RVR Corinthians Motorsport';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of 2005 subscribers for Vodafone?`

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

CREATE TABLE "current_situation" (
  "provider" text,
  "country" text,
  "subscribers_2005_thousands" real,
  "subscribers_2006_thousands" real,
  "growth_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of 2005 subscribers for Vodafone?`:
```sql
                SELECT MIN("subscribers_2005_thousands") FROM "current_situation" WHERE "provider"='Vodafone';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of 2006 subscribers for Glo Mobile?`

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

CREATE TABLE "current_situation" (
  "provider" text,
  "country" text,
  "subscribers_2005_thousands" real,
  "subscribers_2006_thousands" real,
  "growth_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of 2006 subscribers for Glo Mobile?`:
```sql
                SELECT MAX("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Glo Mobile';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of 2006 subscribers for Mobilis?`

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

CREATE TABLE "current_situation" (
  "provider" text,
  "country" text,
  "subscribers_2005_thousands" real,
  "subscribers_2006_thousands" real,
  "growth_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of 2006 subscribers for Mobilis?`:
```sql
                SELECT MAX("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Mobilis';
```
## Task
Generate a SQL query to answer the following question:
`How many subscribers, in 2006, does Glo Mobile have?`

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

CREATE TABLE "current_situation" (
  "provider" text,
  "country" text,
  "subscribers_2005_thousands" real,
  "subscribers_2006_thousands" real,
  "growth_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many subscribers, in 2006, does Glo Mobile have?`:
```sql
                SELECT "subscribers_2006_thousands" FROM "current_situation" WHERE "provider"='Glo Mobile';
```
## Task
Generate a SQL query to answer the following question:
`How many 2006 subscribers are named Vodafone?`

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

CREATE TABLE "current_situation" (
  "provider" text,
  "country" text,
  "subscribers_2005_thousands" real,
  "subscribers_2006_thousands" real,
  "growth_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 2006 subscribers are named Vodafone?`:
```sql
                SELECT COUNT("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Vodafone';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of captains for barcelona`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of captains for barcelona`:
```sql
                SELECT COUNT("captain") FROM "personnel_and_sponsorship" WHERE "team"='Barcelona';
```
## Task
Generate a SQL query to answer the following question:
`Name the chairman for iker casillas`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the chairman for iker casillas`:
```sql
                SELECT "chairman" FROM "personnel_and_sponsorship" WHERE "captain"='Iker Casillas';
```
## Task
Generate a SQL query to answer the following question:
`Name the team for javier clemente`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for javier clemente`:
```sql
                SELECT "team" FROM "personnel_and_sponsorship" WHERE "head_coach"='Javier Clemente';
```
## Task
Generate a SQL query to answer the following question:
`What is the season # for the production code 3.89?`

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

CREATE TABLE "table1_29391888_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season # for the production code 3.89?`:
```sql
                SELECT "season_num" FROM "table1_29391888_1" WHERE "production_code"='3.89';
```
## Task
Generate a SQL query to answer the following question:
`What is the series # for the episode titled "words"?`

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

CREATE TABLE "table1_29391888_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series # for the episode titled "words"?`:
```sql
                SELECT MAX("series_num") FROM "table1_29391888_1" WHERE "title"='\"Words\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that was directed by Kevin Inch?`

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

CREATE TABLE "table1_29391888_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that was directed by Kevin Inch?`:
```sql
                SELECT "written_by" FROM "table1_29391888_1" WHERE "directed_by"='Kevin Inch';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date for the season# 2?`

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

CREATE TABLE "table1_29391888_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for the season# 2?`:
```sql
                SELECT "original_air_date" FROM "table1_29391888_1" WHERE "season_num"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for the episode whose original air date was May15,2000?`

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

CREATE TABLE "table1_29391888_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for the episode whose original air date was May15,2000?`:
```sql
                SELECT "production_code" FROM "table1_29391888_1" WHERE "original_air_date"='May15,2000';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "who nose"?`

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

CREATE TABLE "table1_29391888_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode titled "who nose"?`:
```sql
                SELECT "directed_by" FROM "table1_29391888_1" WHERE "title"='\"Who Nose\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the former school of the player from Detroit, MI?`

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

CREATE TABLE "roster" (
  "num" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "former_school" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the former school of the player from Detroit, MI?`:
```sql
                SELECT "former_school" FROM "roster" WHERE "hometown"='Detroit, MI';
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown of Jarrid Famous?`

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

CREATE TABLE "roster" (
  "num" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "former_school" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of Jarrid Famous?`:
```sql
                SELECT "hometown" FROM "roster" WHERE "name"='Jarrid Famous';
```
## Task
Generate a SQL query to answer the following question:
`What number is the player whose hometown is Tampa, FL?`

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

CREATE TABLE "roster" (
  "num" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "former_school" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number is the player whose hometown is Tampa, FL?`:
```sql
                SELECT "num" FROM "roster" WHERE "hometown"='Tampa, FL';
```
## Task
Generate a SQL query to answer the following question:
`What year is the player whose number is 31?`

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

CREATE TABLE "roster" (
  "num" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "former_school" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is the player whose number is 31?`:
```sql
                SELECT "year" FROM "roster" WHERE "num"=31;
```
## Task
Generate a SQL query to answer the following question:
`What is the height of Anthony Crater? `

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

CREATE TABLE "roster" (
  "num" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "former_school" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of Anthony Crater? `:
```sql
                SELECT "height" FROM "roster" WHERE "name"='Anthony Crater';
```
## Task
Generate a SQL query to answer the following question:
`What is the former school of the player from North Port, FL? `

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

CREATE TABLE "roster" (
  "num" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "former_school" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the former school of the player from North Port, FL? `:
```sql
                SELECT "former_school" FROM "roster" WHERE "hometown"='North Port, FL';
```