cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Home team has an Away team score of 12.19 (91)?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team has an Away team score of 12.19 (91)?`:
```sql
                SELECT "home_team" FROM "round_8" WHERE "away_team_score"='12.19 (91)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the center from Washington State?`

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

CREATE TABLE "d" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the center from Washington State?`:
```sql
                SELECT "player" FROM "d" WHERE "position"='center' AND "school_club_team"='washington state';
```
## Task
Generate a SQL query to answer the following question:
`What school did Paul Dawkins play for?`

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

CREATE TABLE "d" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did Paul Dawkins play for?`:
```sql
                SELECT "school_club_team" FROM "d" WHERE "player"='paul dawkins';
```
## Task
Generate a SQL query to answer the following question:
`Name the place with building of victoria hall`

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

CREATE TABLE "notable_organs" (
  "date" real,
  "country" text,
  "place" text,
  "building" text,
  "size" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the place with building of victoria hall`:
```sql
                SELECT "place" FROM "notable_organs" WHERE "building"='victoria hall';
```
## Task
Generate a SQL query to answer the following question:
`Name the least date for the place which has a building of victoria hall`

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

CREATE TABLE "notable_organs" (
  "date" real,
  "country" text,
  "place" text,
  "building" text,
  "size" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least date for the place which has a building of victoria hall`:
```sql
                SELECT MIN("date") FROM "notable_organs" WHERE "building"='victoria hall';
```
## Task
Generate a SQL query to answer the following question:
`Name the size which is past 2000`

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

CREATE TABLE "notable_organs" (
  "date" real,
  "country" text,
  "place" text,
  "building" text,
  "size" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the size which is past 2000`:
```sql
                SELECT "size" FROM "notable_organs" WHERE "date">2000;
```
## Task
Generate a SQL query to answer the following question:
`Name the country that has mänttä`

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

CREATE TABLE "notable_organs" (
  "date" real,
  "country" text,
  "place" text,
  "building" text,
  "size" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country that has mänttä`:
```sql
                SELECT "country" FROM "notable_organs" WHERE "place"='mänttä';
```
## Task
Generate a SQL query to answer the following question:
`What round was Nick Gillis?`

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

CREATE TABLE "1997_draft_picks" (
  "round" real,
  "overall" real,
  "player" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was Nick Gillis?`:
```sql
                SELECT "round" FROM "1997_draft_picks" WHERE "player"='nick gillis';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance to funao?`

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

CREATE TABLE "station_list" (
  "station" text,
  "japanese" text,
  "distance_km" real,
  "rapid" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance to funao?`:
```sql
                SELECT "distance_km" FROM "station_list" WHERE "station"='funao';
```
## Task
Generate a SQL query to answer the following question:
`What station has a Rapid of ↑, is 3.4 km away, and has a Japanese title of 下鴨生?`

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

CREATE TABLE "station_list" (
  "station" text,
  "japanese" text,
  "distance_km" real,
  "rapid" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What station has a Rapid of ↑, is 3.4 km away, and has a Japanese title of 下鴨生?`:
```sql
                SELECT "station" FROM "station_list" WHERE "rapid"='↑' AND "distance_km">3.4 AND "japanese"='下鴨生';
```
## Task
Generate a SQL query to answer the following question:
`What location is less than 7.1 km away, and has a Rapid of ●?`

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

CREATE TABLE "station_list" (
  "station" text,
  "japanese" text,
  "distance_km" real,
  "rapid" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location is less than 7.1 km away, and has a Rapid of ●?`:
```sql
                SELECT "location" FROM "station_list" WHERE "distance_km"<7.1 AND "rapid"='●';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the father who was born in 1204 and married ottokar ii?`

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

CREATE TABLE "queens_of_bohemia" (
  "father" text,
  "birth" text,
  "marriage" text,
  "became_queen" text,
  "ceased_to_be_queen" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the father who was born in 1204 and married ottokar ii?`:
```sql
                SELECT "father" FROM "queens_of_bohemia" WHERE "spouse"='ottokar ii' AND "birth"='1204';
```
## Task
Generate a SQL query to answer the following question:
`What is the birth date of the woman who ceased to be Queen on 18 Jun 1297?`

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

CREATE TABLE "queens_of_bohemia" (
  "father" text,
  "birth" text,
  "marriage" text,
  "became_queen" text,
  "ceased_to_be_queen" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birth date of the woman who ceased to be Queen on 18 Jun 1297?`:
```sql
                SELECT "birth" FROM "queens_of_bohemia" WHERE "ceased_to_be_queen"='18 jun 1297';
```
## Task
Generate a SQL query to answer the following question:
`Leopold VI, Duke of Austria is the father-in-law of which person?`

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

CREATE TABLE "queens_of_bohemia" (
  "father" text,
  "birth" text,
  "marriage" text,
  "became_queen" text,
  "ceased_to_be_queen" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Leopold VI, Duke of Austria is the father-in-law of which person?`:
```sql
                SELECT "spouse" FROM "queens_of_bohemia" WHERE "father"='leopold vi, duke of austria';
```
## Task
Generate a SQL query to answer the following question:
`What is the birth date of the person who died on 18 October 1335?`

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

CREATE TABLE "queens_of_bohemia" (
  "father" text,
  "birth" text,
  "marriage" text,
  "became_queen" text,
  "ceased_to_be_queen" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birth date of the person who died on 18 October 1335?`:
```sql
                SELECT "birth" FROM "queens_of_bohemia" WHERE "death"='18 october 1335';
```
## Task
Generate a SQL query to answer the following question:
`When did the person who died on 6 Dec 1240 get married?`

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

CREATE TABLE "queens_of_bohemia" (
  "father" text,
  "birth" text,
  "marriage" text,
  "became_queen" text,
  "ceased_to_be_queen" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the person who died on 6 Dec 1240 get married?`:
```sql
                SELECT "marriage" FROM "queens_of_bohemia" WHERE "death"='6 dec 1240';
```
## Task
Generate a SQL query to answer the following question:
`What time/retired for a grid less than 19, under 21 laps, and made by aprilia?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What time/retired for a grid less than 19, under 21 laps, and made by aprilia?`:
```sql
                SELECT "time_retired" FROM "250cc_classification" WHERE "grid"<19 AND "manufacturer"='aprilia' AND "laps"<21;
```
## Task
Generate a SQL query to answer the following question:
`What is the grid for dirk heidolf?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid for dirk heidolf?`:
```sql
                SELECT SUM("grid") FROM "250cc_classification" WHERE "rider"='dirk heidolf';
```
## Task
Generate a SQL query to answer the following question:
`What away team plays at Victoria Park?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team plays at Victoria Park?`:
```sql
                SELECT "away_team" FROM "round_11" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`How many caps does stephen hoiles have?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many caps does stephen hoiles have?`:
```sql
                SELECT SUM("caps") FROM "2007_rugby_world_cup_squads" WHERE "player"='stephen hoiles';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Home team of st kilda?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Home team of st kilda?`:
```sql
                SELECT "date" FROM "round_20" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team has an Away team score of 13.22 (100)?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Away team has an Away team score of 13.22 (100)?`:
```sql
                SELECT "away_team" FROM "round_20" WHERE "away_team_score"='13.22 (100)';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has an Away team of footscray?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has an Away team of footscray?`:
```sql
                SELECT "venue" FROM "round_20" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`Which Crowd has a Home team of geelong?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Crowd has a Home team of geelong?`:
```sql
                SELECT "crowd" FROM "round_20" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the most silver medals a team with 3 total medals and less than 1 bronze has?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most silver medals a team with 3 total medals and less than 1 bronze has?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "total"=3 AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of silver medals a team with less than 0 gold medals has?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of silver medals a team with less than 0 gold medals has?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the most bronze a team with more than 2 silvers has?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most bronze a team with more than 2 silvers has?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "silver">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "gold"=1 AND "silver">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the draw number that has 59 points?`

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

CREATE TABLE "melodifestivalen_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the draw number that has 59 points?`:
```sql
                SELECT AVG("draw") FROM "melodifestivalen_1999" WHERE "points"=59;
```
## Task
Generate a SQL query to answer the following question:
`What place for roger pontare?`

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

CREATE TABLE "melodifestivalen_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place for roger pontare?`:
```sql
                SELECT "place" FROM "melodifestivalen_1999" WHERE "artist"='roger pontare';
```
## Task
Generate a SQL query to answer the following question:
`What song has draw number less than 2?`

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

CREATE TABLE "melodifestivalen_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What song has draw number less than 2?`:
```sql
                SELECT "song" FROM "melodifestivalen_1999" WHERE "draw"<2;
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when Essendon played as the home team?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when Essendon played as the home team?`:
```sql
                SELECT COUNT("crowd") FROM "round_14" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Who played the home team at Windy Hill?`

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

CREATE TABLE "round_14" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played the home team at Windy Hill?`:
```sql
                SELECT "home_team" FROM "round_14" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that had a decision of wall?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game that had a decision of wall?`:
```sql
                SELECT "date" FROM "game_log" WHERE "decision"='wall';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?`:
```sql
                SELECT "circuit" FROM "season_review" WHERE "pole_position"='jack brabham' AND "fastest_lap"='graham hill';
```
## Task
Generate a SQL query to answer the following question:
`What race contains the Monaco circuit?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race contains the Monaco circuit?`:
```sql
                SELECT "race" FROM "season_review" WHERE "circuit"='monaco';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?`:
```sql
                SELECT "date" FROM "season_review" WHERE "pole_position"='jack brabham' AND "circuit"='spa-francorchamps';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the circuit when Phil Hill has the fastest lap?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the circuit when Phil Hill has the fastest lap?`:
```sql
                SELECT "circuit" FROM "season_review" WHERE "fastest_lap"='phil hill';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?`:
```sql
                SELECT SUM("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='peter andersson' AND "pick_num"<143;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?`:
```sql
                SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='anton rodin' AND "reg_gp"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total pick# played by Anton Rodin with a Reg GP over 0?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total pick# played by Anton Rodin with a Reg GP over 0?`:
```sql
                SELECT COUNT("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='anton rodin' AND "reg_gp">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest grid that has over 67 laps with stefan bellof driving?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest grid that has over 67 laps with stefan bellof driving?`:
```sql
                SELECT MIN("grid") FROM "classification" WHERE "laps">67 AND "driver"='stefan bellof';
```
## Task
Generate a SQL query to answer the following question:
`How many laps have a grid under 14 and a time/retired of out of fuel?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have a grid under 14 and a time/retired of out of fuel?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "grid"<14 AND "time_retired"='out of fuel';
```
## Task
Generate a SQL query to answer the following question:
`Who drove the renault that went over 23 laps and had a grid under 11?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove the renault that went over 23 laps and had a grid under 11?`:
```sql
                SELECT "driver" FROM "classification" WHERE "grid"<11 AND "constructor"='renault' AND "laps">23;
```
## Task
Generate a SQL query to answer the following question:
`What is the average NGC number that has a Apparent magnitude greater than 14.2?`

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

CREATE TABLE "5901_6000" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average NGC number that has a Apparent magnitude greater than 14.2?`:
```sql
                SELECT AVG("ngc_number") FROM "5901_6000" WHERE "apparent_magnitude">14.2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?`

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

CREATE TABLE "5901_6000" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?`:
```sql
                SELECT MAX("ngc_number") FROM "5901_6000" WHERE "declination_j2000"='°04′58″' AND "apparent_magnitude">7.3;
```
## Task
Generate a SQL query to answer the following question:
`What Constellation has a Object type of globular cluster and a NGC number of 5986?`

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

CREATE TABLE "5901_6000" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Constellation has a Object type of globular cluster and a NGC number of 5986?`:
```sql
                SELECT "constellation" FROM "5901_6000" WHERE "object_type"='globular cluster' AND "ngc_number"=5986;
```
## Task
Generate a SQL query to answer the following question:
`For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "club" text,
  "gold" real,
  "big_silver" real,
  "small_silver" real,
  "bronze" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "points"<5 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "club" text,
  "gold" real,
  "big_silver" real,
  "small_silver" real,
  "bronze" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?`:
```sql
                SELECT AVG("points") FROM "medal_table" WHERE "small_silver">9 AND "club"='aik' AND "bronze">8;
```
## Task
Generate a SQL query to answer the following question:
`How many points did landskrona bois get when they were ranked below 18?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "club" text,
  "gold" real,
  "big_silver" real,
  "small_silver" real,
  "bronze" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did landskrona bois get when they were ranked below 18?`:
```sql
                SELECT COUNT("points") FROM "medal_table" WHERE "club"='landskrona bois' AND "rank"<18;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for game 5?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for game 5?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "game"=5;
```
## Task
Generate a SQL query to answer the following question:
`Name the team for pick more than 30 and position of c with round more than 4`

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

CREATE TABLE "other_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for pick more than 30 and position of c with round more than 4`:
```sql
                SELECT "team" FROM "other_picks" WHERE "pick">30 AND "position"='c' AND "round">4;
```
## Task
Generate a SQL query to answer the following question:
`What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?`

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

CREATE TABLE "internal_representation" (
  "type" text,
  "sign" real,
  "exponent" real,
  "significand" real,
  "total_bits" real,
  "exponent_bias" real,
  "bits_precision" real,
  "number_of_decimal_digits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?`:
```sql
                SELECT "number_of_decimal_digits" FROM "internal_representation" WHERE "total_bits">32 AND "exponent"<15;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits?`

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

CREATE TABLE "internal_representation" (
  "type" text,
  "sign" real,
  "exponent" real,
  "significand" real,
  "total_bits" real,
  "exponent_bias" real,
  "bits_precision" real,
  "number_of_decimal_digits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits?`:
```sql
                SELECT COUNT("significand") FROM "internal_representation" WHERE "number_of_decimal_digits"='~34.0' AND "total_bits">128;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of significand with ~34.0 decimal digits and an exponent bias larger than 16383?`

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

CREATE TABLE "internal_representation" (
  "type" text,
  "sign" real,
  "exponent" real,
  "significand" real,
  "total_bits" real,
  "exponent_bias" real,
  "bits_precision" real,
  "number_of_decimal_digits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of significand with ~34.0 decimal digits and an exponent bias larger than 16383?`:
```sql
                SELECT SUM("significand") FROM "internal_representation" WHERE "number_of_decimal_digits"='~34.0' AND "exponent_bias">16383;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of sign with an exponent bias less than 1023, ~3.3 decimal digits, and less than 11 bits precision?`

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

CREATE TABLE "internal_representation" (
  "type" text,
  "sign" real,
  "exponent" real,
  "significand" real,
  "total_bits" real,
  "exponent_bias" real,
  "bits_precision" real,
  "number_of_decimal_digits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of sign with an exponent bias less than 1023, ~3.3 decimal digits, and less than 11 bits precision?`:
```sql
                SELECT SUM("sign") FROM "internal_representation" WHERE "exponent_bias"<1023 AND "number_of_decimal_digits"='~3.3' AND "bits_precision"<11;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits?`

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

CREATE TABLE "internal_representation" (
  "type" text,
  "sign" real,
  "exponent" real,
  "significand" real,
  "total_bits" real,
  "exponent_bias" real,
  "bits_precision" real,
  "number_of_decimal_digits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits?`:
```sql
                SELECT SUM("sign") FROM "internal_representation" WHERE "bits_precision">53 AND "type"='double extended (80-bit)' AND "total_bits">80;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest bits precision when the total bits are less than 16?`

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

CREATE TABLE "internal_representation" (
  "type" text,
  "sign" real,
  "exponent" real,
  "significand" real,
  "total_bits" real,
  "exponent_bias" real,
  "bits_precision" real,
  "number_of_decimal_digits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest bits precision when the total bits are less than 16?`:
```sql
                SELECT MIN("bits_precision") FROM "internal_representation" WHERE "total_bits"<16;
```
## Task
Generate a SQL query to answer the following question:
`How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?`

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

CREATE TABLE "player_win_loss_record" (
  "player" text,
  "total_win_loss" text,
  "singles_win_loss" text,
  "doubles_win_loss" text,
  "no_of_ties" real,
  "first_year_played" real,
  "years_played" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?`:
```sql
                SELECT SUM("years_played") FROM "player_win_loss_record" WHERE "singles_win_loss"='4-9' AND "first_year_played"<1999;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest game number with a record of 12-8-1?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest game number with a record of 12-8-1?`:
```sql
                SELECT MAX("game") FROM "schedule_and_results" WHERE "record"='12-8-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when the decision was valiquette on November 23?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the decision was valiquette on November 23?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "decision"='valiquette' AND "november"=23;
```
## Task
Generate a SQL query to answer the following question:
`I want the driver for Laps more than 8 and ferrari with Grid of 8`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the driver for Laps more than 8 and ferrari with Grid of 8`:
```sql
                SELECT "driver" FROM "race" WHERE "laps">8 AND "constructor"='ferrari' AND "grid"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which title has the Translation of vesoul?`

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

CREATE TABLE "track_listing" (
  "track" real,
  "title" text,
  "translation" text,
  "composer" text,
  "recorded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title has the Translation of vesoul?`:
```sql
                SELECT "title" FROM "track_listing" WHERE "translation"='vesoul';
```
## Task
Generate a SQL query to answer the following question:
`What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?`

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

CREATE TABLE "1990s" (
  "year" text,
  "winner_and_nominees" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?`:
```sql
                SELECT "original_title" FROM "1990s" WHERE "year"='1996 (11th)' AND "winner_and_nominees"='breaking the waves';
```
## Task
Generate a SQL query to answer the following question:
`What is the original title for the winner and nominees 'Secrets & Lies'?`

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

CREATE TABLE "1990s" (
  "year" text,
  "winner_and_nominees" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original title for the winner and nominees 'Secrets & Lies'?`:
```sql
                SELECT "original_title" FROM "1990s" WHERE "winner_and_nominees"='secrets & lies';
```
## Task
Generate a SQL query to answer the following question:
`The winner and nominee 'Hidden Agenda' is from which country?`

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

CREATE TABLE "1990s" (
  "year" text,
  "winner_and_nominees" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `The winner and nominee 'Hidden Agenda' is from which country?`:
```sql
                SELECT "country" FROM "1990s" WHERE "winner_and_nominees"='hidden agenda';
```
## Task
Generate a SQL query to answer the following question:
`What is the total amount of freight produced of u28c?`

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

CREATE TABLE "general_electric" (
  "prr_class" text,
  "builder_s_model" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "service" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of freight produced of u28c?`:
```sql
                SELECT "total_produced" FROM "general_electric" WHERE "service"='freight' AND "builder_s_model"='u28c';
```
## Task
Generate a SQL query to answer the following question:
`What is the build date for PRR Class gf30a?`

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

CREATE TABLE "general_electric" (
  "prr_class" text,
  "builder_s_model" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "service" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the build date for PRR Class gf30a?`:
```sql
                SELECT "build_date" FROM "general_electric" WHERE "prr_class"='gf30a';
```
## Task
Generate a SQL query to answer the following question:
`What is the PRR class for wheel arrangement c-c and total less than 15?`

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

CREATE TABLE "general_electric" (
  "prr_class" text,
  "builder_s_model" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "service" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the PRR class for wheel arrangement c-c and total less than 15?`:
```sql
                SELECT "prr_class" FROM "general_electric" WHERE "wheel_arrangement"='c-c' AND "total_produced"<15;
```
## Task
Generate a SQL query to answer the following question:
`What was the model for PRR class of gf28a freight?`

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

CREATE TABLE "general_electric" (
  "prr_class" text,
  "builder_s_model" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "service" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the model for PRR class of gf28a freight?`:
```sql
                SELECT "builder_s_model" FROM "general_electric" WHERE "service"='freight' AND "prr_class"='gf28a';
```
## Task
Generate a SQL query to answer the following question:
`Who got 189,524 votes?`

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

CREATE TABLE "1961" (
  "1961_democratic_primary" text,
  "manhattan" text,
  "the_bronx" text,
  "brooklyn" text,
  "queens" text,
  "richmond_staten_is" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who got 189,524 votes?`:
```sql
                SELECT "queens" FROM "1961" WHERE "manhattan"='189,524';
```
## Task
Generate a SQL query to answer the following question:
`Which owner has the frequency of 103.3 FM?`

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

CREATE TABLE "fm" (
  "frequency" text,
  "call_sign" text,
  "name" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which owner has the frequency of 103.3 FM?`:
```sql
                SELECT "owner" FROM "fm" WHERE "frequency"='103.3 fm';
```
## Task
Generate a SQL query to answer the following question:
`What is the call sign of the Classic Country Music station?`

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

CREATE TABLE "fm" (
  "frequency" text,
  "call_sign" text,
  "name" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the call sign of the Classic Country Music station?`:
```sql
                SELECT "call_sign" FROM "fm" WHERE "format"='classic country';
```
## Task
Generate a SQL query to answer the following question:
`Which owner has the call sign of KDSU?`

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

CREATE TABLE "fm" (
  "frequency" text,
  "call_sign" text,
  "name" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which owner has the call sign of KDSU?`:
```sql
                SELECT "name" FROM "fm" WHERE "call_sign"='kdsu';
```
## Task
Generate a SQL query to answer the following question:
`What is the call sign for Thunder 106.1?`

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

CREATE TABLE "fm" (
  "frequency" text,
  "call_sign" text,
  "name" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the call sign for Thunder 106.1?`:
```sql
                SELECT "call_sign" FROM "fm" WHERE "name"='thunder 106.1';
```
## Task
Generate a SQL query to answer the following question:
`Which owner has a Contemporary Christian music station on 97.9 FM?`

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

CREATE TABLE "fm" (
  "frequency" text,
  "call_sign" text,
  "name" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which owner has a Contemporary Christian music station on 97.9 FM?`:
```sql
                SELECT "name" FROM "fm" WHERE "format"='contemporary christian music' AND "frequency"='97.9 fm';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer in the game where the visiting team was the Pistons?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer in the game where the visiting team was the Pistons?`:
```sql
                SELECT "leading_scorer" FROM "january" WHERE "visitor"='pistons';
```