cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is 2010 when 2006 is 3r?`

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

CREATE TABLE "grand_slam_tournament_performance_timeli" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2010 when 2006 is 3r?`:
```sql
                SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2006"='3r';
```
## Task
Generate a SQL query to answer the following question:
`what is 2013 when 2001 is qf and 2011 is 4r?`

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

CREATE TABLE "grand_slam_tournament_performance_timeli" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2013 when 2001 is qf and 2011 is 4r?`:
```sql
                SELECT "2013" FROM "grand_slam_tournament_performance_timeli" WHERE "2001"='qf' AND "2011"='4r';
```
## Task
Generate a SQL query to answer the following question:
`What is the average round for the record of 1-1?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round for the record of 1-1?`:
```sql
                SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "record"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`What method had a record 12-2-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
);
### SQL
Given the database schema, here is the SQL query that answers `What method had a record 12-2-3?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='12-2-3';
```
## Task
Generate a SQL query to answer the following question:
`What Hanyu Pinyin is in the Jinning Township?`

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

CREATE TABLE "townships" (
  "name" text,
  "chinese" text,
  "hanyu_pinyin" text,
  "wade_giles" text,
  "hokkien_pe_h_e_j" text,
  "english_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Hanyu Pinyin is in the Jinning Township?`:
```sql
                SELECT "hanyu_pinyin" FROM "townships" WHERE "name"='jinning township';
```
## Task
Generate a SQL query to answer the following question:
`How many times did Sham Kwok Fai score in the game that was played on 22 February 2006?`

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

CREATE TABLE "international_career" (
  "date" text,
  "venue" text,
  "result" text,
  "scored" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Sham Kwok Fai score in the game that was played on 22 February 2006?`:
```sql
                SELECT SUM("scored") FROM "international_career" WHERE "date"='22 february 2006';
```
## Task
Generate a SQL query to answer the following question:
`The home team york city has what score?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `The home team york city has what score?`:
```sql
                SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='york city';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Week(s), when Attendance is 61,603?`

### 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(s), when Attendance is 61,603?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"='61,603';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Attendance is 62,170?`

### 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 Opponent, when Attendance is 62,170?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='62,170';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17?`

### 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 `HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17?`:
```sql
                SELECT MIN("points") FROM "race" WHERE "driver"='alex sperafico' AND "grid">17;
```
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5?`

### 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 ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5?`:
```sql
                SELECT MIN("laps") FROM "race" WHERE "points">5 AND "team"='forsythe racing' AND "grid"=5;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='1978 world cup qualification';
```
## Task
Generate a SQL query to answer the following question:
`What is the average pick number for jerry hackenbruck who was overall pick less than 282?`

### 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 average pick number for jerry hackenbruck who was overall pick less than 282?`:
```sql
                SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "name"='jerry hackenbruck' AND "overall"<282;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest draft pick number for mark doak who had an overall pick smaller than 147?`

### 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 lowest draft pick number for mark doak who had an overall pick smaller than 147?`:
```sql
                SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "name"='mark doak' AND "overall"<147;
```
## Task
Generate a SQL query to answer the following question:
`What position did the player have who was from the college of california?`

### 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 position did the player have who was from the college of california?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='california';
```
## Task
Generate a SQL query to answer the following question:
`What college did jerry hackenbruck come from who had an overall pick less than 344?`

### 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 college did jerry hackenbruck come from who had an overall pick less than 344?`:
```sql
                SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall"<344 AND "name"='jerry hackenbruck';
```
## Task
Generate a SQL query to answer the following question:
`What team was the opponent on 03/18/08?`

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

CREATE TABLE "21st_century_comeback" (
  "date" text,
  "time" text,
  "opponent" text,
  "site" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the opponent on 03/18/08?`:
```sql
                SELECT "opponent" FROM "21st_century_comeback" WHERE "date"='03/18/08';
```
## Task
Generate a SQL query to answer the following question:
`What is the site where the game was held in the city of Delaware?`

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

CREATE TABLE "21st_century_comeback" (
  "date" text,
  "time" text,
  "opponent" text,
  "site" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the site where the game was held in the city of Delaware?`:
```sql
                SELECT "site" FROM "21st_century_comeback" WHERE "city"='delaware';
```
## Task
Generate a SQL query to answer the following question:
`What city was the game held in when the opponent was Towson?`

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

CREATE TABLE "21st_century_comeback" (
  "date" text,
  "time" text,
  "opponent" text,
  "site" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city was the game held in when the opponent was Towson?`:
```sql
                SELECT "city" FROM "21st_century_comeback" WHERE "opponent"='towson';
```
## Task
Generate a SQL query to answer the following question:
`What team was opponen in baltimore, at 2:00pm, on 4/06/08?`

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

CREATE TABLE "21st_century_comeback" (
  "date" text,
  "time" text,
  "opponent" text,
  "site" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was opponen in baltimore, at 2:00pm, on 4/06/08?`:
```sql
                SELECT "opponent" FROM "21st_century_comeback" WHERE "city"='baltimore' AND "time"='2:00pm' AND "date"='4/06/08';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game held at UMBC Field?`

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

CREATE TABLE "21st_century_comeback" (
  "date" text,
  "time" text,
  "opponent" text,
  "site" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game held at UMBC Field?`:
```sql
                SELECT "date" FROM "21st_century_comeback" WHERE "site"='umbc field';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game held in Towson?`

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

CREATE TABLE "21st_century_comeback" (
  "date" text,
  "time" text,
  "opponent" text,
  "site" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game held in Towson?`:
```sql
                SELECT "date" FROM "21st_century_comeback" WHERE "city"='towson';
```
## Task
Generate a SQL query to answer the following question:
`Which season premiered on 29 October 1990 and had more than 6 episodes?`

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

CREATE TABLE "series_1_5" (
  "series" real,
  "premiere" text,
  "finale" text,
  "episodes" real,
  "specials" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season premiered on 29 October 1990 and had more than 6 episodes?`:
```sql
                SELECT MAX("series") FROM "series_1_5" WHERE "premiere"='29 october 1990' AND "episodes">6;
```
## Task
Generate a SQL query to answer the following question:
`WHAT DATE HAD A SCORE OF 71-64?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT DATE HAD A SCORE OF 71-64?`:
```sql
                SELECT "date" FROM "playoffs" WHERE "score"='71-64';
```
## Task
Generate a SQL query to answer the following question:
`WHAT SCORE WAS ON SEPTEMBER 21?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT SCORE WAS ON SEPTEMBER 21?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "date"='september 21';
```
## Task
Generate a SQL query to answer the following question:
`WHAT SCORE HAD A RECORD OF 1-1?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT SCORE HAD A RECORD OF 1-1?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "record"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`WHAT OPPONENT HAD A DATE OF SEPTEMBER 28?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT OPPONENT HAD A DATE OF SEPTEMBER 28?`:
```sql
                SELECT "opponent" FROM "playoffs" WHERE "date"='september 28';
```
## Task
Generate a SQL query to answer the following question:
`WHAT SCORE HAD A LOSS AND RECORD OF 1-1?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT SCORE HAD A LOSS AND RECORD OF 1-1?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "result"='loss' AND "record"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`Who is the alternate for Andy Brown, and Nick Grady?`

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

CREATE TABLE "on_ice_officials" (
  "season" text,
  "coach" text,
  "captain" text,
  "alternate_1" text,
  "alternate_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the alternate for Andy Brown, and Nick Grady?`:
```sql
                SELECT "alternate_2" FROM "on_ice_officials" WHERE "coach"='andy brown' AND "captain"='nick grady';
```
## Task
Generate a SQL query to answer the following question:
`Which captain has Gintare Karpaviciute as an alternate?`

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

CREATE TABLE "on_ice_officials" (
  "season" text,
  "coach" text,
  "captain" text,
  "alternate_1" text,
  "alternate_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which captain has Gintare Karpaviciute as an alternate?`:
```sql
                SELECT "captain" FROM "on_ice_officials" WHERE "alternate_1"='gintare karpaviciute';
```
## Task
Generate a SQL query to answer the following question:
`Which coach works with Robert Harvey?`

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

CREATE TABLE "on_ice_officials" (
  "season" text,
  "coach" text,
  "captain" text,
  "alternate_1" text,
  "alternate_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which coach works with Robert Harvey?`:
```sql
                SELECT "coach" FROM "on_ice_officials" WHERE "captain"='robert harvey';
```
## Task
Generate a SQL query to answer the following question:
`Which Nickname has Founded of 1954?`

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

CREATE TABLE "2013_2014_teams" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nickname has Founded of 1954?`:
```sql
                SELECT "nickname" FROM "2013_2014_teams" WHERE "founded"=1954;
```
## Task
Generate a SQL query to answer the following question:
`Which team played in the Boston Garden when the final score was L 118-130?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team played in the Boston Garden when the final score was L 118-130?`:
```sql
                SELECT "team" FROM "playoffs" WHERE "location_attendance"='boston garden' AND "score"='l 118-130';
```
## Task
Generate a SQL query to answer the following question:
`What team played at the Boston Garden when the series was 1-0?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team played at the Boston Garden when the series was 1-0?`:
```sql
                SELECT "team" FROM "playoffs" WHERE "location_attendance"='boston garden' AND "series"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`Which driver had a grid of 2?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver had a grid of 2?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing?`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "team"='mi-jack conquest racing' AND "points"='16';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of points associated with 165 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of points associated with 165 laps?`:
```sql
                SELECT "points" FROM "race" WHERE "laps"=165;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of laps associated with 8 points and a grid under 8?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of laps associated with 8 points and a grid under 8?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "points"='8' AND "grid"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of employees with 110,520.2 in revenue, and a more than 2,237.7 profit?`

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

CREATE TABLE "list" (
  "rank" real,
  "rank_fortune_500" real,
  "name" text,
  "headquarters" text,
  "revenue_millions" real,
  "profit_millions" real,
  "employees" real,
  "industry" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of employees with 110,520.2 in revenue, and a more than 2,237.7 profit?`:
```sql
                SELECT MAX("employees") FROM "list" WHERE "revenue_millions"<'110,520.2' AND "profit_millions">'2,237.7';
```
## Task
Generate a SQL query to answer the following question:
`What is the % for Munger when McCrory has 40% and the lead margin is greater than 3?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_beverly_perdue" text,
  "republican_pat_mc_crory" text,
  "libertarian_michael_munger" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % for Munger when McCrory has 40% and the lead margin is greater than 3?`:
```sql
                SELECT "libertarian_michael_munger" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='40%' AND "lead_margin">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Perdue when McCrory has 37% and Munger has 6%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_beverly_perdue" text,
  "republican_pat_mc_crory" text,
  "libertarian_michael_munger" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of Perdue when McCrory has 37% and Munger has 6%?`:
```sql
                SELECT "democrat_beverly_perdue" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='37%' AND "libertarian_michael_munger"='6%';
```
## Task
Generate a SQL query to answer the following question:
`What is the lead margin for McCrory when he has 49%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_beverly_perdue" text,
  "republican_pat_mc_crory" text,
  "libertarian_michael_munger" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lead margin for McCrory when he has 49%?`:
```sql
                SELECT "lead_margin" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='49%';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters?`

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

CREATE TABLE "tallest_completed_buildings" (
  "name" text,
  "height_m" real,
  "height_ft" real,
  "location" text,
  "year_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters?`:
```sql
                SELECT MIN("height_ft") FROM "tallest_completed_buildings" WHERE "year_built">1961 AND "location"='platz der einheit 1, gallus' AND "height_m"<130;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the heights in meters for the commerzbank tower built after 1984?`

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

CREATE TABLE "tallest_completed_buildings" (
  "name" text,
  "height_m" real,
  "height_ft" real,
  "location" text,
  "year_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the heights in meters for the commerzbank tower built after 1984?`:
```sql
                SELECT SUM("height_m") FROM "tallest_completed_buildings" WHERE "year_built">1984 AND "name"='commerzbank tower';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters?`

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

CREATE TABLE "tallest_completed_buildings" (
  "name" text,
  "height_m" real,
  "height_ft" real,
  "location" text,
  "year_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters?`:
```sql
                SELECT MIN("year_built") FROM "tallest_completed_buildings" WHERE "location"='sonnemannstraße/rückertstraße, ostend' AND "height_m">185;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest height in meters for the building located in mailänder straße 1, sachsenhausen-süd, with a height shorter than 328.1 ft?`

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

CREATE TABLE "tallest_completed_buildings" (
  "name" text,
  "height_m" real,
  "height_ft" real,
  "location" text,
  "year_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest height in meters for the building located in mailänder straße 1, sachsenhausen-süd, with a height shorter than 328.1 ft?`:
```sql
                SELECT MIN("height_m") FROM "tallest_completed_buildings" WHERE "location"='mailänder straße 1, sachsenhausen-süd' AND "height_ft"<328.1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville?`

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

CREATE TABLE "communities" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville?`:
```sql
                SELECT AVG("population") FROM "communities" WHERE "area_km_2"<26.69 AND "official_name"='rogersville';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the album from 2012 with a Hammer Music / Nail Records label?`

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

CREATE TABLE "discography" (
  "year" real,
  "album" text,
  "release_type" text,
  "label" text,
  "hungarian_top_40_album_charts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the album from 2012 with a Hammer Music / Nail Records label?`:
```sql
                SELECT "album" FROM "discography" WHERE "label"='hammer music / nail records' AND "year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`What year had the Hungarian top 40 album charts of 3?`

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

CREATE TABLE "discography" (
  "year" real,
  "album" text,
  "release_type" text,
  "label" text,
  "hungarian_top_40_album_charts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had the Hungarian top 40 album charts of 3?`:
```sql
                SELECT "year" FROM "discography" WHERE "hungarian_top_40_album_charts"='3';
```
## Task
Generate a SQL query to answer the following question:
`What type of release was Napisten Hava?`

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

CREATE TABLE "discography" (
  "year" real,
  "album" text,
  "release_type" text,
  "label" text,
  "hungarian_top_40_album_charts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of release was Napisten Hava?`:
```sql
                SELECT "release_type" FROM "discography" WHERE "album"='napisten hava';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the album that was a demo release?`

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

CREATE TABLE "discography" (
  "year" real,
  "album" text,
  "release_type" text,
  "label" text,
  "hungarian_top_40_album_charts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the album that was a demo release?`:
```sql
                SELECT "album" FROM "discography" WHERE "release_type"='demo';
```
## Task
Generate a SQL query to answer the following question:
`What is the serials issued in 1982 with a format of ABC-123?`

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

CREATE TABLE "1973_to_1983" (
  "issued" text,
  "type" text,
  "design" text,
  "serial_format" text,
  "serials_issued" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the serials issued in 1982 with a format of ABC-123?`:
```sql
                SELECT "serials_issued" FROM "1973_to_1983" WHERE "serial_format"='abc-123' AND "issued"='1982';
```
## Task
Generate a SQL query to answer the following question:
`Which design has a serial format of AB-12-34?`

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

CREATE TABLE "1973_to_1983" (
  "issued" text,
  "type" text,
  "design" text,
  "serial_format" text,
  "serials_issued" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which design has a serial format of AB-12-34?`:
```sql
                SELECT "design" FROM "1973_to_1983" WHERE "serial_format"='ab-12-34';
```
## Task
Generate a SQL query to answer the following question:
`Which serials were issued with a design of black on yellow?`

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

CREATE TABLE "1973_to_1983" (
  "issued" text,
  "type" text,
  "design" text,
  "serial_format" text,
  "serials_issued" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which serials were issued with a design of black on yellow?`:
```sql
                SELECT "serials_issued" FROM "1973_to_1983" WHERE "design"='black on yellow';
```
## Task
Generate a SQL query to answer the following question:
`WHo was the outgoing manager for the team of fc carl zeiss jena?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHo was the outgoing manager for the team of fc carl zeiss jena?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='fc carl zeiss jena';
```
## Task
Generate a SQL query to answer the following question:
`What team did the manager come from who departed due to an end of tenure as caretaker?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did the manager come from who departed due to an end of tenure as caretaker?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "manner_of_departure"='end of tenure as caretaker';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of appointment for the replaced manager, reiner geyer?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of appointment for the replaced manager, reiner geyer?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='reiner geyer';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of vacancy after the outgoing manager, ralf santelli departed?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of vacancy after the outgoing manager, ralf santelli departed?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='ralf santelli';
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager who departed due to fc energie cottbus purchased rights?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager who departed due to fc energie cottbus purchased rights?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "manner_of_departure"='fc energie cottbus purchased rights';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the position lb and the overall is less than 46?`

### 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 `How many times is the position lb and the overall is less than 46?`:
```sql
                SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "position"='lb' AND "overall"<46;
```
## Task
Generate a SQL query to answer the following question:
`what is the college when the overall is more than 76 for brian mitchell?`

### 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 college when the overall is more than 76 for brian mitchell?`:
```sql
                SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall">76 AND "name"='brian mitchell';
```
## Task
Generate a SQL query to answer the following question:
`what is the pick when the overall is less than 297 and the college is alabama?`

### 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 pick when the overall is less than 297 and the college is alabama?`:
```sql
                SELECT "pick" FROM "washington_redskins_draft_history" WHERE "overall"<297 AND "college"='alabama';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest round when the college is penn state?`

### 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 highest round when the college is penn state?`:
```sql
                SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "college"='penn state';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah`

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

CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
  "reservation" text,
  "location" text,
  "1969" real,
  "1979" real,
  "1989" real,
  "2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah`:
```sql
                SELECT SUM("1989") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "2000"<52.8 AND "location"='arizona, new mexico, and utah';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8?`

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

CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
  "reservation" text,
  "location" text,
  "1969" real,
  "1979" real,
  "1989" real,
  "2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8?`:
```sql
                SELECT AVG("2000") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "location"='montana' AND "reservation"='fort peck indian reservation' AND "1979"<26.8;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4?`

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

CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
  "reservation" text,
  "location" text,
  "1969" real,
  "1979" real,
  "1989" real,
  "2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4?`:
```sql
                SELECT SUM("2000") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "1969"=54.3 AND "1979"<48.4;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2000 number when the 1989 is less than 54.9 in Arizona, New Mexico, and Utah?`

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

CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
  "reservation" text,
  "location" text,
  "1969" real,
  "1979" real,
  "1989" real,
  "2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2000 number when the 1989 is less than 54.9 in Arizona, New Mexico, and Utah?`:
```sql
                SELECT SUM("2000") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "1989"<54.9 AND "location"='arizona, new mexico, and utah';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9?`

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

CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
  "reservation" text,
  "location" text,
  "1969" real,
  "1979" real,
  "1989" real,
  "2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9?`:
```sql
                SELECT SUM("1979") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "reservation"='standing rock indian reservation' AND "1989"<54.9;
```
## Task
Generate a SQL query to answer the following question:
`What Kerry's percentage where 66 people voted for another candidate?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Kerry's percentage where 66 people voted for another candidate?`:
```sql
                SELECT "kerrypct" FROM "by_county" WHERE "othersnum"=66;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7?`:
```sql
                SELECT AVG("laps") FROM "125cc_classification" WHERE "time"='+17.485' AND "grid"<7;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese?`:
```sql
                SELECT SUM("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "rider"='sandro cortese';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of game 21?`

### 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_time" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "arena_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of game 21?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "game"=21;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on June 10?`

### 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_time" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "arena_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game on June 10?`:
```sql
                SELECT "score_time" FROM "regular_season" WHERE "date"='june 10';
```
## Task
Generate a SQL query to answer the following question:
`What is Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23?`:
```sql
                SELECT SUM("round") FROM "draft_picks" WHERE "college_junior_club_team"='brandon wheat kings ( whl )' AND "player"='mike perovich (d)' AND "pick"<23;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Round, when Player is Tim Hunter (RW), and when Pick is less than 54?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Round, when Player is Tim Hunter (RW), and when Pick is less than 54?`:
```sql
                SELECT SUM("round") FROM "draft_picks" WHERE "player"='tim hunter (rw)' AND "pick"<54;
```