cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`I want the driver with Laps larger than 16 with a ferrari and grid less than 15`

### 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 `I want the driver with Laps larger than 16 with a ferrari and grid less than 15`:
```sql
                SELECT "driver" FROM "race" WHERE "laps">16 AND "constructor"='ferrari' AND "grid"<15;
```
## Task
Generate a SQL query to answer the following question:
`What is the D 46 √ with a D 43 √ with r 3?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 46 √ with a D 43 √ with r 3?`:
```sql
                SELECT "d_46" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_43"='r 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 43 √ with a D 49 √ with d 49 √?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 43 √ with a D 49 √ with d 49 √?`:
```sql
                SELECT "d_43" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_49"='d 49 √';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 48 √ with a D 46 √ with r 33 o?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 48 √ with a D 46 √ with r 33 o?`:
```sql
                SELECT "d_48" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46"='r 33 o';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 48 √ with a D 49 √ with r 9?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 48 √ with a D 49 √ with r 9?`:
```sql
                SELECT "d_48" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_49"='r 9';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 46 √ with a D 41 √ with d 38 √?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 46 √ with a D 41 √ with d 38 √?`:
```sql
                SELECT "d_46" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_41"='d 38 √';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 45 √ with a D 46 √ with d 46 √?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 45 √ with a D 46 √ with d 46 √?`:
```sql
                SELECT "d_45" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46"='d 46 √';
```
## Task
Generate a SQL query to answer the following question:
`Which constructor was there for the race with 25 laps?`

### 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 was there for the race with 25 laps?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "laps"=25;
```
## Task
Generate a SQL query to answer the following question:
`Which driver had brm as a constructor and a time/retired of engine?`

### 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 driver had brm as a constructor and a time/retired of engine?`:
```sql
                SELECT "driver" FROM "classification" WHERE "constructor"='brm' AND "time_retired"='engine';
```
## Task
Generate a SQL query to answer the following question:
`What is the call sign for a class of A?`

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

CREATE TABLE "repeaters" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the call sign for a class of A?`:
```sql
                SELECT "call_sign" FROM "repeaters" WHERE "class"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the average frequency MHz for license of eastville, virginia?`

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

CREATE TABLE "repeaters" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average frequency MHz for license of eastville, virginia?`:
```sql
                SELECT AVG("frequency_m_hz") FROM "repeaters" WHERE "city_of_license"='eastville, virginia';
```
## Task
Generate a SQL query to answer the following question:
`What is the average ERP W when the call sign is whre?`

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

CREATE TABLE "repeaters" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average ERP W when the call sign is whre?`:
```sql
                SELECT AVG("erp_w") FROM "repeaters" WHERE "call_sign"='whre';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the school in Hillcrest?`

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

CREATE TABLE "kaipatiki_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 name of the school in Hillcrest?`:
```sql
                SELECT "name" FROM "kaipatiki_local_board" WHERE "area"='hillcrest';
```
## Task
Generate a SQL query to answer the following question:
`What are the years available at Bayview School, which has state authority and a roll number larger than 333?`

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

CREATE TABLE "kaipatiki_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 are the years available at Bayview School, which has state authority and a roll number larger than 333?`:
```sql
                SELECT "years" FROM "kaipatiki_local_board" WHERE "authority"='state' AND "roll">333 AND "name"='bayview school';
```
## Task
Generate a SQL query to answer the following question:
`When was Tomokazu Soma born who plays for the wild knights?`

### 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 Tomokazu Soma born who plays for the wild knights?`:
```sql
                SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='wild knights' AND "player"='tomokazu soma';
```
## Task
Generate a SQL query to answer the following question:
`On November 19, 2008 what was the score?`

### 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 `On November 19, 2008 what was the score?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='november 19, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the score on February 23, 2005?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score on February 23, 2005?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='february 23, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the result foe October 12, 2005?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result foe October 12, 2005?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='october 12, 2005';
```
## Task
Generate a SQL query to answer the following question:
`How many events for orville moody, ranking below 3?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many events for orville moody, ranking below 3?`:
```sql
                SELECT SUM("events") FROM "leaders" WHERE "rank">3 AND "player"='orville moody';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for don january with over 2 wins and over 17 events?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for don january with over 2 wins and over 17 events?`:
```sql
                SELECT MIN("rank") FROM "leaders" WHERE "wins">2 AND "player"='don january' AND "events">17;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the Home team of geelong?`

### 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 `What is the score of the Home team of geelong?`:
```sql
                SELECT "home_team_score" FROM "round_6" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team has a Home team of south melbourne?`

### 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 `Which Away team has a Home team of south melbourne?`:
```sql
                SELECT "away_team" FROM "round_6" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team has a Venue of arden street oval?`

### 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 `Which Away team has a Venue of arden street oval?`:
```sql
                SELECT "away_team" FROM "round_6" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team score has a Venue of scg?`

### 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 `Which Away team score has a Venue of scg?`:
```sql
                SELECT "away_team_score" FROM "round_6" WHERE "venue"='scg';
```
## Task
Generate a SQL query to answer the following question:
`What school has the player of mike rosario?`

### 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 school has the player of mike rosario?`:
```sql
                SELECT "school" FROM "2008_boys_team" WHERE "player"='mike rosario';
```
## Task
Generate a SQL query to answer the following question:
`What was the nba draft for al-farouq aminu?`

### 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 was the nba draft for al-farouq aminu?`:
```sql
                SELECT "nba_draft" FROM "2008_boys_team" WHERE "player"='al-farouq aminu';
```
## Task
Generate a SQL query to answer the following question:
`What was the average attendance of a team with a 38–31–8 record?`

### 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 average attendance of a team with a 38–31–8 record?`:
```sql
                SELECT AVG("attendance") FROM "march" WHERE "record"='38–31–8';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest grid for Bob Anderson?`

### 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 smallest grid for Bob Anderson?`:
```sql
                SELECT MIN("grid") FROM "classification" WHERE "driver"='bob anderson';
```
## Task
Generate a SQL query to answer the following question:
`What was the time when the score was 0–3?`

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

CREATE TABLE "pool_j" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time when the score was 0–3?`:
```sql
                SELECT "time" FROM "pool_j" WHERE "score"='0–3';
```
## Task
Generate a SQL query to answer the following question:
`What was the first set with a third set of 25–21?`

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

CREATE TABLE "pool_j" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first set with a third set of 25–21?`:
```sql
                SELECT "set_1" FROM "pool_j" WHERE "set_3"='25–21';
```
## Task
Generate a SQL query to answer the following question:
`How many total games associated with the Pac-12 of california and 117 years?`

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

CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" (
  "pac_12" text,
  "lost" real,
  "tied" real,
  "pct" real,
  "years" real,
  "total_games" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total games associated with the Pac-12 of california and 117 years?`:
```sql
                SELECT "total_games" FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "years"=117 AND "pac_12"='california';
```
## Task
Generate a SQL query to answer the following question:
`How many games tied for the team with over 94 years in the conference, lost under 5,297 games, and a percentage higher than 0.6106?`

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

CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" (
  "pac_12" text,
  "lost" real,
  "tied" real,
  "pct" real,
  "years" real,
  "total_games" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games tied for the team with over 94 years in the conference, lost under 5,297 games, and a percentage higher than 0.6106?`:
```sql
                SELECT "tied" FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "years">94 AND "lost"<'5,297' AND "pct">0.6106;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of years associated with 51 games tied and over 1184 total games?`

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

CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" (
  "pac_12" text,
  "lost" real,
  "tied" real,
  "pct" real,
  "years" real,
  "total_games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of years associated with 51 games tied and over 1184 total games?`:
```sql
                SELECT AVG("years") FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "tied"=51 AND "total_games">1184;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of games tied for teams with under 551 games and a percentage of under 0.5593?`

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

CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" (
  "pac_12" text,
  "lost" real,
  "tied" real,
  "pct" real,
  "years" real,
  "total_games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of games tied for teams with under 551 games and a percentage of under 0.5593?`:
```sql
                SELECT MAX("tied") FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "pct"<0.5593 AND "lost"=551;
```
## Task
Generate a SQL query to answer the following question:
`Name the country for airline of gol`

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

CREATE TABLE "passengers_carried_in_2011" (
  "rank" real,
  "airline" text,
  "country" text,
  "remarks" text,
  "alliance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for airline of gol`:
```sql
                SELECT "country" FROM "passengers_carried_in_2011" WHERE "airline"='gol';
```
## Task
Generate a SQL query to answer the following question:
`Name the airline for rank of 4`

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

CREATE TABLE "passengers_carried_in_2011" (
  "rank" real,
  "airline" text,
  "country" text,
  "remarks" text,
  "alliance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the airline for rank of 4`:
```sql
                SELECT "airline" FROM "passengers_carried_in_2011" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`What digital reaction has a hot 100 reaction of 4 (+4)?`

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

CREATE TABLE "guest_performances" (
  "week" text,
  "performer_s" text,
  "hot_100_reaction" text,
  "hot_digital_songs_reaction" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What digital reaction has a hot 100 reaction of 4 (+4)?`:
```sql
                SELECT "hot_digital_songs_reaction" FROM "guest_performances" WHERE "hot_100_reaction"='4 (+4)';
```
## Task
Generate a SQL query to answer the following question:
`What digital reaction has hot 100 reaction of 2 (+1)?`

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

CREATE TABLE "guest_performances" (
  "week" text,
  "performer_s" text,
  "hot_100_reaction" text,
  "hot_digital_songs_reaction" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What digital reaction has hot 100 reaction of 2 (+1)?`:
```sql
                SELECT "hot_digital_songs_reaction" FROM "guest_performances" WHERE "hot_100_reaction"='2 (+1)';
```
## Task
Generate a SQL query to answer the following question:
`Which week has hot 100 reaction as did not debut for Natalie Cole?`

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

CREATE TABLE "guest_performances" (
  "week" text,
  "performer_s" text,
  "hot_100_reaction" text,
  "hot_digital_songs_reaction" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week has hot 100 reaction as did not debut for Natalie Cole?`:
```sql
                SELECT "week" FROM "guest_performances" WHERE "hot_100_reaction"='did not debut' AND "performer_s"='natalie cole';
```
## Task
Generate a SQL query to answer the following question:
`What is the hot 100 reaction in week of top 13 for Kanye West?`

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

CREATE TABLE "guest_performances" (
  "week" text,
  "performer_s" text,
  "hot_100_reaction" text,
  "hot_digital_songs_reaction" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hot 100 reaction in week of top 13 for Kanye West?`:
```sql
                SELECT "hot_100_reaction" FROM "guest_performances" WHERE "week"='top 13' AND "performer_s"='kanye west';
```
## Task
Generate a SQL query to answer the following question:
`What is the digital reaction for week of top 5 for Taylor Hicks?`

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

CREATE TABLE "guest_performances" (
  "week" text,
  "performer_s" text,
  "hot_100_reaction" text,
  "hot_digital_songs_reaction" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the digital reaction for week of top 5 for Taylor Hicks?`:
```sql
                SELECT "hot_digital_songs_reaction" FROM "guest_performances" WHERE "week"='top 5' AND "performer_s"='taylor hicks';
```
## Task
Generate a SQL query to answer the following question:
`Which Time/Retired had a grid number bigger than 1 and whose driver was Damon Hill?`

### 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 Time/Retired had a grid number bigger than 1 and whose driver was Damon Hill?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "grid">1 AND "driver"='damon hill';
```
## Task
Generate a SQL query to answer the following question:
`Which lap number had Olivier Panis as a 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 lap number had Olivier Panis as a driver?`:
```sql
                SELECT "laps" FROM "classification" WHERE "driver"='olivier panis';
```
## Task
Generate a SQL query to answer the following question:
`what is the grid when the time/retired is oil pressure and the laps are more than 50?`

### 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 grid when the time/retired is oil pressure and the laps are more than 50?`:
```sql
                SELECT AVG("grid") FROM "classification" WHERE "time_retired"='oil pressure' AND "laps">50;
```
## Task
Generate a SQL query to answer the following question:
`what is the grid when the time/retired is 1:46:42.3?`

### 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 grid when the time/retired is 1:46:42.3?`:
```sql
                SELECT SUM("grid") FROM "classification" WHERE "time_retired"='1:46:42.3';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when Fitzroy played as the away team?`

### 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 attendance when Fitzroy played as the away team?`:
```sql
                SELECT COUNT("crowd") FROM "round_12" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What did the home team score at Western Oval?`

### 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 did the home team score at Western Oval?`:
```sql
                SELECT "home_team_score" FROM "round_12" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the attendance was more than 20,283?`

### 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 `Who was the home team when the attendance was more than 20,283?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "crowd">'20,283';
```
## Task
Generate a SQL query to answer the following question:
`On April 29, with a game larger than 2, what is the high points?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `On April 29, with a game larger than 2, what is the high points?`:
```sql
                SELECT "high_points" FROM "playoffs" WHERE "game">2 AND "date"='april 29';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for Game 3?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for Game 3?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "game"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the grid total for cars that went 17 laps?`

### 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 grid total for cars that went 17 laps?`:
```sql
                SELECT SUM("grid") FROM "classification" WHERE "laps"=17;
```
## Task
Generate a SQL query to answer the following question:
`How many golds for the nation ranked below 5 and over 1 bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds for the nation ranked below 5 and over 1 bronze medals?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "rank">5 AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`During footscray's home match, who was the away team?`

### 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 `During footscray's home match, who was the away team?`:
```sql
                SELECT "away_team_score" FROM "round_12" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`On which date did an away team score 9.16 (70)?`

### 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 an away team score 9.16 (70)?`:
```sql
                SELECT "date" FROM "round_12" WHERE "away_team_score"='9.16 (70)';
```
## Task
Generate a SQL query to answer the following question:
`Which format had a United States region and a date of August 11, 2009?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which format had a United States region and a date of August 11, 2009?`:
```sql
                SELECT "format" FROM "release_history" WHERE "region"='united states' AND "date"='august 11, 2009';
```
## Task
Generate a SQL query to answer the following question:
`Which date had a Japan region?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a Japan region?`:
```sql
                SELECT "date" FROM "release_history" WHERE "region"='japan';
```
## Task
Generate a SQL query to answer the following question:
`Which region had a catalogue number of 9362482872?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region had a catalogue number of 9362482872?`:
```sql
                SELECT "region" FROM "release_history" WHERE "catalogue"='9362482872';
```
## Task
Generate a SQL query to answer the following question:
`Which region had the date of November 18, 2002?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region had the date of November 18, 2002?`:
```sql
                SELECT "region" FROM "release_history" WHERE "date"='november 18, 2002';
```
## Task
Generate a SQL query to answer the following question:
`Which label had a Japan region and a date of November 3, 2004?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which label had a Japan region and a date of November 3, 2004?`:
```sql
                SELECT "label" FROM "release_history" WHERE "region"='japan' AND "date"='november 3, 2004';
```
## Task
Generate a SQL query to answer the following question:
`Which label had a CD format and a date of June 25, 2002?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which label had a CD format and a date of June 25, 2002?`:
```sql
                SELECT "label" FROM "release_history" WHERE "format"='cd' AND "date"='june 25, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What award was nominated in 2007?`

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

CREATE TABLE "awards_and_recognition" (
  "year" real,
  "result" text,
  "award" text,
  "film_or_series" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `What award was nominated in 2007?`:
```sql
                SELECT "award" FROM "awards_and_recognition" WHERE "result"='nominated' AND "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What year did was the Inside Soap Awards won?`

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

CREATE TABLE "awards_and_recognition" (
  "year" real,
  "result" text,
  "award" text,
  "film_or_series" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did was the Inside Soap Awards won?`:
```sql
                SELECT AVG("year") FROM "awards_and_recognition" WHERE "result"='won' AND "award"='inside soap awards';
```
## Task
Generate a SQL query to answer the following question:
`What was the record for the game on April 9, 2008?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" 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 April 9, 2008?`:
```sql
                SELECT "record" FROM "april" WHERE "date"='april 9, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer on April 9, 2008?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer on April 9, 2008?`:
```sql
                SELECT "leading_scorer" FROM "april" WHERE "date"='april 9, 2008';
```
## Task
Generate a SQL query to answer the following question:
`in a game against st kilda, what was the away team's score?`

### 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 `in a game against st kilda, what was the away team's score?`:
```sql
                SELECT "away_team" FROM "round_4" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`In the match where geelong was the away team, who was the home team?`

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

CREATE TABLE "round_19" (
  "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 match where geelong was the away team, who was the home team?`:
```sql
                SELECT "home_team" FROM "round_19" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team score when the home team scored 12.11 (83)?`

### 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 did the away team score when the home team scored 12.11 (83)?`:
```sql
                SELECT "away_team_score" FROM "round_9" WHERE "home_team_score"='12.11 (83)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team in the game where the away team scored 14.19 (103)?`

### 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 `Who was the home team in the game where the away team scored 14.19 (103)?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "away_team_score"='14.19 (103)';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of votes for the party which got more than 28 seats?`

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

CREATE TABLE "result_of_the_24th_election_to_the_new_z" (
  "party" text,
  "leader" text,
  "votes" real,
  "percentage" text,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of votes for the party which got more than 28 seats?`:
```sql
                SELECT COUNT("votes") FROM "result_of_the_24th_election_to_the_new_z" WHERE "seats">28;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of votes for the Party of Labour?`

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

CREATE TABLE "result_of_the_24th_election_to_the_new_z" (
  "party" text,
  "leader" text,
  "votes" real,
  "percentage" text,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of votes for the Party of Labour?`:
```sql
                SELECT MIN("votes") FROM "result_of_the_24th_election_to_the_new_z" WHERE "party"='labour';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage of votes for the party that has Seats of 80?`

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

CREATE TABLE "result_of_the_24th_election_to_the_new_z" (
  "party" text,
  "leader" text,
  "votes" real,
  "percentage" text,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of votes for the party that has Seats of 80?`:
```sql
                SELECT "percentage" FROM "result_of_the_24th_election_to_the_new_z" WHERE "seats"=80;
```
## Task
Generate a SQL query to answer the following question:
`Who is the leader of the party which has Seats less than 28, a percentage of votes 54.03, and more votes than 120,801?`

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

CREATE TABLE "result_of_the_24th_election_to_the_new_z" (
  "party" text,
  "leader" text,
  "votes" real,
  "percentage" text,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the leader of the party which has Seats less than 28, a percentage of votes 54.03, and more votes than 120,801?`:
```sql
                SELECT "leader" FROM "result_of_the_24th_election_to_the_new_z" WHERE "seats"<28 AND "percentage"='54.03' AND "votes">'120,801';
```
## Task
Generate a SQL query to answer the following question:
`Which highest number of Seats has votes of 244,867?`

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

CREATE TABLE "result_of_the_24th_election_to_the_new_z" (
  "party" text,
  "leader" text,
  "votes" real,
  "percentage" text,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which highest number of Seats has votes of 244,867?`:
```sql
                SELECT MAX("seats") FROM "result_of_the_24th_election_to_the_new_z" WHERE "votes"='244,867';
```
## Task
Generate a SQL query to answer the following question:
`What was the Away team score when the Home team had a score of 13.12 (90)?`

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

CREATE TABLE "round_1" (
  "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 Away team score when the Home team had a score of 13.12 (90)?`:
```sql
                SELECT "away_team_score" FROM "round_1" WHERE "home_team_score"='13.12 (90)';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest Crowd of the game that had an Away team score of 13.17 (95)?`

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

CREATE TABLE "round_1" (
  "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 lowest Crowd of the game that had an Away team score of 13.17 (95)?`:
```sql
                SELECT MIN("crowd") FROM "round_1" WHERE "away_team_score"='13.17 (95)';
```
## Task
Generate a SQL query to answer the following question:
`What was the Date of the game of the Home team of melbourne?`

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

CREATE TABLE "round_1" (
  "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 Date of the game of the Home team of melbourne?`:
```sql
                SELECT "date" FROM "round_1" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the Home team in the game that had the Away team of south melbourne?`

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

CREATE TABLE "round_1" (
  "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 of the Home team in the game that had the Away team of south melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_1" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`what was the away team for the north melbourne home team?`

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

CREATE TABLE "round_2" (
  "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 away team for the north melbourne home team?`:
```sql
                SELECT "away_team" FROM "round_2" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`what was the away team score in a game with north melbourne as home team?`

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

CREATE TABLE "round_2" (
  "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 away team score in a game with north melbourne as home team?`:
```sql
                SELECT "away_team_score" FROM "round_2" WHERE "home_team"='melbourne';
```