cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1?`

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

CREATE TABLE "pga_tour_results" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1?`:
```sql
                SELECT "best_finish" FROM "pga_tour_results" WHERE "money_list_rank"='n/a' AND "earnings">0 AND "cuts_made">1;
```
## Task
Generate a SQL query to answer the following question:
`how many times is the money list rank 221 and cuts more than 2?`

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

CREATE TABLE "pga_tour_results" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the money list rank 221 and cuts more than 2?`:
```sql
                SELECT COUNT("tournaments_played") FROM "pga_tour_results" WHERE "money_list_rank"='221' AND "cuts_made">2;
```
## Task
Generate a SQL query to answer the following question:
`what is the earliest year with the best finish t-65?`

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

CREATE TABLE "pga_tour_results" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the earliest year with the best finish t-65?`:
```sql
                SELECT MIN("year") FROM "pga_tour_results" WHERE "best_finish"='t-65';
```
## Task
Generate a SQL query to answer the following question:
`what is the average tournaments played when cuts made is 14?`

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

CREATE TABLE "pga_tour_results" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average tournaments played when cuts made is 14?`:
```sql
                SELECT AVG("tournaments_played") FROM "pga_tour_results" WHERE "cuts_made"=14;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest date of taking office for district 22?`

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

CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest date of taking office for district 22?`:
```sql
                SELECT MIN("took_office") FROM "senate" WHERE "district"=22;
```
## Task
Generate a SQL query to answer the following question:
`What district has a democratic leader from Roby?`

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

CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `What district has a democratic leader from Roby?`:
```sql
                SELECT SUM("district") FROM "senate" WHERE "party"='democratic' AND "home_town"='roby';
```
## Task
Generate a SQL query to answer the following question:
`What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988?`

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

CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988?`:
```sql
                SELECT MAX("district") FROM "senate" WHERE "party"='democratic' AND "senator"='steve carriker' AND "took_office">1988;
```
## Task
Generate a SQL query to answer the following question:
`How many series originally aired before 1999 with more than 7 episodes and a DVD Region 1 release date of 16 april 2013?`

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

CREATE TABLE "series" (
  "series_number" real,
  "number_of_episodes" real,
  "original_air_date" real,
  "dvd_region_2_release_date" text,
  "dvd_region_1_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many series originally aired before 1999 with more than 7 episodes and a DVD Region 1 release date of 16 april 2013?`:
```sql
                SELECT COUNT("series_number") FROM "series" WHERE "original_air_date"<1999 AND "number_of_episodes">7 AND "dvd_region_1_release_date"='16 april 2013';
```
## Task
Generate a SQL query to answer the following question:
`What's the latest original air date with more than 10 episodes and a DVD Region 2 release date of 23 april 2012?`

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

CREATE TABLE "series" (
  "series_number" real,
  "number_of_episodes" real,
  "original_air_date" real,
  "dvd_region_2_release_date" text,
  "dvd_region_1_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the latest original air date with more than 10 episodes and a DVD Region 2 release date of 23 april 2012?`:
```sql
                SELECT MAX("original_air_date") FROM "series" WHERE "dvd_region_2_release_date"='23 april 2012' AND "number_of_episodes">10;
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date of series number 10?`

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

CREATE TABLE "series" (
  "series_number" real,
  "number_of_episodes" real,
  "original_air_date" real,
  "dvd_region_2_release_date" text,
  "dvd_region_1_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of series number 10?`:
```sql
                SELECT AVG("original_air_date") FROM "series" WHERE "series_number"=10;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of the number of episodes that originally aired after 1991 with a series number smaller than 21 and a DVD Region 2 release date of 26 march 2012?`

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

CREATE TABLE "series" (
  "series_number" real,
  "number_of_episodes" real,
  "original_air_date" real,
  "dvd_region_2_release_date" text,
  "dvd_region_1_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of the number of episodes that originally aired after 1991 with a series number smaller than 21 and a DVD Region 2 release date of 26 march 2012?`:
```sql
                SELECT SUM("number_of_episodes") FROM "series" WHERE "original_air_date">1991 AND "series_number"<21 AND "dvd_region_2_release_date"='26 march 2012';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004?`

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

CREATE TABLE "series" (
  "series_number" real,
  "number_of_episodes" real,
  "original_air_date" real,
  "dvd_region_2_release_date" text,
  "dvd_region_1_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004?`:
```sql
                SELECT MIN("series_number") FROM "series" WHERE "original_air_date"<2009 AND "dvd_region_2_release_date"='26 july 2004' AND "number_of_episodes">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of bronze that has more silvers than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of bronze that has more silvers than 2?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "silver">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of Golds with more bronzes than 1 and totaled larger than 4?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Golds with more bronzes than 1 and totaled larger than 4?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">1 AND "total">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the least total that had more Bronzes than 1 and more silvers than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "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 that had more Bronzes than 1 and more silvers than 2?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "silver">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the least total that has fewer golds than 2, a higher rank than 4 and fewer bronzes than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "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 that has fewer golds than 2, a higher rank than 4 and fewer bronzes than 1?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "gold"<2 AND "rank"=4 AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lest amount of bronzes that ranked 2 and has less silvers than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lest amount of bronzes that ranked 2 and has less silvers than 0?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "rank"=2 AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many Total(s) are there, when the number of Bronze is greater than 13, when the Rank is 8, and when the number of Silver is less than 11?`

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

CREATE TABLE "medal_count" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Total(s) are there, when the number of Bronze is greater than 13, when the Rank is 8, and when the number of Silver is less than 11?`:
```sql
                SELECT COUNT("total") FROM "medal_count" WHERE "bronze">13 AND "rank"='8' AND "silver"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the Nation, when the number of Bronze is less than 17, and when the number of Gold is less than 16?`

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

CREATE TABLE "medal_count" (
  "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 Nation, when the number of Bronze is less than 17, and when the number of Gold is less than 16?`:
```sql
                SELECT "nation" FROM "medal_count" WHERE "bronze"<17 AND "gold"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of Silver, when the Nation is Japan (JPN), and when the Total is greater than 37?`

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

CREATE TABLE "medal_count" (
  "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 highest number of Silver, when the Nation is Japan (JPN), and when the Total is greater than 37?`:
```sql
                SELECT MAX("silver") FROM "medal_count" WHERE "nation"='japan (jpn)' AND "total">37;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37?`

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

CREATE TABLE "medal_count" (
  "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 lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37?`:
```sql
                SELECT MIN("gold") FROM "medal_count" WHERE "bronze"<36 AND "rank"='2' AND "silver"<37;
```
## Task
Generate a SQL query to answer the following question:
`What is Res., when Event is "FT 6 - Full Throttle 6"?`

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

CREATE TABLE "iscf_international_sport_combat_federati" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Res., when Event is "FT 6 - Full Throttle 6"?`:
```sql
                SELECT "res" FROM "iscf_international_sport_combat_federati" WHERE "event"='ft 6 - full throttle 6';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Event is "ISCF - Southeast Championships"?`

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

CREATE TABLE "iscf_international_sport_combat_federati" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Event is "ISCF - Southeast Championships"?`:
```sql
                SELECT "opponent" FROM "iscf_international_sport_combat_federati" WHERE "event"='iscf - southeast championships';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Record is "3-0"?`

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

CREATE TABLE "iscf_international_sport_combat_federati" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Record is "3-0"?`:
```sql
                SELECT "event" FROM "iscf_international_sport_combat_federati" WHERE "record"='3-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game against Chelsea when the league position is 14th?`

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

CREATE TABLE "match_details" (
  "date" text,
  "league_position" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game against Chelsea when the league position is 14th?`:
```sql
                SELECT "date" FROM "match_details" WHERE "opponents"='chelsea' AND "league_position"='14th';
```
## Task
Generate a SQL query to answer the following question:
`Which method had a time of 0:46?`

### 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 `Which method had a time of 0:46?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='0:46';
```
## Task
Generate a SQL query to answer the following question:
`In the fight against Brandon Bledsoe, how many rounds did the fight last?`

### 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 `In the fight against Brandon Bledsoe, how many rounds did the fight last?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='brandon bledsoe';
```
## Task
Generate a SQL query to answer the following question:
`What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader?`

### 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 `What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='ufc fight night: teixeira vs. bader';
```
## Task
Generate a SQL query to answer the following question:
`What was the maximum speed of the car with 1.556 cc capacity?`

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

CREATE TABLE "passenger_car_models" (
  "type" text,
  "construction_period" text,
  "cylinder" text,
  "capacity" text,
  "power" text,
  "vmax" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum speed of the car with 1.556 cc capacity?`:
```sql
                SELECT "vmax" FROM "passenger_car_models" WHERE "capacity"='1.556 cc';
```
## Task
Generate a SQL query to answer the following question:
`What was the maximum speed for straight-4, 1.466 cc Type r 150?`

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

CREATE TABLE "passenger_car_models" (
  "type" text,
  "construction_period" text,
  "cylinder" text,
  "capacity" text,
  "power" text,
  "vmax" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum speed for straight-4, 1.466 cc Type r 150?`:
```sql
                SELECT "vmax" FROM "passenger_car_models" WHERE "cylinder"='straight-4' AND "capacity"='1.466 cc' AND "type"='r 150';
```
## Task
Generate a SQL query to answer the following question:
`What was the maximum speed for the P4-1 (24/36 ps)?`

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

CREATE TABLE "passenger_car_models" (
  "type" text,
  "construction_period" text,
  "cylinder" text,
  "capacity" text,
  "power" text,
  "vmax" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum speed for the P4-1 (24/36 ps)?`:
```sql
                SELECT "vmax" FROM "passenger_car_models" WHERE "type"='p4-1 (24/36 ps)';
```
## Task
Generate a SQL query to answer the following question:
`What country is Jack Nicklaus from?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Jack Nicklaus from?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "player"='jack nicklaus';
```
## Task
Generate a SQL query to answer the following question:
`What was the To par for bill britton when he placed t7?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the To par for bill britton when he placed t7?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "place"='t7' AND "player"='bill britton';
```
## Task
Generate a SQL query to answer the following question:
`What was the To par of Jack Nicklaus?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the To par of Jack Nicklaus?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "player"='jack nicklaus';
```
## Task
Generate a SQL query to answer the following question:
`What country was the golfer from who had a money amount of 45,000?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the golfer from who had a money amount of 45,000?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "money"='45,000';
```
## Task
Generate a SQL query to answer the following question:
`What was the To par for United States golfer fred couples?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the To par for United States golfer fred couples?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "country"='united states' AND "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`what is the fate when the nationality is french and the ship is pierre lott?`

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

CREATE TABLE "table" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the fate when the nationality is french and the ship is pierre lott?`:
```sql
                SELECT "fate" FROM "table" WHERE "nationality"='french' AND "ship"='pierre lott';
```
## Task
Generate a SQL query to answer the following question:
`what is the ship with the date of 28.1.1915?`

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

CREATE TABLE "table" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the ship with the date of 28.1.1915?`:
```sql
                SELECT "ship" FROM "table" WHERE "date"='28.1.1915';
```
## Task
Generate a SQL query to answer the following question:
`what is the nationality when the ship is willerby?`

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

CREATE TABLE "table" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the nationality when the ship is willerby?`:
```sql
                SELECT "nationality" FROM "table" WHERE "ship"='willerby';
```
## Task
Generate a SQL query to answer the following question:
`what is the least tonnage grt when the nationality is british and the ship is kidalton?`

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

CREATE TABLE "table" (
  "date" text,
  "ship" text,
  "type" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least tonnage grt when the nationality is british and the ship is kidalton?`:
```sql
                SELECT MIN("tonnage_grt") FROM "table" WHERE "nationality"='british' AND "ship"='kidalton';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Season that has the Team 2 of hanoi acb?`

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

CREATE TABLE "results" (
  "season" real,
  "team_1" text,
  "score" text,
  "team_2" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Season that has the Team 2 of hanoi acb?`:
```sql
                SELECT "season" FROM "results" WHERE "team_2"='hanoi acb';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Team 2 that has the Venue of binh duong stadium, vietnam?`

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

CREATE TABLE "results" (
  "season" real,
  "team_1" text,
  "score" text,
  "team_2" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Team 2 that has the Venue of binh duong stadium, vietnam?`:
```sql
                SELECT "team_2" FROM "results" WHERE "venue"='binh duong stadium, vietnam';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Season that has the Team 2 of chonburi, and the Score of 0:1?`

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

CREATE TABLE "results" (
  "season" real,
  "team_1" text,
  "score" text,
  "team_2" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Season that has the Team 2 of chonburi, and the Score of 0:1?`:
```sql
                SELECT COUNT("season") FROM "results" WHERE "team_2"='chonburi' AND "score"='0:1';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Place of t6, and a Player of raymond floyd?`

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

CREATE TABLE "final_round_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Place of t6, and a Player of raymond floyd?`:
```sql
                SELECT "score" FROM "final_round_leaderboard" WHERE "place"='t6' AND "player"='raymond floyd';
```
## Task
Generate a SQL query to answer the following question:
`How much To par has a Place of t1, and a Score of 70-70-71-71=282?`

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

CREATE TABLE "final_round_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much To par has a Place of t1, and a Score of 70-70-71-71=282?`:
```sql
                SELECT COUNT("to_par") FROM "final_round_leaderboard" WHERE "place"='t1' AND "score"='70-70-71-71=282';
```
## Task
Generate a SQL query to answer the following question:
`What is tony lema's to par?`

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

CREATE TABLE "final_round_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is tony lema's to par?`:
```sql
                SELECT SUM("to_par") FROM "final_round_leaderboard" WHERE "player"='tony lema';
```
## Task
Generate a SQL query to answer the following question:
`What was gary player's score?`

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

CREATE TABLE "final_round_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was gary player's score?`:
```sql
                SELECT "score" FROM "final_round_leaderboard" WHERE "player"='gary player';
```
## Task
Generate a SQL query to answer the following question:
`What was the total number for the PIW Class' The Adventures Of... and had a score bigger than 94.6?`

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

CREATE TABLE "past_and_current_programs" (
  "year" real,
  "program_title" text,
  "placement" text,
  "score" real,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number for the PIW Class' The Adventures Of... and had a score bigger than 94.6?`:
```sql
                SELECT COUNT("year") FROM "past_and_current_programs" WHERE "class"='piw' AND "program_title"='the adventures of...' AND "score">94.6;
```
## Task
Generate a SQL query to answer the following question:
`What class had a score of 95.1?`

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

CREATE TABLE "past_and_current_programs" (
  "year" real,
  "program_title" text,
  "placement" text,
  "score" real,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class had a score of 95.1?`:
```sql
                SELECT "class" FROM "past_and_current_programs" WHERE "score"=95.1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest score for a year before 2008 and had 3rd place?`

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

CREATE TABLE "past_and_current_programs" (
  "year" real,
  "program_title" text,
  "placement" text,
  "score" real,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest score for a year before 2008 and had 3rd place?`:
```sql
                SELECT MIN("score") FROM "past_and_current_programs" WHERE "year"<2008 AND "placement"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest year placement for Taboo with a score smaller than 96.125?`

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

CREATE TABLE "past_and_current_programs" (
  "year" real,
  "program_title" text,
  "placement" text,
  "score" real,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest year placement for Taboo with a score smaller than 96.125?`:
```sql
                SELECT MAX("year") FROM "past_and_current_programs" WHERE "program_title"='taboo' AND "score"<96.125;
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score before 1959, with runner-up Jackie Pung?`

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

CREATE TABLE "wins_8" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score before 1959, with runner-up Jackie Pung?`:
```sql
                SELECT "winning_score" FROM "wins_8" WHERE "year"<1959 AND "runner_s_up"='jackie pung';
```
## Task
Generate a SQL query to answer the following question:
`Which Directed by has an Original air date of april 29, 2000?`

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

CREATE TABLE "season_4_1999_2000" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Directed by has an Original air date of april 29, 2000?`:
```sql
                SELECT "directed_by" FROM "season_4_1999_2000" WHERE "original_air_date"='april 29, 2000';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game from September 10, 2000?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game from September 10, 2000?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='september 10, 2000';
```
## Task
Generate a SQL query to answer the following question:
`Which award ceremony took place on May 15, 1965?`

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

CREATE TABLE "awards_ceremonies" (
  "ceremony" text,
  "date" text,
  "host_s" text,
  "venue" text,
  "film_of_the_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which award ceremony took place on May 15, 1965?`:
```sql
                SELECT "ceremony" FROM "awards_ceremonies" WHERE "date"='may 15, 1965';
```
## Task
Generate a SQL query to answer the following question:
`Which movie was awarded Film of the Year on May 8, 1964?`

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

CREATE TABLE "awards_ceremonies" (
  "ceremony" text,
  "date" text,
  "host_s" text,
  "venue" text,
  "film_of_the_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which movie was awarded Film of the Year on May 8, 1964?`:
```sql
                SELECT "film_of_the_year" FROM "awards_ceremonies" WHERE "date"='may 8, 1964';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the highest DCSF number that has the Name of field, and the Ofsted number larger than 117160?`

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

CREATE TABLE "central_watford_west_watford_and_oxhey" (
  "name" text,
  "faith" text,
  "type" text,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the highest DCSF number that has the Name of field, and the Ofsted number larger than 117160?`:
```sql
                SELECT MAX("dcsf_number") FROM "central_watford_west_watford_and_oxhey" WHERE "name"='field' AND "ofsted_number">117160;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Intake that has the Faith of rc, and the DCSF number larger than 2428?`

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

CREATE TABLE "central_watford_west_watford_and_oxhey" (
  "name" text,
  "faith" text,
  "type" text,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the sum of Intake that has the Faith of rc, and the DCSF number larger than 2428?`:
```sql
                SELECT SUM("intake") FROM "central_watford_west_watford_and_oxhey" WHERE "faith"='rc' AND "dcsf_number">2428;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Name that has the DCSF number of 2117?`

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

CREATE TABLE "central_watford_west_watford_and_oxhey" (
  "name" text,
  "faith" text,
  "type" text,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Name that has the DCSF number of 2117?`:
```sql
                SELECT "name" FROM "central_watford_west_watford_and_oxhey" WHERE "dcsf_number"=2117;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the highest Ofsted number that has the Type of infants, and the Intake larger than 60?`

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

CREATE TABLE "central_watford_west_watford_and_oxhey" (
  "name" text,
  "faith" text,
  "type" text,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the highest Ofsted number that has the Type of infants, and the Intake larger than 60?`:
```sql
                SELECT MAX("ofsted_number") FROM "central_watford_west_watford_and_oxhey" WHERE "type"='infants' AND "intake">60;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Week, when Opponent is At Chicago Bears, and when Attendance is greater than 49,070?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Week, when Opponent is At Chicago Bears, and when Attendance is greater than 49,070?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at chicago bears' AND "attendance">'49,070';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Week is 11?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Week is 11?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Week, when Attendance is 38,624?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Week, when Attendance is 38,624?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "attendance"='38,624';
```
## Task
Generate a SQL query to answer the following question:
`How much international mail has a change of +35,7% later than 2008?`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much international mail has a change of +35,7% later than 2008?`:
```sql
                SELECT SUM("international_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "change"='+35,7%' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`How much international mail has 4,650 international freight and more than 0 domestic mail?`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much international mail has 4,650 international freight and more than 0 domestic mail?`:
```sql
                SELECT SUM("international_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "international_freight"='4,650' AND "domestic_mail">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the most domestic freight with a change of +9,8% and a total freight and mail of more than 3,278?`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most domestic freight with a change of +9,8% and a total freight and mail of more than 3,278?`:
```sql
                SELECT MAX("domestic_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "change"='+9,8%' AND "total_freight_and_mail">'3,278';
```
## Task
Generate a SQL query to answer the following question:
`How much international freight has a change of +0,2% with more than 0 international mail?`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much international freight has a change of +0,2% with more than 0 international mail?`:
```sql
                SELECT COUNT("international_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "change"='+0,2%' AND "international_mail">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?`:
```sql
                SELECT MAX("international_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "change"='+0,2%' AND "domestic_mail"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the international mail with the lowest number to have less than 72 domestic freight, 0 domestic mail later than 2012 with total freight and mail more than 4,695?`

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

CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
  "year" real,
  "domestic_freight" real,
  "domestic_mail" real,
  "international_freight" real,
  "international_mail" real,
  "total_freight_and_mail" real,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the international mail with the lowest number to have less than 72 domestic freight, 0 domestic mail later than 2012 with total freight and mail more than 4,695?`:
```sql
                SELECT MIN("international_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "domestic_freight"<72 AND "domestic_mail"=0 AND "year"<2012 AND "total_freight_and_mail">'4,695';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the date is 16 january 1996?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue when the date is 16 january 1996?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='16 january 1996';
```
## Task
Generate a SQL query to answer the following question:
`what is the competition when the date is 16 january 1996?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the competition when the date is 16 january 1996?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='16 january 1996';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RECORD FOR FEBRUARY 11?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE RECORD FOR FEBRUARY 11?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='february 11';
```
## Task
Generate a SQL query to answer the following question:
`What was the award before 2001?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_work" text,
  "award" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the award before 2001?`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "year"<2001;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest week for a game that was located at the Molson Stadium?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "final_score" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest week for a game that was located at the Molson Stadium?`:
```sql
                SELECT MAX("week") FROM "regular_season" WHERE "location"='molson stadium';
```