cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Years of 1998–present?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Years of 1998–present?`:
```sql
                SELECT AVG("rank") FROM "list_of_top_association_football_goal_sc" WHERE "years"='1998–present';
```
## Task
Generate a SQL query to answer the following question:
`Which Matches have a Rank of 2?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Matches have a Rank of 2?`:
```sql
                SELECT COUNT("matches") FROM "list_of_top_association_football_goal_sc" WHERE "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`What Position was achieved in the World Championships Competition in Tokyo, Japan?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position was achieved in the World Championships Competition in Tokyo, Japan?`:
```sql
                SELECT "position" FROM "achievements" WHERE "competition"='world championships' AND "venue"='tokyo, japan';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition was 1st Position with 57.03 in Notes?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition was 1st Position with 57.03 in Notes?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "position"='1st' AND "notes"='57.03';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest Year for 400m h Event with 54.86 in Notes?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest Year for 400m h Event with 54.86 in Notes?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "event"='400m h' AND "notes"='54.86';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of appearances for players from Chaux-de-Fonds with places over 8?`

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

CREATE TABLE "top_goal_scorers" (
  "place" real,
  "scorer" text,
  "goals" real,
  "appearances" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of appearances for players from Chaux-de-Fonds with places over 8?`:
```sql
                SELECT COUNT("appearances") FROM "top_goal_scorers" WHERE "team"='chaux-de-fonds' AND "place">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest week of the game on November 9, 1997?`

### 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,
  "record" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest week of the game on November 9, 1997?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "date"='november 9, 1997';
```
## Task
Generate a SQL query to answer the following question:
`Which Proto-Austronesian has a Proto-Oceanic of *lima?`

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

CREATE TABLE "numerals" (
  "number" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Proto-Austronesian has a Proto-Oceanic of *lima?`:
```sql
                SELECT "proto_austronesian" FROM "numerals" WHERE "proto_oceanic"='*lima';
```
## Task
Generate a SQL query to answer the following question:
`Which Proto-Oceanic has a Proto-Polynesian of *lima?`

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

CREATE TABLE "numerals" (
  "number" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Proto-Oceanic has a Proto-Polynesian of *lima?`:
```sql
                SELECT "proto_oceanic" FROM "numerals" WHERE "proto_polynesian"='*lima';
```
## Task
Generate a SQL query to answer the following question:
`Which Number has a Proto-Polynesian of *taha?`

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

CREATE TABLE "numerals" (
  "number" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Number has a Proto-Polynesian of *taha?`:
```sql
                SELECT "number" FROM "numerals" WHERE "proto_polynesian"='*taha';
```
## Task
Generate a SQL query to answer the following question:
`WHich Proto-Polynesian has a Number of five?`

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

CREATE TABLE "numerals" (
  "number" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Proto-Polynesian has a Number of five?`:
```sql
                SELECT "proto_polynesian" FROM "numerals" WHERE "number"='five';
```
## Task
Generate a SQL query to answer the following question:
`Which Proto-Polynesian has a Proto-Malayo-Polynesian of *telu?`

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

CREATE TABLE "numerals" (
  "number" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Proto-Polynesian has a Proto-Malayo-Polynesian of *telu?`:
```sql
                SELECT "proto_polynesian" FROM "numerals" WHERE "proto_malayo_polynesian"='*telu';
```
## Task
Generate a SQL query to answer the following question:
`Which  Proto-Oceanic has a Proto-Polynesian of *lima?`

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

CREATE TABLE "numerals" (
  "number" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which  Proto-Oceanic has a Proto-Polynesian of *lima?`:
```sql
                SELECT "proto_oceanic" FROM "numerals" WHERE "proto_polynesian"='*lima';
```
## Task
Generate a SQL query to answer the following question:
`How many countries in 2009 have fewer than 1 in 1999, more than 0 in 2006 and none in 1997?`

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

CREATE TABLE "number_of_participants_per_year_and_coun" (
  "country" text,
  "1997" real,
  "1998" real,
  "1999" real,
  "2000" real,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries in 2009 have fewer than 1 in 1999, more than 0 in 2006 and none in 1997?`:
```sql
                SELECT COUNT("2009") FROM "number_of_participants_per_year_and_coun" WHERE "1999"<1 AND "2006">0 AND "1997"<0;
```
## Task
Generate a SQL query to answer the following question:
`How much is the highest number in 2006 with fewer than 0 in 2002?`

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

CREATE TABLE "number_of_participants_per_year_and_coun" (
  "country" text,
  "1997" real,
  "1998" real,
  "1999" real,
  "2000" real,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the highest number in 2006 with fewer than 0 in 2002?`:
```sql
                SELECT MAX("2006") FROM "number_of_participants_per_year_and_coun" WHERE "2002"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999?`

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

CREATE TABLE "number_of_participants_per_year_and_coun" (
  "country" text,
  "1997" real,
  "1998" real,
  "1999" real,
  "2000" real,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999?`:
```sql
                SELECT SUM("2003") FROM "number_of_participants_per_year_and_coun" WHERE "2001"=0 AND "2009">0 AND "1999"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which country has more than 0 in 2012 and 2009, 0 in 2008 and more than 0 in 2004?`

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

CREATE TABLE "number_of_participants_per_year_and_coun" (
  "country" text,
  "1997" real,
  "1998" real,
  "1999" real,
  "2000" real,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has more than 0 in 2012 and 2009, 0 in 2008 and more than 0 in 2004?`:
```sql
                SELECT "country" FROM "number_of_participants_per_year_and_coun" WHERE "2012">0 AND "2009">0 AND "2008"=0 AND "2004">0;
```
## Task
Generate a SQL query to answer the following question:
`Which % GDP has an Expenditure larger than 50.9, and a Year larger than 2009, and an Income of 39.3?`

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

CREATE TABLE "recent_government_budget_balances" (
  "year" real,
  "income" real,
  "expenditure" real,
  "surplus_deficit" text,
  "pct_gdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which % GDP has an Expenditure larger than 50.9, and a Year larger than 2009, and an Income of 39.3?`:
```sql
                SELECT "pct_gdp" FROM "recent_government_budget_balances" WHERE "expenditure">50.9 AND "year">2009 AND "income"=39.3;
```
## Task
Generate a SQL query to answer the following question:
`Which Year has an Expenditure smaller than 41.3, and a % GDP of x, and an Income larger than 34.4?`

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

CREATE TABLE "recent_government_budget_balances" (
  "year" real,
  "income" real,
  "expenditure" real,
  "surplus_deficit" text,
  "pct_gdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has an Expenditure smaller than 41.3, and a % GDP of x, and an Income larger than 34.4?`:
```sql
                SELECT SUM("year") FROM "recent_government_budget_balances" WHERE "expenditure"<41.3 AND "pct_gdp"='x' AND "income">34.4;
```
## Task
Generate a SQL query to answer the following question:
`Which Surplus(Deficit) has an Expenditure larger than 45.8, and a Year smaller than 2011, and a % GDP of (0.9%)?`

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

CREATE TABLE "recent_government_budget_balances" (
  "year" real,
  "income" real,
  "expenditure" real,
  "surplus_deficit" text,
  "pct_gdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surplus(Deficit) has an Expenditure larger than 45.8, and a Year smaller than 2011, and a % GDP of (0.9%)?`:
```sql
                SELECT "surplus_deficit" FROM "recent_government_budget_balances" WHERE "expenditure">45.8 AND "year"<2011 AND "pct_gdp"='(0.9%)';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has an Expenditure of 55, and an Income smaller than 36.2?`

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

CREATE TABLE "recent_government_budget_balances" (
  "year" real,
  "income" real,
  "expenditure" real,
  "surplus_deficit" text,
  "pct_gdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has an Expenditure of 55, and an Income smaller than 36.2?`:
```sql
                SELECT MIN("year") FROM "recent_government_budget_balances" WHERE "expenditure"=55 AND "income"<36.2;
```
## Task
Generate a SQL query to answer the following question:
`Which % GDP has a Year smaller than 2011, and an Expenditure larger than 41.3, and an Income smaller than 48, and a Surplus(Deficit) of (24.6)?`

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

CREATE TABLE "recent_government_budget_balances" (
  "year" real,
  "income" real,
  "expenditure" real,
  "surplus_deficit" text,
  "pct_gdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which % GDP has a Year smaller than 2011, and an Expenditure larger than 41.3, and an Income smaller than 48, and a Surplus(Deficit) of (24.6)?`:
```sql
                SELECT "pct_gdp" FROM "recent_government_budget_balances" WHERE "year"<2011 AND "expenditure">41.3 AND "income"<48 AND "surplus_deficit"='(24.6)';
```
## Task
Generate a SQL query to answer the following question:
`What year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Nargiso?`

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

CREATE TABLE "singles" (
  "year" real,
  "tournament_name" text,
  "champions" text,
  "runners_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Nargiso?`:
```sql
                SELECT "year" FROM "singles" WHERE "tournament_name"='grand prix passing shot bordeaux' AND "runners_up"='diego nargiso';
```
## Task
Generate a SQL query to answer the following question:
`What tournament had a score of 5–7, 6–4, 6–4?`

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

CREATE TABLE "singles" (
  "year" real,
  "tournament_name" text,
  "champions" text,
  "runners_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had a score of 5–7, 6–4, 6–4?`:
```sql
                SELECT "tournament_name" FROM "singles" WHERE "score"='5–7, 6–4, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`After 1989, what was the score of the Grand Prix Passing Shot where the Runners-up were Jeff Tarango?`

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

CREATE TABLE "singles" (
  "year" real,
  "tournament_name" text,
  "champions" text,
  "runners_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `After 1989, what was the score of the Grand Prix Passing Shot where the Runners-up were Jeff Tarango?`:
```sql
                SELECT "score" FROM "singles" WHERE "year">1989 AND "tournament_name"='grand prix passing shot' AND "runners_up"='jeff tarango';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the tournament that Gianni Ocleppo was the runner-up?`

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

CREATE TABLE "singles" (
  "year" real,
  "tournament_name" text,
  "champions" text,
  "runners_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the tournament that Gianni Ocleppo was the runner-up?`:
```sql
                SELECT "tournament_name" FROM "singles" WHERE "runners_up"='gianni ocleppo';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest percentage of wins for 6½ games and more than 77 total wins?`

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

CREATE TABLE "regular_season_results" (
  "season" text,
  "wins" real,
  "losses" real,
  "winpct" real,
  "games_behind" text,
  "playoffs" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest percentage of wins for 6½ games and more than 77 total wins?`:
```sql
                SELECT MIN("winpct") FROM "regular_season_results" WHERE "games_behind"='6½' AND "wins">77;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the competition on November 10?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the competition on November 10?`:
```sql
                SELECT "score" FROM "november" WHERE "date"='november 10';
```
## Task
Generate a SQL query to answer the following question:
`Who is the visitor when the record is 2-1?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor when the record is 2-1?`:
```sql
                SELECT "visitor" FROM "november" WHERE "record"='2-1';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team when the score is 81-80?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team when the score is 81-80?`:
```sql
                SELECT "home" FROM "november" WHERE "score"='81-80';
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals did Japan receive who had a Total of more than 1 medals?`

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

CREATE TABLE "medal_table_unofficial" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Gold medals did Japan receive who had a Total of more than 1 medals?`:
```sql
                SELECT SUM("gold") FROM "medal_table_unofficial" WHERE "nation"='japan' AND "total">1;
```
## Task
Generate a SQL query to answer the following question:
`What time (cst) has and NFL recap of recap with october 19, 2008 as the date?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "time_cst" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "nfl_recap" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time (cst) has and NFL recap of recap with october 19, 2008 as the date?`:
```sql
                SELECT "time_cst" FROM "schedule" WHERE "nfl_recap"='recap' AND "date"='october 19, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which week has giants stadium as the game site?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "time_cst" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "nfl_recap" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week has giants stadium as the game site?`:
```sql
                SELECT "week" FROM "schedule" WHERE "game_site"='giants stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "time_cst" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "nfl_recap" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "time_cst"='7:15 p.m.' AND "game_site"='fedexfield';
```
## Task
Generate a SQL query to answer the following question:
`What office was law preservation ticket holder William E. Barron running for?`

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

CREATE TABLE "1934_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "constitutional_ticket" text,
  "law_preservation_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What office was law preservation ticket holder William E. Barron running for?`:
```sql
                SELECT "office" FROM "1934_state_election_results" WHERE "law_preservation_ticket"='william e. barron';
```
## Task
Generate a SQL query to answer the following question:
`Who was the constitutional ticken when Charles B. Sears was the republican ticket?`

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

CREATE TABLE "1934_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "constitutional_ticket" text,
  "law_preservation_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constitutional ticken when Charles B. Sears was the republican ticket?`:
```sql
                SELECT "constitutional_ticket" FROM "1934_state_election_results" WHERE "republican_ticket"='charles b. sears';
```
## Task
Generate a SQL query to answer the following question:
`Who was the constitutional ticket when william karlin was the socialist ticket?`

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

CREATE TABLE "1934_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "constitutional_ticket" text,
  "law_preservation_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constitutional ticket when william karlin was the socialist ticket?`:
```sql
                SELECT "constitutional_ticket" FROM "1934_state_election_results" WHERE "socialist_ticket"='william karlin';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory on Mar 18, 1979?`

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

CREATE TABLE "pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory on Mar 18, 1979?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_10" WHERE "date"='mar 18, 1979';
```
## Task
Generate a SQL query to answer the following question:
`What is the comp for the year 1989?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the comp for the year 1989?`:
```sql
                SELECT "comp" FROM "regular_season" WHERE "year"='1989';
```
## Task
Generate a SQL query to answer the following question:
`What is the team in 1989?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team in 1989?`:
```sql
                SELECT "team" FROM "regular_season" WHERE "year"='1989';
```
## Task
Generate a SQL query to answer the following question:
`What is the RAtt in the year 1988?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the RAtt in the year 1988?`:
```sql
                SELECT "r_att" FROM "regular_season" WHERE "year"='1988';
```
## Task
Generate a SQL query to answer the following question:
`What was the team with a Ratt of 42?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team with a Ratt of 42?`:
```sql
                SELECT "team" FROM "regular_season" WHERE "r_att"='42';
```
## Task
Generate a SQL query to answer the following question:
`What was the team with a ratt of 57?`

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

CREATE TABLE "regular_season" (
  "year" text,
  "team" text,
  "comp" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team with a ratt of 57?`:
```sql
                SELECT "team" FROM "regular_season" WHERE "r_att"='57';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Giants play before week 7 in Tulane Stadium?`

### 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,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Giants play before week 7 in Tulane Stadium?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<7 AND "game_site"='tulane stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance for week 1?`

### 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,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance for week 1?`:
```sql
                SELECT MIN("attendance") FROM "schedule" WHERE "week"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of a player from Ethiopia?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "player" text,
  "country" text,
  "goals" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of a player from Ethiopia?`:
```sql
                SELECT MAX("rank") FROM "list_of_top_association_football_goal_sc" WHERE "country"='ethiopia';
```
## Task
Generate a SQL query to answer the following question:
`How many ranks had 367 matches and more than 216 goals?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks had 367 matches and more than 216 goals?`:
```sql
                SELECT SUM("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=367 AND "goals">216;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean rank number when goals are 230 and there are more than 535?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean rank number when goals are 230 and there are more than 535?`:
```sql
                SELECT AVG("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals"=230 AND "matches">535;
```
## Task
Generate a SQL query to answer the following question:
`Where the audience share is 8%, what is the original airing?`

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

CREATE TABLE "viewing_figures" (
  "episode_number" real,
  "season" text,
  "original_airing" text,
  "total_viewers" text,
  "audience_share_average" text,
  "season_viewer_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the audience share is 8%, what is the original airing?`:
```sql
                SELECT "original_airing" FROM "viewing_figures" WHERE "audience_share_average"='8%';
```
## Task
Generate a SQL query to answer the following question:
`For episode number 2 what is the season viewer average?`

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

CREATE TABLE "viewing_figures" (
  "episode_number" real,
  "season" text,
  "original_airing" text,
  "total_viewers" text,
  "audience_share_average" text,
  "season_viewer_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `For episode number 2 what is the season viewer average?`:
```sql
                SELECT "season_viewer_average" FROM "viewing_figures" WHERE "episode_number"=2;
```
## Task
Generate a SQL query to answer the following question:
`What episode number has an audience share of 10%?`

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

CREATE TABLE "viewing_figures" (
  "episode_number" real,
  "season" text,
  "original_airing" text,
  "total_viewers" text,
  "audience_share_average" text,
  "season_viewer_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number has an audience share of 10%?`:
```sql
                SELECT COUNT("episode_number") FROM "viewing_figures" WHERE "audience_share_average"='10%';
```
## Task
Generate a SQL query to answer the following question:
`What is the value for the item "Class" when the value of the item "Wheels" is 137?`

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

CREATE TABLE "peter_drummond_1911_1918" (
  "class" text,
  "wheels" real,
  "date" text,
  "builder" text,
  "no_built" real,
  "1919_nos" text,
  "lms_class" text,
  "lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for the item "Class" when the value of the item "Wheels" is 137?`:
```sql
                SELECT "class" FROM "peter_drummond_1911_1918" WHERE "wheels"=137;
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest number of games for the fenerbahçe team?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest number of games for the fenerbahçe team?`:
```sql
                SELECT MIN("games") FROM "rebounds" WHERE "team"='fenerbahçe';
```
## Task
Generate a SQL query to answer the following question:
`What's the mean game number for the olympiacos team when there's less than 17 rebounds?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the mean game number for the olympiacos team when there's less than 17 rebounds?`:
```sql
                SELECT AVG("games") FROM "rebounds" WHERE "team"='olympiacos' AND "rebounds"<17;
```
## Task
Generate a SQL query to answer the following question:
`How many games does novica veličković have when there's more than 24 rebounds?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games does novica veličković have when there's more than 24 rebounds?`:
```sql
                SELECT COUNT("games") FROM "rebounds" WHERE "name"='novica veličković' AND "rebounds">24;
```
## Task
Generate a SQL query to answer the following question:
`What is the League with a Year that is 1990/91?`

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

CREATE TABLE "year_by_year_record" (
  "year" text,
  "league" text,
  "reg_season" text,
  "playoffs" text,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the League with a Year that is 1990/91?`:
```sql
                SELECT "league" FROM "year_by_year_record" WHERE "year"='1990/91';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for simferopol international airport?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for simferopol international airport?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "airport"='simferopol international airport';
```
## Task
Generate a SQL query to answer the following question:
`Which country has an IATA of gzt?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has an IATA of gzt?`:
```sql
                SELECT "country" FROM "destinations" WHERE "iata"='gzt';
```
## Task
Generate a SQL query to answer the following question:
`What country is Yerevan located in?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Yerevan located in?`:
```sql
                SELECT "country" FROM "destinations" WHERE "city"='yerevan';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO when the IATA is ika?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO when the IATA is ika?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "iata"='ika';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO when the IATA is ist?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO when the IATA is ist?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "iata"='ist';
```
## Task
Generate a SQL query to answer the following question:
`Which team has 10 losses?`

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

CREATE TABLE "first_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has 10 losses?`:
```sql
                SELECT "team" FROM "first_league" WHERE "lost"=10;
```
## Task
Generate a SQL query to answer the following question:
`In which yearly change was there a capacity of 78.4% and a rank smaller than 3?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which yearly change was there a capacity of 78.4% and a rank smaller than 3?`:
```sql
                SELECT "annual_change" FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "rank"<3 AND "capacity_in_use"='78.4%';
```
## Task
Generate a SQL query to answer the following question:
`In Which rank was there a location of porto alegre?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Which rank was there a location of porto alegre?`:
```sql
                SELECT "rank" FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "location"='porto alegre';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of passengers when the capacity is 81.2%?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of passengers when the capacity is 81.2%?`:
```sql
                SELECT SUM("total_passengers") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "capacity_in_use"='81.2%';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest amount of passengers when there is a rank of 1?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest amount of passengers when there is a rank of 1?`:
```sql
                SELECT MAX("total_passengers") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which highest rank had an annual change of 10.3% and a capacity of people smaller than 1,368,968?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which highest rank had an annual change of 10.3% and a capacity of people smaller than 1,368,968?`:
```sql
                SELECT MAX("rank") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "annual_change"='10.3%' AND "total_passengers"<'1,368,968';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest Week on which the Result was l 17–0?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest Week on which the Result was l 17–0?`:
```sql
                SELECT MAX("week") FROM "season_schedule" WHERE "result"='l 17–0';
```
## Task
Generate a SQL query to answer the following question:
`What is the average cuts made at the top 25, less than 10, and at the Top 10 more than 3?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average cuts made at the top 25, less than 10, and at the Top 10 more than 3?`:
```sql
                SELECT AVG("cuts_made") FROM "summary" WHERE "top_25"<10 AND "top_10">3;
```
## Task
Generate a SQL query to answer the following question:
`What is average Top 10 with 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 average Top 10 with 0 wins?`:
```sql
                SELECT AVG("top_10") FROM "summary" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average event for the Open Championship Tournament, and a Top-5 less 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 `What is the average event for the Open Championship Tournament, and a Top-5 less than 1?`:
```sql
                SELECT AVG("events") FROM "summary" WHERE "tournament"='the open championship' AND "top_5"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average wins has Top-25 less than 0?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average wins has Top-25 less than 0?`:
```sql
                SELECT AVG("wins") FROM "summary" WHERE "top_25"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest Against with a Byes larger than 0?`

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

CREATE TABLE "2012_ladder" (
  "peel" 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 largest Against with a Byes larger than 0?`:
```sql
                SELECT MAX("against") FROM "2012_ladder" WHERE "byes">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Wins has an Against of 1940, and a Byes larger than 0?`

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

CREATE TABLE "2012_ladder" (
  "peel" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins has an Against of 1940, and a Byes larger than 0?`:
```sql
                SELECT MAX("wins") FROM "2012_ladder" WHERE "against"=1940 AND "byes">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger than 0?`

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

CREATE TABLE "2012_ladder" (
  "peel" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger than 0?`:
```sql
                SELECT AVG("draws") FROM "2012_ladder" WHERE "wins"=10 AND "peel"='south mandurah' AND "byes">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4?`

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

CREATE TABLE "2012_ladder" (
  "peel" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4?`:
```sql
                SELECT MAX("against") FROM "2012_ladder" WHERE "draws">0 AND "losses"<16 AND "wins"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which Losses has an Against of 1101, and a Byes smaller than 0?`

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

CREATE TABLE "2012_ladder" (
  "peel" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses has an Against of 1101, and a Byes smaller than 0?`:
```sql
                SELECT COUNT("losses") FROM "2012_ladder" WHERE "against"=1101 AND "byes"<0;
```