cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was in external affairs when Jakki Doyle was in Human Resources & Operations?`

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

CREATE TABLE "executive_commissioners" (
  "year" text,
  "human_resources_operations" text,
  "local_affairs" text,
  "academic_university_affairs" text,
  "external_affairs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in external affairs when Jakki Doyle was in Human Resources & Operations?`:
```sql
                SELECT "external_affairs" FROM "executive_commissioners" WHERE "human_resources_operations"='jakki doyle';
```
## Task
Generate a SQL query to answer the following question:
`Who was in local affairs in 2012-2013?`

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

CREATE TABLE "executive_commissioners" (
  "year" text,
  "human_resources_operations" text,
  "local_affairs" text,
  "academic_university_affairs" text,
  "external_affairs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in local affairs in 2012-2013?`:
```sql
                SELECT "local_affairs" FROM "executive_commissioners" WHERE "year"='2012-2013';
```
## Task
Generate a SQL query to answer the following question:
`Who was in Academic & University Affairs when Andrew Langille  was in local affairs?`

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

CREATE TABLE "executive_commissioners" (
  "year" text,
  "human_resources_operations" text,
  "local_affairs" text,
  "academic_university_affairs" text,
  "external_affairs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in Academic & University Affairs when Andrew Langille  was in local affairs?`:
```sql
                SELECT "academic_university_affairs" FROM "executive_commissioners" WHERE "local_affairs"='andrew langille';
```
## Task
Generate a SQL query to answer the following question:
`Which Perth's gold coast and Adelaide were yes when Auckland was no?`

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

CREATE TABLE "1994" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Perth's gold coast and Adelaide were yes when Auckland was no?`:
```sql
                SELECT "perth" FROM "1994" WHERE "gold_coast"='yes' AND "adelaide"='yes' AND "auckland"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no?`

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

CREATE TABLE "1994" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no?`:
```sql
                SELECT "melbourne" FROM "1994" WHERE "gold_coast"='yes' AND "adelaide"='no' AND "sydney"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Adelaide's Melbourne and Perth were yes when Auckland was no?`

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

CREATE TABLE "1994" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Adelaide's Melbourne and Perth were yes when Auckland was no?`:
```sql
                SELECT "adelaide" FROM "1994" WHERE "melbourne"='yes' AND "auckland"='no' AND "perth"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Sydney's Melbourne was no, when Auckland was yes?`

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

CREATE TABLE "1994" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sydney's Melbourne was no, when Auckland was yes?`:
```sql
                SELECT "sydney" FROM "1994" WHERE "melbourne"='no' AND "auckland"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Syndney's Gold coast, Adelaide, Melbourne, and Auckland were all no?`

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

CREATE TABLE "1994" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Syndney's Gold coast, Adelaide, Melbourne, and Auckland were all no?`:
```sql
                SELECT "sydney" FROM "1994" WHERE "gold_coast"='no' AND "adelaide"='no' AND "melbourne"='no' AND "auckland"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?`

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

CREATE TABLE "1994" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?`:
```sql
                SELECT "adelaide" FROM "1994" WHERE "melbourne"='no' AND "sydney"='no' AND "gold_coast"='no';
```
## Task
Generate a SQL query to answer the following question:
`Name the date which has type of plain stage`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date which has type of plain stage`:
```sql
                SELECT "date" FROM "stage_results" WHERE "type"='plain stage';
```
## Task
Generate a SQL query to answer the following question:
`Name the distance for Course of vittorio veneto to marina romea`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the distance for Course of vittorio veneto to marina romea`:
```sql
                SELECT "distance" FROM "stage_results" WHERE "course"='vittorio veneto to marina romea';
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner that played a match on a grass court?`

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

CREATE TABLE "doubles_6_3_titles_3_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner that played a match on a grass court?`:
```sql
                SELECT "partner" FROM "doubles_6_3_titles_3_runners_up" WHERE "surface"='grass';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the match in which mardy fish was the partner?`

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

CREATE TABLE "doubles_6_3_titles_3_runners_up" (
  "outcome" text,
  "date" 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 of the match in which mardy fish was the partner?`:
```sql
                SELECT "score" FROM "doubles_6_3_titles_3_runners_up" WHERE "partner"='mardy fish';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents in the match that was played on a hard court and had a runner-up outcome?`

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

CREATE TABLE "doubles_6_3_titles_3_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents in the match that was played on a hard court and had a runner-up outcome?`:
```sql
                SELECT "opponents" FROM "doubles_6_3_titles_3_runners_up" WHERE "surface"='hard' AND "outcome"='runner-up';
```
## Task
Generate a SQL query to answer the following question:
`What is the time when the opponent is phil collins?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time when the opponent is phil collins?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='phil collins';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of rounds when method is tko (punches) and time is 0:40?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of rounds when method is tko (punches) and time is 0:40?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "method"='tko (punches)' AND "time"='0:40';
```
## Task
Generate a SQL query to answer the following question:
`what is the method when the time is 0:51?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the method when the time is 0:51?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='0:51';
```
## Task
Generate a SQL query to answer the following question:
`what is the time when the event is bellator 89?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the time when the event is bellator 89?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='bellator 89';
```
## Task
Generate a SQL query to answer the following question:
`Name the average debt as % of value for operating income more than -16 and % change on year being 62`

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

CREATE TABLE "2009_rankings" (
  "rank" real,
  "team" text,
  "country" text,
  "value_m" real,
  "debt_as_pct_of_value" real,
  "pct_change_on_year" text,
  "revenue_m" real,
  "operating_income_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average debt as % of value for operating income more than -16 and % change on year being 62`:
```sql
                SELECT AVG("debt_as_pct_of_value") FROM "2009_rankings" WHERE "pct_change_on_year"='62' AND "operating_income_m">-16;
```
## Task
Generate a SQL query to answer the following question:
`Name the country where % change on year is 21 and value is less than 86`

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

CREATE TABLE "2009_rankings" (
  "rank" real,
  "team" text,
  "country" text,
  "value_m" real,
  "debt_as_pct_of_value" real,
  "pct_change_on_year" text,
  "revenue_m" real,
  "operating_income_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country where % change on year is 21 and value is less than 86`:
```sql
                SELECT "country" FROM "2009_rankings" WHERE "debt_as_pct_of_value"<86 AND "pct_change_on_year"='21';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of revenue for italy with team of internazionale with operating income less than 27`

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

CREATE TABLE "2009_rankings" (
  "rank" real,
  "team" text,
  "country" text,
  "value_m" real,
  "debt_as_pct_of_value" real,
  "pct_change_on_year" text,
  "revenue_m" real,
  "operating_income_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of revenue for italy with team of internazionale with operating income less than 27`:
```sql
                SELECT COUNT("revenue_m") FROM "2009_rankings" WHERE "country"='italy' AND "team"='internazionale' AND "operating_income_m"<27;
```
## Task
Generate a SQL query to answer the following question:
`Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0`

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

CREATE TABLE "2009_rankings" (
  "rank" real,
  "team" text,
  "country" text,
  "value_m" real,
  "debt_as_pct_of_value" real,
  "pct_change_on_year" text,
  "revenue_m" real,
  "operating_income_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0`:
```sql
                SELECT MAX("revenue_m") FROM "2009_rankings" WHERE "operating_income_m">27 AND "team"='hamburg' AND "debt_as_pct_of_value"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the result for an H/A of H and a round value of R6 replay?`

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

CREATE TABLE "1989_90_liverpool_f_c_season" (
  "round" text,
  "kick_off" text,
  "opponents" text,
  "h_a" text,
  "result" text,
  "attendance" real,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for an H/A of H and a round value of R6 replay?`:
```sql
                SELECT "result" FROM "1989_90_liverpool_f_c_season" WHERE "h_a"='h' AND "round"='r6 replay';
```
## Task
Generate a SQL query to answer the following question:
`What was the kickoff date for the round value of R4?`

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

CREATE TABLE "1989_90_liverpool_f_c_season" (
  "round" text,
  "kick_off" text,
  "opponents" text,
  "h_a" text,
  "result" text,
  "attendance" real,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the kickoff date for the round value of R4?`:
```sql
                SELECT "kick_off" FROM "1989_90_liverpool_f_c_season" WHERE "round"='r4';
```
## Task
Generate a SQL query to answer the following question:
`What country was Henry Picard from?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was Henry Picard from?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='henry picard';
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of inversions for opened of april 20, 2002`

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

CREATE TABLE "installations" (
  "name" text,
  "park" text,
  "country" text,
  "inversions" real,
  "opened" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of inversions for opened of april 20, 2002`:
```sql
                SELECT SUM("inversions") FROM "installations" WHERE "opened"='april 20, 2002';
```
## Task
Generate a SQL query to answer the following question:
`Name the opened for spain`

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

CREATE TABLE "installations" (
  "name" text,
  "park" text,
  "country" text,
  "inversions" real,
  "opened" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opened for spain`:
```sql
                SELECT "opened" FROM "installations" WHERE "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`Name the status for six flags new england`

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

CREATE TABLE "installations" (
  "name" text,
  "park" text,
  "country" text,
  "inversions" real,
  "opened" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the status for six flags new england`:
```sql
                SELECT "status" FROM "installations" WHERE "park"='six flags new england';
```
## Task
Generate a SQL query to answer the following question:
`Name the to par with money of 200,000 for australia`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the to par with money of 200,000 for australia`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "money"='200,000' AND "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`Name the money for ireland`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the money for ireland`:
```sql
                SELECT "money" FROM "final_round" WHERE "country"='ireland';
```
## Task
Generate a SQL query to answer the following question:
`Name the money for pádraig harrington`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the money for pádraig harrington`:
```sql
                SELECT "money" FROM "final_round" WHERE "player"='pádraig harrington';
```
## Task
Generate a SQL query to answer the following question:
`Name the to par for score of 69-73-68-70=280`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the to par for score of 69-73-68-70=280`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "score"='69-73-68-70=280';
```
## Task
Generate a SQL query to answer the following question:
`Name the money for the to par of -6`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the money for the to par of -6`:
```sql
                SELECT "money" FROM "final_round" WHERE "to_par"='-6';
```
## Task
Generate a SQL query to answer the following question:
`On what date or dates did the term with the Centre Party end?`

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

CREATE TABLE "list_of_health_minsters" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date or dates did the term with the Centre Party end?`:
```sql
                SELECT "term_end" FROM "list_of_health_minsters" WHERE "party"='centre party';
```
## Task
Generate a SQL query to answer the following question:
`When did the term end for the term that had government 27 and Minister Tzachi Hanegbi?`

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

CREATE TABLE "list_of_health_minsters" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the term end for the term that had government 27 and Minister Tzachi Hanegbi?`:
```sql
                SELECT "term_end" FROM "list_of_health_minsters" WHERE "governments"='27' AND "minister"='tzachi hanegbi';
```
## Task
Generate a SQL query to answer the following question:
`What is the location/state of the race on the Wanneroo raceway?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location/state of the race on the Wanneroo raceway?`:
```sql
                SELECT "location_state" FROM "race_calendar" WHERE "circuit"='wanneroo raceway';
```
## Task
Generate a SQL query to answer the following question:
`What is the location/state of the Launceston race?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location/state of the Launceston race?`:
```sql
                SELECT "location_state" FROM "race_calendar" WHERE "race_title"='launceston';
```
## Task
Generate a SQL query to answer the following question:
`What is the team of winner Dick Johnson?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team of winner Dick Johnson?`:
```sql
                SELECT "team" FROM "race_calendar" WHERE "winner"='dick johnson';
```
## Task
Generate a SQL query to answer the following question:
`What is the race title of the Oran Park raceway circuit with team jps team bmw?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the race title of the Oran Park raceway circuit with team jps team bmw?`:
```sql
                SELECT "race_title" FROM "race_calendar" WHERE "team"='jps team bmw' AND "circuit"='oran park raceway';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of population hervey bay with population woocoo less than 640 and population of maryborough less than 19,257`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_maryborough" real,
  "population_hervey_bay" real,
  "population_woocoo" real,
  "population_tiaro" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of population hervey bay with population woocoo less than 640 and population of maryborough less than 19,257`:
```sql
                SELECT COUNT("population_hervey_bay") FROM "population" WHERE "population_woocoo"<640 AND "population_maryborough"<'19,257';
```
## Task
Generate a SQL query to answer the following question:
`Name the average population hervey bay with population maryborough more than 11,415 and population region total less than 48,308 and population tiaro less than 2,066 and population woocoo of 491`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_maryborough" real,
  "population_hervey_bay" real,
  "population_woocoo" real,
  "population_tiaro" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average population hervey bay with population maryborough more than 11,415 and population region total less than 48,308 and population tiaro less than 2,066 and population woocoo of 491`:
```sql
                SELECT AVG("population_hervey_bay") FROM "population" WHERE "population_maryborough">'11,415' AND "population_region_total"<'48,308' AND "population_tiaro"<'2,066' AND "population_woocoo"=491;
```
## Task
Generate a SQL query to answer the following question:
`Name the most population hervey bay for when population maryborough of 22,977 and population tiaro less than 3,287`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_maryborough" real,
  "population_hervey_bay" real,
  "population_woocoo" real,
  "population_tiaro" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most population hervey bay for when population maryborough of 22,977 and population tiaro less than 3,287`:
```sql
                SELECT MAX("population_hervey_bay") FROM "population" WHERE "population_maryborough"='22,977' AND "population_tiaro"<'3,287';
```
## Task
Generate a SQL query to answer the following question:
`Name the least year for population woocoo more than 750 and population region total more than 74,210 with population tiaro of 4,449 and population maryborough less than 24,465`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_maryborough" real,
  "population_hervey_bay" real,
  "population_woocoo" real,
  "population_tiaro" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least year for population woocoo more than 750 and population region total more than 74,210 with population tiaro of 4,449 and population maryborough less than 24,465`:
```sql
                SELECT MIN("year") FROM "population" WHERE "population_woocoo">750 AND "population_region_total">'74,210' AND "population_tiaro"='4,449' AND "population_maryborough"<'24,465';
```
## Task
Generate a SQL query to answer the following question:
`Which manufacturer made Shoya Tomizawa's motorcycle?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer made Shoya Tomizawa's motorcycle?`:
```sql
                SELECT "manufacturer" FROM "125cc_classification" WHERE "rider"='shoya tomizawa';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were ridden in the race that had a Time/Retired of +37.351?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were ridden in the race that had a Time/Retired of +37.351?`:
```sql
                SELECT COUNT("laps") FROM "125cc_classification" WHERE "time_retired"='+37.351';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did Mattia Pasini ride?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did Mattia Pasini ride?`:
```sql
                SELECT MIN("laps") FROM "125cc_classification" WHERE "rider"='mattia pasini';
```
## Task
Generate a SQL query to answer the following question:
`What position does the player who has made 244 appearances with a Leeds career of 1981–1989 play?`

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

CREATE TABLE "notable_players" (
  "nationality" text,
  "position" text,
  "leeds_career" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player who has made 244 appearances with a Leeds career of 1981–1989 play?`:
```sql
                SELECT "position" FROM "notable_players" WHERE "appearances"=244 AND "leeds_career"='1981–1989';
```
## Task
Generate a SQL query to answer the following question:
`What position does the Wales player who made more than 167 appearances, had more than 0 goals, and had a Leeds career from 1977–1982 play?`

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

CREATE TABLE "notable_players" (
  "nationality" text,
  "position" text,
  "leeds_career" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the Wales player who made more than 167 appearances, had more than 0 goals, and had a Leeds career from 1977–1982 play?`:
```sql
                SELECT "position" FROM "notable_players" WHERE "appearances">167 AND "nationality"='wales' AND "goals">0 AND "leeds_career"='1977–1982';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals for a player who had a Leeds career from 1960–1964 and made fewer than 120 appearances?`

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

CREATE TABLE "notable_players" (
  "nationality" text,
  "position" text,
  "leeds_career" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of goals for a player who had a Leeds career from 1960–1964 and made fewer than 120 appearances?`:
```sql
                SELECT AVG("goals") FROM "notable_players" WHERE "leeds_career"='1960–1964' AND "appearances"<120;
```
## Task
Generate a SQL query to answer the following question:
`Who attended the school in 2008, that Deandria Hill attended in 2005?`

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

CREATE TABLE "alma_mater" (
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who attended the school in 2008, that Deandria Hill attended in 2005?`:
```sql
                SELECT "2008" FROM "alma_mater" WHERE "2005"='deandria hill';
```
## Task
Generate a SQL query to answer the following question:
`Who attended the school in 2006, that Jasmine Wilson attended in 2005?`

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

CREATE TABLE "alma_mater" (
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who attended the school in 2006, that Jasmine Wilson attended in 2005?`:
```sql
                SELECT "2006" FROM "alma_mater" WHERE "2005"='jasmine wilson';
```
## Task
Generate a SQL query to answer the following question:
`Who attended the school in 2009, that Lakita Hall attended in 2007?`

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

CREATE TABLE "alma_mater" (
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who attended the school in 2009, that Lakita Hall attended in 2007?`:
```sql
                SELECT "2009" FROM "alma_mater" WHERE "2007"='lakita hall';
```
## Task
Generate a SQL query to answer the following question:
`Who attended the school in 2007, that Kiara Spivey attended in 2008?`

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

CREATE TABLE "alma_mater" (
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who attended the school in 2007, that Kiara Spivey attended in 2008?`:
```sql
                SELECT "2007" FROM "alma_mater" WHERE "2008"='kiara spivey';
```
## Task
Generate a SQL query to answer the following question:
`Who attended the school in 2006, that Whitney Powell attended in 2007?`

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

CREATE TABLE "alma_mater" (
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who attended the school in 2006, that Whitney Powell attended in 2007?`:
```sql
                SELECT "2006" FROM "alma_mater" WHERE "2007"='whitney powell';
```
## Task
Generate a SQL query to answer the following question:
`Who attended the school in 2008, that Brikajdri Wilson attended in 2006?`

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

CREATE TABLE "alma_mater" (
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who attended the school in 2008, that Brikajdri Wilson attended in 2006?`:
```sql
                SELECT "2008" FROM "alma_mater" WHERE "2006"='brikajdri wilson';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of a swimmer named Elizabeth Van Welie with a lane larger than 5?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of a swimmer named Elizabeth Van Welie with a lane larger than 5?`:
```sql
                SELECT MIN("rank") FROM "semifinal_1" WHERE "lane">5 AND "name"='elizabeth van welie';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the swimmer with a time of 2:11.83?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the swimmer with a time of 2:11.83?`:
```sql
                SELECT "rank" FROM "semifinal_1" WHERE "time"='2:11.83';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1?`:
```sql
                SELECT MIN("lane") FROM "semifinal_1" WHERE "time"='2:07.57' AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the swimmer named Petria Thomas?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the swimmer named Petria Thomas?`:
```sql
                SELECT "rank" FROM "semifinal_1" WHERE "name"='petria thomas';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance when the group position was 3rd?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in attendance when the group position was 3rd?`:
```sql
                SELECT "attendance" FROM "group_stage" WHERE "group_position"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score agains Dynamo Kyiv, when the group position was 1st?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score agains Dynamo Kyiv, when the group position was 1st?`:
```sql
                SELECT "result_f_a" FROM "group_stage" WHERE "group_position"='1st' AND "opponents"='dynamo kyiv';
```
## Task
Generate a SQL query to answer the following question:
`What was the average attendance on 18 October 2000?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average attendance on 18 October 2000?`:
```sql
                SELECT AVG("attendance") FROM "group_stage" WHERE "date"='18 october 2000';
```
## Task
Generate a SQL query to answer the following question:
`In 2007, what player won player of the year?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 2007, what player won player of the year?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='2007';
```
## Task
Generate a SQL query to answer the following question:
`What year(s) did Mike Weir win player of the year?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year(s) did Mike Weir win player of the year?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "player"='mike weir';
```
## Task
Generate a SQL query to answer the following question:
`The To par of +14 was won in what year(s)?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `The To par of +14 was won in what year(s)?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+14';
```
## Task
Generate a SQL query to answer the following question:
`What is the result when the competition is 1982 president's cup?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result when the competition is 1982 president's cup?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "competition"='1982 president''s cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the score when the date is December 14, 1985?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when the date is December 14, 1985?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='december 14, 1985';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue when the date is September 24, 1980?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when the date is September 24, 1980?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='september 24, 1980';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue when the result is 2-0, and the score is 1 goal, and the competition is 1980 afc asian cup?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when the result is 2-0, and the score is 1 goal, and the competition is 1980 afc asian cup?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "result"='2-0' AND "score"='1 goal' AND "competition"='1980 afc asian cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue when the score is 1 goal, and the date is August 27, 1980?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when the score is 1 goal, and the date is August 27, 1980?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "score"='1 goal' AND "date"='august 27, 1980';
```
## Task
Generate a SQL query to answer the following question:
`What is the result when the date is August 27, 1980?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result when the date is August 27, 1980?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='august 27, 1980';
```
## Task
Generate a SQL query to answer the following question:
`What year shows the Entrant of bmw motorsport?`

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

CREATE TABLE "complete_european_formula_two_championsh" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year shows the Entrant of bmw motorsport?`:
```sql
                SELECT SUM("year") FROM "complete_european_formula_two_championsh" WHERE "entrant"='bmw motorsport';
```
## Task
Generate a SQL query to answer the following question:
`Which Entrant of stp march engineering scored the lowest points?`

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

CREATE TABLE "complete_european_formula_two_championsh" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Entrant of stp march engineering scored the lowest points?`:
```sql
                SELECT MIN("points") FROM "complete_european_formula_two_championsh" WHERE "entrant"='stp march engineering';
```
## Task
Generate a SQL query to answer the following question:
`What year had the Chassis of march 762 and more than 0 points?`

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

CREATE TABLE "complete_european_formula_two_championsh" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year had the Chassis of march 762 and more than 0 points?`:
```sql
                SELECT COUNT("year") FROM "complete_european_formula_two_championsh" WHERE "chassis"='march 762' AND "points">0;
```
## Task
Generate a SQL query to answer the following question:
`Which engine of bmw had the lowest points and chassis of march 792 that is newer than 1979?`

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

CREATE TABLE "complete_european_formula_two_championsh" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine of bmw had the lowest points and chassis of march 792 that is newer than 1979?`:
```sql
                SELECT MIN("points") FROM "complete_european_formula_two_championsh" WHERE "engine"='bmw' AND "chassis"='march 792' AND "year">1979;
```
## Task
Generate a SQL query to answer the following question:
`Name the record when the attendance was more than 20,228 and rockies was the opponent on june 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,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record when the attendance was more than 20,228 and rockies was the opponent on june 8`:
```sql
                SELECT "record" FROM "game_log" WHERE "attendance">'20,228' AND "opponent"='rockies' AND "date"='june 8';
```