cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many cuts made when the top-5 is greater than 1?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cuts made when the top-5 is greater than 1?`:
```sql
                SELECT AVG("cuts_made") FROM "summary" WHERE "top_5">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the best top-5 when top-10 is 1 and there are more than 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best top-5 when top-10 is 1 and there are more than 0 wins?`:
```sql
                SELECT MAX("top_5") FROM "summary" WHERE "top_10"=1 AND "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of cuts made when the top-5 is 0, top-10 is 1 and events are fewer than 12?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of cuts made when the top-5 is 0, top-10 is 1 and events are fewer than 12?`:
```sql
                SELECT AVG("cuts_made") FROM "summary" WHERE "top_5"=0 AND "top_10"=1 AND "events"<12;
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st leg for Team 2, Leeds United?`

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

CREATE TABLE "fourth_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 for Team 2, Leeds United?`:
```sql
                SELECT "1st_leg" FROM "fourth_round" WHERE "team_2"='leeds united';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st leg for Team 2, Slovan Liberec?`

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

CREATE TABLE "fourth_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 for Team 2, Slovan Liberec?`:
```sql
                SELECT "1st_leg" FROM "fourth_round" WHERE "team_2"='slovan liberec';
```
## Task
Generate a SQL query to answer the following question:
`Which Team 1, has Team 2, Slovan Liberec?`

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

CREATE TABLE "fourth_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 `Which Team 1, has Team 2, Slovan Liberec?`:
```sql
                SELECT "team_1" FROM "fourth_round" WHERE "team_2"='slovan liberec';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match with west bromwich albion as the home team?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match with west bromwich albion as the home team?`:
```sql
                SELECT "date" FROM "fifth_round_proper" WHERE "home_team"='west bromwich albion';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Apps of kairat after 2008 and a Level smaller than 1?`

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

CREATE TABLE "club_career_stats" (
  "season" real,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Apps of kairat after 2008 and a Level smaller than 1?`:
```sql
                SELECT MAX("apps") FROM "club_career_stats" WHERE "season">2008 AND "team"='kairat' AND "level"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total Level with 27 Apps after 2006?`

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

CREATE TABLE "club_career_stats" (
  "season" real,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total Level with 27 Apps after 2006?`:
```sql
                SELECT SUM("level") FROM "club_career_stats" WHERE "apps"=27 AND "season">2006;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Apps with more than 1 level?`

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

CREATE TABLE "club_career_stats" (
  "season" real,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Apps with more than 1 level?`:
```sql
                SELECT MIN("apps") FROM "club_career_stats" WHERE "level">1;
```
## Task
Generate a SQL query to answer the following question:
`what is the total levels in 2007?`

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

CREATE TABLE "club_career_stats" (
  "season" real,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total levels in 2007?`:
```sql
                SELECT SUM("level") FROM "club_career_stats" WHERE "season"=2007;
```
## Task
Generate a SQL query to answer the following question:
`How many times is the award ceremony laurence olivier award, result is won and the nominee is imelda staunton?`

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

CREATE TABLE "2012_london_revival" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the award ceremony laurence olivier award, result is won and the nominee is imelda staunton?`:
```sql
                SELECT COUNT("year") FROM "2012_london_revival" WHERE "award_ceremony"='laurence olivier award' AND "result"='won' AND "nominee"='imelda staunton';
```
## Task
Generate a SQL query to answer the following question:
`what is the result when the category is best sound design?`

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

CREATE TABLE "2012_london_revival" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the result when the category is best sound design?`:
```sql
                SELECT "result" FROM "2012_london_revival" WHERE "category"='best sound design';
```
## Task
Generate a SQL query to answer the following question:
`What's the total byes for more than 1 draw?`

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

CREATE TABLE "2007_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total byes for more than 1 draw?`:
```sql
                SELECT COUNT("byes") FROM "2007_ladder" WHERE "draws">1;
```
## Task
Generate a SQL query to answer the following question:
`What Hometown/School had a pick above 30, position of OF and team of Cleveland Indians?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "hometown_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Hometown/School had a pick above 30, position of OF and team of Cleveland Indians?`:
```sql
                SELECT "hometown_school" FROM "supplemental_first_round_selections" WHERE "pick">30 AND "position"='of' AND "team"='cleveland indians';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest pick for SS position?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "hometown_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest pick for SS position?`:
```sql
                SELECT MAX("pick") FROM "supplemental_first_round_selections" WHERE "position"='ss';
```
## Task
Generate a SQL query to answer the following question:
`What pick did the Minnesota Twins have?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "hometown_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick did the Minnesota Twins have?`:
```sql
                SELECT AVG("pick") FROM "supplemental_first_round_selections" WHERE "team"='minnesota twins';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Draws, when Losses is less than 2?`

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

CREATE TABLE "2006_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Draws, when Losses is less than 2?`:
```sql
                SELECT AVG("draws") FROM "2006_ladder" WHERE "losses"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?`

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

CREATE TABLE "2006_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?`:
```sql
                SELECT AVG("wins") FROM "2006_ladder" WHERE "against"<1786 AND "losses"<4 AND "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Class / Type is "Three masted full rigged ship"?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Class / Type is "Three masted full rigged ship"?`:
```sql
                SELECT "country" FROM "see_also" WHERE "class_type"='three masted full rigged ship';
```
## Task
Generate a SQL query to answer the following question:
`What is Builder, when Country is "United Kingdom", and when Location is "Chatham, Kent"?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Builder, when Country is "United Kingdom", and when Location is "Chatham, Kent"?`:
```sql
                SELECT "builder" FROM "see_also" WHERE "country"='united kingdom' AND "location"='chatham, kent';
```
## Task
Generate a SQL query to answer the following question:
`What is Builder, when Ship is "Arizona"?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Builder, when Ship is "Arizona"?`:
```sql
                SELECT "builder" FROM "see_also" WHERE "ship"='arizona';
```
## Task
Generate a SQL query to answer the following question:
`What is Location, when Class / Type is "Sloop"?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Location, when Class / Type is "Sloop"?`:
```sql
                SELECT "location" FROM "see_also" WHERE "class_type"='sloop';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Builder is "Sheerness Dockyard"?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Builder is "Sheerness Dockyard"?`:
```sql
                SELECT "country" FROM "see_also" WHERE "builder"='sheerness dockyard';
```
## Task
Generate a SQL query to answer the following question:
`What is Builder, when Location is "Govan , Scotland"?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Builder, when Location is "Govan , Scotland"?`:
```sql
                SELECT "builder" FROM "see_also" WHERE "location"='govan , scotland';
```
## Task
Generate a SQL query to answer the following question:
`How many ranks have 40 as the apps, with goals per match greater than 1?`

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

CREATE TABLE "most_goals_in_a_season_all_competitions_" (
  "rank" real,
  "name" text,
  "season" text,
  "club" text,
  "goals" real,
  "apps" real,
  "goals_per_match" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks have 40 as the apps, with goals per match greater than 1?`:
```sql
                SELECT SUM("rank") FROM "most_goals_in_a_season_all_competitions_" WHERE "apps"=40 AND "goals_per_match">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank that has goals per match less than 1.237, real madrid as the club, goals less than 53, with apps greater than 40?`

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

CREATE TABLE "most_goals_in_a_season_all_competitions_" (
  "rank" real,
  "name" text,
  "season" text,
  "club" text,
  "goals" real,
  "apps" real,
  "goals_per_match" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank that has goals per match less than 1.237, real madrid as the club, goals less than 53, with apps greater than 40?`:
```sql
                SELECT MIN("rank") FROM "most_goals_in_a_season_all_competitions_" WHERE "goals_per_match"<1.237 AND "club"='real madrid' AND "goals"<53 AND "apps">40;
```
## Task
Generate a SQL query to answer the following question:
`What was Britain's (2013) birthstone when the U.S (2013) birthstone was ruby?`

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

CREATE TABLE "birthstones_by_cultures" (
  "month" text,
  "15th_20th_century" text,
  "u_s_1912" text,
  "u_s_2013" text,
  "britain_2013" text,
  "hindu" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Britain's (2013) birthstone when the U.S (2013) birthstone was ruby?`:
```sql
                SELECT "britain_2013" FROM "birthstones_by_cultures" WHERE "u_s_2013"='ruby';
```
## Task
Generate a SQL query to answer the following question:
`What was the U.S birthstone in 1912 when in 2013 the birthstone was amethyst?`

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

CREATE TABLE "birthstones_by_cultures" (
  "month" text,
  "15th_20th_century" text,
  "u_s_1912" text,
  "u_s_2013" text,
  "britain_2013" text,
  "hindu" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the U.S birthstone in 1912 when in 2013 the birthstone was amethyst?`:
```sql
                SELECT "u_s_1912" FROM "birthstones_by_cultures" WHERE "u_s_2013"='amethyst';
```
## Task
Generate a SQL query to answer the following question:
`What was the U.S birthstone in the 15th-20th century when in 2013 it was amethyst?`

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

CREATE TABLE "birthstones_by_cultures" (
  "month" text,
  "15th_20th_century" text,
  "u_s_1912" text,
  "u_s_2013" text,
  "britain_2013" text,
  "hindu" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the U.S birthstone in the 15th-20th century when in 2013 it was amethyst?`:
```sql
                SELECT "15th_20th_century" FROM "birthstones_by_cultures" WHERE "u_s_2013"='amethyst';
```
## Task
Generate a SQL query to answer the following question:
`Which month in 2013 did the U.S. use the ruby birthstone?`

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

CREATE TABLE "birthstones_by_cultures" (
  "month" text,
  "15th_20th_century" text,
  "u_s_1912" text,
  "u_s_2013" text,
  "britain_2013" text,
  "hindu" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which month in 2013 did the U.S. use the ruby birthstone?`:
```sql
                SELECT "month" FROM "birthstones_by_cultures" WHERE "u_s_2013"='ruby';
```
## Task
Generate a SQL query to answer the following question:
`In 1912 when the U.S used sapphire, what was the Hindu birthstone?`

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

CREATE TABLE "birthstones_by_cultures" (
  "month" text,
  "15th_20th_century" text,
  "u_s_1912" text,
  "u_s_2013" text,
  "britain_2013" text,
  "hindu" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1912 when the U.S used sapphire, what was the Hindu birthstone?`:
```sql
                SELECT "hindu" FROM "birthstones_by_cultures" WHERE "u_s_1912"='sapphire';
```
## Task
Generate a SQL query to answer the following question:
`What's the hometown of rachel muyot soriano?`

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

CREATE TABLE "appointed_delegates_to_various_internati" (
  "year" real,
  "delegate" text,
  "hometown" text,
  "pageant" text,
  "result" text,
  "other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the hometown of rachel muyot soriano?`:
```sql
                SELECT "hometown" FROM "appointed_delegates_to_various_internati" WHERE "delegate"='rachel muyot soriano';
```
## Task
Generate a SQL query to answer the following question:
`What's the latest year the miss internet www pageant had a result of second runner-up?`

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

CREATE TABLE "appointed_delegates_to_various_internati" (
  "year" real,
  "delegate" text,
  "hometown" text,
  "pageant" text,
  "result" text,
  "other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the latest year the miss internet www pageant had a result of second runner-up?`:
```sql
                SELECT MAX("year") FROM "appointed_delegates_to_various_internati" WHERE "pageant"='miss internet www' AND "result"='second runner-up';
```
## Task
Generate a SQL query to answer the following question:
`On what Date is Tie no 19?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date is Tie no 19?`:
```sql
                SELECT "date" FROM "third_round_proper" WHERE "tie_no"='19';
```
## Task
Generate a SQL query to answer the following question:
`What is the Ti no of the Walsall Home game?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Ti no of the Walsall Home game?`:
```sql
                SELECT "tie_no" FROM "third_round_proper" WHERE "home_team"='walsall';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of Tie no 21?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Tie no 21?`:
```sql
                SELECT "date" FROM "third_round_proper" WHERE "tie_no"='21';
```
## Task
Generate a SQL query to answer the following question:
`Which race happened in 1948?`

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

CREATE TABLE "first_street_course" (
  "year" real,
  "drivers" text,
  "team" text,
  "duration_distance" text,
  "race_title" text,
  "championship" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race happened in 1948?`:
```sql
                SELECT "race_title" FROM "first_street_course" WHERE "year"=1948;
```
## Task
Generate a SQL query to answer the following question:
`Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship?`

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

CREATE TABLE "first_street_course" (
  "year" real,
  "drivers" text,
  "team" text,
  "duration_distance" text,
  "race_title" text,
  "championship" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship?`:
```sql
                SELECT "championship" FROM "first_street_course" WHERE "year"<1952 AND "race_title"='grand prix watkins glen' AND "drivers"='miles collier';
```
## Task
Generate a SQL query to answer the following question:
`Who drove in races in 1949?`

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

CREATE TABLE "first_street_course" (
  "year" real,
  "drivers" text,
  "team" text,
  "duration_distance" text,
  "race_title" text,
  "championship" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove in races in 1949?`:
```sql
                SELECT "drivers" FROM "first_street_course" WHERE "year"=1949;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73?`

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

CREATE TABLE "sailing_1896_1968" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73?`:
```sql
                SELECT MIN("total") FROM "sailing_1896_1968" WHERE "silver">7 AND "gold">73;
```
## Task
Generate a SQL query to answer the following question:
`What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is "4"?`

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

CREATE TABLE "sailing_1896_1968" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is "4"?`:
```sql
                SELECT "total" FROM "sailing_1896_1968" WHERE "silver"<65 AND "bronze">4 AND "rank"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Silver, when Gold is less than 0?`

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

CREATE TABLE "sailing_1896_1968" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Silver, when Gold is less than 0?`:
```sql
                SELECT AVG("silver") FROM "sailing_1896_1968" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is Height, when Name is "Manuela Zanchi"?`

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

CREATE TABLE "italy" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Height, when Name is "Manuela Zanchi"?`:
```sql
                SELECT "height" FROM "italy" WHERE "name"='manuela zanchi';
```
## Task
Generate a SQL query to answer the following question:
`What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"?`

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

CREATE TABLE "italy" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"?`:
```sql
                SELECT "pos" FROM "italy" WHERE "height"='m (ft 6in)' AND "name"='martina miceli';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a week less than 2?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a week less than 2?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many kills did basobas, florentino have?`

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

CREATE TABLE "oceania_and_maritime_southeast_asia" (
  "perpetrator" text,
  "location" text,
  "country" text,
  "killed" real,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many kills did basobas, florentino have?`:
```sql
                SELECT MAX("killed") FROM "oceania_and_maritime_southeast_asia" WHERE "perpetrator"='basobas, florentino';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of people killed with a Perpetrator of wirjo, 42?`

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

CREATE TABLE "oceania_and_maritime_southeast_asia" (
  "perpetrator" text,
  "location" text,
  "country" text,
  "killed" real,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of people killed with a Perpetrator of wirjo, 42?`:
```sql
                SELECT AVG("killed") FROM "oceania_and_maritime_southeast_asia" WHERE "perpetrator"='wirjo, 42';
```
## Task
Generate a SQL query to answer the following question:
`How many are injured in Borneo?`

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

CREATE TABLE "oceania_and_maritime_southeast_asia" (
  "perpetrator" text,
  "location" text,
  "country" text,
  "killed" real,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many are injured in Borneo?`:
```sql
                SELECT "injured" FROM "oceania_and_maritime_southeast_asia" WHERE "location"='borneo';
```
## Task
Generate a SQL query to answer the following question:
`How many points were scored by the player with 79 goals and who played 38 games?`

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

CREATE TABLE "top_ten_scorers" (
  "name" text,
  "hometown" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text,
  "pen_min" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were scored by the player with 79 goals and who played 38 games?`:
```sql
                SELECT "points" FROM "top_ten_scorers" WHERE "goals"='79' AND "games"='38';
```
## Task
Generate a SQL query to answer the following question:
`How many games were played by the player with 127 assists?`

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

CREATE TABLE "top_ten_scorers" (
  "name" text,
  "hometown" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text,
  "pen_min" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played by the player with 127 assists?`:
```sql
                SELECT "games" FROM "top_ten_scorers" WHERE "assists"='127';
```
## Task
Generate a SQL query to answer the following question:
`How many games were played by the player who had 22 penalty minutes?`

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

CREATE TABLE "top_ten_scorers" (
  "name" text,
  "hometown" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text,
  "pen_min" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played by the player who had 22 penalty minutes?`:
```sql
                SELECT "games" FROM "top_ten_scorers" WHERE "pen_min"='22';
```
## Task
Generate a SQL query to answer the following question:
`How many assists did the player with 54 penalty minutes have?`

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

CREATE TABLE "top_ten_scorers" (
  "name" text,
  "hometown" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text,
  "pen_min" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists did the player with 54 penalty minutes have?`:
```sql
                SELECT "assists" FROM "top_ten_scorers" WHERE "pen_min"='54';
```
## Task
Generate a SQL query to answer the following question:
`What is John Davis's home town?`

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

CREATE TABLE "top_ten_scorers" (
  "name" text,
  "hometown" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text,
  "pen_min" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is John Davis's home town?`:
```sql
                SELECT "hometown" FROM "top_ten_scorers" WHERE "name"='john davis';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the 1500m freestyle event?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the 1500m freestyle event?`:
```sql
                SELECT "date" FROM "men" WHERE "event"='1500m freestyle';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the event with a 1:51.51 time?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the event with a 1:51.51 time?`:
```sql
                SELECT "nationality" FROM "men" WHERE "time"='1:51.51';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the 100m freestyle event?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the 100m freestyle event?`:
```sql
                SELECT "time" FROM "men" WHERE "event"='100m freestyle';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the event with a 1:54.00 time?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the event with a 1:54.00 time?`:
```sql
                SELECT "date" FROM "men" WHERE "time"='1:54.00';
```
## Task
Generate a SQL query to answer the following question:
`What event is on 18 December 2009?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event is on 18 December 2009?`:
```sql
                SELECT "event" FROM "men" WHERE "date"='18 december 2009';
```
## Task
Generate a SQL query to answer the following question:
`Jimmie Lee Sloas was the composer for what album?`

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

CREATE TABLE "singles" (
  "year" real,
  "single" text,
  "chr_chart_peak" real,
  "album" text,
  "composer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Jimmie Lee Sloas was the composer for what album?`:
```sql
                SELECT "album" FROM "singles" WHERE "composer_s"='jimmie lee sloas';
```
## Task
Generate a SQL query to answer the following question:
`Which composer had a CHR chart peak at #2?`

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

CREATE TABLE "singles" (
  "year" real,
  "single" text,
  "chr_chart_peak" real,
  "album" text,
  "composer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which composer had a CHR chart peak at #2?`:
```sql
                SELECT "composer_s" FROM "singles" WHERE "chr_chart_peak"=2;
```
## Task
Generate a SQL query to answer the following question:
`What was the date for Westport?`

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

CREATE TABLE "2008_pool_games" (
  "week" text,
  "date" text,
  "home_team" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for Westport?`:
```sql
                SELECT "date" FROM "2008_pool_games" WHERE "venue"='westport';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team in week 1?`

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

CREATE TABLE "2008_pool_games" (
  "week" text,
  "date" text,
  "home_team" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team in week 1?`:
```sql
                SELECT "home_team" FROM "2008_pool_games" WHERE "week"='1';
```
## Task
Generate a SQL query to answer the following question:
`In what week was the away team Auckland?`

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

CREATE TABLE "2008_pool_games" (
  "week" text,
  "date" text,
  "home_team" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what week was the away team Auckland?`:
```sql
                SELECT "week" FROM "2008_pool_games" WHERE "away_team"='auckland';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue for week 1?`

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

CREATE TABLE "2008_pool_games" (
  "week" text,
  "date" text,
  "home_team" text,
  "away_team" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue for week 1?`:
```sql
                SELECT "venue" FROM "2008_pool_games" WHERE "week"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of men's wheelchair from Ireland and more than 1 total?`

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

CREATE TABLE "victories_by_nationality" (
  "country" text,
  "men_s_open" real,
  "women_s_open" real,
  "men_s_wheelchair" real,
  "women_s_wheelchair" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of men's wheelchair from Ireland and more than 1 total?`:
```sql
                SELECT SUM("men_s_wheelchair") FROM "victories_by_nationality" WHERE "country"='ireland' AND "total">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total for the Men's Open of 7, and the men's wheelchair more than 0?`

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

CREATE TABLE "victories_by_nationality" (
  "country" text,
  "men_s_open" real,
  "women_s_open" real,
  "men_s_wheelchair" real,
  "women_s_wheelchair" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total for the Men's Open of 7, and the men's wheelchair more than 0?`:
```sql
                SELECT AVG("total") FROM "victories_by_nationality" WHERE "men_s_open"=7 AND "men_s_wheelchair">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the title in 1991?`

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

CREATE TABLE "singles" (
  "year" text,
  "title" text,
  "sales_certified" text,
  "certification_france" text,
  "peak_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title in 1991?`:
```sql
                SELECT "title" FROM "singles" WHERE "year"='1991';
```
## Task
Generate a SQL query to answer the following question:
`In what City/State did the ATCC Round 4 series take place?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what City/State did the ATCC Round 4 series take place?`:
```sql
                SELECT "city_state" FROM "race_calendar" WHERE "series"='atcc round 4';
```
## Task
Generate a SQL query to answer the following question:
`Which series was won by Paul Morris?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series was won by Paul Morris?`:
```sql
                SELECT "series" FROM "race_calendar" WHERE "winner"='paul morris';
```
## Task
Generate a SQL query to answer the following question:
`On which date did the Winfield Triple Challenge series take place?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date did the Winfield Triple Challenge series take place?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "series"='winfield triple challenge';
```
## Task
Generate a SQL query to answer the following question:
`What was the circuit for Team Peter Jackson Racing in the ATCC Round 4 series?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the circuit for Team Peter Jackson Racing in the ATCC Round 4 series?`:
```sql
                SELECT "circuit" FROM "race_calendar" WHERE "team"='peter jackson racing' AND "series"='atcc round 4';
```
## Task
Generate a SQL query to answer the following question:
`Which 2008/ 09 has a 1999/ 00 of non-ranking tournaments?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2008/ 09 has a 1999/ 00 of non-ranking tournaments?`:
```sql
                SELECT "2008_09" FROM "performance_and_rankings_timeline" WHERE "1999_00"='non-ranking tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which 1999/ 00 has a 2001/ 02 of lq, a 2006/ 07 of qf, and a 2005/ 06 of 1r?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1999/ 00 has a 2001/ 02 of lq, a 2006/ 07 of qf, and a 2005/ 06 of 1r?`:
```sql
                SELECT "1999_00" FROM "performance_and_rankings_timeline" WHERE "2001_02"='lq' AND "2006_07"='qf' AND "2005_06"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Which 2001/ 02 has a 2002/ 03 of tournament not held, a 2007/ 08 of tournament not held, and a 2008/ 09 of non-ranking?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2001/ 02 has a 2002/ 03 of tournament not held, a 2007/ 08 of tournament not held, and a 2008/ 09 of non-ranking?`:
```sql
                SELECT "2001_02" FROM "performance_and_rankings_timeline" WHERE "2002_03"='tournament not held' AND "2007_08"='tournament not held' AND "2008_09"='non-ranking';
```
## Task
Generate a SQL query to answer the following question:
`Which 2006/ 07 has a 2011/ 12 of tournament not held, a 2005/ 06 of tournament not held, and a 2002/ 03 of 1r?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2006/ 07 has a 2011/ 12 of tournament not held, a 2005/ 06 of tournament not held, and a 2002/ 03 of 1r?`:
```sql
                SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2011_12"='tournament not held' AND "2005_06"='tournament not held' AND "2002_03"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Which 2010/ 11 has a 2011/ 12 of former non-ranking tournaments?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2010/ 11 has a 2011/ 12 of former non-ranking tournaments?`:
```sql
                SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2011_12"='former non-ranking tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007/ 08 has a 2008/ 09 of tournament not held, a 2005/ 06 of tournament not held, and a 1999/ 00 of tournament not held?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007/ 08 has a 2008/ 09 of tournament not held, a 2005/ 06 of tournament not held, and a 1999/ 00 of tournament not held?`:
```sql
                SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2008_09"='tournament not held' AND "2005_06"='tournament not held' AND "1999_00"='tournament not held';
```