cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the stgae with winner of robbie mcewen`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the stgae with winner of robbie mcewen`:
```sql
                SELECT "stage" FROM "jersey_progress" WHERE "winner"='robbie mcewen';
```
## Task
Generate a SQL query to answer the following question:
`Name the winner for nick nuyens for general classification and stage of 2`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winner for nick nuyens for general classification and stage of 2`:
```sql
                SELECT "winner" FROM "jersey_progress" WHERE "general_classification"='nick nuyens' AND "stage"='2';
```
## Task
Generate a SQL query to answer the following question:
`Name the team classification for stage of 6`

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

CREATE TABLE "jersey_progress" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team classification for stage of 6`:
```sql
                SELECT "team_classification" FROM "jersey_progress" WHERE "stage"='6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Davao's power (kW)?`

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

CREATE TABLE "sonshine_radio_stations_in_the_philippin" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Davao's power (kW)?`:
```sql
                SELECT "power_k_w" FROM "sonshine_radio_stations_in_the_philippin" WHERE "location"='davao';
```
## Task
Generate a SQL query to answer the following question:
`What is the brand of DXRE?`

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

CREATE TABLE "sonshine_radio_stations_in_the_philippin" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brand of DXRE?`:
```sql
                SELECT "branding" FROM "sonshine_radio_stations_in_the_philippin" WHERE "callsign"='dxre';
```
## Task
Generate a SQL query to answer the following question:
`What is the power (kW) of Davao?`

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

CREATE TABLE "sonshine_radio_stations_in_the_philippin" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power (kW) of Davao?`:
```sql
                SELECT "power_k_w" FROM "sonshine_radio_stations_in_the_philippin" WHERE "location"='davao';
```
## Task
Generate a SQL query to answer the following question:
`What is the callsign of Cagayan de Oro with 5kW?`

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

CREATE TABLE "sonshine_radio_stations_in_the_philippin" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the callsign of Cagayan de Oro with 5kW?`:
```sql
                SELECT "callsign" FROM "sonshine_radio_stations_in_the_philippin" WHERE "power_k_w"='5kw' AND "location"='cagayan de oro';
```
## Task
Generate a SQL query to answer the following question:
`What is the callsign of the 5kW Sonshine Radio Cotabato?`

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

CREATE TABLE "sonshine_radio_stations_in_the_philippin" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the callsign of the 5kW Sonshine Radio Cotabato?`:
```sql
                SELECT "callsign" FROM "sonshine_radio_stations_in_the_philippin" WHERE "power_k_w"='5kw' AND "branding"='sonshine radio cotabato';
```
## Task
Generate a SQL query to answer the following question:
`What's the average amount of Runs that has 40 innings, and Not outs larger than 6?`

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

CREATE TABLE "highest_batting_averages" (
  "matches" real,
  "innings" real,
  "not_outs" real,
  "runs" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average amount of Runs that has 40 innings, and Not outs larger than 6?`:
```sql
                SELECT AVG("runs") FROM "highest_batting_averages" WHERE "innings"=40 AND "not_outs">6;
```
## Task
Generate a SQL query to answer the following question:
`What's the total Innings that has Runs of 1598, and Matches less than 41?`

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

CREATE TABLE "highest_batting_averages" (
  "matches" real,
  "innings" real,
  "not_outs" real,
  "runs" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total Innings that has Runs of 1598, and Matches less than 41?`:
```sql
                SELECT COUNT("innings") FROM "highest_batting_averages" WHERE "runs"=1598 AND "matches"<41;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total number of seats with a Seat percentage of 46.5% and less than 394,118 party list votes?`

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

CREATE TABLE "results" (
  "party" text,
  "party_list_votes" real,
  "vote_percentage" text,
  "total_seats" real,
  "seat_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total number of seats with a Seat percentage of 46.5% and less than 394,118 party list votes?`:
```sql
                SELECT MAX("total_seats") FROM "results" WHERE "seat_percentage"='46.5%' AND "party_list_votes"<'394,118';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of party list votes for a vote percentage of 2.6% with 0 total seats?`

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

CREATE TABLE "results" (
  "party" text,
  "party_list_votes" real,
  "vote_percentage" text,
  "total_seats" real,
  "seat_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of party list votes for a vote percentage of 2.6% with 0 total seats?`:
```sql
                SELECT SUM("party_list_votes") FROM "results" WHERE "total_seats"=0 AND "vote_percentage"='2.6%';
```
## Task
Generate a SQL query to answer the following question:
`What venue held the event in 2008 that has 2:13:10 in the notes?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue held the event in 2008 that has 2:13:10 in the notes?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"=2008 AND "notes"='2:13:10';
```
## Task
Generate a SQL query to answer the following question:
`Who discovered the specimen at the Burpee Museum of Natural History?`

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

CREATE TABLE "specimen_data" (
  "name" text,
  "discovered" real,
  "museum" text,
  "museum_city" text,
  "discoverer" text,
  "formation" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who discovered the specimen at the Burpee Museum of Natural History?`:
```sql
                SELECT "discoverer" FROM "specimen_data" WHERE "museum"='burpee museum of natural history';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the specimen that was discovered after 1987 and is in an Indianapolis, Indiana museum?`

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

CREATE TABLE "specimen_data" (
  "name" text,
  "discovered" real,
  "museum" text,
  "museum_city" text,
  "discoverer" text,
  "formation" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the specimen that was discovered after 1987 and is in an Indianapolis, Indiana museum?`:
```sql
                SELECT "name" FROM "specimen_data" WHERE "discovered">1987 AND "museum_city"='indianapolis, in';
```
## Task
Generate a SQL query to answer the following question:
`What is the formation that had the specimen discovered before 2001 and is in an Indianapolis, Indiana museum?`

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

CREATE TABLE "specimen_data" (
  "name" text,
  "discovered" real,
  "museum" text,
  "museum_city" text,
  "discoverer" text,
  "formation" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the formation that had the specimen discovered before 2001 and is in an Indianapolis, Indiana museum?`:
```sql
                SELECT "formation" FROM "specimen_data" WHERE "discovered"<2001 AND "museum_city"='indianapolis, in';
```
## Task
Generate a SQL query to answer the following question:
`What is the city of the Museum that houses the specimen discovered by Jane Solem?`

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

CREATE TABLE "specimen_data" (
  "name" text,
  "discovered" real,
  "museum" text,
  "museum_city" text,
  "discoverer" text,
  "formation" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city of the Museum that houses the specimen discovered by Jane Solem?`:
```sql
                SELECT "museum_city" FROM "specimen_data" WHERE "discoverer"='jane solem';
```
## Task
Generate a SQL query to answer the following question:
`What city has the museum that holds the Sue specimen?`

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

CREATE TABLE "specimen_data" (
  "name" text,
  "discovered" real,
  "museum" text,
  "museum_city" text,
  "discoverer" text,
  "formation" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city has the museum that holds the Sue specimen?`:
```sql
                SELECT "museum_city" FROM "specimen_data" WHERE "name"='sue';
```
## Task
Generate a SQL query to answer the following question:
`With what Name does the Roll of 637 belong?`

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

CREATE TABLE "grey_district" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" text,
  "roll" text
);
### SQL
Given the database schema, here is the SQL query that answers `With what Name does the Roll of 637 belong?`:
```sql
                SELECT "name" FROM "grey_district" WHERE "roll"='637';
```
## Task
Generate a SQL query to answer the following question:
`Which is the Authority that has a Roll of 70?`

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

CREATE TABLE "grey_district" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" text,
  "roll" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the Authority that has a Roll of 70?`:
```sql
                SELECT "authority" FROM "grey_district" WHERE "roll"='70';
```
## Task
Generate a SQL query to answer the following question:
`The Decile of 6 has which corresponding Years?`

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

CREATE TABLE "grey_district" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" text,
  "roll" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Decile of 6 has which corresponding Years?`:
```sql
                SELECT "years" FROM "grey_district" WHERE "decile"='6';
```
## Task
Generate a SQL query to answer the following question:
`Name the award for candida scott knight`

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

CREATE TABLE "2004" (
  "film" text,
  "director_s" text,
  "writer_s" text,
  "recipient" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the award for candida scott knight`:
```sql
                SELECT "award" FROM "2004" WHERE "director_s"='candida scott knight';
```
## Task
Generate a SQL query to answer the following question:
`Name the recipient for jamaica and award of £6,947`

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

CREATE TABLE "2004" (
  "film" text,
  "director_s" text,
  "writer_s" text,
  "recipient" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the recipient for jamaica and award of £6,947`:
```sql
                SELECT "recipient" FROM "2004" WHERE "award"='£6,947' AND "film"='jamaica';
```
## Task
Generate a SQL query to answer the following question:
`Name the film for award of £3,740`

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

CREATE TABLE "2004" (
  "film" text,
  "director_s" text,
  "writer_s" text,
  "recipient" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the film for award of £3,740`:
```sql
                SELECT "film" FROM "2004" WHERE "award"='£3,740';
```
## Task
Generate a SQL query to answer the following question:
`Name the director for maya vision international ltd`

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

CREATE TABLE "2004" (
  "film" text,
  "director_s" text,
  "writer_s" text,
  "recipient" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the director for maya vision international ltd`:
```sql
                SELECT "director_s" FROM "2004" WHERE "recipient"='maya vision international ltd';
```
## Task
Generate a SQL query to answer the following question:
`Name the film for award of £3,386`

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

CREATE TABLE "2004" (
  "film" text,
  "director_s" text,
  "writer_s" text,
  "recipient" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the film for award of £3,386`:
```sql
                SELECT "film" FROM "2004" WHERE "award"='£3,386';
```
## Task
Generate a SQL query to answer the following question:
`Name the venue for 2004 and position of 25th`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for 2004 and position of 25th`:
```sql
                SELECT "venue" FROM "achievements" WHERE "position"='25th' AND "year"=2004;
```
## Task
Generate a SQL query to answer the following question:
`Name the venue for 27th position`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for 27th position`:
```sql
                SELECT "venue" FROM "achievements" WHERE "position"='27th';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the draw in the 2005 FIFA Confederations Cup?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the draw in the 2005 FIFA Confederations Cup?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='2005 fifa confederations cup' AND "result"='draw';
```
## Task
Generate a SQL query to answer the following question:
`How many electors has 465,151 naders and more than 143,630 Peroutka?`

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

CREATE TABLE "votes_by_state" (
  "state" text,
  "electors" real,
  "bush" real,
  "kerry" real,
  "nader" real,
  "badnarik" real,
  "peroutka" real,
  "cobb" real,
  "others" real,
  "margin" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many electors has 465,151 naders and more than 143,630 Peroutka?`:
```sql
                SELECT SUM("electors") FROM "votes_by_state" WHERE "nader"='465,151' AND "peroutka">'143,630';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Peroutka with 46 others, and less than 15 electors?`

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

CREATE TABLE "votes_by_state" (
  "state" text,
  "electors" real,
  "bush" real,
  "kerry" real,
  "nader" real,
  "badnarik" real,
  "peroutka" real,
  "cobb" real,
  "others" real,
  "margin" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Peroutka with 46 others, and less than 15 electors?`:
```sql
                SELECT MAX("peroutka") FROM "votes_by_state" WHERE "others"=46 AND "electors"<15;
```
## Task
Generate a SQL query to answer the following question:
`Who came in 3rd place in 1990?`

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

CREATE TABLE "one_day_final_1988_2009" (
  "year" text,
  "venue" text,
  "winners" text,
  "runner_up" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who came in 3rd place in 1990?`:
```sql
                SELECT "3rd_place" FROM "one_day_final_1988_2009" WHERE "year"='1990';
```
## Task
Generate a SQL query to answer the following question:
`Which class Pos has a Team of jml team panoz?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class Pos has a Team of jml team panoz?`:
```sql
                SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "team"='jml team panoz';
```
## Task
Generate a SQL query to answer the following question:
`Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps?`:
```sql
                SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "year">1997 AND "team"='corvette racing' AND "class"='gt1' AND "laps"=327;
```
## Task
Generate a SQL query to answer the following question:
`What is the final result of the team that has Simara as No.5?`

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

CREATE TABLE "nominations" (
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final result of the team that has Simara as No.5?`:
```sql
                SELECT "final" FROM "nominations" WHERE "no_5"='simara';
```
## Task
Generate a SQL query to answer the following question:
`Which Winning Driver has a Second Driver of jimmy bryan?`

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

CREATE TABLE "world_championship_indy_500_summary" (
  "season" real,
  "cars_entered" real,
  "winning_driver" text,
  "second_driver" text,
  "third_driver" text,
  "race_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winning Driver has a Second Driver of jimmy bryan?`:
```sql
                SELECT "winning_driver" FROM "world_championship_indy_500_summary" WHERE "second_driver"='jimmy bryan';
```
## Task
Generate a SQL query to answer the following question:
`How many average Cars Entered have a Third Driver of manny ayulo?`

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

CREATE TABLE "world_championship_indy_500_summary" (
  "season" real,
  "cars_entered" real,
  "winning_driver" text,
  "second_driver" text,
  "third_driver" text,
  "race_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many average Cars Entered have a Third Driver of manny ayulo?`:
```sql
                SELECT AVG("cars_entered") FROM "world_championship_indy_500_summary" WHERE "third_driver"='manny ayulo';
```
## Task
Generate a SQL query to answer the following question:
`What are the largest Cars Entered with a Season of 1958?`

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

CREATE TABLE "world_championship_indy_500_summary" (
  "season" real,
  "cars_entered" real,
  "winning_driver" text,
  "second_driver" text,
  "third_driver" text,
  "race_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the largest Cars Entered with a Season of 1958?`:
```sql
                SELECT MAX("cars_entered") FROM "world_championship_indy_500_summary" WHERE "season"=1958;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest season with a Third Driver of jimmy davies?`

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

CREATE TABLE "world_championship_indy_500_summary" (
  "season" real,
  "cars_entered" real,
  "winning_driver" text,
  "second_driver" text,
  "third_driver" text,
  "race_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest season with a Third Driver of jimmy davies?`:
```sql
                SELECT MAX("season") FROM "world_championship_indy_500_summary" WHERE "third_driver"='jimmy davies';
```
## Task
Generate a SQL query to answer the following question:
`What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?`

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

CREATE TABLE "world_championship_indy_500_summary" (
  "season" real,
  "cars_entered" real,
  "winning_driver" text,
  "second_driver" text,
  "third_driver" text,
  "race_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?`:
```sql
                SELECT MAX("cars_entered") FROM "world_championship_indy_500_summary" WHERE "winning_driver"='rodger ward' AND "season"<1959;
```
## Task
Generate a SQL query to answer the following question:
`What engine with more than 2 points has Brabham bt58 as Chassis?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What engine with more than 2 points has Brabham bt58 as Chassis?`:
```sql
                SELECT "engine" FROM "complete_formula_one_results" WHERE "chassis"='brabham bt58' AND "points">2;
```
## Task
Generate a SQL query to answer the following question:
`How many points did Judd v8 has in 1989?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Judd v8 has in 1989?`:
```sql
                SELECT COUNT("points") FROM "complete_formula_one_results" WHERE "engine"='judd v8' AND "year"=1989;
```
## Task
Generate a SQL query to answer the following question:
`How many years has Sasol Jordan Yamaha as an Entrant?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years has Sasol Jordan Yamaha as an Entrant?`:
```sql
                SELECT AVG("year") FROM "complete_formula_one_results" WHERE "entrant"='sasol jordan yamaha';
```
## Task
Generate a SQL query to answer the following question:
`What was the record for the game that had a loss of Williams (3-1)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the game that had a loss of Williams (3-1)?`:
```sql
                SELECT "record" FROM "game_log" WHERE "loss"='williams (3-1)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that had a loss of Embree (1-2)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that had a loss of Embree (1-2)?`:
```sql
                SELECT "score" FROM "game_log" WHERE "loss"='embree (1-2)';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2007 at the Olympic Games as tournament.`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2007 at the Olympic Games as tournament.`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "tournament"='olympic games';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2009 when the 2012 is 1R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2009 when the 2012 is 1R?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010 when the 2009 shows Q1?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 when the 2009 shows Q1?`:
```sql
                SELECT "2010" FROM "singles_performance_timeline" WHERE "2009"='q1';
```
## Task
Generate a SQL query to answer the following question:
`What is the gross revenue in 2011 for MO?`

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

CREATE TABLE "box_office_score_data" (
  "venue" text,
  "city" text,
  "state" text,
  "tickets_sold_available" text,
  "gross_revenue_1982" text,
  "gross_revenue_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gross revenue in 2011 for MO?`:
```sql
                SELECT "gross_revenue_2011" FROM "box_office_score_data" WHERE "state"='mo';
```
## Task
Generate a SQL query to answer the following question:
`Which state has the venue Tsukisamu dome?`

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

CREATE TABLE "box_office_score_data" (
  "venue" text,
  "city" text,
  "state" text,
  "tickets_sold_available" text,
  "gross_revenue_1982" text,
  "gross_revenue_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state has the venue Tsukisamu dome?`:
```sql
                SELECT "state" FROM "box_office_score_data" WHERE "venue"='tsukisamu dome';
```
## Task
Generate a SQL query to answer the following question:
`Which city had a gross revenue in 2011 of $739,578?`

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

CREATE TABLE "box_office_score_data" (
  "venue" text,
  "city" text,
  "state" text,
  "tickets_sold_available" text,
  "gross_revenue_1982" text,
  "gross_revenue_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city had a gross revenue in 2011 of $739,578?`:
```sql
                SELECT "city" FROM "box_office_score_data" WHERE "gross_revenue_2011"='$739,578';
```
## Task
Generate a SQL query to answer the following question:
`What is the gross revenue in 2011 with a gross revenue in 1982 of $1,988,047?`

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

CREATE TABLE "box_office_score_data" (
  "venue" text,
  "city" text,
  "state" text,
  "tickets_sold_available" text,
  "gross_revenue_1982" text,
  "gross_revenue_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gross revenue in 2011 with a gross revenue in 1982 of $1,988,047?`:
```sql
                SELECT "gross_revenue_2011" FROM "box_office_score_data" WHERE "gross_revenue_1982"='$1,988,047';
```
## Task
Generate a SQL query to answer the following question:
`What was the grid when the driver was Mark Webber?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the grid when the driver was Mark Webber?`:
```sql
                SELECT "grid" FROM "race" WHERE "driver"='mark webber';
```
## Task
Generate a SQL query to answer the following question:
`Who was the driver, when the constructor was Renault, and when the Time/Retired was +38.600?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the driver, when the constructor was Renault, and when the Time/Retired was +38.600?`:
```sql
                SELECT "driver" FROM "race" WHERE "constructor"='renault' AND "time_retired"='+38.600';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were there when the Time/Retired was +1:00.003?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were there when the Time/Retired was +1:00.003?`:
```sql
                SELECT "laps" FROM "race" WHERE "time_retired"='+1:00.003';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were there when the Time/Retired was +14.403?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were there when the Time/Retired was +14.403?`:
```sql
                SELECT "laps" FROM "race" WHERE "time_retired"='+14.403';
```
## Task
Generate a SQL query to answer the following question:
`Who was the driver when there were 35 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the driver when there were 35 laps?`:
```sql
                SELECT "driver" FROM "race" WHERE "laps"='35';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso?`:
```sql
                SELECT "laps" FROM "race" WHERE "constructor"='renault' AND "driver"='fernando alonso';
```
## Task
Generate a SQL query to answer the following question:
`What's the Street address with a Name of New York Life Insurance building?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_feet_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Street address with a Name of New York Life Insurance building?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='new york life insurance building';
```
## Task
Generate a SQL query to answer the following question:
`What's the Years as tallest with a Street address of 324 E. 11th Street?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_feet_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Years as tallest with a Street address of 324 E. 11th Street?`:
```sql
                SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "street_address"='324 e. 11th street';
```
## Task
Generate a SQL query to answer the following question:
`What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_feet_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?`:
```sql
                SELECT "height_feet_m" FROM "timeline_of_tallest_buildings" WHERE "street_address"='2345 grand avenue';
```
## Task
Generate a SQL query to answer the following question:
`What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000?`

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

CREATE TABLE "ontario_university_athletics_yates_cup" (
  "institution" text,
  "team" text,
  "city" text,
  "province" text,
  "first_season" real,
  "head_coach" text,
  "enrollment" real,
  "football_stadium" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000?`:
```sql
                SELECT AVG("capacity") FROM "ontario_university_athletics_yates_cup" WHERE "city"='london' AND "enrollment"<'30,000';
```
## Task
Generate a SQL query to answer the following question:
`Who had a score of 69-70=139?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a score of 69-70=139?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='69-70=139';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that had a result of 5–0?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that had a result of 5–0?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "result"='5–0';
```
## Task
Generate a SQL query to answer the following question:
`What is the heat number of the athlete who finished in 2:23.95?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the heat number of the athlete who finished in 2:23.95?`:
```sql
                SELECT AVG("heat") FROM "heats" WHERE "time"='2:23.95';
```
## Task
Generate a SQL query to answer the following question:
`Which lane did the athlete from Zambia swim in?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which lane did the athlete from Zambia swim in?`:
```sql
                SELECT "lane" FROM "heats" WHERE "nationality"='zambia';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game when the record was 4-5?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the game when the record was 4-5?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='4-5';
```
## Task
Generate a SQL query to answer the following question:
`What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2`

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

CREATE TABLE "breakdown_by_nationality" (
  "country" text,
  "2012" real,
  "2011" real,
  "2010" real,
  "2009" real,
  "2008" real,
  "2007" real,
  "2006" real,
  "2005" real,
  "2004" real,
  "2003" real,
  "2002" real,
  "2001" real,
  "2000" real,
  "1999" real,
  "1998" real,
  "1997" real,
  "1996" real,
  "1995" real,
  "1994" real,
  "1993" real,
  "1992" real,
  "1991" real,
  "1990" real,
  "1989" real,
  "1988" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2`:
```sql
                SELECT AVG("2009") FROM "breakdown_by_nationality" WHERE "2001">0 AND "1996"<1 AND "2004">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the listing for 2009 when 1989 is less than 0?`

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

CREATE TABLE "breakdown_by_nationality" (
  "country" text,
  "2012" real,
  "2011" real,
  "2010" real,
  "2009" real,
  "2008" real,
  "2007" real,
  "2006" real,
  "2005" real,
  "2004" real,
  "2003" real,
  "2002" real,
  "2001" real,
  "2000" real,
  "1999" real,
  "1998" real,
  "1997" real,
  "1996" real,
  "1995" real,
  "1994" real,
  "1993" real,
  "1992" real,
  "1991" real,
  "1990" real,
  "1989" real,
  "1988" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the listing for 2009 when 1989 is less than 0?`:
```sql
                SELECT SUM("2009") FROM "breakdown_by_nationality" WHERE "1989"<0;
```
## Task
Generate a SQL query to answer the following question:
`what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5?`

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

CREATE TABLE "breakdown_by_nationality" (
  "country" text,
  "2012" real,
  "2011" real,
  "2010" real,
  "2009" real,
  "2008" real,
  "2007" real,
  "2006" real,
  "2005" real,
  "2004" real,
  "2003" real,
  "2002" real,
  "2001" real,
  "2000" real,
  "1999" real,
  "1998" real,
  "1997" real,
  "1996" real,
  "1995" real,
  "1994" real,
  "1993" real,
  "1992" real,
  "1991" real,
  "1990" real,
  "1989" real,
  "1988" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5?`:
```sql
                SELECT AVG("2005") FROM "breakdown_by_nationality" WHERE "1995">3 AND "1996"<4 AND "2011">5;
```
## Task
Generate a SQL query to answer the following question:
`what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?`

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

CREATE TABLE "breakdown_by_nationality" (
  "country" text,
  "2012" real,
  "2011" real,
  "2010" real,
  "2009" real,
  "2008" real,
  "2007" real,
  "2006" real,
  "2005" real,
  "2004" real,
  "2003" real,
  "2002" real,
  "2001" real,
  "2000" real,
  "1999" real,
  "1998" real,
  "1997" real,
  "1996" real,
  "1995" real,
  "1994" real,
  "1993" real,
  "1992" real,
  "1991" real,
  "1990" real,
  "1989" real,
  "1988" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?`:
```sql
                SELECT SUM("1999") FROM "breakdown_by_nationality" WHERE "1990">0 AND "2003"=3 AND "2007">1 AND "1996">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11?`

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

CREATE TABLE "breakdown_by_nationality" (
  "country" text,
  "2012" real,
  "2011" real,
  "2010" real,
  "2009" real,
  "2008" real,
  "2007" real,
  "2006" real,
  "2005" real,
  "2004" real,
  "2003" real,
  "2002" real,
  "2001" real,
  "2000" real,
  "1999" real,
  "1998" real,
  "1997" real,
  "1996" real,
  "1995" real,
  "1994" real,
  "1993" real,
  "1992" real,
  "1991" real,
  "1990" real,
  "1989" real,
  "1988" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11?`:
```sql
                SELECT MIN("2012") FROM "breakdown_by_nationality" WHERE "2004">0 AND "2008">1 AND "1994"=8 AND "2005"<11;
```
## Task
Generate a SQL query to answer the following question:
`what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2?`

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

CREATE TABLE "breakdown_by_nationality" (
  "country" text,
  "2012" real,
  "2011" real,
  "2010" real,
  "2009" real,
  "2008" real,
  "2007" real,
  "2006" real,
  "2005" real,
  "2004" real,
  "2003" real,
  "2002" real,
  "2001" real,
  "2000" real,
  "1999" real,
  "1998" real,
  "1997" real,
  "1996" real,
  "1995" real,
  "1994" real,
  "1993" real,
  "1992" real,
  "1991" real,
  "1990" real,
  "1989" real,
  "1988" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2?`:
```sql
                SELECT SUM("1992") FROM "breakdown_by_nationality" WHERE "1999">1 AND "2008"<2 AND "2003"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps?`

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

CREATE TABLE "periodization" (
  "week" real,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "volume_lbs" real,
  "peak_intensity_last_set" text,
  "pct_of_1_rep_max_last_set" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps?`:
```sql
                SELECT "pct_of_1_rep_max_last_set" FROM "periodization" WHERE "set_4"='145lb x 5reps';
```
## Task
Generate a SQL query to answer the following question:
`How many lbs does a set 4 of 115lb x 8reps have?`

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

CREATE TABLE "periodization" (
  "week" real,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "volume_lbs" real,
  "peak_intensity_last_set" text,
  "pct_of_1_rep_max_last_set" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many lbs does a set 4 of 115lb x 8reps have?`:
```sql
                SELECT "volume_lbs" FROM "periodization" WHERE "set_4"='115lb x 8reps';
```