cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the total round of the rb player from Purdue with a pick less than 3?`

### 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 is the total round of the rb player from Purdue with a pick less than 3?`:
```sql
                SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "position"='rb' AND "college"='purdue' AND "pick"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which category has 24 nominated work?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which category has 24 nominated work?`:
```sql
                SELECT "category" FROM "awards" WHERE "nominated_work"='24';
```
## Task
Generate a SQL query to answer the following question:
`How many Silver medals did the Nation of Croatia receive with a Total medal of more than 1?`

### 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 `How many Silver medals did the Nation of Croatia receive with a Total medal of more than 1?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=1 AND "total">1 AND "nation"='croatia';
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals did Australia receive?`

### 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 `How many Gold medals did Australia receive?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "nation"='australia';
```
## Task
Generate a SQL query to answer the following question:
`How many Total medals did the country with 16 Silver and less than 32 Bronze receive?`

### 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 `How many Total medals did the country with 16 Silver and less than 32 Bronze receive?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "silver"=16 AND "bronze"<32;
```
## Task
Generate a SQL query to answer the following question:
`How many Bronze medals for the Nation with a Rank of 11 and less than 1 Silver?`

### 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 `How many Bronze medals for the Nation with a Rank of 11 and less than 1 Silver?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "rank"='11' AND "silver"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3?`

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

CREATE TABLE "writer" (
  "year" real,
  "show" text,
  "season" real,
  "episode" text,
  "episode_number" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3?`:
```sql
                SELECT AVG("episode_number") FROM "writer" WHERE "original_airdate"='march 21, 2010' AND "season"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is Show, when Episode Number is 1, when Year is less than 2010, and when Original Airdate is January 20, 2008?`

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

CREATE TABLE "writer" (
  "year" real,
  "show" text,
  "season" real,
  "episode" text,
  "episode_number" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Show, when Episode Number is 1, when Year is less than 2010, and when Original Airdate is January 20, 2008?`:
```sql
                SELECT "show" FROM "writer" WHERE "episode_number"=1 AND "year"<2010 AND "original_airdate"='january 20, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Season(s), when Original Airdate is January 24, 1999, and when Year is less than 1999?`

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

CREATE TABLE "writer" (
  "year" real,
  "show" text,
  "season" real,
  "episode" text,
  "episode_number" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Season(s), when Original Airdate is January 24, 1999, and when Year is less than 1999?`:
```sql
                SELECT COUNT("season") FROM "writer" WHERE "original_airdate"='january 24, 1999' AND "year"<1999;
```
## Task
Generate a SQL query to answer the following question:
`How many games have a Result of l, and a Record of 2-6?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have a Result of l, and a Record of 2-6?`:
```sql
                SELECT COUNT("game") FROM "schedule" WHERE "result"='l' AND "record"='2-6';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the green bay packers game?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the green bay packers game?`:
```sql
                SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='green bay packers';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game whose score was 1-1?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game whose score was 1-1?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "record"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 24-7, and a Record of 4-10?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Score of 24-7, and a Record of 4-10?`:
```sql
                SELECT "date" FROM "schedule" WHERE "score"='24-7' AND "record"='4-10';
```
## Task
Generate a SQL query to answer the following question:
`Lowest round for g that was smaller than 31?`

### 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 `Lowest round for g that was smaller than 31?`:
```sql
                SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "position"='g' AND "overall"<31;
```
## Task
Generate a SQL query to answer the following question:
`What is the Semifinalists that has a Tournament of Cincinnati?`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Semifinalists that has a Tournament of Cincinnati?`:
```sql
                SELECT "semifinalists" FROM "doubles" WHERE "tournament"='cincinnati';
```
## Task
Generate a SQL query to answer the following question:
`The Crvena Zvezda club has what aggregate?`

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

CREATE TABLE "european_competition_history" (
  "season" text,
  "competition" text,
  "round" text,
  "club" text,
  "home" text,
  "away" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Crvena Zvezda club has what aggregate?`:
```sql
                SELECT "aggregate" FROM "european_competition_history" WHERE "club"='crvena zvezda';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of assists of the player with 0 goals, more than 1 points, and more than 0 pims?`

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

CREATE TABLE "points_for_the_2008_09_season" (
  "name" text,
  "pld" real,
  "goals" real,
  "assists" real,
  "points" real,
  "pims" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of assists of the player with 0 goals, more than 1 points, and more than 0 pims?`:
```sql
                SELECT COUNT("assists") FROM "points_for_the_2008_09_season" WHERE "goals"=0 AND "points">1 AND "pims">0;
```
## Task
Generate a SQL query to answer the following question:
`What is league position when manchester played against luton town when 41,288 fans attended?`

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

CREATE TABLE "first_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real,
  "league_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is league position when manchester played against luton town when 41,288 fans attended?`:
```sql
                SELECT "league_position" FROM "first_division" WHERE "attendance">'41,288' AND "opponents"='luton town';
```
## Task
Generate a SQL query to answer the following question:
`How many Neutral Wins have Home Losses larger than 2, and a Loss of 7, and an Away Wins larger than 3?`

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

CREATE TABLE "big_ten_conference_3_10_1" (
  "institution" text,
  "wins" real,
  "loss" real,
  "home_wins" real,
  "home_losses" real,
  "away_wins" real,
  "away_losses" real,
  "neutral_wins" real,
  "neutral_losses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Neutral Wins have Home Losses larger than 2, and a Loss of 7, and an Away Wins larger than 3?`:
```sql
                SELECT COUNT("neutral_wins") FROM "big_ten_conference_3_10_1" WHERE "home_losses">2 AND "loss"=7 AND "away_wins">3;
```
## Task
Generate a SQL query to answer the following question:
`How many Away Losses have Home Losses larger than 3, and Wins smaller than 5?`

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

CREATE TABLE "big_ten_conference_3_10_1" (
  "institution" text,
  "wins" real,
  "loss" real,
  "home_wins" real,
  "home_losses" real,
  "away_wins" real,
  "away_losses" real,
  "neutral_wins" real,
  "neutral_losses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Away Losses have Home Losses larger than 3, and Wins smaller than 5?`:
```sql
                SELECT COUNT("away_losses") FROM "big_ten_conference_3_10_1" WHERE "home_losses">3 AND "wins"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which Home Wins have Neutral Wins of 1, and Neutral Losses smaller than 0?`

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

CREATE TABLE "big_ten_conference_3_10_1" (
  "institution" text,
  "wins" real,
  "loss" real,
  "home_wins" real,
  "home_losses" real,
  "away_wins" real,
  "away_losses" real,
  "neutral_wins" real,
  "neutral_losses" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home Wins have Neutral Wins of 1, and Neutral Losses smaller than 0?`:
```sql
                SELECT AVG("home_wins") FROM "big_ten_conference_3_10_1" WHERE "neutral_wins"=1 AND "neutral_losses"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Wins is the lowest one that has Home Losses larger than 3, and Neutral Losses smaller than 0?`

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

CREATE TABLE "big_ten_conference_3_10_1" (
  "institution" text,
  "wins" real,
  "loss" real,
  "home_wins" real,
  "home_losses" real,
  "away_wins" real,
  "away_losses" real,
  "neutral_wins" real,
  "neutral_losses" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins is the lowest one that has Home Losses larger than 3, and Neutral Losses smaller than 0?`:
```sql
                SELECT MIN("wins") FROM "big_ten_conference_3_10_1" WHERE "home_losses">3 AND "neutral_losses"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Visitor of calgary, a Score of 2 – 1, and a Series of 4 – 3?`

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

CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decision has a Visitor of calgary, a Score of 2 – 1, and a Series of 4 – 3?`:
```sql
                SELECT "decision" FROM "western_conference_quarter_finals_vs_6_c" WHERE "visitor"='calgary' AND "score"='2 – 1' AND "series"='4 – 3';
```
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Series of 2 – 1?`

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

CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visitor has a Series of 2 – 1?`:
```sql
                SELECT "visitor" FROM "western_conference_quarter_finals_vs_6_c" WHERE "series"='2 – 1';
```
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Home of calgary, and a Date of april 17?`

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

CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visitor has a Home of calgary, and a Date of april 17?`:
```sql
                SELECT "visitor" FROM "western_conference_quarter_finals_vs_6_c" WHERE "home"='calgary' AND "date"='april 17';
```
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Visitor of vancouver, and a Score of 5 – 4?`

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

CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decision has a Visitor of vancouver, and a Score of 5 – 4?`:
```sql
                SELECT "decision" FROM "western_conference_quarter_finals_vs_6_c" WHERE "visitor"='vancouver' AND "score"='5 – 4';
```
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Home of vancouver, and a Decision of cloutier?`

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

CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visitor has a Home of vancouver, and a Decision of cloutier?`:
```sql
                SELECT "visitor" FROM "western_conference_quarter_finals_vs_6_c" WHERE "home"='vancouver' AND "decision"='cloutier';
```
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Series of 3 – 3?`

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

CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decision has a Series of 3 – 3?`:
```sql
                SELECT "decision" FROM "western_conference_quarter_finals_vs_6_c" WHERE "series"='3 – 3';
```
## Task
Generate a SQL query to answer the following question:
`What's the value for race 4 when race 1 is dsq?`

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

CREATE TABLE "hot_wheels_v8_supercar_showdown" (
  "driver" text,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "race_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the value for race 4 when race 1 is dsq?`:
```sql
                SELECT "race_4" FROM "hot_wheels_v8_supercar_showdown" WHERE "race_1"='dsq';
```
## Task
Generate a SQL query to answer the following question:
`What's the value for race 4 when race 3 is dns and race 2 is 27?`

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

CREATE TABLE "hot_wheels_v8_supercar_showdown" (
  "driver" text,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "race_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the value for race 4 when race 3 is dns and race 2 is 27?`:
```sql
                SELECT "race_4" FROM "hot_wheels_v8_supercar_showdown" WHERE "race_3"='dns' AND "race_2"='27';
```
## Task
Generate a SQL query to answer the following question:
`What's the value for race 4 for driver kevin heffernan?`

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

CREATE TABLE "hot_wheels_v8_supercar_showdown" (
  "driver" text,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "race_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the value for race 4 for driver kevin heffernan?`:
```sql
                SELECT "race_4" FROM "hot_wheels_v8_supercar_showdown" WHERE "driver"='kevin heffernan';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of game 4?`

### 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 was the date of game 4?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who had the most points in the game on November 12?`

### 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 `Who had the most points in the game on November 12?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='november 12';
```
## Task
Generate a SQL query to answer the following question:
`What rank is the team that has a player named Isco Alarcón?`

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

CREATE TABLE "top_appearances" (
  "rank" real,
  "player" text,
  "club_s" text,
  "year_s" text,
  "u_17_caps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is the team that has a player named Isco Alarcón?`:
```sql
                SELECT "rank" FROM "top_appearances" WHERE "player"='isco alarcón';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of Club Valencia with a U-17 Caps of 20?`

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

CREATE TABLE "top_appearances" (
  "rank" real,
  "player" text,
  "club_s" text,
  "year_s" text,
  "u_17_caps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of Club Valencia with a U-17 Caps of 20?`:
```sql
                SELECT COUNT("rank") FROM "top_appearances" WHERE "club_s"='valencia' AND "u_17_caps"=20;
```
## Task
Generate a SQL query to answer the following question:
`What is High Assists, when High Points is "T. J. Ford (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,
  "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 High Points is "T. J. Ford (29)"?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "high_points"='t. j. ford (29)';
```
## Task
Generate a SQL query to answer the following question:
`What is High Assists, when Date is "March 10"?`

### 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 "March 10"?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='march 10';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Team is "@ Atlanta"?`

### 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 Record, when Team is "@ Atlanta"?`:
```sql
                SELECT "record" FROM "game_log" WHERE "team"='@ atlanta';
```
## Task
Generate a SQL query to answer the following question:
`What is Team, when Location Attendance is "Rose Garden 20,020"?`

### 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 Team, when Location Attendance is "Rose Garden 20,020"?`:
```sql
                SELECT "team" FROM "game_log" WHERE "location_attendance"='rose garden 20,020';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when High Points is "Danny Granger (32)"?`

### 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 Date, when High Points is "Danny Granger (32)"?`:
```sql
                SELECT "date" FROM "game_log" WHERE "high_points"='danny granger (32)';
```
## Task
Generate a SQL query to answer the following question:
`What is the place when the player is Bob Gilder and the money was $20,903?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place when the player is Bob Gilder and the money was $20,903?`:
```sql
                SELECT "place" FROM "final_round" WHERE "money"='20,903' AND "player"='bob gilder';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place when Fuzzy Zoeller plated in the United States?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place when Fuzzy Zoeller plated in the United States?`:
```sql
                SELECT "place" FROM "final_round" WHERE "country"='united states' AND "player"='fuzzy zoeller';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par when the score was 72-67-68-71=278?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par when the score was 72-67-68-71=278?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "score"='72-67-68-71=278';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place when Steve Pate was the player?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place when Steve Pate was the player?`:
```sql
                SELECT "place" FROM "final_round" WHERE "player"='steve pate';
```
## Task
Generate a SQL query to answer the following question:
`What is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n?`

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

CREATE TABLE "dorsa" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n?`:
```sql
                SELECT MIN("diameter_km") FROM "dorsa" WHERE "year_named"=1997 AND "longitude"='212.0e' AND "latitude"='47.0n';
```
## Task
Generate a SQL query to answer the following question:
`What's the latitude when the longitude is 152.0e later than 1997?`

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

CREATE TABLE "dorsa" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the latitude when the longitude is 152.0e later than 1997?`:
```sql
                SELECT "latitude" FROM "dorsa" WHERE "year_named">1997 AND "longitude"='152.0e';
```
## Task
Generate a SQL query to answer the following question:
`What's the diameter when longitude is 105.0e before 2003?`

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

CREATE TABLE "dorsa" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the diameter when longitude is 105.0e before 2003?`:
```sql
                SELECT SUM("diameter_km") FROM "dorsa" WHERE "longitude"='105.0e' AND "year_named"<2003;
```
## Task
Generate a SQL query to answer the following question:
`What's the average year for the name aida-wedo dorsa with a diameter less than 450?`

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

CREATE TABLE "dorsa" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average year for the name aida-wedo dorsa with a diameter less than 450?`:
```sql
                SELECT AVG("year_named") FROM "dorsa" WHERE "name"='aida-wedo dorsa' AND "diameter_km"<450;
```
## Task
Generate a SQL query to answer the following question:
`What's the total diameter when longitude is 357.8e later than 1985?`

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

CREATE TABLE "dorsa" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total diameter when longitude is 357.8e later than 1985?`:
```sql
                SELECT COUNT("diameter_km") FROM "dorsa" WHERE "longitude"='357.8e' AND "year_named">1985;
```
## Task
Generate a SQL query to answer the following question:
`what is the average 65 to 69 when the oblast\age is belgorod and 40 to 44 is more than 1,906?`

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

CREATE TABLE "2_ukrainians" (
  "c_w_15" real,
  "oblast_age" text,
  "15_to_17" real,
  "18_to_19" text,
  "20_to_24" real,
  "25_to_29" real,
  "30_to_34" real,
  "35_to_39" real,
  "40_to_44" real,
  "45_to_49" real,
  "50_to_54" real,
  "55_to_59" real,
  "60_to_64" real,
  "65_to_69" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average 65 to 69 when the oblast\age is belgorod and 40 to 44 is more than 1,906?`:
```sql
                SELECT AVG("65_to_69") FROM "2_ukrainians" WHERE "oblast_age"='belgorod' AND "40_to_44">'1,906';
```
## Task
Generate a SQL query to answer the following question:
`what is the average 60 to 64 when 50 to 54 is less than 2,054, 35 to 39 is more than 1,704, 30 to 34 is less than 1,381 and oblast\age is evenkia?`

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

CREATE TABLE "2_ukrainians" (
  "c_w_15" real,
  "oblast_age" text,
  "15_to_17" real,
  "18_to_19" text,
  "20_to_24" real,
  "25_to_29" real,
  "30_to_34" real,
  "35_to_39" real,
  "40_to_44" real,
  "45_to_49" real,
  "50_to_54" real,
  "55_to_59" real,
  "60_to_64" real,
  "65_to_69" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average 60 to 64 when 50 to 54 is less than 2,054, 35 to 39 is more than 1,704, 30 to 34 is less than 1,381 and oblast\age is evenkia?`:
```sql
                SELECT AVG("60_to_64") FROM "2_ukrainians" WHERE "50_to_54"<'2,054' AND "35_to_39">'1,704' AND "30_to_34"<'1,381' AND "oblast_age"='evenkia';
```
## Task
Generate a SQL query to answer the following question:
`How many times is 55 to 59 less than 1,677, oblast\age is gorod moscow  and 50 to 54 is more than 1,562?`

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

CREATE TABLE "2_ukrainians" (
  "c_w_15" real,
  "oblast_age" text,
  "15_to_17" real,
  "18_to_19" text,
  "20_to_24" real,
  "25_to_29" real,
  "30_to_34" real,
  "35_to_39" real,
  "40_to_44" real,
  "45_to_49" real,
  "50_to_54" real,
  "55_to_59" real,
  "60_to_64" real,
  "65_to_69" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is 55 to 59 less than 1,677, oblast\age is gorod moscow  and 50 to 54 is more than 1,562?`:
```sql
                SELECT COUNT("c_w_15") FROM "2_ukrainians" WHERE "55_to_59"<'1,677' AND "oblast_age"='gorod moscow' AND "50_to_54">'1,562';
```
## Task
Generate a SQL query to answer the following question:
`what is the average c/w 15+ when 18 to 19 is 132 and 65 to 69 is more than 1,869?`

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

CREATE TABLE "2_ukrainians" (
  "c_w_15" real,
  "oblast_age" text,
  "15_to_17" real,
  "18_to_19" text,
  "20_to_24" real,
  "25_to_29" real,
  "30_to_34" real,
  "35_to_39" real,
  "40_to_44" real,
  "45_to_49" real,
  "50_to_54" real,
  "55_to_59" real,
  "60_to_64" real,
  "65_to_69" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average c/w 15+ when 18 to 19 is 132 and 65 to 69 is more than 1,869?`:
```sql
                SELECT AVG("c_w_15") FROM "2_ukrainians" WHERE "18_to_19"='132' AND "65_to_69">'1,869';
```
## Task
Generate a SQL query to answer the following question:
`In what year was Lesli Margherita nominated?`

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

CREATE TABLE "original_london_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was Lesli Margherita nominated?`:
```sql
                SELECT SUM("year") FROM "original_london_production" WHERE "nominee"='lesli margherita';
```
## Task
Generate a SQL query to answer the following question:
`Who was nominated for Best Theatre Choreographer?`

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

CREATE TABLE "original_london_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was nominated for Best Theatre Choreographer?`:
```sql
                SELECT "nominee" FROM "original_london_production" WHERE "category"='best theatre choreographer';
```
## Task
Generate a SQL query to answer the following question:
`What hometown was FR Year, and ha Brown's Gymnastics club?`

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

CREATE TABLE "current_roster_2014" (
  "name" text,
  "height" text,
  "year" text,
  "hometown" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What hometown was FR Year, and ha Brown's Gymnastics club?`:
```sql
                SELECT "hometown" FROM "current_roster_2014" WHERE "year"='fr' AND "club"='brown''s gymnastics';
```
## Task
Generate a SQL query to answer the following question:
`What year was Asi Peko?`

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

CREATE TABLE "current_roster_2014" (
  "name" text,
  "height" text,
  "year" text,
  "hometown" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Asi Peko?`:
```sql
                SELECT "year" FROM "current_roster_2014" WHERE "name"='asi peko';
```
## Task
Generate a SQL query to answer the following question:
`What is the height for the Oakville Gymnastics Club?`

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

CREATE TABLE "current_roster_2014" (
  "name" text,
  "height" text,
  "year" text,
  "hometown" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height for the Oakville Gymnastics Club?`:
```sql
                SELECT "height" FROM "current_roster_2014" WHERE "club"='oakville gymnastics club';
```
## Task
Generate a SQL query to answer the following question:
`when was the loan ended when the loan club is spartak moscow?`

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

CREATE TABLE "loans_in" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text,
  "end_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the loan ended when the loan club is spartak moscow?`:
```sql
                SELECT "ended" FROM "loans_in" WHERE "loan_club"='spartak moscow';
```
## Task
Generate a SQL query to answer the following question:
`What is the loan start source when the loan club is fulham?`

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

CREATE TABLE "loans_in" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text,
  "end_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the loan start source when the loan club is fulham?`:
```sql
                SELECT "start_source" FROM "loans_in" WHERE "loan_club"='fulham';
```
## Task
Generate a SQL query to answer the following question:
`When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?`

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

CREATE TABLE "loans_in" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text,
  "end_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?`:
```sql
                SELECT "started" FROM "loans_in" WHERE "country"='eng' AND "loan_club"='sunderland' AND "end_source"='south wales echo';
```
## Task
Generate a SQL query to answer the following question:
`when was the loan ended when the country is ghana?`

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

CREATE TABLE "loans_in" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text,
  "end_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the loan ended when the country is ghana?`:
```sql
                SELECT "ended" FROM "loans_in" WHERE "country"='ghana';
```
## Task
Generate a SQL query to answer the following question:
`what is the loan club with the start source is bbc sport and started on 9 february?`

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

CREATE TABLE "loans_in" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text,
  "end_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the loan club with the start source is bbc sport and started on 9 february?`:
```sql
                SELECT "loan_club" FROM "loans_in" WHERE "start_source"='bbc sport' AND "started"='9 february';
```
## Task
Generate a SQL query to answer the following question:
`what is the start source when started on 2 february?`

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

CREATE TABLE "loans_in" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text,
  "end_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the start source when started on 2 february?`:
```sql
                SELECT "start_source" FROM "loans_in" WHERE "started"='2 february';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Finished, when Post is less than 2?`

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

CREATE TABLE "post_positions" (
  "finished" real,
  "time_behind" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Finished, when Post is less than 2?`:
```sql
                SELECT MIN("finished") FROM "post_positions" WHERE "post"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is Owner, when Finished is less than 15, when Trainer is "Steve Asmussen", and when Horse is "Z Fortune"?`

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

CREATE TABLE "post_positions" (
  "finished" real,
  "time_behind" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Owner, when Finished is less than 15, when Trainer is "Steve Asmussen", and when Horse is "Z Fortune"?`:
```sql
                SELECT "owner" FROM "post_positions" WHERE "finished"<15 AND "trainer"='steve asmussen' AND "horse"='z fortune';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/ Behind, when Jockey is "Jose Lezcano"?`

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

CREATE TABLE "post_positions" (
  "finished" real,
  "time_behind" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time/ Behind, when Jockey is "Jose Lezcano"?`:
```sql
                SELECT "time_behind" FROM "post_positions" WHERE "jockey"='jose lezcano';
```
## Task
Generate a SQL query to answer the following question:
`What is Jockey, when Post is 12?`

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

CREATE TABLE "post_positions" (
  "finished" real,
  "time_behind" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Jockey, when Post is 12?`:
```sql
                SELECT "jockey" FROM "post_positions" WHERE "post"=12;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Post, when Trainer is "Steve Asmussen", and when Time/ Behind is 19 ½?`

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

CREATE TABLE "post_positions" (
  "finished" real,
  "time_behind" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Post, when Trainer is "Steve Asmussen", and when Time/ Behind is 19 ½?`:
```sql
                SELECT COUNT("post") FROM "post_positions" WHERE "trainer"='steve asmussen' AND "time_behind"='19 ½';
```
## Task
Generate a SQL query to answer the following question:
`What is Jockey, when Horse is "Eight Belles"?`

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

CREATE TABLE "post_positions" (
  "finished" real,
  "time_behind" text,
  "post" real,
  "horse" text,
  "jockey" text,
  "trainer" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Jockey, when Horse is "Eight Belles"?`:
```sql
                SELECT "jockey" FROM "post_positions" WHERE "horse"='eight belles';
```
## Task
Generate a SQL query to answer the following question:
`Who is the team captain of the Guldensporen Stadion with a stadium capacity larger than 12,919?`

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

CREATE TABLE "overview" (
  "club" text,
  "location" text,
  "current_manager" text,
  "team_captain" text,
  "stadium" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team captain of the Guldensporen Stadion with a stadium capacity larger than 12,919?`:
```sql
                SELECT "team_captain" FROM "overview" WHERE "capacity">'12,919' AND "stadium"='guldensporen stadion';
```
## Task
Generate a SQL query to answer the following question:
`Who is the team captain of Regenboogstadion?`

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

CREATE TABLE "overview" (
  "club" text,
  "location" text,
  "current_manager" text,
  "team_captain" text,
  "stadium" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team captain of Regenboogstadion?`:
```sql
                SELECT "team_captain" FROM "overview" WHERE "stadium"='regenboogstadion';
```
## Task
Generate a SQL query to answer the following question:
`Who is the current manager of the team located in tubize?`

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

CREATE TABLE "overview" (
  "club" text,
  "location" text,
  "current_manager" text,
  "team_captain" text,
  "stadium" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the current manager of the team located in tubize?`:
```sql
                SELECT "current_manager" FROM "overview" WHERE "location"='tubize';
```
## Task
Generate a SQL query to answer the following question:
`Where is the location of the team with a current manager of Ariel Jacobs?`

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

CREATE TABLE "overview" (
  "club" text,
  "location" text,
  "current_manager" text,
  "team_captain" text,
  "stadium" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location of the team with a current manager of Ariel Jacobs?`:
```sql
                SELECT "location" FROM "overview" WHERE "current_manager"='ariel jacobs';
```
## Task
Generate a SQL query to answer the following question:
`What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?`

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

CREATE TABLE "race_data" (
  "finish" text,
  "race" text,
  "distance" text,
  "jockey" text,
  "time" text,
  "victory_margin_in_lengths" text,
  "runner_up" text,
  "track" text,
  "surface" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?`:
```sql
                SELECT "victory_margin_in_lengths" FROM "race_data" WHERE "finish"='1st' AND "jockey"='kent desormeaux' AND "time"='1:35.66';
```