cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What tournament had a runner(s)-up of Scott Hoch & Kenny Perry?`

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

CREATE TABLE "champions_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had a runner(s)-up of Scott Hoch & Kenny Perry?`:
```sql
                SELECT "tournament" FROM "champions_tour_wins_8" WHERE "runner_s_up"='scott hoch & kenny perry';
```
## Task
Generate a SQL query to answer the following question:
`What tournament had a Runner(s)-up of Tom Kite?`

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

CREATE TABLE "champions_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had a Runner(s)-up of Tom Kite?`:
```sql
                SELECT "tournament" FROM "champions_tour_wins_8" WHERE "runner_s_up"='tom kite';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the Outback Steakhouse Pro-Am Tournament?`

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

CREATE TABLE "champions_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the Outback Steakhouse Pro-Am Tournament?`:
```sql
                SELECT "date" FROM "champions_tour_wins_8" WHERE "tournament"='outback steakhouse pro-am';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament has a Runner(s)-up of Gary McCord?`

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

CREATE TABLE "champions_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament has a Runner(s)-up of Gary McCord?`:
```sql
                SELECT "tournament" FROM "champions_tour_wins_8" WHERE "runner_s_up"='gary mccord';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the game with a score of 2:3?`

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

CREATE TABLE "2011_fixtures_and_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "home_team" text,
  "score" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the game with a score of 2:3?`:
```sql
                SELECT "location" FROM "2011_fixtures_and_results" WHERE "score"='2:3';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the home game for Slovakia?`

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

CREATE TABLE "2011_fixtures_and_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "home_team" text,
  "score" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the home game for Slovakia?`:
```sql
                SELECT "location" FROM "2011_fixtures_and_results" WHERE "home_team"='slovakia';
```
## Task
Generate a SQL query to answer the following question:
`What was the tournament where Japan was the home team and Mexico was the away team?`

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

CREATE TABLE "2011_fixtures_and_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "home_team" text,
  "score" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tournament where Japan was the home team and Mexico was the away team?`:
```sql
                SELECT "tournament" FROM "2011_fixtures_and_results" WHERE "away_team"='mexico' AND "home_team"='japan';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the home game for Japan?`

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

CREATE TABLE "2011_fixtures_and_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "home_team" text,
  "score" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the home game for Japan?`:
```sql
                SELECT "location" FROM "2011_fixtures_and_results" WHERE "home_team"='japan';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Runner-up in Hossegor?`

### 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 Runner-up in Hossegor?`:
```sql
                SELECT "runner_up" FROM "tournaments" WHERE "location"='hossegor';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the Tournament in Gold Coast?`

### 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 `On what Date was the Tournament in Gold Coast?`:
```sql
                SELECT "date" FROM "tournaments" WHERE "location"='gold coast';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Winner of the French Polynesia Billabong Pro Event?`

### 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 of the French Polynesia Billabong Pro Event?`:
```sql
                SELECT "winner" FROM "tournaments" WHERE "event"='billabong pro' AND "country"='french polynesia';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2010 when 2007 is a and 2004 is 2r?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2010 when 2007 is a and 2004 is 2r?`:
```sql
                SELECT "2010" FROM "doubles_performance_timeline" WHERE "2007"='a' AND "2004"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2005 when the 2008 shows grand slam tournaments?`

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

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

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

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

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2010 when 2005 shows 1r?`:
```sql
                SELECT "2010" FROM "doubles_performance_timeline" WHERE "2005"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of draws with more than 15 points, an against of 19, and less than 3 losses?`

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

CREATE TABLE "laf_s_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 highest number of draws with more than 15 points, an against of 19, and less than 3 losses?`:
```sql
                SELECT MAX("drawn") FROM "laf_s_campeonato_paulista" WHERE "points">15 AND "against"=19 AND "lost"<3;
```
## Task
Generate a SQL query to answer the following question:
`What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification?`

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

CREATE TABLE "jersey_progress" (
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification?`:
```sql
                SELECT "stage_winner" FROM "jersey_progress" WHERE "general_classification"='thor hushovd' AND "young_rider_classification"='trent lowe';
```
## Task
Generate a SQL query to answer the following question:
`What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification?`

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

CREATE TABLE "jersey_progress" (
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification?`:
```sql
                SELECT "stage_winner" FROM "jersey_progress" WHERE "team_classification"='quick step' AND "young_rider_classification"='trent lowe';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2000-2001 Team with a Jersey # that is 19?`

### 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,
  "2000_2001_team" text,
  "nhl_rights" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2000-2001 Team with a Jersey # that is 19?`:
```sql
                SELECT "2000_2001_team" FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"=19;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of ties for years with more than 19 wins?`

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

CREATE TABLE "performance_summary_in_indian_premier_le" (
  "year" text,
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "tied" real,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of ties for years with more than 19 wins?`:
```sql
                SELECT AVG("tied") FROM "performance_summary_in_indian_premier_le" WHERE "wins">19;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses for years with fewer than 9 wins?`

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

CREATE TABLE "performance_summary_in_indian_premier_le" (
  "year" text,
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "tied" real,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses for years with fewer than 9 wins?`:
```sql
                SELECT COUNT("losses") FROM "performance_summary_in_indian_premier_le" WHERE "wins"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9?`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9?`:
```sql
                SELECT COUNT("division") FROM "career_statistics" WHERE "team"='chongqing lifan' AND "apps">9;
```
## Task
Generate a SQL query to answer the following question:
`What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2?`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2?`:
```sql
                SELECT "season" FROM "career_statistics" WHERE "country"='china' AND "team"='dalian shide' AND "apps">8 AND "goals"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Apps, when Goals are greater than 5?`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Apps, when Goals are greater than 5?`:
```sql
                SELECT MAX("apps") FROM "career_statistics" WHERE "goals">5;
```
## Task
Generate a SQL query to answer the following question:
`What Season, when Country is China, when Team is Dalian Shide, and when Goals are 0?`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Season, when Country is China, when Team is Dalian Shide, and when Goals are 0?`:
```sql
                SELECT "season" FROM "career_statistics" WHERE "country"='china' AND "team"='dalian shide' AND "goals"=0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008?`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008?`:
```sql
                SELECT COUNT("division") FROM "career_statistics" WHERE "country"='china' AND "apps">9 AND "season"='2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007?`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007?`:
```sql
                SELECT MIN("division") FROM "career_statistics" WHERE "goals"<10 AND "team"='dalian shide' AND "apps"<17 AND "season"='2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?`

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

CREATE TABLE "by_area" (
  "rank" real,
  "province" text,
  "population" real,
  "area" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?`:
```sql
                SELECT MIN("area") FROM "by_area" WHERE "density">234.77 AND "rank"=32 AND "population"<'965,040';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank when the population is greater than 59,544 and the area is 1,395.5?`

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

CREATE TABLE "by_area" (
  "rank" real,
  "province" text,
  "population" real,
  "area" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank when the population is greater than 59,544 and the area is 1,395.5?`:
```sql
                SELECT MIN("rank") FROM "by_area" WHERE "population">'59,544' AND "area"='1,395.5';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest population total in La Romana when the area is less than 1,788.4, the density is greater than 234.77, and a rank greater than 30`

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

CREATE TABLE "by_area" (
  "rank" real,
  "province" text,
  "population" real,
  "area" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest population total in La Romana when the area is less than 1,788.4, the density is greater than 234.77, and a rank greater than 30`:
```sql
                SELECT MIN("population") FROM "by_area" WHERE "area"<'1,788.4' AND "density">234.77 AND "province"='la romana' AND "rank">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the Home with a Time that is 14:00?`

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

CREATE TABLE "round_eight" (
  "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 is the Home with a Time that is 14:00?`:
```sql
                SELECT "home" FROM "round_eight" WHERE "time"='14:00';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score with an Away that is high park demons?`

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

CREATE TABLE "round_eight" (
  "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 is the Score with an Away that is high park demons?`:
```sql
                SELECT "score" FROM "round_eight" WHERE "away"='high park demons';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score with a Hoe that is etobicoke kangaroos?`

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

CREATE TABLE "round_eight" (
  "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 is the Score with a Hoe that is etobicoke kangaroos?`:
```sql
                SELECT "score" FROM "round_eight" WHERE "home"='etobicoke kangaroos';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date with a Score that is 46-77?`

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

CREATE TABLE "round_eight" (
  "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 is the Date with a Score that is 46-77?`:
```sql
                SELECT "date" FROM "round_eight" WHERE "score"='46-77';
```
## Task
Generate a SQL query to answer the following question:
`Which Pavilion depth has a Crown angle of 34.0–34.7°?`

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

CREATE TABLE "proportions" (
  "benchmark" text,
  "crown_height" text,
  "pavilion_depth" text,
  "table_diameter" text,
  "girdle_thickness" text,
  "crown_angle" text,
  "pavilion_angle" text,
  "brilliance_grade" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pavilion depth has a Crown angle of 34.0–34.7°?`:
```sql
                SELECT "pavilion_depth" FROM "proportions" WHERE "crown_angle"='34.0–34.7°';
```
## Task
Generate a SQL query to answer the following question:
`Which Brilliance Grade has a Benchmark of practical fine cut?`

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

CREATE TABLE "proportions" (
  "benchmark" text,
  "crown_height" text,
  "pavilion_depth" text,
  "table_diameter" text,
  "girdle_thickness" text,
  "crown_angle" text,
  "pavilion_angle" text,
  "brilliance_grade" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Brilliance Grade has a Benchmark of practical fine cut?`:
```sql
                SELECT "brilliance_grade" FROM "proportions" WHERE "benchmark"='practical fine cut';
```
## Task
Generate a SQL query to answer the following question:
`Which Table diameter has a Crown height of 14.45%?`

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

CREATE TABLE "proportions" (
  "benchmark" text,
  "crown_height" text,
  "pavilion_depth" text,
  "table_diameter" text,
  "girdle_thickness" text,
  "crown_angle" text,
  "pavilion_angle" text,
  "brilliance_grade" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Table diameter has a Crown height of 14.45%?`:
```sql
                SELECT "table_diameter" FROM "proportions" WHERE "crown_height"='14.45%';
```
## Task
Generate a SQL query to answer the following question:
`Which Brilliance Grade has a Crown angle of 41.1°?`

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

CREATE TABLE "proportions" (
  "benchmark" text,
  "crown_height" text,
  "pavilion_depth" text,
  "table_diameter" text,
  "girdle_thickness" text,
  "crown_angle" text,
  "pavilion_angle" text,
  "brilliance_grade" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Brilliance Grade has a Crown angle of 41.1°?`:
```sql
                SELECT "brilliance_grade" FROM "proportions" WHERE "crown_angle"='41.1°';
```
## Task
Generate a SQL query to answer the following question:
`Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?`

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

CREATE TABLE "proportions" (
  "benchmark" text,
  "crown_height" text,
  "pavilion_depth" text,
  "table_diameter" text,
  "girdle_thickness" text,
  "crown_angle" text,
  "pavilion_angle" text,
  "brilliance_grade" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?`:
```sql
                SELECT "pavilion_depth" FROM "proportions" WHERE "brilliance_grade"='100%' AND "pavilion_angle"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of lost with 2 points?`

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

CREATE TABLE "north_group" (
  "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 number of lost with 2 points?`:
```sql
                SELECT COUNT("lost") FROM "north_group" WHERE "points"=2;
```
## Task
Generate a SQL query to answer the following question:
`What was the aggregate for the match with a team 2 of Kenya?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the aggregate for the match with a team 2 of Kenya?`:
```sql
                SELECT "agg" FROM "preliminary_round" WHERE "team_2"='kenya';
```
## Task
Generate a SQL query to answer the following question:
`What was the aggregate for the match with Sierra Leone as team 1?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the aggregate for the match with Sierra Leone as team 1?`:
```sql
                SELECT "agg" FROM "preliminary_round" WHERE "team_1"='sierra leone';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st leg score for the match with Lesotho as team 1?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1st leg score for the match with Lesotho as team 1?`:
```sql
                SELECT "1st_leg" FROM "preliminary_round" WHERE "team_1"='lesotho';
```
## Task
Generate a SQL query to answer the following question:
`What was the 2nd leg score for the match with Lesotho as team 1?`

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

CREATE TABLE "preliminary_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2nd leg score for the match with Lesotho as team 1?`:
```sql
                SELECT "2nd_leg" FROM "preliminary_round" WHERE "team_1"='lesotho';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of ladies ranked who had less than 3 silvers, less than 2 total medals, and more than 0 bronze medals?`

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

CREATE TABLE "ladies" (
  "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 total number of ladies ranked who had less than 3 silvers, less than 2 total medals, and more than 0 bronze medals?`:
```sql
                SELECT COUNT("rank") FROM "ladies" WHERE "silver"<3 AND "total"<2 AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?`

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

CREATE TABLE "ladies" (
  "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 total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?`:
```sql
                SELECT COUNT("gold") FROM "ladies" WHERE "bronze"<3 AND "rank"<11 AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What was Matthew Warchus' Award?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Matthew Warchus' Award?`:
```sql
                SELECT "award" FROM "original_broadway_production" WHERE "nominee"='matthew warchus';
```
## Task
Generate a SQL query to answer the following question:
`What is the Format of the French Frequency with a Call sign of CKRL-FM?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "format" text,
  "owner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Format of the French Frequency with a Call sign of CKRL-FM?`:
```sql
                SELECT "format" FROM "radio" WHERE "notes"='french' AND "call_sign"='ckrl-fm';
```
## Task
Generate a SQL query to answer the following question:
`What is the Format of the Frequency owned by Laval University?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "format" text,
  "owner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Format of the Frequency owned by Laval University?`:
```sql
                SELECT "format" FROM "radio" WHERE "owner"='laval university';
```
## Task
Generate a SQL query to answer the following question:
`What is the Notes of the Frequency with Format of talk radio?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "format" text,
  "owner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Notes of the Frequency with Format of talk radio?`:
```sql
                SELECT "notes" FROM "radio" WHERE "format"='talk radio';
```
## Task
Generate a SQL query to answer the following question:
`What is the Notes of the Frequency with a Format of soft adult contemporary?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "format" text,
  "owner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Notes of the Frequency with a Format of soft adult contemporary?`:
```sql
                SELECT "notes" FROM "radio" WHERE "format"='soft adult contemporary';
```
## Task
Generate a SQL query to answer the following question:
`How many chart runs had a debut position of more than 7 when peak position was 11?`

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

CREATE TABLE "taiwan" (
  "chart" text,
  "single_title" text,
  "debut_position" real,
  "peak_position" real,
  "chart_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many chart runs had a debut position of more than 7 when peak position was 11?`:
```sql
                SELECT COUNT("chart_run") FROM "taiwan" WHERE "debut_position">7 AND "peak_position"=11;
```
## Task
Generate a SQL query to answer the following question:
`Which Spoofed title had Mort Drucker as the artist in issue 88?`

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

CREATE TABLE "1960s" (
  "spoofed_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Spoofed title had Mort Drucker as the artist in issue 88?`:
```sql
                SELECT "spoofed_title" FROM "1960s" WHERE "artist"='mort drucker' AND "issue"=88;
```
## Task
Generate a SQL query to answer the following question:
`Who was the artist for Spoofed title Genteel Ben in an issue later than 74?`

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

CREATE TABLE "1960s" (
  "spoofed_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the artist for Spoofed title Genteel Ben in an issue later than 74?`:
```sql
                SELECT "artist" FROM "1960s" WHERE "issue">74 AND "spoofed_title"='genteel ben';
```
## Task
Generate a SQL query to answer the following question:
`Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?`

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

CREATE TABLE "1960s" (
  "spoofed_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?`:
```sql
                SELECT SUM("issue") FROM "1960s" WHERE "artist"='mort drucker' AND "spoofed_title"='route 67';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest issue Arnie Kogen wrote for in December 1964?`

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

CREATE TABLE "1960s" (
  "spoofed_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest issue Arnie Kogen wrote for in December 1964?`:
```sql
                SELECT MIN("issue") FROM "1960s" WHERE "writer"='arnie kogen' AND "date"='december 1964';
```
## Task
Generate a SQL query to answer the following question:
`What are the highest points that have a difference of 8, with a position less than 4?`

### 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 are the highest points that have a difference of 8, with a position less than 4?`:
```sql
                SELECT MAX("points") FROM "campeonato_paulista" WHERE "difference"='8' AND "position"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many losses have corinthians as the team, with an against greater than 26?`

### 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 `How many losses have corinthians as the team, with an against greater than 26?`:
```sql
                SELECT SUM("lost") FROM "campeonato_paulista" WHERE "team"='corinthians' AND "against">26;
```
## Task
Generate a SQL query to answer the following question:
`How many points have a difference of 23, with a drawn less than 5?`

### 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 `How many points have a difference of 23, with a drawn less than 5?`:
```sql
                SELECT COUNT("points") FROM "campeonato_paulista" WHERE "difference"='23' AND "drawn"<5;
```
## Task
Generate a SQL query to answer the following question:
`How many positions have 15 for the points, with a drawn less than 3?`

### 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 `How many positions have 15 for the points, with a drawn less than 3?`:
```sql
                SELECT SUM("position") FROM "campeonato_paulista" WHERE "points"=15 AND "drawn"<3;
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the match held when his record was 7-0-0?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the match held when his record was 7-0-0?`:
```sql
                SELECT "result" FROM "kickboxing_record" WHERE "record"='7-0-0';
```
## Task
Generate a SQL query to answer the following question:
`What do the notes say for 1989 May 7?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What do the notes say for 1989 May 7?`:
```sql
                SELECT "notes" FROM "kickboxing_record" WHERE "date"='1989 may 7';
```
## Task
Generate a SQL query to answer the following question:
`How did he beat Alberto Rodriguez?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did he beat Alberto Rodriguez?`:
```sql
                SELECT "method" FROM "kickboxing_record" WHERE "opponent"='alberto rodriguez';
```
## Task
Generate a SQL query to answer the following question:
`What was his record in 1987?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was his record in 1987?`:
```sql
                SELECT "record" FROM "kickboxing_record" WHERE "date"='1987';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total that has barbados as the nation with a bronze greater than 0?`

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

CREATE TABLE "all_time_medal_table" (
  "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 that has barbados as the nation with a bronze greater than 0?`:
```sql
                SELECT MIN("total") FROM "all_time_medal_table" WHERE "nation"='barbados' AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?`

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

CREATE TABLE "all_time_medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?`:
```sql
                SELECT COUNT("silver") FROM "all_time_medal_table" WHERE "gold">2 AND "bronze"<35 AND "nation"='china' AND "total">26;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest total that has a gold less than 0?`

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

CREATE TABLE "all_time_medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest total that has a gold less than 0?`:
```sql
                SELECT MAX("total") FROM "all_time_medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?`

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

CREATE TABLE "all_time_medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?`:
```sql
                SELECT COUNT("gold") FROM "all_time_medal_table" WHERE "silver">1 AND "nation"='vietnam' AND "bronze"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which Wins has a Country of new zealand and a Last title larger than 1968?`

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

CREATE TABLE "champions_by_nationality" (
  "rank" text,
  "country" text,
  "wins" real,
  "winners" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins has a Country of new zealand and a Last title larger than 1968?`:
```sql
                SELECT MIN("wins") FROM "champions_by_nationality" WHERE "country"='new zealand' AND "last_title">1968;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji?`

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

CREATE TABLE "champions_by_nationality" (
  "rank" text,
  "country" text,
  "wins" real,
  "winners" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji?`:
```sql
                SELECT COUNT("last_title") FROM "champions_by_nationality" WHERE "wins"<71 AND "first_title">1968 AND "country"='fiji';
```
## Task
Generate a SQL query to answer the following question:
`Which First title has Wins smaller than 8 and in Canada?`

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

CREATE TABLE "champions_by_nationality" (
  "rank" text,
  "country" text,
  "wins" real,
  "winners" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which First title has Wins smaller than 8 and in Canada?`:
```sql
                SELECT COUNT("first_title") FROM "champions_by_nationality" WHERE "wins"<8 AND "country"='canada';
```
## Task
Generate a SQL query to answer the following question:
`How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004?`

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

CREATE TABLE "champions_by_nationality" (
  "rank" text,
  "country" text,
  "wins" real,
  "winners" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004?`:
```sql
                SELECT AVG("winners") FROM "champions_by_nationality" WHERE "wins"=1 AND "country"='fiji' AND "first_title"<2004;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest opened year of the team in Glasgow, Scotland?`

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

CREATE TABLE "stadiums" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "opened" real,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest opened year of the team in Glasgow, Scotland?`:
```sql
                SELECT MAX("opened") FROM "stadiums" WHERE "city"='glasgow, scotland';
```
## Task
Generate a SQL query to answer the following question:
`What is the average opened year of Mini Estadi stadium in Barcelona, Spain?`

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

CREATE TABLE "stadiums" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "opened" real,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average opened year of Mini Estadi stadium in Barcelona, Spain?`:
```sql
                SELECT AVG("opened") FROM "stadiums" WHERE "city"='barcelona, spain' AND "stadium"='mini estadi';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for?`

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

CREATE TABLE "season_by_season_results" (
  "season" text,
  "league" text,
  "games" real,
  "lost" real,
  "tied" real,
  "points" real,
  "winning_pct" real,
  "goals_for" real,
  "goals_against" real,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for?`:
```sql
                SELECT MIN("winning_pct") FROM "season_by_season_results" WHERE "lost">23 AND "goals_for">386;
```