cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the away team for the match that had a time of 18:30?`

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

CREATE TABLE "a_b_first_round" (
  "time" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team for the match that had a time of 18:30?`:
```sql
                SELECT "away_team" FROM "a_b_first_round" WHERE "time"='18:30';
```
## Task
Generate a SQL query to answer the following question:
`What was the time for the match with away team Mutual Team B?`

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

CREATE TABLE "a_b_first_round" (
  "time" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the match with away team Mutual Team B?`:
```sql
                SELECT "time" FROM "a_b_first_round" WHERE "away_team"='mutual team b';
```
## Task
Generate a SQL query to answer the following question:
`What was the time for the match that had a a home team of HKSSF?`

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

CREATE TABLE "a_b_first_round" (
  "time" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the match that had a a home team of HKSSF?`:
```sql
                SELECT "time" FROM "a_b_first_round" WHERE "home_team"='hkssf';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended on december 26, 1982?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended on december 26, 1982?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='december 26, 1982';
```
## Task
Generate a SQL query to answer the following question:
`How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?`

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

CREATE TABLE "2012_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?`:
```sql
                SELECT COUNT("byes") FROM "2012_ladder" WHERE "wins"<11 AND "wimmera_fl"='minyip murtoa' AND "losses"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which Losses have an Against smaller than 1018, and Wins smaller than 14?`

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

CREATE TABLE "2012_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses have an Against smaller than 1018, and Wins smaller than 14?`:
```sql
                SELECT AVG("losses") FROM "2012_ladder" WHERE "against"<1018 AND "wins"<14;
```
## Task
Generate a SQL query to answer the following question:
`Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?`

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

CREATE TABLE "2012_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?`:
```sql
                SELECT MIN("byes") FROM "2012_ladder" WHERE "against">1018 AND "wimmera_fl"='horsham diggers';
```
## Task
Generate a SQL query to answer the following question:
`Which Losses have a Wimmera FL of minyip murtoa?`

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

CREATE TABLE "2012_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses have a Wimmera FL of minyip murtoa?`:
```sql
                SELECT AVG("losses") FROM "2012_ladder" WHERE "wimmera_fl"='minyip murtoa';
```
## Task
Generate a SQL query to answer the following question:
`Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?`

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

CREATE TABLE "2012_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?`:
```sql
                SELECT AVG("against") FROM "2012_ladder" WHERE "losses"<5 AND "wimmera_fl"='warrack eagles' AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which country has Spence in the name section?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has Spence in the name section?`:
```sql
                SELECT "country" FROM "out" WHERE "name"='spence';
```
## Task
Generate a SQL query to answer the following question:
`Which country has the status of transferred, moving to of released, and Solano as the listed name?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the status of transferred, moving to of released, and Solano as the listed name?`:
```sql
                SELECT "country" FROM "out" WHERE "status"='transferred' AND "moving_to"='released' AND "name"='solano';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee for the country that has the name McCartney listed?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee for the country that has the name McCartney listed?`:
```sql
                SELECT "transfer_fee" FROM "out" WHERE "name"='mccartney';
```
## Task
Generate a SQL query to answer the following question:
`What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient?`:
```sql
                SELECT "name" FROM "out" WHERE "status"='loaned' AND "moving_to"='leyton orient';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee for the country of Nir?`

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

CREATE TABLE "out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee for the country of Nir?`:
```sql
                SELECT "transfer_fee" FROM "out" WHERE "country"='nir';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?`

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

CREATE TABLE "calendar" (
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?`:
```sql
                SELECT "fastest_lap" FROM "calendar" WHERE "winning_driver"='adam christodoulou' AND "pole_position"='adam christodoulou';
```
## Task
Generate a SQL query to answer the following question:
`What date was the circuit, snetterton, when riki christodoulou had the fastest lap?`

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

CREATE TABLE "calendar" (
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the circuit, snetterton, when riki christodoulou had the fastest lap?`:
```sql
                SELECT "date" FROM "calendar" WHERE "circuit"='snetterton' AND "fastest_lap"='riki christodoulou';
```
## Task
Generate a SQL query to answer the following question:
`who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?`

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

CREATE TABLE "calendar" (
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?`:
```sql
                SELECT "pole_position" FROM "calendar" WHERE "fastest_lap"='adam christodoulou' AND "circuit"='rockingham';
```
## Task
Generate a SQL query to answer the following question:
`What bonus points have 448 as the points against?`

### 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 bonus points have 448 as the points against?`:
```sql
                SELECT "bonus_points" FROM "season_table" WHERE "points_against"='448';
```
## Task
Generate a SQL query to answer the following question:
`What points for have 30 as the game, and 73 as the total points?`

### 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 points for have 30 as the game, and 73 as the total points?`:
```sql
                SELECT "points_for" FROM "season_table" WHERE "games"='30' AND "total_points"='73';
```
## Task
Generate a SQL query to answer the following question:
`What drawn has 416 as the points for and 533 as the points against?`

### 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 drawn has 416 as the points for and 533 as the points against?`:
```sql
                SELECT "drawn" FROM "season_table" WHERE "points_for"='416' AND "points_against"='533';
```
## Task
Generate a SQL query to answer the following question:
`What match points have 755 as the points against?`

### 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 match points have 755 as the points against?`:
```sql
                SELECT "match_points" FROM "season_table" WHERE "points_against"='755';
```
## Task
Generate a SQL query to answer the following question:
`What games have colomiers as the club?`

### 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 games have colomiers as the club?`:
```sql
                SELECT "games" FROM "season_table" WHERE "club"='colomiers';
```
## Task
Generate a SQL query to answer the following question:
`Which lost has 84 as the match points?`

### 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 `Which lost has 84 as the match points?`:
```sql
                SELECT "lost" FROM "season_table" WHERE "match_points"='84';
```
## Task
Generate a SQL query to answer the following question:
`How many constituents does udaipura have?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many constituents does udaipura have?`:
```sql
                SELECT "constituency_number" FROM "assembly_segments" WHERE "name"='udaipura';
```
## Task
Generate a SQL query to answer the following question:
`What lane was Henrique Barbosa in?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What lane was Henrique Barbosa in?`:
```sql
                SELECT COUNT("lane") FROM "heats" WHERE "name"='henrique barbosa';
```
## Task
Generate a SQL query to answer the following question:
`What game was before 2010 and was a role-playing game?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was before 2010 and was a role-playing game?`:
```sql
                SELECT "game" FROM "list_of_game_of_the_year_awards" WHERE "year"<2010 AND "genre"='role-playing game';
```
## Task
Generate a SQL query to answer the following question:
`What was the platform of Red Dead Redemption?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the platform of Red Dead Redemption?`:
```sql
                SELECT "platform_s" FROM "list_of_game_of_the_year_awards" WHERE "game"='red dead redemption';
```
## Task
Generate a SQL query to answer the following question:
`Who was the developer of Wii?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the developer of Wii?`:
```sql
                SELECT "developer_s" FROM "list_of_game_of_the_year_awards" WHERE "platform_s"='wii';
```
## Task
Generate a SQL query to answer the following question:
`What year was The Walking Dead?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was The Walking Dead?`:
```sql
                SELECT COUNT("year") FROM "list_of_game_of_the_year_awards" WHERE "game"='the walking dead';
```
## Task
Generate a SQL query to answer the following question:
`What was the platform when the developer was Telltale Games?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the platform when the developer was Telltale Games?`:
```sql
                SELECT "platform_s" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='telltale games';
```
## Task
Generate a SQL query to answer the following question:
`What is the game of developer Rockstar Games?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game of developer Rockstar Games?`:
```sql
                SELECT "game" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='rockstar games';
```
## Task
Generate a SQL query to answer the following question:
`Which Elevation (m) has a Prominence (m) of 2,876, and a Col (m) larger than 0?`

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

CREATE TABLE "and_surrounding_islands" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Elevation (m) has a Prominence (m) of 2,876, and a Col (m) larger than 0?`:
```sql
                SELECT SUM("elevation_m") FROM "and_surrounding_islands" WHERE "prominence_m"='2,876' AND "col_m">0;
```
## Task
Generate a SQL query to answer the following question:
`How much Elevation (m) has a Prominence (m) larger than 2,876?`

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

CREATE TABLE "and_surrounding_islands" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Elevation (m) has a Prominence (m) larger than 2,876?`:
```sql
                SELECT COUNT("elevation_m") FROM "and_surrounding_islands" WHERE "prominence_m">'2,876';
```
## Task
Generate a SQL query to answer the following question:
`When was millwall the home team?`

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

CREATE TABLE "sixth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was millwall the home team?`:
```sql
                SELECT "date" FROM "sixth_round_proper" WHERE "home_team"='millwall';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Arsenal was the away team?`

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

CREATE TABLE "sixth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Arsenal was the away team?`:
```sql
                SELECT "score" FROM "sixth_round_proper" WHERE "away_team"='arsenal';
```
## Task
Generate a SQL query to answer the following question:
`Which away team had a Score of 2–0?`

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

CREATE TABLE "sixth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team had a Score of 2–0?`:
```sql
                SELECT "away_team" FROM "sixth_round_proper" WHERE "score"='2–0';
```
## Task
Generate a SQL query to answer the following question:
`When was Arsenal was the away team?`

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

CREATE TABLE "sixth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Arsenal was the away team?`:
```sql
                SELECT "date" FROM "sixth_round_proper" WHERE "away_team"='arsenal';
```
## Task
Generate a SQL query to answer the following question:
`What's the date released when there was 9.7% of Green communist?`

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

CREATE TABLE "116_seats_needed_for_a_majority" (
  "date_released" text,
  "polling_institute" text,
  "social_democratic" text,
  "socialist" text,
  "green_communist" text,
  "democratic_and_social_centre" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the date released when there was 9.7% of Green communist?`:
```sql
                SELECT "date_released" FROM "116_seats_needed_for_a_majority" WHERE "green_communist"='9.7%';
```
## Task
Generate a SQL query to answer the following question:
`What's the green communist when Euroteste/JN is the polling Institute?`

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

CREATE TABLE "116_seats_needed_for_a_majority" (
  "date_released" text,
  "polling_institute" text,
  "social_democratic" text,
  "socialist" text,
  "green_communist" text,
  "democratic_and_social_centre" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the green communist when Euroteste/JN is the polling Institute?`:
```sql
                SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "polling_institute"='euroteste/jn';
```
## Task
Generate a SQL query to answer the following question:
`What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "total">2 AND "rank"='total' AND "gold">44;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "bronze"=0 AND "rank"='19' AND "silver"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "silver"<1 AND "nation"='belgium (bel)' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`With silver medals less than 1, and total medals less than 2, what is the most bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `With silver medals less than 1, and total medals less than 2, what is the most bronze medals?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "silver"<1 AND "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the weight for the 2008 club Dynamo Moscow?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight for the 2008 club Dynamo Moscow?`:
```sql
                SELECT "weight" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='dynamo moscow';
```
## Task
Generate a SQL query to answer the following question:
`What is the spike for the 2008 club Zenit Kazan?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the spike for the 2008 club Zenit Kazan?`:
```sql
                SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='zenit kazan';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2?`

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

CREATE TABLE "2010_ladder" (
  "millewa" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2?`:
```sql
                SELECT COUNT("byes") FROM "2010_ladder" WHERE "wins"=14 AND "losses">2;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?`

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

CREATE TABLE "2010_ladder" (
  "millewa" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?`:
```sql
                SELECT AVG("wins") FROM "2010_ladder" WHERE "against"=1132 AND "losses"<7;
```
## Task
Generate a SQL query to answer the following question:
`What was the date for the game that had a Location/Attendance of the spectrum?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for the game that had a Location/Attendance of the spectrum?`:
```sql
                SELECT "date" FROM "game_log" WHERE "location_attendance"='the spectrum';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when they played at the Skydome?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when they played at the Skydome?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "location_attendance"='skydome';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on January 17?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on January 17?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='january 17';
```
## Task
Generate a SQL query to answer the following question:
`What was the location and attendance when the record was 19-17?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location and attendance when the record was 19-17?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='19-17';
```
## Task
Generate a SQL query to answer the following question:
`What city joined the Independents conference after 1963?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city joined the Independents conference after 1963?`:
```sql
                SELECT "city" FROM "former_members" WHERE "year_joined">1963 AND "conference_joined"='independents';
```
## Task
Generate a SQL query to answer the following question:
`What is the year that the Gary team with mascot of the Tornado joined?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year that the Gary team with mascot of the Tornado joined?`:
```sql
                SELECT MIN("year_joined") FROM "former_members" WHERE "city"='gary' AND "mascot"='tornado';
```
## Task
Generate a SQL query to answer the following question:
`What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?`:
```sql
                SELECT "previous_conference" FROM "former_members" WHERE "conference_joined"='indiana lake shore' AND "mascot"='governors';
```
## Task
Generate a SQL query to answer the following question:
`What is the year that the Roughriders left the conference?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year that the Roughriders left the conference?`:
```sql
                SELECT MAX("year_left") FROM "former_members" WHERE "mascot"='roughriders';
```
## Task
Generate a SQL query to answer the following question:
`What conference did the city of Valparaiso join?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What conference did the city of Valparaiso join?`:
```sql
                SELECT "conference_joined" FROM "former_members" WHERE "city"='valparaiso';
```
## Task
Generate a SQL query to answer the following question:
`What is the mascot of Hammond Tech?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot of Hammond Tech?`:
```sql
                SELECT "mascot" FROM "former_members" WHERE "city"='hammond' AND "school"='hammond tech';
```
## Task
Generate a SQL query to answer the following question:
`What is the duration of the character Bartha Zsolt?`

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

CREATE TABLE "hungary" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the duration of the character Bartha Zsolt?`:
```sql
                SELECT "duration" FROM "hungary" WHERE "character"='bartha zsolt';
```
## Task
Generate a SQL query to answer the following question:
`How many losses have jake sharp as the name, with a long less than 30?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have jake sharp as the name, with a long less than 30?`:
```sql
                SELECT COUNT("loss") FROM "rushing" WHERE "name"='jake sharp' AND "long"<30;
```
## Task
Generate a SQL query to answer the following question:
`What is the average long that has 1581 as a gain, with a loss less than 308?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average long that has 1581 as a gain, with a loss less than 308?`:
```sql
                SELECT AVG("long") FROM "rushing" WHERE "gain"=1581 AND "loss"<308;
```
## Task
Generate a SQL query to answer the following question:
`How many gains have a long greater than 8, with avg/g of 124.9?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gains have a long greater than 8, with avg/g of 124.9?`:
```sql
                SELECT SUM("gain") FROM "rushing" WHERE "long">8 AND "avg_g"=124.9;
```
## Task
Generate a SQL query to answer the following question:
`How many longs have a gain less than 379, and 0.8 as an avg/g?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many longs have a gain less than 379, and 0.8 as an avg/g?`:
```sql
                SELECT SUM("long") FROM "rushing" WHERE "gain"<379 AND "avg_g"=0.8;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1?`:
```sql
                SELECT MIN("gain") FROM "rushing" WHERE "name"='toben opurum' AND "avg_g"<54.1;
```
## Task
Generate a SQL query to answer the following question:
`Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"<17 AND "points">0 AND "laps"=87 AND "time_retired"='1:48:11.023';
```
## Task
Generate a SQL query to answer the following question:
`Which Points have a Grid larger than 7, and a Driver of alex tagliani, and a Lapse smaller than 85?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have a Grid larger than 7, and a Driver of alex tagliani, and a Lapse smaller than 85?`:
```sql
                SELECT MAX("points") FROM "race" WHERE "grid">7 AND "driver"='alex tagliani' AND "laps"<85;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins for a nation that played fewer than 8 matches and a Wins percentage of 62.5%?`

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

CREATE TABLE "by_country" (
  "country" text,
  "matches" real,
  "wins" real,
  "wins_pct" text,
  "draws" real,
  "draws_pct" text,
  "loses" real,
  "loses_pct" text,
  "against" real,
  "for_against_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of wins for a nation that played fewer than 8 matches and a Wins percentage of 62.5%?`:
```sql
                SELECT COUNT("wins") FROM "by_country" WHERE "wins_pct"='62.5%' AND "matches"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of matches for a nation with a Loses percentage of 26.67% and fewer than 90 draws?`

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

CREATE TABLE "by_country" (
  "country" text,
  "matches" real,
  "wins" real,
  "wins_pct" text,
  "draws" real,
  "draws_pct" text,
  "loses" real,
  "loses_pct" text,
  "against" real,
  "for_against_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of matches for a nation with a Loses percentage of 26.67% and fewer than 90 draws?`:
```sql
                SELECT MAX("matches") FROM "by_country" WHERE "loses_pct"='26.67%' AND "draws"<90;
```
## Task
Generate a SQL query to answer the following question:
`What date has uefa euro 2008 qualification as the competition?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has uefa euro 2008 qualification as the competition?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='uefa euro 2008 qualification';
```
## Task
Generate a SQL query to answer the following question:
`What date has friendly as the competition, with pretoria, South Africa as the venue?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has friendly as the competition, with pretoria, South Africa as the venue?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='friendly' AND "venue"='pretoria, south africa';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest final score of the American Cup competition before 2009?`

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

CREATE TABLE "senior_career" (
  "year" real,
  "competition_description" text,
  "location" text,
  "apparatus" text,
  "rank_final" real,
  "score_final" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest final score of the American Cup competition before 2009?`:
```sql
                SELECT MIN("score_final") FROM "senior_career" WHERE "competition_description"='american cup' AND "year"<2009;
```
## Task
Generate a SQL query to answer the following question:
`What is the result for the game before week 7 against BYE?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for the game before week 7 against BYE?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"<7 AND "opponent"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What was the date for the game after week 16?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for the game after week 16?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">16;
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game against tampa bay buccaneers?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game against tampa bay buccaneers?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "opponent"='tampa bay buccaneers';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game after week 5 with 62,262 fans attending?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game after week 5 with 62,262 fans attending?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">5 AND "attendance"='62,262';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Record of 5–2–1?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Record of 5–2–1?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='5–2–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has an Event of inoki bom-ba-ye 2002?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has an Event of inoki bom-ba-ye 2002?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='inoki bom-ba-ye 2002';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Record of 2–0?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Record of 2–0?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='2–0';
```