cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the crowd size of the match featuring North Melbourne as the away team?`

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

CREATE TABLE "round_1" (
  "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 is the crowd size of the match featuring North Melbourne as the away team?`:
```sql
                SELECT MIN("crowd") FROM "round_1" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Name the team which has high rebounds of smith (10)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team which has high rebounds of smith (10)`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_rebounds"='smith (10)';
```
## Task
Generate a SQL query to answer the following question:
`What team was the home team against Melbourne?`

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

CREATE TABLE "round_18" (
  "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 team was the home team against Melbourne?`:
```sql
                SELECT "home_team" FROM "round_18" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score when the away team scored 13.17 (95)?`

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

CREATE TABLE "round_18" (
  "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 home team score when the away team scored 13.17 (95)?`:
```sql
                SELECT "home_team_score" FROM "round_18" WHERE "away_team_score"='13.17 (95)';
```
## Task
Generate a SQL query to answer the following question:
`Which team is Lake Oval home to?`

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

CREATE TABLE "round_3" (
  "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 team is Lake Oval home to?`:
```sql
                SELECT "home_team" FROM "round_3" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`What did the home team score when Carlton played as the Away team?`

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

CREATE TABLE "round_3" (
  "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 did the home team score when Carlton played as the Away team?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the home game for South Melbourne?`

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

CREATE TABLE "round_3" (
  "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 `How many people attended the home game for South Melbourne?`:
```sql
                SELECT SUM("crowd") FROM "round_3" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score at VFL Park?`

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

CREATE TABLE "round_3" (
  "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 home team score at VFL Park?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`How many grids have a Time/Retired of gearbox, and Laps smaller than 3?`

### 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 grids have a Time/Retired of gearbox, and Laps smaller than 3?`:
```sql
                SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='gearbox' AND "laps"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is masten gregory's average lap?`

### 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 masten gregory's average lap?`:
```sql
                SELECT AVG("laps") FROM "classification" WHERE "driver"='masten gregory';
```
## Task
Generate a SQL query to answer the following question:
`Which Time/Retired has a Grid of 2?`

### 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 `Which Time/Retired has a Grid of 2?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "grid"=2;
```
## Task
Generate a SQL query to answer the following question:
`When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?`

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

CREATE TABLE "championship_teams_and_drivers" (
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?`:
```sql
                SELECT "tyre" FROM "championship_teams_and_drivers" WHERE "rounds"='14-15' AND "engine"='ford cosworth dfv 3.0 v8' AND "chassis"='m23';
```
## Task
Generate a SQL query to answer the following question:
`Which driver uses the ts16 chassis?`

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

CREATE TABLE "championship_teams_and_drivers" (
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver uses the ts16 chassis?`:
```sql
                SELECT "driver" FROM "championship_teams_and_drivers" WHERE "chassis"='ts16';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team of the game on April 20?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team of the game on April 20?`:
```sql
                SELECT "home" FROM "playoffs" WHERE "date"='april 20';
```
## Task
Generate a SQL query to answer the following question:
`What is the series score of the game with Vancouver as the visiting team on April 16?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series score of the game with Vancouver as the visiting team on April 16?`:
```sql
                SELECT "series" FROM "playoffs" WHERE "visitor"='vancouver' AND "date"='april 16';
```
## Task
Generate a SQL query to answer the following question:
`What is the series score of the game on April 16?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series score of the game on April 16?`:
```sql
                SELECT "series" FROM "playoffs" WHERE "date"='april 16';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the away team for venue of western oval`

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

CREATE TABLE "round_4" (
  "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 `Tell me the away team for venue of western oval`:
```sql
                SELECT "away_team" FROM "round_4" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the away team score for 27 april 1974 and veue of mcg`

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

CREATE TABLE "round_4" (
  "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 `Tell me the away team score for 27 april 1974 and veue of mcg`:
```sql
                SELECT "away_team_score" FROM "round_4" WHERE "date"='27 april 1974' AND "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`I want to see the away team the has a home team of richmond`

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

CREATE TABLE "round_4" (
  "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 `I want to see the away team the has a home team of richmond`:
```sql
                SELECT "away_team" FROM "round_4" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What venue did group g play at on Mar 8, 1998?`

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

CREATE TABLE "official_competitions" (
  "competition" text,
  "stage" text,
  "venue" text,
  "date" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did group g play at on Mar 8, 1998?`:
```sql
                SELECT "venue" FROM "official_competitions" WHERE "stage"='group g' AND "date"='mar 8, 1998';
```
## Task
Generate a SQL query to answer the following question:
`Which stage was being played in Romania?`

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

CREATE TABLE "official_competitions" (
  "competition" text,
  "stage" text,
  "venue" text,
  "date" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage was being played in Romania?`:
```sql
                SELECT "stage" FROM "official_competitions" WHERE "venue"='romania';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the 1999 fifa world cup qualification (uefa) on Nov 23, 1997?`

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

CREATE TABLE "official_competitions" (
  "competition" text,
  "stage" text,
  "venue" text,
  "date" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the 1999 fifa world cup qualification (uefa) on Nov 23, 1997?`:
```sql
                SELECT "result" FROM "official_competitions" WHERE "competition"='1999 fifa world cup qualification (uefa)' AND "date"='nov 23, 1997';
```
## Task
Generate a SQL query to answer the following question:
`What was being played on Nov 23, 2006?`

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

CREATE TABLE "official_competitions" (
  "competition" text,
  "stage" text,
  "venue" text,
  "date" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was being played on Nov 23, 2006?`:
```sql
                SELECT "competition" FROM "official_competitions" WHERE "date"='nov 23, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest crowd at windy hill?`

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

CREATE TABLE "round_13" (
  "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 is the lowest crowd at windy hill?`:
```sql
                SELECT MIN("crowd") FROM "round_13" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What is the crowd with a Home team score of 8.17 (65)?`

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

CREATE TABLE "round_13" (
  "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 is the crowd with a Home team score of 8.17 (65)?`:
```sql
                SELECT AVG("crowd") FROM "round_13" WHERE "home_team_score"='8.17 (65)';
```
## Task
Generate a SQL query to answer the following question:
`What home team has an Away team score of 11.12 (78)?`

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

CREATE TABLE "round_13" (
  "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 home team has an Away team score of 11.12 (78)?`:
```sql
                SELECT "home_team_score" FROM "round_13" WHERE "away_team_score"='11.12 (78)';
```
## Task
Generate a SQL query to answer the following question:
`What date has a Crowd larger than 12,000, and an Away team score of 9.16 (70)?`

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

CREATE TABLE "round_13" (
  "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 date has a Crowd larger than 12,000, and an Away team score of 9.16 (70)?`:
```sql
                SELECT "date" FROM "round_13" WHERE "crowd">'12,000' AND "away_team_score"='9.16 (70)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest crowd with home team richmond?`

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

CREATE TABLE "round_13" (
  "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 is the lowest crowd with home team richmond?`:
```sql
                SELECT MIN("crowd") FROM "round_13" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Which home team  has an Away team score of 6.9 (45)?`

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

CREATE TABLE "round_13" (
  "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 6.9 (45)?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "away_team_score"='6.9 (45)';
```
## Task
Generate a SQL query to answer the following question:
`When there are more than 12 total medals and less than 5 gold medals, how many bronze medals are there?`

### 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 `When there are more than 12 total medals and less than 5 gold medals, how many bronze medals are there?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "total">12 AND "gold"<5;
```
## Task
Generate a SQL query to answer the following question:
`When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won?`

### 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 `When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='united states' AND "total">25;
```
## Task
Generate a SQL query to answer the following question:
`When the nation of poland had less than 17 medals but more than 1 gold medal, what's the Highest number of bronze medals?`

### 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 `When the nation of poland had less than 17 medals but more than 1 gold medal, what's the Highest number of bronze medals?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "total"<17 AND "nation"='poland' AND "gold">1;
```
## Task
Generate a SQL query to answer the following question:
`If there are more than 0 Silver medals, less than 5 gold medals, and no bronze medals, what was the total number of medals?`

### 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 `If there are more than 0 Silver medals, less than 5 gold medals, and no bronze medals, what was the total number of medals?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver">0 AND "gold"<5 AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of NGC that has a Declination ( J2000 ) of °15′55″, and an Apparent magnitude greater than 10?`

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

CREATE TABLE "6401_6500" (
  "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's the total number of NGC that has a Declination ( J2000 ) of °15′55″, and an Apparent magnitude greater than 10?`:
```sql
                SELECT SUM("ngc_number") FROM "6401_6500" WHERE "declination_j2000"='°15′55″' AND "apparent_magnitude">10;
```
## Task
Generate a SQL query to answer the following question:
`Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?`

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

CREATE TABLE "6401_6500" (
  "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 `Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?`:
```sql
                SELECT "object_type" FROM "6401_6500" WHERE "apparent_magnitude">9.6 AND "right_ascension_j2000"='17h59m02.0s';
```
## Task
Generate a SQL query to answer the following question:
`Which species of bacteria has 5,566 genes?`

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

CREATE TABLE "list_of_sequenced_bacterial_genomes" (
  "species" text,
  "strain" text,
  "type" text,
  "base_pairs" text,
  "genes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which species of bacteria has 5,566 genes?`:
```sql
                SELECT "strain" FROM "list_of_sequenced_bacterial_genomes" WHERE "genes"='5,566';
```
## Task
Generate a SQL query to answer the following question:
`What is the Strain name of Species Thiomicrospira crunogena?`

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

CREATE TABLE "list_of_sequenced_bacterial_genomes" (
  "species" text,
  "strain" text,
  "type" text,
  "base_pairs" text,
  "genes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Strain name of Species Thiomicrospira crunogena?`:
```sql
                SELECT "strain" FROM "list_of_sequenced_bacterial_genomes" WHERE "species"='thiomicrospira crunogena';
```
## Task
Generate a SQL query to answer the following question:
`Name the location of record 5-3`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location of record 5-3`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='5-3';
```
## Task
Generate a SQL query to answer the following question:
`What's the rank for a team that has a percentage of 56% and a loss smaller than 4?`

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

CREATE TABLE "current_standings" (
  "rank" real,
  "team" text,
  "loss" real,
  "sets_won" real,
  "sets_lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rank for a team that has a percentage of 56% and a loss smaller than 4?`:
```sql
                SELECT AVG("rank") FROM "current_standings" WHERE "percentage"='56%' AND "loss"<4;
```
## Task
Generate a SQL query to answer the following question:
`Name the average avg for TD's less than 3 for devin wyman and long more than 3`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average avg for TD's less than 3 for devin wyman and long more than 3`:
```sql
                SELECT AVG("avg") FROM "wide_receivers" WHERE "td_s"<3 AND "player"='devin wyman' AND "long">3;
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest yards for 34 long and avg less than 12.6`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest yards for 34 long and avg less than 12.6`:
```sql
                SELECT MIN("yards") FROM "wide_receivers" WHERE "long"=34 AND "avg"<12.6;
```
## Task
Generate a SQL query to answer the following question:
`What team is sponsored by chameleon sunglasses?`

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

CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
  "team" text,
  "make" text,
  "driver" text,
  "sponsor" text,
  "car_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is sponsored by chameleon sunglasses?`:
```sql
                SELECT "team" FROM "1983_nascar_winston_cup_series_drivers" WHERE "sponsor"='chameleon sunglasses';
```
## Task
Generate a SQL query to answer the following question:
`What team does bobby hillin jr. (r) drive a buick regal for?`

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

CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
  "team" text,
  "make" text,
  "driver" text,
  "sponsor" text,
  "car_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team does bobby hillin jr. (r) drive a buick regal for?`:
```sql
                SELECT "team" FROM "1983_nascar_winston_cup_series_drivers" WHERE "make"='buick regal' AND "driver"='bobby hillin jr. (r)';
```
## Task
Generate a SQL query to answer the following question:
`What team is sponsored by w.h. bolin?`

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

CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
  "team" text,
  "make" text,
  "driver" text,
  "sponsor" text,
  "car_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is sponsored by w.h. bolin?`:
```sql
                SELECT "team" FROM "1983_nascar_winston_cup_series_drivers" WHERE "sponsor"='w.h. bolin';
```
## Task
Generate a SQL query to answer the following question:
`Who drives for the sponsor w.h. bolin?`

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

CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
  "team" text,
  "make" text,
  "driver" text,
  "sponsor" text,
  "car_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who drives for the sponsor w.h. bolin?`:
```sql
                SELECT "driver" FROM "1983_nascar_winston_cup_series_drivers" WHERE "sponsor"='w.h. bolin';
```
## Task
Generate a SQL query to answer the following question:
`Who sponsors driver neil bonnett?`

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

CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
  "team" text,
  "make" text,
  "driver" text,
  "sponsor" text,
  "car_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who sponsors driver neil bonnett?`:
```sql
                SELECT "sponsor" FROM "1983_nascar_winston_cup_series_drivers" WHERE "driver"='neil bonnett';
```
## Task
Generate a SQL query to answer the following question:
`What channel has a description of the public broadcaster?`

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

CREATE TABLE "analogue_terrestrial_television" (
  "channel" text,
  "description" text,
  "financed_by" text,
  "owned_by" text,
  "launched" real
);
### SQL
Given the database schema, here is the SQL query that answers `What channel has a description of the public broadcaster?`:
```sql
                SELECT "channel" FROM "analogue_terrestrial_television" WHERE "description"='public broadcaster';
```
## Task
Generate a SQL query to answer the following question:
`What was the channel that was financed by commercials?`

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

CREATE TABLE "analogue_terrestrial_television" (
  "channel" text,
  "description" text,
  "financed_by" text,
  "owned_by" text,
  "launched" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the channel that was financed by commercials?`:
```sql
                SELECT "channel" FROM "analogue_terrestrial_television" WHERE "financed_by"='commercials';
```
## Task
Generate a SQL query to answer the following question:
`Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?`

### 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 `Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "constructor"='minardi - fondmetal' AND "driver"='marc gené' AND "grid">20;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66?`

### 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 `What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66?`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "laps">66 AND "driver"='michael schumacher';
```
## Task
Generate a SQL query to answer the following question:
`Which driver has 62 laps?`

### 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 `Which driver has 62 laps?`:
```sql
                SELECT "driver" FROM "race" WHERE "laps"=62;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?`

### 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 `What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?`:
```sql
                SELECT MAX("grid") FROM "race" WHERE "constructor"='mclaren - mercedes' AND "driver"='david coulthard' AND "laps"<66;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of laps for grid 17?`

### 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 `What is the highest number of laps for grid 17?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "grid"=17;
```
## Task
Generate a SQL query to answer the following question:
`None of the rounds has Roger Williamson as a driver.`

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

CREATE TABLE "championship_drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `None of the rounds has Roger Williamson as a driver.`:
```sql
                SELECT "rounds" FROM "championship_drivers_and_constructors" WHERE "driver"='roger williamson';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for alain prost?`

### 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 `What is the time/retired for alain prost?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "driver"='alain prost';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for grid 9?`

### 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 `What is the time/retired for grid 9?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"=9;
```
## Task
Generate a SQL query to answer the following question:
`Who had to retire due to suspension?`

### 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 `Who had to retire due to suspension?`:
```sql
                SELECT "driver" FROM "race" WHERE "time_retired"='suspension';
```
## Task
Generate a SQL query to answer the following question:
`What class is volleyball in 2000?`

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

CREATE TABLE "sports" (
  "sport" text,
  "year" real,
  "class" text,
  "coach" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class is volleyball in 2000?`:
```sql
                SELECT "class" FROM "sports" WHERE "sport"='volleyball' AND "year"=2000;
```
## Task
Generate a SQL query to answer the following question:
`What is the team's record in 3a volleyball?`

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

CREATE TABLE "sports" (
  "sport" text,
  "year" real,
  "class" text,
  "coach" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team's record in 3a volleyball?`:
```sql
                SELECT "record" FROM "sports" WHERE "class"='3a' AND "sport"='volleyball';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Melbourne's home game?`

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

CREATE TABLE "round_16" (
  "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 was the away team at Melbourne's home game?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team score at Corio Oval?`

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

CREATE TABLE "round_16" (
  "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 away team score at Corio Oval?`:
```sql
                SELECT "away_team_score" FROM "round_16" WHERE "venue"='corio oval';
```
## Task
Generate a SQL query to answer the following question:
`When did the away team score 12.14 (86)?`

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

CREATE TABLE "round_16" (
  "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 `When did the away team score 12.14 (86)?`:
```sql
                SELECT "date" FROM "round_16" WHERE "away_team_score"='12.14 (86)';
```
## Task
Generate a SQL query to answer the following question:
`Which Call Sign that has a Tail Code of oy belong to Weapon Systems Officer Capt Charles B. Debellevue?`

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

CREATE TABLE "mi_g_credits" (
  "date" text,
  "pilot" text,
  "weapon_systems_officer" text,
  "aircraft" text,
  "tail_code" text,
  "call_sign" text,
  "kill" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Call Sign that has a Tail Code of oy belong to Weapon Systems Officer Capt Charles B. Debellevue?`:
```sql
                SELECT "call_sign" FROM "mi_g_credits" WHERE "tail_code"='oy' AND "weapon_systems_officer"='capt charles b. debellevue';
```
## Task
Generate a SQL query to answer the following question:
`Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue?`

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

CREATE TABLE "mi_g_credits" (
  "date" text,
  "pilot" text,
  "weapon_systems_officer" text,
  "aircraft" text,
  "tail_code" text,
  "call_sign" text,
  "kill" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue?`:
```sql
                SELECT "tail_code" FROM "mi_g_credits" WHERE "weapon_systems_officer"='capt charles b. debellevue';
```
## Task
Generate a SQL query to answer the following question:
`Which Aircraft has the Call Sign Paula 01?`

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

CREATE TABLE "mi_g_credits" (
  "date" text,
  "pilot" text,
  "weapon_systems_officer" text,
  "aircraft" text,
  "tail_code" text,
  "call_sign" text,
  "kill" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Aircraft has the Call Sign Paula 01?`:
```sql
                SELECT "aircraft" FROM "mi_g_credits" WHERE "call_sign"='paula 01';
```
## Task
Generate a SQL query to answer the following question:
`Which Call Sign that has Tail Code ed?`

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

CREATE TABLE "mi_g_credits" (
  "date" text,
  "pilot" text,
  "weapon_systems_officer" text,
  "aircraft" text,
  "tail_code" text,
  "call_sign" text,
  "kill" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Call Sign that has Tail Code ed?`:
```sql
                SELECT "call_sign" FROM "mi_g_credits" WHERE "tail_code"='ed';
```
## Task
Generate a SQL query to answer the following question:
`Which aircraft Weapon Systems Officer Capt Charles B. Debellevue belongs on?`

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

CREATE TABLE "mi_g_credits" (
  "date" text,
  "pilot" text,
  "weapon_systems_officer" text,
  "aircraft" text,
  "tail_code" text,
  "call_sign" text,
  "kill" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which aircraft Weapon Systems Officer Capt Charles B. Debellevue belongs on?`:
```sql
                SELECT "aircraft" FROM "mi_g_credits" WHERE "weapon_systems_officer"='capt charles b. debellevue';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of wins of someone who has 2 losses?`

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

CREATE TABLE "2008_ladder" (
  "mid_gippsland_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of wins of someone who has 2 losses?`:
```sql
                SELECT MIN("wins") FROM "2008_ladder" WHERE "losses"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17?`

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

CREATE TABLE "2008_ladder" (
  "mid_gippsland_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17?`:
```sql
                SELECT MAX("wins") FROM "2008_ladder" WHERE "against">1249 AND "losses"<17;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of race that has a winning driver of Stirling moss and a Circuit of oulton park?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of race that has a winning driver of Stirling moss and a Circuit of oulton park?`:
```sql
                SELECT "race_name" FROM "non_championship_race_results" WHERE "winning_driver"='stirling moss' AND "circuit"='oulton park';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winning driver that has a construction of brm?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winning driver that has a construction of brm?`:
```sql
                SELECT "winning_driver" FROM "non_championship_race_results" WHERE "constructor"='brm';
```
## Task
Generate a SQL query to answer the following question:
`What is the high bronze total for nations ranked 12?`

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

CREATE TABLE "titles_by_country" (
  "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 high bronze total for nations ranked 12?`:
```sql
                SELECT MAX("bronze") FROM "titles_by_country" WHERE "rank"='12';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when Footscray scored 11.14 (80)?`

### 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 was the away team when Footscray scored 11.14 (80)?`:
```sql
                SELECT "away_team" FROM "round_14" WHERE "home_team_score"='11.14 (80)';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score on May 3, 1998?`

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

CREATE TABLE "pga_tour_wins_13" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score on May 3, 1998?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_13" WHERE "date"='may 3, 1998';
```
## Task
Generate a SQL query to answer the following question:
`What is the role of the aircraft that has a registration of s5-hpg s5-hpc?`

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

CREATE TABLE "helicopters" (
  "aircraft" text,
  "origin" text,
  "role" text,
  "registration" text,
  "number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the role of the aircraft that has a registration of s5-hpg s5-hpc?`:
```sql
                SELECT "role" FROM "helicopters" WHERE "registration"='s5-hpg s5-hpc';
```
## Task
Generate a SQL query to answer the following question:
`What is the country of origin of the aircraft with a registration s5-hpb?`

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

CREATE TABLE "helicopters" (
  "aircraft" text,
  "origin" text,
  "role" text,
  "registration" text,
  "number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country of origin of the aircraft with a registration s5-hpb?`:
```sql
                SELECT "origin" FROM "helicopters" WHERE "registration"='s5-hpb';
```
## Task
Generate a SQL query to answer the following question:
`What is the role of the aircraft that originates from the European Union?`

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

CREATE TABLE "helicopters" (
  "aircraft" text,
  "origin" text,
  "role" text,
  "registration" text,
  "number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the role of the aircraft that originates from the European Union?`:
```sql
                SELECT "role" FROM "helicopters" WHERE "origin"='european union';
```
## Task
Generate a SQL query to answer the following question:
`What is the role of the aircraft that has a registration of s5-hpb?`

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

CREATE TABLE "helicopters" (
  "aircraft" text,
  "origin" text,
  "role" text,
  "registration" text,
  "number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the role of the aircraft that has a registration of s5-hpb?`:
```sql
                SELECT "role" FROM "helicopters" WHERE "registration"='s5-hpb';
```
## Task
Generate a SQL query to answer the following question:
`Which Hometown has a Height of 6-10?`

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

CREATE TABLE "2010_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Hometown has a Height of 6-10?`:
```sql
                SELECT "hometown" FROM "2010_boys_team" WHERE "height"='6-10';
```