cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the windows builders for apache gump`

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

CREATE TABLE "table1_22903426_1" (
  "name" text,
  "platform" text,
  "license" text,
  "windows_builders" text,
  "java_builders" text,
  "other_builders" text,
  "scm_system" text,
  "notification" text,
  "ide_integration" text,
  "other_integration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the windows builders for apache gump`:
```sql
                SELECT "windows_builders" FROM "table1_22903426_1" WHERE "name"='Apache Gump';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of scm system for nant, visual studio`

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

CREATE TABLE "table1_22903426_1" (
  "name" text,
  "platform" text,
  "license" text,
  "windows_builders" text,
  "java_builders" text,
  "other_builders" text,
  "scm_system" text,
  "notification" text,
  "ide_integration" text,
  "other_integration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of scm system for nant, visual studio`:
```sql
                SELECT COUNT("scm_system") FROM "table1_22903426_1" WHERE "windows_builders"='NAnt, Visual Studio';
```
## Task
Generate a SQL query to answer the following question:
`Name the  number of other builders for nant, visual studio`

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

CREATE TABLE "table1_22903426_1" (
  "name" text,
  "platform" text,
  "license" text,
  "windows_builders" text,
  "java_builders" text,
  "other_builders" text,
  "scm_system" text,
  "notification" text,
  "ide_integration" text,
  "other_integration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the  number of other builders for nant, visual studio`:
```sql
                SELECT COUNT("other_builders") FROM "table1_22903426_1" WHERE "windows_builders"='NAnt, Visual Studio';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum for 2nd runner-up?`

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country_territory" text,
  "manhunt_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum for 2nd runner-up?`:
```sql
                SELECT MIN("2nd_runner_up") FROM "by_country_tally";
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of 4th runner-up where the 2nd runner-up is smaller than 1.0 and the 1st runner-up is smaller than 1.0 and the total is 2?`

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country_territory" text,
  "manhunt_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of 4th runner-up where the 2nd runner-up is smaller than 1.0 and the 1st runner-up is smaller than 1.0 and the total is 2?`:
```sql
                SELECT COUNT("4th_runner_up") FROM "by_country_tally" WHERE "2nd_runner_up"<1.0 AND "1st_runner_up"<1.0 AND "total"=2;
```
## Task
Generate a SQL query to answer the following question:
`If the original air date is February 4, 2003, what is the episode title?`

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

CREATE TABLE "table1_228973_9" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the original air date is February 4, 2003, what is the episode title?`:
```sql
                SELECT "title" FROM "table1_228973_9" WHERE "original_air_date"='February 4, 2003';
```
## Task
Generate a SQL query to answer the following question:
`If the original air date is April 1, 2003, what number in the series is this episode?`

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

CREATE TABLE "table1_228973_9" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the original air date is April 1, 2003, what number in the series is this episode?`:
```sql
                SELECT "no_in_series" FROM "table1_228973_9" WHERE "original_air_date"='April 1, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number in the series for the episode directed by Harvey S. Laidman?`

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

CREATE TABLE "table1_228973_9" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number in the series for the episode directed by Harvey S. Laidman?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_228973_9" WHERE "directed_by"='Harvey S. Laidman';
```
## Task
Generate a SQL query to answer the following question:
`When is the original air date written by sean whitesell?`

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

CREATE TABLE "table1_22904752_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the original air date written by sean whitesell?`:
```sql
                SELECT "original_air_date" FROM "table1_22904752_1" WHERE "written_by"='Sean Whitesell';
```
## Task
Generate a SQL query to answer the following question:
`Who is no. 79 directed by?`

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

CREATE TABLE "table1_22904752_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is no. 79 directed by?`:
```sql
                SELECT "directed_by" FROM "table1_22904752_1" WHERE "no"=79;
```
## Task
Generate a SQL query to answer the following question:
`What is the # when u.s. viewers  (million) is 17.44?`

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

CREATE TABLE "table1_22904752_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the # when u.s. viewers  (million) is 17.44?`:
```sql
                SELECT COUNT("num") FROM "table1_22904752_1" WHERE "u_s_viewers_million"='17.44';
```
## Task
Generate a SQL query to answer the following question:
`How many # were written by david hoselton?`

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

CREATE TABLE "table1_22904752_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many # were written by david hoselton?`:
```sql
                SELECT MAX("num") FROM "table1_22904752_1" WHERE "written_by"='David Hoselton';
```
## Task
Generate a SQL query to answer the following question:
`How many race 3 winners were there when Mitch Evans won race 2?`

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

CREATE TABLE "race_calendar_and_results" (
  "event" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "race_1_winner" text,
  "race_2_winner" text,
  "race_3_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many race 3 winners were there when Mitch Evans won race 2?`:
```sql
                SELECT COUNT("race_3_winner") FROM "race_calendar_and_results" WHERE "race_2_winner"='Mitch Evans';
```
## Task
Generate a SQL query to answer the following question:
`What date was the race at the Symmons Plains Raceway?`

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

CREATE TABLE "race_calendar_and_results" (
  "event" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "race_1_winner" text,
  "race_2_winner" text,
  "race_3_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the race at the Symmons Plains Raceway?`:
```sql
                SELECT "date" FROM "race_calendar_and_results" WHERE "circuit"='Symmons Plains Raceway';
```
## Task
Generate a SQL query to answer the following question:
`Who was the race 1 winner at the race held at Winton Motor Raceway?`

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

CREATE TABLE "race_calendar_and_results" (
  "event" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "race_1_winner" text,
  "race_2_winner" text,
  "race_3_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the race 1 winner at the race held at Winton Motor Raceway?`:
```sql
                SELECT "race_1_winner" FROM "race_calendar_and_results" WHERE "circuit"='Winton Motor Raceway';
```
## Task
Generate a SQL query to answer the following question:
`Who was the race 1 winner of the race at Hidden Valley Raceway?`

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

CREATE TABLE "race_calendar_and_results" (
  "event" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "race_1_winner" text,
  "race_2_winner" text,
  "race_3_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the race 1 winner of the race at Hidden Valley Raceway?`:
```sql
                SELECT "race_1_winner" FROM "race_calendar_and_results" WHERE "circuit"='Hidden Valley Raceway';
```
## Task
Generate a SQL query to answer the following question:
`In how many years did Pat Bradley became the champion?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `In how many years did Pat Bradley became the champion?`:
```sql
                SELECT COUNT("year") FROM "winners" WHERE "champion"='Pat Bradley';
```
## Task
Generate a SQL query to answer the following question:
`When was the tournament in Forest Lake Country Club held?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the tournament in Forest Lake Country Club held?`:
```sql
                SELECT "dates" FROM "winners" WHERE "tournament_location"='Forest Lake Country Club';
```
## Task
Generate a SQL query to answer the following question:
`How many different countries did the champion Se Ri Pak (2) represent?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different countries did the champion Se Ri Pak (2) represent?`:
```sql
                SELECT COUNT("country") FROM "winners" WHERE "champion"='Se Ri Pak (2)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in 1978?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in 1978?`:
```sql
                SELECT "score" FROM "winners" WHERE "year"=1978;
```
## Task
Generate a SQL query to answer the following question:
`What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?`:
```sql
                SELECT MIN("winners_share") FROM "winners" WHERE "champion"='Se Ri Pak (2)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the tournament won by Jan Stephenson?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the tournament won by Jan Stephenson?`:
```sql
                SELECT "score" FROM "winners" WHERE "champion"='Jan Stephenson';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the opponents score at the game in Knoxville?`

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

CREATE TABLE "schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "sooners_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the opponents score at the game in Knoxville?`:
```sql
                SELECT MIN("opp_points") FROM "schedule" WHERE "location"='Knoxville';
```
## Task
Generate a SQL query to answer the following question:
`What game date had a record of 17-7?`

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

CREATE TABLE "schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "sooners_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game date had a record of 17-7?`:
```sql
                SELECT "date" FROM "schedule" WHERE "record"='17-7';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the opponents score on the game where Sooners' record was 16-5?`

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

CREATE TABLE "schedule" (
  "date" text,
  "location" text,
  "opponent" text,
  "sooners_points" real,
  "opp_points" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the opponents score on the game where Sooners' record was 16-5?`:
```sql
                SELECT MAX("opp_points") FROM "schedule" WHERE "record"='16-5';
```
## Task
Generate a SQL query to answer the following question:
`List the number of shows that had 12.04 million viewers in the united states`

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

CREATE TABLE "table1_22904780_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" real,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of shows that had 12.04 million viewers in the united states`:
```sql
                SELECT COUNT("title") FROM "table1_22904780_1" WHERE "u_s_viewers_million"='12.04';
```
## Task
Generate a SQL query to answer the following question:
`List the original air date for week 5.`

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

CREATE TABLE "table1_22904780_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" real,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the original air date for week 5.`:
```sql
                SELECT "original_air_date" FROM "table1_22904780_1" WHERE "rank_week"=5;
```
## Task
Generate a SQL query to answer the following question:
`List the 1st air date for the show where the writers are russel friend & garrett lerner.`

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

CREATE TABLE "table1_22904780_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "rank_week" real,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the 1st air date for the show where the writers are russel friend & garrett lerner.`:
```sql
                SELECT "original_air_date" FROM "table1_22904780_1" WHERE "written_by"='Russel Friend & Garrett Lerner';
```
## Task
Generate a SQL query to answer the following question:
`When shinya nakano's kawasaki ninja zx-rr is the example what is the graphical?`

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

CREATE TABLE "four_cylinder_engines" (
  "engine" text,
  "crankshaft" text,
  "ignition_timing" text,
  "graphical" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `When shinya nakano's kawasaki ninja zx-rr is the example what is the graphical?`:
```sql
                SELECT "graphical" FROM "four_cylinder_engines" WHERE "example"='Shinya Nakano''s Kawasaki Ninja ZX-RR';
```
## Task
Generate a SQL query to answer the following question:
`When 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it?`

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

CREATE TABLE "four_cylinder_engines" (
  "engine" text,
  "crankshaft" text,
  "ignition_timing" text,
  "graphical" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it?`:
```sql
                SELECT "engine" FROM "four_cylinder_engines" WHERE "example"='1985-2007 Yamaha V-Max Honda VFR800';
```
## Task
Generate a SQL query to answer the following question:
`When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type?`

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

CREATE TABLE "four_cylinder_engines" (
  "engine" text,
  "crankshaft" text,
  "ignition_timing" text,
  "graphical" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type?`:
```sql
                SELECT "engine" FROM "four_cylinder_engines" WHERE "example"='Shinya Nakano''s Kawasaki Ninja ZX-RR';
```
## Task
Generate a SQL query to answer the following question:
`When 68-292-68-292 is the ignition timing how many graphicals is it?`

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

CREATE TABLE "four_cylinder_engines" (
  "engine" text,
  "crankshaft" text,
  "ignition_timing" text,
  "graphical" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 68-292-68-292 is the ignition timing how many graphicals is it?`:
```sql
                SELECT COUNT("graphical") FROM "four_cylinder_engines" WHERE "ignition_timing"='68-292-68-292';
```
## Task
Generate a SQL query to answer the following question:
`When i4 is the engine what is the graphical?`

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

CREATE TABLE "four_cylinder_engines" (
  "engine" text,
  "crankshaft" text,
  "ignition_timing" text,
  "graphical" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `When i4 is the engine what is the graphical?`:
```sql
                SELECT "graphical" FROM "four_cylinder_engines" WHERE "engine"='I4';
```
## Task
Generate a SQL query to answer the following question:
`When 1-1-0-0-1-1-0-0- is the graphical how many ignition timings are there?`

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

CREATE TABLE "four_cylinder_engines" (
  "engine" text,
  "crankshaft" text,
  "ignition_timing" text,
  "graphical" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1-1-0-0-1-1-0-0- is the graphical how many ignition timings are there?`:
```sql
                SELECT COUNT("ignition_timing") FROM "four_cylinder_engines" WHERE "graphical"='1-1-0-0-1-1-0-0-';
```
## Task
Generate a SQL query to answer the following question:
`Name the least total for sergio ramos`

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

CREATE TABLE "goals" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least total for sergio ramos`:
```sql
                SELECT MIN("total") FROM "goals" WHERE "player"='Sergio Ramos';
```
## Task
Generate a SQL query to answer the following question:
`Name the least copa del rey`

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

CREATE TABLE "goals" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least copa del rey`:
```sql
                SELECT MIN("copa_del_rey") FROM "goals";
```
## Task
Generate a SQL query to answer the following question:
`Name the most copa del rey for karim benzema`

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

CREATE TABLE "goals" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most copa del rey for karim benzema`:
```sql
                SELECT MAX("copa_del_rey") FROM "goals" WHERE "player"='Karim Benzema';
```
## Task
Generate a SQL query to answer the following question:
`If the total is 6, what is the maximum R?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the total is 6, what is the maximum R?`:
```sql
                SELECT MAX("r") FROM "assists" WHERE "total"=6;
```
## Task
Generate a SQL query to answer the following question:
`If the player is Marcelo, what is the minimum R?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the player is Marcelo, what is the minimum R?`:
```sql
                SELECT MIN("r") FROM "assists" WHERE "player"='Marcelo';
```
## Task
Generate a SQL query to answer the following question:
`If the position is FB, what is the Copa Del Rey?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the position is FB, what is the Copa Del Rey?`:
```sql
                SELECT "copa_del_rey" FROM "assists" WHERE "position"='FB';
```
## Task
Generate a SQL query to answer the following question:
`If the player is Marcelo, what is the position?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the player is Marcelo, what is the position?`:
```sql
                SELECT "position" FROM "assists" WHERE "player"='Marcelo';
```
## Task
Generate a SQL query to answer the following question:
`If the position is AM and the league is larger than 7.0, what is the total R number?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the position is AM and the league is larger than 7.0, what is the total R number?`:
```sql
                SELECT COUNT("r") FROM "assists" WHERE "position"='AM' AND "league">7.0;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum possible Copa Del Rey?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "league" real,
  "champions_league" real,
  "copa_del_rey" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum possible Copa Del Rey?`:
```sql
                SELECT MAX("copa_del_rey") FROM "assists";
```
## Task
Generate a SQL query to answer the following question:
`Who was the Stage 1 winner?`

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

CREATE TABLE "category_leadership_table" (
  "stage" real,
  "winner" text,
  "general_classification_ta_koszulka" text,
  "mountains_classification_klasyfikacja_g_rska" text,
  "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text,
  "points_classification_klasyfikacja_punktowa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Stage 1 winner?`:
```sql
                SELECT "winner" FROM "category_leadership_table" WHERE "stage"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who won Stage 7?`

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

CREATE TABLE "category_leadership_table" (
  "stage" real,
  "winner" text,
  "general_classification_ta_koszulka" text,
  "mountains_classification_klasyfikacja_g_rska" text,
  "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text,
  "points_classification_klasyfikacja_punktowa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Stage 7?`:
```sql
                SELECT "winner" FROM "category_leadership_table" WHERE "stage"=7;
```
## Task
Generate a SQL query to answer the following question:
`Who was the mountain classification winner in the stage won by Alessandro Ballan?`

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

CREATE TABLE "category_leadership_table" (
  "stage" real,
  "winner" text,
  "general_classification_ta_koszulka" text,
  "mountains_classification_klasyfikacja_g_rska" text,
  "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text,
  "points_classification_klasyfikacja_punktowa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the mountain classification winner in the stage won by Alessandro Ballan?`:
```sql
                SELECT "mountains_classification_klasyfikacja_g_rska" FROM "category_leadership_table" WHERE "winner"='Alessandro Ballan';
```
## Task
Generate a SQL query to answer the following question:
`For the city whose land area was 135.09, what was the total population density?`

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

CREATE TABLE "incorporated_places_with_a_density_of_ov" (
  "rank" real,
  "incorporated_place" text,
  "metropolitan_area" text,
  "state" text,
  "population_2010_census" real,
  "land_area_mi_2" text,
  "population_density_people_per_mi_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the city whose land area was 135.09, what was the total population density?`:
```sql
                SELECT "population_density_people_per_mi_2" FROM "incorporated_places_with_a_density_of_ov" WHERE "land_area_mi_2"='135.09';
```
## Task
Generate a SQL query to answer the following question:
`Which major metropolitan area had a land area of 23.80?`

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

CREATE TABLE "incorporated_places_with_a_density_of_ov" (
  "rank" real,
  "incorporated_place" text,
  "metropolitan_area" text,
  "state" text,
  "population_2010_census" real,
  "land_area_mi_2" text,
  "population_density_people_per_mi_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which major metropolitan area had a land area of 23.80?`:
```sql
                SELECT "metropolitan_area" FROM "incorporated_places_with_a_density_of_ov" WHERE "land_area_mi_2"='23.80';
```
## Task
Generate a SQL query to answer the following question:
`How many states had a population density of 10188.8?`

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

CREATE TABLE "incorporated_places_with_a_density_of_ov" (
  "rank" real,
  "incorporated_place" text,
  "metropolitan_area" text,
  "state" text,
  "population_2010_census" real,
  "land_area_mi_2" text,
  "population_density_people_per_mi_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many states had a population density of 10188.8?`:
```sql
                SELECT COUNT("state") FROM "incorporated_places_with_a_density_of_ov" WHERE "population_density_people_per_mi_2"='10188.8';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of left for cardinals`

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

CREATE TABLE "charter_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of left for cardinals`:
```sql
                SELECT COUNT("left") FROM "charter_members" WHERE "nickname"='Cardinals';
```
## Task
Generate a SQL query to answer the following question:
`Name the school that is private`

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

CREATE TABLE "charter_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the school that is private`:
```sql
                SELECT "institution" FROM "charter_members" WHERE "type"='Private';
```
## Task
Generate a SQL query to answer the following question:
`Name the location that was founded 1798`

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

CREATE TABLE "charter_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location that was founded 1798`:
```sql
                SELECT "location" FROM "charter_members" WHERE "founded"=1798;
```
## Task
Generate a SQL query to answer the following question:
`Name the nickname that was founded 1798`

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

CREATE TABLE "charter_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nickname that was founded 1798`:
```sql
                SELECT "nickname" FROM "charter_members" WHERE "founded"=1798;
```
## Task
Generate a SQL query to answer the following question:
`Name the least 10,000+ places for louisville`

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

CREATE TABLE "metropolitan_areas" (
  "rank" real,
  "metropolitan_area" text,
  "principal_city" text,
  "10_000_places" real,
  "densest_incorporated_place" text,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least 10,000+ places for louisville`:
```sql
                SELECT MIN("10_000_places") FROM "metropolitan_areas" WHERE "principal_city"='Louisville';
```
## Task
Generate a SQL query to answer the following question:
`Name the density for pennsbury village`

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

CREATE TABLE "metropolitan_areas" (
  "rank" real,
  "metropolitan_area" text,
  "principal_city" text,
  "10_000_places" real,
  "densest_incorporated_place" text,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the density for pennsbury village`:
```sql
                SELECT "density" FROM "metropolitan_areas" WHERE "densest_incorporated_place"='Pennsbury Village';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of rank for stone park`

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

CREATE TABLE "metropolitan_areas" (
  "rank" real,
  "metropolitan_area" text,
  "principal_city" text,
  "10_000_places" real,
  "densest_incorporated_place" text,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of rank for stone park`:
```sql
                SELECT COUNT("rank") FROM "metropolitan_areas" WHERE "densest_incorporated_place"='Stone Park';
```
## Task
Generate a SQL query to answer the following question:
`Name the area for north bay village`

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

CREATE TABLE "metropolitan_areas" (
  "rank" real,
  "metropolitan_area" text,
  "principal_city" text,
  "10_000_places" real,
  "densest_incorporated_place" text,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the area for north bay village`:
```sql
                SELECT "metropolitan_area" FROM "metropolitan_areas" WHERE "densest_incorporated_place"='North Bay Village';
```
## Task
Generate a SQL query to answer the following question:
`Where is the PPP 23164 million €?`

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

CREATE TABLE "table1_2293510_1" (
  "region_nuts_2006" text,
  "total_million" text,
  "per_capita_2005" real,
  "ppp_million" real,
  "ppp_per_capita" real,
  "pct_of_eu_average_gdp_ppp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the PPP 23164 million €?`:
```sql
                SELECT "region_nuts_2006" FROM "table1_2293510_1" WHERE "ppp_million"=23164;
```
## Task
Generate a SQL query to answer the following question:
`What's the total (in million €) in the region where PPP is 21779 million €?`

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

CREATE TABLE "table1_2293510_1" (
  "region_nuts_2006" text,
  "total_million" text,
  "per_capita_2005" real,
  "ppp_million" real,
  "ppp_per_capita" real,
  "pct_of_eu_average_gdp_ppp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total (in million €) in the region where PPP is 21779 million €?`:
```sql
                SELECT "total_million" FROM "table1_2293510_1" WHERE "ppp_million"=21779;
```
## Task
Generate a SQL query to answer the following question:
`What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519`

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

CREATE TABLE "table1_2293510_1" (
  "region_nuts_2006" text,
  "total_million" text,
  "per_capita_2005" real,
  "ppp_million" real,
  "ppp_per_capita" real,
  "pct_of_eu_average_gdp_ppp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519`:
```sql
                SELECT "pct_of_eu_average_gdp_ppp" FROM "table1_2293510_1" WHERE "per_capita_2005"=2519;
```
## Task
Generate a SQL query to answer the following question:
`If the winner is Bernhard Eisel, what is the stage maximum?`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the winner is Bernhard Eisel, what is the stage maximum?`:
```sql
                SELECT MAX("stage") FROM "riders_jersey_progress_table" WHERE "winner"='Bernhard Eisel';
```
## Task
Generate a SQL query to answer the following question:
`What is the mountain classification name if the winner is Bernhard Eisel?`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mountain classification name if the winner is Bernhard Eisel?`:
```sql
                SELECT "mountains_classification" FROM "riders_jersey_progress_table" WHERE "winner"='Bernhard Eisel';
```
## Task
Generate a SQL query to answer the following question:
`If the stage is 3, what is the points classification name?`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the stage is 3, what is the points classification name?`:
```sql
                SELECT "points_classification" FROM "riders_jersey_progress_table" WHERE "stage"=3;
```
## Task
Generate a SQL query to answer the following question:
`If the stage is 9, what is the team classification name?`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the stage is 9, what is the team classification name?`:
```sql
                SELECT "team_classification" FROM "riders_jersey_progress_table" WHERE "stage"=9;
```
## Task
Generate a SQL query to answer the following question:
`If the winner is Michael Albasini, what is the mountains classification name?`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the winner is Michael Albasini, what is the mountains classification name?`:
```sql
                SELECT "mountains_classification" FROM "riders_jersey_progress_table" WHERE "winner"='Michael Albasini';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the winner when the sprints classification is no award?`

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

CREATE TABLE "riders_jersey_progress_table" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "mountains_classification" text,
  "points_classification" text,
  "sprints_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the winner when the sprints classification is no award?`:
```sql
                SELECT "winner" FROM "riders_jersey_progress_table" WHERE "sprints_classification"='no award';
```
## Task
Generate a SQL query to answer the following question:
`What was the 18-49 rating share for the episode "pilot"?`

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

CREATE TABLE "table1_22951088_3" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text,
  "18_49_rating_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 18-49 rating share for the episode "pilot"?`:
```sql
                SELECT "18_49_rating_share" FROM "table1_22951088_3" WHERE "title"='\"Pilot\"';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers (in millions) watched the episode written by deidre shaw?`

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

CREATE TABLE "table1_22951088_3" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text,
  "18_49_rating_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers (in millions) watched the episode written by deidre shaw?`:
```sql
                SELECT "u_s_viewers_in_millions" FROM "table1_22951088_3" WHERE "written_by"='Deidre Shaw';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date of episode number 1?`

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

CREATE TABLE "table1_22951088_3" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text,
  "18_49_rating_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of episode number 1?`:
```sql
                SELECT "original_air_date" FROM "table1_22951088_3" WHERE "no"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who was the bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha?`

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

CREATE TABLE "list_of_hat_tricks" (
  "no" real,
  "season" real,
  "bowler" text,
  "batsmen" text,
  "for" text,
  "against" text,
  "ground" text,
  "scorecard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha?`:
```sql
                SELECT "bowler" FROM "list_of_hat_tricks" WHERE "batsmen"='Dwaraka Ravi Teja RP Singh Pragyan Ojha';
```
## Task
Generate a SQL query to answer the following question:
`How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?`

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

CREATE TABLE "list_of_hat_tricks" (
  "no" real,
  "season" real,
  "bowler" text,
  "batsmen" text,
  "for" text,
  "against" text,
  "ground" text,
  "scorecard" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?`:
```sql
                SELECT COUNT("bowler") FROM "list_of_hat_tricks" WHERE "batsmen"='David Hussey Azhar Mahmood Gurkeerat Singh';
```
## Task
Generate a SQL query to answer the following question:
`What season was herschelle gibbs andrew symonds venugopal rao batsmen?`

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

CREATE TABLE "list_of_hat_tricks" (
  "no" real,
  "season" real,
  "bowler" text,
  "batsmen" text,
  "for" text,
  "against" text,
  "ground" text,
  "scorecard" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season was herschelle gibbs andrew symonds venugopal rao batsmen?`:
```sql
                SELECT "season" FROM "list_of_hat_tricks" WHERE "batsmen"='Herschelle Gibbs Andrew Symonds Venugopal Rao';
```
## Task
Generate a SQL query to answer the following question:
`What was the scorecard when robin uthappa mark boucher jacques kallis was the batsmen?`

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

CREATE TABLE "list_of_hat_tricks" (
  "no" real,
  "season" real,
  "bowler" text,
  "batsmen" text,
  "for" text,
  "against" text,
  "ground" text,
  "scorecard" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the scorecard when robin uthappa mark boucher jacques kallis was the batsmen?`:
```sql
                SELECT "scorecard" FROM "list_of_hat_tricks" WHERE "batsmen"='Robin Uthappa Mark Boucher Jacques Kallis';
```