cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What song was written after 1976 and directed by Rahul Dev Burman?`

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

CREATE TABLE "nominated" (
  "year" real,
  "song" text,
  "film" text,
  "music_director_s" text,
  "lyricist" text
);
### SQL
Given the database schema, here is the SQL query that answers `What song was written after 1976 and directed by Rahul Dev Burman?`:
```sql
                SELECT "song" FROM "nominated" WHERE "year">1976 AND "music_director_s"='rahul dev burman';
```
## Task
Generate a SQL query to answer the following question:
`What is the population for the place with a Former Name of bluie west-1?`

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

CREATE TABLE "settlements_with_population_between_100_" (
  "rank" real,
  "population" real,
  "name" text,
  "former_name" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population for the place with a Former Name of bluie west-1?`:
```sql
                SELECT MIN("population") FROM "settlements_with_population_between_100_" WHERE "former_name"='bluie west-1';
```
## Task
Generate a SQL query to answer the following question:
`What car does Scott Deware own that has rounds under 12?`

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

CREATE TABLE "part_time_teams" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text,
  "rounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What car does Scott Deware own that has rounds under 12?`:
```sql
                SELECT "car_s" FROM "part_time_teams" WHERE "rounds"<12 AND "owner_s"='scott deware';
```
## Task
Generate a SQL query to answer the following question:
`Which City or town has a Top division titles of 17`

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

CREATE TABLE "clubs" (
  "club" text,
  "city_or_town" text,
  "position_in_2012_13_season" text,
  "first_season_in_top_division" text,
  "number_of_seasons_in_top_division" real,
  "first_season_of_current_spell_in_top_division" text,
  "top_division_titles" text,
  "last_top_division_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City or town has a Top division titles of 17`:
```sql
                SELECT "city_or_town" FROM "clubs" WHERE "top_division_titles"='17';
```
## Task
Generate a SQL query to answer the following question:
`Which City or town has top division smaller than 40 and Gaziantepspor Club ?`

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

CREATE TABLE "clubs" (
  "club" text,
  "city_or_town" text,
  "position_in_2012_13_season" text,
  "first_season_in_top_division" text,
  "number_of_seasons_in_top_division" real,
  "first_season_of_current_spell_in_top_division" text,
  "top_division_titles" text,
  "last_top_division_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City or town has top division smaller than 40 and Gaziantepspor Club ?`:
```sql
                SELECT "city_or_town" FROM "clubs" WHERE "number_of_seasons_in_top_division"<40 AND "club"='gaziantepspor';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2003 value with 2r in 2008 and 1r in 2011?`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "2003" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2003 value with 2r in 2008 and 1r in 2011?`:
```sql
                SELECT "2003" FROM "doubles" WHERE "2008"='2r' AND "2011"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 value with 2r in 2011 and 2r in 2008?`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "2003" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 value with 2r in 2011 and 2r in 2008?`:
```sql
                SELECT "2007" FROM "doubles" WHERE "2011"='2r' AND "2008"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon?`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "2003" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon?`:
```sql
                SELECT "2007" FROM "doubles" WHERE "2009"='1r' AND "2011"='2r' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2003 value with 1r in 2009 at the Australian Open?`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "2003" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2003 value with 1r in 2009 at the Australian Open?`:
```sql
                SELECT "2003" FROM "doubles" WHERE "2009"='1r' AND "tournament"='australian open';
```
## Task
Generate a SQL query to answer the following question:
`How many wins did they have at Richmond Cricket Ground Stadium?`

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

CREATE TABLE "home_grounds" (
  "stadium" text,
  "years" text,
  "played" real,
  "wins" real,
  "losses" real,
  "draw" text,
  "win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did they have at Richmond Cricket Ground Stadium?`:
```sql
                SELECT "wins" FROM "home_grounds" WHERE "stadium"='richmond cricket ground';
```
## Task
Generate a SQL query to answer the following question:
`How many games did they play in 1905?`

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

CREATE TABLE "home_grounds" (
  "stadium" text,
  "years" text,
  "played" real,
  "wins" real,
  "losses" real,
  "draw" text,
  "win_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did they play in 1905?`:
```sql
                SELECT AVG("played") FROM "home_grounds" WHERE "years"='1905';
```
## Task
Generate a SQL query to answer the following question:
`Which term in office has a qld state, a Party of labor, and an Electorate of fisher?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which term in office has a qld state, a Party of labor, and an Electorate of fisher?`:
```sql
                SELECT "term_in_office" FROM "see_also" WHERE "state"='qld' AND "party"='labor' AND "electorate"='fisher';
```
## Task
Generate a SQL query to answer the following question:
`Which member has an Electorate of kennedy?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which member has an Electorate of kennedy?`:
```sql
                SELECT "member" FROM "see_also" WHERE "electorate"='kennedy';
```
## Task
Generate a SQL query to answer the following question:
`Which Party has a Member of david jull?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has a Member of david jull?`:
```sql
                SELECT "party" FROM "see_also" WHERE "member"='david jull';
```
## Task
Generate a SQL query to answer the following question:
`Which term in office has an Electorate of hinkler?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which term in office has an Electorate of hinkler?`:
```sql
                SELECT "term_in_office" FROM "see_also" WHERE "electorate"='hinkler';
```
## Task
Generate a SQL query to answer the following question:
`Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann?`:
```sql
                SELECT "electorate" FROM "see_also" WHERE "state"='qld' AND "party"='national' AND "member"='hon evan adermann';
```
## Task
Generate a SQL query to answer the following question:
`Which state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner?`:
```sql
                SELECT "state" FROM "see_also" WHERE "term_in_office"='1984–1996' AND "party"='labor' AND "member"='robert tickner';
```
## Task
Generate a SQL query to answer the following question:
`What is the total amount of decile with the authority of state around the Pokuru School and a roll smaller than 109?`

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

CREATE TABLE "waipa_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of decile with the authority of state around the Pokuru School and a roll smaller than 109?`:
```sql
                SELECT SUM("decile") FROM "waipa_district" WHERE "authority"='state' AND "name"='pokuru school' AND "roll"<109;
```
## Task
Generate a SQL query to answer the following question:
`Name the most laps for corvette racing in 2004`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most laps for corvette racing in 2004`:
```sql
                SELECT MAX("laps") FROM "24_hours_of_le_mans_results" WHERE "team"='corvette racing' AND "year"=2004;
```
## Task
Generate a SQL query to answer the following question:
`Name the class for 4th position with year before 2006`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class for 4th position with year before 2006`:
```sql
                SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "pos"='4th' AND "year"<2006;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of laps for 23rd position`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of laps for 23rd position`:
```sql
                SELECT COUNT("laps") FROM "24_hours_of_le_mans_results" WHERE "pos"='23rd';
```
## Task
Generate a SQL query to answer the following question:
`Name the team with laps less than 315 and co-drivers of david brabham franck lagorce?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team with laps less than 315 and co-drivers of david brabham franck lagorce?`:
```sql
                SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "laps"<315 AND "co_drivers"='david brabham franck lagorce';
```
## Task
Generate a SQL query to answer the following question:
`Name the team for co-drivers of david brabham mario andretti`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for co-drivers of david brabham mario andretti`:
```sql
                SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "co_drivers"='david brabham mario andretti';
```
## Task
Generate a SQL query to answer the following question:
`Name the highest year with points more than 0`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest year with points more than 0`:
```sql
                SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "points">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the highest points when year is more than 1953`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest points when year is more than 1953`:
```sql
                SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "year">1953;
```
## Task
Generate a SQL query to answer the following question:
`Name the engine when points are 0 and chassis is kuzma indy roadster for 1954`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the engine when points are 0 and chassis is kuzma indy roadster for 1954`:
```sql
                SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "points"=0 AND "chassis"='kuzma indy roadster' AND "year"=1954;
```
## Task
Generate a SQL query to answer the following question:
`Name the least points with chassis of kurtis kraft 3000 and year before 1951`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least points with chassis of kurtis kraft 3000 and year before 1951`:
```sql
                SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 3000' AND "year"<1951;
```
## Task
Generate a SQL query to answer the following question:
`What is the total region population with a Mirani population of 5,220 and a Mackay population less than 75,020?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "mackay" real,
  "pioneer" real,
  "mirani" real,
  "sarina" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total region population with a Mirani population of 5,220 and a Mackay population less than 75,020?`:
```sql
                SELECT COUNT("total_region") FROM "population" WHERE "mirani"='5,220' AND "mackay"<'75,020';
```
## Task
Generate a SQL query to answer the following question:
`What is the Pioneer population with a Sarina population less than 3,268 and a Mirani population less than 4,412?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "mackay" real,
  "pioneer" real,
  "mirani" real,
  "sarina" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pioneer population with a Sarina population less than 3,268 and a Mirani population less than 4,412?`:
```sql
                SELECT SUM("pioneer") FROM "population" WHERE "sarina"<'3,268' AND "mirani"<'4,412';
```
## Task
Generate a SQL query to answer the following question:
`What is the Mirani population with a total region population less than 48,530, a Mackay population less than 13,486, and a Pioneer population larger than 9,926?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "mackay" real,
  "pioneer" real,
  "mirani" real,
  "sarina" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mirani population with a total region population less than 48,530, a Mackay population less than 13,486, and a Pioneer population larger than 9,926?`:
```sql
                SELECT SUM("mirani") FROM "population" WHERE "total_region"<'48,530' AND "mackay"<'13,486' AND "pioneer">'9,926';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Pioneer population in 1966 with a Sarina population greater than 4,611?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "mackay" real,
  "pioneer" real,
  "mirani" real,
  "sarina" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Pioneer population in 1966 with a Sarina population greater than 4,611?`:
```sql
                SELECT MIN("pioneer") FROM "population" WHERE "year"=1966 AND "sarina">'4,611';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Pioneer population with a Sarina population less than 7,537 and a Mirani population less than 5,379 in 1966?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "mackay" real,
  "pioneer" real,
  "mirani" real,
  "sarina" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Pioneer population with a Sarina population less than 7,537 and a Mirani population less than 5,379 in 1966?`:
```sql
                SELECT MIN("pioneer") FROM "population" WHERE "sarina"<'7,537' AND "year"=1966 AND "mirani"<'5,379';
```
## Task
Generate a SQL query to answer the following question:
`What is the year of the TV series directed by Soroush Sehat?`

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

CREATE TABLE "tv_series" (
  "year" text,
  "title" text,
  "title_in_english" text,
  "director" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the TV series directed by Soroush Sehat?`:
```sql
                SELECT "year" FROM "tv_series" WHERE "director"='soroush sehat';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the TV series with a character of Sheyda/Ashraf?`

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

CREATE TABLE "tv_series" (
  "year" text,
  "title" text,
  "title_in_english" text,
  "director" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the TV series with a character of Sheyda/Ashraf?`:
```sql
                SELECT "title" FROM "tv_series" WHERE "character"='sheyda/ashraf';
```
## Task
Generate a SQL query to answer the following question:
`What is the year of the TV series that has a character of Leiloon Bala Barareh?`

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

CREATE TABLE "tv_series" (
  "year" text,
  "title" text,
  "title_in_english" text,
  "director" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the TV series that has a character of Leiloon Bala Barareh?`:
```sql
                SELECT "year" FROM "tv_series" WHERE "character"='leiloon bala barareh';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the TV series in 2012?`

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

CREATE TABLE "tv_series" (
  "year" text,
  "title" text,
  "title_in_english" text,
  "director" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the TV series in 2012?`:
```sql
                SELECT "title" FROM "tv_series" WHERE "year"='2012';
```
## Task
Generate a SQL query to answer the following question:
`Who published Star Citizen in 2014?`

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

CREATE TABLE "cry_engine" (
  "title" text,
  "year" text,
  "developer" text,
  "publisher" text,
  "platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who published Star Citizen in 2014?`:
```sql
                SELECT "publisher" FROM "cry_engine" WHERE "year"='2014' AND "title"='star citizen';
```
## Task
Generate a SQL query to answer the following question:
`Which title was developed by Battlecry Studios?`

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

CREATE TABLE "cry_engine" (
  "title" text,
  "year" text,
  "developer" text,
  "publisher" text,
  "platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title was developed by Battlecry Studios?`:
```sql
                SELECT "title" FROM "cry_engine" WHERE "developer"='battlecry studios';
```
## Task
Generate a SQL query to answer the following question:
`How many people were at the match on July 13/`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were at the match on July 13/`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "date"='july 13';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on July 27?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on July 27?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='july 27';
```
## Task
Generate a SQL query to answer the following question:
`For Ynysybwl RFC, what was the losing bonus for 416 points?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `For Ynysybwl RFC, what was the losing bonus for 416 points?`:
```sql
                SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points_for"='416' AND "club"='ynysybwl rfc';
```
## Task
Generate a SQL query to answer the following question:
`For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?`:
```sql
                SELECT "drawn" FROM "2009_2010_table" WHERE "played"='22' AND "points_against"='453' AND "losing_bonus"='5';
```
## Task
Generate a SQL query to answer the following question:
`For the club that had tries of 50 and drawn of 0, what were the points?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the club that had tries of 50 and drawn of 0, what were the points?`:
```sql
                SELECT "points_against" FROM "2009_2010_table" WHERE "drawn"='0' AND "tries_for"='50';
```
## Task
Generate a SQL query to answer the following question:
`The club that had 546 points against, what was the losing bonus?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `The club that had 546 points against, what was the losing bonus?`:
```sql
                SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points_against"='546';
```
## Task
Generate a SQL query to answer the following question:
`What is the lost of Ynysybwl RFC?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lost of Ynysybwl RFC?`:
```sql
                SELECT "lost" FROM "2009_2010_table" WHERE "club"='ynysybwl rfc';
```
## Task
Generate a SQL query to answer the following question:
`How many points does Club have?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does Club have?`:
```sql
                SELECT "points" FROM "2009_2010_table" WHERE "club"='club';
```
## Task
Generate a SQL query to answer the following question:
`When is Part 6, when Part 4 is on March 2, 2008?`

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

CREATE TABLE "online_episodes" (
  "episode_num" real,
  "title" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "part_5" text,
  "part_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is Part 6, when Part 4 is on March 2, 2008?`:
```sql
                SELECT "part_6" FROM "online_episodes" WHERE "part_4"='march 2, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?`

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

CREATE TABLE "online_episodes" (
  "episode_num" real,
  "title" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "part_5" text,
  "part_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?`:
```sql
                SELECT "title" FROM "online_episodes" WHERE "episode_num">2 AND "part_6"='january 6, 2008';
```
## Task
Generate a SQL query to answer the following question:
`When is Part 2, when Part 4 is on December 9, 2007?`

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

CREATE TABLE "online_episodes" (
  "episode_num" real,
  "title" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "part_5" text,
  "part_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is Part 2, when Part 4 is on December 9, 2007?`:
```sql
                SELECT "part_2" FROM "online_episodes" WHERE "part_4"='december 9, 2007';
```
## Task
Generate a SQL query to answer the following question:
`When is Part 1, when Part 4 is on February 10, 2008?`

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

CREATE TABLE "online_episodes" (
  "episode_num" real,
  "title" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "part_5" text,
  "part_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is Part 1, when Part 4 is on February 10, 2008?`:
```sql
                SELECT "part_1" FROM "online_episodes" WHERE "part_4"='february 10, 2008';
```
## Task
Generate a SQL query to answer the following question:
`When is Part 2, when Part 5 is on January 24, 2008?`

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

CREATE TABLE "online_episodes" (
  "episode_num" real,
  "title" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "part_5" text,
  "part_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is Part 2, when Part 5 is on January 24, 2008?`:
```sql
                SELECT "part_2" FROM "online_episodes" WHERE "part_5"='january 24, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who was the finals opponent on the hard surface tournament?`

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

CREATE TABLE "singles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the finals opponent on the hard surface tournament?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_5" WHERE "surface"='hard';
```
## Task
Generate a SQL query to answer the following question:
`Which surface was played during Curitiba tournament?`

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

CREATE TABLE "singles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which surface was played during Curitiba tournament?`:
```sql
                SELECT "surface" FROM "singles_5" WHERE "tournament"='curitiba';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round for UFC 109?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round for UFC 109?`:
```sql
                SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "event"='ufc 109';
```
## Task
Generate a SQL query to answer the following question:
`What round was the opponent Manny Gamburyan?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the opponent Manny Gamburyan?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='manny gamburyan';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest week that had an attendance of less than 16,375, for a game played on November 22, 1964?`

### 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 earliest week that had an attendance of less than 16,375, for a game played on November 22, 1964?`:
```sql
                SELECT MIN("week") FROM "season_schedule" WHERE "attendance"<'16,375' AND "date"='november 22, 1964';
```
## Task
Generate a SQL query to answer the following question:
`What was the week of the game played December 6, 1964?`

### 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 week of the game played December 6, 1964?`:
```sql
                SELECT SUM("week") FROM "season_schedule" WHERE "date"='december 6, 1964';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest losses that had an against score of 2190 and more than 0 draws?`

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

CREATE TABLE "2010_ladder" (
  "bellarine_fl" 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 fewest losses that had an against score of 2190 and more than 0 draws?`:
```sql
                SELECT MIN("losses") FROM "2010_ladder" WHERE "against"=2190 AND "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of draws for teams with more than 0 byes?`

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

CREATE TABLE "2010_ladder" (
  "bellarine_fl" 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 fewest number of draws for teams with more than 0 byes?`:
```sql
                SELECT MIN("draws") FROM "2010_ladder" WHERE "byes">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of losses for Geelong Amateur, with 0 byes?`

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

CREATE TABLE "2010_ladder" (
  "bellarine_fl" 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 sum of losses for Geelong Amateur, with 0 byes?`:
```sql
                SELECT SUM("losses") FROM "2010_ladder" WHERE "bellarine_fl"='geelong amateur' AND "byes"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the number of wins for teams with more than 0 draws?`

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

CREATE TABLE "2010_ladder" (
  "bellarine_fl" 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 sum of the number of wins for teams with more than 0 draws?`:
```sql
                SELECT SUM("wins") FROM "2010_ladder" WHERE "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the Stadium that hosts the team Jacksonville Jaguars?`

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

CREATE TABLE "2008_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Stadium that hosts the team Jacksonville Jaguars?`:
```sql
                SELECT "stadium" FROM "2008_season" WHERE "host_team"='jacksonville jaguars';
```
## Task
Generate a SQL query to answer the following question:
`What stadium was used on November 13?`

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

CREATE TABLE "2008_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stadium was used on November 13?`:
```sql
                SELECT "stadium" FROM "2008_season" WHERE "date"='november 13';
```
## Task
Generate a SQL query to answer the following question:
`What is the host team with the stadium Lincoln Financial Field?`

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

CREATE TABLE "2008_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the host team with the stadium Lincoln Financial Field?`:
```sql
                SELECT "host_team" FROM "2008_season" WHERE "stadium"='lincoln financial field';
```
## Task
Generate a SQL query to answer the following question:
`What team visited the Cleveland Browns Stadium?`

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

CREATE TABLE "2008_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team visited the Cleveland Browns Stadium?`:
```sql
                SELECT "visiting_team" FROM "2008_season" WHERE "stadium"='cleveland browns stadium';
```
## Task
Generate a SQL query to answer the following question:
`What stadium did the Denver Broncos visit?`

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

CREATE TABLE "2008_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stadium did the Denver Broncos visit?`:
```sql
                SELECT "stadium" FROM "2008_season" WHERE "visiting_team"='denver broncos';
```
## Task
Generate a SQL query to answer the following question:
`What team visited the Jacksonville Municipal Stadium?`

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

CREATE TABLE "2008_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team visited the Jacksonville Municipal Stadium?`:
```sql
                SELECT "visiting_team" FROM "2008_season" WHERE "stadium"='jacksonville municipal stadium';
```
## Task
Generate a SQL query to answer the following question:
`How many people boarded and de-boarded the Amtrak in Linthicum?`

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

CREATE TABLE "list" (
  "rank" real,
  "station" text,
  "city" text,
  "state" text,
  "boardings_and_deboardings" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people boarded and de-boarded the Amtrak in Linthicum?`:
```sql
                SELECT COUNT("boardings_and_deboardings") FROM "list" WHERE "city"='linthicum';
```
## Task
Generate a SQL query to answer the following question:
`In California what was the total rank at Irvine station when the number of boarding and deboardings was less than 683,626?`

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

CREATE TABLE "list" (
  "rank" real,
  "station" text,
  "city" text,
  "state" text,
  "boardings_and_deboardings" real
);
### SQL
Given the database schema, here is the SQL query that answers `In California what was the total rank at Irvine station when the number of boarding and deboardings was less than 683,626?`:
```sql
                SELECT SUM("rank") FROM "list" WHERE "boardings_and_deboardings"<'683,626' AND "state"='california' AND "station"='irvine station';
```
## Task
Generate a SQL query to answer the following question:
`At south station what was the total rank when boarding and deboardings were smaller than 1,360,162?`

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

CREATE TABLE "list" (
  "rank" real,
  "station" text,
  "city" text,
  "state" text,
  "boardings_and_deboardings" real
);
### SQL
Given the database schema, here is the SQL query that answers `At south station what was the total rank when boarding and deboardings were smaller than 1,360,162?`:
```sql
                SELECT SUM("rank") FROM "list" WHERE "station"='south station' AND "boardings_and_deboardings"<'1,360,162';
```
## Task
Generate a SQL query to answer the following question:
`Which is the highest rank that has 8,995,551 boardings and deboardings?`

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

CREATE TABLE "list" (
  "rank" real,
  "station" text,
  "city" text,
  "state" text,
  "boardings_and_deboardings" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the highest rank that has 8,995,551 boardings and deboardings?`:
```sql
                SELECT MAX("rank") FROM "list" WHERE "boardings_and_deboardings"='8,995,551';
```
## Task
Generate a SQL query to answer the following question:
`The Europe listing of 00 0 0 (0) also has what listed as the total?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "years" text,
  "league" text,
  "fa_cup" text,
  "league_cup" text,
  "europe" text,
  "other_c" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Europe listing of 00 0 0 (0) also has what listed as the total?`:
```sql
                SELECT "total" FROM "most_appearances" WHERE "europe"='00 0 0 (0)';
```
## Task
Generate a SQL query to answer the following question:
`The league of 400 (21) has what years listed?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "years" text,
  "league" text,
  "fa_cup" text,
  "league_cup" text,
  "europe" text,
  "other_c" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `The league of 400 (21) has what years listed?`:
```sql
                SELECT "years" FROM "most_appearances" WHERE "league"='400 (21)';
```
## Task
Generate a SQL query to answer the following question:
`With a FA Cup of 0 44 0 (0), the other [C] is listed as what?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "years" text,
  "league" text,
  "fa_cup" text,
  "league_cup" text,
  "europe" text,
  "other_c" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a FA Cup of 0 44 0 (0), the other [C] is listed as what?`:
```sql
                SELECT "other_c" FROM "most_appearances" WHERE "fa_cup"='0 44 0 (0)';
```
## Task
Generate a SQL query to answer the following question:
`The Europe listing of 117 0 (8) belongs to what league?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "years" text,
  "league" text,
  "fa_cup" text,
  "league_cup" text,
  "europe" text,
  "other_c" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Europe listing of 117 0 (8) belongs to what league?`:
```sql
                SELECT "league" FROM "most_appearances" WHERE "europe"='117 0 (8)';
```
## Task
Generate a SQL query to answer the following question:
`The League Cup of 0 40 0 (6) also has what listed in the Europe column?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "years" text,
  "league" text,
  "fa_cup" text,
  "league_cup" text,
  "europe" text,
  "other_c" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `The League Cup of 0 40 0 (6) also has what listed in the Europe column?`:
```sql
                SELECT "europe" FROM "most_appearances" WHERE "league_cup"='0 40 0 (6)';
```
## Task
Generate a SQL query to answer the following question:
`The other [C] of 0 12 0 (0) belongs to what FA Cup?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "years" text,
  "league" text,
  "fa_cup" text,
  "league_cup" text,
  "europe" text,
  "other_c" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `The other [C] of 0 12 0 (0) belongs to what FA Cup?`:
```sql
                SELECT "fa_cup" FROM "most_appearances" WHERE "other_c"='0 12 0 (0)';
```