cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the lowest swimsuit score where the contestant scored less than 8.56 in the interview and greater than 8.54 in the evening gown?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest swimsuit score where the contestant scored less than 8.56 in the interview and greater than 8.54 in the evening gown?`:
```sql
                SELECT MIN("swimsuit") FROM "preliminary_competition" WHERE "interview"<8.56 AND "evening_gown">8.54;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2?`:
```sql
                SELECT SUM("evening_gown") FROM "preliminary_competition" WHERE "interview"<8.77 AND "swimsuit"=7.8 AND "average"<8.2;
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game that has a tie number of 13?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game that has a tie number of 13?`:
```sql
                SELECT SUM("attendance") FROM "second_round_proper" WHERE "tie_no"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance when the Forest Green Rovers is the away team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance when the Forest Green Rovers is the away team?`:
```sql
                SELECT AVG("attendance") FROM "second_round_proper" WHERE "away_team"='forest green rovers';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid number for troy corser with under 22 laps?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid number for troy corser with under 22 laps?`:
```sql
                SELECT SUM("grid") FROM "superbike_race_2_classification" WHERE "rider"='troy corser' AND "laps"<22;
```
## Task
Generate a SQL query to answer the following question:
`What rider went under 22 laps with grid number 2?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rider went under 22 laps with grid number 2?`:
```sql
                SELECT "rider" FROM "superbike_race_2_classification" WHERE "laps"<22 AND "grid"=2;
```
## Task
Generate a SQL query to answer the following question:
`What country speaks Vietnamese?`

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

CREATE TABLE "franchise_index" (
  "country_region" text,
  "languages" text,
  "premiere" text,
  "seasons" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country speaks Vietnamese?`:
```sql
                SELECT "country_region" FROM "franchise_index" WHERE "languages"='vietnamese';
```
## Task
Generate a SQL query to answer the following question:
`What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28?`

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

CREATE TABLE "lightweight_manx_grand_prix" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28?`:
```sql
                SELECT COUNT("rank") FROM "lightweight_manx_grand_prix" WHERE "team"='250cc honda' AND "time"='1:27.57.28';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the constructor for 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 `Tell me the constructor for grid of 8`:
```sql
                SELECT "constructor" FROM "race" WHERE "grid"=8;
```
## Task
Generate a SQL query to answer the following question:
`I want the total number of Grids for heinz-harald frentzen`

### 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 total number of Grids for heinz-harald frentzen`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "driver"='heinz-harald frentzen';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Fitzroy have a home team score of 8.13 (61)?`

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

CREATE TABLE "round_9" (
  "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 `On what date did Fitzroy have a home team score of 8.13 (61)?`:
```sql
                SELECT "date" FROM "round_9" WHERE "home_team_score"='8.13 (61)';
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd for the home team of North Melbourne?`

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

CREATE TABLE "round_9" (
  "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 average crowd for the home team of North Melbourne?`:
```sql
                SELECT AVG("crowd") FROM "round_9" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team on 12 March 2008?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team on 12 March 2008?`:
```sql
                SELECT "visitor" FROM "march" WHERE "date"='12 march 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team where Trail Blazers were the visitor?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team where Trail Blazers were the visitor?`:
```sql
                SELECT "home" FROM "march" WHERE "visitor"='trail blazers';
```
## Task
Generate a SQL query to answer the following question:
`In the game on 11 March 2008 with a visiting team of Bucks, who was the home team?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the game on 11 March 2008 with a visiting team of Bucks, who was the home team?`:
```sql
                SELECT "home" FROM "march" WHERE "visitor"='bucks' AND "date"='11 march 2008';
```
## Task
Generate a SQL query to answer the following question:
`How many laps for robin montgomerie-charrington, and a Grid smaller than 15?`

### 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 `How many laps for robin montgomerie-charrington, and a Grid smaller than 15?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "driver"='robin montgomerie-charrington' AND "grid"<15;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of totals with no silvers and a bronze number less than 0?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "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 mean number of totals with no silvers and a bronze number less than 0?`:
```sql
                SELECT AVG("total") FROM "medal_count" WHERE "silver"=0 AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "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 number of Silvers with a ranking of less than 4 where the bronze number was larger than 9?`:
```sql
                SELECT MIN("silver") FROM "medal_count" WHERE "rank"<4 AND "bronze">9;
```
## Task
Generate a SQL query to answer the following question:
`Which mean rank had a silver number smaller than 0?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which mean rank had a silver number smaller than 0?`:
```sql
                SELECT AVG("rank") FROM "medal_count" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the least total number with a rank of 4 and a total silver number bigger than 3?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "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 total number with a rank of 4 and a total silver number bigger than 3?`:
```sql
                SELECT MIN("total") FROM "medal_count" WHERE "rank"=4 AND "silver">3;
```
## Task
Generate a SQL query to answer the following question:
`Name the category for 2nd melon music awards`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the category for 2nd melon music awards`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "award"='2nd melon music awards';
```
## Task
Generate a SQL query to answer the following question:
`Name the award won in the hall of fame`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the award won in the hall of fame`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "result"='won' AND "category"='hall of fame';
```
## Task
Generate a SQL query to answer the following question:
`Name the nomination in 2011 that won`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nomination in 2011 that won`:
```sql
                SELECT "nomination" FROM "awards_and_nominations" WHERE "year"=2011 AND "result"='won';
```
## Task
Generate a SQL query to answer the following question:
`Name the result in 2010 for bgm cyworld`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result in 2010 for bgm cyworld`:
```sql
                SELECT "result" FROM "awards_and_nominations" WHERE "year"=2010 AND "award"='bgm cyworld';
```
## Task
Generate a SQL query to answer the following question:
`What is the car # of the Chevrolet that complete 363 laps?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "car_num" real,
  "make" text,
  "points" real,
  "laps" real,
  "winnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the car # of the Chevrolet that complete 363 laps?`:
```sql
                SELECT COUNT("car_num") FROM "race_results" WHERE "make"='chevrolet' AND "laps"=363;
```
## Task
Generate a SQL query to answer the following question:
`How many points did the driver who won $127,541 driving car #31 get?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "car_num" real,
  "make" text,
  "points" real,
  "laps" real,
  "winnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the driver who won $127,541 driving car #31 get?`:
```sql
                SELECT MAX("points") FROM "race_results" WHERE "winnings"='$127,541' AND "car_num">31;
```
## Task
Generate a SQL query to answer the following question:
`What is the english title of the film before 1999 with a role of kim da-rim?`

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

CREATE TABLE "filmography" (
  "year" real,
  "english_title" text,
  "korean_title" text,
  "romanization" text,
  "role" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the english title of the film before 1999 with a role of kim da-rim?`:
```sql
                SELECT "english_title" FROM "filmography" WHERE "year"<1999 AND "role"='kim da-rim';
```
## Task
Generate a SQL query to answer the following question:
`What English title for the Romanization of lee jae-su-eui nan?`

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

CREATE TABLE "filmography" (
  "year" real,
  "english_title" text,
  "korean_title" text,
  "romanization" text,
  "role" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What English title for the Romanization of lee jae-su-eui nan?`:
```sql
                SELECT "english_title" FROM "filmography" WHERE "romanization"='lee jae-su-eui nan';
```
## Task
Generate a SQL query to answer the following question:
`What is the Romanization for my old sweetheart?`

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

CREATE TABLE "filmography" (
  "year" real,
  "english_title" text,
  "korean_title" text,
  "romanization" text,
  "role" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Romanization for my old sweetheart?`:
```sql
                SELECT "romanization" FROM "filmography" WHERE "english_title"='my old sweetheart';
```
## Task
Generate a SQL query to answer the following question:
`What is the English of chae soo-yeon?`

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

CREATE TABLE "filmography" (
  "year" real,
  "english_title" text,
  "korean_title" text,
  "romanization" text,
  "role" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English of chae soo-yeon?`:
```sql
                SELECT "english_title" FROM "filmography" WHERE "role"='chae soo-yeon';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest high position for 10 years of hits, and over 870,000 sales?`

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

CREATE TABLE "top_40_albums_of_2004" (
  "position" real,
  "album_title" text,
  "artist" text,
  "highest_position" real,
  "sales" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest high position for 10 years of hits, and over 870,000 sales?`:
```sql
                SELECT MIN("highest_position") FROM "top_40_albums_of_2004" WHERE "album_title"='10 years of hits' AND "sales">'870,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the average high position for the album unwritten?`

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

CREATE TABLE "top_40_albums_of_2004" (
  "position" real,
  "album_title" text,
  "artist" text,
  "highest_position" real,
  "sales" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average high position for the album unwritten?`:
```sql
                SELECT AVG("highest_position") FROM "top_40_albums_of_2004" WHERE "album_title"='unwritten';
```
## Task
Generate a SQL query to answer the following question:
`When did the Grand Prix de Monaco race?`

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

CREATE TABLE "formula_one_2004_race_schedule" (
  "round" real,
  "race_title" text,
  "grand_prix" text,
  "circuit" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Grand Prix de Monaco race?`:
```sql
                SELECT "date" FROM "formula_one_2004_race_schedule" WHERE "race_title"='grand prix de monaco';
```
## Task
Generate a SQL query to answer the following question:
`What circuit had 16 rounds?`

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

CREATE TABLE "formula_one_2004_race_schedule" (
  "round" real,
  "race_title" text,
  "grand_prix" text,
  "circuit" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit had 16 rounds?`:
```sql
                SELECT "circuit" FROM "formula_one_2004_race_schedule" WHERE "round"=16;
```
## Task
Generate a SQL query to answer the following question:
`Which Grand Prix had 9 rounds?`

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

CREATE TABLE "formula_one_2004_race_schedule" (
  "round" real,
  "race_title" text,
  "grand_prix" text,
  "circuit" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grand Prix had 9 rounds?`:
```sql
                SELECT "grand_prix" FROM "formula_one_2004_race_schedule" WHERE "round"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the Base Fare in the senior/disabled category?`

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

CREATE TABLE "fares" (
  "fare_categories" text,
  "base_fares" text,
  "day_pass" text,
  "7_day_pass" text,
  "30_day_pass" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Base Fare in the senior/disabled category?`:
```sql
                SELECT "base_fares" FROM "fares" WHERE "fare_categories"='senior/disabled';
```
## Task
Generate a SQL query to answer the following question:
`Which 30-day Pass has a Base Fare of $3?`

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

CREATE TABLE "fares" (
  "fare_categories" text,
  "base_fares" text,
  "day_pass" text,
  "7_day_pass" text,
  "30_day_pass" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 30-day Pass has a Base Fare of $3?`:
```sql
                SELECT "30_day_pass" FROM "fares" WHERE "base_fares"='$3';
```
## Task
Generate a SQL query to answer the following question:
`What is the length for years 2012-2013?`

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

CREATE TABLE "bus_fleet" (
  "year" text,
  "make_model" text,
  "length" text,
  "engine_type" text,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length for years 2012-2013?`:
```sql
                SELECT "length" FROM "bus_fleet" WHERE "year"='2012-2013';
```
## Task
Generate a SQL query to answer the following question:
`If length is ft (m) with numbers of 6600-6684 (84 buses) for 2003, what is the engine type?`

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

CREATE TABLE "bus_fleet" (
  "year" text,
  "make_model" text,
  "length" text,
  "engine_type" text,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `If length is ft (m) with numbers of 6600-6684 (84 buses) for 2003, what is the engine type?`:
```sql
                SELECT "engine_type" FROM "bus_fleet" WHERE "length"='ft (m)' AND "year"='2003' AND "numbers"='6600-6684 (84 buses)';
```
## Task
Generate a SQL query to answer the following question:
`For numbers of 2600-2825 (223 buses), what is the length?`

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

CREATE TABLE "bus_fleet" (
  "year" text,
  "make_model" text,
  "length" text,
  "engine_type" text,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `For numbers of 2600-2825 (223 buses), what is the length?`:
```sql
                SELECT "length" FROM "bus_fleet" WHERE "numbers"='2600-2825 (223 buses)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lenth of a 2003 Make & Model of nabi 35-lfw?`

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

CREATE TABLE "bus_fleet" (
  "year" text,
  "make_model" text,
  "length" text,
  "engine_type" text,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lenth of a 2003 Make & Model of nabi 35-lfw?`:
```sql
                SELECT "length" FROM "bus_fleet" WHERE "year"='2003' AND "make_model"='nabi 35-lfw';
```
## Task
Generate a SQL query to answer the following question:
`What is the length for a diesel engine with numbers of tbd (13 buses)?`

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

CREATE TABLE "bus_fleet" (
  "year" text,
  "make_model" text,
  "length" text,
  "engine_type" text,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length for a diesel engine with numbers of tbd (13 buses)?`:
```sql
                SELECT "length" FROM "bus_fleet" WHERE "engine_type"='diesel' AND "numbers"='tbd (13 buses)';
```
## Task
Generate a SQL query to answer the following question:
`What year has a make & model of mci d4000n?`

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

CREATE TABLE "bus_fleet" (
  "year" text,
  "make_model" text,
  "length" text,
  "engine_type" text,
  "numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has a make & model of mci d4000n?`:
```sql
                SELECT "year" FROM "bus_fleet" WHERE "make_model"='mci d4000n';
```
## Task
Generate a SQL query to answer the following question:
`What type has a Date of 8 dec 16, and a Ship of duchess of cornwall?`

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

CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type has a Date of 8 dec 16, and a Ship of duchess of cornwall?`:
```sql
                SELECT "type" FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "date"='8 dec 16' AND "ship"='duchess of cornwall';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Tonnage GRT larger than 2,890, and a Ship of mount temple?`

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

CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Tonnage GRT larger than 2,890, and a Ship of mount temple?`:
```sql
                SELECT "nationality" FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "tonnage_grt">'2,890' AND "ship"='mount temple';
```
## Task
Generate a SQL query to answer the following question:
`Which nationality has a Ship of minteh?`

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

CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality has a Ship of minteh?`:
```sql
                SELECT "nationality" FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "ship"='minteh';
```
## Task
Generate a SQL query to answer the following question:
`What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway?`

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

CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway?`:
```sql
                SELECT SUM("tonnage_grt") FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "type"='cargo ship' AND "nationality"='norway';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Ship of hallbjorg?`

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

CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Ship of hallbjorg?`:
```sql
                SELECT "date" FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "ship"='hallbjorg';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of set 3 when the total is 45–31?`

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

CREATE TABLE "pool_e" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of set 3 when the total is 45–31?`:
```sql
                SELECT "set_3" FROM "pool_e" WHERE "total"='45–31';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for set 2 when set 3 was 15–6?`

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

CREATE TABLE "pool_e" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for set 2 when set 3 was 15–6?`:
```sql
                SELECT "set_2" FROM "pool_e" WHERE "set_3"='15–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the total when the score of set 1 was 15–11?`

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

CREATE TABLE "pool_e" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when the score of set 1 was 15–11?`:
```sql
                SELECT "total" FROM "pool_e" WHERE "set_1"='15–11';
```
## Task
Generate a SQL query to answer the following question:
`What is the total when the score of set 1 is 15–11?`

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

CREATE TABLE "pool_e" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when the score of set 1 is 15–11?`:
```sql
                SELECT "total" FROM "pool_e" WHERE "set_1"='15–11';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the total 25–45?`

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

CREATE TABLE "pool_e" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the total 25–45?`:
```sql
                SELECT "date" FROM "pool_e" WHERE "total"='25–45';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the Away team when the score of the Home team was 13.14 (92)?`

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

CREATE TABLE "round_7" (
  "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 score of the Away team when the score of the Home team was 13.14 (92)?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "home_team_score"='13.14 (92)';
```
## Task
Generate a SQL query to answer the following question:
`What was St Kilda's score as the Away team?`

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

CREATE TABLE "round_7" (
  "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 St Kilda's score as the Away team?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`At what Venue was the Home team score 17.19 (121)?`

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

CREATE TABLE "round_7" (
  "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 `At what Venue was the Home team score 17.19 (121)?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "home_team_score"='17.19 (121)';
```
## Task
Generate a SQL query to answer the following question:
`At the venue Vfl Park, what was the Home team score?`

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

CREATE TABLE "round_7" (
  "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 `At the venue Vfl Park, what was the Home team score?`:
```sql
                SELECT "home_team_score" FROM "round_7" WHERE "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`How many Reg GP does daniel rahimi have with a rd # greater than 3?`

### 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 `How many Reg GP does daniel rahimi have with a rd # greater than 3?`:
```sql
                SELECT COUNT("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='daniel rahimi' AND "rd_num">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Pick # with michael grabner and less than 20 Reg GP?`

### 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 lowest Pick # with michael grabner and less than 20 Reg GP?`:
```sql
                SELECT MIN("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='michael grabner' AND "reg_gp"<20;
```
## Task
Generate a SQL query to answer the following question:
`Which class has a peak named fountains fell south top?`

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

CREATE TABLE "southern_fells" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a peak named fountains fell south top?`:
```sql
                SELECT "class" FROM "southern_fells" WHERE "peak"='fountains fell south top';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of Prom in M for Peak great knoutberry hill?`

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

CREATE TABLE "southern_fells" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Prom in M for Peak great knoutberry hill?`:
```sql
                SELECT SUM("prom_m") FROM "southern_fells" WHERE "peak"='great knoutberry hill';
```
## Task
Generate a SQL query to answer the following question:
`What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth?`

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

CREATE TABLE "southern_fells" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth?`:
```sql
                SELECT AVG("height_m") FROM "southern_fells" WHERE "class"='hewitt' AND "prom_m"<86 AND "peak"='gragareth';
```
## Task
Generate a SQL query to answer the following question:
`In which movie is Selva Nambi a co-singer?`

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

CREATE TABLE "tamil_songs" (
  "year" real,
  "song_title" text,
  "movie" text,
  "music_director" text,
  "co_singers" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which movie is Selva Nambi a co-singer?`:
```sql
                SELECT "movie" FROM "tamil_songs" WHERE "co_singers"='selva nambi';
```
## Task
Generate a SQL query to answer the following question:
`Who was the music director in 1994?`

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

CREATE TABLE "tamil_songs" (
  "year" real,
  "song_title" text,
  "movie" text,
  "music_director" text,
  "co_singers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the music director in 1994?`:
```sql
                SELECT "music_director" FROM "tamil_songs" WHERE "year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`What years was Denis Lawson nominated for an award?`

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

CREATE TABLE "2008_london_revival" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years was Denis Lawson nominated for an award?`:
```sql
                SELECT COUNT("year") FROM "2008_london_revival" WHERE "nominee"='denis lawson';
```
## Task
Generate a SQL query to answer the following question:
`Did Jason Pennycooke win the award he was nominated for?`

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

CREATE TABLE "2008_london_revival" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did Jason Pennycooke win the award he was nominated for?`:
```sql
                SELECT "result" FROM "2008_london_revival" WHERE "nominee"='jason pennycooke';
```
## Task
Generate a SQL query to answer the following question:
`How many years was Best Musical Revival nominated?`

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

CREATE TABLE "2008_london_revival" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was Best Musical Revival nominated?`:
```sql
                SELECT COUNT("year") FROM "2008_london_revival" WHERE "nominee"='best musical revival';
```
## Task
Generate a SQL query to answer the following question:
`What award was Denis Lawson nominated for in the Best Actor in a Musical category?`

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

CREATE TABLE "2008_london_revival" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What award was Denis Lawson nominated for in the Best Actor in a Musical category?`:
```sql
                SELECT "award" FROM "2008_london_revival" WHERE "category"='best actor in a musical' AND "nominee"='denis lawson';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has an Outcome of winner, and a Date of 5 november 2011?`

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

CREATE TABLE "singles_6_4_titles_2_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has an Outcome of winner, and a Date of 5 november 2011?`:
```sql
                SELECT "opponent" FROM "singles_6_4_titles_2_runners_up" WHERE "outcome"='winner' AND "date"='5 november 2011';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Score of 4–6, 2–6?`

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

CREATE TABLE "singles_6_4_titles_2_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Score of 4–6, 2–6?`:
```sql
                SELECT "date" FROM "singles_6_4_titles_2_runners_up" WHERE "score"='4–6, 2–6';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Opponent of juan mónaco, and a Score of 6–2, 4–6, 7–6 (7–3)?`

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

CREATE TABLE "singles_6_4_titles_2_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Opponent of juan mónaco, and a Score of 6–2, 4–6, 7–6 (7–3)?`:
```sql
                SELECT "date" FROM "singles_6_4_titles_2_runners_up" WHERE "opponent"='juan mónaco' AND "score"='6–2, 4–6, 7–6 (7–3)';
```
## Task
Generate a SQL query to answer the following question:
`Which outcome has a Opponent of fernando verdasco?`

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

CREATE TABLE "singles_6_4_titles_2_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which outcome has a Opponent of fernando verdasco?`:
```sql
                SELECT "outcome" FROM "singles_6_4_titles_2_runners_up" WHERE "opponent"='fernando verdasco';
```
## Task
Generate a SQL query to answer the following question:
`Which surface has an Opponent of fernando verdasco?`

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

CREATE TABLE "singles_6_4_titles_2_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which surface has an Opponent of fernando verdasco?`:
```sql
                SELECT "surface" FROM "singles_6_4_titles_2_runners_up" WHERE "opponent"='fernando verdasco';
```
## Task
Generate a SQL query to answer the following question:
`Which surface has a Date of 5 november 2011?`

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

CREATE TABLE "singles_6_4_titles_2_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which surface has a Date of 5 november 2011?`:
```sql
                SELECT "surface" FROM "singles_6_4_titles_2_runners_up" WHERE "date"='5 november 2011';
```
## Task
Generate a SQL query to answer the following question:
`When the Venue was mcg what was the sum of all Crowds for that venue?`

### 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 the Venue was mcg what was the sum of all Crowds for that venue?`:
```sql
                SELECT SUM("crowd") FROM "round_16" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`If the Away team is essendon, what was the Date they played?`

### 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 `If the Away team is essendon, what was the Date they played?`:
```sql
                SELECT "date" FROM "round_16" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`On what Date did the Away team essendon play?`

### 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 `On what Date did the Away team essendon play?`:
```sql
                SELECT "date" FROM "round_16" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`When the Home team was north melbourne what was the Date of the 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 `When the Home team was north melbourne what was the Date of the game?`:
```sql
                SELECT "date" FROM "round_16" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the record as of September 1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record as of September 1?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='september 1';
```
## Task
Generate a SQL query to answer the following question:
`What was the losing score on September 1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the losing score on September 1?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='september 1';
```