cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the home team at Brunswick 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 `Who was the home team at Brunswick Street Oval?`:
```sql
                SELECT "home_team" FROM "round_6" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`What was South Melbourne's away team score?`

### 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 was South Melbourne's away team score?`:
```sql
                SELECT "away_team_score" FROM "round_6" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Brunswick 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 `Who was the away team at Brunswick Street Oval?`:
```sql
                SELECT "away_team_score" FROM "round_6" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest height for class of hewitt and prom less than 148`

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

CREATE TABLE "the" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest height for class of hewitt and prom less than 148`:
```sql
                SELECT MIN("height_m") FROM "the" WHERE "class"='hewitt' AND "prom_m"<148;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of prom for height less than 615`

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

CREATE TABLE "the" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the total number of prom for height less than 615`:
```sql
                SELECT COUNT("prom_m") FROM "the" WHERE "height_m"<615;
```
## Task
Generate a SQL query to answer the following question:
`I want to know the peak which is prom less than 147 and height less than 619`

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

CREATE TABLE "the" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the peak which is prom less than 147 and height less than 619`:
```sql
                SELECT "peak" FROM "the" WHERE "prom_m"<147 AND "height_m"<619;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the peak for prom being less than 147`

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

CREATE TABLE "the" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the peak for prom being less than 147`:
```sql
                SELECT "peak" FROM "the" WHERE "prom_m"<147;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615`

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

CREATE TABLE "the" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615`:
```sql
                SELECT MIN("prom_m") FROM "the" WHERE "class"='hewitt' AND "peak"='cushat law' AND "height_m">615;
```
## Task
Generate a SQL query to answer the following question:
`Name the peak for height more than 619 and class of hewitt with prom being 148`

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

CREATE TABLE "the" (
  "peak" text,
  "height_m" real,
  "prom_m" real,
  "class" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the peak for height more than 619 and class of hewitt with prom being 148`:
```sql
                SELECT "peak" FROM "the" WHERE "height_m">619 AND "class"='hewitt' AND "prom_m"=148;
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage democrats with 2/4 democrat/republican?`

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

CREATE TABLE "partisan_mix_of_the_house_by_state" (
  "state_ranked_in_partisan_order" text,
  "percentage_democrats" text,
  "percentage_republicans" text,
  "democratic_republican" text,
  "democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage democrats with 2/4 democrat/republican?`:
```sql
                SELECT "percentage_democrats" FROM "partisan_mix_of_the_house_by_state" WHERE "democratic_republican"='2/4';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?`

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

CREATE TABLE "partisan_mix_of_the_house_by_state" (
  "state_ranked_in_partisan_order" text,
  "percentage_democrats" text,
  "percentage_republicans" text,
  "democratic_republican" text,
  "democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?`:
```sql
                SELECT "percentage_democrats" FROM "partisan_mix_of_the_house_by_state" WHERE "democratic_seat_plurality"='-3' AND "democratic_republican"='2/5';
```
## Task
Generate a SQL query to answer the following question:
`What is the percent of republicans with 7/6 democrat/republican?`

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

CREATE TABLE "partisan_mix_of_the_house_by_state" (
  "state_ranked_in_partisan_order" text,
  "percentage_democrats" text,
  "percentage_republicans" text,
  "democratic_republican" text,
  "democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percent of republicans with 7/6 democrat/republican?`:
```sql
                SELECT "percentage_republicans" FROM "partisan_mix_of_the_house_by_state" WHERE "democratic_republican"='7/6';
```
## Task
Generate a SQL query to answer the following question:
`What is the democratic seat plurality with 29% democrat?`

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

CREATE TABLE "partisan_mix_of_the_house_by_state" (
  "state_ranked_in_partisan_order" text,
  "percentage_democrats" text,
  "percentage_republicans" text,
  "democratic_republican" text,
  "democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the democratic seat plurality with 29% democrat?`:
```sql
                SELECT "democratic_seat_plurality" FROM "partisan_mix_of_the_house_by_state" WHERE "percentage_democrats"='29%';
```
## Task
Generate a SQL query to answer the following question:
`What is the democratic seat plurality with partisan order of New Hampshire?`

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

CREATE TABLE "partisan_mix_of_the_house_by_state" (
  "state_ranked_in_partisan_order" text,
  "percentage_democrats" text,
  "percentage_republicans" text,
  "democratic_republican" text,
  "democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the democratic seat plurality with partisan order of New Hampshire?`:
```sql
                SELECT "democratic_seat_plurality" FROM "partisan_mix_of_the_house_by_state" WHERE "state_ranked_in_partisan_order"='new hampshire';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with Pacers as the Visitor?`

### 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,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game with Pacers as the Visitor?`:
```sql
                SELECT "score" FROM "december" WHERE "visitor"='pacers';
```
## Task
Generate a SQL query to answer the following question:
`Who was Home on December 5, 2007?`

### 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,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Home on December 5, 2007?`:
```sql
                SELECT "home" FROM "december" WHERE "date"='december 5, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the Japanese orthography for the abbreviation of ndmc?`

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

CREATE TABLE "administered_by_the_national_government_" (
  "english_name" text,
  "japanese_orthography" text,
  "pronouciation" text,
  "abbreviation" text,
  "provider_national_government" text,
  "foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Japanese orthography for the abbreviation of ndmc?`:
```sql
                SELECT "japanese_orthography" FROM "administered_by_the_national_government_" WHERE "abbreviation"='ndmc';
```
## Task
Generate a SQL query to answer the following question:
`What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?`

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

CREATE TABLE "administered_by_the_national_government_" (
  "english_name" text,
  "japanese_orthography" text,
  "pronouciation" text,
  "abbreviation" text,
  "provider_national_government" text,
  "foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?`:
```sql
                SELECT "english_name" FROM "administered_by_the_national_government_" WHERE "provider_national_government"='ministry of defense' AND "abbreviation"='nda bōei-dai(防衛大)';
```
## Task
Generate a SQL query to answer the following question:
`What did the team score when playing at home in victoria park?`

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

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

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

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

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did st kilda score at home?`:
```sql
                SELECT "home_team_score" FROM "round_16" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What was the top crowd when collingwood played home?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the top crowd when collingwood played home?`:
```sql
                SELECT MAX("crowd") FROM "round_16" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Which team plays home in western oval venue?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team plays home in western oval venue?`:
```sql
                SELECT "home_team" FROM "round_16" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?`

### 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 `When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "laps"<53 AND "driver"='innes ireland';
```
## Task
Generate a SQL query to answer the following question:
`How many laps does peter arundell have?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps does peter arundell have?`:
```sql
                SELECT "laps" FROM "race" WHERE "driver"='peter arundell';
```
## Task
Generate a SQL query to answer the following question:
`Which driver has a grid value larger than 11, and drove more than 52 laps?`

### 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 driver has a grid value larger than 11, and drove more than 52 laps?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid">11 AND "laps">52;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the away team score with the crowd bigger than 15,242 with home team of carlton`

### 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 `Tell me the away team score with the crowd bigger than 15,242 with home team of carlton`:
```sql
                SELECT "away_team_score" FROM "round_1" WHERE "crowd">'15,242' AND "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What is the crowd for away team of north 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 is the crowd for away team of north melbourne?`:
```sql
                SELECT "crowd" FROM "round_1" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the date when the away team is essendon?`

### 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 is the date when the away team is essendon?`:
```sql
                SELECT "date" FROM "round_1" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Name the visitor from vancouver on february 24`

### 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,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the visitor from vancouver on february 24`:
```sql
                SELECT "visitor" FROM "february" WHERE "home"='vancouver' AND "date"='february 24';
```
## Task
Generate a SQL query to answer the following question:
`Which description is dated 1962?`

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

CREATE TABLE "list_of_great_central_railway_locomotive" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which description is dated 1962?`:
```sql
                SELECT "description" FROM "list_of_great_central_railway_locomotive" WHERE "date"='1962';
```
## Task
Generate a SQL query to answer the following question:
`Moorabbin oval is home to what team?`

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

CREATE TABLE "round_11" (
  "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 `Moorabbin oval is home to what team?`:
```sql
                SELECT "home_team" FROM "round_11" WHERE "venue"='moorabbin oval';
```
## Task
Generate a SQL query to answer the following question:
`Which away team scored 10.14 (74)?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team scored 10.14 (74)?`:
```sql
                SELECT "away_team" FROM "round_11" WHERE "away_team_score"='10.14 (74)';
```
## Task
Generate a SQL query to answer the following question:
`How many crowds had a home team score of 9.13 (67)?`

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

CREATE TABLE "round_11" (
  "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 crowds had a home team score of 9.13 (67)?`:
```sql
                SELECT COUNT("crowd") FROM "round_11" WHERE "home_team_score"='9.13 (67)';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd on the day the home team scored 7.10 (52)?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in the crowd on the day the home team scored 7.10 (52)?`:
```sql
                SELECT "crowd" FROM "round_11" WHERE "home_team_score"='7.10 (52)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leader at the summit for the race in 2005?`

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

CREATE TABLE "appearances_in_tour_de_france" (
  "year" real,
  "stage" real,
  "category" text,
  "start" text,
  "finish" text,
  "leader_at_the_summit" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leader at the summit for the race in 2005?`:
```sql
                SELECT "leader_at_the_summit" FROM "appearances_in_tour_de_france" WHERE "year"=2005;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the stages for category 1 races after the year 2003?`

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

CREATE TABLE "appearances_in_tour_de_france" (
  "year" real,
  "stage" real,
  "category" text,
  "start" text,
  "finish" text,
  "leader_at_the_summit" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the stages for category 1 races after the year 2003?`:
```sql
                SELECT SUM("stage") FROM "appearances_in_tour_de_france" WHERE "category"='1' AND "year">2003;
```
## Task
Generate a SQL query to answer the following question:
`What is the stadium of 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 `What is the stadium of melbourne?`:
```sql
                SELECT "venue" FROM "round_6" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`How big was the average crowd when the opposing team scored 19.16 (130)?`

### 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 `How big was the average crowd when the opposing team scored 19.16 (130)?`:
```sql
                SELECT AVG("crowd") FROM "round_6" WHERE "away_team_score"='19.16 (130)';
```
## Task
Generate a SQL query to answer the following question:
`What was the record in the game where the decision was Backstrom and there were more than 18,568 in attendance?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the game where the decision was Backstrom and there were more than 18,568 in attendance?`:
```sql
                SELECT "record" FROM "game_log" WHERE "decision"='backstrom' AND "attendance">'18,568';
```
## Task
Generate a SQL query to answer the following question:
`For Getafe CF, what is the highest number of goals scored?`

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

CREATE TABLE "zamora_trophy" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For Getafe CF, what is the highest number of goals scored?`:
```sql
                SELECT MAX("goals") FROM "zamora_trophy" WHERE "team"='getafe cf';
```
## Task
Generate a SQL query to answer the following question:
`For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?`

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

CREATE TABLE "zamora_trophy" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?`:
```sql
                SELECT AVG("matches") FROM "zamora_trophy" WHERE "goals"<41 AND "team"='ca osasuna' AND "average"<1.06;
```
## Task
Generate a SQL query to answer the following question:
`For averages of 1.58 and matches under 38, what is the average number of goals?`

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

CREATE TABLE "zamora_trophy" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For averages of 1.58 and matches under 38, what is the average number of goals?`:
```sql
                SELECT AVG("goals") FROM "zamora_trophy" WHERE "average"=1.58 AND "matches"<38;
```
## Task
Generate a SQL query to answer the following question:
`Which Ranking has a Season of 2009?`

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

CREATE TABLE "summary" (
  "season" text,
  "uefa_season" text,
  "coeff" text,
  "ranking" real,
  "champions" text,
  "runner_up" text,
  "3rd_place" text,
  "cup_winner" text,
  "cup_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ranking has a Season of 2009?`:
```sql
                SELECT "ranking" FROM "summary" WHERE "season"='2009';
```
## Task
Generate a SQL query to answer the following question:
`Which Champions have a Runner-up of tobol, and a Coeff of 1.125?`

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

CREATE TABLE "summary" (
  "season" text,
  "uefa_season" text,
  "coeff" text,
  "ranking" real,
  "champions" text,
  "runner_up" text,
  "3rd_place" text,
  "cup_winner" text,
  "cup_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Champions have a Runner-up of tobol, and a Coeff of 1.125?`:
```sql
                SELECT "champions" FROM "summary" WHERE "runner_up"='tobol' AND "coeff"='1.125';
```
## Task
Generate a SQL query to answer the following question:
`In what Season is there a 3rd place of tobol, and a Champion of irtysh?`

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

CREATE TABLE "summary" (
  "season" text,
  "uefa_season" text,
  "coeff" text,
  "ranking" real,
  "champions" text,
  "runner_up" text,
  "3rd_place" text,
  "cup_winner" text,
  "cup_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Season is there a 3rd place of tobol, and a Champion of irtysh?`:
```sql
                SELECT "season" FROM "summary" WHERE "3rd_place"='tobol' AND "champions"='irtysh';
```
## Task
Generate a SQL query to answer the following question:
`Which Champion has a Coeff of 1.000?`

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

CREATE TABLE "summary" (
  "season" text,
  "uefa_season" text,
  "coeff" text,
  "ranking" real,
  "champions" text,
  "runner_up" text,
  "3rd_place" text,
  "cup_winner" text,
  "cup_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Champion has a Coeff of 1.000?`:
```sql
                SELECT "champions" FROM "summary" WHERE "coeff"='1.000';
```
## Task
Generate a SQL query to answer the following question:
`what is the game for 23 april when batting 2nd is england 5/113 (19)?`

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

CREATE TABLE "qualifying_games" (
  "game" real,
  "date" text,
  "batting_1st" text,
  "batting_2nd" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the game for 23 april when batting 2nd is england 5/113 (19)?`:
```sql
                SELECT MIN("game") FROM "qualifying_games" WHERE "date"='23 april' AND "batting_2nd"='england 5/113 (19)';
```
## Task
Generate a SQL query to answer the following question:
`what is the game when batting 2nd is new zealand 6/133 (18)?`

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

CREATE TABLE "qualifying_games" (
  "game" real,
  "date" text,
  "batting_1st" text,
  "batting_2nd" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the game when batting 2nd is new zealand 6/133 (18)?`:
```sql
                SELECT MIN("game") FROM "qualifying_games" WHERE "batting_2nd"='new zealand 6/133 (18)';
```
## Task
Generate a SQL query to answer the following question:
`what is the game when the result is new zealand by 4 wickets?`

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

CREATE TABLE "qualifying_games" (
  "game" real,
  "date" text,
  "batting_1st" text,
  "batting_2nd" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the game when the result is new zealand by 4 wickets?`:
```sql
                SELECT MAX("game") FROM "qualifying_games" WHERE "result"='new zealand by 4 wickets';
```
## Task
Generate a SQL query to answer the following question:
`who is batting 1st in game 8?`

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

CREATE TABLE "qualifying_games" (
  "game" real,
  "date" text,
  "batting_1st" text,
  "batting_2nd" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is batting 1st in game 8?`:
```sql
                SELECT "batting_1st" FROM "qualifying_games" WHERE "game"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the regular season 1 result of the season when the Copa México was no longer played, the pyramid level was 2, and the regular season 2 result was 15th?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "pyramid_level" text,
  "regular_season_1" text,
  "playoffs_1" text,
  "regular_season_2" text,
  "playoffs_2" text,
  "copa_m_xico" text,
  "concacaf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the regular season 1 result of the season when the Copa México was no longer played, the pyramid level was 2, and the regular season 2 result was 15th?`:
```sql
                SELECT "regular_season_1" FROM "year_by_year" WHERE "copa_m_xico"='no longer played' AND "pyramid_level"='2' AND "regular_season_2"='15th';
```
## Task
Generate a SQL query to answer the following question:
`What is the regular season 2 result of season 2001-02?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "pyramid_level" text,
  "regular_season_1" text,
  "playoffs_1" text,
  "regular_season_2" text,
  "playoffs_2" text,
  "copa_m_xico" text,
  "concacaf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the regular season 2 result of season 2001-02?`:
```sql
                SELECT "regular_season_2" FROM "year_by_year" WHERE "season"='2001-02';
```
## Task
Generate a SQL query to answer the following question:
`What is the playoffs 2 result of season 2010-11?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "pyramid_level" text,
  "regular_season_1" text,
  "playoffs_1" text,
  "regular_season_2" text,
  "playoffs_2" text,
  "copa_m_xico" text,
  "concacaf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the playoffs 2 result of season 2010-11?`:
```sql
                SELECT "playoffs_2" FROM "year_by_year" WHERE "season"='2010-11';
```
## Task
Generate a SQL query to answer the following question:
`What is the playoffs 1 result of season 2004-05?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "pyramid_level" text,
  "regular_season_1" text,
  "playoffs_1" text,
  "regular_season_2" text,
  "playoffs_2" text,
  "copa_m_xico" text,
  "concacaf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the playoffs 1 result of season 2004-05?`:
```sql
                SELECT "playoffs_1" FROM "year_by_year" WHERE "season"='2004-05';
```
## Task
Generate a SQL query to answer the following question:
`Which Grid did Alain Prost drive on?`

### 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 Grid did Alain Prost drive on?`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "driver"='alain prost';
```
## Task
Generate a SQL query to answer the following question:
`What was Riccardo Patrese's time/retired?`

### 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 Riccardo Patrese's time/retired?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "driver"='riccardo patrese';
```
## Task
Generate a SQL query to answer the following question:
`What venue has a score of 14.15 (99) for away teams?`

### 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 venue has a score of 14.15 (99) for away teams?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "away_team_score"='14.15 (99)';
```
## Task
Generate a SQL query to answer the following question:
`What venue has the score of 14.11 (95) for away teams?`

### 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 venue has the score of 14.11 (95) for away teams?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "away_team_score"='14.11 (95)';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds did geoff lees drive with chassis of n180?`

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

CREATE TABLE "drivers_and_constructors" (
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did geoff lees drive with chassis of n180?`:
```sql
                SELECT "rounds" FROM "drivers_and_constructors" WHERE "chassis"='n180' AND "driver"='geoff lees';
```
## Task
Generate a SQL query to answer the following question:
`What is the tyres for Didier pironi?`

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

CREATE TABLE "drivers_and_constructors" (
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tyres for Didier pironi?`:
```sql
                SELECT "tyres" FROM "drivers_and_constructors" WHERE "driver"='didier pironi';
```
## Task
Generate a SQL query to answer the following question:
`Who was the constructor of the car that Jan Lammers made 7-14 rounds in?`

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

CREATE TABLE "drivers_and_constructors" (
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor of the car that Jan Lammers made 7-14 rounds in?`:
```sql
                SELECT "constructor" FROM "drivers_and_constructors" WHERE "driver"='jan lammers' AND "rounds"='7-14';
```
## Task
Generate a SQL query to answer the following question:
`What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?`

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

CREATE TABLE "drivers_and_constructors" (
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "tyres"='g' AND "chassis"='d3 d4' AND "driver"='jan lammers' AND "rounds"='4-6';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Venue of Seoul, and Result of 4-1?`

### 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 `Which Competition has a Venue of Seoul, and Result of 4-1?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "venue"='seoul' AND "result"='4-1';
```
## Task
Generate a SQL query to answer the following question:
`What's the Result listed that has a Date of June 12, 1997?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Result listed that has a Date of June 12, 1997?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='june 12, 1997';
```
## Task
Generate a SQL query to answer the following question:
`What's the Score listed that has a Result of 1-0?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Score listed that has a Result of 1-0?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "result"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "competition"='1994 fifa world cup qualification' AND "date"='may 15, 1993';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition had a Result of 3-0 and VEnue of Suwon?`

### 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 `Which Competition had a Result of 3-0 and VEnue of Suwon?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "result"='3-0' AND "venue"='suwon';
```
## Task
Generate a SQL query to answer the following question:
`What's the Result of the Competition of 1998 FIFA World Cup Qualification with the Venue of Bangkok?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Result of the Competition of 1998 FIFA World Cup Qualification with the Venue of Bangkok?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "competition"='1998 fifa world cup qualification' AND "venue"='bangkok';
```
## Task
Generate a SQL query to answer the following question:
`Who had the decision with boston at home?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the decision with boston at home?`:
```sql
                SELECT "decision" FROM "february" WHERE "home"='boston';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team that played at MCG?`

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

CREATE TABLE "round_10" (
  "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 team that played at MCG?`:
```sql
                SELECT "home_team" FROM "round_10" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team that played richmond?`

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

CREATE TABLE "round_10" (
  "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 away team that played richmond?`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the game that Colin Fleming Scott Lipsky played in?`

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

CREATE TABLE "doubles_6_3_3" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the game that Colin Fleming Scott Lipsky played in?`:
```sql
                SELECT "score" FROM "doubles_6_3_3" WHERE "opponents"='colin fleming scott lipsky';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament was Dieter Kindlmann a partner?`

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

CREATE TABLE "doubles_6_3_3" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was Dieter Kindlmann a partner?`:
```sql
                SELECT "tournament" FROM "doubles_6_3_3" WHERE "partner"='dieter kindlmann';
```
## Task
Generate a SQL query to answer the following question:
`When the Apps were smaller than 22, what's the lowest amount of goals scored in a game?`

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

CREATE TABLE "career_stats" (
  "season" text,
  "club" text,
  "apps" real,
  "goals" real,
  "division" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the Apps were smaller than 22, what's the lowest amount of goals scored in a game?`:
```sql
                SELECT MIN("goals") FROM "career_stats" WHERE "apps"<22;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of all divisions during the 2006/07 season where they scored more than 1 goal?`

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

CREATE TABLE "career_stats" (
  "season" text,
  "club" text,
  "apps" real,
  "goals" real,
  "division" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of all divisions during the 2006/07 season where they scored more than 1 goal?`:
```sql
                SELECT COUNT("division") FROM "career_stats" WHERE "season"='2006/07' AND "goals">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of a crowd with an Away team score of 8.17 (65)?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of a crowd with an Away team score of 8.17 (65)?`:
```sql
                SELECT SUM("crowd") FROM "round_16" WHERE "away_team_score"='8.17 (65)';
```