cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Opponent of at san francisco 49ers had what lowest week?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Opponent of at san francisco 49ers had what lowest week?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "opponent"='at san francisco 49ers';
```
## Task
Generate a SQL query to answer the following question:
`On what Date is the Minnesota Vikings the Opponent?`

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

CREATE TABLE "preseason" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date is the Minnesota Vikings the Opponent?`:
```sql
                SELECT "date" FROM "preseason" WHERE "opponent"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of Week 5?`

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

CREATE TABLE "preseason" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Week 5?`:
```sql
                SELECT "date" FROM "preseason" WHERE "week"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of Week 2?`

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

CREATE TABLE "preseason" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Week 2?`:
```sql
                SELECT "date" FROM "preseason" WHERE "week"=2;
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the game has a loss of Lary (10-12)?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the game has a loss of Lary (10-12)?`:
```sql
                SELECT "score" FROM "game_log" WHERE "loss"='lary (10-12)';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the friendly match?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the friendly match?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "competition"='friendly';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the match on June 4, 2008?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match on June 4, 2008?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='june 4, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the lowest one that has a Length of 3:50?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the lowest one that has a Length of 3:50?`:
```sql
                SELECT MIN("year") FROM "official_versions" WHERE "length"='3:50';
```
## Task
Generate a SQL query to answer the following question:
`Which Length has a Year of 2000?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Length has a Year of 2000?`:
```sql
                SELECT "length" FROM "official_versions" WHERE "year"=2000;
```
## Task
Generate a SQL query to answer the following question:
`In what place is the artist Midnight Band with a draw larger than 2 and less than 139 points.`

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

CREATE TABLE "melodifestivalen_2000" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place is the artist Midnight Band with a draw larger than 2 and less than 139 points.`:
```sql
                SELECT "place" FROM "melodifestivalen_2000" WHERE "draw">2 AND "points"<139 AND "artist"='midnight band';
```
## Task
Generate a SQL query to answer the following question:
`what player matched up with 9`

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

CREATE TABLE "most_wickets_in_a_season" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `what player matched up with 9`:
```sql
                SELECT "player" FROM "most_wickets_in_a_season" WHERE "matches"='9';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of the Internacional Team 1?`

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

CREATE TABLE "first_stage" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of the Internacional Team 1?`:
```sql
                SELECT "2nd_leg" FROM "first_stage" WHERE "team_1"='internacional';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Capacity smaller than 12,000, and a Country of united states?`

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

CREATE TABLE "davis_cup_and_federation_cup_venues" (
  "rank" real,
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Capacity smaller than 12,000, and a Country of united states?`:
```sql
                SELECT SUM("rank") FROM "davis_cup_and_federation_cup_venues" WHERE "capacity"<'12,000' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`Which City has a Country of spain, and a Stadium of palacio de deportes de santander?`

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

CREATE TABLE "davis_cup_and_federation_cup_venues" (
  "rank" real,
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Country of spain, and a Stadium of palacio de deportes de santander?`:
```sql
                SELECT "city" FROM "davis_cup_and_federation_cup_venues" WHERE "country"='spain' AND "stadium"='palacio de deportes de santander';
```
## Task
Generate a SQL query to answer the following question:
`Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade?`

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

CREATE TABLE "davis_cup_and_federation_cup_venues" (
  "rank" real,
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade?`:
```sql
                SELECT MIN("capacity") FROM "davis_cup_and_federation_cup_venues" WHERE "rank"<15 AND "city"='belgrade';
```
## Task
Generate a SQL query to answer the following question:
`Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1?`

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

CREATE TABLE "davis_cup_and_federation_cup_venues" (
  "rank" real,
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1?`:
```sql
                SELECT MIN("capacity") FROM "davis_cup_and_federation_cup_venues" WHERE "city"='brisbane' AND "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`What are the total points that had 68 match points, 9 bonus points and 30 games?`

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

CREATE TABLE "season_table" (
  "club" text,
  "total_points" text,
  "bonus_points" text,
  "match_points" text,
  "games" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total points that had 68 match points, 9 bonus points and 30 games?`:
```sql
                SELECT "total_points" FROM "season_table" WHERE "games"='30' AND "bonus_points"='9' AND "match_points"='68';
```
## Task
Generate a SQL query to answer the following question:
`What's the shortest length from north klondike highway that has a length less than 326?`

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

CREATE TABLE "see_also" (
  "name" text,
  "number" real,
  "from" text,
  "length_km" real,
  "length_mi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the shortest length from north klondike highway that has a length less than 326?`:
```sql
                SELECT MIN("length_km") FROM "see_also" WHERE "name"='north klondike highway' AND "length_mi"<326;
```
## Task
Generate a SQL query to answer the following question:
`what team had a score of 2-1`

### 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 `what team had a score of 2-1`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "score"='2-1';
```
## Task
Generate a SQL query to answer the following question:
`what team played on may 11`

### 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 `what team played on may 11`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='may 11';
```
## Task
Generate a SQL query to answer the following question:
`what place has the club of sevilla`

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

CREATE TABLE "matches" (
  "season" text,
  "competition" text,
  "round" text,
  "club" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `what place has the club of sevilla`:
```sql
                SELECT "away" FROM "matches" WHERE "club"='sevilla';
```
## Task
Generate a SQL query to answer the following question:
`Which new conference is located in Greentown?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "new_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which new conference is located in Greentown?`:
```sql
                SELECT "new_conference" FROM "former_members" WHERE "location"='greentown';
```
## Task
Generate a SQL query to answer the following question:
`What is the most current year with a previous conference of Mid-Indiana in Converse?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "new_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most current year with a previous conference of Mid-Indiana in Converse?`:
```sql
                SELECT MAX("year_joined") FROM "former_members" WHERE "previous_conference"='mid-indiana' AND "location"='converse';
```
## Task
Generate a SQL query to answer the following question:
`What year did Culver leave?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "new_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Culver leave?`:
```sql
                SELECT SUM("year_left") FROM "former_members" WHERE "location"='culver';
```
## Task
Generate a SQL query to answer the following question:
`What is the mascot with a #/County of 34 Howard?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "new_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot with a #/County of 34 Howard?`:
```sql
                SELECT "mascot" FROM "former_members" WHERE "num_county"='34 howard';
```
## Task
Generate a SQL query to answer the following question:
`What day was a friendly game held that had a score of 2:3?`

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

CREATE TABLE "1968" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was a friendly game held that had a score of 2:3?`:
```sql
                SELECT "date" FROM "1968" WHERE "type_of_game"='friendly' AND "results"='2:3';
```
## Task
Generate a SQL query to answer the following question:
`What type of game was held on December 22?`

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

CREATE TABLE "1968" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of game was held on December 22?`:
```sql
                SELECT "type_of_game" FROM "1968" WHERE "date"='december 22';
```
## Task
Generate a SQL query to answer the following question:
`what game had a doubles round in 1979`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `what game had a doubles round in 1979`:
```sql
                SELECT "mixed_doubles" FROM "past_winners" WHERE "year"=1979;
```
## Task
Generate a SQL query to answer the following question:
`Where were less than 72 goals made and more than 40 assists made?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_goals" real,
  "total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where were less than 72 goals made and more than 40 assists made?`:
```sql
                SELECT "venue" FROM "members" WHERE "goals"<72 AND "assists">40;
```
## Task
Generate a SQL query to answer the following question:
`Which opponent plays against the Pohang Steelers?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_goals" real,
  "total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent plays against the Pohang Steelers?`:
```sql
                SELECT "name" FROM "members" WHERE "opponent"='pohang steelers';
```
## Task
Generate a SQL query to answer the following question:
`What competition had more than 40 assists?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_goals" real,
  "total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What competition had more than 40 assists?`:
```sql
                SELECT "competition" FROM "members" WHERE "assists">40;
```
## Task
Generate a SQL query to answer the following question:
`What Nation Placed 122.5?`

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

CREATE TABLE "pairs" (
  "rank" real,
  "name" text,
  "nation" text,
  "points" real,
  "places" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Nation Placed 122.5?`:
```sql
                SELECT "nation" FROM "pairs" WHERE "places"=122.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the Places amount of the United States Ranking 8?`

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

CREATE TABLE "pairs" (
  "rank" real,
  "name" text,
  "nation" text,
  "points" real,
  "places" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Places amount of the United States Ranking 8?`:
```sql
                SELECT AVG("places") FROM "pairs" WHERE "nation"='united states' AND "rank"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the average episode number where jimmy mulville was the 4th performer?`

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

CREATE TABLE "radio_series" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average episode number where jimmy mulville was the 4th performer?`:
```sql
                SELECT AVG("episode") FROM "radio_series" WHERE "performer_4"='jimmy mulville';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of episodes where hugh laurie was the 3rd performer?`

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

CREATE TABLE "radio_series" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of episodes where hugh laurie was the 3rd performer?`:
```sql
                SELECT COUNT("episode") FROM "radio_series" WHERE "performer_3"='hugh laurie';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest episode number where john bird was the 4th performer?`

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

CREATE TABLE "radio_series" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest episode number where john bird was the 4th performer?`:
```sql
                SELECT MIN("episode") FROM "radio_series" WHERE "performer_4"='john bird';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 3rd performer when Rory Bremner was the 4th performer?`

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

CREATE TABLE "radio_series" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 3rd performer when Rory Bremner was the 4th performer?`:
```sql
                SELECT "performer_3" FROM "radio_series" WHERE "performer_4"='rory bremner';
```
## Task
Generate a SQL query to answer the following question:
`What time did the game featuring the Detroit Lions at Three Rivers Stadium occur?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "location" text,
  "time_et" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time did the game featuring the Detroit Lions at Three Rivers Stadium occur?`:
```sql
                SELECT "time_et" FROM "schedule" WHERE "location"='three rivers stadium' AND "opponent"='detroit lions';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of successful launches associated with over 1 launch and under 0 fails?`

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

CREATE TABLE "by_configuration" (
  "rocket" text,
  "country" text,
  "type" text,
  "launches" real,
  "successes" real,
  "failures" real,
  "partial_failures" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of successful launches associated with over 1 launch and under 0 fails?`:
```sql
                SELECT MAX("successes") FROM "by_configuration" WHERE "launches">1 AND "failures"<0;
```
## Task
Generate a SQL query to answer the following question:
`What are the fewest partial failures associated with 1 launch, India, gslv type, and a Rocket of gslv mk ii?`

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

CREATE TABLE "by_configuration" (
  "rocket" text,
  "country" text,
  "type" text,
  "launches" real,
  "successes" real,
  "failures" real,
  "partial_failures" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fewest partial failures associated with 1 launch, India, gslv type, and a Rocket of gslv mk ii?`:
```sql
                SELECT MIN("partial_failures") FROM "by_configuration" WHERE "launches"=1 AND "country"='india' AND "type"='gslv' AND "rocket"='gslv mk ii';
```
## Task
Generate a SQL query to answer the following question:
`What kind of locomotive is Winston Churchill?`

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

CREATE TABLE "locomotives_in_service" (
  "name" text,
  "locomotive_type" text,
  "wheel_arr" text,
  "builder" text,
  "year_built" real,
  "whistle" text,
  "in_traffic" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of locomotive is Winston Churchill?`:
```sql
                SELECT "locomotive_type" FROM "locomotives_in_service" WHERE "name"='winston churchill';
```
## Task
Generate a SQL query to answer the following question:
`How many draws were there when there were points less than 23, 6 losses, and more than 21 against?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws were there when there were points less than 23, 6 losses, and more than 21 against?`:
```sql
                SELECT COUNT("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "points"<23 AND "lost"=6 AND "against">21;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of draws when the position is less than 7 and the against is 19?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest amount of draws when the position is less than 7 and the against is 19?`:
```sql
                SELECT MIN("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "position"<7 AND "against"=19;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of plays for fluminense?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of plays for fluminense?`:
```sql
                SELECT MAX("played") FROM "campeonato_brasileiro_s_rie_a" WHERE "team"='fluminense';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of points when there were less than 4 losses and less than 16 against?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of points when there were less than 4 losses and less than 16 against?`:
```sql
                SELECT MIN("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "lost"<4 AND "against"<16;
```
## Task
Generate a SQL query to answer the following question:
`Who does Rockstar Games use as a developer?`

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

CREATE TABLE "available_games" (
  "title" text,
  "publisher" text,
  "developer" text,
  "release_date" text,
  "esrb" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who does Rockstar Games use as a developer?`:
```sql
                SELECT "developer" FROM "available_games" WHERE "publisher"='rockstar games';
```
## Task
Generate a SQL query to answer the following question:
`When Did Microsoft Game Studios release Amped: Freestyle Snowboarding?`

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

CREATE TABLE "available_games" (
  "title" text,
  "publisher" text,
  "developer" text,
  "release_date" text,
  "esrb" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Did Microsoft Game Studios release Amped: Freestyle Snowboarding?`:
```sql
                SELECT "release_date" FROM "available_games" WHERE "publisher"='microsoft game studios' AND "title"='amped: freestyle snowboarding';
```
## Task
Generate a SQL query to answer the following question:
`Which 10:30 has an 8:30 of la soirée du hockey?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 10:30 has an 8:30 of la soirée du hockey?`:
```sql
                SELECT "10_30" FROM "saturday" WHERE "8_30"='la soirée du hockey';
```
## Task
Generate a SQL query to answer the following question:
`Which 7:30 has an 8:00 of movies & specials?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 7:30 has an 8:00 of movies & specials?`:
```sql
                SELECT "7_30" FROM "saturday" WHERE "8_00"='movies & specials';
```
## Task
Generate a SQL query to answer the following question:
`Which 10:30 has an 7:30 of earth: final conflict?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 10:30 has an 7:30 of earth: final conflict?`:
```sql
                SELECT "10_30" FROM "saturday" WHERE "7_30"='earth: final conflict';
```
## Task
Generate a SQL query to answer the following question:
`Which 8:00 has a 10:00 of movies & specials?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 8:00 has a 10:00 of movies & specials?`:
```sql
                SELECT "8_00" FROM "saturday" WHERE "10_00"='movies & specials';
```
## Task
Generate a SQL query to answer the following question:
`Which 7:30 has a 10:30 of le grand journal?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 7:30 has a 10:30 of le grand journal?`:
```sql
                SELECT "7_30" FROM "saturday" WHERE "10_30"='le grand journal';
```
## Task
Generate a SQL query to answer the following question:
`Which 7:00 has an 8:00 of la soirée du hockey?`

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

CREATE TABLE "saturday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 7:00 has an 8:00 of la soirée du hockey?`:
```sql
                SELECT "7_00" FROM "saturday" WHERE "8_00"='la soirée du hockey';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28?`:
```sql
                SELECT "score" FROM "game_log" WHERE "home"='quebec nordiques' AND "visitor"='vancouver blazers' AND "date"='february 28';
```
## Task
Generate a SQL query to answer the following question:
`When has a Visitor of new england whalers, and a Record of 9–9–1? Question 2`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Visitor of new england whalers, and a Record of 9–9–1? Question 2`:
```sql
                SELECT "date" FROM "game_log" WHERE "visitor"='new england whalers' AND "record"='9–9–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Home has a Visitor of quebec nordiques, and a Score of 3–4, and a Record of 8–8–1?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home has a Visitor of quebec nordiques, and a Score of 3–4, and a Record of 8–8–1?`:
```sql
                SELECT "home" FROM "game_log" WHERE "visitor"='quebec nordiques' AND "score"='3–4' AND "record"='8–8–1';
```
## Task
Generate a SQL query to answer the following question:
`WHich Score has a Record of 31–28–3?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Score has a Record of 31–28–3?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='31–28–3';
```
## Task
Generate a SQL query to answer the following question:
`When has Score of 4–5, and a Record of 21–21–3?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has Score of 4–5, and a Record of 21–21–3?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='4–5' AND "record"='21–21–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of a Record 24–23–3?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of a Record 24–23–3?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='24–23–3';
```
## Task
Generate a SQL query to answer the following question:
`During which games did Tunisia win gold in the men's 5000 m?`

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

CREATE TABLE "medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which games did Tunisia win gold in the men's 5000 m?`:
```sql
                SELECT "games" FROM "medalists" WHERE "event"='men''s 5000 m' AND "medal"='gold';
```
## Task
Generate a SQL query to answer the following question:
`What medal was won in the men's light welterweight event at the 1996 Atlanta games?`

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

CREATE TABLE "medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What medal was won in the men's light welterweight event at the 1996 Atlanta games?`:
```sql
                SELECT "medal" FROM "medalists" WHERE "event"='men''s light welterweight' AND "games"='1996 atlanta';
```
## Task
Generate a SQL query to answer the following question:
`At which games did Tunisia win a bronze in the men's 1500 m freestyle?`

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

CREATE TABLE "medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which games did Tunisia win a bronze in the men's 1500 m freestyle?`:
```sql
                SELECT "games" FROM "medalists" WHERE "medal"='bronze' AND "event"='men''s 1500 m freestyle';
```
## Task
Generate a SQL query to answer the following question:
`What medal was won in the men's 5000 m event?`

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

CREATE TABLE "medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What medal was won in the men's 5000 m event?`:
```sql
                SELECT "medal" FROM "medalists" WHERE "event"='men''s 5000 m';
```
## Task
Generate a SQL query to answer the following question:
`What is on the at 8:00 on the same channel that has Costello on at 8:30?`

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

CREATE TABLE "tuesday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on the at 8:00 on the same channel that has Costello on at 8:30?`:
```sql
                SELECT "8_00" FROM "tuesday" WHERE "8_30"='costello';
```
## Task
Generate a SQL query to answer the following question:
`What is on at 7:30 on the same channel as Wheel of Fortune at 7:00?`

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

CREATE TABLE "tuesday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 7:30 on the same channel as Wheel of Fortune at 7:00?`:
```sql
                SELECT "7_30" FROM "tuesday" WHERE "7_00"='wheel of fortune';
```
## Task
Generate a SQL query to answer the following question:
`What is on at 8:00 on the same change as W-Five at 10:00?`

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

CREATE TABLE "tuesday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 8:00 on the same change as W-Five at 10:00?`:
```sql
                SELECT "8_00" FROM "tuesday" WHERE "10_00"='w-five';
```
## Task
Generate a SQL query to answer the following question:
`What is on at 9:30 on the same channel as Fin du Monde at 10:00?`

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

CREATE TABLE "tuesday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 9:30 on the same channel as Fin du Monde at 10:00?`:
```sql
                SELECT "9_30" FROM "tuesday" WHERE "10_00"='fin du monde';
```
## Task
Generate a SQL query to answer the following question:
`What is on at 8:30 on the same channel as Les Machos at 9:00?`

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

CREATE TABLE "tuesday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 8:30 on the same channel as Les Machos at 9:00?`:
```sql
                SELECT "8_30" FROM "tuesday" WHERE "9_00"='les machos';
```
## Task
Generate a SQL query to answer the following question:
`What is the draw with less than 107 points by the artist Jan Johansen?`

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

CREATE TABLE "melodifestivalen_2001" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the draw with less than 107 points by the artist Jan Johansen?`:
```sql
                SELECT COUNT("draw") FROM "melodifestivalen_2001" WHERE "artist"='jan johansen' AND "points"<107;
```
## Task
Generate a SQL query to answer the following question:
`In what Year did the Norton Team have 0 Points and 350cc Class?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year did the Norton Team have 0 Points and 350cc Class?`:
```sql
                SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "class"='350cc' AND "team"='norton' AND "points"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the Wins before 1960 with less than 2 Points?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Wins before 1960 with less than 2 Points?`:
```sql
                SELECT SUM("wins") FROM "motorcycle_grand_prix_results" WHERE "year"<1960 AND "points"<2;
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest Year the Linto Team had less than 15 Points with more than 0 Wins?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest Year the Linto Team had less than 15 Points with more than 0 Wins?`:
```sql
                SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins">0 AND "team"='linto' AND "points"<15;
```
## Task
Generate a SQL query to answer the following question:
`What were the points for a team that 414 points against?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the points for a team that 414 points against?`:
```sql
                SELECT "points_for" FROM "2008_2009_table" WHERE "points_against"='414';
```
## Task
Generate a SQL query to answer the following question:
`Who was the player that had drawn 1 and tried for 20?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player that had drawn 1 and tried for 20?`:
```sql
                SELECT "played" FROM "2008_2009_table" WHERE "drawn"='1' AND "tries_for"='20';
```
## Task
Generate a SQL query to answer the following question:
`What were the points for that had a game where there was 678 against?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the points for that had a game where there was 678 against?`:
```sql
                SELECT "points_for" FROM "2008_2009_table" WHERE "points_against"='678';
```
## Task
Generate a SQL query to answer the following question:
`What were the points against in a game that was played correct as of 2009-05-16?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the points against in a game that was played correct as of 2009-05-16?`:
```sql
                SELECT "points_against" FROM "2008_2009_table" WHERE "played"='correct as of 2009-05-16';
```
## Task
Generate a SQL query to answer the following question:
`What was the tries again llanishen rfc?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tries again llanishen rfc?`:
```sql
                SELECT "tries_against" FROM "2008_2009_table" WHERE "club"='llanishen rfc';
```
## Task
Generate a SQL query to answer the following question:
`What was drawn for llanishen rfc?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was drawn for llanishen rfc?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "club"='llanishen rfc';
```
## Task
Generate a SQL query to answer the following question:
`Which District has a 2008 Status of re-election, and a Democratic david price?`

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

CREATE TABLE "summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which District has a 2008 Status of re-election, and a Democratic david price?`:
```sql
                SELECT AVG("district") FROM "summary" WHERE "2008_status"='re-election' AND "democratic"='david price';
```
## Task
Generate a SQL query to answer the following question:
`Which District has a Republican of dan mansell?`

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

CREATE TABLE "summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which District has a Republican of dan mansell?`:
```sql
                SELECT AVG("district") FROM "summary" WHERE "republican"='dan mansell';
```