cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What percentage of other candidates did the county which voted 52.1% for Kerry vote for?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real,
  "2000_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of other candidates did the county which voted 52.1% for Kerry vote for?`:
```sql
                SELECT MAX("othersnum") FROM "by_county" WHERE "kerrypct"='52.1%';
```
## Task
Generate a SQL query to answer the following question:
`How many votes did Kerry get in the county that gave Bush 189,605 votes?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real,
  "2000_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Kerry get in the county that gave Bush 189,605 votes?`:
```sql
                SELECT AVG("kerrynum") FROM "by_county" WHERE "bushnum"='189,605';
```
## Task
Generate a SQL query to answer the following question:
`How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real,
  "2000_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush?`:
```sql
                SELECT MIN("othersnum") FROM "by_county" WHERE "otherspct"='1.9%' AND "bushnum"<'160,390';
```
## Task
Generate a SQL query to answer the following question:
`How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6?`

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

CREATE TABLE "seat_allocation" (
  "governorate" text,
  "seats_2010" real,
  "seats_2005" real,
  "in_de_creased_by" real,
  "percentage_in_de_crease" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6?`:
```sql
                SELECT SUM("seats_2005") FROM "seat_allocation" WHERE "percentage_in_de_crease"='50.0%' AND "governorate"='dhi qar governorate' AND "in_de_creased_by">6;
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2?`

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

CREATE TABLE "seat_allocation" (
  "governorate" text,
  "seats_2010" real,
  "seats_2005" real,
  "in_de_creased_by" real,
  "percentage_in_de_crease" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2?`:
```sql
                SELECT MIN("seats_2010") FROM "seat_allocation" WHERE "seats_2005"<9 AND "governorate"='al muthanna governorate' AND "in_de_creased_by">2;
```
## Task
Generate a SQL query to answer the following question:
`Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9?`

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

CREATE TABLE "seat_allocation" (
  "governorate" text,
  "seats_2010" real,
  "seats_2005" real,
  "in_de_creased_by" real,
  "percentage_in_de_crease" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9?`:
```sql
                SELECT AVG("in_de_creased_by") FROM "seat_allocation" WHERE "governorate"='al anbar governorate' AND "seats_2005"<9;
```
## Task
Generate a SQL query to answer the following question:
`Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8?`

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

CREATE TABLE "seat_allocation" (
  "governorate" text,
  "seats_2010" real,
  "seats_2005" real,
  "in_de_creased_by" real,
  "percentage_in_de_crease" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8?`:
```sql
                SELECT MAX("in_de_creased_by") FROM "seat_allocation" WHERE "percentage_in_de_crease"='100%' AND "seats_2010">8;
```
## Task
Generate a SQL query to answer the following question:
`What player has a score larger than 67?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a score larger than 67?`:
```sql
                SELECT "player" FROM "first_round" WHERE "score">67;
```
## Task
Generate a SQL query to answer the following question:
`What is the celtics record after game 33 when they score of the game was 111-108?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the celtics record after game 33 when they score of the game was 111-108?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game">33 AND "score"='111-108';
```
## Task
Generate a SQL query to answer the following question:
`Which Rider is grid 7?`

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

CREATE TABLE "supersport_race_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rider is grid 7?`:
```sql
                SELECT "rider" FROM "supersport_race_classification" WHERE "grid"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4?`

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

CREATE TABLE "supersport_race_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4?`:
```sql
                SELECT COUNT("laps") FROM "supersport_race_classification" WHERE "rider"='massimo roccoli' AND "grid"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the time recorded by David Salom on his Yamaha yzf-r6 when his grid was larger than 1?`

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

CREATE TABLE "supersport_race_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time recorded by David Salom on his Yamaha yzf-r6 when his grid was larger than 1?`:
```sql
                SELECT "time" FROM "supersport_race_classification" WHERE "bike"='yamaha yzf-r6' AND "grid">1 AND "rider"='david salom';
```
## Task
Generate a SQL query to answer the following question:
`What is Stop No., when Destination is [2778] Claisebrook Station Platforms?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Stop No., when Destination is [2778] Claisebrook Station Platforms?`:
```sql
                SELECT "stop_no" FROM "platforms" WHERE "destination"='[2778] claisebrook station platforms';
```
## Task
Generate a SQL query to answer the following question:
`What is Stopping Pattern, when Platform is 4?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Stopping Pattern, when Platform is 4?`:
```sql
                SELECT "stopping_pattern" FROM "platforms" WHERE "platform"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is Stop No., when Destination is Perth, and when Line is Midland?`

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

CREATE TABLE "platforms" (
  "stop_no" text,
  "platform" text,
  "line" text,
  "stopping_pattern" text,
  "destination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Stop No., when Destination is Perth, and when Line is Midland?`:
```sql
                SELECT "stop_no" FROM "platforms" WHERE "destination"='perth' AND "line"='midland';
```
## Task
Generate a SQL query to answer the following question:
`What year did the Turku Airport have a total of 116,631 domestic passengers and a total of 308,782 passengers?`

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

CREATE TABLE "annual_passenger_statistics_for_turku_ai" (
  "year" real,
  "domestic_passengers" real,
  "international_passengers" real,
  "total_passengers" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the Turku Airport have a total of 116,631 domestic passengers and a total of 308,782 passengers?`:
```sql
                SELECT MAX("year") FROM "annual_passenger_statistics_for_turku_ai" WHERE "domestic_passengers">'116,631' AND "total_passengers"='308,782';
```
## Task
Generate a SQL query to answer the following question:
`Which coach founded the Western Strikers team after 1963?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which coach founded the Western Strikers team after 1963?`:
```sql
                SELECT "coach" FROM "south_australia" WHERE "founded">1963 AND "team"='western strikers';
```
## Task
Generate a SQL query to answer the following question:
`Who is the coach located in Oakden?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach located in Oakden?`:
```sql
                SELECT "coach" FROM "south_australia" WHERE "location"='oakden';
```
## Task
Generate a SQL query to answer the following question:
`Which team has coach John Kosmina?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has coach John Kosmina?`:
```sql
                SELECT "team" FROM "south_australia" WHERE "coach"='john kosmina';
```
## Task
Generate a SQL query to answer the following question:
`Who is the coach for the Adelaide Galaxy team?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach for the Adelaide Galaxy team?`:
```sql
                SELECT "coach" FROM "south_australia" WHERE "team"='adelaide galaxy';
```
## Task
Generate a SQL query to answer the following question:
`Count the average Wins which has a Class of 250cc, and a Year of 1972?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Count the average Wins which has a Class of 250cc, and a Year of 1972?`:
```sql
                SELECT AVG("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='250cc' AND "year"=1972;
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Wins which has Points of 28, and a Year smaller than 1972?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Wins which has Points of 28, and a Year smaller than 1972?`:
```sql
                SELECT MIN("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "points"=28 AND "year"<1972;
```
## Task
Generate a SQL query to answer the following question:
`Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc?`:
```sql
                SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "points">9 AND "year">1971 AND "class"='250cc';
```
## Task
Generate a SQL query to answer the following question:
`Name the Wins which has a Class of 350cc, and a Year smaller than 1973?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Wins which has a Class of 350cc, and a Year smaller than 1973?`:
```sql
                SELECT SUM("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "year"<1973;
```
## Task
Generate a SQL query to answer the following question:
`How many Points has Wins larger than 0?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points has Wins larger than 0?`:
```sql
                SELECT COUNT("points") FROM "grand_prix_motorcycle_racing_results" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`SHOW THE Name who has a 2013 club of voléro zürich?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2013_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `SHOW THE Name who has a 2013 club of voléro zürich?`:
```sql
                SELECT "name" FROM "current_roster" WHERE "2013_club"='voléro zürich';
```
## Task
Generate a SQL query to answer the following question:
`Name the Height which has a 2013 club of wvc dynamo moscow?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2013_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Height which has a 2013 club of wvc dynamo moscow?`:
```sql
                SELECT "height" FROM "current_roster" WHERE "2013_club"='wvc dynamo moscow';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Spike has a Name of mia jerkov category:articles with hcards?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2013_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Spike has a Name of mia jerkov category:articles with hcards?`:
```sql
                SELECT "spike" FROM "current_roster" WHERE "name"='mia jerkov category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2013 club which has a Name of ana grbac category:articles with hcards?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2013_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2013 club which has a Name of ana grbac category:articles with hcards?`:
```sql
                SELECT "2013_club" FROM "current_roster" WHERE "name"='ana grbac category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`Name the Spike which has a Name of senna ušić-jogunica category:articles with hcards?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2013_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Spike which has a Name of senna ušić-jogunica category:articles with hcards?`:
```sql
                SELECT "spike" FROM "current_roster" WHERE "name"='senna ušić-jogunica category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`What was the Overall number for the player with a position of C and a round greater than 7?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Overall number for the player with a position of C and a round greater than 7?`:
```sql
                SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "round">7 AND "position"='c';
```
## Task
Generate a SQL query to answer the following question:
`What was the Overall number that is the lowest, and has a pick greater than 9?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Overall number that is the lowest, and has a pick greater than 9?`:
```sql
                SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "pick">9;
```
## Task
Generate a SQL query to answer the following question:
`Which team after 2008, with less than 2 podium finished and more than 0 FLAPS, had the lowest numberof races?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team after 2008, with less than 2 podium finished and more than 0 FLAPS, had the lowest numberof races?`:
```sql
                SELECT MIN("races") FROM "career_summary" WHERE "podiums"<2 AND "f_laps">0 AND "season">2008;
```
## Task
Generate a SQL query to answer the following question:
`what is the points when the entrant is brabham racing organisation, the year is 1964 and the chassis is brabham bt7?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the points when the entrant is brabham racing organisation, the year is 1964 and the chassis is brabham bt7?`:
```sql
                SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "entrant"='brabham racing organisation' AND "year"=1964 AND "chassis"='brabham bt7';
```
## Task
Generate a SQL query to answer the following question:
`who is the entrant when the points is 42 (45) and the chassis is brabham bt20?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the entrant when the points is 42 (45) and the chassis is brabham bt20?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "points"='42 (45)' AND "chassis"='brabham bt20';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the chassis brabham bt33?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the chassis brabham bt33?`:
```sql
                SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='brabham bt33';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner in 2013?`

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

CREATE TABLE "tour_de_france_stages_with_summit_finish" (
  "year" real,
  "stage" real,
  "start_of_stage" text,
  "distance_km" text,
  "category" text,
  "stage_winner" text,
  "yellow_jersey" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner in 2013?`:
```sql
                SELECT "stage_winner" FROM "tour_de_france_stages_with_summit_finish" WHERE "year"=2013;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at Ullevi?`

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

CREATE TABLE "matches" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "comp" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at Ullevi?`:
```sql
                SELECT "opponents" FROM "matches" WHERE "venue"='ullevi';
```
## Task
Generate a SQL query to answer the following question:
`When was Göteborg the opponent with a score of 3-1?`

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

CREATE TABLE "matches" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "comp" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Göteborg the opponent with a score of 3-1?`:
```sql
                SELECT "date" FROM "matches" WHERE "opponents"='göteborg' AND "score"='3-1';
```
## Task
Generate a SQL query to answer the following question:
`Which Finish had a To par of +10?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Finish had a To par of +10?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "to_par"='+10';
```
## Task
Generate a SQL query to answer the following question:
`Which years was there a To par of +1?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years was there a To par of +1?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+1';
```
## Task
Generate a SQL query to answer the following question:
`What were Sébastien Bourdais' lowest points when there were less than 63 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were Sébastien Bourdais' lowest points when there were less than 63 laps?`:
```sql
                SELECT MIN("points") FROM "race" WHERE "driver"='sébastien bourdais' AND "laps"<63;
```
## Task
Generate a SQL query to answer the following question:
`What is Position, when Event is 60 m, and when Venue is Budapest , Hungary?`

### 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,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Event is 60 m, and when Venue is Budapest , Hungary?`:
```sql
                SELECT "position" FROM "achievements" WHERE "event"='60 m' AND "venue"='budapest , hungary';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Position is 6th, and when Year is after 2006?`

### 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,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Position is 6th, and when Year is after 2006?`:
```sql
                SELECT "event" FROM "achievements" WHERE "position"='6th' AND "year">2006;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Year, when Position is 9th, when Event is 100 m, and when Venue is Munich, Germany?`

### 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,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Year, when Position is 9th, when Event is 100 m, and when Venue is Munich, Germany?`:
```sql
                SELECT AVG("year") FROM "achievements" WHERE "position"='9th' AND "event"='100 m' AND "venue"='munich, germany';
```
## Task
Generate a SQL query to answer the following question:
`What is the Event, when Year is 2002, and when Competition is European Indoor Championships?`

### 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,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Event, when Year is 2002, and when Competition is European Indoor Championships?`:
```sql
                SELECT "event" FROM "achievements" WHERE "year"=2002 AND "competition"='european indoor championships';
```
## Task
Generate a SQL query to answer the following question:
`What is Nation, when Bronze is 1, when Gold is greater than 0, and when Rank is 2?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Nation, when Bronze is 1, when Gold is greater than 0, and when Rank is 2?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "bronze"=1 AND "gold">0 AND "rank"='2';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total, when Bronze is greater than 0, when Silver is greater than 0, when Gold is greater than 2, and when Nation is Soviet Union?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total, when Bronze is greater than 0, when Silver is greater than 0, when Gold is greater than 2, and when Nation is Soviet Union?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "bronze">0 AND "silver">0 AND "gold">2 AND "nation"='soviet union';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Gold, when Nation is Yugoslavia, and when Silver is greater than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Gold, when Nation is Yugoslavia, and when Silver is greater than 0?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "nation"='yugoslavia' AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Bronze, when Total is 4, and when Silver is less than 2?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Bronze, when Total is 4, and when Silver is less than 2?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "total"=4 AND "silver"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the aggregate for the tie with a team 2 of Irtysh?`

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

CREATE TABLE "first_qualifying_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aggregate for the tie with a team 2 of Irtysh?`:
```sql
                SELECT "agg" FROM "first_qualifying_round" WHERE "team_2"='irtysh';
```
## Task
Generate a SQL query to answer the following question:
`What was the aggregate in the match with a team 1 of Dinamo Minsk?`

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

CREATE TABLE "first_qualifying_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the aggregate in the match with a team 1 of Dinamo Minsk?`:
```sql
                SELECT "agg" FROM "first_qualifying_round" WHERE "team_1"='dinamo minsk';
```
## Task
Generate a SQL query to answer the following question:
`What is the Java EE compatibility of the 5.2.4 edition?`

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

CREATE TABLE "java" (
  "product" text,
  "vendor" text,
  "edition" text,
  "release_date" text,
  "java_ee_compatibility" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Java EE compatibility of the 5.2.4 edition?`:
```sql
                SELECT "java_ee_compatibility" FROM "java" WHERE "edition"='5.2.4';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date for Eclipse Foundation?`

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

CREATE TABLE "java" (
  "product" text,
  "vendor" text,
  "edition" text,
  "release_date" text,
  "java_ee_compatibility" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date for Eclipse Foundation?`:
```sql
                SELECT "release_date" FROM "java" WHERE "vendor"='eclipse foundation';
```
## Task
Generate a SQL query to answer the following question:
`Which Oracle Corporation product has a Java EE compatibility of 1.4?`

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

CREATE TABLE "java" (
  "product" text,
  "vendor" text,
  "edition" text,
  "release_date" text,
  "java_ee_compatibility" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Oracle Corporation product has a Java EE compatibility of 1.4?`:
```sql
                SELECT "product" FROM "java" WHERE "java_ee_compatibility"='1.4' AND "vendor"='oracle corporation';
```
## Task
Generate a SQL query to answer the following question:
`Which edition released on 2007-06-07 has a Java EE compatibility of 5?`

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

CREATE TABLE "java" (
  "product" text,
  "vendor" text,
  "edition" text,
  "release_date" text,
  "java_ee_compatibility" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which edition released on 2007-06-07 has a Java EE compatibility of 5?`:
```sql
                SELECT "edition" FROM "java" WHERE "java_ee_compatibility"='5' AND "release_date"='2007-06-07';
```
## Task
Generate a SQL query to answer the following question:
`When was Glassfish released?`

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

CREATE TABLE "java" (
  "product" text,
  "vendor" text,
  "edition" text,
  "release_date" text,
  "java_ee_compatibility" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Glassfish released?`:
```sql
                SELECT "release_date" FROM "java" WHERE "product"='glassfish';
```
## Task
Generate a SQL query to answer the following question:
`Which licence has a release date of 2009-08?`

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

CREATE TABLE "java" (
  "product" text,
  "vendor" text,
  "edition" text,
  "release_date" text,
  "java_ee_compatibility" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which licence has a release date of 2009-08?`:
```sql
                SELECT "license" FROM "java" WHERE "release_date"='2009-08';
```
## Task
Generate a SQL query to answer the following question:
`WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS?`:
```sql
                SELECT "semifinalists" FROM "singles" WHERE "tournament"='paris';
```
## Task
Generate a SQL query to answer the following question:
`WHO WAS THE SEMIFINALISTS FOR THE HAMBURG TOURNAMENT?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHO WAS THE SEMIFINALISTS FOR THE HAMBURG TOURNAMENT?`:
```sql
                SELECT "semifinalists" FROM "singles" WHERE "tournament"='hamburg';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent had a round of SF?`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent had a round of SF?`:
```sql
                SELECT "opponent" FROM "scottish_cup" WHERE "round"='sf';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when the opponent was Celtic?`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when the opponent was Celtic?`:
```sql
                SELECT "result" FROM "scottish_cup" WHERE "opponent"='celtic';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for round r3?`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for round r3?`:
```sql
                SELECT "result" FROM "scottish_cup" WHERE "round"='r3';
```
## Task
Generate a SQL query to answer the following question:
`How many times have Central Crossing won the OCC Championship?`

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

CREATE TABLE "by_school" (
  "school" text,
  "years_of_participation" text,
  "occ_championships" real,
  "last_occ_championship" text,
  "last_outright_occ_championship" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times have Central Crossing won the OCC Championship?`:
```sql
                SELECT SUM("occ_championships") FROM "by_school" WHERE "school"='central crossing';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds is the fight against Michael Chavez?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "round" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds is the fight against Michael Chavez?`:
```sql
                SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "opponent"='michael chavez';
```
## Task
Generate a SQL query to answer the following question:
`What date was the match where Daniel Gimeno-Traver's partner was pere riba?`

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

CREATE TABLE "runners_up" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the match where Daniel Gimeno-Traver's partner was pere riba?`:
```sql
                SELECT "date" FROM "runners_up" WHERE "partner"='pere riba';
```
## Task
Generate a SQL query to answer the following question:
`Ashley Grimes had what to club?`

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

CREATE TABLE "reserves_academy" (
  "exit_date" text,
  "pos" text,
  "player" text,
  "to_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Ashley Grimes had what to club?`:
```sql
                SELECT "to_club" FROM "reserves_academy" WHERE "player"='ashley grimes';
```
## Task
Generate a SQL query to answer the following question:
`Who had a transfer fee of released and played the position of DF?`

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

CREATE TABLE "reserves_academy" (
  "exit_date" text,
  "pos" text,
  "player" text,
  "to_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a transfer fee of released and played the position of DF?`:
```sql
                SELECT "player" FROM "reserves_academy" WHERE "transfer_fee"='released' AND "pos"='df';
```
## Task
Generate a SQL query to answer the following question:
`When was the exit date KiatPrawut Saiwaeo who had a transfer fee of released?`

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

CREATE TABLE "reserves_academy" (
  "exit_date" text,
  "pos" text,
  "player" text,
  "to_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the exit date KiatPrawut Saiwaeo who had a transfer fee of released?`:
```sql
                SELECT "exit_date" FROM "reserves_academy" WHERE "transfer_fee"='released' AND "player"='kiatprawut saiwaeo';
```
## Task
Generate a SQL query to answer the following question:
`What was the date that a player went to the club Doncaster Rovers?`

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

CREATE TABLE "reserves_academy" (
  "exit_date" text,
  "pos" text,
  "player" text,
  "to_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date that a player went to the club Doncaster Rovers?`:
```sql
                SELECT "exit_date" FROM "reserves_academy" WHERE "to_club"='doncaster rovers';
```
## Task
Generate a SQL query to answer the following question:
`Teerasil Dangda who had a to club of released plays what position?`

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

CREATE TABLE "reserves_academy" (
  "exit_date" text,
  "pos" text,
  "player" text,
  "to_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Teerasil Dangda who had a to club of released plays what position?`:
```sql
                SELECT "pos" FROM "reserves_academy" WHERE "to_club"='released' AND "player"='teerasil dangda';
```
## Task
Generate a SQL query to answer the following question:
`What was the average points for someone who has played more than 10?`

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

CREATE TABLE "relegation_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average points for someone who has played more than 10?`:
```sql
                SELECT AVG("points") FROM "relegation_round" WHERE "played">10;
```
## Task
Generate a SQL query to answer the following question:
`What is L2 Cache, when Model Number is Pentium II 350?`

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

CREATE TABLE "250_nm" (
  "model_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is L2 Cache, when Model Number is Pentium II 350?`:
```sql
                SELECT "l2_cache" FROM "250_nm" WHERE "model_number"='pentium ii 350';
```
## Task
Generate a SQL query to answer the following question:
`What is Mult, when Model Number is Pentium II 450?`

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

CREATE TABLE "250_nm" (
  "model_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mult, when Model Number is Pentium II 450?`:
```sql
                SELECT "mult" FROM "250_nm" WHERE "model_number"='pentium ii 450';
```
## Task
Generate a SQL query to answer the following question:
`What is Frequency, when Model Number is Pentium II 400?`

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

CREATE TABLE "250_nm" (
  "model_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Frequency, when Model Number is Pentium II 400?`:
```sql
                SELECT "frequency" FROM "250_nm" WHERE "model_number"='pentium ii 400';
```
## Task
Generate a SQL query to answer the following question:
`What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?`

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

CREATE TABLE "250_nm" (
  "model_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?`:
```sql
                SELECT "socket" FROM "250_nm" WHERE "voltage"='2.0v' AND "model_number"='pentium ii 333';
```
## Task
Generate a SQL query to answer the following question:
`What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?`

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

CREATE TABLE "250_nm" (
  "model_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?`:
```sql
                SELECT "model_number" FROM "250_nm" WHERE "voltage"='2.0v' AND "frequency"='350 mhz';
```