cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is High Assists, when Date is "November 1"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Assists, when Date is "November 1"?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='november 1';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner on a hard surface on the week of November 13?`

### 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 winner on a hard surface on the week of November 13?`:
```sql
                SELECT "winner" FROM "singles" WHERE "surface"='hard' AND "week"='november 13';
```
## Task
Generate a SQL query to answer the following question:
`Which player had a conference of PAC-10 and position of G?`

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

CREATE TABLE "notable_undrafted_players" (
  "original_nfl_team" text,
  "player" text,
  "pos" text,
  "college" text,
  "conf" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a conference of PAC-10 and position of G?`:
```sql
                SELECT "player" FROM "notable_undrafted_players" WHERE "conf"='pac-10' AND "pos"='g';
```
## Task
Generate a SQL query to answer the following question:
`Which player had a position of OL from Ohio State?`

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

CREATE TABLE "notable_undrafted_players" (
  "original_nfl_team" text,
  "player" text,
  "pos" text,
  "college" text,
  "conf" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a position of OL from Ohio State?`:
```sql
                SELECT "player" FROM "notable_undrafted_players" WHERE "pos"='ol' AND "college"='ohio state';
```
## Task
Generate a SQL query to answer the following question:
`Which player had a position of QB for Texas Tech?`

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

CREATE TABLE "notable_undrafted_players" (
  "original_nfl_team" text,
  "player" text,
  "pos" text,
  "college" text,
  "conf" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a position of QB for Texas Tech?`:
```sql
                SELECT "player" FROM "notable_undrafted_players" WHERE "pos"='qb' AND "college"='texas tech';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Opponent that has the Round of 3?`

### 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,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the Round of 3?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the main use for the structure listed in walker city, iowa?`

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

CREATE TABLE "structures_past_or_present_between_550_a" (
  "pinnacle_height" text,
  "year" real,
  "structure_type" text,
  "main_use" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the main use for the structure listed in walker city, iowa?`:
```sql
                SELECT "main_use" FROM "structures_past_or_present_between_550_a" WHERE "town"='walker city, iowa';
```
## Task
Generate a SQL query to answer the following question:
`What year was the structure in greensboro, north carolina considered tallest?`

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

CREATE TABLE "structures_past_or_present_between_550_a" (
  "pinnacle_height" text,
  "year" real,
  "structure_type" text,
  "main_use" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the structure in greensboro, north carolina considered tallest?`:
```sql
                SELECT "year" FROM "structures_past_or_present_between_550_a" WHERE "town"='greensboro, north carolina';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest year that a structure was located in gray court, south carolina?`

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

CREATE TABLE "structures_past_or_present_between_550_a" (
  "pinnacle_height" text,
  "year" real,
  "structure_type" text,
  "main_use" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year that a structure was located in gray court, south carolina?`:
```sql
                SELECT MIN("year") FROM "structures_past_or_present_between_550_a" WHERE "town"='gray court, south carolina';
```
## Task
Generate a SQL query to answer the following question:
`What is the main use of the structure that was in redfield, arkansas before 2004?`

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

CREATE TABLE "structures_past_or_present_between_550_a" (
  "pinnacle_height" text,
  "year" real,
  "structure_type" text,
  "main_use" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the main use of the structure that was in redfield, arkansas before 2004?`:
```sql
                SELECT "main_use" FROM "structures_past_or_present_between_550_a" WHERE "year"<2004 AND "town"='redfield, arkansas';
```
## Task
Generate a SQL query to answer the following question:
`How far did the pilot go when averaging 124.1km/h?`

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

CREATE TABLE "race_4_5_01_2010" (
  "position" real,
  "pilot" text,
  "glider" text,
  "speed" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How far did the pilot go when averaging 124.1km/h?`:
```sql
                SELECT "distance" FROM "race_4_5_01_2010" WHERE "speed"='124.1km/h';
```
## Task
Generate a SQL query to answer the following question:
`What was sebastian kawa's average speed with Diana 2?`

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

CREATE TABLE "race_4_5_01_2010" (
  "position" real,
  "pilot" text,
  "glider" text,
  "speed" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was sebastian kawa's average speed with Diana 2?`:
```sql
                SELECT "speed" FROM "race_4_5_01_2010" WHERE "glider"='diana 2' AND "pilot"='sebastian kawa';
```
## Task
Generate a SQL query to answer the following question:
`What glider did thomas gostner pilot?`

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

CREATE TABLE "race_4_5_01_2010" (
  "position" real,
  "pilot" text,
  "glider" text,
  "speed" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What glider did thomas gostner pilot?`:
```sql
                SELECT "glider" FROM "race_4_5_01_2010" WHERE "pilot"='thomas gostner';
```
## Task
Generate a SQL query to answer the following question:
`Which Run 4 has a Final of 8:16.28?`

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

CREATE TABLE "results" (
  "rank" text,
  "team" text,
  "athletes" text,
  "run_1" text,
  "run_2" text,
  "run_3" text,
  "run_4" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Run 4 has a Final of 8:16.28?`:
```sql
                SELECT "run_4" FROM "results" WHERE "final"='8:16.28';
```
## Task
Generate a SQL query to answer the following question:
`Which Run 4 has Athletes of hubert stevens & curtis stevens?`

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

CREATE TABLE "results" (
  "rank" text,
  "team" text,
  "athletes" text,
  "run_1" text,
  "run_2" text,
  "run_3" text,
  "run_4" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Run 4 has Athletes of hubert stevens & curtis stevens?`:
```sql
                SELECT "run_4" FROM "results" WHERE "athletes"='hubert stevens & curtis stevens';
```
## Task
Generate a SQL query to answer the following question:
`Which Run 2 has a Rank of 4?`

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

CREATE TABLE "results" (
  "rank" text,
  "team" text,
  "athletes" text,
  "run_1" text,
  "run_2" text,
  "run_3" text,
  "run_4" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Run 2 has a Rank of 4?`:
```sql
                SELECT "run_2" FROM "results" WHERE "rank"='4';
```
## Task
Generate a SQL query to answer the following question:
`Which Athletes have a Rank of bronze?`

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

CREATE TABLE "results" (
  "rank" text,
  "team" text,
  "athletes" text,
  "run_1" text,
  "run_2" text,
  "run_3" text,
  "run_4" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Athletes have a Rank of bronze?`:
```sql
                SELECT "athletes" FROM "results" WHERE "rank"='bronze';
```
## Task
Generate a SQL query to answer the following question:
`Which Athletes have a Run 2 of 2:21.82?`

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

CREATE TABLE "results" (
  "rank" text,
  "team" text,
  "athletes" text,
  "run_1" text,
  "run_2" text,
  "run_3" text,
  "run_4" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Athletes have a Run 2 of 2:21.82?`:
```sql
                SELECT "athletes" FROM "results" WHERE "run_2"='2:21.82';
```
## Task
Generate a SQL query to answer the following question:
`Which Run 3 has a Run 1 of 2:20.10?`

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

CREATE TABLE "results" (
  "rank" text,
  "team" text,
  "athletes" text,
  "run_1" text,
  "run_2" text,
  "run_3" text,
  "run_4" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Run 3 has a Run 1 of 2:20.10?`:
```sql
                SELECT "run_3" FROM "results" WHERE "run_1"='2:20.10';
```
## Task
Generate a SQL query to answer the following question:
`What were the dates administered in the Survey USA poll source where Republican Christopher Reed received 37%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_tom_harkin" text,
  "republican_christopher_reed" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the dates administered in the Survey USA poll source where Republican Christopher Reed received 37%?`:
```sql
                SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "poll_source"='survey usa' AND "republican_christopher_reed"='37%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage did Republish Christopher Reed receive when the lead margin was smaller than 16?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_tom_harkin" text,
  "republican_christopher_reed" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage did Republish Christopher Reed receive when the lead margin was smaller than 16?`:
```sql
                SELECT "republican_christopher_reed" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"<16;
```
## Task
Generate a SQL query to answer the following question:
`What were the dates administered when the lead margin was smaller than 39 with Republican Christopher Reed at 37% and Democrat Tom Harkin at 53%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_tom_harkin" text,
  "republican_christopher_reed" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the dates administered when the lead margin was smaller than 39 with Republican Christopher Reed at 37% and Democrat Tom Harkin at 53%?`:
```sql
                SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"<39 AND "republican_christopher_reed"='37%' AND "democrat_tom_harkin"='53%';
```
## Task
Generate a SQL query to answer the following question:
`What was Democrat: Tom Harkin's percentage when the poll source was Rasmussen Reports and the lead margin was 14?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_tom_harkin" text,
  "republican_christopher_reed" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Democrat: Tom Harkin's percentage when the poll source was Rasmussen Reports and the lead margin was 14?`:
```sql
                SELECT "democrat_tom_harkin" FROM "opinion_polling_for_the_united_states_se" WHERE "poll_source"='rasmussen reports' AND "lead_margin"=14;
```
## Task
Generate a SQL query to answer the following question:
`What were the dates administered when the lead margin was larger than 14 and the poll source was Research 2000?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_tom_harkin" text,
  "republican_christopher_reed" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the dates administered when the lead margin was larger than 14 and the poll source was Research 2000?`:
```sql
                SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin">14 AND "poll_source"='research 2000';
```
## Task
Generate a SQL query to answer the following question:
`What is Olivier Jacque's Time/Retired?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Olivier Jacque's Time/Retired?`:
```sql
                SELECT "time_retired" FROM "moto_gp_classification" WHERE "rider"='olivier jacque';
```
## Task
Generate a SQL query to answer the following question:
`Which manufacturer is grid 11?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer is grid 11?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "grid"='11';
```
## Task
Generate a SQL query to answer the following question:
`Which manufacturer does Loris Capirossi ride for?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer does Loris Capirossi ride for?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "rider"='loris capirossi';
```
## Task
Generate a SQL query to answer the following question:
`Which manufacturer has 8 laps?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer has 8 laps?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"='8';
```
## Task
Generate a SQL query to answer the following question:
`How many laps does grid 4 have?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps does grid 4 have?`:
```sql
                SELECT "laps" FROM "moto_gp_classification" WHERE "grid"='4';
```
## Task
Generate a SQL query to answer the following question:
`Which rider's manufacturer is Honda and has 28 laps and a grid of 1?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rider's manufacturer is Honda and has 28 laps and a grid of 1?`:
```sql
                SELECT "rider" FROM "moto_gp_classification" WHERE "laps"='28' AND "manufacturer"='honda' AND "grid"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2006 sum with a rank 1 and more than 6758845 in 1996?`

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

CREATE TABLE "cities_over_1_000_000_population" (
  "rank" real,
  "city" text,
  "province" text,
  "date_of_official_foundation_of_municipality" real,
  "2006" real,
  "1996" real,
  "1986" real,
  "1976" real,
  "1966" real,
  "1956" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2006 sum with a rank 1 and more than 6758845 in 1996?`:
```sql
                SELECT SUM("2006") FROM "cities_over_1_000_000_population" WHERE "rank"=1 AND "1996">6758845;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number in 2006, which has an official foundation of municipality of 1918?`

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

CREATE TABLE "cities_over_1_000_000_population" (
  "rank" real,
  "city" text,
  "province" text,
  "date_of_official_foundation_of_municipality" real,
  "2006" real,
  "1996" real,
  "1986" real,
  "1976" real,
  "1966" real,
  "1956" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number in 2006, which has an official foundation of municipality of 1918?`:
```sql
                SELECT COUNT("2006") FROM "cities_over_1_000_000_population" WHERE "date_of_official_foundation_of_municipality"=1918;
```
## Task
Generate a SQL query to answer the following question:
`What is teh average rank of the city of mashhad, which had less than 667770 in 1976?`

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

CREATE TABLE "cities_over_1_000_000_population" (
  "rank" real,
  "city" text,
  "province" text,
  "date_of_official_foundation_of_municipality" real,
  "2006" real,
  "1996" real,
  "1986" real,
  "1976" real,
  "1966" real,
  "1956" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is teh average rank of the city of mashhad, which had less than 667770 in 1976?`:
```sql
                SELECT AVG("rank") FROM "cities_over_1_000_000_population" WHERE "city"='mashhad' AND "1976"<667770;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the province alborz, which had more than 14526 in 1956?`

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

CREATE TABLE "cities_over_1_000_000_population" (
  "rank" real,
  "city" text,
  "province" text,
  "date_of_official_foundation_of_municipality" real,
  "2006" real,
  "1996" real,
  "1986" real,
  "1976" real,
  "1966" real,
  "1956" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of the province alborz, which had more than 14526 in 1956?`:
```sql
                SELECT AVG("rank") FROM "cities_over_1_000_000_population" WHERE "province"='alborz' AND "1956">14526;
```
## Task
Generate a SQL query to answer the following question:
`Which World Rank happened in 1977?`

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

CREATE TABLE "400_meters" (
  "year" real,
  "result" real,
  "world_rank" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which World Rank happened in 1977?`:
```sql
                SELECT "world_rank" FROM "400_meters" WHERE "year"=1977;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the episode that premiered on September 12, 1979?`

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

CREATE TABLE "nielsen_ratings_broadcast_history" (
  "season" real,
  "premiere" text,
  "finale" text,
  "rank" text,
  "rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for the episode that premiered on September 12, 1979?`:
```sql
                SELECT "rank" FROM "nielsen_ratings_broadcast_history" WHERE "premiere"='september 12, 1979';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the finale for the season that premiered on September 22, 1976?`

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

CREATE TABLE "nielsen_ratings_broadcast_history" (
  "season" real,
  "premiere" text,
  "finale" text,
  "rank" text,
  "rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the finale for the season that premiered on September 22, 1976?`:
```sql
                SELECT "finale" FROM "nielsen_ratings_broadcast_history" WHERE "premiere"='september 22, 1976';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the episode that premiered on September 13, 1978?`

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

CREATE TABLE "nielsen_ratings_broadcast_history" (
  "season" real,
  "premiere" text,
  "finale" text,
  "rank" text,
  "rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for the episode that premiered on September 13, 1978?`:
```sql
                SELECT "rank" FROM "nielsen_ratings_broadcast_history" WHERE "premiere"='september 13, 1978';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the finale for Season 3?`

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

CREATE TABLE "nielsen_ratings_broadcast_history" (
  "season" real,
  "premiere" text,
  "finale" text,
  "rank" text,
  "rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the finale for Season 3?`:
```sql
                SELECT "finale" FROM "nielsen_ratings_broadcast_history" WHERE "season"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the premiere that had a 20.9 rating?`

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

CREATE TABLE "nielsen_ratings_broadcast_history" (
  "season" real,
  "premiere" text,
  "finale" text,
  "rank" text,
  "rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the premiere that had a 20.9 rating?`:
```sql
                SELECT "premiere" FROM "nielsen_ratings_broadcast_history" WHERE "rating"='20.9';
```
## Task
Generate a SQL query to answer the following question:
`What was Herdez Competition's total points with a grid larger than 1?`

### 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 was Herdez Competition's total points with a grid larger than 1?`:
```sql
                SELECT COUNT("points") FROM "race" WHERE "team"='herdez competition' AND "grid">1;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest lap count for Walker Racing with a grid larger than 15?`

### 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 was the highest lap count for Walker Racing with a grid larger than 15?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "team"='walker racing' AND "grid">15;
```
## Task
Generate a SQL query to answer the following question:
`Which driver had 248 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 `Which driver had 248 laps?`:
```sql
                SELECT "driver" FROM "race" WHERE "laps"=248;
```
## Task
Generate a SQL query to answer the following question:
`What driver had a time/retired of + 10 laps and more than 6 points?`

### 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 driver had a time/retired of + 10 laps and more than 6 points?`:
```sql
                SELECT "driver" FROM "race" WHERE "time_retired"='+ 10 laps' AND "points">6;
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Game of 61?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Game of 61?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game"=61;
```
## Task
Generate a SQL query to answer the following question:
`Which High points have a Record of 27–29?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which High points have a Record of 27–29?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "record"='27–29';
```
## Task
Generate a SQL query to answer the following question:
`Which High points has a Game larger than 58, and a High rebounds of francisco elson (7)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which High points has a Game larger than 58, and a High rebounds of francisco elson (7)?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "game">58 AND "high_rebounds"='francisco elson (7)';
```
## Task
Generate a SQL query to answer the following question:
`Which Location Attendance has a Date of february 27?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location Attendance has a Date of february 27?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "date"='february 27';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a High rebounds of luc mbah a moute (11)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a High rebounds of luc mbah a moute (11)?`:
```sql
                SELECT "record" FROM "game_log" WHERE "high_rebounds"='luc mbah a moute (11)';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Record of 27–30?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Record of 27–30?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "record"='27–30';
```
## Task
Generate a SQL query to answer the following question:
`What Tournament had a Score in Final of 5–7, 4–6?`

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

CREATE TABLE "doubles_18_7_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Tournament had a Score in Final of 5–7, 4–6?`:
```sql
                SELECT "tournament" FROM "doubles_18_7_10" WHERE "score_in_final"='5–7, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponents in Final in the match with a Score in Final of 4–6, 1–6 played on Clay Surface?`

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

CREATE TABLE "doubles_18_7_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponents in Final in the match with a Score in Final of 4–6, 1–6 played on Clay Surface?`:
```sql
                SELECT "opponents_in_final" FROM "doubles_18_7_10" WHERE "score_in_final"='4–6, 1–6' AND "surface"='clay';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the match with Partner Steffi Graf with a Score in Final of 4–6, 1–6?`

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

CREATE TABLE "doubles_18_7_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the match with Partner Steffi Graf with a Score in Final of 4–6, 1–6?`:
```sql
                SELECT "date" FROM "doubles_18_7_10" WHERE "score_in_final"='4–6, 1–6' AND "partner"='steffi graf';
```
## Task
Generate a SQL query to answer the following question:
`What is the Partner of the match with a Score in Final of 5–7, 4–6?`

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

CREATE TABLE "doubles_18_7_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Partner of the match with a Score in Final of 5–7, 4–6?`:
```sql
                SELECT "partner" FROM "doubles_18_7_10" WHERE "score_in_final"='5–7, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`What is 2001, when 1999 is "2R", and when 1992 is "3R"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2001, when 1999 is "2R", and when 1992 is "3R"?`:
```sql
                SELECT "2001" FROM "singles_performance_timeline" WHERE "1999"='2r' AND "1992"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What is 1990, when 1997 is "1R", and when Tournament is "Hamburg"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1990, when 1997 is "1R", and when Tournament is "Hamburg"?`:
```sql
                SELECT "1990" FROM "singles_performance_timeline" WHERE "1997"='1r' AND "tournament"='hamburg';
```
## Task
Generate a SQL query to answer the following question:
`What is 2001, when 1989 is "A", and when Tournament is "U.S. Open"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2001, when 1989 is "A", and when Tournament is "U.S. Open"?`:
```sql
                SELECT "2001" FROM "singles_performance_timeline" WHERE "1989"='a' AND "tournament"='u.s. open';
```
## Task
Generate a SQL query to answer the following question:
`what is the goals against when the points is 43 and draws is more than 9?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the goals against when the points is 43 and draws is more than 9?`:
```sql
                SELECT AVG("goals_against") FROM "group_i" WHERE "points"=43 AND "draws">9;
```
## Task
Generate a SQL query to answer the following question:
`what is the goals when the goal difference is more than -3, the club is real avilés cf and the goals against is more than 60?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the goals when the goal difference is more than -3, the club is real avilés cf and the goals against is more than 60?`:
```sql
                SELECT SUM("goals_for") FROM "group_i" WHERE "goal_difference">-3 AND "club"='real avilés cf' AND "goals_against">60;
```
## Task
Generate a SQL query to answer the following question:
`what is the least draws when the position is lower than 5, the points is 62 and played is more than 38?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least draws when the position is lower than 5, the points is 62 and played is more than 38?`:
```sql
                SELECT MIN("draws") FROM "group_i" WHERE "position"<5 AND "points"=62 AND "played">38;
```
## Task
Generate a SQL query to answer the following question:
`what is the played when the wins is 21 and the positions is higher than 3?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the played when the wins is 21 and the positions is higher than 3?`:
```sql
                SELECT SUM("played") FROM "group_i" WHERE "wins"=21 AND "position">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Week, when Date is December 2, 2001?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Week, when Date is December 2, 2001?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "date"='december 2, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Week, when Opponent is At Cleveland Browns?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Week, when Opponent is At Cleveland Browns?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at cleveland browns';
```
## Task
Generate a SQL query to answer the following question:
`What Country's ICAO is VOTR?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country's ICAO is VOTR?`:
```sql
                SELECT "country" FROM "destinations" WHERE "icao"='votr';
```
## Task
Generate a SQL query to answer the following question:
`What is the City in the Maldives?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the City in the Maldives?`:
```sql
                SELECT "city" FROM "destinations" WHERE "country"='maldives';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO in India with IATA TRZ?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO in India with IATA TRZ?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "country"='india' AND "iata"='trz';
```
## Task
Generate a SQL query to answer the following question:
`What is the Airport in Singapore?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Airport in Singapore?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "country"='singapore';
```
## Task
Generate a SQL query to answer the following question:
`What is the Airport with an IATA of TRZ?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Airport with an IATA of TRZ?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "iata"='trz';
```
## Task
Generate a SQL query to answer the following question:
`What is the opponent of the game with a w 87-64 score?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the opponent of the game with a w 87-64 score?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "score"='w 87-64';
```
## Task
Generate a SQL query to answer the following question:
`What is the location/attendance of the game with a 3-1 record?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location/attendance of the game with a 3-1 record?`:
```sql
                SELECT "location_attendance" FROM "regular_season" WHERE "record"='3-1';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest points of the game on May 27?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest points of the game on May 27?`:
```sql
                SELECT "high_points" FROM "regular_season" WHERE "date"='may 27';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on October 28, 2001?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on October 28, 2001?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='october 28, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest week at Ralph Wilson Stadium on October 7, 2001?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest week at Ralph Wilson Stadium on October 7, 2001?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "game_site"='ralph wilson stadium' AND "date"='october 7, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of To Par, when Player is "Bob Rosburg"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of To Par, when Player is "Bob Rosburg"?`:
```sql
                SELECT SUM("to_par") FROM "third_round" WHERE "player"='bob rosburg';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of To Par, when Score is "70-75-76=221"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of To Par, when Score is "70-75-76=221"?`:
```sql
                SELECT COUNT("to_par") FROM "third_round" WHERE "score"='70-75-76=221';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Score is "76-73-73=222"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Score is "76-73-73=222"?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='76-73-73=222';
```