cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many points did Antwain Barbour score in the year he played 39 games?`

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

CREATE TABLE "points" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Antwain Barbour score in the year he played 39 games?`:
```sql
                SELECT SUM("points") FROM "points" WHERE "name"='antwain barbour' AND "games"<39;
```
## Task
Generate a SQL query to answer the following question:
`What team was Paolo Quinteros on?`

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

CREATE TABLE "points" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team was Paolo Quinteros on?`:
```sql
                SELECT "team" FROM "points" WHERE "name"='paolo quinteros';
```
## Task
Generate a SQL query to answer the following question:
`Was the record of 8-1 (1) a win or a loss?`

### 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" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the record of 8-1 (1) a win or a loss?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='8-1 (1)';
```
## Task
Generate a SQL query to answer the following question:
`In what event was the technical decision (split) method used?`

### 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" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what event was the technical decision (split) method used?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='technical decision (split)';
```
## Task
Generate a SQL query to answer the following question:
`What are the average play-offs that have an FA Cup greater than 3?`

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

CREATE TABLE "topscorers" (
  "player" text,
  "club" text,
  "league" real,
  "play_offs" real,
  "fa_cup" real,
  "fa_trophy" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average play-offs that have an FA Cup greater than 3?`:
```sql
                SELECT AVG("play_offs") FROM "topscorers" WHERE "fa_cup">3;
```
## Task
Generate a SQL query to answer the following question:
`How many totals have a play-off less than 0?`

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

CREATE TABLE "topscorers" (
  "player" text,
  "club" text,
  "league" real,
  "play_offs" real,
  "fa_cup" real,
  "fa_trophy" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many totals have a play-off less than 0?`:
```sql
                SELECT COUNT("total") FROM "topscorers" WHERE "play_offs"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which league has an FA cup greater than 0, with a total greater than 21?`

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

CREATE TABLE "topscorers" (
  "player" text,
  "club" text,
  "league" real,
  "play_offs" real,
  "fa_cup" real,
  "fa_trophy" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which league has an FA cup greater than 0, with a total greater than 21?`:
```sql
                SELECT "league" FROM "topscorers" WHERE "fa_cup">0 AND "total">21;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?`

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

CREATE TABLE "topscorers" (
  "player" text,
  "club" text,
  "league" real,
  "play_offs" real,
  "fa_cup" real,
  "fa_trophy" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?`:
```sql
                SELECT MAX("play_offs") FROM "topscorers" WHERE "club"='stevenage borough' AND "total">21;
```
## Task
Generate a SQL query to answer the following question:
`What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?`:
```sql
                SELECT "2012" FROM "doubles_performance_timeline" WHERE "2003"='2r' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?`:
```sql
                SELECT "2012" FROM "doubles_performance_timeline" WHERE "2013"='2r' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open?`:
```sql
                SELECT "2003" FROM "doubles_performance_timeline" WHERE "2012"='1r' AND "2004"='2r' AND "tournament"='australian open';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the tournament that has the results of 2003 2r and 2004 1r?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the tournament that has the results of 2003 2r and 2004 1r?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2003"='2r' AND "2004"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the results in 2004 that has a 2013 result of 2r?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the results in 2004 that has a 2013 result of 2r?`:
```sql
                SELECT "2004" FROM "doubles_performance_timeline" WHERE "2013"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is the result from 2003 from the US Open?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result from 2003 from the US Open?`:
```sql
                SELECT "2003" FROM "doubles_performance_timeline" WHERE "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the player born on June 24, 1964, with a weight over 84 kg?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1986_1987_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the player born on June 24, 1964, with a weight over 84 kg?`:
```sql
                SELECT AVG("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg">84 AND "birthdate"='june 24, 1964';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the player from Melrose, Massachusetts born?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1986_1987_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the player from Melrose, Massachusetts born?`:
```sql
                SELECT "birthdate" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='melrose, massachusetts';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the player from the Washington Capitals, who was born in Detroit, Michigan and has a jersey number under #11?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1986_1987_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the player from the Washington Capitals, who was born in Detroit, Michigan and has a jersey number under #11?`:
```sql
                SELECT MIN("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "1986_1987_team"='washington capitals' AND "birthplace"='detroit, michigan' AND "jersey_num"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Event is Billabong Pro?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Event is Billabong Pro?`:
```sql
                SELECT "date" FROM "tournaments" WHERE "event"='billabong pro';
```
## Task
Generate a SQL query to answer the following question:
`What is Location, when Date is December 8-December 20?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Location, when Date is December 8-December 20?`:
```sql
                SELECT "location" FROM "tournaments" WHERE "date"='december 8-december 20';
```
## Task
Generate a SQL query to answer the following question:
`What is Runner-up, when Event is Mancora Peru Classic?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Runner-up, when Event is Mancora Peru Classic?`:
```sql
                SELECT "runner_up" FROM "tournaments" WHERE "event"='mancora peru classic';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Date is August 20-August 27?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Date is August 20-August 27?`:
```sql
                SELECT "event" FROM "tournaments" WHERE "date"='august 20-august 27';
```
## Task
Generate a SQL query to answer the following question:
`What is Date when Runner-up is Sofía Mulánovich ( per )?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date when Runner-up is Sofía Mulánovich ( per )?`:
```sql
                SELECT "date" FROM "tournaments" WHERE "runner_up"='sofía mulánovich ( per )';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Event is Rip Curl Women's Pro?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Event is Rip Curl Women's Pro?`:
```sql
                SELECT "country" FROM "tournaments" WHERE "event"='rip curl women''s pro';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest win percentage when there were 23 losses?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" real,
  "losses" real,
  "winpct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest win percentage when there were 23 losses?`:
```sql
                SELECT MAX("winpct") FROM "seasons" WHERE "losses"=23;
```
## Task
Generate a SQL query to answer the following question:
`Which finish had a win percentage that was more than 0.598 and also had less than 53 wins?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" real,
  "losses" real,
  "winpct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which finish had a win percentage that was more than 0.598 and also had less than 53 wins?`:
```sql
                SELECT "finish" FROM "seasons" WHERE "winpct">0.598 AND "wins"<53;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 Team with player Deshaun Foster?`

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

CREATE TABLE "signings" (
  "pos" text,
  "player" text,
  "free_agent_type" text,
  "2007_team" text,
  "contract" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 Team with player Deshaun Foster?`:
```sql
                SELECT "2007_team" FROM "signings" WHERE "player"='deshaun foster';
```
## Task
Generate a SQL query to answer the following question:
`What is the Free Agent Type for player bryant johnson?`

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

CREATE TABLE "signings" (
  "pos" text,
  "player" text,
  "free_agent_type" text,
  "2007_team" text,
  "contract" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Free Agent Type for player bryant johnson?`:
```sql
                SELECT "free_agent_type" FROM "signings" WHERE "player"='bryant johnson';
```
## Task
Generate a SQL query to answer the following question:
`What is the High assists with a Date that is march 31?`

### 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_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the High assists with a Date that is march 31?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='march 31';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score with a Date that is march 12?`

### 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_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score with a Date that is march 12?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='march 12';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest silver that has a bronze greater than 1, a gold less than 2, and a total less than 2?`

### 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 lowest silver that has a bronze greater than 1, a gold less than 2, and a total less than 2?`:
```sql
                SELECT MIN("silver") FROM "medals_table" WHERE "bronze">1 AND "gold"<2 AND "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`What average rank that has a silver less than 0?`

### 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 average rank that has a silver less than 0?`:
```sql
                SELECT AVG("rank") FROM "medals_table" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many silver have 4 as the total with a bronze less than 2?`

### 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 `How many silver have 4 as the total with a bronze less than 2?`:
```sql
                SELECT COUNT("silver") FROM "medals_table" WHERE "total"=4 AND "bronze"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many totals have a rank greater than 4, czech Republic as the nation, and a bronze greater than 0?`

### 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 `How many totals have a rank greater than 4, czech Republic as the nation, and a bronze greater than 0?`:
```sql
                SELECT SUM("total") FROM "medals_table" WHERE "rank">4 AND "nation"='czech republic' AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`What average total has a gold greater than 0, and a silver greater than 0, with a bronze greater than 2?`

### 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 average total has a gold greater than 0, and a silver greater than 0, with a bronze greater than 2?`:
```sql
                SELECT AVG("total") FROM "medals_table" WHERE "gold">0 AND "silver">0 AND "bronze">2;
```
## Task
Generate a SQL query to answer the following question:
`Which country has an Indigenous mining production 2006 of 0?`

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

CREATE TABLE "uranium_demand_mining_production_and_def" (
  "country" text,
  "uranium_required_2006_08" text,
  "pct_of_world_demand" text,
  "indigenous_mining_production_2006" text,
  "deficit_surplus" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has an Indigenous mining production 2006 of 0?`:
```sql
                SELECT "country" FROM "uranium_demand_mining_production_and_def" WHERE "indigenous_mining_production_2006"='0';
```
## Task
Generate a SQL query to answer the following question:
`What is the total capacity of the airport ranked less than 7, has a capacity in use of 114.2%, and has less than 13,699,657 total passengers?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total capacity of the airport ranked less than 7, has a capacity in use of 114.2%, and has less than 13,699,657 total passengers?`:
```sql
                SELECT COUNT("capacity") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "rank"<7 AND "capacity_in_use"='114.2%' AND "total_passengers"<'13,699,657';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest capacity of the airport in Rio de Janeiro, which was ranked greater than 6 and had more than 5,099,643 total passengers?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest capacity of the airport in Rio de Janeiro, which was ranked greater than 6 and had more than 5,099,643 total passengers?`:
```sql
                SELECT MAX("capacity") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "rank">6 AND "location"='rio de janeiro' AND "total_passengers">'5,099,643';
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity in use of the airport in Rio de Janeiro with an annual change of 40.53%?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity in use of the airport in Rio de Janeiro with an annual change of 40.53%?`:
```sql
                SELECT "capacity_in_use" FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "location"='rio de janeiro' AND "annual_change"='40.53%';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?`

### 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 sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?`:
```sql
                SELECT SUM("silver") FROM "medal_table" WHERE "total"<6 AND "rank"='6' AND "nation"='bulgaria';
```
## Task
Generate a SQL query to answer the following question:
`What nation has a bronze of 2 with a total less than 5 and rank of 6?`

### 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 nation has a bronze of 2 with a total less than 5 and rank of 6?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "bronze"=2 AND "total"<5 AND "rank"='6';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total for rank 3 with more than 4 gold?`

### 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 lowest Total for rank 3 with more than 4 gold?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "rank"='3' AND "gold">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total for Italy with less than 0 silver?`

### 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 lowest Total for Italy with less than 0 silver?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "nation"='italy' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the Nation with less than 1 silver, and the total is 1, and bronze is 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 Nation with less than 1 silver, and the total is 1, and bronze is less than 0?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "silver"<1 AND "total"=1 AND "bronze"=0;
```
## Task
Generate a SQL query to answer the following question:
`What number has 2002-2003 as the season?`

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

CREATE TABLE "b" (
  "name" text,
  "position" text,
  "number" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number has 2002-2003 as the season?`:
```sql
                SELECT "number" FROM "b" WHERE "season"='2002-2003';
```
## Task
Generate a SQL query to answer the following question:
`What position has 2008 as the season?`

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

CREATE TABLE "b" (
  "name" text,
  "position" text,
  "number" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has 2008 as the season?`:
```sql
                SELECT "position" FROM "b" WHERE "season"='2008';
```
## Task
Generate a SQL query to answer the following question:
`What name has 50 as the number?`

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

CREATE TABLE "b" (
  "name" text,
  "position" text,
  "number" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has 50 as the number?`:
```sql
                SELECT "name" FROM "b" WHERE "number"='50';
```
## Task
Generate a SQL query to answer the following question:
`What number has 2008 as the season?`

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

CREATE TABLE "b" (
  "name" text,
  "position" text,
  "number" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number has 2008 as the season?`:
```sql
                SELECT "number" FROM "b" WHERE "season"='2008';
```
## Task
Generate a SQL query to answer the following question:
`What name has 8 as the number?`

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

CREATE TABLE "b" (
  "name" text,
  "position" text,
  "number" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has 8 as the number?`:
```sql
                SELECT "name" FROM "b" WHERE "number"='8';
```
## Task
Generate a SQL query to answer the following question:
`What position has ronjay buenafe as the name?`

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

CREATE TABLE "b" (
  "name" text,
  "position" text,
  "number" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has ronjay buenafe as the name?`:
```sql
                SELECT "position" FROM "b" WHERE "name"='ronjay buenafe';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest long with 26 yards?`

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

CREATE TABLE "rushing" (
  "player" text,
  "att" real,
  "yards" real,
  "avg" real,
  "long" real,
  "fum_l" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest long with 26 yards?`:
```sql
                SELECT MIN("long") FROM "rushing" WHERE "yards"=26;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest average when Fuml was 0?`

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

CREATE TABLE "rushing" (
  "player" text,
  "att" real,
  "yards" real,
  "avg" real,
  "long" real,
  "fum_l" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest average when Fuml was 0?`:
```sql
                SELECT MAX("avg") FROM "rushing" WHERE "fum_l"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest run currently since the last title in 2010, and a season in Esiliiga larger than 10?`

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

CREATE TABLE "esiliiga" (
  "club" text,
  "2012" text,
  "seasons_in_esiliiga" real,
  "current_run_since" real,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest run currently since the last title in 2010, and a season in Esiliiga larger than 10?`:
```sql
                SELECT MAX("current_run_since") FROM "esiliiga" WHERE "last_title"='2010' AND "seasons_in_esiliiga">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2012 season in Esiliiga more than 4, and more than 0 titles?`

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

CREATE TABLE "esiliiga" (
  "club" text,
  "2012" text,
  "seasons_in_esiliiga" real,
  "current_run_since" real,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2012 season in Esiliiga more than 4, and more than 0 titles?`:
```sql
                SELECT "2012" FROM "esiliiga" WHERE "seasons_in_esiliiga">4 AND "titles">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the population on average with a per capita of 1,158, and a 2011 GDP less than 6,199?`

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

CREATE TABLE "economic_data" (
  "country" text,
  "population" real,
  "gdp_2011_in_millions_usd" real,
  "gdp_2012_in_millions_usd" real,
  "per_capita" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population on average with a per capita of 1,158, and a 2011 GDP less than 6,199?`:
```sql
                SELECT AVG("population") FROM "economic_data" WHERE "per_capita"='1,158' AND "gdp_2011_in_millions_usd"<'6,199';
```
## Task
Generate a SQL query to answer the following question:
`What 20-29 was in season 2008?`

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

CREATE TABLE "career_stats" (
  "season" text,
  "pat_pct" text,
  "20_29" text,
  "30_39" text,
  "40_49" text,
  "fg_fga" text,
  "fg_pct" text,
  "long" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What 20-29 was in season 2008?`:
```sql
                SELECT "20_29" FROM "career_stats" WHERE "season"='2008';
```
## Task
Generate a SQL query to answer the following question:
`What were the lowest amount of points for season 1994?`

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

CREATE TABLE "career_stats" (
  "season" text,
  "pat_pct" text,
  "20_29" text,
  "30_39" text,
  "40_49" text,
  "fg_fga" text,
  "fg_pct" text,
  "long" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the lowest amount of points for season 1994?`:
```sql
                SELECT MIN("points") FROM "career_stats" WHERE "season"='1994';
```
## Task
Generate a SQL query to answer the following question:
`Which 20-29 had a season of 1997?`

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

CREATE TABLE "career_stats" (
  "season" text,
  "pat_pct" text,
  "20_29" text,
  "30_39" text,
  "40_49" text,
  "fg_fga" text,
  "fg_pct" text,
  "long" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 20-29 had a season of 1997?`:
```sql
                SELECT "20_29" FROM "career_stats" WHERE "season"='1997';
```
## Task
Generate a SQL query to answer the following question:
`What is the Postion, when the Name is Rod Paavola?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "birthdate" text,
  "birthplace" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Postion, when the Name is Rod Paavola?`:
```sql
                SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='rod paavola';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "birthdate" text,
  "birthplace" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?`:
```sql
                SELECT COUNT("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='w' AND "birthdate"='17 october 1932';
```
## Task
Generate a SQL query to answer the following question:
`What is the Birthplace, when the Name is Bob Mcvey?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "birthdate" text,
  "birthplace" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Birthplace, when the Name is Bob Mcvey?`:
```sql
                SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='bob mcvey';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name, when the Position is W, and when the Jersey # is 11?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "birthdate" text,
  "birthplace" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name, when the Position is W, and when the Jersey # is 11?`:
```sql
                SELECT "name" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='w' AND "jersey_num"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the Postion, when the Club/Team is Warroad Lakers, and when the Name is Roger Christian?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "birthdate" text,
  "birthplace" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Postion, when the Club/Team is Warroad Lakers, and when the Name is Roger Christian?`:
```sql
                SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "club_team"='warroad lakers' AND "name"='roger christian';
```
## Task
Generate a SQL query to answer the following question:
`What home has 122-28 as the score?`

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

CREATE TABLE "round_twelve" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home has 122-28 as the score?`:
```sql
                SELECT "home" FROM "round_twelve" WHERE "score"='122-28';
```
## Task
Generate a SQL query to answer the following question:
`What ground has etobicoke kangaroos as the home?`

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

CREATE TABLE "round_twelve" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ground has etobicoke kangaroos as the home?`:
```sql
                SELECT "ground" FROM "round_twelve" WHERE "home"='etobicoke kangaroos';
```
## Task
Generate a SQL query to answer the following question:
`What time has humber college north as the ground, and toronto downtown dingos as the home?`

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

CREATE TABLE "round_twelve" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time has humber college north as the ground, and toronto downtown dingos as the home?`:
```sql
                SELECT "time" FROM "round_twelve" WHERE "ground"='humber college north' AND "home"='toronto downtown dingos';
```
## Task
Generate a SQL query to answer the following question:
`What score has Toronto Eagles as the home?`

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

CREATE TABLE "round_twelve" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has Toronto Eagles as the home?`:
```sql
                SELECT "score" FROM "round_twelve" WHERE "home"='toronto eagles';
```
## Task
Generate a SQL query to answer the following question:
`What date has high park demons as the away?`

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

CREATE TABLE "round_twelve" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has high park demons as the away?`:
```sql
                SELECT "date" FROM "round_twelve" WHERE "away"='high park demons';
```
## Task
Generate a SQL query to answer the following question:
`What away has toronto downtown dingos as the home?`

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

CREATE TABLE "round_twelve" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away has toronto downtown dingos as the home?`:
```sql
                SELECT "away" FROM "round_twelve" WHERE "home"='toronto downtown dingos';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner from the Rip Curl Pro Search?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner from the Rip Curl Pro Search?`:
```sql
                SELECT "winner" FROM "tournaments" WHERE "event"='rip curl pro search';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the tournament held in Spain?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the tournament held in Spain?`:
```sql
                SELECT "location" FROM "tournaments" WHERE "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the tournament held in Indonesia?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the tournament held in Indonesia?`:
```sql
                SELECT "date" FROM "tournaments" WHERE "country"='indonesia';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Lost when the difference is - 3, and a Played is less than 10?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Lost when the difference is - 3, and a Played is less than 10?`:
```sql
                SELECT AVG("lost") FROM "campeonato_paulista" WHERE "difference"='- 3' AND "played"<10;
```
## Task
Generate a SQL query to answer the following question:
`What is the Position when the Drawn is less than 2, with a Difference of 2?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Position when the Drawn is less than 2, with a Difference of 2?`:
```sql
                SELECT "position" FROM "campeonato_paulista" WHERE "drawn"<2 AND "difference"='2';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Against when the drawn is less than 2, the position is more than 8, and the lost is more than 6.`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Against when the drawn is less than 2, the position is more than 8, and the lost is more than 6.`:
```sql
                SELECT SUM("against") FROM "campeonato_paulista" WHERE "drawn"<2 AND "position">8 AND "lost">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the Difference with a position of less than 3, and, 17 points.`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Difference with a position of less than 3, and, 17 points.`:
```sql
                SELECT "difference" FROM "campeonato_paulista" WHERE "position"<3 AND "points"=17;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?`:
```sql
                SELECT AVG("top_5") FROM "summary" WHERE "tournament"='u.s. open' AND "cuts_made">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?`:
```sql
                SELECT SUM("events") FROM "summary" WHERE "top_10"=7 AND "top_5">4;
```