cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When the Track is ESO, the peak is smaller than 25, and the year is larger than 2004, what is the total number of Weeks on Chart?`

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

CREATE TABLE "singles" (
  "year" real,
  "chart" text,
  "track" text,
  "peak" real,
  "weeks_on_chart" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the Track is ESO, the peak is smaller than 25, and the year is larger than 2004, what is the total number of Weeks on Chart?`:
```sql
                SELECT COUNT("weeks_on_chart") FROM "singles" WHERE "track"='eso' AND "peak"<25 AND "year">2004;
```
## Task
Generate a SQL query to answer the following question:
`Which year has fewer Weeks on Chart than 17, a Peak of 23, and the track is regálame la silla donde te esperé?`

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

CREATE TABLE "singles" (
  "year" real,
  "chart" text,
  "track" text,
  "peak" real,
  "weeks_on_chart" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has fewer Weeks on Chart than 17, a Peak of 23, and the track is regálame la silla donde te esperé?`:
```sql
                SELECT "year" FROM "singles" WHERE "weeks_on_chart"<17 AND "track"='regálame la silla donde te esperé' AND "peak"=23;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Peak with fewer than 8 Weeks on Chart?`

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

CREATE TABLE "singles" (
  "year" real,
  "chart" text,
  "track" text,
  "peak" real,
  "weeks_on_chart" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Peak with fewer than 8 Weeks on Chart?`:
```sql
                SELECT MIN("peak") FROM "singles" WHERE "weeks_on_chart"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the Round of 16 value for the nation with a value of 5 for Ranking Round Rank?`

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

CREATE TABLE "ranking_round" (
  "final_rank" real,
  "ranking_round_rank" real,
  "nation" text,
  "ranking_score" real,
  "round_of_16" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Round of 16 value for the nation with a value of 5 for Ranking Round Rank?`:
```sql
                SELECT "round_of_16" FROM "ranking_round" WHERE "ranking_round_rank"=5;
```
## Task
Generate a SQL query to answer the following question:
`What Team had the first round of 1:00?`

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

CREATE TABLE "contestants" (
  "city_state" text,
  "members" text,
  "team" text,
  "first_round" text,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team had the first round of 1:00?`:
```sql
                SELECT "team" FROM "contestants" WHERE "first_round"='1:00';
```
## Task
Generate a SQL query to answer the following question:
`What City/State did the Atlanta Hawks (retired) team play for?`

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

CREATE TABLE "contestants" (
  "city_state" text,
  "members" text,
  "team" text,
  "first_round" text,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What City/State did the Atlanta Hawks (retired) team play for?`:
```sql
                SELECT "city_state" FROM "contestants" WHERE "team"='atlanta hawks (retired)';
```
## Task
Generate a SQL query to answer the following question:
`What was the final round value for member Chris Webber?`

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

CREATE TABLE "contestants" (
  "city_state" text,
  "members" text,
  "team" text,
  "first_round" text,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final round value for member Chris Webber?`:
```sql
                SELECT "final_round" FROM "contestants" WHERE "members"='chris webber';
```
## Task
Generate a SQL query to answer the following question:
`What was the first round time for member Kenny Smith?`

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

CREATE TABLE "contestants" (
  "city_state" text,
  "members" text,
  "team" text,
  "first_round" text,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first round time for member Kenny Smith?`:
```sql
                SELECT "first_round" FROM "contestants" WHERE "members"='kenny smith';
```
## Task
Generate a SQL query to answer the following question:
`Which team was the opponent on December 30?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was the opponent on December 30?`:
```sql
                SELECT "team" FROM "game_log" WHERE "date"='december 30';
```
## Task
Generate a SQL query to answer the following question:
`What content is provided by the television service ewtn?`

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

CREATE TABLE "religious" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What content is provided by the television service ewtn?`:
```sql
                SELECT "content" FROM "religious" WHERE "television_service"='ewtn';
```
## Task
Generate a SQL query to answer the following question:
`What is the content of the television service ewtn in the United Kingdom?`

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

CREATE TABLE "religious" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the content of the television service ewtn in the United Kingdom?`:
```sql
                SELECT "content" FROM "religious" WHERE "country"='united kingdom' AND "television_service"='ewtn';
```
## Task
Generate a SQL query to answer the following question:
`What is the package/option for Italy when the language is italian?`

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

CREATE TABLE "religious" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the package/option for Italy when the language is italian?`:
```sql
                SELECT "package_option" FROM "religious" WHERE "country"='italy' AND "language"='italian';
```
## Task
Generate a SQL query to answer the following question:
`What is the package/option in Italy when the content is religione?`

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

CREATE TABLE "religious" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the package/option in Italy when the content is religione?`:
```sql
                SELECT "package_option" FROM "religious" WHERE "content"='religione' AND "country"='italy';
```
## Task
Generate a SQL query to answer the following question:
`Which television service has italian for its language?`

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

CREATE TABLE "religious" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which television service has italian for its language?`:
```sql
                SELECT "television_service" FROM "religious" WHERE "language"='italian';
```
## Task
Generate a SQL query to answer the following question:
`Does daystar television network provide HDTV?`

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

CREATE TABLE "religious" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does daystar television network provide HDTV?`:
```sql
                SELECT "hdtv" FROM "religious" WHERE "television_service"='daystar television network';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance when Oxford United was the Home team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance when Oxford United was the Home team?`:
```sql
                SELECT SUM("attendance") FROM "second_round_proper" WHERE "home_team"='oxford united';
```
## Task
Generate a SQL query to answer the following question:
`What was the Home team when Farnborough Town was the Away team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Home team when Farnborough Town was the Away team?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='farnborough town';
```
## Task
Generate a SQL query to answer the following question:
`What was the Away Team of Blackpool's Home game?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Away Team of Blackpool's Home game?`:
```sql
                SELECT "away_team" FROM "second_round_proper" WHERE "home_team"='blackpool';
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Rank of 9?`

### 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 `Which Bronze has a Rank of 9?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"='9';
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?`

### 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 `Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "gold"<1 AND "rank"='17' AND "nation"='china';
```
## Task
Generate a SQL query to answer the following question:
`Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 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 `Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "bronze"<1 AND "total">1 AND "silver"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Rank of 17, and a Gold larger 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 `Which Total has a Rank of 17, and a Gold larger than 0?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "rank"='17' AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Rank of 15, and a Total smaller than 2?`

### 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 `Which Gold has a Rank of 15, and a Total smaller than 2?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "rank"='15' AND "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of games for the season with 10 ties?`

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

CREATE TABLE "season_by_season_results" (
  "season" text,
  "games" real,
  "lost" real,
  "tied" real,
  "points" real,
  "pct_pct" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of games for the season with 10 ties?`:
```sql
                SELECT "games" FROM "season_by_season_results" WHERE "tied"=10;
```
## Task
Generate a SQL query to answer the following question:
`What was the surface where the opponent was Nathalie Dechy Meilen Tu?`

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

CREATE TABLE "winner_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface where the opponent was Nathalie Dechy Meilen Tu?`:
```sql
                SELECT "surface" FROM "winner_5" WHERE "opponent_in_the_final"='nathalie dechy meilen tu';
```
## Task
Generate a SQL query to answer the following question:
`What is the Series leader with a Date that is may 31?`

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

CREATE TABLE "events" (
  "date" text,
  "event" text,
  "winner" text,
  "team" text,
  "series_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Series leader with a Date that is may 31?`:
```sql
                SELECT "series_leader" FROM "events" WHERE "date"='may 31';
```
## Task
Generate a SQL query to answer the following question:
`What is the Series leader with a Date that is october 9?`

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

CREATE TABLE "events" (
  "date" text,
  "event" text,
  "winner" text,
  "team" text,
  "series_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Series leader with a Date that is october 9?`:
```sql
                SELECT "series_leader" FROM "events" WHERE "date"='october 9';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Date of january 10, 1994?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Date of january 10, 1994?`:
```sql
                SELECT "tournament" FROM "doubles_titles_5" WHERE "date"='january 10, 1994';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponents in the final have a Date of june 10, 1996?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents in the final have a Date of june 10, 1996?`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_titles_5" WHERE "date"='june 10, 1996';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Opponents in the final with a Date of june 10, 1996?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Opponents in the final with a Date of june 10, 1996?`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_titles_5" WHERE "date"='june 10, 1996';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has Opponents in the final of maria lindström maria strandlund?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has Opponents in the final of maria lindström maria strandlund?`:
```sql
                SELECT "tournament" FROM "doubles_titles_5" WHERE "opponents_in_the_final"='maria lindström maria strandlund';
```
## Task
Generate a SQL query to answer the following question:
`What country came in third when there were 13 teams in 1996?`

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

CREATE TABLE "champions" (
  "season" real,
  "venue" text,
  "teams" real,
  "drivers" real,
  "champion" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country came in third when there were 13 teams in 1996?`:
```sql
                SELECT "third" FROM "champions" WHERE "teams"=13 AND "season"=1996;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of season when the venue was donington park, and Brazil came in second?`

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

CREATE TABLE "champions" (
  "season" real,
  "venue" text,
  "teams" real,
  "drivers" real,
  "champion" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of season when the venue was donington park, and Brazil came in second?`:
```sql
                SELECT SUM("season") FROM "champions" WHERE "venue"='donington park' AND "second"='brazil';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?`

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

CREATE TABLE "champions" (
  "season" real,
  "venue" text,
  "teams" real,
  "drivers" real,
  "champion" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?`:
```sql
                SELECT AVG("season") FROM "champions" WHERE "venue"='circuit de nevers magny-cours' AND "drivers">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Losses when the percentage is 54.83, with more than 8 points?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Losses when the percentage is 54.83, with more than 8 points?`:
```sql
                SELECT COUNT("losses") FROM "standings" WHERE "percentage"=54.83 AND "points">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Points For when there are Points Against more than 780, and Points smaller than 0?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Points For when there are Points Against more than 780, and Points smaller than 0?`:
```sql
                SELECT AVG("points_for") FROM "standings" WHERE "points_against">780 AND "points"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Points when the Points Against is 594, and Losses is more than 3?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Points when the Points Against is 594, and Losses is more than 3?`:
```sql
                SELECT AVG("points") FROM "standings" WHERE "points_against"=594 AND "losses">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?`:
```sql
                SELECT AVG("percentage") FROM "standings" WHERE "wins">0 AND "points_against">481 AND "losses"=8 AND "points_for">826;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594?`

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

CREATE TABLE "standings" (
  "club" text,
  "wins" real,
  "losses" real,
  "points_for" real,
  "points_against" real,
  "percentage" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594?`:
```sql
                SELECT MIN("wins") FROM "standings" WHERE "club"='broadview hawks' AND "points_against">594;
```
## Task
Generate a SQL query to answer the following question:
`What Goalkeeper has MINS less than 2160`

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

CREATE TABLE "goalkeeping_leaders" (
  "rank" real,
  "goalkeeper" text,
  "club" text,
  "mins" real,
  "shts" real,
  "w_l_t" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Goalkeeper has MINS less than 2160`:
```sql
                SELECT "goalkeeper" FROM "goalkeeping_leaders" WHERE "mins"<2160;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest SHTS of Kasey Keller`

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

CREATE TABLE "goalkeeping_leaders" (
  "rank" real,
  "goalkeeper" text,
  "club" text,
  "mins" real,
  "shts" real,
  "w_l_t" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest SHTS of Kasey Keller`:
```sql
                SELECT MAX("shts") FROM "goalkeeping_leaders" WHERE "goalkeeper"='kasey keller';
```
## Task
Generate a SQL query to answer the following question:
`What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1?`:
```sql
                SELECT MAX("bronze") FROM "medals_table" WHERE "total">1 AND "rank">1 AND "gold">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Losses that Melton had when they had fewer Draws than 0?`

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

CREATE TABLE "2001_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Losses that Melton had when they had fewer Draws than 0?`:
```sql
                SELECT SUM("losses") FROM "2001_ladder" WHERE "ballarat_fl"='melton' AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of Against that Lake Wendouree had when they had more than 7 Losses?`

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

CREATE TABLE "2001_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of Against that Lake Wendouree had when they had more than 7 Losses?`:
```sql
                SELECT MIN("against") FROM "2001_ladder" WHERE "ballarat_fl"='lake wendouree' AND "losses">7;
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of Byes for the team that had 1136 Against and fewer than 0 Draws?`

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

CREATE TABLE "2001_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of Byes for the team that had 1136 Against and fewer than 0 Draws?`:
```sql
                SELECT COUNT("byes") FROM "2001_ladder" WHERE "against"=1136 AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the greatest number of Losses for the team that had 1427 Against and more than 5 Wins?`

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

CREATE TABLE "2001_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the greatest number of Losses for the team that had 1427 Against and more than 5 Wins?`:
```sql
                SELECT MAX("losses") FROM "2001_ladder" WHERE "against">1427 AND "wins">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of Byes for the team that had 15 Losses, and less than 1 Win?`

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

CREATE TABLE "2001_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of Byes for the team that had 15 Losses, and less than 1 Win?`:
```sql
                SELECT AVG("byes") FROM "2001_ladder" WHERE "losses"=15 AND "wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which nation's total is less than 19 when there's less than 1 bronze?`

### 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 `Which nation's total is less than 19 when there's less than 1 bronze?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "total"<19 AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many totals does Chile have when the number of silvers is more 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 `How many totals does Chile have when the number of silvers is more than 0?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "nation"='chile' AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What was the record when TKO (punches and elbows) was the method?`

### 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 `What was the record when TKO (punches and elbows) was the method?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='tko (punches and elbows)';
```
## Task
Generate a SQL query to answer the following question:
`What venue has don bradman (nsw) as the player?`

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

CREATE TABLE "highest_individual_scores" (
  "rank" text,
  "runs" text,
  "player" text,
  "match" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has don bradman (nsw) as the player?`:
```sql
                SELECT "venue" FROM "highest_individual_scores" WHERE "player"='don bradman (nsw)';
```
## Task
Generate a SQL query to answer the following question:
`What rank has Bill Ponsford (vic) as the player?`

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

CREATE TABLE "highest_individual_scores" (
  "rank" text,
  "runs" text,
  "player" text,
  "match" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has Bill Ponsford (vic) as the player?`:
```sql
                SELECT "rank" FROM "highest_individual_scores" WHERE "player"='bill ponsford (vic)';
```
## Task
Generate a SQL query to answer the following question:
`What match has Clem Hill (sa) as the player?`

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

CREATE TABLE "highest_individual_scores" (
  "rank" text,
  "runs" text,
  "player" text,
  "match" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What match has Clem Hill (sa) as the player?`:
```sql
                SELECT "match" FROM "highest_individual_scores" WHERE "player"='clem hill (sa)';
```
## Task
Generate a SQL query to answer the following question:
`Who played on December 25, 1925?`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "result" text,
  "score" text,
  "brazil_scorers" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played on December 25, 1925?`:
```sql
                SELECT "competition" FROM "brazil_national_team" WHERE "date"='december 25, 1925';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the South American Championship dated December 13, 1925?`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "result" text,
  "score" text,
  "brazil_scorers" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the South American Championship dated December 13, 1925?`:
```sql
                SELECT "result" FROM "brazil_national_team" WHERE "competition"='south american championship' AND "date"='december 13, 1925';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of House of Representatives seats had an abbreviation of d66?`

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

CREATE TABLE "parliamentary_parties" (
  "abbr" text,
  "political_leader" text,
  "international_affiliation" text,
  "votes_2012" text,
  "house_of_rep_seats" real,
  "senate_seats" real,
  "european_parliament_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of House of Representatives seats had an abbreviation of d66?`:
```sql
                SELECT AVG("house_of_rep_seats") FROM "parliamentary_parties" WHERE "abbr"='d66';
```
## Task
Generate a SQL query to answer the following question:
`For the tournament played on Oct 17, 1982, what was the winning score?`

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

CREATE TABLE "senior_pga_tour_wins_24" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the tournament played on Oct 17, 1982, what was the winning score?`:
```sql
                SELECT "winning_score" FROM "senior_pga_tour_wins_24" WHERE "date"='oct 17, 1982';
```
## Task
Generate a SQL query to answer the following question:
`For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up?`

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

CREATE TABLE "senior_pga_tour_wins_24" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up?`:
```sql
                SELECT "runner_s_up" FROM "senior_pga_tour_wins_24" WHERE "margin_of_victory"='5 strokes' AND "date"='nov 13, 1988';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the tournament played that eneded with a winning score of +6 (74-71-70-71=286) and margin of victory of 2 strokes, and with Arnold palmer as the runner-up?`

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

CREATE TABLE "senior_pga_tour_wins_24" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the tournament played that eneded with a winning score of +6 (74-71-70-71=286) and margin of victory of 2 strokes, and with Arnold palmer as the runner-up?`:
```sql
                SELECT "date" FROM "senior_pga_tour_wins_24" WHERE "runner_s_up"='arnold palmer' AND "margin_of_victory"='2 strokes' AND "winning_score"='+6 (74-71-70-71=286)';
```
## Task
Generate a SQL query to answer the following question:
`What is 2008, when 2006 is "Grand Slam Tournaments"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2008, when 2006 is "Grand Slam Tournaments"?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2006"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is 2007, when 2003 is 1R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2007, when 2003 is 1R?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2003"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tournament, when 2012 is 3R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tournament, when 2012 is 3R?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when 2009 is "Grand Slam Tournaments"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when 2009 is "Grand Slam Tournaments"?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2009"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which Free polite has a Genitive 3 of *ni-da?`

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

CREATE TABLE "proto_austronesian_personal_pronouns" (
  "free" text,
  "free_polite" text,
  "genitive_1" text,
  "genitive_2" text,
  "genitive_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Free polite has a Genitive 3 of *ni-da?`:
```sql
                SELECT "free_polite" FROM "proto_austronesian_personal_pronouns" WHERE "genitive_3"='*ni-da';
```
## Task
Generate a SQL query to answer the following question:
`Which Free polite has a Genitive 1 of *=ku?`

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

CREATE TABLE "proto_austronesian_personal_pronouns" (
  "free" text,
  "free_polite" text,
  "genitive_1" text,
  "genitive_2" text,
  "genitive_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Free polite has a Genitive 1 of *=ku?`:
```sql
                SELECT "free_polite" FROM "proto_austronesian_personal_pronouns" WHERE "genitive_1"='*=ku';
```
## Task
Generate a SQL query to answer the following question:
`Which Free has a Free polite of *[i-]k-ita?`

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

CREATE TABLE "proto_austronesian_personal_pronouns" (
  "free" text,
  "free_polite" text,
  "genitive_1" text,
  "genitive_2" text,
  "genitive_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Free has a Free polite of *[i-]k-ita?`:
```sql
                SELECT "free" FROM "proto_austronesian_personal_pronouns" WHERE "free_polite"='*[i-]k-ita';
```
## Task
Generate a SQL query to answer the following question:
`Which Free polite has a Genitive 3 of *n(i)-ami?`

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

CREATE TABLE "proto_austronesian_personal_pronouns" (
  "free" text,
  "free_polite" text,
  "genitive_1" text,
  "genitive_2" text,
  "genitive_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Free polite has a Genitive 3 of *n(i)-ami?`:
```sql
                SELECT "free_polite" FROM "proto_austronesian_personal_pronouns" WHERE "genitive_3"='*n(i)-ami';
```
## Task
Generate a SQL query to answer the following question:
`Which Genitive 1 has a Free polite of –, and a Genitive 2 of –, and a Genitive 3 of *n(i)-ia?`

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

CREATE TABLE "proto_austronesian_personal_pronouns" (
  "free" text,
  "free_polite" text,
  "genitive_1" text,
  "genitive_2" text,
  "genitive_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Genitive 1 has a Free polite of –, and a Genitive 2 of –, and a Genitive 3 of *n(i)-ia?`:
```sql
                SELECT "genitive_1" FROM "proto_austronesian_personal_pronouns" WHERE "free_polite"='–' AND "genitive_2"='–' AND "genitive_3"='*n(i)-ia';
```
## Task
Generate a SQL query to answer the following question:
`Which Genitive 1 has a Genitive 3 of *n(i)-ia?`

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

CREATE TABLE "proto_austronesian_personal_pronouns" (
  "free" text,
  "free_polite" text,
  "genitive_1" text,
  "genitive_2" text,
  "genitive_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Genitive 1 has a Genitive 3 of *n(i)-ia?`:
```sql
                SELECT "genitive_1" FROM "proto_austronesian_personal_pronouns" WHERE "genitive_3"='*n(i)-ia';
```
## Task
Generate a SQL query to answer the following question:
`What is the Proto-Oceanic verb for the verb to sew?`

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

CREATE TABLE "verbs" (
  "verb" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Proto-Oceanic verb for the verb to sew?`:
```sql
                SELECT "proto_oceanic" FROM "verbs" WHERE "verb"='to sew';
```
## Task
Generate a SQL query to answer the following question:
`What is the verb for the Proto-Austronesian word *diri?`

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

CREATE TABLE "verbs" (
  "verb" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the verb for the Proto-Austronesian word *diri?`:
```sql
                SELECT "verb" FROM "verbs" WHERE "proto_austronesian"='*diri';
```
## Task
Generate a SQL query to answer the following question:
`What is the Proto-Oceanic verb for to die, be dead?`

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

CREATE TABLE "verbs" (
  "verb" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Proto-Oceanic verb for to die, be dead?`:
```sql
                SELECT "proto_oceanic" FROM "verbs" WHERE "verb"='to die, be dead';
```
## Task
Generate a SQL query to answer the following question:
`What is the verb for the Proto-Polynesian word *mohe?`

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

CREATE TABLE "verbs" (
  "verb" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the verb for the Proto-Polynesian word *mohe?`:
```sql
                SELECT "verb" FROM "verbs" WHERE "proto_polynesian"='*mohe';
```
## Task
Generate a SQL query to answer the following question:
`What is the Proto-Austronesian word for the Proto-Polynesian word *tui?`

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

CREATE TABLE "verbs" (
  "verb" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Proto-Austronesian word for the Proto-Polynesian word *tui?`:
```sql
                SELECT "proto_austronesian" FROM "verbs" WHERE "proto_polynesian"='*tui';
```
## Task
Generate a SQL query to answer the following question:
`What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi?`

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

CREATE TABLE "verbs" (
  "verb" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi?`:
```sql
                SELECT "proto_malayo_polynesian" FROM "verbs" WHERE "proto_oceanic"='*saqit, *turi';
```
## Task
Generate a SQL query to answer the following question:
`What station has a genre of talk music and is in Malay English language?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "station" text,
  "operator" text,
  "language" text,
  "genre" text,
  "coverage_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What station has a genre of talk music and is in Malay English language?`:
```sql
                SELECT "station" FROM "radio" WHERE "genre"='talk music' AND "language"='malay english';
```