cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the home team score at North Melbourne's away game?`

### 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 was the home team score at North Melbourne's away game?`:
```sql
                SELECT "home_team_score" FROM "round_5" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which away team scored 4.15 (39)?`

### 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 scored 4.15 (39)?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "away_team_score"='4.15 (39)';
```
## Task
Generate a SQL query to answer the following question:
`What was Collingwood's score at the home match against Richmond?`

### 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 was Collingwood's score at the home match against Richmond?`:
```sql
                SELECT "home_team_score" FROM "round_5" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of laps with a grid larger than 24?`

### 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 lowest number of laps with a grid larger than 24?`:
```sql
                SELECT MIN("laps") FROM "classification" WHERE "grid">24;
```
## Task
Generate a SQL query to answer the following question:
`For Jo Siffert, what was the highest grid with the number of laps above 12?`

### 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 `For Jo Siffert, what was the highest grid with the number of laps above 12?`:
```sql
                SELECT MAX("grid") FROM "classification" WHERE "driver"='jo siffert' AND "laps">12;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of laps when Gerhard Berger is the driver?`

### 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 average number of laps when Gerhard Berger is the driver?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "driver"='gerhard berger';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the constructor who has more than 50 laps and a grid of 7?`

### 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 name of the constructor who has more than 50 laps and a grid of 7?`:
```sql
                SELECT "constructor" FROM "race" WHERE "laps">50 AND "grid"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with a production code of ad1b04?`

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

CREATE TABLE "season_2" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with a production code of ad1b04?`:
```sql
                SELECT "title" FROM "season_2" WHERE "production_code"='ad1b04';
```
## Task
Generate a SQL query to answer the following question:
`Name the time for event of tfc 21`

### 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 `Name the time for event of tfc 21`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='tfc 21';
```
## Task
Generate a SQL query to answer the following question:
`What sport has a Gold larger than 0, and a Silver of 2?`

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

CREATE TABLE "asian_games" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What sport has a Gold larger than 0, and a Silver of 2?`:
```sql
                SELECT "sport" FROM "asian_games" WHERE "gold">0 AND "silver"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Bronze that has a Total larger than 18 and a Silver smaller than 143?`

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

CREATE TABLE "asian_games" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Bronze that has a Total larger than 18 and a Silver smaller than 143?`:
```sql
                SELECT MIN("bronze") FROM "asian_games" WHERE "total">18 AND "sport"='total' AND "silver"<143;
```
## Task
Generate a SQL query to answer the following question:
`How many total Silver has a Bronze larger than 19 and a Total smaller than 125?`

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

CREATE TABLE "asian_games" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total Silver has a Bronze larger than 19 and a Total smaller than 125?`:
```sql
                SELECT SUM("silver") FROM "asian_games" WHERE "bronze">19 AND "total"<125;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total Bronze larger than 10, Silver larger than 28, and a Gold of 58?`

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

CREATE TABLE "asian_games" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total Bronze larger than 10, Silver larger than 28, and a Gold of 58?`:
```sql
                SELECT MAX("total") FROM "asian_games" WHERE "bronze">10 AND "silver">28 AND "gold"=58;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1?`

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

CREATE TABLE "asian_games" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1?`:
```sql
                SELECT MIN("total") FROM "asian_games" WHERE "gold">0 AND "silver"<4 AND "sport"='football' AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the grid is 9?`

### 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 time/retired when the grid is 9?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "grid"=9;
```
## Task
Generate a SQL query to answer the following question:
`what is the number of laps when the driver is ron flockhart?`

### 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 number of laps when the driver is ron flockhart?`:
```sql
                SELECT COUNT("laps") FROM "classification" WHERE "driver"='ron flockhart';
```
## Task
Generate a SQL query to answer the following question:
`What Engine has a Power of 114hp (85kw)?`

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

CREATE TABLE "engines" (
  "years" text,
  "displacement" text,
  "engine" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Engine has a Power of 114hp (85kw)?`:
```sql
                SELECT "engine" FROM "engines" WHERE "power"='114hp (85kw)';
```
## Task
Generate a SQL query to answer the following question:
`What Torque has an AMC Power Tech I6 Engine?`

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

CREATE TABLE "engines" (
  "years" text,
  "displacement" text,
  "engine" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Torque has an AMC Power Tech I6 Engine?`:
```sql
                SELECT "torque" FROM "engines" WHERE "engine"='amc power tech i6';
```
## Task
Generate a SQL query to answer the following question:
`What Displacement has 185hp (138kw) Power o`

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

CREATE TABLE "engines" (
  "years" text,
  "displacement" text,
  "engine" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Displacement has 185hp (138kw) Power o`:
```sql
                SELECT "displacement" FROM "engines" WHERE "power"='185hp (138kw)';
```
## Task
Generate a SQL query to answer the following question:
`What venue features collingwood as the home side?`

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

CREATE TABLE "round_4" (
  "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 venue features collingwood as the home side?`:
```sql
                SELECT "venue" FROM "round_4" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What's the attendance numbers for veterans stadium?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the attendance numbers for veterans stadium?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "game_site"='veterans stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the school that has a player named Michael Dunigan?`

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

CREATE TABLE "2008_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the school that has a player named Michael Dunigan?`:
```sql
                SELECT "school" FROM "2008_boys_team" WHERE "player"='michael dunigan';
```
## Task
Generate a SQL query to answer the following question:
`Name the religion for Former Experience of commissioner of health and assumed office before 2005`

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

CREATE TABLE "delegates" (
  "district" text,
  "name" text,
  "party" text,
  "religion" text,
  "former_experience" text,
  "assumed_office" real,
  "born_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the religion for Former Experience of commissioner of health and assumed office before 2005`:
```sql
                SELECT "religion" FROM "delegates" WHERE "assumed_office"<2005 AND "former_experience"='commissioner of health';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the loewst assume office for madeleine bordallo`

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

CREATE TABLE "delegates" (
  "district" text,
  "name" text,
  "party" text,
  "religion" text,
  "former_experience" text,
  "assumed_office" real,
  "born_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the loewst assume office for madeleine bordallo`:
```sql
                SELECT MIN("assumed_office") FROM "delegates" WHERE "name"='madeleine bordallo';
```
## Task
Generate a SQL query to answer the following question:
`Which team had a game of 82?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a game of 82?`:
```sql
                SELECT "team" FROM "game_log" WHERE "game"=82;
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game at Junction Oval?`

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

CREATE TABLE "round_13" (
  "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 attended the game at Junction Oval?`:
```sql
                SELECT "crowd" FROM "round_13" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for Boston's Home game that had Gerber as the decision?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for Boston's Home game that had Gerber as the decision?`:
```sql
                SELECT "score" FROM "march" WHERE "decision"='gerber' AND "home"='boston';
```
## Task
Generate a SQL query to answer the following question:
`What was the record for the game on March 25?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the game on March 25?`:
```sql
                SELECT "record" FROM "march" WHERE "date"='march 25';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Decision at Anaheim's home game?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Decision at Anaheim's home game?`:
```sql
                SELECT "decision" FROM "march" WHERE "home"='anaheim';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver of the chassis that is tg183b tg184?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver of the chassis that is tg183b tg184?`:
```sql
                SELECT "driver" FROM "drivers_and_constructors" WHERE "chassis"='tg183b tg184';
```
## Task
Generate a SQL query to answer the following question:
`What was the engine belonging to Pierluigi Martini with a Tyre of P?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the engine belonging to Pierluigi Martini with a Tyre of P?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "tyres"='p' AND "driver"='pierluigi martini';
```
## Task
Generate a SQL query to answer the following question:
`What was the featured in Engine through rounds 10-13?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the featured in Engine through rounds 10-13?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "rounds"='10-13';
```
## Task
Generate a SQL query to answer the following question:
`Nigel Mansell was the driver in what Entrant?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Nigel Mansell was the driver in what Entrant?`:
```sql
                SELECT "entrant" FROM "drivers_and_constructors" WHERE "driver"='nigel mansell';
```
## Task
Generate a SQL query to answer the following question:
`What Date does the Name (location) Belyanitsky, Ivanovo, and Balino have?`

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

CREATE TABLE "tornadoes" (
  "rank" real,
  "name_location" text,
  "country" text,
  "date" text,
  "deaths" real,
  "injuries_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date does the Name (location) Belyanitsky, Ivanovo, and Balino have?`:
```sql
                SELECT "date" FROM "tornadoes" WHERE "name_location"='belyanitsky, ivanovo, and balino';
```
## Task
Generate a SQL query to answer the following question:
`What day did North 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_16" (
  "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 day did North Melbourne play as the home team?`:
```sql
                SELECT "date" FROM "round_16" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Arden Street Oval?`

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

CREATE TABLE "round_16" (
  "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 `Who was the away team at Arden Street Oval?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the long-term capital gain rate when the long-term gain on commercial buildings is 25% and long term gain on collectibles is 28% while short-term capital gain rate is 33%?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "ordinary_income_rate" text,
  "long_term_capital_gain_rate" text,
  "short_term_capital_gain_rate" text,
  "long_term_gain_on_commercial_buildings" text,
  "long_term_gain_on_collectibles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the long-term capital gain rate when the long-term gain on commercial buildings is 25% and long term gain on collectibles is 28% while short-term capital gain rate is 33%?`:
```sql
                SELECT "long_term_capital_gain_rate" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "long_term_gain_on_commercial_buildings"='25%' AND "long_term_gain_on_collectibles"='28%' AND "short_term_capital_gain_rate"='33%';
```
## Task
Generate a SQL query to answer the following question:
`What is long-term gain for commercial buildings when long-term gain on collectible sis 28% and ordinary income rate is 35%?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "ordinary_income_rate" text,
  "long_term_capital_gain_rate" text,
  "short_term_capital_gain_rate" text,
  "long_term_gain_on_commercial_buildings" text,
  "long_term_gain_on_collectibles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is long-term gain for commercial buildings when long-term gain on collectible sis 28% and ordinary income rate is 35%?`:
```sql
                SELECT "long_term_gain_on_commercial_buildings" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "long_term_gain_on_collectibles"='28%' AND "ordinary_income_rate"='35%';
```
## Task
Generate a SQL query to answer the following question:
`What is the ordinary income rate when short-term capital gain rate is 28%?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "ordinary_income_rate" text,
  "long_term_capital_gain_rate" text,
  "short_term_capital_gain_rate" text,
  "long_term_gain_on_commercial_buildings" text,
  "long_term_gain_on_collectibles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ordinary income rate when short-term capital gain rate is 28%?`:
```sql
                SELECT "ordinary_income_rate" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "short_term_capital_gain_rate"='28%';
```
## Task
Generate a SQL query to answer the following question:
`What is the long-term gain for commercial buildings with a short-term capital gain rate of 15%?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "ordinary_income_rate" text,
  "long_term_capital_gain_rate" text,
  "short_term_capital_gain_rate" text,
  "long_term_gain_on_commercial_buildings" text,
  "long_term_gain_on_collectibles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the long-term gain for commercial buildings with a short-term capital gain rate of 15%?`:
```sql
                SELECT "long_term_gain_on_commercial_buildings" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "short_term_capital_gain_rate"='15%';
```
## Task
Generate a SQL query to answer the following question:
`What is short-term capital gain rate with long-term gain on collectibles at 15%?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "ordinary_income_rate" text,
  "long_term_capital_gain_rate" text,
  "short_term_capital_gain_rate" text,
  "long_term_gain_on_commercial_buildings" text,
  "long_term_gain_on_collectibles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is short-term capital gain rate with long-term gain on collectibles at 15%?`:
```sql
                SELECT "short_term_capital_gain_rate" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "long_term_gain_on_collectibles"='15%';
```
## Task
Generate a SQL query to answer the following question:
`What long-term gain for collectibles coincides with ordinary income rate 15%?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "ordinary_income_rate" text,
  "long_term_capital_gain_rate" text,
  "short_term_capital_gain_rate" text,
  "long_term_gain_on_commercial_buildings" text,
  "long_term_gain_on_collectibles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What long-term gain for collectibles coincides with ordinary income rate 15%?`:
```sql
                SELECT "long_term_gain_on_collectibles" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "ordinary_income_rate"='15%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Decile with a State Authority and a roll of 120?`

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

CREATE TABLE "franklin_local_board" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Decile with a State Authority and a roll of 120?`:
```sql
                SELECT SUM("decile") FROM "franklin_local_board" WHERE "authority"='state' AND "roll"=120;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Roll of Orere School with a Decile less than 8 with a State Authority?`

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

CREATE TABLE "franklin_local_board" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Roll of Orere School with a Decile less than 8 with a State Authority?`:
```sql
                SELECT MAX("roll") FROM "franklin_local_board" WHERE "decile"<8 AND "authority"='state' AND "name"='orere school';
```
## Task
Generate a SQL query to answer the following question:
`Which venue has an Away team score of 10.11 (71)?`

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

CREATE TABLE "round_16" (
  "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 venue has an Away team score of 10.11 (71)?`:
```sql
                SELECT "venue" FROM "round_16" WHERE "away_team_score"='10.11 (71)';
```
## Task
Generate a SQL query to answer the following question:
`What date has a Home team score of 11.18 (84)?`

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

CREATE TABLE "round_16" (
  "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 date has a Home team score of 11.18 (84)?`:
```sql
                SELECT "date" FROM "round_16" WHERE "home_team_score"='11.18 (84)';
```
## Task
Generate a SQL query to answer the following question:
`What home team score has a Away team of melbourne?`

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

CREATE TABLE "round_16" (
  "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 home team score has a Away team of melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_16" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What away team is the home team richmond?`

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

CREATE TABLE "round_16" (
  "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 is the home team richmond?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what was the highest Grid?`

### 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 `When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what was the highest Grid?`:
```sql
                SELECT MAX("grid") FROM "classification" WHERE "driver"='giancarlo fisichella' AND "laps"<52;
```
## Task
Generate a SQL query to answer the following question:
`Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver?`

### 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 `Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "grid"<17 AND "laps"<52 AND "driver"='olivier panis';
```
## Task
Generate a SQL query to answer the following question:
`Which 2006 cfl draft pick played college ball at Idaho state?`

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

CREATE TABLE "round_six" (
  "pick_num" text,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2006 cfl draft pick played college ball at Idaho state?`:
```sql
                SELECT "pick_num" FROM "round_six" WHERE "college"='idaho state';
```
## Task
Generate a SQL query to answer the following question:
`What position did the CFL player drafted out of college of toronto in 2007 play?`

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

CREATE TABLE "round_six" (
  "pick_num" text,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the CFL player drafted out of college of toronto in 2007 play?`:
```sql
                SELECT "position" FROM "round_six" WHERE "college"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`What was the Date of Death of the person whose Date of Birth was 28 May 1371?`

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

CREATE TABLE "house_of_valois_burgundy_1405_1482" (
  "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 `What was the Date of Death of the person whose Date of Birth was 28 May 1371?`:
```sql
                SELECT "date_of_death" FROM "house_of_valois_burgundy_1405_1482" WHERE "date_of_birth"='28 may 1371';
```
## Task
Generate a SQL query to answer the following question:
`What was the Reign of the person whose Date of Birth was 22 March 1459?`

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

CREATE TABLE "house_of_valois_burgundy_1405_1482" (
  "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 `What was the Reign of the person whose Date of Birth was 22 March 1459?`:
```sql
                SELECT "reign" FROM "house_of_valois_burgundy_1405_1482" WHERE "date_of_birth"='22 march 1459';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the average year with a record of 33-33`

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

CREATE TABLE "year_by_year_record" (
  "year" real,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the average year with a record of 33-33`:
```sql
                SELECT AVG("year") FROM "year_by_year_record" WHERE "record"='33-33';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of years for a 39-31 record`

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

CREATE TABLE "year_by_year_record" (
  "year" real,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of years for a 39-31 record`:
```sql
                SELECT COUNT("year") FROM "year_by_year_record" WHERE "record"='39-31';
```
## Task
Generate a SQL query to answer the following question:
`Name the least year for gene hassell manager and 6th finish`

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

CREATE TABLE "year_by_year_record" (
  "year" real,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least year for gene hassell manager and 6th finish`:
```sql
                SELECT MIN("year") FROM "year_by_year_record" WHERE "manager"='gene hassell' AND "finish"='6th';
```
## Task
Generate a SQL query to answer the following question:
`Name the finish for a 39-31 record`

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

CREATE TABLE "year_by_year_record" (
  "year" real,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the finish for a 39-31 record`:
```sql
                SELECT "finish" FROM "year_by_year_record" WHERE "record"='39-31';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest goal difference for the club ud alzira, with a played larger than 38?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goal difference for the club ud alzira, with a played larger than 38?`:
```sql
                SELECT MIN("goal_difference") FROM "final_table" WHERE "club"='ud alzira' AND "played">38;
```
## Task
Generate a SQL query to answer the following question:
`What is the goal difference sum that has goals against smaller than 33, draws larger than 13?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goal difference sum that has goals against smaller than 33, draws larger than 13?`:
```sql
                SELECT SUM("goal_difference") FROM "final_table" WHERE "goals_against"<33 AND "draws">13;
```
## Task
Generate a SQL query to answer the following question:
`Name the transfer fee for damia`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the transfer fee for damia`:
```sql
                SELECT "transfer_fee" FROM "out" WHERE "name"='damia';
```
## Task
Generate a SQL query to answer the following question:
`Name the moving to with a transfer fee of free with a transfer status for rodri`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the moving to with a transfer fee of free with a transfer status for rodri`:
```sql
                SELECT "moving_to" FROM "out" WHERE "transfer_fee"='free' AND "status"='transfer' AND "name"='rodri';
```
## Task
Generate a SQL query to answer the following question:
`When was the game played at the Western Oval venue?`

### 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 was the game played at the Western Oval venue?`:
```sql
                SELECT "date" FROM "round_3" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score for the team that played an away game at North Melbourne?`

### 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 `What is the home team score for the team that played an away game at North Melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the livery of the locomotive with a serial number 83-1010?`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "serial_no" text,
  "entered_service" text,
  "gauge" text,
  "livery" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the livery of the locomotive with a serial number 83-1010?`:
```sql
                SELECT "livery" FROM "locomotives" WHERE "serial_no"='83-1010';
```
## Task
Generate a SQL query to answer the following question:
`What is the livery on the locomotive with a serial number 83-1011?`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "serial_no" text,
  "entered_service" text,
  "gauge" text,
  "livery" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the livery on the locomotive with a serial number 83-1011?`:
```sql
                SELECT "livery" FROM "locomotives" WHERE "serial_no"='83-1011';
```
## Task
Generate a SQL query to answer the following question:
`What is the locomotive with a standard gauge and a serial number of 83-1015?`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "serial_no" text,
  "entered_service" text,
  "gauge" text,
  "livery" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the locomotive with a standard gauge and a serial number of 83-1015?`:
```sql
                SELECT "locomotive" FROM "locomotives" WHERE "gauge"='standard' AND "serial_no"='83-1015';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of entered service for the locomotive with a broad gauge and a serial no of 83-1018?`

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

CREATE TABLE "locomotives" (
  "locomotive" text,
  "serial_no" text,
  "entered_service" text,
  "gauge" text,
  "livery" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of entered service for the locomotive with a broad gauge and a serial no of 83-1018?`:
```sql
                SELECT "entered_service" FROM "locomotives" WHERE "gauge"='broad' AND "serial_no"='83-1018';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue on October 16, 1996?`

### 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 was the venue on October 16, 1996?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='october 16, 1996';
```
## Task
Generate a SQL query to answer the following question:
`What's the score at the October 30, 1996 1998 fifa world cup qualification with a result of win?`

### 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's the score at the October 30, 1996 1998 fifa world cup qualification with a result of win?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "result"='win' AND "competition"='1998 fifa world cup qualification' AND "date"='october 30, 1996';
```
## Task
Generate a SQL query to answer the following question:
`When was the friendship 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 `When was the friendship cup?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='friendship cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number for Cars per Set built in 1977-1979 larger than 32?`

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

CREATE TABLE "class_253_and_254" (
  "class" text,
  "operator" text,
  "number" real,
  "year_built" text,
  "cars_per_set" real,
  "unit_numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number for Cars per Set built in 1977-1979 larger than 32?`:
```sql
                SELECT MIN("cars_per_set") FROM "class_253_and_254" WHERE "year_built"='1977-1979' AND "number">32;
```
## Task
Generate a SQL query to answer the following question:
`What unit has cars per set larger than 9 built in 1982?`

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

CREATE TABLE "class_253_and_254" (
  "class" text,
  "operator" text,
  "number" real,
  "year_built" text,
  "cars_per_set" real,
  "unit_numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What unit has cars per set larger than 9 built in 1982?`:
```sql
                SELECT "unit_numbers" FROM "class_253_and_254" WHERE "cars_per_set">9 AND "year_built"='1982';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of cars per set that is less than 9?`

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

CREATE TABLE "class_253_and_254" (
  "class" text,
  "operator" text,
  "number" real,
  "year_built" text,
  "cars_per_set" real,
  "unit_numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of cars per set that is less than 9?`:
```sql
                SELECT MAX("number") FROM "class_253_and_254" WHERE "cars_per_set"<9;
```
## Task
Generate a SQL query to answer the following question:
`What year was the class 253 larger than 18 built?`

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

CREATE TABLE "class_253_and_254" (
  "class" text,
  "operator" text,
  "number" real,
  "year_built" text,
  "cars_per_set" real,
  "unit_numbers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the class 253 larger than 18 built?`:
```sql
                SELECT "year_built" FROM "class_253_and_254" WHERE "class"='class 253' AND "number">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the margin for the Masters Tournament (2) championship?`

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

CREATE TABLE "wins_14" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the margin for the Masters Tournament (2) championship?`:
```sql
                SELECT "margin" FROM "wins_14" WHERE "championship"='masters tournament (2)';
```
## Task
Generate a SQL query to answer the following question:
`How many years had 54 holes and a 2 shot lead?`

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

CREATE TABLE "wins_14" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had 54 holes and a 2 shot lead?`:
```sql
                SELECT COUNT("year") FROM "wins_14" WHERE "54_holes"='2 shot lead';
```