cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the highest grid that has +44.866 as the time, with laps greater than 25?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest grid that has +44.866 as the time, with laps greater than 25?`:
```sql
                SELECT MAX("grid") FROM "superbike_race_2_classification" WHERE "time"='+44.866' AND "laps">25;
```
## Task
Generate a SQL query to answer the following question:
`who has the high points on june 16?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who has the high points on june 16?`:
```sql
                SELECT "high_points" FROM "regular_season" WHERE "date"='june 16';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance on november 2, 2003?`

### 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,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on november 2, 2003?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='november 2, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1.93 that is 2.05 in height?`

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

CREATE TABLE "final" (
  "name" text,
  "nationality" text,
  "1_85" text,
  "1_93" text,
  "height" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1.93 that is 2.05 in height?`:
```sql
                SELECT "1_93" FROM "final" WHERE "height"=2.05;
```
## Task
Generate a SQL query to answer the following question:
`What is the 1.93 for Svetlana Shkolina?`

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

CREATE TABLE "final" (
  "name" text,
  "nationality" text,
  "1_85" text,
  "1_93" text,
  "height" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1.93 for Svetlana Shkolina?`:
```sql
                SELECT "1_93" FROM "final" WHERE "name"='svetlana shkolina';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for the play from the Ukraine, and a 1.93 xxo?`

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

CREATE TABLE "final" (
  "name" text,
  "nationality" text,
  "1_85" text,
  "1_93" text,
  "height" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the play from the Ukraine, and a 1.93 xxo?`:
```sql
                SELECT "name" FROM "final" WHERE "nationality"='ukraine' AND "1_93"='xxo';
```
## Task
Generate a SQL query to answer the following question:
`What country in Europe is ranked 4, with top goal scorer Karl-Heinz Rummenigge with 14 goals?`

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

CREATE TABLE "since_1963" (
  "season" text,
  "division" text,
  "rank" text,
  "avg_att" text,
  "europe" text,
  "top_goalscorer" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country in Europe is ranked 4, with top goal scorer Karl-Heinz Rummenigge with 14 goals?`:
```sql
                SELECT "europe" FROM "since_1963" WHERE "rank"='4' AND "top_goalscorer"='karl-heinz rummenigge' AND "goals"=14;
```
## Task
Generate a SQL query to answer the following question:
`Wha is the rank for 52 574 avg. att?`

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

CREATE TABLE "since_1963" (
  "season" text,
  "division" text,
  "rank" text,
  "avg_att" text,
  "europe" text,
  "top_goalscorer" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Wha is the rank for 52 574 avg. att?`:
```sql
                SELECT "rank" FROM "since_1963" WHERE "avg_att"='52 574';
```
## Task
Generate a SQL query to answer the following question:
`What european country had more than 14 goals, and 52 538 avg att?`

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

CREATE TABLE "since_1963" (
  "season" text,
  "division" text,
  "rank" text,
  "avg_att" text,
  "europe" text,
  "top_goalscorer" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What european country had more than 14 goals, and 52 538 avg att?`:
```sql
                SELECT "europe" FROM "since_1963" WHERE "goals">14 AND "avg_att"='52 538';
```
## Task
Generate a SQL query to answer the following question:
`What's the least amount of wins for Germany in the 1999 season having 0 points?`

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

CREATE TABLE "by_name" (
  "country" text,
  "seasons" text,
  "championship_titles" text,
  "race_entries_starts" text,
  "poles" real,
  "wins" real,
  "podiums" real,
  "fastest_laps" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the least amount of wins for Germany in the 1999 season having 0 points?`:
```sql
                SELECT MIN("wins") FROM "by_name" WHERE "points"='0' AND "country"='germany' AND "seasons"='1999';
```
## Task
Generate a SQL query to answer the following question:
`How many wins when the points are 0 and podiums are less than 0?`

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

CREATE TABLE "by_name" (
  "country" text,
  "seasons" text,
  "championship_titles" text,
  "race_entries_starts" text,
  "poles" real,
  "wins" real,
  "podiums" real,
  "fastest_laps" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins when the points are 0 and podiums are less than 0?`:
```sql
                SELECT SUM("wins") FROM "by_name" WHERE "points"='0' AND "podiums"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's the fastest laps during the 1995 season having poles & podiums at 0?`

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

CREATE TABLE "by_name" (
  "country" text,
  "seasons" text,
  "championship_titles" text,
  "race_entries_starts" text,
  "poles" real,
  "wins" real,
  "podiums" real,
  "fastest_laps" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the fastest laps during the 1995 season having poles & podiums at 0?`:
```sql
                SELECT SUM("fastest_laps") FROM "by_name" WHERE "poles"=0 AND "podiums"=0 AND "seasons"='1995';
```
## Task
Generate a SQL query to answer the following question:
`How many years have an Award of venice film festival, and a Title of lust, caution?`

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

CREATE TABLE "awards_and_nominations_received_by_ang_l" (
  "award" text,
  "category" text,
  "year" real,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have an Award of venice film festival, and a Title of lust, caution?`:
```sql
                SELECT COUNT("year") FROM "awards_and_nominations_received_by_ang_l" WHERE "award"='venice film festival' AND "title"='lust, caution';
```
## Task
Generate a SQL query to answer the following question:
`Which Category has a Year larger than 1996, and a Result of won, and a Title of brokeback mountain, and an Award of golden globe award?`

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

CREATE TABLE "awards_and_nominations_received_by_ang_l" (
  "award" text,
  "category" text,
  "year" real,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Category has a Year larger than 1996, and a Result of won, and a Title of brokeback mountain, and an Award of golden globe award?`:
```sql
                SELECT "category" FROM "awards_and_nominations_received_by_ang_l" WHERE "year">1996 AND "result"='won' AND "title"='brokeback mountain' AND "award"='golden globe award';
```
## Task
Generate a SQL query to answer the following question:
`Which Title has a Year smaller than 2001, and an Award of independent spirit awards?`

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

CREATE TABLE "awards_and_nominations_received_by_ang_l" (
  "award" text,
  "category" text,
  "year" real,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has a Year smaller than 2001, and an Award of independent spirit awards?`:
```sql
                SELECT "title" FROM "awards_and_nominations_received_by_ang_l" WHERE "year"<2001 AND "award"='independent spirit awards';
```
## Task
Generate a SQL query to answer the following question:
`Which chassis has 17 points?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis has 17 points?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_results" WHERE "points"=17;
```
## Task
Generate a SQL query to answer the following question:
`What is the average draw for 186 games?`

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

CREATE TABLE "all_time_table" (
  "league" text,
  "number_of_seasons" real,
  "total_games" real,
  "draw" real,
  "loss" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average draw for 186 games?`:
```sql
                SELECT AVG("draw") FROM "all_time_table" WHERE "total_games"=186;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of games for less than 2 seasons and more than 7 draws?`

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

CREATE TABLE "all_time_table" (
  "league" text,
  "number_of_seasons" real,
  "total_games" real,
  "draw" real,
  "loss" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of games for less than 2 seasons and more than 7 draws?`:
```sql
                SELECT SUM("total_games") FROM "all_time_table" WHERE "number_of_seasons"<2 AND "draw">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses for less than 48 games, and less than 7 draws?`

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

CREATE TABLE "all_time_table" (
  "league" text,
  "number_of_seasons" real,
  "total_games" real,
  "draw" real,
  "loss" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses for less than 48 games, and less than 7 draws?`:
```sql
                SELECT COUNT("loss") FROM "all_time_table" WHERE "total_games"<48 AND "draw"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?`

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

CREATE TABLE "all_time_table" (
  "league" text,
  "number_of_seasons" real,
  "total_games" real,
  "draw" real,
  "loss" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?`:
```sql
                SELECT COUNT("total_games") FROM "all_time_table" WHERE "loss">18 AND "league"='total' AND "draw">317;
```
## Task
Generate a SQL query to answer the following question:
`What is Bobby Ryan's nationality?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Bobby Ryan's nationality?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "player"='bobby ryan';
```
## Task
Generate a SQL query to answer the following question:
`What's the location of the team Peter Stuyvesant International Racing?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the location of the team Peter Stuyvesant International Racing?`:
```sql
                SELECT "city_state" FROM "race_calendar" WHERE "team"='peter stuyvesant international racing';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner of the Adelaide International Raceway circuit?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of the Adelaide International Raceway circuit?`:
```sql
                SELECT "winner" FROM "race_calendar" WHERE "circuit"='adelaide international raceway';
```
## Task
Generate a SQL query to answer the following question:
`What date has the Surfers Paradise International Raceway circuit?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has the Surfers Paradise International Raceway circuit?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "circuit"='surfers paradise international raceway';
```
## Task
Generate a SQL query to answer the following question:
`What is the race title of Dick Johnson Racing?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the race title of Dick Johnson Racing?`:
```sql
                SELECT "race_title" FROM "race_calendar" WHERE "team"='dick johnson racing';
```
## Task
Generate a SQL query to answer the following question:
`What is the career win-loss for the ATP Masters Series?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the career win-loss for the ATP Masters Series?`:
```sql
                SELECT "career_win_loss" FROM "doubles_performance_timeline" WHERE "1995"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`What's the least 180's of John Part having a LWAT less than 28 with 100+ less than 180?`

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

CREATE TABLE "table" (
  "name" text,
  "lwat" real,
  "100" real,
  "140" real,
  "180s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the least 180's of John Part having a LWAT less than 28 with 100+ less than 180?`:
```sql
                SELECT MIN("180s") FROM "table" WHERE "lwat"<28 AND "name"='john part' AND "100"<180;
```
## Task
Generate a SQL query to answer the following question:
`What's the LWAT having more than 43 for 180s, 194 for 100+, and more than 128 for 140+?`

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

CREATE TABLE "table" (
  "name" text,
  "lwat" real,
  "100" real,
  "140" real,
  "180s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the LWAT having more than 43 for 180s, 194 for 100+, and more than 128 for 140+?`:
```sql
                SELECT AVG("lwat") FROM "table" WHERE "180s">43 AND "100"=194 AND "140">128;
```
## Task
Generate a SQL query to answer the following question:
`What's the total 140+ when the 100+ is 173?`

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

CREATE TABLE "table" (
  "name" text,
  "lwat" real,
  "100" real,
  "140" real,
  "180s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total 140+ when the 100+ is 173?`:
```sql
                SELECT COUNT("140") FROM "table" WHERE "100"=173;
```
## Task
Generate a SQL query to answer the following question:
`What's the 100+ when the 140+ is less than 128 and the LWAT of 29?`

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

CREATE TABLE "table" (
  "name" text,
  "lwat" real,
  "100" real,
  "140" real,
  "180s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 100+ when the 140+ is less than 128 and the LWAT of 29?`:
```sql
                SELECT SUM("100") FROM "table" WHERE "lwat"=29 AND "140"<128;
```
## Task
Generate a SQL query to answer the following question:
`What's the Home ground(s) listed for the Name Melville Cricket Club?`

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

CREATE TABLE "current_clubs" (
  "name" text,
  "nickname" text,
  "location" text,
  "home_ground_s" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Home ground(s) listed for the Name Melville Cricket Club?`:
```sql
                SELECT "home_ground_s" FROM "current_clubs" WHERE "name"='melville cricket club';
```
## Task
Generate a SQL query to answer the following question:
`What Name has the Captain Aaron Heal?`

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

CREATE TABLE "current_clubs" (
  "name" text,
  "nickname" text,
  "location" text,
  "home_ground_s" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Name has the Captain Aaron Heal?`:
```sql
                SELECT "name" FROM "current_clubs" WHERE "captain"='aaron heal';
```
## Task
Generate a SQL query to answer the following question:
`What's the Nickname listed for the Name of University Cricket Club?`

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

CREATE TABLE "current_clubs" (
  "name" text,
  "nickname" text,
  "location" text,
  "home_ground_s" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Nickname listed for the Name of University Cricket Club?`:
```sql
                SELECT "nickname" FROM "current_clubs" WHERE "name"='university cricket club';
```
## Task
Generate a SQL query to answer the following question:
`What Nickname has a Location of Southern River?`

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

CREATE TABLE "current_clubs" (
  "name" text,
  "nickname" text,
  "location" text,
  "home_ground_s" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Nickname has a Location of Southern River?`:
```sql
                SELECT "nickname" FROM "current_clubs" WHERE "location"='southern river';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name listed for the Nickname of Storm?`

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

CREATE TABLE "current_clubs" (
  "name" text,
  "nickname" text,
  "location" text,
  "home_ground_s" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name listed for the Nickname of Storm?`:
```sql
                SELECT "name" FROM "current_clubs" WHERE "nickname"='storm';
```
## Task
Generate a SQL query to answer the following question:
`What Name has the Location of Bayswater?`

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

CREATE TABLE "current_clubs" (
  "name" text,
  "nickname" text,
  "location" text,
  "home_ground_s" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Name has the Location of Bayswater?`:
```sql
                SELECT "name" FROM "current_clubs" WHERE "location"='bayswater';
```
## Task
Generate a SQL query to answer the following question:
`How many years have a Form album of the thing?`

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

CREATE TABLE "singles_as" (
  "year" real,
  "title" text,
  "from_album" text,
  "label" text,
  "label_nr" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have a Form album of the thing?`:
```sql
                SELECT SUM("year") FROM "singles_as" WHERE "from_album"='the thing';
```
## Task
Generate a SQL query to answer the following question:
`Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of chile con soul?`

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

CREATE TABLE "singles_as" (
  "year" real,
  "title" text,
  "from_album" text,
  "label" text,
  "label_nr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of chile con soul?`:
```sql
                SELECT "label_nr" FROM "singles_as" WHERE "year"<1968 AND "label"='world pacific' AND "from_album"='chile con soul';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Label-Nr of 88146?`

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

CREATE TABLE "singles_as" (
  "year" real,
  "title" text,
  "from_album" text,
  "label" text,
  "label_nr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Label-Nr of 88146?`:
```sql
                SELECT "year" FROM "singles_as" WHERE "label_nr"='88146';
```
## Task
Generate a SQL query to answer the following question:
`How many years were there albums by heat wave?`

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

CREATE TABLE "singles_as" (
  "year" real,
  "title" text,
  "from_album" text,
  "label" text,
  "label_nr" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years were there albums by heat wave?`:
```sql
                SELECT SUM("year") FROM "singles_as" WHERE "from_album"='heat wave';
```
## Task
Generate a SQL query to answer the following question:
`Which Title has an album of tough talk, and a Label-Nr of x-371?`

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

CREATE TABLE "singles_as" (
  "year" real,
  "title" text,
  "from_album" text,
  "label" text,
  "label_nr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has an album of tough talk, and a Label-Nr of x-371?`:
```sql
                SELECT "title" FROM "singles_as" WHERE "from_album"='tough talk' AND "label_nr"='x-371';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of floors for the number 2 ranked Joyus Housing?`

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

CREATE TABLE "approved_proposed" (
  "rank" real,
  "name" text,
  "status" text,
  "city" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of floors for the number 2 ranked Joyus Housing?`:
```sql
                SELECT MIN("floors") FROM "approved_proposed" WHERE "name"='joyus housing' AND "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of floors when the r Rank larger than 41, and a City of parel?`

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

CREATE TABLE "approved_proposed" (
  "rank" real,
  "name" text,
  "status" text,
  "city" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of floors when the r Rank larger than 41, and a City of parel?`:
```sql
                SELECT "floors" FROM "approved_proposed" WHERE "rank">41 AND "city"='parel';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the city of sewri?`

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

CREATE TABLE "approved_proposed" (
  "rank" real,
  "name" text,
  "status" text,
  "city" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for the city of sewri?`:
```sql
                SELECT COUNT("rank") FROM "approved_proposed" WHERE "city"='sewri';
```
## Task
Generate a SQL query to answer the following question:
`What rank has a status of proposed, with 80 floors for Celestia Spaces 4?`

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

CREATE TABLE "approved_proposed" (
  "rank" real,
  "name" text,
  "status" text,
  "city" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has a status of proposed, with 80 floors for Celestia Spaces 4?`:
```sql
                SELECT AVG("rank") FROM "approved_proposed" WHERE "status"='proposed' AND "floors"=80 AND "name"='celestia spaces 4';
```
## Task
Generate a SQL query to answer the following question:
`What's the English Pluperfect when the Bulgarian is бяха чули?`

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

CREATE TABLE "table_of_forms" (
  "english" text,
  "german" text,
  "dutch" text,
  "latin" text,
  "romanian" text,
  "portuguese" text,
  "spanish" text,
  "italian" text,
  "french" text,
  "greek_modern" text,
  "bulgarian" text,
  "macedonian" text,
  "polish_extinct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the English Pluperfect when the Bulgarian is бяха чули?`:
```sql
                SELECT "english" FROM "table_of_forms" WHERE "bulgarian"='бяха чули';
```
## Task
Generate a SQL query to answer the following question:
`What's the Italian Pluperfect when the English is We Had Heard?`

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

CREATE TABLE "table_of_forms" (
  "english" text,
  "german" text,
  "dutch" text,
  "latin" text,
  "romanian" text,
  "portuguese" text,
  "spanish" text,
  "italian" text,
  "french" text,
  "greek_modern" text,
  "bulgarian" text,
  "macedonian" text,
  "polish_extinct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Italian Pluperfect when the English is We Had Heard?`:
```sql
                SELECT "italian" FROM "table_of_forms" WHERE "english"='we had heard';
```
## Task
Generate a SQL query to answer the following question:
`What is the Portuguese Pluperfect when the French is Ils/Elles Avaient Entendu?`

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

CREATE TABLE "table_of_forms" (
  "english" text,
  "german" text,
  "dutch" text,
  "latin" text,
  "romanian" text,
  "portuguese" text,
  "spanish" text,
  "italian" text,
  "french" text,
  "greek_modern" text,
  "bulgarian" text,
  "macedonian" text,
  "polish_extinct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Portuguese Pluperfect when the French is Ils/Elles Avaient Entendu?`:
```sql
                SELECT "portuguese" FROM "table_of_forms" WHERE "french"='ils/elles avaient entendu';
```
## Task
Generate a SQL query to answer the following question:
`What's the German Pluperfect when the Macedonian is беше слушнал/-а/-о?`

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

CREATE TABLE "table_of_forms" (
  "english" text,
  "german" text,
  "dutch" text,
  "latin" text,
  "romanian" text,
  "portuguese" text,
  "spanish" text,
  "italian" text,
  "french" text,
  "greek_modern" text,
  "bulgarian" text,
  "macedonian" text,
  "polish_extinct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the German Pluperfect when the Macedonian is беше слушнал/-а/-о?`:
```sql
                SELECT "german" FROM "table_of_forms" WHERE "macedonian"='беше слушнал/-а/-о';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of silver for Italy with a total less than 5?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of silver for Italy with a total less than 5?`:
```sql
                SELECT MIN("silver") FROM "medals_table" WHERE "nation"='italy' AND "total"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for Austria when there is less than 1 bronze?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for Austria when there is less than 1 bronze?`:
```sql
                SELECT AVG("total") FROM "medals_table" WHERE "nation"='austria' AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total when silver is more than 3, and rank is 2?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when silver is more than 3, and rank is 2?`:
```sql
                SELECT MAX("total") FROM "medals_table" WHERE "silver">3 AND "rank"='2';
```
## Task
Generate a SQL query to answer the following question:
`What is the gold number when total is more than 1, and bronze is 0, and rank is 5?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gold number when total is more than 1, and bronze is 0, and rank is 5?`:
```sql
                SELECT SUM("gold") FROM "medals_table" WHERE "total">1 AND "bronze"=0 AND "rank"='5';
```
## Task
Generate a SQL query to answer the following question:
`What date was the episode that aired at 7:30 pm ET?`

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

CREATE TABLE "road_to_redemption_presented_by_nike" (
  "episode" text,
  "date" text,
  "time" text,
  "network" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the episode that aired at 7:30 pm ET?`:
```sql
                SELECT "date" FROM "road_to_redemption_presented_by_nike" WHERE "time"='7:30 pm et';
```
## Task
Generate a SQL query to answer the following question:
`What date did episode one air on?`

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

CREATE TABLE "road_to_redemption_presented_by_nike" (
  "episode" text,
  "date" text,
  "time" text,
  "network" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did episode one air on?`:
```sql
                SELECT "date" FROM "road_to_redemption_presented_by_nike" WHERE "episode"='one';
```
## Task
Generate a SQL query to answer the following question:
`At what venue was the 2010 FIFA World Cup Qualification?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what venue was the 2010 FIFA World Cup Qualification?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "competition"='2010 fifa world cup qualification';
```
## Task
Generate a SQL query to answer the following question:
`What's the snatch when the 139kg was 305kg and the Olympic Record was the world record?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "mu_shuangshuang_chn" text,
  "139kg" text,
  "doha_qatar" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the snatch when the 139kg was 305kg and the Olympic Record was the world record?`:
```sql
                SELECT "snatch" FROM "records" WHERE "world_record"='olympic record' AND "139kg"='305kg';
```
## Task
Generate a SQL query to answer the following question:
`What is the discipline for the summer Olympics in 2008?`

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

CREATE TABLE "major_tournaments" (
  "year" real,
  "tournament" text,
  "venue" text,
  "discipline" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the discipline for the summer Olympics in 2008?`:
```sql
                SELECT "discipline" FROM "major_tournaments" WHERE "tournament"='summer olympics' AND "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What venue has an extra of 45.08 S?`

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

CREATE TABLE "major_tournaments" (
  "year" real,
  "tournament" text,
  "venue" text,
  "discipline" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has an extra of 45.08 S?`:
```sql
                SELECT "venue" FROM "major_tournaments" WHERE "extra"='45.08 s';
```
## Task
Generate a SQL query to answer the following question:
`What is the extra when the result is 4th at the NCAA Championships?`

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

CREATE TABLE "major_tournaments" (
  "year" real,
  "tournament" text,
  "venue" text,
  "discipline" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the extra when the result is 4th at the NCAA Championships?`:
```sql
                SELECT "extra" FROM "major_tournaments" WHERE "result"='4th' AND "tournament"='ncaa championships';
```
## Task
Generate a SQL query to answer the following question:
`What tournament had an extra of 3:06.94 s?`

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

CREATE TABLE "major_tournaments" (
  "year" real,
  "tournament" text,
  "venue" text,
  "discipline" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had an extra of 3:06.94 s?`:
```sql
                SELECT "tournament" FROM "major_tournaments" WHERE "extra"='3:06.94 s';
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1?`:
```sql
                SELECT MIN("time") FROM "heat_2" WHERE "nationality"='jamaica' AND "lane">4 AND "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Rank with a Lane of 5 and a Time smaller than 11.06?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Rank with a Lane of 5 and a Time smaller than 11.06?`:
```sql
                SELECT MIN("rank") FROM "heat_2" WHERE "lane"=5 AND "time"<11.06;
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Rank of carmelita jeter with a Time smaller than 11.08?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Rank of carmelita jeter with a Time smaller than 11.08?`:
```sql
                SELECT MIN("rank") FROM "heat_2" WHERE "name"='carmelita jeter' AND "time"<11.08;
```
## Task
Generate a SQL query to answer the following question:
`When the points are 98 what is the draw?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the points are 98 what is the draw?`:
```sql
                SELECT COUNT("draw") FROM "results" WHERE "points"=98;
```
## Task
Generate a SQL query to answer the following question:
`What is the TOTAL Time in Office with a rank smaller than 18, and premier is Joh Bjelke-Petersen?`

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

CREATE TABLE "rank_by_time_in_office" (
  "rank" real,
  "premier" text,
  "assumed_office" text,
  "left_office" text,
  "total_time_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the TOTAL Time in Office with a rank smaller than 18, and premier is Joh Bjelke-Petersen?`:
```sql
                SELECT "total_time_in_office" FROM "rank_by_time_in_office" WHERE "rank"<18 AND "premier"='joh bjelke-petersen';
```
## Task
Generate a SQL query to answer the following question:
`What is the assumed Office date when the TOTAL Time in Office is 5years, 316days?`

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

CREATE TABLE "rank_by_time_in_office" (
  "rank" real,
  "premier" text,
  "assumed_office" text,
  "left_office" text,
  "total_time_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the assumed Office date when the TOTAL Time in Office is 5years, 316days?`:
```sql
                SELECT "assumed_office" FROM "rank_by_time_in_office" WHERE "total_time_in_office"='5years, 316days';
```
## Task
Generate a SQL query to answer the following question:
`What Akakios Kakiasvilis (GRE) is 187kg the 188kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "akakios_kakiasvilis_gre" text,
  "188kg" text,
  "athens_greece" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Akakios Kakiasvilis (GRE) is 187kg the 188kg?`:
```sql
                SELECT "akakios_kakiasvilis_gre" FROM "records" WHERE "188kg"='187kg';
```
## Task
Generate a SQL query to answer the following question:
`What world record has the 188kg as 187kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "akakios_kakiasvilis_gre" text,
  "188kg" text,
  "athens_greece" text
);
### SQL
Given the database schema, here is the SQL query that answers `What world record has the 188kg as 187kg?`:
```sql
                SELECT "world_record" FROM "records" WHERE "188kg"='187kg';
```
## Task
Generate a SQL query to answer the following question:
`For what 188kg is the world record clean & jerk?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "akakios_kakiasvilis_gre" text,
  "188kg" text,
  "athens_greece" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what 188kg is the world record clean & jerk?`:
```sql
                SELECT "188kg" FROM "records" WHERE "world_record"='clean & jerk';
```
## Task
Generate a SQL query to answer the following question:
`What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy?`

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

CREATE TABLE "singles_16_4_titles_12_runner_ups" (
  "outcome" text,
  "year" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy?`:
```sql
                SELECT "year" FROM "singles_16_4_titles_12_runner_ups" WHERE "opponent_in_the_final"='brenda schultz-mccarthy' AND "score"='6–7(5), 2–6';
```
## Task
Generate a SQL query to answer the following question:
`What year had a score of 4–6, 7–6, 7–5?`

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

CREATE TABLE "singles_16_4_titles_12_runner_ups" (
  "outcome" text,
  "year" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a score of 4–6, 7–6, 7–5?`:
```sql
                SELECT "year" FROM "singles_16_4_titles_12_runner_ups" WHERE "score"='4–6, 7–6, 7–5';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team for the match with a home team of Citizen Team A?`

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

CREATE TABLE "a_b_second_round" (
  "time" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team for the match with a home team of Citizen Team A?`:
```sql
                SELECT "away_team" FROM "a_b_second_round" WHERE "home_team"='citizen team a';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the match with a home team of Citizen Team A?`

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

CREATE TABLE "a_b_second_round" (
  "time" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the match with a home team of Citizen Team A?`:
```sql
                SELECT "score" FROM "a_b_second_round" WHERE "home_team"='citizen team a';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team in the match that had an away team of Convoy Sun Hei Team B?`

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

CREATE TABLE "a_b_second_round" (
  "time" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team in the match that had an away team of Convoy Sun Hei Team B?`:
```sql
                SELECT "home_team" FROM "a_b_second_round" WHERE "away_team"='convoy sun hei team b';
```
## Task
Generate a SQL query to answer the following question:
`What time did the match with an away team of Happy Valley Team B start?`

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

CREATE TABLE "a_b_second_round" (
  "time" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time did the match with an away team of Happy Valley Team B start?`:
```sql
                SELECT "time" FROM "a_b_second_round" WHERE "away_team"='happy valley team b';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg when second team is Sumykhimprom?`

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

CREATE TABLE "first_qualifying_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg when second team is Sumykhimprom?`:
```sql
                SELECT "2nd_leg" FROM "first_qualifying_round" WHERE "team_num2"='sumykhimprom';
```
## Task
Generate a SQL query to answer the following question:
`What is the agg when the seconf leg is 58-75?`

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

CREATE TABLE "first_qualifying_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the agg when the seconf leg is 58-75?`:
```sql
                SELECT "agg" FROM "first_qualifying_round" WHERE "2nd_leg"='58-75';
```
## Task
Generate a SQL query to answer the following question:
`What is the first team when the 2nd leg is 100-113?`

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

CREATE TABLE "first_qualifying_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first team when the 2nd leg is 100-113?`:
```sql
                SELECT "team_num1" FROM "first_qualifying_round" WHERE "2nd_leg"='100-113';
```