cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the points for Engine of chevrolet 265c`

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

CREATE TABLE "indycar_career_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 `Name the points for Engine of chevrolet 265c`:
```sql
                SELECT "points" FROM "indycar_career_results" WHERE "engine"='chevrolet 265c';
```
## Task
Generate a SQL query to answer the following question:
`Name the chassis of 147 points and engine of ford cosworth dfx`

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

CREATE TABLE "indycar_career_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 `Name the chassis of 147 points and engine of ford cosworth dfx`:
```sql
                SELECT "chassis" FROM "indycar_career_results" WHERE "points"=147 AND "engine"='ford cosworth dfx';
```
## Task
Generate a SQL query to answer the following question:
`Which term had a Democratic representative from district 7?`

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

CREATE TABLE "state_house" (
  "name" text,
  "party" text,
  "hometown" text,
  "district" text,
  "term" text,
  "legislatures" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which term had a Democratic representative from district 7?`:
```sql
                SELECT "term" FROM "state_house" WHERE "district"='7' AND "party"='democratic';
```
## Task
Generate a SQL query to answer the following question:
`What was the term of Bruce Biers Kendall whose hometown is Anchorage?`

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

CREATE TABLE "state_house" (
  "name" text,
  "party" text,
  "hometown" text,
  "district" text,
  "term" text,
  "legislatures" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the term of Bruce Biers Kendall whose hometown is Anchorage?`:
```sql
                SELECT "term" FROM "state_house" WHERE "hometown"='anchorage' AND "name"='bruce biers kendall';
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown of the representative that served the twenty-sixth legislature?`

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

CREATE TABLE "state_house" (
  "name" text,
  "party" text,
  "hometown" text,
  "district" text,
  "term" text,
  "legislatures" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of the representative that served the twenty-sixth legislature?`:
```sql
                SELECT "hometown" FROM "state_house" WHERE "legislatures"='twenty-sixth';
```
## Task
Generate a SQL query to answer the following question:
`What is the qual with a 19 rank?`

### 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 `What is the qual with a 19 rank?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "rank"='19';
```
## Task
Generate a SQL query to answer the following question:
`What rank has a 25 finish?`

### 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 `What rank has a 25 finish?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "finish"='25';
```
## Task
Generate a SQL query to answer the following question:
`What finish has a 143.056 qual?`

### 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 `What finish has a 143.056 qual?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "qual"='143.056';
```
## Task
Generate a SQL query to answer the following question:
`What rank had more than 165 laps and a finish of 5?`

### 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 `What rank had more than 165 laps and a finish of 5?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "laps">165 AND "finish"='5';
```
## Task
Generate a SQL query to answer the following question:
`What was the record at the game against the Blue Jays with a loss of Batista (0–3)?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at the game against the Blue Jays with a loss of Batista (0–3)?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='blue jays' AND "loss"='batista (0–3)';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game when the record was 14–8?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game when the record was 14–8?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='14–8';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the record was 28–19?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the record was 28–19?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='28–19';
```
## Task
Generate a SQL query to answer the following question:
`What was the record at the game held on May 1st with a loss of Speier (1–3)?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at the game held on May 1st with a loss of Speier (1–3)?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='may 1' AND "loss"='speier (1–3)';
```
## Task
Generate a SQL query to answer the following question:
`How many goes played fot hteam that lost less than 12 games, drew 5, and had over 37 points?`

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

CREATE TABLE "ppl_2005_final_standings" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goes played fot hteam that lost less than 12 games, drew 5, and had over 37 points?`:
```sql
                SELECT "played" FROM "ppl_2005_final_standings" WHERE "lost"<12 AND "points">37 AND "drawn"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many games lost for the team that drew 5 times and had over 41 points?`

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

CREATE TABLE "ppl_2005_final_standings" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games lost for the team that drew 5 times and had over 41 points?`:
```sql
                SELECT AVG("lost") FROM "ppl_2005_final_standings" WHERE "drawn"=5 AND "points">41;
```
## Task
Generate a SQL query to answer the following question:
`How many games played for the army team with over 51 points and under 5 games drawn?`

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

CREATE TABLE "ppl_2005_final_standings" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games played for the army team with over 51 points and under 5 games drawn?`:
```sql
                SELECT COUNT("played") FROM "ppl_2005_final_standings" WHERE "drawn"<5 AND "team"='army' AND "points">51;
```
## Task
Generate a SQL query to answer the following question:
`How many points for the navy team that lost over 11?`

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

CREATE TABLE "ppl_2005_final_standings" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for the navy team that lost over 11?`:
```sql
                SELECT SUM("points") FROM "ppl_2005_final_standings" WHERE "team"='navy' AND "lost">11;
```
## Task
Generate a SQL query to answer the following question:
`What class of car had the XI Coppa Acerbo title?`

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

CREATE TABLE "race_winners" (
  "year" text,
  "driver_s" text,
  "class" text,
  "vehicle" text,
  "race_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class of car had the XI Coppa Acerbo title?`:
```sql
                SELECT "class" FROM "race_winners" WHERE "race_title"='xi coppa acerbo';
```
## Task
Generate a SQL query to answer the following question:
`Who won the III Coppa Acerbo title?`

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

CREATE TABLE "race_winners" (
  "year" text,
  "driver_s" text,
  "class" text,
  "vehicle" text,
  "race_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the III Coppa Acerbo title?`:
```sql
                SELECT "driver_s" FROM "race_winners" WHERE "race_title"='iii coppa acerbo';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the title for the Maserati A6GCS?`

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

CREATE TABLE "race_winners" (
  "year" text,
  "driver_s" text,
  "class" text,
  "vehicle" text,
  "race_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the title for the Maserati A6GCS?`:
```sql
                SELECT "race_title" FROM "race_winners" WHERE "vehicle"='maserati a6gcs';
```
## Task
Generate a SQL query to answer the following question:
`Who won the XXIV Gran Premio di Pescara in the sports car class?`

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

CREATE TABLE "race_winners" (
  "year" text,
  "driver_s" text,
  "class" text,
  "vehicle" text,
  "race_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the XXIV Gran Premio di Pescara in the sports car class?`:
```sql
                SELECT "driver_s" FROM "race_winners" WHERE "class"='sports car' AND "race_title"='xxiv gran premio di pescara';
```
## Task
Generate a SQL query to answer the following question:
`What surface was the città di caltanissetta played on?`

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

CREATE TABLE "doubles" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface was the città di caltanissetta played on?`:
```sql
                SELECT "surface" FROM "doubles" WHERE "tournament"='città di caltanissetta';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in Volkswagen Challenger tournament?`

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

CREATE TABLE "doubles" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in Volkswagen Challenger tournament?`:
```sql
                SELECT "score" FROM "doubles" WHERE "tournament"='volkswagen challenger';
```
## Task
Generate a SQL query to answer the following question:
`what is the production in 2010 with 2011 production of 2,240,000?`

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

CREATE TABLE "top_grape_producing_countries_by_years_i" (
  "rank" text,
  "country" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the production in 2010 with 2011 production of 2,240,000?`:
```sql
                SELECT "2010" FROM "top_grape_producing_countries_by_years_i" WHERE "2011"='2,240,000';
```
## Task
Generate a SQL query to answer the following question:
`what is the ranking for 2010 production of 2,903,000?`

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

CREATE TABLE "top_grape_producing_countries_by_years_i" (
  "rank" text,
  "country" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the ranking for 2010 production of 2,903,000?`:
```sql
                SELECT "rank" FROM "top_grape_producing_countries_by_years_i" WHERE "2010"='2,903,000';
```
## Task
Generate a SQL query to answer the following question:
`what is the production in 2010 with rank of 8?`

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

CREATE TABLE "top_grape_producing_countries_by_years_i" (
  "rank" text,
  "country" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the production in 2010 with rank of 8?`:
```sql
                SELECT "2010" FROM "top_grape_producing_countries_by_years_i" WHERE "rank"='8';
```
## Task
Generate a SQL query to answer the following question:
`What club captain is John Hutchinson in?`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club captain is John Hutchinson in?`:
```sql
                SELECT "club" FROM "marquee_player" WHERE "captain"='john hutchinson';
```
## Task
Generate a SQL query to answer the following question:
`What team is Michael McGlinchey vice captain of?`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is Michael McGlinchey vice captain of?`:
```sql
                SELECT "international_marquee" FROM "marquee_player" WHERE "vice_captain"='michael mcglinchey';
```
## Task
Generate a SQL query to answer the following question:
`What Australian Marquee team is Michael Beauchamp a captain of?`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Australian Marquee team is Michael Beauchamp a captain of?`:
```sql
                SELECT "australian_marquee" FROM "marquee_player" WHERE "captain"='michael beauchamp';
```
## Task
Generate a SQL query to answer the following question:
`What Junior Marquee team is Harry Kewell of?`

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

CREATE TABLE "marquee_player" (
  "club" text,
  "australian_marquee" text,
  "international_marquee" text,
  "junior_marquee_player" text,
  "captain" text,
  "vice_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Junior Marquee team is Harry Kewell of?`:
```sql
                SELECT "junior_marquee_player" FROM "marquee_player" WHERE "captain"='harry kewell';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of call sign that uses a Frequency MHz of 91.1 fm?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of call sign that uses a Frequency MHz of 91.1 fm?`:
```sql
                SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz"='91.1 fm';
```
## Task
Generate a SQL query to answer the following question:
`How much is the total ERP W for an 107.9 fm freqeuncy MHz?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the total ERP W for an 107.9 fm freqeuncy MHz?`:
```sql
                SELECT COUNT("erp_w") FROM "translators" WHERE "frequency_m_hz"='107.9 fm';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me what is FCC info for harmony township, new jersey?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me what is FCC info for harmony township, new jersey?`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "city_of_license"='harmony township, new jersey';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest ERP for allentown, pennsylvania?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest ERP for allentown, pennsylvania?`:
```sql
                SELECT MIN("erp_w") FROM "translators" WHERE "city_of_license"='allentown, pennsylvania';
```
## Task
Generate a SQL query to answer the following question:
`Which grid has a time/retired of +3.9 secs in less than 96 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which grid has a time/retired of +3.9 secs in less than 96 laps?`:
```sql
                SELECT AVG("grid") FROM "race" WHERE "time_retired"='+3.9 secs' AND "laps"<96;
```
## Task
Generate a SQL query to answer the following question:
`Which driver has 7 points for team Australia?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver has 7 points for team Australia?`:
```sql
                SELECT "driver" FROM "race" WHERE "points"=7 AND "team"='team australia';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points?`:
```sql
                SELECT MIN("laps") FROM "race" WHERE "team"='dale coyne racing' AND "time_retired"='mechanical' AND "points"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest points total scored by Dan Clarke in a grid higher than 10?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest points total scored by Dan Clarke in a grid higher than 10?`:
```sql
                SELECT MAX("points") FROM "race" WHERE "driver"='dan clarke' AND "grid">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest episode of the series that is set in Boston, Massachusetts?`

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

CREATE TABLE "season_6" (
  "ep_num" real,
  "total" real,
  "title" text,
  "location" text,
  "party_theme" text,
  "airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest episode of the series that is set in Boston, Massachusetts?`:
```sql
                SELECT MIN("total") FROM "season_6" WHERE "location"='boston, massachusetts';
```
## Task
Generate a SQL query to answer the following question:
`How many people were surveyed in the poll from June 30, 2010?`

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

CREATE TABLE "general_election" (
  "poll_source" text,
  "date_s_administered" text,
  "sample_size" text,
  "margin_of_error" text,
  "jerry_brown_d" text,
  "meg_whitman_r" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were surveyed in the poll from June 30, 2010?`:
```sql
                SELECT "sample_size" FROM "general_election" WHERE "date_s_administered"='june 30, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of the vote with a margin of error of ± 3.3% did Meg Whitman (R) get?`

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

CREATE TABLE "general_election" (
  "poll_source" text,
  "date_s_administered" text,
  "sample_size" text,
  "margin_of_error" text,
  "jerry_brown_d" text,
  "meg_whitman_r" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of the vote with a margin of error of ± 3.3% did Meg Whitman (R) get?`:
```sql
                SELECT "meg_whitman_r" FROM "general_election" WHERE "margin_of_error"='± 3.3%';
```
## Task
Generate a SQL query to answer the following question:
`How many people participated in the Rasmussen Reports poll on October 13, 2010?`

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

CREATE TABLE "general_election" (
  "poll_source" text,
  "date_s_administered" text,
  "sample_size" text,
  "margin_of_error" text,
  "jerry_brown_d" text,
  "meg_whitman_r" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people participated in the Rasmussen Reports poll on October 13, 2010?`:
```sql
                SELECT "sample_size" FROM "general_election" WHERE "poll_source"='rasmussen reports' AND "date_s_administered"='october 13, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010.`

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

CREATE TABLE "general_election" (
  "poll_source" text,
  "date_s_administered" text,
  "sample_size" text,
  "margin_of_error" text,
  "jerry_brown_d" text,
  "meg_whitman_r" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010.`:
```sql
                SELECT "meg_whitman_r" FROM "general_election" WHERE "date_s_administered"='october 21, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the Prize, when the Event is Ept Deauville?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Prize, when the Event is Ept Deauville?`:
```sql
                SELECT "prize" FROM "european_poker_tour" WHERE "event"='ept deauville';
```
## Task
Generate a SQL query to answer the following question:
`What is the City, when the Prize is €880,000?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the City, when the Prize is €880,000?`:
```sql
                SELECT "city" FROM "european_poker_tour" WHERE "prize"='€880,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the City, when the Winner is Ruben Visser?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the City, when the Winner is Ruben Visser?`:
```sql
                SELECT "city" FROM "european_poker_tour" WHERE "winner"='ruben visser';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Winner, when the Prize is €880,000?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Winner, when the Prize is €880,000?`:
```sql
                SELECT "winner" FROM "european_poker_tour" WHERE "prize"='€880,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the City, when the Prize is $1,859,000?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the City, when the Prize is $1,859,000?`:
```sql
                SELECT "city" FROM "european_poker_tour" WHERE "prize"='$1,859,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Prize, when the Event is Ept Sanremo?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Prize, when the Event is Ept Sanremo?`:
```sql
                SELECT "prize" FROM "european_poker_tour" WHERE "event"='ept sanremo';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the venue at Edgbaston?`

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

CREATE TABLE "west_indies_in_england" (
  "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 Edgbaston?`:
```sql
                SELECT "date" FROM "west_indies_in_england" WHERE "venue"='edgbaston';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest image with a 20w Harrison, and less than 20 for Ashmolean?`

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

CREATE TABLE "reconstruction_in_the_british_museum" (
  "image" real,
  "smith" text,
  "ashmolean" real,
  "foster" real,
  "hahland" real,
  "dinsmoor" text,
  "hofkes_brukker" text,
  "harrison" text,
  "cooper" text,
  "bm_corbett" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest image with a 20w Harrison, and less than 20 for Ashmolean?`:
```sql
                SELECT MIN("image") FROM "reconstruction_in_the_british_museum" WHERE "harrison"='20w' AND "ashmolean"<20;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Ashmolean with 14s Harrison, and image less than 542?`

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

CREATE TABLE "reconstruction_in_the_british_museum" (
  "image" real,
  "smith" text,
  "ashmolean" real,
  "foster" real,
  "hahland" real,
  "dinsmoor" text,
  "hofkes_brukker" text,
  "harrison" text,
  "cooper" text,
  "bm_corbett" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Ashmolean with 14s Harrison, and image less than 542?`:
```sql
                SELECT COUNT("ashmolean") FROM "reconstruction_in_the_british_museum" WHERE "harrison"='14s' AND "image"<542;
```
## Task
Generate a SQL query to answer the following question:
`What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?`

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

CREATE TABLE "reconstruction_in_the_british_museum" (
  "image" real,
  "smith" text,
  "ashmolean" real,
  "foster" real,
  "hahland" real,
  "dinsmoor" text,
  "hofkes_brukker" text,
  "harrison" text,
  "cooper" text,
  "bm_corbett" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?`:
```sql
                SELECT "cooper" FROM "reconstruction_in_the_british_museum" WHERE "ashmolean"<21 AND "hahland"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the smith with a 16 ashmolean?`

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

CREATE TABLE "reconstruction_in_the_british_museum" (
  "image" real,
  "smith" text,
  "ashmolean" real,
  "foster" real,
  "hahland" real,
  "dinsmoor" text,
  "hofkes_brukker" text,
  "harrison" text,
  "cooper" text,
  "bm_corbett" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smith with a 16 ashmolean?`:
```sql
                SELECT "smith" FROM "reconstruction_in_the_british_museum" WHERE "ashmolean"=16;
```
## Task
Generate a SQL query to answer the following question:
`What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?`

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

CREATE TABLE "rodentia" (
  "name" text,
  "species_authority" text,
  "order" text,
  "family" text,
  "red_list" real
);
### SQL
Given the database schema, here is the SQL query that answers `What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?`:
```sql
                SELECT "order" FROM "rodentia" WHERE "species_authority"='hydrochaeris hydrochaeris (linnaeus, 1766)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)?`

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

CREATE TABLE "rodentia" (
  "name" text,
  "species_authority" text,
  "order" text,
  "family" text,
  "red_list" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)?`:
```sql
                SELECT MAX("red_list") FROM "rodentia" WHERE "family"='muridae' AND "species_authority"='microtus pinetorum (le conte, 1830)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for the species Authority of sigmodon hispidus say & ord, 1825?`

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

CREATE TABLE "rodentia" (
  "name" text,
  "species_authority" text,
  "order" text,
  "family" text,
  "red_list" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the species Authority of sigmodon hispidus say & ord, 1825?`:
```sql
                SELECT "name" FROM "rodentia" WHERE "species_authority"='sigmodon hispidus say & ord, 1825';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest total with a Silver of 1, and a Rank larger than 7?`

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

CREATE TABLE "medal_standings" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest total with a Silver of 1, and a Rank larger than 7?`:
```sql
                SELECT MAX("total") FROM "medal_standings" WHERE "silver"=1 AND "rank">7;
```
## Task
Generate a SQL query to answer the following question:
`How many totals have a Bronze smaller than 3, a Nation of zimbabwe, and a Silver smaller than 6?`

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

CREATE TABLE "medal_standings" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many totals have a Bronze smaller than 3, a Nation of zimbabwe, and a Silver smaller than 6?`:
```sql
                SELECT COUNT("total") FROM "medal_standings" WHERE "bronze"<3 AND "nation"='zimbabwe' AND "silver"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest silver with a Bronze smaller than 6, a Total of 3, and a Rank smaller than 9?`

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

CREATE TABLE "medal_standings" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest silver with a Bronze smaller than 6, a Total of 3, and a Rank smaller than 9?`:
```sql
                SELECT MIN("silver") FROM "medal_standings" WHERE "bronze"<6 AND "total"=3 AND "rank"<9;
```
## Task
Generate a SQL query to answer the following question:
`How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1?`

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

CREATE TABLE "medal_standings" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1?`:
```sql
                SELECT COUNT("rank") FROM "medal_standings" WHERE "gold"=0 AND "nation"='namibia' AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many totals have a Bronze of 0, and a Gold smaller than 0?`

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

CREATE TABLE "medal_standings" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many totals have a Bronze of 0, and a Gold smaller than 0?`:
```sql
                SELECT SUM("total") FROM "medal_standings" WHERE "bronze"=0 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total silver with a Rank larger than 9, and a Total larger than 1?`

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

CREATE TABLE "medal_standings" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total silver with a Rank larger than 9, and a Total larger than 1?`:
```sql
                SELECT SUM("silver") FROM "medal_standings" WHERE "rank">9 AND "total">1;
```
## Task
Generate a SQL query to answer the following question:
`Which language do 1% of males speak?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which language do 1% of males speak?`:
```sql
                SELECT "percentage_pct" FROM "language" WHERE "males"='1';
```
## Task
Generate a SQL query to answer the following question:
`Which language do 87.5% of males speak?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which language do 87.5% of males speak?`:
```sql
                SELECT "males" FROM "language" WHERE "percentage_pct"='87.5';
```
## Task
Generate a SQL query to answer the following question:
`Which language do 706 females speak?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which language do 706 females speak?`:
```sql
                SELECT "females" FROM "language" WHERE "number"='706';
```
## Task
Generate a SQL query to answer the following question:
`How many females speak Ukrainian?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many females speak Ukrainian?`:
```sql
                SELECT "females" FROM "language" WHERE "language"='ukrainian';
```
## Task
Generate a SQL query to answer the following question:
`What were the names of the mixed doubles pair for the year that Ralph Nichols played in the men's singles match?`

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

CREATE TABLE "winners" (
  "year" text,
  "men_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 were the names of the mixed doubles pair for the year that Ralph Nichols played in the men's singles match?`:
```sql
                SELECT "mixed_doubles" FROM "winners" WHERE "men_s_singles"='ralph nichols';
```
## Task
Generate a SQL query to answer the following question:
`Who were the women's doubles pair in 1952?`

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

CREATE TABLE "winners" (
  "year" text,
  "men_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 `Who were the women's doubles pair in 1952?`:
```sql
                SELECT "women_s_doubles" FROM "winners" WHERE "year"='1952';
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the team that had a goal difference of less than -11 and played less than 38 games?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the team that had a goal difference of less than -11 and played less than 38 games?`:
```sql
                SELECT SUM("position") FROM "final_table" WHERE "goal_difference"<-11 AND "played"<38;
```
## Task
Generate a SQL query to answer the following question:
`Which position had a goal difference of less than 27, lost more than 13 games, scored less than 42 goals and drew 6 games?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which position had a goal difference of less than 27, lost more than 13 games, scored less than 42 goals and drew 6 games?`:
```sql
                SELECT MAX("played") FROM "final_table" WHERE "goal_difference"<27 AND "losses">13 AND "goals_for"<42 AND "draws"=6;
```
## Task
Generate a SQL query to answer the following question:
`What was the number of wins with goals against of less than 32?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of wins with goals against of less than 32?`:
```sql
                SELECT COUNT("wins") FROM "final_table" WHERE "goals_against"<32;
```
## Task
Generate a SQL query to answer the following question:
`How many Antonov An-2 Colt aircraft are in service?`

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

CREATE TABLE "aircraft_inventory" (
  "aircraft" text,
  "origin" text,
  "type" text,
  "versions" text,
  "in_service" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Antonov An-2 Colt aircraft are in service?`:
```sql
                SELECT AVG("in_service") FROM "aircraft_inventory" WHERE "aircraft"='antonov an-2 colt';
```
## Task
Generate a SQL query to answer the following question:
`What 7:30 has 8:00 risk takers?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 7:30 has 8:00 risk takers?`:
```sql
                SELECT "7_30" FROM "saturday" WHERE "8_00"='risk takers';
```
## Task
Generate a SQL query to answer the following question:
`What 7:00 has 7:30 movies?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 7:00 has 7:30 movies?`:
```sql
                SELECT "7_00" FROM "saturday" WHERE "7_30"='movies';
```
## Task
Generate a SQL query to answer the following question:
`What 7:00 has 8:00 risk takers?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 7:00 has 8:00 risk takers?`:
```sql
                SELECT "7_00" FROM "saturday" WHERE "8_00"='risk takers';
```
## Task
Generate a SQL query to answer the following question:
`What 7:00 has a 7:30 of w-five?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 7:00 has a 7:30 of w-five?`:
```sql
                SELECT "7_00" FROM "saturday" WHERE "7_30"='w-five';
```
## Task
Generate a SQL query to answer the following question:
`for the position of rb what is the name?`

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

CREATE TABLE "injured_players" (
  "position" text,
  "number" real,
  "name" text,
  "class" text,
  "injury_status" text,
  "last_update" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the position of rb what is the name?`:
```sql
                SELECT "name" FROM "injured_players" WHERE "position"='rb';
```
## Task
Generate a SQL query to answer the following question:
`for the name of joe surratt what is the last update?`

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

CREATE TABLE "injured_players" (
  "position" text,
  "number" real,
  "name" text,
  "class" text,
  "injury_status" text,
  "last_update" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the name of joe surratt what is the last update?`:
```sql
                SELECT "last_update" FROM "injured_players" WHERE "name"='joe surratt';
```