cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs?`

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

CREATE TABLE "january" (
  "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 `How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs?`:
```sql
                SELECT MIN("attendance") FROM "january" WHERE "leading_scorer"='tim duncan (24)' AND "home"='spurs';
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of laps where Time/retired was a water leak and the grid number was bigger than 12?`

### 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 mean number of laps where Time/retired was a water leak and the grid number was bigger than 12?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "time_retired"='water leak' AND "grid">12;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of laps when time/retired was spun off and the driver was Nick Heidfeld?`

### 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 mean number of laps when time/retired was spun off and the driver was Nick Heidfeld?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "time_retired"='spun off' AND "driver"='nick heidfeld';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum grid number when the driver was Luciano Burti?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum grid number when the driver was Luciano Burti?`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "driver"='luciano burti';
```
## Task
Generate a SQL query to answer the following question:
`Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli?`

### 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 `Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli?`:
```sql
                SELECT "constructor" FROM "race" WHERE "laps">3 AND "driver"='jarno trulli';
```
## Task
Generate a SQL query to answer the following question:
`Name the head of household for married filing jointly or qualified widow(er) being $137,051–$208,850`

### 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_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the head of household for married filing jointly or qualified widow(er) being $137,051–$208,850`:
```sql
                SELECT "head_of_household" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_jointly_or_qualified_widow_er"='$137,051–$208,850';
```
## Task
Generate a SQL query to answer the following question:
`Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200`

### 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_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200`:
```sql
                SELECT "married_filing_jointly_or_qualified_widow_er" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$117,451–$190,200';
```
## Task
Generate a SQL query to answer the following question:
`Name the married filing separately for single of $0–$8,350`

### 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_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the married filing separately for single of $0–$8,350`:
```sql
                SELECT "married_filing_separately" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "single"='$0–$8,350';
```
## Task
Generate a SQL query to answer the following question:
`Name the head of household that has married filing separately of $104,426–$186,475`

### 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_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the head of household that has married filing separately of $104,426–$186,475`:
```sql
                SELECT "head_of_household" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_separately"='$104,426–$186,475';
```
## Task
Generate a SQL query to answer the following question:
`Name the marginal ordinary income tax rate that has a head of household of $372,951+`

### 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_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the marginal ordinary income tax rate that has a head of household of $372,951+`:
```sql
                SELECT "marginal_ordinary_income_tax_rate" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$372,951+';
```
## Task
Generate a SQL query to answer the following question:
`What is the point average for the game that has FGM-FGA of 11-28 and a number smaller than 7?`

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

CREATE TABLE "40_point_games" (
  "number" real,
  "opponent" text,
  "box_score" text,
  "points" real,
  "fgm_fga" text,
  "3_pm_3_pa" text,
  "ftm_fta" text,
  "assists" real,
  "rebounds" real,
  "steals" real,
  "blocks" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the point average for the game that has FGM-FGA of 11-28 and a number smaller than 7?`:
```sql
                SELECT AVG("points") FROM "40_point_games" WHERE "fgm_fga"='11-28' AND "number"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of floors recorded for buildings built by Dubai Marriott Harbour Hotel & Suites?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_m_ft" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of floors recorded for buildings built by Dubai Marriott Harbour Hotel & Suites?`:
```sql
                SELECT MIN("floors") FROM "tallest_buildings" WHERE "name"='dubai marriott harbour hotel & suites';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the building housing more than 101 floors, that was built after 2006?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_m_ft" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the building housing more than 101 floors, that was built after 2006?`:
```sql
                SELECT "name" FROM "tallest_buildings" WHERE "year">2006 AND "floors">101;
```
## Task
Generate a SQL query to answer the following question:
`Which team played against the away team that scored 5.5 (35)?`

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

CREATE TABLE "round_15" (
  "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 team played against the away team that scored 5.5 (35)?`:
```sql
                SELECT "home_team" FROM "round_15" WHERE "away_team_score"='5.5 (35)';
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd size on 4 july 1981, and a Away team of essendon?`

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

CREATE TABLE "round_15" (
  "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 crowd size on 4 july 1981, and a Away team of essendon?`:
```sql
                SELECT "crowd" FROM "round_15" WHERE "date"='4 july 1981' AND "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`When did essendon play away?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did essendon play away?`:
```sql
                SELECT "date" FROM "round_15" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Which category won the Sundance Film Festival award in 1998?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "film_or_series" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which category won the Sundance Film Festival award in 1998?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "result"='won' AND "year"=1998 AND "award"='sundance film festival';
```
## Task
Generate a SQL query to answer the following question:
`Which award category was the film series The Wire nominated for after 2005?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "film_or_series" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which award category was the film series The Wire nominated for after 2005?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "result"='nominated' AND "film_or_series"='the wire' AND "year">2005;
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the nominee for Outstanding Supporting Actress in a Drama Series in 2009?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "film_or_series" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the nominee for Outstanding Supporting Actress in a Drama Series in 2009?`:
```sql
                SELECT "result" FROM "awards_and_nominations" WHERE "category"='outstanding supporting actress in a drama series' AND "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`When the home team scored 11.13 (79), what away team were they playing?`

### 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 `When the home team scored 11.13 (79), what away team were they playing?`:
```sql
                SELECT "away_team" FROM "round_2" WHERE "home_team_score"='11.13 (79)';
```
## Task
Generate a SQL query to answer the following question:
`When st kilda played as the away team, what date was that?`

### 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 `When st kilda played as the away team, what date was that?`:
```sql
                SELECT "date" FROM "round_2" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd total on the day the home team scored 12.12 (84)?`

### 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 crowd total on the day the home team scored 12.12 (84)?`:
```sql
                SELECT SUM("crowd") FROM "round_2" WHERE "home_team_score"='12.12 (84)';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Fitzroy play as the 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 `On what date did Fitzroy play as the home team?`:
```sql
                SELECT "date" FROM "round_2" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What date did the home team score 12.12 (84)?`

### 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 date did the home team score 12.12 (84)?`:
```sql
                SELECT "date" FROM "round_2" WHERE "home_team_score"='12.12 (84)';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the away team score in the game that the home team scored 14.25 (109)?`

### 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 `How many points did the away team score in the game that the home team scored 14.25 (109)?`:
```sql
                SELECT "away_team_score" FROM "round_2" WHERE "home_team_score"='14.25 (109)';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of crowds that saw hawthorn at home?`

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

CREATE TABLE "round_18" (
  "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 sum of crowds that saw hawthorn at home?`:
```sql
                SELECT SUM("crowd") FROM "round_18" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What away side scores 10.17 (77)?`

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

CREATE TABLE "round_18" (
  "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 side scores 10.17 (77)?`:
```sql
                SELECT "away_team" FROM "round_18" WHERE "away_team_score"='10.17 (77)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home side when the away side scores 10.17 (77)?`

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

CREATE TABLE "round_18" (
  "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 is the home side when the away side scores 10.17 (77)?`:
```sql
                SELECT "home_team" FROM "round_18" WHERE "away_team_score"='10.17 (77)';
```
## Task
Generate a SQL query to answer the following question:
`Name the antonio thomas for Hikaru Sato of tanaka (8:09)`

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

CREATE TABLE "2010" (
  "block_a" text,
  "antonio_thomas" text,
  "hikaru_sato" text,
  "hiroshi_yamato" text,
  "kaz_hayashi" text,
  "minoru" text,
  "super_crazy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the antonio thomas for Hikaru Sato of tanaka (8:09)`:
```sql
                SELECT "antonio_thomas" FROM "2010" WHERE "hikaru_sato"='tanaka (8:09)';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the block A for antonio thomas of kondo (13:24)`

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

CREATE TABLE "2010" (
  "block_a" text,
  "antonio_thomas" text,
  "hikaru_sato" text,
  "hiroshi_yamato" text,
  "kaz_hayashi" text,
  "minoru" text,
  "super_crazy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the block A for antonio thomas of kondo (13:24)`:
```sql
                SELECT "block_a" FROM "2010" WHERE "antonio_thomas"='kondo (13:24)';
```
## Task
Generate a SQL query to answer the following question:
`Name the minoru that has a hikaru sato of x and super crazy of yang (8:36)`

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

CREATE TABLE "2010" (
  "block_a" text,
  "antonio_thomas" text,
  "hikaru_sato" text,
  "hiroshi_yamato" text,
  "kaz_hayashi" text,
  "minoru" text,
  "super_crazy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minoru that has a hikaru sato of x and super crazy of yang (8:36)`:
```sql
                SELECT "minoru" FROM "2010" WHERE "hikaru_sato"='x' AND "super_crazy"='yang (8:36)';
```
## Task
Generate a SQL query to answer the following question:
`Atlanta was a visitor on December 8, what was their record?`

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

CREATE TABLE "december" (
  "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 `Atlanta was a visitor on December 8, what was their record?`:
```sql
                SELECT "record" FROM "december" WHERE "visitor"='atlanta';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the team which has matches of 13`

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

CREATE TABLE "managerial_statistics" (
  "team" text,
  "nation" text,
  "from" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the team which has matches of 13`:
```sql
                SELECT "team" FROM "managerial_statistics" WHERE "matches"=13;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the sum of win % for drawn being larger than 35`

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

CREATE TABLE "managerial_statistics" (
  "team" text,
  "nation" text,
  "from" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the sum of win % for drawn being larger than 35`:
```sql
                SELECT SUM("win_pct") FROM "managerial_statistics" WHERE "drawn">35;
```
## Task
Generate a SQL query to answer the following question:
`Name the most win % for 13 drawn`

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

CREATE TABLE "managerial_statistics" (
  "team" text,
  "nation" text,
  "from" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most win % for 13 drawn`:
```sql
                SELECT MAX("win_pct") FROM "managerial_statistics" WHERE "drawn"=13;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of drawn for 30 october 2006 and win % more than 43.2`

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

CREATE TABLE "managerial_statistics" (
  "team" text,
  "nation" text,
  "from" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of drawn for 30 october 2006 and win % more than 43.2`:
```sql
                SELECT SUM("drawn") FROM "managerial_statistics" WHERE "from"='30 october 2006' AND "win_pct">43.2;
```
## Task
Generate a SQL query to answer the following question:
`Name the win % average from 22 april 2000 for drawn more than 1`

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

CREATE TABLE "managerial_statistics" (
  "team" text,
  "nation" text,
  "from" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the win % average from 22 april 2000 for drawn more than 1`:
```sql
                SELECT AVG("win_pct") FROM "managerial_statistics" WHERE "from"='22 april 2000' AND "drawn">1;
```
## Task
Generate a SQL query to answer the following question:
`Name the average lost for matches of 6`

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

CREATE TABLE "managerial_statistics" (
  "team" text,
  "nation" text,
  "from" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average lost for matches of 6`:
```sql
                SELECT AVG("lost") FROM "managerial_statistics" WHERE "matches"=6;
```
## Task
Generate a SQL query to answer the following question:
`What was the time recorded for grid 18?`

### 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 was the time recorded for grid 18?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"=18;
```
## Task
Generate a SQL query to answer the following question:
`What catalogue has a track less than 16 and 2/3/56 recorded with a song titled Lawdy Miss Clawdy?`

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

CREATE TABLE "disc_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What catalogue has a track less than 16 and 2/3/56 recorded with a song titled Lawdy Miss Clawdy?`:
```sql
                SELECT "catalogue" FROM "disc_two" WHERE "track"<16 AND "recorded"='2/3/56' AND "song_title"='lawdy miss clawdy';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest track for the song Rip it Up?`

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

CREATE TABLE "disc_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest track for the song Rip it Up?`:
```sql
                SELECT MAX("track") FROM "disc_two" WHERE "song_title"='rip it up';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length?`

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

CREATE TABLE "disc_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length?`:
```sql
                SELECT SUM("track") FROM "disc_two" WHERE "catalogue"='epa 4054' AND "time"='2:05';
```
## Task
Generate a SQL query to answer the following question:
`What catalogue has a length of 2:10?`

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

CREATE TABLE "disc_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What catalogue has a length of 2:10?`:
```sql
                SELECT "catalogue" FROM "disc_two" WHERE "time"='2:10';
```
## Task
Generate a SQL query to answer the following question:
`When was the release date of a track greater than 4, 1/12/57 recorded, and a length of 2:31?`

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

CREATE TABLE "disc_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the release date of a track greater than 4, 1/12/57 recorded, and a length of 2:31?`:
```sql
                SELECT "release_date" FROM "disc_two" WHERE "track">4 AND "recorded"='1/12/57' AND "time"='2:31';
```
## Task
Generate a SQL query to answer the following question:
`When was the cataglogue EPA 4054 released with a 1/12/57 recorded?`

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

CREATE TABLE "disc_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the cataglogue EPA 4054 released with a 1/12/57 recorded?`:
```sql
                SELECT "release_date" FROM "disc_two" WHERE "catalogue"='epa 4054' AND "recorded"='1/12/57';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the school with a height of 6-9`

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

CREATE TABLE "2002_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 `Tell me the school with a height of 6-9`:
```sql
                SELECT "school" FROM "2002_boys_team" WHERE "height"='6-9';
```
## Task
Generate a SQL query to answer the following question:
`Which school did the player have a height of 6-4?`

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

CREATE TABLE "2002_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 `Which school did the player have a height of 6-4?`:
```sql
                SELECT "school" FROM "2002_boys_team" WHERE "height"='6-4';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the college that paul davis went to`

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

CREATE TABLE "2002_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 `Tell me the college that paul davis went to`:
```sql
                SELECT "college" FROM "2002_boys_team" WHERE "player"='paul davis';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the school that jason fraser went to`

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

CREATE TABLE "2002_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 `Tell me the school that jason fraser went to`:
```sql
                SELECT "school" FROM "2002_boys_team" WHERE "player"='jason fraser';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the game with 68,436 attending?`

### 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,
  "kickoff_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the game with 68,436 attending?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='68,436';
```
## Task
Generate a SQL query to answer the following question:
`What is the NBA Draft status of the person who went to college at LSU?`

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

CREATE TABLE "1988_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 NBA Draft status of the person who went to college at LSU?`:
```sql
                SELECT "nba_draft" FROM "1988_boys_team" WHERE "college"='lsu';
```
## Task
Generate a SQL query to answer the following question:
`What is Player Kenny Williams' Height?`

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

CREATE TABLE "1988_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 Player Kenny Williams' Height?`:
```sql
                SELECT "height" FROM "1988_boys_team" WHERE "player"='kenny williams';
```
## Task
Generate a SQL query to answer the following question:
`What School did Player Billy Owens attend?`

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

CREATE TABLE "1988_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 did Player Billy Owens attend?`:
```sql
                SELECT "school" FROM "1988_boys_team" WHERE "player"='billy owens';
```
## Task
Generate a SQL query to answer the following question:
`What School did Player Alonzo Mourning attend?`

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

CREATE TABLE "1988_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 did Player Alonzo Mourning attend?`:
```sql
                SELECT "school" FROM "1988_boys_team" WHERE "player"='alonzo mourning';
```
## Task
Generate a SQL query to answer the following question:
`How many bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd?`

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

CREATE TABLE "medals_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 bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd?`:
```sql
                SELECT AVG("bronze") FROM "medals_table" WHERE "total">1 AND "gold"<2 AND "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many silvers on average for nations with less than 3 total, ranked 6, and over 1 bronze?`

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

CREATE TABLE "medals_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 silvers on average for nations with less than 3 total, ranked 6, and over 1 bronze?`:
```sql
                SELECT AVG("silver") FROM "medals_table" WHERE "total"<3 AND "rank"=6 AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the Cubs game when the Cubs had a record of 1-0?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the Cubs game when the Cubs had a record of 1-0?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Cubs play when they had a record of 4-4?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Cubs play when they had a record of 4-4?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='4-4';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of WMAD?`

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

CREATE TABLE "aor_radio_stations" (
  "call_letters" text,
  "market" text,
  "frequency" text,
  "aor_years" text,
  "current_format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of WMAD?`:
```sql
                SELECT "frequency" FROM "aor_radio_stations" WHERE "call_letters"='wmad';
```
## Task
Generate a SQL query to answer the following question:
`Name the lfop 5/11/09 with opinion way of 5/11/09 of 2% and lpsos 3/14/09 of 2%`

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

CREATE TABLE "polling" (
  "party" text,
  "results_2004" text,
  "ifop_11_12_08" text,
  "ifop_1_9_09" text,
  "ipsos_3_14_09" text,
  "csa_4_16_09" text,
  "opinion_way_4_17_09" text,
  "ifop_4_24_09" text,
  "ipsos_5_2_09" text,
  "ifop_5_11_09" text,
  "opinion_way_5_11_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lfop 5/11/09 with opinion way of 5/11/09 of 2% and lpsos 3/14/09 of 2%`:
```sql
                SELECT "ifop_5_11_09" FROM "polling" WHERE "opinion_way_5_11_09"='2%' AND "ipsos_3_14_09"='2%';
```
## Task
Generate a SQL query to answer the following question:
`Name the lfop 4/24/09 for opinionway of 4/17/09 of 5% for party of left front`

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

CREATE TABLE "polling" (
  "party" text,
  "results_2004" text,
  "ifop_11_12_08" text,
  "ifop_1_9_09" text,
  "ipsos_3_14_09" text,
  "csa_4_16_09" text,
  "opinion_way_4_17_09" text,
  "ifop_4_24_09" text,
  "ipsos_5_2_09" text,
  "ifop_5_11_09" text,
  "opinion_way_5_11_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lfop 4/24/09 for opinionway of 4/17/09 of 5% for party of left front`:
```sql
                SELECT "ifop_4_24_09" FROM "polling" WHERE "opinion_way_4_17_09"='5%' AND "party"='left front';
```
## Task
Generate a SQL query to answer the following question:
`Name the lfop for 5/11/09 with lfop 1/9/09 of 5%`

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

CREATE TABLE "polling" (
  "party" text,
  "results_2004" text,
  "ifop_11_12_08" text,
  "ifop_1_9_09" text,
  "ipsos_3_14_09" text,
  "csa_4_16_09" text,
  "opinion_way_4_17_09" text,
  "ifop_4_24_09" text,
  "ipsos_5_2_09" text,
  "ifop_5_11_09" text,
  "opinion_way_5_11_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lfop for 5/11/09 with lfop 1/9/09 of 5%`:
```sql
                SELECT "ifop_5_11_09" FROM "polling" WHERE "ifop_1_9_09"='5%';
```
## Task
Generate a SQL query to answer the following question:
`Name the csa 4/16/09 for opinionway being 4/17/09 of 12%`

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

CREATE TABLE "polling" (
  "party" text,
  "results_2004" text,
  "ifop_11_12_08" text,
  "ifop_1_9_09" text,
  "ipsos_3_14_09" text,
  "csa_4_16_09" text,
  "opinion_way_4_17_09" text,
  "ifop_4_24_09" text,
  "ipsos_5_2_09" text,
  "ifop_5_11_09" text,
  "opinion_way_5_11_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the csa 4/16/09 for opinionway being 4/17/09 of 12%`:
```sql
                SELECT "csa_4_16_09" FROM "polling" WHERE "opinion_way_4_17_09"='12%';
```
## Task
Generate a SQL query to answer the following question:
`Name the lpsos 3/14/09 for opinionway of 4/17/09 of 5% and lfof 11/12/08 of 7%`

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

CREATE TABLE "polling" (
  "party" text,
  "results_2004" text,
  "ifop_11_12_08" text,
  "ifop_1_9_09" text,
  "ipsos_3_14_09" text,
  "csa_4_16_09" text,
  "opinion_way_4_17_09" text,
  "ifop_4_24_09" text,
  "ipsos_5_2_09" text,
  "ifop_5_11_09" text,
  "opinion_way_5_11_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lpsos 3/14/09 for opinionway of 4/17/09 of 5% and lfof 11/12/08 of 7%`:
```sql
                SELECT "ipsos_3_14_09" FROM "polling" WHERE "ifop_11_12_08"='7%' AND "opinion_way_4_17_09"='5%';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2004 results for npa`

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

CREATE TABLE "polling" (
  "party" text,
  "results_2004" text,
  "ifop_11_12_08" text,
  "ifop_1_9_09" text,
  "ipsos_3_14_09" text,
  "csa_4_16_09" text,
  "opinion_way_4_17_09" text,
  "ifop_4_24_09" text,
  "ipsos_5_2_09" text,
  "ifop_5_11_09" text,
  "opinion_way_5_11_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2004 results for npa`:
```sql
                SELECT "results_2004" FROM "polling" WHERE "party"='npa';
```
## Task
Generate a SQL query to answer the following question:
`What was the decision when Tampa Bay was the visitor?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the decision when Tampa Bay was the visitor?`:
```sql
                SELECT "decision" FROM "february" WHERE "visitor"='tampa bay';
```
## Task
Generate a SQL query to answer the following question:
`Which visitor visited on February 21?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which visitor visited on February 21?`:
```sql
                SELECT "visitor" FROM "february" WHERE "date"='february 21';
```
## Task
Generate a SQL query to answer the following question:
`Which team has an away score of 9.10 (64)?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has an away score of 9.10 (64)?`:
```sql
                SELECT "home_team" FROM "round_6" WHERE "away_team_score"='9.10 (64)';
```
## Task
Generate a SQL query to answer the following question:
`What date is the Victoria Park venue?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date is the Victoria Park venue?`:
```sql
                SELECT "date" FROM "round_6" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`What Home team has an away score of 6.6 (42)?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Home team has an away score of 6.6 (42)?`:
```sql
                SELECT "home_team_score" FROM "round_6" WHERE "away_team_score"='6.6 (42)';
```
## Task
Generate a SQL query to answer the following question:
`What home team has a score of 5.8 (38)?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has a score of 5.8 (38)?`:
```sql
                SELECT "home_team" FROM "round_6" WHERE "home_team_score"='5.8 (38)';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team score of a Melbourne team that has a home team score of 12.7 (79)?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team score of a Melbourne team that has a home team score of 12.7 (79)?`:
```sql
                SELECT "away_team_score" FROM "round_6" WHERE "home_team_score"='12.7 (79)' AND "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What Away team is from Fitzroy?`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Away team is from Fitzroy?`:
```sql
                SELECT "away_team" FROM "round_6" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that played the Lakers?`

### 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,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team that played the Lakers?`:
```sql
                SELECT "home" FROM "march" WHERE "visitor"='lakers';
```
## Task
Generate a SQL query to answer the following question:
`What is the low money with 374,164$ of debt and receipts larger than 3,898,226 without loans?`

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

CREATE TABLE "democrats" (
  "candidate" text,
  "total_receipts" real,
  "loans_received" real,
  "receipts_w_o_loans" real,
  "money_spent" real,
  "cash_on_hand" real,
  "total_debt" text,
  "cash_on_hand_minus_debt" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low money with 374,164$ of debt and receipts larger than 3,898,226 without loans?`:
```sql
                SELECT MIN("money_spent") FROM "democrats" WHERE "total_debt"='374,164' AND "receipts_w_o_loans">'3,898,226';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had a 2008 result of 1R?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a 2008 result of 1R?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2006"='a' AND "2008"='1r';
```