cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When was there a match in Centurion Park?`

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

CREATE TABLE "england_in_south_africa" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there a match in Centurion Park?`:
```sql
                SELECT "date" FROM "england_in_south_africa" WHERE "venue"='centurion park';
```
## Task
Generate a SQL query to answer the following question:
`Name the finish which has qual of 144.817`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the finish which has qual of 144.817`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "qual"='144.817';
```
## Task
Generate a SQL query to answer the following question:
`Name the qual for rank of 9`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the qual for rank of 9`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "rank"='9';
```
## Task
Generate a SQL query to answer the following question:
`Name the qual for 1957`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the qual for 1957`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "year"='1957';
```
## Task
Generate a SQL query to answer the following question:
`What shows as the status for the name of de la red?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows as the status for the name of de la red?`:
```sql
                SELECT "status" FROM "out" WHERE "name"='de la red';
```
## Task
Generate a SQL query to answer the following question:
`What country has a Transfer fee of —, and a Transfer window of summer, and the Status of loaned out, and a Name of gonzález?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a Transfer fee of —, and a Transfer window of summer, and the Status of loaned out, and a Name of gonzález?`:
```sql
                SELECT "country" FROM "out" WHERE "transfer_fee"='—' AND "transfer_window"='summer' AND "status"='loaned out' AND "name"='gonzález';
```
## Task
Generate a SQL query to answer the following question:
`What shows as the status for Diogo?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows as the status for Diogo?`:
```sql
                SELECT "status" FROM "out" WHERE "name"='diogo';
```
## Task
Generate a SQL query to answer the following question:
`What is the name when the country is ESP and the transfer fee is € 7m?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name when the country is ESP and the transfer fee is € 7m?`:
```sql
                SELECT "name" FROM "out" WHERE "country"='esp' AND "transfer_fee"='€ 7m';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer window for the country of ESP and the name of de la red?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer window for the country of ESP and the name of de la red?`:
```sql
                SELECT "transfer_window" FROM "out" WHERE "country"='esp' AND "name"='de la red';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee of Diogo?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee of Diogo?`:
```sql
                SELECT "transfer_fee" FROM "out" WHERE "name"='diogo';
```
## Task
Generate a SQL query to answer the following question:
`What was the record at the game that had an attendance over 27,623 and a score of 0–7?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at the game that had an attendance over 27,623 and a score of 0–7?`:
```sql
                SELECT "record" FROM "game_log" WHERE "att">'27,623' AND "score"='0–7';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance at a game that had a loss of lohse (12–11)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance at a game that had a loss of lohse (12–11)?`:
```sql
                SELECT MIN("att") FROM "game_log" WHERE "loss"='lohse (12–11)';
```
## Task
Generate a SQL query to answer the following question:
`What was time of the game against the Royals with a record of 81–73?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was time of the game against the Royals with a record of 81–73?`:
```sql
                SELECT "time" FROM "game_log" WHERE "opponent"='royals' AND "record"='81–73';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year of Maja Pohar's Women's singles matches?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year of Maja Pohar's Women's singles matches?`:
```sql
                SELECT AVG("year") FROM "previous_winners" WHERE "women_s_singles"='maja pohar';
```
## Task
Generate a SQL query to answer the following question:
`Which round has a Kick Off of 1992-10-01 21:15?`

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

CREATE TABLE "1992_93_ue_lleida_season" (
  "round" text,
  "kick_off" text,
  "opponents" text,
  "h_a" text,
  "result" text,
  "referee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has a Kick Off of 1992-10-01 21:15?`:
```sql
                SELECT "round" FROM "1992_93_ue_lleida_season" WHERE "kick_off"='1992-10-01 21:15';
```
## Task
Generate a SQL query to answer the following question:
`Which round has a Kick Off of 1993-02-17 20:30?`

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

CREATE TABLE "1992_93_ue_lleida_season" (
  "round" text,
  "kick_off" text,
  "opponents" text,
  "h_a" text,
  "result" text,
  "referee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has a Kick Off of 1993-02-17 20:30?`:
```sql
                SELECT "round" FROM "1992_93_ue_lleida_season" WHERE "kick_off"='1993-02-17 20:30';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Mpix with a maximum fps HDRX of less than 12 with a width larger than 5120?`

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

CREATE TABLE "history" (
  "frame_size" text,
  "width" real,
  "height" real,
  "mpix" real,
  "aspect_ratio" text,
  "maximum_fps" real,
  "maximum_fps_hd_rx" real,
  "least_compression_at_24_fps" text,
  "least_compression_at_maximum_fps" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Mpix with a maximum fps HDRX of less than 12 with a width larger than 5120?`:
```sql
                SELECT SUM("mpix") FROM "history" WHERE "maximum_fps_hd_rx"<12 AND "width">5120;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest maximum of fps with a width of 3072 and a height less than 1620?`

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

CREATE TABLE "history" (
  "frame_size" text,
  "width" real,
  "height" real,
  "mpix" real,
  "aspect_ratio" text,
  "maximum_fps" real,
  "maximum_fps_hd_rx" real,
  "least_compression_at_24_fps" text,
  "least_compression_at_maximum_fps" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest maximum of fps with a width of 3072 and a height less than 1620?`:
```sql
                SELECT MIN("maximum_fps") FROM "history" WHERE "width"=3072 AND "height"<1620;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum fps HDRx with a height larger than 1080 with a compression at 24 fps of 6:1 with a compression at maximum fps of at least 7:1?`

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

CREATE TABLE "history" (
  "frame_size" text,
  "width" real,
  "height" real,
  "mpix" real,
  "aspect_ratio" text,
  "maximum_fps" real,
  "maximum_fps_hd_rx" real,
  "least_compression_at_24_fps" text,
  "least_compression_at_maximum_fps" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum fps HDRx with a height larger than 1080 with a compression at 24 fps of 6:1 with a compression at maximum fps of at least 7:1?`:
```sql
                SELECT "maximum_fps_hd_rx" FROM "history" WHERE "height">1080 AND "least_compression_at_24_fps"='6:1' AND "least_compression_at_maximum_fps"='7:1';
```
## Task
Generate a SQL query to answer the following question:
`Who got the loss on the game that ended in a 52-36 record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got the loss on the game that ended in a 52-36 record?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='52-36';
```
## Task
Generate a SQL query to answer the following question:
`Who got the loss for the game ending in a record of 55-41?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got the loss for the game ending in a record of 55-41?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='55-41';
```
## Task
Generate a SQL query to answer the following question:
`Which team opponent had a loss with their pitcher Dotson (8-6)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team opponent had a loss with their pitcher Dotson (8-6)?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "loss"='dotson (8-6)';
```
## Task
Generate a SQL query to answer the following question:
`What is the average 2006 value for wheat with a 2005 value greater than 7340?`

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

CREATE TABLE "romanian_agricultural_research" (
  "production_year" text,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average 2006 value for wheat with a 2005 value greater than 7340?`:
```sql
                SELECT AVG("2006") FROM "romanian_agricultural_research" WHERE "production_year"='wheat' AND "2005">7340;
```
## Task
Generate a SQL query to answer the following question:
`What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?`

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

CREATE TABLE "romanian_agricultural_research" (
  "production_year" text,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?`:
```sql
                SELECT AVG("2002") FROM "romanian_agricultural_research" WHERE "2010"<5587 AND "production_year"='sunflower' AND "2007">546;
```
## Task
Generate a SQL query to answer the following question:
`What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340?`

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

CREATE TABLE "romanian_agricultural_research" (
  "production_year" text,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340?`:
```sql
                SELECT AVG("2001") FROM "romanian_agricultural_research" WHERE "2010">414 AND "2011"=7192 AND "2005">7340;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181?`

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

CREATE TABLE "romanian_agricultural_research" (
  "production_year" text,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181?`:
```sql
                SELECT SUM("2006") FROM "romanian_agricultural_research" WHERE "2011">4113 AND "2008"<7181;
```
## Task
Generate a SQL query to answer the following question:
`Name the gamecenter that has attendance of 65,212`

### 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,
  "game_site" text,
  "record" text,
  "game_center" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gamecenter that has attendance of 65,212`:
```sql
                SELECT "game_center" FROM "schedule" WHERE "attendance"='65,212';
```
## Task
Generate a SQL query to answer the following question:
`Name the gamecenter with attendance of 78,551`

### 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,
  "game_site" text,
  "record" text,
  "game_center" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gamecenter with attendance of 78,551`:
```sql
                SELECT "game_center" FROM "schedule" WHERE "attendance"='78,551';
```
## Task
Generate a SQL query to answer the following question:
`Name the tv time for attendance of 69,551`

### 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,
  "game_site" text,
  "record" text,
  "game_center" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tv time for attendance of 69,551`:
```sql
                SELECT "tv_time" FROM "schedule" WHERE "attendance"='69,551';
```
## Task
Generate a SQL query to answer the following question:
`what is the smallest number of laps imre toth has?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the smallest number of laps imre toth has?`:
```sql
                SELECT MIN("laps") FROM "250cc_classification" WHERE "rider"='imre toth';
```
## Task
Generate a SQL query to answer the following question:
`what is the smallest number of laps marco simoncelli has with grid less than 8 and gilera as the manufacturer?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the smallest number of laps marco simoncelli has with grid less than 8 and gilera as the manufacturer?`:
```sql
                SELECT MIN("laps") FROM "250cc_classification" WHERE "manufacturer"='gilera' AND "rider"='marco simoncelli' AND "grid"<8;
```
## Task
Generate a SQL query to answer the following question:
`Who was the away captain at Brisbane Cricket Ground?`

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

CREATE TABLE "india_in_australia" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away captain at Brisbane Cricket Ground?`:
```sql
                SELECT "away_captain" FROM "india_in_australia" WHERE "venue"='brisbane cricket ground';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home captain at Sydney Cricket Ground?`

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

CREATE TABLE "india_in_australia" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home captain at Sydney Cricket Ground?`:
```sql
                SELECT "home_captain" FROM "india_in_australia" WHERE "venue"='sydney cricket ground';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the venue at Brisbane Cricket Ground?`

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

CREATE TABLE "india_in_australia" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the venue at Brisbane Cricket Ground?`:
```sql
                SELECT "date" FROM "india_in_australia" WHERE "venue"='brisbane cricket ground';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away captain at Waca Ground?`

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

CREATE TABLE "india_in_australia" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away captain at Waca Ground?`:
```sql
                SELECT "away_captain" FROM "india_in_australia" WHERE "venue"='waca ground';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game on June 30?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game on June 30?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='june 30';
```
## Task
Generate a SQL query to answer the following question:
`What CD has a catalog # of PCR 502?`

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

CREATE TABLE "cd_releases" (
  "catalog_num" text,
  "title" text,
  "year" text,
  "composer" text,
  "released" real
);
### SQL
Given the database schema, here is the SQL query that answers `What CD has a catalog # of PCR 502?`:
```sql
                SELECT "title" FROM "cd_releases" WHERE "catalog_num"='pcr 502';
```
## Task
Generate a SQL query to answer the following question:
`What CD was released in 2009?`

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

CREATE TABLE "cd_releases" (
  "catalog_num" text,
  "title" text,
  "year" text,
  "composer" text,
  "released" real
);
### SQL
Given the database schema, here is the SQL query that answers `What CD was released in 2009?`:
```sql
                SELECT "title" FROM "cd_releases" WHERE "released"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Division when the playoffs were the quarter finals, with a Regular Season of 5th?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Division when the playoffs were the quarter finals, with a Regular Season of 5th?`:
```sql
                SELECT MAX("division") FROM "year_by_year" WHERE "playoffs"='quarter finals' AND "regular_season"='5th';
```
## Task
Generate a SQL query to answer the following question:
`What is the year when they did not qualify for the playoff and the Regular Season shows as 10th?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year when they did not qualify for the playoff and the Regular Season shows as 10th?`:
```sql
                SELECT COUNT("year") FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "regular_season"='10th';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "open_cup"='did not qualify' AND "regular_season"='3rd, south atlantic';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest points value for 1962, in the 125cc class, and with 0 wins?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest points value for 1962, in the 125cc class, and with 0 wins?`:
```sql
                SELECT MAX("points") FROM "grand_prix_motorcycle_racing_results" WHERE "year"=1962 AND "class"='125cc' AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest points value for the 500cc class in years after 1962 with 0 wins?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest points value for the 500cc class in years after 1962 with 0 wins?`:
```sql
                SELECT MAX("points") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='500cc' AND "year">1962 AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`For Team AJS, what is the total number of points for drivers with 0 wins?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `For Team AJS, what is the total number of points for drivers with 0 wins?`:
```sql
                SELECT COUNT("points") FROM "grand_prix_motorcycle_racing_results" WHERE "team"='ajs' AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which year had 0 points and an AGS JH23B chassis?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year had 0 points and an AGS JH23B chassis?`:
```sql
                SELECT "year" FROM "complete_formula_one_results" WHERE "points"=0 AND "chassis"='ags jh23b';
```
## Task
Generate a SQL query to answer the following question:
`How many points does the year after 1986 with a AGS JH23B chassis have?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does the year after 1986 with a AGS JH23B chassis have?`:
```sql
                SELECT "points" FROM "complete_formula_one_results" WHERE "year">1986 AND "chassis"='ags jh23b';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Tyrrell Racing Organisation have?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Tyrrell Racing Organisation have?`:
```sql
                SELECT "points" FROM "complete_formula_one_results" WHERE "entrant"='tyrrell racing organisation';
```
## Task
Generate a SQL query to answer the following question:
`September 23, 1973 landed on which week of the season?`

### 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 `September 23, 1973 landed on which week of the season?`:
```sql
                SELECT "week" FROM "schedule" WHERE "date"='september 23, 1973';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest Gold if the Rank is over 4 but the Total is less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest Gold if the Rank is over 4 but the Total is less than 1?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "rank">4 AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What's the highest bronze with a less than 1 Rank?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest bronze with a less than 1 Rank?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`What's the average total if the Bronze is 5 and the Silver is less than 4?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average total if the Bronze is 5 and the Silver is less than 4?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "bronze"=5 AND "silver"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many Votes, when the Residence is Halifax?`

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

CREATE TABLE "106_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Votes, when the Residence is Halifax?`:
```sql
                SELECT "votes" FROM "106_seats" WHERE "residence"='halifax';
```
## Task
Generate a SQL query to answer the following question:
`What is the Riding, when the Rank is 4th?`

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

CREATE TABLE "106_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Riding, when the Rank is 4th?`:
```sql
                SELECT "riding" FROM "106_seats" WHERE "rank"='4th';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of Votes, when the Candidate's Name is Trevor Ennis?`

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

CREATE TABLE "106_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of Votes, when the Candidate's Name is Trevor Ennis?`:
```sql
                SELECT MIN("votes") FROM "106_seats" WHERE "candidate_s_name"='trevor ennis';
```
## Task
Generate a SQL query to answer the following question:
`What is the Candidate's Name, when the Votes are 513?`

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

CREATE TABLE "106_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Candidate's Name, when the Votes are 513?`:
```sql
                SELECT "candidate_s_name" FROM "106_seats" WHERE "votes"=513;
```
## Task
Generate a SQL query to answer the following question:
`What is the Occupation, when the Candidate's Name is Trevor Ennis?`

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

CREATE TABLE "106_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Occupation, when the Candidate's Name is Trevor Ennis?`:
```sql
                SELECT "occupation" FROM "106_seats" WHERE "candidate_s_name"='trevor ennis';
```
## Task
Generate a SQL query to answer the following question:
`Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0`:
```sql
                SELECT MAX("cuts_made") FROM "summary" WHERE "top_25">4 AND "top_5"=1 AND "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the top-25 with wins less than 1 and events of 12`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the top-25 with wins less than 1 and events of 12`:
```sql
                SELECT SUM("top_25") FROM "summary" WHERE "wins"<1 AND "events"=12;
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the attendance was 7,891?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when the attendance was 7,891?`:
```sql
                SELECT "away_team" FROM "northern_section" WHERE "attendance"='7,891';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the attendance was 1,644?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the attendance was 1,644?`:
```sql
                SELECT "score" FROM "northern_section" WHERE "attendance"='1,644';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the home team was Lincoln City?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when the home team was Lincoln City?`:
```sql
                SELECT "away_team" FROM "northern_section" WHERE "home_team"='lincoln city';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the home team was Lincoln City?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the home team was Lincoln City?`:
```sql
                SELECT "score" FROM "northern_section" WHERE "home_team"='lincoln city';
```
## Task
Generate a SQL query to answer the following question:
`What is the most amount of points for a team before 1983?`

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

CREATE TABLE "cart_results" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most amount of points for a team before 1983?`:
```sql
                SELECT MAX("points") FROM "cart_results" WHERE "year"<1983;
```
## Task
Generate a SQL query to answer the following question:
`What team has 4 points and a Chassis of march 82/83c?`

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

CREATE TABLE "cart_results" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team has 4 points and a Chassis of march 82/83c?`:
```sql
                SELECT "team" FROM "cart_results" WHERE "points"=4 AND "chassis"='march 82/83c';
```
## Task
Generate a SQL query to answer the following question:
`What engine was used by Curb Motorsports after 1982 that had 11 points?`

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

CREATE TABLE "cart_results" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What engine was used by Curb Motorsports after 1982 that had 11 points?`:
```sql
                SELECT "engine" FROM "cart_results" WHERE "year">1982 AND "points"=11 AND "team"='curb motorsports';
```
## Task
Generate a SQL query to answer the following question:
`What is the Engine used before 1983?`

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

CREATE TABLE "cart_results" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Engine used before 1983?`:
```sql
                SELECT "engine" FROM "cart_results" WHERE "year"<1983;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of average for wickets less than 265, runs less than 4564 and matches less than 52`

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

CREATE TABLE "best_average_in_a_career" (
  "matches" real,
  "wickets" real,
  "runs" real,
  "average" real,
  "career" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of average for wickets less than 265, runs less than 4564 and matches less than 52`:
```sql
                SELECT COUNT("average") FROM "best_average_in_a_career" WHERE "matches"<52 AND "runs"<4564 AND "wickets"<265;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of average for wickets more than 537, career of 1899/00-1925/26 and matches less than 211`

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

CREATE TABLE "best_average_in_a_career" (
  "matches" real,
  "wickets" real,
  "runs" real,
  "average" real,
  "career" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of average for wickets more than 537, career of 1899/00-1925/26 and matches less than 211`:
```sql
                SELECT COUNT("average") FROM "best_average_in_a_career" WHERE "wickets">537 AND "career"='1899/00-1925/26' AND "matches"<211;
```
## Task
Generate a SQL query to answer the following question:
`Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51`

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

CREATE TABLE "best_average_in_a_career" (
  "matches" real,
  "wickets" real,
  "runs" real,
  "average" real,
  "career" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51`:
```sql
                SELECT MIN("average") FROM "best_average_in_a_career" WHERE "wickets">265 AND "career"='1888/89-1913/14' AND "matches">51;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476`

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

CREATE TABLE "best_average_in_a_career" (
  "matches" real,
  "wickets" real,
  "runs" real,
  "average" real,
  "career" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476`:
```sql
                SELECT COUNT("matches") FROM "best_average_in_a_career" WHERE "wickets"<537 AND "career"='1898/99-1919/20' AND "runs">4476;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Opponent that has the Series of 4-2?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the Series of 4-2?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "series"='4-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of the player with a t4 place and a score of 75-69-74-72=290?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of the player with a t4 place and a score of 75-69-74-72=290?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "place"='t4' AND "score"='75-69-74-72=290';
```
## Task
Generate a SQL query to answer the following question:
`Which entrant scored less than 8 points and used a Maserati chassis?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which entrant scored less than 8 points and used a Maserati chassis?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "points"<8 AND "chassis"='maserati';
```
## Task
Generate a SQL query to answer the following question:
`Which entrant, with an Offenhauser L4 engine and a Kurtis Kraft KK500A chassis, scored 9 points before 1955?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which entrant, with an Offenhauser L4 engine and a Kurtis Kraft KK500A chassis, scored 9 points before 1955?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='offenhauser l4' AND "year"<1955 AND "chassis"='kurtis kraft kk500a' AND "points"=9;
```
## Task
Generate a SQL query to answer the following question:
`What type of engine did the Fuel Injection entrant use?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type of engine did the Fuel Injection entrant use?`:
```sql
                SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "entrant"='fuel injection';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points for an Offenhauser L4 engine with a Trevis chassis?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of points for an Offenhauser L4 engine with a Trevis chassis?`:
```sql
                SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='offenhauser l4' AND "chassis"='trevis';
```
## Task
Generate a SQL query to answer the following question:
`What poll had Steve Poizner at 37%?`

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

CREATE TABLE "republican_primary" (
  "poll_source" text,
  "date_s_administered" text,
  "tom_campbell" text,
  "meg_whitman" text,
  "steve_poizner" text,
  "peter_foy" text
);
### SQL
Given the database schema, here is the SQL query that answers `What poll had Steve Poizner at 37%?`:
```sql
                SELECT "poll_source" FROM "republican_primary" WHERE "steve_poizner"='37%';
```