cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the person from round 8?`

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

CREATE TABLE "1986_nfl_draft" (
  "round" real,
  "pick" real,
  "name" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the person from round 8?`:
```sql
                SELECT "name" FROM "1986_nfl_draft" WHERE "round"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the round for Arizona with a pick over 100?`

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

CREATE TABLE "1986_nfl_draft" (
  "round" real,
  "pick" real,
  "name" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round for Arizona with a pick over 100?`:
```sql
                SELECT AVG("round") FROM "1986_nfl_draft" WHERE "school"='arizona' AND "pick">100;
```
## Task
Generate a SQL query to answer the following question:
`What pick had a wide receiver named johnny holloway?`

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

CREATE TABLE "1986_nfl_draft" (
  "round" real,
  "pick" real,
  "name" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick had a wide receiver named johnny holloway?`:
```sql
                SELECT "pick" FROM "1986_nfl_draft" WHERE "position"='wide receiver' AND "name"='johnny holloway';
```
## Task
Generate a SQL query to answer the following question:
`Which score has a Home Team of saskatoon accelerators?`

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

CREATE TABLE "regular_season_schedule" (
  "date" text,
  "home_team" text,
  "score" text,
  "visiting_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has a Home Team of saskatoon accelerators?`:
```sql
                SELECT "score" FROM "regular_season_schedule" WHERE "home_team"='saskatoon accelerators';
```
## Task
Generate a SQL query to answer the following question:
`Which Visiting Team has a Stadium of servus centre on march 7?`

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

CREATE TABLE "regular_season_schedule" (
  "date" text,
  "home_team" text,
  "score" text,
  "visiting_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visiting Team has a Stadium of servus centre on march 7?`:
```sql
                SELECT "visiting_team" FROM "regular_season_schedule" WHERE "stadium"='servus centre' AND "date"='march 7';
```
## Task
Generate a SQL query to answer the following question:
`Which Visiting Team has a Stadium of servus centre?`

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

CREATE TABLE "regular_season_schedule" (
  "date" text,
  "home_team" text,
  "score" text,
  "visiting_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visiting Team has a Stadium of servus centre?`:
```sql
                SELECT "visiting_team" FROM "regular_season_schedule" WHERE "stadium"='servus centre';
```
## Task
Generate a SQL query to answer the following question:
`How many heavy attacks did the 450 Luftflotte 2 conduct?`

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

CREATE TABLE "the_blitz_estimated_luftwaffe_sorties" (
  "month_year" text,
  "day_sorties_losses" text,
  "night_sorties_losses" text,
  "luftflotte_2_sorties" real,
  "luftflotte_3_sorties" real,
  "major_attacks" text,
  "heavy_attacks" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many heavy attacks did the 450 Luftflotte 2 conduct?`:
```sql
                SELECT COUNT("heavy_attacks") FROM "the_blitz_estimated_luftwaffe_sorties" WHERE "luftflotte_2_sorties"=450;
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for grid 19?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired for grid 19?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "grid"=19;
```
## Task
Generate a SQL query to answer the following question:
`What is the grid total for bruce mclaren with over 73 laps?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid total for bruce mclaren with over 73 laps?`:
```sql
                SELECT SUM("grid") FROM "classification" WHERE "laps">73 AND "driver"='bruce mclaren';
```
## Task
Generate a SQL query to answer the following question:
`What film was released in 1971?`

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

CREATE TABLE "filmography" (
  "year" real,
  "film" text,
  "director" text,
  "producer" text,
  "cinematographer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film was released in 1971?`:
```sql
                SELECT "film" FROM "filmography" WHERE "year"=1971;
```
## Task
Generate a SQL query to answer the following question:
`What grade was the 2.4km Run (min:sec) of 13:01-13:40?`

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

CREATE TABLE "ippt_standards" (
  "grade" text,
  "points" real,
  "sit_up_reps" text,
  "standing_broad_jump_cm" text,
  "chin_up_reps" text,
  "shuttle_run_sec" text,
  "2_4km_run_min_sec" text
);
### SQL
Given the database schema, here is the SQL query that answers `What grade was the 2.4km Run (min:sec) of 13:01-13:40?`:
```sql
                SELECT "grade" FROM "ippt_standards" WHERE "2_4km_run_min_sec"='13:01-13:40';
```
## Task
Generate a SQL query to answer the following question:
`What shuttle Run (sec) time has a 2.4km Run (min:sec) of 12:21-13:00?`

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

CREATE TABLE "ippt_standards" (
  "grade" text,
  "points" real,
  "sit_up_reps" text,
  "standing_broad_jump_cm" text,
  "chin_up_reps" text,
  "shuttle_run_sec" text,
  "2_4km_run_min_sec" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shuttle Run (sec) time has a 2.4km Run (min:sec) of 12:21-13:00?`:
```sql
                SELECT "shuttle_run_sec" FROM "ippt_standards" WHERE "2_4km_run_min_sec"='12:21-13:00';
```
## Task
Generate a SQL query to answer the following question:
`When was steve bartalo picked?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was steve bartalo picked?`:
```sql
                SELECT MAX("pick") FROM "nfl_draft" WHERE "player"='steve bartalo';
```
## Task
Generate a SQL query to answer the following question:
`What player is a cornerback?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player is a cornerback?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "position"='cornerback';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest crowd turnout when the away team scored 12.13 (85)?`

### 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 the highest crowd turnout when the away team scored 12.13 (85)?`:
```sql
                SELECT MAX("crowd") FROM "round_6" WHERE "away_team_score"='12.13 (85)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue did the home team score 22.23 (155) at?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue did the home team score 22.23 (155) at?`:
```sql
                SELECT "venue" FROM "round_6" WHERE "home_team_score"='22.23 (155)';
```
## Task
Generate a SQL query to answer the following question:
`Windy hill is the home to what team?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Windy hill is the home to what team?`:
```sql
                SELECT "home_team" FROM "round_6" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the competition with a score of 1-5?`

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

CREATE TABLE "results" (
  "date" text,
  "opponents" text,
  "score" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the competition with a score of 1-5?`:
```sql
                SELECT "competition" FROM "results" WHERE "score"='1-5';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?`

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

CREATE TABLE "results" (
  "date" text,
  "opponents" text,
  "score" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?`:
```sql
                SELECT "competition" FROM "results" WHERE "opponents"='sv werder bremen' AND "score"='1-2';
```
## Task
Generate a SQL query to answer the following question:
`What regular season result had an average attendance less than 942?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "avg_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What regular season result had an average attendance less than 942?`:
```sql
                SELECT "reg_season" FROM "year_by_year" WHERE "avg_attendance"<942;
```
## Task
Generate a SQL query to answer the following question:
`Which league had a playoffs result of a lost semifinal?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "avg_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which league had a playoffs result of a lost semifinal?`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "playoffs"='lost semifinal';
```
## Task
Generate a SQL query to answer the following question:
`What regular season result had an average attendance bigger than 3,170?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "avg_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What regular season result had an average attendance bigger than 3,170?`:
```sql
                SELECT "reg_season" FROM "year_by_year" WHERE "avg_attendance">'3,170';
```
## Task
Generate a SQL query to answer the following question:
`what is the length (miles) when the east or north terminus is ne 2 in lincoln?`

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

CREATE TABLE "connecting_links" (
  "county" text,
  "name" text,
  "length_miles" real,
  "west_or_south_terminus" text,
  "east_or_north_terminus" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the length (miles) when the east or north terminus is ne 2 in lincoln?`:
```sql
                SELECT COUNT("length_miles") FROM "connecting_links" WHERE "east_or_north_terminus"='ne 2 in lincoln';
```
## Task
Generate a SQL query to answer the following question:
`what is the length (miles) when the name is l-56g?`

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

CREATE TABLE "connecting_links" (
  "county" text,
  "name" text,
  "length_miles" real,
  "west_or_south_terminus" text,
  "east_or_north_terminus" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the length (miles) when the name is l-56g?`:
```sql
                SELECT MAX("length_miles") FROM "connecting_links" WHERE "name"='l-56g';
```
## Task
Generate a SQL query to answer the following question:
`what is the name when the west or south terminus is ne 112 west of blue springs?`

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

CREATE TABLE "connecting_links" (
  "county" text,
  "name" text,
  "length_miles" real,
  "west_or_south_terminus" text,
  "east_or_north_terminus" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when the west or south terminus is ne 112 west of blue springs?`:
```sql
                SELECT "name" FROM "connecting_links" WHERE "west_or_south_terminus"='ne 112 west of blue springs';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault`:
```sql
                SELECT "time_retired" FROM "race" WHERE "constructor"='benetton - renault' AND "driver"='johnny herbert';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "laps"='66' AND "constructor"='jordan - peugeot' AND "grid"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired value of driver Pedro Diniz?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time/Retired value of driver Pedro Diniz?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "driver"='pedro diniz';
```
## Task
Generate a SQL query to answer the following question:
`Which driver has grid value of 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" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver has grid value of 18?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"='18';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor with grid value 5?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constructor with grid value 5?`:
```sql
                SELECT "constructor" FROM "race" WHERE "grid"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid value which has Time/Retired value of accident?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid value which has Time/Retired value of accident?`:
```sql
                SELECT "grid" FROM "race" WHERE "time_retired"='accident';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer that was a visitor of the Trail Blazers?`

### 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 `Who was the leading scorer that was a visitor of the Trail Blazers?`:
```sql
                SELECT "leading_scorer" FROM "january" WHERE "visitor"='trail blazers';
```
## Task
Generate a SQL query to answer the following question:
`Who is the leading scorer when they were at home of the Clippers?`

### 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 `Who is the leading scorer when they were at home of the Clippers?`:
```sql
                SELECT "leading_scorer" FROM "january" WHERE "home"='clippers';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visitor on January 19, 2008?`

### 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 `Who was the visitor on January 19, 2008?`:
```sql
                SELECT "visitor" FROM "january" WHERE "date"='january 19, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when there was a visitor of Magic and at home with the Clippers?`

### 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 `What was the score when there was a visitor of Magic and at home with the Clippers?`:
```sql
                SELECT "score" FROM "january" WHERE "visitor"='magic' AND "home"='clippers';
```
## Task
Generate a SQL query to answer the following question:
`How many games for keith j. miller, who debuted after 1974 with less than 1 goal?`

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

CREATE TABLE "players_who_made_their_debut_for_the_gee" (
  "debut_year" real,
  "player" text,
  "date_of_birth" text,
  "games" real,
  "goals" real,
  "years_at_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games for keith j. miller, who debuted after 1974 with less than 1 goal?`:
```sql
                SELECT AVG("games") FROM "players_who_made_their_debut_for_the_gee" WHERE "goals"<1 AND "player"='keith j. miller' AND "debut_year">1974;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest crowd when carlton is the away team?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest crowd when carlton is the away team?`:
```sql
                SELECT MAX("crowd") FROM "round_9" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest crowd at mcg?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest crowd at mcg?`:
```sql
                SELECT MAX("crowd") FROM "round_9" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`How many grids are associated with a Time/Retired of +1.837?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many grids are associated with a Time/Retired of +1.837?`:
```sql
                SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='+1.837';
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown of the player that attends UCLA?`

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

CREATE TABLE "2011_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of the player that attends UCLA?`:
```sql
                SELECT "hometown" FROM "2011_boys_team" WHERE "college"='ucla';
```
## Task
Generate a SQL query to answer the following question:
`What college is getting a player that attends Wichita Heights High School?`

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

CREATE TABLE "2011_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college is getting a player that attends Wichita Heights High School?`:
```sql
                SELECT "college" FROM "2011_boys_team" WHERE "school"='wichita heights high school';
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown of Cody Zeller?`

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

CREATE TABLE "2011_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of Cody Zeller?`:
```sql
                SELECT "hometown" FROM "2011_boys_team" WHERE "player"='cody zeller';
```
## Task
Generate a SQL query to answer the following question:
`What player's hometown is Washington, IN?`

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

CREATE TABLE "2011_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player's hometown is Washington, IN?`:
```sql
                SELECT "player" FROM "2011_boys_team" WHERE "hometown"='washington, in';
```
## Task
Generate a SQL query to answer the following question:
`What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4?`

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

CREATE TABLE "community_council" (
  "parties_and_voter_communities" text,
  "pct_2006" real,
  "seats_2006" real,
  "pct_2001" real,
  "seats_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4?`:
```sql
                SELECT "pct_2006" FROM "community_council" WHERE "seats_2001"<23 AND "seats_2006">4 AND "pct_2001"=25.4;
```
## Task
Generate a SQL query to answer the following question:
`When the %2001 is more than 61.4, and the %2006 fewer than 54.1, how many Seats in 2001 were there?`

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

CREATE TABLE "community_council" (
  "parties_and_voter_communities" text,
  "pct_2006" real,
  "seats_2006" real,
  "pct_2001" real,
  "seats_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the %2001 is more than 61.4, and the %2006 fewer than 54.1, how many Seats in 2001 were there?`:
```sql
                SELECT SUM("seats_2001") FROM "community_council" WHERE "pct_2001">61.4 AND "pct_2006"<54.1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of Seats 2006 held by the Christian Democratic Union of Germany Party/Voter Community, with a %2006 higher than 24.6?`

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

CREATE TABLE "community_council" (
  "parties_and_voter_communities" text,
  "pct_2006" real,
  "seats_2006" real,
  "pct_2001" real,
  "seats_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of Seats 2006 held by the Christian Democratic Union of Germany Party/Voter Community, with a %2006 higher than 24.6?`:
```sql
                SELECT MAX("seats_2006") FROM "community_council" WHERE "parties_and_voter_communities"='christian democratic union of germany' AND "pct_2006">24.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3?`

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

CREATE TABLE "community_council" (
  "parties_and_voter_communities" text,
  "pct_2006" real,
  "seats_2006" real,
  "pct_2001" real,
  "seats_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3?`:
```sql
                SELECT MAX("seats_2006") FROM "community_council" WHERE "parties_and_voter_communities"='bürger für groß-rohrheim' AND "pct_2006"<21.3;
```
## Task
Generate a SQL query to answer the following question:
`What is the %2006 when the %2001 was more than 62.5?`

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

CREATE TABLE "community_council" (
  "parties_and_voter_communities" text,
  "pct_2006" real,
  "seats_2006" real,
  "pct_2001" real,
  "seats_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the %2006 when the %2001 was more than 62.5?`:
```sql
                SELECT AVG("pct_2006") FROM "community_council" WHERE "pct_2001">62.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against?`:
```sql
                SELECT SUM("losses") FROM "final_standing" WHERE "team"='montreal hockey club' AND "goals_against">15;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest Goals For by a team that has more than 0 ties?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest Goals For by a team that has more than 0 ties?`:
```sql
                SELECT MAX("goals_for") FROM "final_standing" WHERE "ties">0;
```
## Task
Generate a SQL query to answer the following question:
`How many ties do teams with 25 Goals For and more than 5 wins have?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ties do teams with 25 Goals For and more than 5 wins have?`:
```sql
                SELECT SUM("ties") FROM "final_standing" WHERE "goals_for"=25 AND "wins">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Goals Against by a team with more than 5 wins?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Goals Against by a team with more than 5 wins?`:
```sql
                SELECT MIN("goals_against") FROM "final_standing" WHERE "wins">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of ties a team with less than 3 losses have?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of ties a team with less than 3 losses have?`:
```sql
                SELECT COUNT("ties") FROM "final_standing" WHERE "losses"<3;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the race name where stirling moss won on 16 april`

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

CREATE TABLE "non_championship_races_review" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the race name where stirling moss won on 16 april`:
```sql
                SELECT "race_name" FROM "non_championship_races_review" WHERE "winning_driver"='stirling moss' AND "date"='16 april';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the report for circuit of modena`

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

CREATE TABLE "non_championship_races_review" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the report for circuit of modena`:
```sql
                SELECT "report" FROM "non_championship_races_review" WHERE "circuit"='modena';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the race name for ferrari on 25 april`

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

CREATE TABLE "non_championship_races_review" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the race name for ferrari on 25 april`:
```sql
                SELECT "race_name" FROM "non_championship_races_review" WHERE "constructor"='ferrari' AND "date"='25 april';
```
## Task
Generate a SQL query to answer the following question:
`Name the constructor for vii kanonloppet`

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

CREATE TABLE "non_championship_races_review" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the constructor for vii kanonloppet`:
```sql
                SELECT "constructor" FROM "non_championship_races_review" WHERE "race_name"='vii kanonloppet';
```
## Task
Generate a SQL query to answer the following question:
`How many players from bethel?`

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

CREATE TABLE "r" (
  "player" text,
  "pos" text,
  "from" real,
  "school_country" text,
  "rebs" real,
  "asts" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many players from bethel?`:
```sql
                SELECT COUNT("from") FROM "r" WHERE "school_country"='bethel';
```
## Task
Generate a SQL query to answer the following question:
`I want the date for crowd larger than 12,425 for north melbourne`

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

CREATE TABLE "round_14" (
  "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 `I want the date for crowd larger than 12,425 for north melbourne`:
```sql
                SELECT "date" FROM "round_14" WHERE "crowd">'12,425' AND "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on May 7?`

### 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,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on May 7?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='may 7';
```
## Task
Generate a SQL query to answer the following question:
`When the Home team was Carlton, what was the Away team score?`

### 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 was Carlton, what was the Away team score?`:
```sql
                SELECT "away_team_score" FROM "round_2" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Who was the constructor for a FW20 chassis?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor for a FW20 chassis?`:
```sql
                SELECT "constructor" FROM "drivers_and_constructors" WHERE "chassis"='fw20';
```
## Task
Generate a SQL query to answer the following question:
`What engine did David Coulthard have in his mp4-13 chassis?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine did David Coulthard have in his mp4-13 chassis?`:
```sql
                SELECT "engine" FROM "drivers_and_constructors" WHERE "chassis"='mp4-13' AND "driver"='david coulthard';
```
## Task
Generate a SQL query to answer the following question:
`Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon?`

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

CREATE TABLE "singles_5_2_titles_3_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon?`:
```sql
                SELECT "date" FROM "singles_5_2_titles_3_runners_up" WHERE "outcome"='runner-up' AND "opponent_in_the_final"='gilles simon';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on the 28 july 2013 final?`

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

CREATE TABLE "singles_5_2_titles_3_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on the 28 july 2013 final?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_5_2_titles_3_runners_up" WHERE "date"='28 july 2013';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Score in the final of 4–6, 3–6?`

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

CREATE TABLE "singles_5_2_titles_3_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Score in the final of 4–6, 3–6?`:
```sql
                SELECT "date" FROM "singles_5_2_titles_3_runners_up" WHERE "score_in_the_final"='4–6, 3–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the prefix for the formula of Rsor'?`

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

CREATE TABLE "groups_containing_sulfur" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the prefix for the formula of Rsor'?`:
```sql
                SELECT "prefix" FROM "groups_containing_sulfur" WHERE "formula"='rsor''';
```
## Task
Generate a SQL query to answer the following question:
`Which group has the RNCS formula?`

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

CREATE TABLE "groups_containing_sulfur" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which group has the RNCS formula?`:
```sql
                SELECT "group" FROM "groups_containing_sulfur" WHERE "formula"='rncs';
```
## Task
Generate a SQL query to answer the following question:
`Which formula has a thial as a chemical class?`

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

CREATE TABLE "groups_containing_sulfur" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which formula has a thial as a chemical class?`:
```sql
                SELECT "formula" FROM "groups_containing_sulfur" WHERE "chemical_class"='thial';
```
## Task
Generate a SQL query to answer the following question:
`Which suffix has the prefix of isothiocyanato- (-ncs)?`

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

CREATE TABLE "groups_containing_sulfur" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which suffix has the prefix of isothiocyanato- (-ncs)?`:
```sql
                SELECT "suffix" FROM "groups_containing_sulfur" WHERE "prefix"='isothiocyanato- (-ncs)';
```
## Task
Generate a SQL query to answer the following question:
`Which item has the suffix containing thiocyanato- (-scn) as a prefix?`

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

CREATE TABLE "groups_containing_sulfur" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which item has the suffix containing thiocyanato- (-scn) as a prefix?`:
```sql
                SELECT "suffix" FROM "groups_containing_sulfur" WHERE "prefix"='thiocyanato- (-scn)';
```
## Task
Generate a SQL query to answer the following question:
`Which formula has thial as a chemical class?`

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

CREATE TABLE "groups_containing_sulfur" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which formula has thial as a chemical class?`:
```sql
                SELECT "formula" FROM "groups_containing_sulfur" WHERE "chemical_class"='thial';
```
## Task
Generate a SQL query to answer the following question:
`If fitzroy is the Away team, what Date did they play?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If fitzroy is the Away team, what Date did they play?`:
```sql
                SELECT "date" FROM "round_12" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "date"='15 july 1967' AND "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has an Away team of st kilda?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has an Away team of st kilda?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`If the Away team scored 5.22 (52) on the Date of 15 july 1967, what was the Away team?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Away team scored 5.22 (52) on the Date of 15 july 1967, what was the Away team?`:
```sql
                SELECT "away_team" FROM "round_12" WHERE "date"='15 july 1967' AND "away_team_score"='5.22 (52)';
```
## Task
Generate a SQL query to answer the following question:
`If the Home team had a score of 3.15 (33), what was the Date of the game played?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Home team had a score of 3.15 (33), what was the Date of the game played?`:
```sql
                SELECT "date" FROM "round_12" WHERE "home_team_score"='3.15 (33)';
```
## Task
Generate a SQL query to answer the following question:
`What place has a draw smaller than 2?`

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

CREATE TABLE "festival_da_can_o_1999_8_march_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What place has a draw smaller than 2?`:
```sql
                SELECT AVG("place") FROM "festival_da_can_o_1999_8_march_1999" WHERE "draw"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the launch date of the satellite with a COSPAR ID of 1995-022a?`

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

CREATE TABLE "satellites" (
  "name" text,
  "cospar_id_satcat" text,
  "launch_date_utc" text,
  "launch_vehicle" text,
  "launch_site" text,
  "launch_designation" text,
  "longitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch date of the satellite with a COSPAR ID of 1995-022a?`:
```sql
                SELECT "launch_date_utc" FROM "satellites" WHERE "cospar_id_satcat"='1995-022a';
```