cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?`

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

CREATE TABLE "ethnicities_by_region" (
  "state" text,
  "white_pct" real,
  "brown_pct" real,
  "black_pct" real,
  "asian_or_amerindian_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?`:
```sql
                SELECT SUM("asian_or_amerindian_pct") FROM "ethnicities_by_region" WHERE "state"='sergipe' AND "brown_pct">'61,3';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of White (%), when Brown (%) is less than 54,6, when Asian or Amerindian (%) is greater than 1,3, and when Black (%) is less than 5,3?`

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

CREATE TABLE "ethnicities_by_region" (
  "state" text,
  "white_pct" real,
  "brown_pct" real,
  "black_pct" real,
  "asian_or_amerindian_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of White (%), when Brown (%) is less than 54,6, when Asian or Amerindian (%) is greater than 1,3, and when Black (%) is less than 5,3?`:
```sql
                SELECT COUNT("white_pct") FROM "ethnicities_by_region" WHERE "brown_pct"<'54,6' AND "asian_or_amerindian_pct">'1,3' AND "black_pct"<'5,3';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Asian or Amerindian (%), when Black (%) is 9,7, and when White (%) is greater than 45,7?`

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

CREATE TABLE "ethnicities_by_region" (
  "state" text,
  "white_pct" real,
  "brown_pct" real,
  "black_pct" real,
  "asian_or_amerindian_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Asian or Amerindian (%), when Black (%) is 9,7, and when White (%) is greater than 45,7?`:
```sql
                SELECT SUM("asian_or_amerindian_pct") FROM "ethnicities_by_region" WHERE "black_pct"='9,7' AND "white_pct">'45,7';
```
## Task
Generate a SQL query to answer the following question:
`How many points were there when there more than 6 losses and less than 14 matches?`

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

CREATE TABLE "first_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were there when there more than 6 losses and less than 14 matches?`:
```sql
                SELECT COUNT("points") FROM "first_league" WHERE "lost">6 AND "match"<14;
```
## Task
Generate a SQL query to answer the following question:
`How few losses were the least number of losses and points higher than 23?`

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

CREATE TABLE "first_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `How few losses were the least number of losses and points higher than 23?`:
```sql
                SELECT MIN("lost") FROM "first_league" WHERE "points">23;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of matches with more than 18 points and more than 1 draw?`

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

CREATE TABLE "first_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of matches with more than 18 points and more than 1 draw?`:
```sql
                SELECT MAX("match") FROM "first_league" WHERE "points">18 AND "draw">1;
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion in the game played at the St. Andrews Links with Dick Chapman as the runner-up?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "champion" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion in the game played at the St. Andrews Links with Dick Chapman as the runner-up?`:
```sql
                SELECT "champion" FROM "winners" WHERE "runner_up"='dick chapman' AND "venue"='st. andrews links';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the match won by Willie Hunter at the Royal Liverpool Golf Club?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "champion" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match won by Willie Hunter at the Royal Liverpool Golf Club?`:
```sql
                SELECT "score" FROM "winners" WHERE "venue"='royal liverpool golf club' AND "champion"='willie hunter';
```
## Task
Generate a SQL query to answer the following question:
`What player from England was the runner-up at the match played at the Royal Porthcawl Golf Club?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "champion" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player from England was the runner-up at the match played at the Royal Porthcawl Golf Club?`:
```sql
                SELECT "runner_up" FROM "winners" WHERE "country"='england' AND "venue"='royal porthcawl golf club';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion in the match where C.A. Palmer was the runner-up?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "champion" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion in the match where C.A. Palmer was the runner-up?`:
```sql
                SELECT "champion" FROM "winners" WHERE "runner_up"='c.a. palmer';
```
## Task
Generate a SQL query to answer the following question:
`What player was the champion in the match where E.A. Lassen was the runner-up?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "champion" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was the champion in the match where E.A. Lassen was the runner-up?`:
```sql
                SELECT "champion" FROM "winners" WHERE "runner_up"='e.a. lassen';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the match played in England where Peter McEvoy was the champion and Paul McKellar was runner-up?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "champion" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match played in England where Peter McEvoy was the champion and Paul McKellar was runner-up?`:
```sql
                SELECT "score" FROM "winners" WHERE "country"='england' AND "champion"='peter mcevoy' AND "runner_up"='paul mckellar';
```
## Task
Generate a SQL query to answer the following question:
`Which federal state has 6 representatives of national average?`

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

CREATE TABLE "federal_representation" (
  "federal_state" text,
  "number_of_members" real,
  "pct_of_total_members" text,
  "population_on_the_census_also_called_censo_2010" text,
  "pct_of_the_population_censo_2010" text,
  "representativeness_inhabitants_mr" text,
  "representatives_of_national_average" text,
  "deputies_required_ignoring_the_limits" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which federal state has 6 representatives of national average?`:
```sql
                SELECT "federal_state" FROM "federal_representation" WHERE "representatives_of_national_average"='6';
```
## Task
Generate a SQL query to answer the following question:
`According to the 2010 census, what was the population for the federal state that had less than -6 deputies required ignoring the limits?`

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

CREATE TABLE "federal_representation" (
  "federal_state" text,
  "number_of_members" real,
  "pct_of_total_members" text,
  "population_on_the_census_also_called_censo_2010" text,
  "pct_of_the_population_censo_2010" text,
  "representativeness_inhabitants_mr" text,
  "representatives_of_national_average" text,
  "deputies_required_ignoring_the_limits" real
);
### SQL
Given the database schema, here is the SQL query that answers `According to the 2010 census, what was the population for the federal state that had less than -6 deputies required ignoring the limits?`:
```sql
                SELECT "population_on_the_census_also_called_censo_2010" FROM "federal_representation" WHERE "deputies_required_ignoring_the_limits"<-6;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of blocks for players with height of 206 and more than 356 spikes?`

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

CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" (
  "name" text,
  "date_of_birth" text,
  "height" real,
  "weight" real,
  "spike" real,
  "block" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of blocks for players with height of 206 and more than 356 spikes?`:
```sql
                SELECT MIN("block") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "height"=206 AND "spike">356;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of weight values associated with 340 blocks and more than 353 spikes?`

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

CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" (
  "name" text,
  "date_of_birth" text,
  "height" real,
  "weight" real,
  "spike" real,
  "block" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of weight values associated with 340 blocks and more than 353 spikes?`:
```sql
                SELECT COUNT("weight") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "block"=340 AND "spike">353;
```
## Task
Generate a SQL query to answer the following question:
`What award did Forest Whitaker win in 1989?`

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

CREATE TABLE "men" (
  "year" real,
  "actor" text,
  "award" text,
  "motion_picture" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What award did Forest Whitaker win in 1989?`:
```sql
                SELECT "award" FROM "men" WHERE "actor"='forest whitaker' AND "year"=1989;
```
## Task
Generate a SQL query to answer the following question:
`For what motion picture did Samuel L. Jackson win the best supporting actor award before 1997?`

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

CREATE TABLE "men" (
  "year" real,
  "actor" text,
  "award" text,
  "motion_picture" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what motion picture did Samuel L. Jackson win the best supporting actor award before 1997?`:
```sql
                SELECT "motion_picture" FROM "men" WHERE "award"='best supporting actor' AND "actor"='samuel l. jackson' AND "year"<1997;
```
## Task
Generate a SQL query to answer the following question:
`Which actor won in 1966?`

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

CREATE TABLE "men" (
  "year" real,
  "actor" text,
  "award" text,
  "motion_picture" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which actor won in 1966?`:
```sql
                SELECT "actor" FROM "men" WHERE "year"=1966;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest population in millions that has inhabitants per MEP less than 414,538, and an influence of 2.06, and MEPs less than 13?`

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

CREATE TABLE "nice_system" (
  "member_state" text,
  "population_millions" real,
  "me_ps" real,
  "inhabitants_per_mep" real,
  "influence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest population in millions that has inhabitants per MEP less than 414,538, and an influence of 2.06, and MEPs less than 13?`:
```sql
                SELECT MIN("population_millions") FROM "nice_system" WHERE "inhabitants_per_mep"<'414,538' AND "influence"=2.06 AND "me_ps"<13;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP?`

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

CREATE TABLE "nice_system" (
  "member_state" text,
  "population_millions" real,
  "me_ps" real,
  "inhabitants_per_mep" real,
  "influence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP?`:
```sql
                SELECT MIN("influence") FROM "nice_system" WHERE "population_millions"<60.64 AND "me_ps"<22 AND "inhabitants_per_mep"='454,059';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest population in the millions that has an influence of 1.02?`

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

CREATE TABLE "nice_system" (
  "member_state" text,
  "population_millions" real,
  "me_ps" real,
  "inhabitants_per_mep" real,
  "influence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population in the millions that has an influence of 1.02?`:
```sql
                SELECT MAX("population_millions") FROM "nice_system" WHERE "influence"=1.02;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of MEPs that has 465,955 inhabitants per MEP and an influence smaller than 1.79?`

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

CREATE TABLE "nice_system" (
  "member_state" text,
  "population_millions" real,
  "me_ps" real,
  "inhabitants_per_mep" real,
  "influence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of MEPs that has 465,955 inhabitants per MEP and an influence smaller than 1.79?`:
```sql
                SELECT COUNT("me_ps") FROM "nice_system" WHERE "inhabitants_per_mep"='465,955' AND "influence"<1.79;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the population in millions that has an influence less than 2.91, a MEP smaller than 13, a member of Latvia, and more than 286,875 inhabitants per MEP?`

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

CREATE TABLE "nice_system" (
  "member_state" text,
  "population_millions" real,
  "me_ps" real,
  "inhabitants_per_mep" real,
  "influence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the population in millions that has an influence less than 2.91, a MEP smaller than 13, a member of Latvia, and more than 286,875 inhabitants per MEP?`:
```sql
                SELECT SUM("population_millions") FROM "nice_system" WHERE "influence"<2.91 AND "me_ps"<13 AND "member_state"='latvia' AND "inhabitants_per_mep">'286,875';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million?`

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

CREATE TABLE "nice_system" (
  "member_state" text,
  "population_millions" real,
  "me_ps" real,
  "inhabitants_per_mep" real,
  "influence" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million?`:
```sql
                SELECT MAX("inhabitants_per_mep") FROM "nice_system" WHERE "me_ps">50 AND "member_state"='germany' AND "population_millions"<82.43;
```
## Task
Generate a SQL query to answer the following question:
`Which World Rank has a Year smaller than 1977, and a Location of eugene?`

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

CREATE TABLE "200_meters" (
  "year" real,
  "result" real,
  "world_rank" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which World Rank has a Year smaller than 1977, and a Location of eugene?`:
```sql
                SELECT "world_rank" FROM "200_meters" WHERE "year"<1977 AND "location"='eugene';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest Year with a World Rank of 5th, with a Result greater than 20.31?`

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

CREATE TABLE "200_meters" (
  "year" real,
  "result" real,
  "world_rank" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest Year with a World Rank of 5th, with a Result greater than 20.31?`:
```sql
                SELECT MIN("year") FROM "200_meters" WHERE "world_rank"='5th' AND "result">20.31;
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Result smaller than 20.26, and a Location of eugene?`

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

CREATE TABLE "200_meters" (
  "year" real,
  "result" real,
  "world_rank" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Result smaller than 20.26, and a Location of eugene?`:
```sql
                SELECT SUM("year") FROM "200_meters" WHERE "result"<20.26 AND "location"='eugene';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result with a Location of brussels?`

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

CREATE TABLE "200_meters" (
  "year" real,
  "result" real,
  "world_rank" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result with a Location of brussels?`:
```sql
                SELECT COUNT("result") FROM "200_meters" WHERE "location"='brussels';
```
## Task
Generate a SQL query to answer the following question:
`What Year has a Result smaller than 20.31, and a World Rank of 5th?`

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

CREATE TABLE "200_meters" (
  "year" real,
  "result" real,
  "world_rank" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Year has a Result smaller than 20.31, and a World Rank of 5th?`:
```sql
                SELECT AVG("year") FROM "200_meters" WHERE "result"<20.31 AND "world_rank"='5th';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when the Nuggets are the home team?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the Nuggets are the home team?`:
```sql
                SELECT "record" FROM "january" WHERE "home"='nuggets';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points for Drivers that have raced in more than 16 Races?`

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

CREATE TABLE "gp3_series" (
  "year" real,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "fast_laps" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of points for Drivers that have raced in more than 16 Races?`:
```sql
                SELECT MIN("points") FROM "gp3_series" WHERE "races">16;
```
## Task
Generate a SQL query to answer the following question:
`What is the least number of Races for a Racer with less than 0 Points?`

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

CREATE TABLE "gp3_series" (
  "year" real,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "fast_laps" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of Races for a Racer with less than 0 Points?`:
```sql
                SELECT MIN("races") FROM "gp3_series" WHERE "points"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Year during which the Driver Adrian Quaife-Hobbs has fewer than 2 Poles, and 0 Fast laps?`

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

CREATE TABLE "gp3_series" (
  "year" real,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "fast_laps" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Year during which the Driver Adrian Quaife-Hobbs has fewer than 2 Poles, and 0 Fast laps?`:
```sql
                SELECT AVG("year") FROM "gp3_series" WHERE "poles"<2 AND "fast_laps"=0 AND "drivers"='adrian quaife-hobbs';
```
## Task
Generate a SQL query to answer the following question:
`Which city contains the KPIX station?`

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

CREATE TABLE "television_stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city contains the KPIX station?`:
```sql
                SELECT "city_of_license_market" FROM "television_stations" WHERE "station"='kpix';
```
## Task
Generate a SQL query to answer the following question:
`Which station has channel TV (DT) of 3 (26)?`

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

CREATE TABLE "television_stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which station has channel TV (DT) of 3 (26)?`:
```sql
                SELECT "station" FROM "television_stations" WHERE "channel_tv_dt"='3 (26)';
```
## Task
Generate a SQL query to answer the following question:
`What is the current affiliation when the years owned is between 1955–1995?`

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

CREATE TABLE "television_stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current affiliation when the years owned is between 1955–1995?`:
```sql
                SELECT "current_affiliation" FROM "television_stations" WHERE "years_owned"='1955–1995';
```
## Task
Generate a SQL query to answer the following question:
`What is the city containing the KDKA-TV station?`

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

CREATE TABLE "television_stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city containing the KDKA-TV station?`:
```sql
                SELECT "city_of_license_market" FROM "television_stations" WHERE "station"='kdka-tv';
```
## Task
Generate a SQL query to answer the following question:
`Which Channel TV is located in Baltimore?`

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

CREATE TABLE "television_stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Channel TV is located in Baltimore?`:
```sql
                SELECT "channel_tv_dt" FROM "television_stations" WHERE "city_of_license_market"='baltimore';
```
## Task
Generate a SQL query to answer the following question:
`What is the least number of goals scored in the play-offs among the players that have scored 2 in the FA Cup?`

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

CREATE TABLE "topscorers_in_order_of_league_goals" (
  "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 least number of goals scored in the play-offs among the players that have scored 2 in the FA Cup?`:
```sql
                SELECT MIN("play_offs") FROM "topscorers_in_order_of_league_goals" WHERE "fa_cup"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals scored in the FA Cup among players that have more than 20 total goals, less than 1 FA Trophy goals, and less than 25 league goals?`

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

CREATE TABLE "topscorers_in_order_of_league_goals" (
  "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 average number of goals scored in the FA Cup among players that have more than 20 total goals, less than 1 FA Trophy goals, and less than 25 league goals?`:
```sql
                SELECT AVG("fa_cup") FROM "topscorers_in_order_of_league_goals" WHERE "total">20 AND "fa_trophy"<1 AND "league"<25;
```
## Task
Generate a SQL query to answer the following question:
`What is the latitude and longitude for Surveyor 3?`

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

CREATE TABLE "u_s_unmanned_soft_landings_1966_1968" (
  "u_s_mission" text,
  "mass_kg" real,
  "booster" text,
  "launched" text,
  "mission_goal" text,
  "landing_zone" text,
  "lat_lon" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latitude and longitude for Surveyor 3?`:
```sql
                SELECT "lat_lon" FROM "u_s_unmanned_soft_landings_1966_1968" WHERE "u_s_mission"='surveyor 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest mass for Tycho Crater?`

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

CREATE TABLE "u_s_unmanned_soft_landings_1966_1968" (
  "u_s_mission" text,
  "mass_kg" real,
  "booster" text,
  "launched" text,
  "mission_goal" text,
  "landing_zone" text,
  "lat_lon" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest mass for Tycho Crater?`:
```sql
                SELECT MAX("mass_kg") FROM "u_s_unmanned_soft_landings_1966_1968" WHERE "landing_zone"='tycho crater';
```
## Task
Generate a SQL query to answer the following question:
`What Field was Commissioned in 1958, 2005?`

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

CREATE TABLE "list_of_geothermal_power_stations" (
  "name" text,
  "location" text,
  "field" text,
  "capacity_mw" real,
  "annual_generation_average_g_wh" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Field was Commissioned in 1958, 2005?`:
```sql
                SELECT "field" FROM "list_of_geothermal_power_stations" WHERE "commissioned"='1958, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the Annual Generation at Kawerau (Bope)?`

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

CREATE TABLE "list_of_geothermal_power_stations" (
  "name" text,
  "location" text,
  "field" text,
  "capacity_mw" real,
  "annual_generation_average_g_wh" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Annual Generation at Kawerau (Bope)?`:
```sql
                SELECT "annual_generation_average_g_wh" FROM "list_of_geothermal_power_stations" WHERE "name"='kawerau (bope)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the power station with a Capacity of 25 MW?`

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

CREATE TABLE "list_of_geothermal_power_stations" (
  "name" text,
  "location" text,
  "field" text,
  "capacity_mw" real,
  "annual_generation_average_g_wh" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the power station with a Capacity of 25 MW?`:
```sql
                SELECT "name" FROM "list_of_geothermal_power_stations" WHERE "capacity_mw"=25;
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the power station in the Field of Mokai?`

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

CREATE TABLE "list_of_geothermal_power_stations" (
  "name" text,
  "location" text,
  "field" text,
  "capacity_mw" real,
  "annual_generation_average_g_wh" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the power station in the Field of Mokai?`:
```sql
                SELECT "name" FROM "list_of_geothermal_power_stations" WHERE "field"='mokai';
```
## Task
Generate a SQL query to answer the following question:
`How many goals were scored in 2004 when the gp/gs was "did not play"?`

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

CREATE TABLE "national_team" (
  "year" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals were scored in 2004 when the gp/gs was "did not play"?`:
```sql
                SELECT "goals" FROM "national_team" WHERE "gp_gs"='did not play' AND "year"='2004';
```
## Task
Generate a SQL query to answer the following question:
`How many assists were there when the total points was 2?`

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

CREATE TABLE "national_team" (
  "year" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists were there when the total points was 2?`:
```sql
                SELECT "assists" FROM "national_team" WHERE "total_points"='2';
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of points when there were 7 assists?`

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

CREATE TABLE "national_team" (
  "year" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of points when there were 7 assists?`:
```sql
                SELECT "total_points" FROM "national_team" WHERE "assists"='7';
```
## Task
Generate a SQL query to answer the following question:
`What was the gp/gs when the assists was 1?`

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

CREATE TABLE "national_team" (
  "year" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the gp/gs when the assists was 1?`:
```sql
                SELECT "gp_gs" FROM "national_team" WHERE "assists"='1';
```
## Task
Generate a SQL query to answer the following question:
`what was the gp/gs in 2003 when the total points was "did not play"?`

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

CREATE TABLE "national_team" (
  "year" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the gp/gs in 2003 when the total points was "did not play"?`:
```sql
                SELECT "gp_gs" FROM "national_team" WHERE "total_points"='did not play' AND "year"='2003';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome for Jan Pisecky and his partner?`

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

CREATE TABLE "doubles_titles_17" (
  "outcome" text,
  "date" real,
  "tournament" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome for Jan Pisecky and his partner?`:
```sql
                SELECT "outcome" FROM "doubles_titles_17" WHERE "partner"='jan pisecky';
```
## Task
Generate a SQL query to answer the following question:
`What player weight 235?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player weight 235?`:
```sql
                SELECT "player" FROM "contestants" WHERE "weight"=235;
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the F who weighs less than 195?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the F who weighs less than 195?`:
```sql
                SELECT "height" FROM "contestants" WHERE "pos"='f' AND "weight"<195;
```
## Task
Generate a SQL query to answer the following question:
`What team does F Trey Gilder play for?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team does F Trey Gilder play for?`:
```sql
                SELECT "team" FROM "contestants" WHERE "pos"='f' AND "player"='trey gilder';
```
## Task
Generate a SQL query to answer the following question:
`What player plays for the Dakota Wizards?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player plays for the Dakota Wizards?`:
```sql
                SELECT "player" FROM "contestants" WHERE "team"='dakota wizards';
```
## Task
Generate a SQL query to answer the following question:
`Which player who weighs 210 plays for the Reno Bighorns?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player who weighs 210 plays for the Reno Bighorns?`:
```sql
                SELECT "player" FROM "contestants" WHERE "weight"=210 AND "team"='reno bighorns';
```
## Task
Generate a SQL query to answer the following question:
`What position does Brian Butch play?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Brian Butch play?`:
```sql
                SELECT "pos" FROM "contestants" WHERE "player"='brian butch';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Player of tyronn lue, and a Years in Orlando of 2003–2004?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Player of tyronn lue, and a Years in Orlando of 2003–2004?`:
```sql
                SELECT "position" FROM "l" WHERE "player"='tyronn lue' AND "years_in_orlando"='2003–2004';
```
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team has a Player of deandre liggins?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School/Club Team has a Player of deandre liggins?`:
```sql
                SELECT "school_club_team" FROM "l" WHERE "player"='deandre liggins';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Years in Orlando of 1997–1998?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Years in Orlando of 1997–1998?`:
```sql
                SELECT "position" FROM "l" WHERE "years_in_orlando"='1997–1998';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a School/Club Team of stanford?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a School/Club Team of stanford?`:
```sql
                SELECT "position" FROM "l" WHERE "school_club_team"='stanford';
```
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team has a Years in Orlando of 1997–1998?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School/Club Team has a Years in Orlando of 1997–1998?`:
```sql
                SELECT "school_club_team" FROM "l" WHERE "years_in_orlando"='1997–1998';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Years in Orlando of 2003–2004?`

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

CREATE TABLE "l" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Years in Orlando of 2003–2004?`:
```sql
                SELECT "position" FROM "l" WHERE "years_in_orlando"='2003–2004';
```
## Task
Generate a SQL query to answer the following question:
`What is the High assists with a Date that is february 27?`

### 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 february 27?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='february 27';
```
## Task
Generate a SQL query to answer the following question:
`What is the High points with a Game that is 56?`

### 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 points with a Game that is 56?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "game"=56;
```
## Task
Generate a SQL query to answer the following question:
`In what Distance has a Venue of sale?`

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

CREATE TABLE "2007_08_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Distance has a Venue of sale?`:
```sql
                SELECT "distance" FROM "2007_08_season_as_a_three_year_old" WHERE "venue"='sale';
```
## Task
Generate a SQL query to answer the following question:
`WHo is Winner/2nd that has c. symons?`

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

CREATE TABLE "2007_08_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHo is Winner/2nd that has c. symons?`:
```sql
                SELECT "winner_2nd" FROM "2007_08_season_as_a_three_year_old" WHERE "jockey"='c. symons';
```
## Task
Generate a SQL query to answer the following question:
`Which Race that Jockey of d. nikolic is in?`

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

CREATE TABLE "2007_08_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Race that Jockey of d. nikolic is in?`:
```sql
                SELECT "race" FROM "2007_08_season_as_a_three_year_old" WHERE "jockey"='d. nikolic';
```
## Task
Generate a SQL query to answer the following question:
`Name The Result that has a Distance of 1200m, and a Weight (kg) of 55.5?`

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

CREATE TABLE "2007_08_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name The Result that has a Distance of 1200m, and a Weight (kg) of 55.5?`:
```sql
                SELECT "result" FROM "2007_08_season_as_a_three_year_old" WHERE "distance"='1200m' AND "weight_kg"=55.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the previous team of the United States player who had 2 NBA years and played the F position?`

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

CREATE TABLE "selections" (
  "pos" text,
  "nationality" text,
  "previous_team" text,
  "nba_years_a" real,
  "career_with_the_franchise_b" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the previous team of the United States player who had 2 NBA years and played the F position?`:
```sql
                SELECT "previous_team" FROM "selections" WHERE "nationality"='united states' AND "nba_years_a"=2 AND "pos"='f';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Score of 108-107?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Score of 108-107?`:
```sql
                SELECT "team" FROM "playoffs" WHERE "score"='108-107';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Date of may 31?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Date of may 31?`:
```sql
                SELECT "record" FROM "playoffs" WHERE "date"='may 31';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Team of at phoenix, and a Score of 107-119?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Team of at phoenix, and a Score of 107-119?`:
```sql
                SELECT COUNT("game") FROM "playoffs" WHERE "team"='at phoenix' AND "score"='107-119';
```