cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0?`:
```sql
                SELECT MIN("sack") FROM "defense" WHERE "solo"=24 AND "tackles">25.5 AND "yards">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Solo with a Player with sean mcinerney, and Yards larger than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Solo with a Player with sean mcinerney, and Yards larger than 0?`:
```sql
                SELECT COUNT("solo") FROM "defense" WHERE "player"='sean mcinerney' AND "yards">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Sack with an Assisted larger than 4, with TD's smaller than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Sack with an Assisted larger than 4, with TD's smaller than 0?`:
```sql
                SELECT MAX("sack") FROM "defense" WHERE "assisted">4 AND "td_s"<0;
```
## Task
Generate a SQL query to answer the following question:
`At the power plant located in ramakkalmedu, what is the sum of the total capacity (MWe)?`

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

CREATE TABLE "projects_in_india" (
  "power_plant" text,
  "producer" text,
  "location" text,
  "state" text,
  "total_capacity_m_we" real
);
### SQL
Given the database schema, here is the SQL query that answers `At the power plant located in ramakkalmedu, what is the sum of the total capacity (MWe)?`:
```sql
                SELECT SUM("total_capacity_m_we") FROM "projects_in_india" WHERE "power_plant"='ramakkalmedu';
```
## Task
Generate a SQL query to answer the following question:
`What company is the producer in the chennai mohan power plant?`

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

CREATE TABLE "projects_in_india" (
  "power_plant" text,
  "producer" text,
  "location" text,
  "state" text,
  "total_capacity_m_we" real
);
### SQL
Given the database schema, here is the SQL query that answers `What company is the producer in the chennai mohan power plant?`:
```sql
                SELECT "producer" FROM "projects_in_india" WHERE "power_plant"='chennai mohan';
```
## Task
Generate a SQL query to answer the following question:
`What company is the producer at the poolavadi location`

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

CREATE TABLE "projects_in_india" (
  "power_plant" text,
  "producer" text,
  "location" text,
  "state" text,
  "total_capacity_m_we" real
);
### SQL
Given the database schema, here is the SQL query that answers `What company is the producer at the poolavadi location`:
```sql
                SELECT "producer" FROM "projects_in_india" WHERE "location"='poolavadi';
```
## Task
Generate a SQL query to answer the following question:
`What company is known as the producer at the kethanur location?`

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

CREATE TABLE "projects_in_india" (
  "power_plant" text,
  "producer" text,
  "location" text,
  "state" text,
  "total_capacity_m_we" real
);
### SQL
Given the database schema, here is the SQL query that answers `What company is known as the producer at the kethanur location?`:
```sql
                SELECT "producer" FROM "projects_in_india" WHERE "location"='kethanur';
```
## Task
Generate a SQL query to answer the following question:
`Which away team scored 18.11 (119)?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team scored 18.11 (119)?`:
```sql
                SELECT "away_team" FROM "round_22" WHERE "away_team_score"='18.11 (119)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team scored 18.11 (119)?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team scored 18.11 (119)?`:
```sql
                SELECT "home_team" FROM "round_22" WHERE "home_team_score"='18.11 (119)';
```
## Task
Generate a SQL query to answer the following question:
`When the duration was 11 min, 34 sec, what was the feathered (Fxx)?`

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

CREATE TABLE "list_of_test_flights" (
  "flight_designation" text,
  "date" text,
  "duration" text,
  "pilot_co_pilot" text,
  "feathered_fxx" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the duration was 11 min, 34 sec, what was the feathered (Fxx)?`:
```sql
                SELECT "feathered_fxx" FROM "list_of_test_flights" WHERE "duration"='11 min, 34 sec';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the city for guelferbytanus b and the 5th`

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

CREATE TABLE "uncials_with_sigla" (
  "sign" text,
  "name" text,
  "date" text,
  "content" text,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the city for guelferbytanus b and the 5th`:
```sql
                SELECT "city" FROM "uncials_with_sigla" WHERE "date"='5th' AND "name"='guelferbytanus b';
```
## Task
Generate a SQL query to answer the following question:
`Name the country for the 9th and sign of g e`

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

CREATE TABLE "uncials_with_sigla" (
  "sign" text,
  "name" text,
  "date" text,
  "content" text,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for the 9th and sign of g e`:
```sql
                SELECT "country" FROM "uncials_with_sigla" WHERE "date"='9th' AND "sign"='g e';
```
## Task
Generate a SQL query to answer the following question:
`Name the content for sign of g e`

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

CREATE TABLE "uncials_with_sigla" (
  "sign" text,
  "name" text,
  "date" text,
  "content" text,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the content for sign of g e`:
```sql
                SELECT "content" FROM "uncials_with_sigla" WHERE "sign"='g e';
```
## Task
Generate a SQL query to answer the following question:
`Name the city for athous lavrensis`

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

CREATE TABLE "uncials_with_sigla" (
  "sign" text,
  "name" text,
  "date" text,
  "content" text,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city for athous lavrensis`:
```sql
                SELECT "city" FROM "uncials_with_sigla" WHERE "name"='athous lavrensis';
```
## Task
Generate a SQL query to answer the following question:
`Which race had a distance of 4 miles where the runner-up was not known?`

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

CREATE TABLE "summary" (
  "race_name" text,
  "dist_miles" text,
  "course" text,
  "prize" text,
  "odds" text,
  "runners" real,
  "place" real,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race had a distance of 4 miles where the runner-up was not known?`:
```sql
                SELECT "race_name" FROM "summary" WHERE "dist_miles"='4' AND "runner_up"='not known';
```
## Task
Generate a SQL query to answer the following question:
`What date did the Jazz play the Bulls at home?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Jazz play the Bulls at home?`:
```sql
                SELECT "date" FROM "february" WHERE "home"='jazz' AND "visitor"='bulls';
```
## Task
Generate a SQL query to answer the following question:
`On February 26, who was the leading scorer?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On February 26, who was the leading scorer?`:
```sql
                SELECT "leading_scorer" FROM "february" WHERE "date"='february 26';
```
## Task
Generate a SQL query to answer the following question:
`What's the record of Carlos Boozer (23) as the leading scorer?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the record of Carlos Boozer (23) as the leading scorer?`:
```sql
                SELECT "record" FROM "february" WHERE "leading_scorer"='carlos boozer (23)';
```
## Task
Generate a SQL query to answer the following question:
`What date was Carlos Boozer (23) the leading scorer?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Carlos Boozer (23) the leading scorer?`:
```sql
                SELECT "date" FROM "february" WHERE "leading_scorer"='carlos boozer (23)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer on February 9?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer on February 9?`:
```sql
                SELECT "leading_scorer" FROM "february" WHERE "date"='february 9';
```
## Task
Generate a SQL query to answer the following question:
`While the Hornets were visiting, what date was Deron Williams (29) the leading scorer?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `While the Hornets were visiting, what date was Deron Williams (29) the leading scorer?`:
```sql
                SELECT "date" FROM "february" WHERE "leading_scorer"='deron williams (29)' AND "visitor"='hornets';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the ships in classs for kuha class`

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

CREATE TABLE "minesweepers" (
  "class" text,
  "ships_in_class" text,
  "pennant_number" real,
  "builder" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the ships in classs for kuha class`:
```sql
                SELECT "ships_in_class" FROM "minesweepers" WHERE "class"='kuha class';
```
## Task
Generate a SQL query to answer the following question:
`How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes?`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "constructor"='talbot-lago - talbot' AND "laps"<83 AND "driver"='johnny claes';
```
## Task
Generate a SQL query to answer the following question:
`When the away team is Geelong, what is the highest crowd count?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the away team is Geelong, what is the highest crowd count?`:
```sql
                SELECT MAX("crowd") FROM "round_9" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the total crowd count for the venue Princes Park?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total crowd count for the venue Princes Park?`:
```sql
                SELECT SUM("crowd") FROM "round_9" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`For the away team with a score of 16.13 (109), what is the total crowd count?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the away team with a score of 16.13 (109), what is the total crowd count?`:
```sql
                SELECT SUM("crowd") FROM "round_9" WHERE "away_team_score"='16.13 (109)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home port of m40?`

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

CREATE TABLE "ships" (
  "navy" text,
  "name" text,
  "pennant" text,
  "commissioned" real,
  "home_port" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home port of m40?`:
```sql
                SELECT "home_port" FROM "ships" WHERE "pennant"='m40';
```
## Task
Generate a SQL query to answer the following question:
`What is the navy for middleton with a home port of portsmouth after 1983?`

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

CREATE TABLE "ships" (
  "navy" text,
  "name" text,
  "pennant" text,
  "commissioned" real,
  "home_port" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the navy for middleton with a home port of portsmouth after 1983?`:
```sql
                SELECT "navy" FROM "ships" WHERE "home_port"='portsmouth' AND "commissioned">1983 AND "name"='middleton';
```
## Task
Generate a SQL query to answer the following question:
`When did Charles III die?`

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

CREATE TABLE "house_of_habsburg_1482_1678" (
  "name" text,
  "date_of_birth" text,
  "date_of_death" text,
  "reign" text,
  "relationship_with_predecessor" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Charles III die?`:
```sql
                SELECT "date_of_death" FROM "house_of_habsburg_1482_1678" WHERE "name"='charles iii';
```
## Task
Generate a SQL query to answer the following question:
`What is the fastest lap of the race where Giuseppe Farina was the winning driver?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fastest lap of the race where Giuseppe Farina was the winning driver?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "winning_driver"='giuseppe farina';
```
## Task
Generate a SQL query to answer the following question:
`What is the report status of the race with Ferrari as the constructor and a monza circuit?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the report status of the race with Ferrari as the constructor and a monza circuit?`:
```sql
                SELECT "report" FROM "season_review" WHERE "constructor"='ferrari' AND "circuit"='monza';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor of the race with Juan Manuel Fangio as the fastest lap and Giuseppe Farina as the winning driver?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constructor of the race with Juan Manuel Fangio as the fastest lap and Giuseppe Farina as the winning driver?`:
```sql
                SELECT "constructor" FROM "season_review" WHERE "fastest_lap"='juan manuel fangio' AND "winning_driver"='giuseppe farina';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap?`:
```sql
                SELECT "winning_driver" FROM "season_review" WHERE "fastest_lap"='giuseppe farina' AND "race"='british grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver?`:
```sql
                SELECT "race" FROM "season_review" WHERE "tyre"='p' AND "winning_driver"='juan manuel fangio';
```
## Task
Generate a SQL query to answer the following question:
`What is the Quantity of Type 2-4-2t?`

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

CREATE TABLE "1893_1900" (
  "class" text,
  "type" text,
  "quantity" real,
  "date" text,
  "lner_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Quantity of Type 2-4-2t?`:
```sql
                SELECT SUM("quantity") FROM "1893_1900" WHERE "type"='2-4-2t';
```
## Task
Generate a SQL query to answer the following question:
`What was the Quantity on Date 1900?`

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

CREATE TABLE "1893_1900" (
  "class" text,
  "type" text,
  "quantity" real,
  "date" text,
  "lner_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Quantity on Date 1900?`:
```sql
                SELECT SUM("quantity") FROM "1893_1900" WHERE "date"='1900';
```
## Task
Generate a SQL query to answer the following question:
`What is the Quantity of type 2-4-2t?`

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

CREATE TABLE "1893_1900" (
  "class" text,
  "type" text,
  "quantity" real,
  "date" text,
  "lner_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Quantity of type 2-4-2t?`:
```sql
                SELECT COUNT("quantity") FROM "1893_1900" WHERE "type"='2-4-2t';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?`

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

CREATE TABLE "classification" (
  "grid" real,
  "constructor" text,
  "qual" real,
  "rank" real,
  "laps" real,
  "time_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?`:
```sql
                SELECT MIN("grid") FROM "classification" WHERE "time_retired"='engine' AND "qual"<138.75;
```
## Task
Generate a SQL query to answer the following question:
`What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?`

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

CREATE TABLE "classification" (
  "grid" real,
  "constructor" text,
  "qual" real,
  "rank" real,
  "laps" real,
  "time_retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?`:
```sql
                SELECT "laps" FROM "classification" WHERE "rank">13 AND "time_retired"='accident' AND "qual"<136.98;
```
## Task
Generate a SQL query to answer the following question:
`What position is Sal Martinez?`

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

CREATE TABLE "2011_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position is Sal Martinez?`:
```sql
                SELECT "position" FROM "2011_team" WHERE "player"='sal martinez';
```
## Task
Generate a SQL query to answer the following question:
`What is the compatibility for the Mnemonic d for "dynamite"?`

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

CREATE TABLE "chimney_bombs" (
  "fire_class" text,
  "geometric_symbol" text,
  "intended_use" text,
  "mnemonic" text,
  "compatibility" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the compatibility for the Mnemonic d for "dynamite"?`:
```sql
                SELECT "compatibility" FROM "chimney_bombs" WHERE "mnemonic"='d for \"dynamite\"';
```
## Task
Generate a SQL query to answer the following question:
`Who constructed the car that has a Time/Retired of +2:06.0?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who constructed the car that has a Time/Retired of +2:06.0?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "time_retired"='+2:06.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the lap total for the grid under 15 that retired due to transmission?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lap total for the grid under 15 that retired due to transmission?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "grid"<15 AND "time_retired"='transmission';
```
## Task
Generate a SQL query to answer the following question:
`Who constructed juan manuel fangio's car with over 76 laps and a grid under 10?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who constructed juan manuel fangio's car with over 76 laps and a grid under 10?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "grid"<10 AND "laps">76 AND "driver"='juan manuel fangio';
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of laps when grid is less than 20 and johnny herbert is driving?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sum of laps when grid is less than 20 and johnny herbert is driving?`:
```sql
                SELECT SUM("laps") FROM "race" WHERE "grid"<20 AND "driver"='johnny herbert';
```
## Task
Generate a SQL query to answer the following question:
`who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?`:
```sql
                SELECT "driver" FROM "race" WHERE "constructor"='ferrari' AND "time_retired"='+1:06.683';
```
## Task
Generate a SQL query to answer the following question:
`who is the driver when grid is 11?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the driver when grid is 11?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"=11;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a score of 30-12?`

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

CREATE TABLE "senior_tries" (
  "date" text,
  "venue" text,
  "opponent" text,
  "result" text,
  "tournament" text,
  "scored" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent with a score of 30-12?`:
```sql
                SELECT "opponent" FROM "senior_tries" WHERE "result"='30-12';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a score of 40-20?`

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

CREATE TABLE "senior_tries" (
  "date" text,
  "venue" text,
  "opponent" text,
  "result" text,
  "tournament" text,
  "scored" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent with a score of 40-20?`:
```sql
                SELECT "opponent" FROM "senior_tries" WHERE "result"='40-20';
```
## Task
Generate a SQL query to answer the following question:
`When did Geelong play as the away team?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Geelong play as the away team?`:
```sql
                SELECT "date" FROM "round_6" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the total capacity (MW) of the farm that is noted as being under construction?`

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

CREATE TABLE "other_notable_onshore_wind_farms" (
  "wind_farm" text,
  "capacity_mw" real,
  "country" text,
  "state_province" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total capacity (MW) of the farm that is noted as being under construction?`:
```sql
                SELECT COUNT("capacity_mw") FROM "other_notable_onshore_wind_farms" WHERE "notes"='under construction';
```
## Task
Generate a SQL query to answer the following question:
`Which state is Tehachapi Pass Wind Farm located in?`

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

CREATE TABLE "other_notable_onshore_wind_farms" (
  "wind_farm" text,
  "capacity_mw" real,
  "country" text,
  "state_province" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state is Tehachapi Pass Wind Farm located in?`:
```sql
                SELECT "state_province" FROM "other_notable_onshore_wind_farms" WHERE "wind_farm"='tehachapi pass wind farm';
```
## Task
Generate a SQL query to answer the following question:
`Which wind farm is in the USA and is noted as having multiple farms?`

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

CREATE TABLE "other_notable_onshore_wind_farms" (
  "wind_farm" text,
  "capacity_mw" real,
  "country" text,
  "state_province" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which wind farm is in the USA and is noted as having multiple farms?`:
```sql
                SELECT "wind_farm" FROM "other_notable_onshore_wind_farms" WHERE "country"='usa' AND "notes"='multiple farms';
```
## Task
Generate a SQL query to answer the following question:
`What special notes are included for the windfarm with a capacity (MW) of 343?`

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

CREATE TABLE "other_notable_onshore_wind_farms" (
  "wind_farm" text,
  "capacity_mw" real,
  "country" text,
  "state_province" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What special notes are included for the windfarm with a capacity (MW) of 343?`:
```sql
                SELECT "notes" FROM "other_notable_onshore_wind_farms" WHERE "capacity_mw"=343;
```
## Task
Generate a SQL query to answer the following question:
`What is the total capacity (MW) of the windfarm located in the state/province of Gansu?`

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

CREATE TABLE "other_notable_onshore_wind_farms" (
  "wind_farm" text,
  "capacity_mw" real,
  "country" text,
  "state_province" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total capacity (MW) of the windfarm located in the state/province of Gansu?`:
```sql
                SELECT SUM("capacity_mw") FROM "other_notable_onshore_wind_farms" WHERE "state_province"='gansu';
```
## Task
Generate a SQL query to answer the following question:
`In the game held at Arden Street Oval, what was the score of the home team?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the game held at Arden Street Oval, what was the score of the home team?`:
```sql
                SELECT "home_team_score" FROM "round_20" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`How many people in total have attended games at Kardinia Park?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people in total have attended games at Kardinia Park?`:
```sql
                SELECT SUM("crowd") FROM "round_20" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`Which game at Arden Street Oval had the lowest attendance?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game at Arden Street Oval had the lowest attendance?`:
```sql
                SELECT MIN("crowd") FROM "round_20" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game against the away team Footscray held?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game against the away team Footscray held?`:
```sql
                SELECT "venue" FROM "round_20" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points for clubs that have played more than 42 times?`

### 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" real,
  "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 is the average number of points for clubs that have played more than 42 times?`:
```sql
                SELECT AVG("points") FROM "final_table" WHERE "played">42;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of goals scored against clubs that have played more than 42 times?`

### 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" real,
  "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 is the total number of goals scored against clubs that have played more than 42 times?`:
```sql
                SELECT COUNT("goals_against") FROM "final_table" WHERE "played">42;
```
## Task
Generate a SQL query to answer the following question:
`What team was playing at home when the away team scored 6.18 (54)`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was playing at home when the away team scored 6.18 (54)`:
```sql
                SELECT "home_team_score" FROM "round_12" WHERE "away_team_score"='6.18 (54)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Collingwood was playing away?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Collingwood was playing away?`:
```sql
                SELECT "away_team_score" FROM "round_12" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What team had a score of 18.12 (120) when they played at home?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team had a score of 18.12 (120) when they played at home?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "home_team_score"='18.12 (120)';
```
## Task
Generate a SQL query to answer the following question:
`On which date did Geelong play at home?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date did Geelong play at home?`:
```sql
                SELECT "date" FROM "round_12" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has a venue of windy hill?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team has a venue of windy hill?`:
```sql
                SELECT "home_team" FROM "round_3" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`If essendon is the home team, what venue did they play at?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If essendon is the home team, what venue did they play at?`:
```sql
                SELECT "venue" FROM "round_3" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`When the home team is richmond, what was the away team playing?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team is richmond, what was the away team playing?`:
```sql
                SELECT "away_team" FROM "round_3" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`If the home team playing is hawthorn and there are more than 13,000 people in the crowd, what did the away team score?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the home team playing is hawthorn and there are more than 13,000 people in the crowd, what did the away team score?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "crowd">'13,000' AND "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`When was the lock with 10 caps born?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the lock with 10 caps born?`:
```sql
                SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "position"='lock' AND "caps"=10;
```
## Task
Generate a SQL query to answer the following question:
`What were the laps of driver Jean-Christophe Boullion?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the laps of driver Jean-Christophe Boullion?`:
```sql
                SELECT "laps" FROM "race" WHERE "driver"='jean-christophe boullion';
```
## Task
Generate a SQL query to answer the following question:
`What Playoffs were held during the years of 2007-08?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "attendance_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Playoffs were held during the years of 2007-08?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "year"='2007-08';
```
## Task
Generate a SQL query to answer the following question:
`On which date did Richmond play as an away team?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date did Richmond play as an away team?`:
```sql
                SELECT "date" FROM "round_5" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What away team did Melbourne play as the home team?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team did Melbourne play as the home team?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which away team has an away team score of 11.16 (82)?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team has an away team score of 11.16 (82)?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "away_team_score"='11.16 (82)';
```
## Task
Generate a SQL query to answer the following question:
`Which away team has an away team score of 13.25 (103)?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team has an away team score of 13.25 (103)?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "away_team_score"='13.25 (103)';
```
## Task
Generate a SQL query to answer the following question:
`Which chapter was founded later than 2012?`

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

CREATE TABLE "external_links" (
  "chapter" text,
  "university" text,
  "city" text,
  "state" text,
  "conference" text,
  "founding_date" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which chapter was founded later than 2012?`:
```sql
                SELECT "chapter" FROM "external_links" WHERE "founding_date">2012;
```
## Task
Generate a SQL query to answer the following question:
`What is the chapter in Lubbock?`

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

CREATE TABLE "external_links" (
  "chapter" text,
  "university" text,
  "city" text,
  "state" text,
  "conference" text,
  "founding_date" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chapter in Lubbock?`:
```sql
                SELECT "chapter" FROM "external_links" WHERE "city"='lubbock';
```