cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Time, when Round is less than 2, and when Opponent is "Valentijn Overeem"?`

### 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 is Time, when Round is less than 2, and when Opponent is "Valentijn Overeem"?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"<2 AND "opponent"='valentijn overeem';
```
## Task
Generate a SQL query to answer the following question:
`What is Location, when Round is "1", and when Opponent is "Joe Slick"?`

### 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 is Location, when Round is "1", and when Opponent is "Joe Slick"?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "opponent"='joe slick';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Opponent is "Joe Pardo"?`

### 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 is Event, when Opponent is "Joe Pardo"?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='joe pardo';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Round is "1", when Location is "New Town, North Dakota , United States" and when Time is "4:12"?`

### 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 is Event, when Round is "1", when Location is "New Town, North Dakota , United States" and when Time is "4:12"?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "location"='new town, north dakota , united states' AND "time"='4:12';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the Opponent the Tennessee Titans?`

### 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 `On what Date was the Opponent the Tennessee Titans?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='tennessee titans';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the game with an Attendance of 64,104?`

### 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 is the Result of the game with an Attendance of 64,104?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='64,104';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week number with a Result of W 30-28?`

### 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 is the Week number with a Result of W 30-28?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "result"='w 30-28';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game against Philadelphia Eagles?`

### 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 is the date of the game against Philadelphia Eagles?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='philadelphia eagles';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of the game September 21, 2003?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of the game September 21, 2003?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='september 21, 2003';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the total s ton less than 2,983,137 and the u.s. rank less than 102?`

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

CREATE TABLE "tonnage_for_port_of_anchorage" (
  "year" real,
  "u_s_rank" real,
  "total_s_ton" real,
  "domestic_s_ton" real,
  "foreign_total_s_ton" real,
  "foreign_imports_s_ton" real,
  "foreign_exports_s_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the total s ton less than 2,983,137 and the u.s. rank less than 102?`:
```sql
                SELECT COUNT("year") FROM "tonnage_for_port_of_anchorage" WHERE "total_s_ton"<'2,983,137' AND "u_s_rank"<102;
```
## Task
Generate a SQL query to answer the following question:
`what is the average domestic s tone when the foreign imports s tone is less than 225,281 and the year is later than 2003?`

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

CREATE TABLE "tonnage_for_port_of_anchorage" (
  "year" real,
  "u_s_rank" real,
  "total_s_ton" real,
  "domestic_s_ton" real,
  "foreign_total_s_ton" real,
  "foreign_imports_s_ton" real,
  "foreign_exports_s_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average domestic s tone when the foreign imports s tone is less than 225,281 and the year is later than 2003?`:
```sql
                SELECT AVG("domestic_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "foreign_imports_s_ton"<'225,281' AND "year">2003;
```
## Task
Generate a SQL query to answer the following question:
`what is the average domestic s tone when the total s tone is 2,926,536 and the foreign imports s tone is less than 464,774?`

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

CREATE TABLE "tonnage_for_port_of_anchorage" (
  "year" real,
  "u_s_rank" real,
  "total_s_ton" real,
  "domestic_s_ton" real,
  "foreign_total_s_ton" real,
  "foreign_imports_s_ton" real,
  "foreign_exports_s_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average domestic s tone when the total s tone is 2,926,536 and the foreign imports s tone is less than 464,774?`:
```sql
                SELECT AVG("domestic_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "total_s_ton"='2,926,536' AND "foreign_imports_s_ton"<'464,774';
```
## Task
Generate a SQL query to answer the following question:
`what is the average foreign imports s tone when the total s tone is 3,157,247 and the foreign exports s ton is less than 358,493?`

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

CREATE TABLE "tonnage_for_port_of_anchorage" (
  "year" real,
  "u_s_rank" real,
  "total_s_ton" real,
  "domestic_s_ton" real,
  "foreign_total_s_ton" real,
  "foreign_imports_s_ton" real,
  "foreign_exports_s_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average foreign imports s tone when the total s tone is 3,157,247 and the foreign exports s ton is less than 358,493?`:
```sql
                SELECT AVG("foreign_imports_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "total_s_ton"='3,157,247' AND "foreign_exports_s_ton"<'358,493';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the U.S. Rank 102, the year earlier than 2006 and the total s ton less than 2,983,137?`

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

CREATE TABLE "tonnage_for_port_of_anchorage" (
  "year" real,
  "u_s_rank" real,
  "total_s_ton" real,
  "domestic_s_ton" real,
  "foreign_total_s_ton" real,
  "foreign_imports_s_ton" real,
  "foreign_exports_s_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the U.S. Rank 102, the year earlier than 2006 and the total s ton less than 2,983,137?`:
```sql
                SELECT COUNT("foreign_total_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "u_s_rank"=102 AND "year"<2006 AND "total_s_ton"<'2,983,137';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest u.s. rank when the foreign total s ton is more than 703,638, the year is earlier than 2005, the foreign imports s ton is 284,347 and the foreign exports s ton is smaller than 478,317?`

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

CREATE TABLE "tonnage_for_port_of_anchorage" (
  "year" real,
  "u_s_rank" real,
  "total_s_ton" real,
  "domestic_s_ton" real,
  "foreign_total_s_ton" real,
  "foreign_imports_s_ton" real,
  "foreign_exports_s_ton" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest u.s. rank when the foreign total s ton is more than 703,638, the year is earlier than 2005, the foreign imports s ton is 284,347 and the foreign exports s ton is smaller than 478,317?`:
```sql
                SELECT MAX("u_s_rank") FROM "tonnage_for_port_of_anchorage" WHERE "foreign_total_s_ton">'703,638' AND "year"<2005 AND "foreign_imports_s_ton"='284,347' AND "foreign_exports_s_ton"<'478,317';
```
## Task
Generate a SQL query to answer the following question:
`What position has a pick less than 20?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has a pick less than 20?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "pick"<20;
```
## Task
Generate a SQL query to answer the following question:
`What is the number that is the lowest overall for the College of Baylor?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number that is the lowest overall for the College of Baylor?`:
```sql
                SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "college"='baylor';
```
## Task
Generate a SQL query to answer the following question:
`What is the number that is the lowest overall for Round 6?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number that is the lowest overall for Round 6?`:
```sql
                SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=6;
```
## Task
Generate a SQL query to answer the following question:
`Where was the result a win against Mike Large?`

### 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" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the result a win against Mike Large?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "opponent"='mike large';
```
## Task
Generate a SQL query to answer the following question:
`In what round did opponent Joe Lauzon play?`

### 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" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round did opponent Joe Lauzon play?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='joe lauzon';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in a week over 8 on December 4, 1960?`

### 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 `Who was the opponent in a week over 8 on December 4, 1960?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week">8 AND "date"='december 4, 1960';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in a week less than 8 on October 9, 1960?`

### 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 `Who was the opponent in a week less than 8 on October 9, 1960?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<8 AND "date"='october 9, 1960';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when 58,516 were in attendance?`

### 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 when 58,516 were in attendance?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='58,516';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in a week below 3 on September 23, 1960?`

### 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 `Who was the opponent in a week below 3 on September 23, 1960?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<3 AND "date"='september 23, 1960';
```
## Task
Generate a SQL query to answer the following question:
`What is the biggest number of females where the males are at 28.2 with a rank greater than 5?`

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

CREATE TABLE "suicides_per_100_000_people_per_year" (
  "rank" real,
  "country" text,
  "year" real,
  "males" real,
  "females" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggest number of females where the males are at 28.2 with a rank greater than 5?`:
```sql
                SELECT MAX("females") FROM "suicides_per_100_000_people_per_year" WHERE "males"=28.2 AND "rank">5;
```
## Task
Generate a SQL query to answer the following question:
`Who was the player in 1976?`

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

CREATE TABLE "leading_money_winners_by_year" (
  "year" real,
  "player" text,
  "country" text,
  "earnings" real,
  "most_wins" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player in 1976?`:
```sql
                SELECT "player" FROM "leading_money_winners_by_year" WHERE "year"=1976;
```
## Task
Generate a SQL query to answer the following question:
`When was Elaine Powell (g) of the United states picked?`

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

CREATE TABLE "2006_chicago_sky" (
  "pick" real,
  "player" text,
  "nationality" text,
  "new_wnba_team" text,
  "former_wnba_team" text,
  "college_country_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Elaine Powell (g) of the United states picked?`:
```sql
                SELECT "pick" FROM "2006_chicago_sky" WHERE "nationality"='united states' AND "player"='elaine powell (g)';
```
## Task
Generate a SQL query to answer the following question:
`When was there a result of w 65-20 after week 6?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there a result of w 65-20 after week 6?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">6 AND "result"='w 65-20';
```
## Task
Generate a SQL query to answer the following question:
`What is Celta's Agg.?`

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

CREATE TABLE "round_of_32" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Celta's Agg.?`:
```sql
                SELECT "agg" FROM "round_of_32" WHERE "team_1"='celta';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg for Barcelona Team 2?`

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

CREATE TABLE "round_of_32" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg for Barcelona Team 2?`:
```sql
                SELECT "2nd_leg" FROM "round_of_32" WHERE "team_2"='barcelona';
```
## Task
Generate a SQL query to answer the following question:
`What is team 2 if Team 1 is Numancia?`

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

CREATE TABLE "round_of_32" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is team 2 if Team 1 is Numancia?`:
```sql
                SELECT "team_2" FROM "round_of_32" WHERE "team_1"='numancia';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum Credibility/Capital to Assets Ration (Score) that has a Credibility/Capital to Assets Ration (%) bigger than 4.66, and the Banking Power/Capital Base ($ Million) is less than 2,550?`

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

CREATE TABLE "top_5_iranian_banks_2012_ranking" (
  "bank" text,
  "score_iran" real,
  "score_global" real,
  "banking_power_capital_base_million" real,
  "banking_power_capital_base_pct_change" text,
  "total_assets_million" real,
  "total_assets_score" real,
  "total_assets_pct_change" text,
  "credibility_capital_to_assets_ratio_pct" real,
  "credibility_capital_to_assets_ratio_score" real,
  "performance_return_on_capital_pct" real,
  "performance_return_on_capital_score" real,
  "return_on_assets_pct" real,
  "return_on_assets_score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum Credibility/Capital to Assets Ration (Score) that has a Credibility/Capital to Assets Ration (%) bigger than 4.66, and the Banking Power/Capital Base ($ Million) is less than 2,550?`:
```sql
                SELECT MAX("credibility_capital_to_assets_ratio_score") FROM "top_5_iranian_banks_2012_ranking" WHERE "credibility_capital_to_assets_ratio_pct">4.66 AND "banking_power_capital_base_million"<'2,550';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3, and the Score (Global) is 266?`

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

CREATE TABLE "top_5_iranian_banks_2012_ranking" (
  "bank" text,
  "score_iran" real,
  "score_global" real,
  "banking_power_capital_base_million" real,
  "banking_power_capital_base_pct_change" text,
  "total_assets_million" real,
  "total_assets_score" real,
  "total_assets_pct_change" text,
  "credibility_capital_to_assets_ratio_pct" real,
  "credibility_capital_to_assets_ratio_score" real,
  "performance_return_on_capital_pct" real,
  "performance_return_on_capital_score" real,
  "return_on_assets_pct" real,
  "return_on_assets_score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3, and the Score (Global) is 266?`:
```sql
                SELECT COUNT("performance_return_on_capital_score") FROM "top_5_iranian_banks_2012_ranking" WHERE "score_iran"<3 AND "score_global"=266;
```
## Task
Generate a SQL query to answer the following question:
`What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7?`

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

CREATE TABLE "top_5_iranian_banks_2012_ranking" (
  "bank" text,
  "score_iran" real,
  "score_global" real,
  "banking_power_capital_base_million" real,
  "banking_power_capital_base_pct_change" text,
  "total_assets_million" real,
  "total_assets_score" real,
  "total_assets_pct_change" text,
  "credibility_capital_to_assets_ratio_pct" real,
  "credibility_capital_to_assets_ratio_score" real,
  "performance_return_on_capital_pct" real,
  "performance_return_on_capital_score" real,
  "return_on_assets_pct" real,
  "return_on_assets_score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7?`:
```sql
                SELECT "total_assets_pct_change" FROM "top_5_iranian_banks_2012_ranking" WHERE "performance_return_on_capital_pct">25.63 AND "performance_return_on_capital_score">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the NFL club of the cornerback player with a pick greater than 63?`

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

CREATE TABLE "players_in_the_nfl" (
  "player" text,
  "position" text,
  "round" real,
  "pick" real,
  "nfl_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NFL club of the cornerback player with a pick greater than 63?`:
```sql
                SELECT "nfl_club" FROM "players_in_the_nfl" WHERE "pick">63 AND "position"='cornerback';
```
## Task
Generate a SQL query to answer the following question:
`What is the total round of the tight end position player?`

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

CREATE TABLE "players_in_the_nfl" (
  "player" text,
  "position" text,
  "round" real,
  "pick" real,
  "nfl_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total round of the tight end position player?`:
```sql
                SELECT COUNT("round") FROM "players_in_the_nfl" WHERE "position"='tight end';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick of the NFL club buffalo bills?`

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

CREATE TABLE "players_in_the_nfl" (
  "player" text,
  "position" text,
  "round" real,
  "pick" real,
  "nfl_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick of the NFL club buffalo bills?`:
```sql
                SELECT "pick" FROM "players_in_the_nfl" WHERE "nfl_club"='buffalo bills';
```
## Task
Generate a SQL query to answer the following question:
`On What Date is the Competition Semifinal that has a result of 2-1 aet?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On What Date is the Competition Semifinal that has a result of 2-1 aet?`:
```sql
                SELECT "date" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='semifinal' AND "result"='2-1 aet';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17?`:
```sql
                SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='group stage' AND "lineup"='start' AND "date"='2000-09-17';
```
## Task
Generate a SQL query to answer the following question:
`Which Match has a Competition of Group Stage on 2000-09-17?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Match has a Competition of Group Stage on 2000-09-17?`:
```sql
                SELECT "match" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='group stage' AND "date"='2000-09-17';
```
## Task
Generate a SQL query to answer the following question:
`Which Match played in a Location of San Francisco has a Competition of Semifinal?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Match played in a Location of San Francisco has a Competition of Semifinal?`:
```sql
                SELECT "match" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='semifinal' AND "location"='san francisco';
```
## Task
Generate a SQL query to answer the following question:
`What Location has a Date of 1995-06-15?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Location has a Date of 1995-06-15?`:
```sql
                SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "date"='1995-06-15';
```
## Task
Generate a SQL query to answer the following question:
`What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?`:
```sql
                SELECT MAX("points_1") FROM "final_table" WHERE "goals_against"<97 AND "lost"<22 AND "drawn"=9 AND "goal_difference"='+28';
```
## Task
Generate a SQL query to answer the following question:
`What is the most points 1 when the goal difference is +28 and lost is larger than 12?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most points 1 when the goal difference is +28 and lost is larger than 12?`:
```sql
                SELECT MAX("points_1") FROM "final_table" WHERE "goal_difference"='+28' AND "lost">12;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum lost with points 1 more than 58 and 66 goals against?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum lost with points 1 more than 58 and 66 goals against?`:
```sql
                SELECT MAX("lost") FROM "final_table" WHERE "points_1">58 AND "goals_against"=66;
```
## Task
Generate a SQL query to answer the following question:
`What is the most goals for when there are fewer than 4 draws?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most goals for when there are fewer than 4 draws?`:
```sql
                SELECT MAX("goals_for") FROM "final_table" WHERE "drawn"<4;
```
## Task
Generate a SQL query to answer the following question:
`What was the result on October 20, 2002?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result on October 20, 2002?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='october 20, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What is the Jersey Number(s) from Norfolk State?`

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

CREATE TABLE "p" (
  "player" text,
  "nationality" text,
  "jersey_number_s" text,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Jersey Number(s) from Norfolk State?`:
```sql
                SELECT "jersey_number_s" FROM "p" WHERE "from"='norfolk state';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the person with number 27?`

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

CREATE TABLE "p" (
  "player" text,
  "nationality" text,
  "jersey_number_s" text,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the person with number 27?`:
```sql
                SELECT "nationality" FROM "p" WHERE "jersey_number_s"='27';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the SG position?`

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

CREATE TABLE "p" (
  "player" text,
  "nationality" text,
  "jersey_number_s" text,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the SG position?`:
```sql
                SELECT "nationality" FROM "p" WHERE "position"='sg';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the film directed by danny devito?`

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

CREATE TABLE "highest_grossing_films_of_1987" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the film directed by danny devito?`:
```sql
                SELECT "rank" FROM "highest_grossing_films_of_1987" WHERE "director"='danny devito';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the ranks for the film, eddie murphy raw?`

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

CREATE TABLE "highest_grossing_films_of_1987" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the ranks for the film, eddie murphy raw?`:
```sql
                SELECT SUM("rank") FROM "highest_grossing_films_of_1987" WHERE "title"='eddie murphy raw';
```
## Task
Generate a SQL query to answer the following question:
`Who directed Predator that was filmed with Fox Studio?`

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

CREATE TABLE "highest_grossing_films_of_1987" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed Predator that was filmed with Fox Studio?`:
```sql
                SELECT "director" FROM "highest_grossing_films_of_1987" WHERE "studio"='fox' AND "title"='predator';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of ranks that had vestron as the studio?`

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

CREATE TABLE "highest_grossing_films_of_1987" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of ranks that had vestron as the studio?`:
```sql
                SELECT COUNT("rank") FROM "highest_grossing_films_of_1987" WHERE "studio"='vestron';
```
## Task
Generate a SQL query to answer the following question:
`Which class had Stanley Dickens as a driver?`

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

CREATE TABLE "race_2" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which class had Stanley Dickens as a driver?`:
```sql
                SELECT "class" FROM "race_2" WHERE "driver"='stanley dickens';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest amount of laps for class c1 and driver Derek Bell?`

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

CREATE TABLE "race_2" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest amount of laps for class c1 and driver Derek Bell?`:
```sql
                SELECT MAX("laps") FROM "race_2" WHERE "class"='c1' AND "driver"='derek bell';
```
## Task
Generate a SQL query to answer the following question:
`Where was the player born when the appearances were greater than 40 and made 17 goals?`

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

CREATE TABLE "players" (
  "nationality" text,
  "position" text,
  "gillingham_career" text,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the player born when the appearances were greater than 40 and made 17 goals?`:
```sql
                SELECT "nationality" FROM "players" WHERE "apps">40 AND "goals"=17;
```
## Task
Generate a SQL query to answer the following question:
`When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances?`

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

CREATE TABLE "players" (
  "nationality" text,
  "position" text,
  "gillingham_career" text,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances?`:
```sql
                SELECT "gillingham_career" FROM "players" WHERE "goals"=0 AND "apps"<37 AND "nationality"='england' AND "position"='mf';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player with a t8 place?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player with a t8 place?`:
```sql
                SELECT "player" FROM "first_round" WHERE "place"='t8';
```
## Task
Generate a SQL query to answer the following question:
`What is the country of player dale douglass, who has a t8 place?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country of player dale douglass, who has a t8 place?`:
```sql
                SELECT "country" FROM "first_round" WHERE "place"='t8' AND "player"='dale douglass';
```
## Task
Generate a SQL query to answer the following question:
`What is the average score of player lee trevino, who has a t8 place?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average score of player lee trevino, who has a t8 place?`:
```sql
                SELECT AVG("score") FROM "first_round" WHERE "place"='t8' AND "player"='lee trevino';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of player johnny miller, who has a t8 place?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of player johnny miller, who has a t8 place?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "place"='t8' AND "player"='johnny miller';
```
## Task
Generate a SQL query to answer the following question:
`What is the country of player chi-chi rodríguez, who has an e to par?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country of player chi-chi rodríguez, who has an e to par?`:
```sql
                SELECT "country" FROM "first_round" WHERE "to_par"='e' AND "player"='chi-chi rodríguez';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='joe colborne';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY?`:
```sql
                SELECT COUNT("round") FROM "draft_picks" WHERE "player"='nicholas tremblay';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE POSITION OF FRANCE?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE POSITION OF FRANCE?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "nationality"='france';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE ROUND FOR JAMIE ARNIEL?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE ROUND FOR JAMIE ARNIEL?`:
```sql
                SELECT COUNT("round") FROM "draft_picks" WHERE "player"='jamie arniel';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on May 12, 2008?`

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

CREATE TABLE "chinese_taipei_national_futsal_team" (
  "date" text,
  "venue" text,
  "score" text,
  "competition" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on May 12, 2008?`:
```sql
                SELECT "score" FROM "chinese_taipei_national_futsal_team" WHERE "date"='may 12, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the largest attendance over 101,474 played against Rice?`

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

CREATE TABLE "largest_attendance" (
  "rank" real,
  "date" text,
  "attendance" real,
  "opponent" text,
  "texas_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the largest attendance over 101,474 played against Rice?`:
```sql
                SELECT AVG("rank") FROM "largest_attendance" WHERE "attendance">'101,474' AND "opponent"='rice';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on September 26, 2009?`

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

CREATE TABLE "largest_attendance" (
  "rank" real,
  "date" text,
  "attendance" real,
  "opponent" text,
  "texas_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on September 26, 2009?`:
```sql
                SELECT "opponent" FROM "largest_attendance" WHERE "date"='september 26, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What was the average lead maragin for the dates administered of october 6, 2008?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_mark_begich" text,
  "republican_ted_stevens" text,
  "lead_maragin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average lead maragin for the dates administered of october 6, 2008?`:
```sql
                SELECT AVG("lead_maragin") FROM "opinion_polling_for_the_united_states_se" WHERE "dates_administered"='october 6, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the poll source for october 6, 2008?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_mark_begich" text,
  "republican_ted_stevens" text,
  "lead_maragin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the poll source for october 6, 2008?`:
```sql
                SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "dates_administered"='october 6, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who has a place of T7 and is from the United States?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a place of T7 and is from the United States?`:
```sql
                SELECT "player" FROM "first_round" WHERE "place"='t7' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Film with a Worldwide Gross of $914,691,118?`

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

CREATE TABLE "highest_grossing_films_of_1993" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Film with a Worldwide Gross of $914,691,118?`:
```sql
                SELECT "rank" FROM "highest_grossing_films_of_1993" WHERE "worldwide_gross"='$914,691,118';
```