cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Wins is the lowest one that has a Season smaller than 1920, and Losses smaller than 14?`

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

CREATE TABLE "australia" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins is the lowest one that has a Season smaller than 1920, and Losses smaller than 14?`:
```sql
                SELECT MIN("wins") FROM "australia" WHERE "season"<1920 AND "losses"<14;
```
## Task
Generate a SQL query to answer the following question:
`Which date had a sport of Academics?`

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

CREATE TABLE "2011_2012" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a sport of Academics?`:
```sql
                SELECT "date" FROM "2011_2012" WHERE "sport"='academics';
```
## Task
Generate a SQL query to answer the following question:
`Which date had a site of N/A?`

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

CREATE TABLE "2011_2012" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a site of N/A?`:
```sql
                SELECT "date" FROM "2011_2012" WHERE "site"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`what was the builder in 1929`

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

CREATE TABLE "locomotives_withdrawn_from_service" (
  "name_or_designation" text,
  "wheel_arrangement" text,
  "builder" text,
  "year_built" text,
  "year_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the builder in 1929`:
```sql
                SELECT "builder" FROM "locomotives_withdrawn_from_service" WHERE "year_built"='1929';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the March 6 game, where one of the teams had 53 points.`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the March 6 game, where one of the teams had 53 points.`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "points"=53 AND "date"='march 6';
```
## Task
Generate a SQL query to answer the following question:
`For the game with 6,126 in attendance, how many points did both teams have in the standings?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the game with 6,126 in attendance, how many points did both teams have in the standings?`:
```sql
                SELECT COUNT("points") FROM "game_log" WHERE "attendance"='6,126';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the team with a St. Louis home?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the team with a St. Louis home?`:
```sql
                SELECT "record" FROM "game_log" WHERE "home"='st. louis';
```
## Task
Generate a SQL query to answer the following question:
`What country has a territory of French Guiana?`

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

CREATE TABLE "territorial_and_overseas_regions_recordh" (
  "country" text,
  "territory" text,
  "name" text,
  "birth_date" text,
  "death_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a territory of French Guiana?`:
```sql
                SELECT "country" FROM "territorial_and_overseas_regions_recordh" WHERE "territory"='french guiana';
```
## Task
Generate a SQL query to answer the following question:
`Which 2008-12 has a 2013 of A, and a Tournament of wimbledon?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008_12" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2008-12 has a 2013 of A, and a Tournament of wimbledon?`:
```sql
                SELECT "2008_12" FROM "doubles_performance_timeline" WHERE "2013"='a' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`Which 2013 has a 2007 of A, and a Tournament of french open?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008_12" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2013 has a 2007 of A, and a Tournament of french open?`:
```sql
                SELECT "2013" FROM "doubles_performance_timeline" WHERE "2007"='a' AND "tournament"='french open';
```
## Task
Generate a SQL query to answer the following question:
`Which 2013 has a 2008-12 of A, and a 2007 of A, and a Tournament of us open?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008_12" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2013 has a 2008-12 of A, and a 2007 of A, and a Tournament of us open?`:
```sql
                SELECT "2013" FROM "doubles_performance_timeline" WHERE "2008_12"='a' AND "2007"='a' AND "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`Which 2013 has a 2006 of grand slam tournaments?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008_12" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2013 has a 2006 of grand slam tournaments?`:
```sql
                SELECT "2013" FROM "doubles_performance_timeline" WHERE "2006"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which 2006 has a 2007 of A?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008_12" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2006 has a 2007 of A?`:
```sql
                SELECT "2006" FROM "doubles_performance_timeline" WHERE "2007"='a';
```
## Task
Generate a SQL query to answer the following question:
`Which 2008-12 has a 2007 of A, and a Tournament of us open?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008_12" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2008-12 has a 2007 of A, and a Tournament of us open?`:
```sql
                SELECT "2008_12" FROM "doubles_performance_timeline" WHERE "2007"='a' AND "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on April 1?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on April 1?`:
```sql
                SELECT "record" FROM "april" WHERE "date"='april 1';
```
## Task
Generate a SQL query to answer the following question:
`What's the score on April 9?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score on April 9?`:
```sql
                SELECT "score" FROM "april" WHERE "date"='april 9';
```
## Task
Generate a SQL query to answer the following question:
`Where was home on April 3?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was home on April 3?`:
```sql
                SELECT "home" FROM "april" WHERE "date"='april 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points of the team with more than 18 played?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of points of the team with more than 18 played?`:
```sql
                SELECT AVG("points") FROM "torneo_clausura" WHERE "played">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest score of the team with 19 points and less than 18 played?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest score of the team with 19 points and less than 18 played?`:
```sql
                SELECT MIN("scored") FROM "torneo_clausura" WHERE "points"=19 AND "played"<18;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of draws of the team with less than 17 points and less than 4 wins?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of draws of the team with less than 17 points and less than 4 wins?`:
```sql
                SELECT AVG("draws") FROM "torneo_clausura" WHERE "points"<17 AND "wins"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the record with an artist of Tangorodrim, category number FSR006?`

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

CREATE TABLE "catalogue" (
  "artist" text,
  "title" text,
  "release_date" text,
  "format" text,
  "cat_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the record with an artist of Tangorodrim, category number FSR006?`:
```sql
                SELECT "title" FROM "catalogue" WHERE "artist"='tangorodrim' AND "cat_num"='fsr006';
```
## Task
Generate a SQL query to answer the following question:
`What was the format of the release by Triumfall?`

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

CREATE TABLE "catalogue" (
  "artist" text,
  "title" text,
  "release_date" text,
  "format" text,
  "cat_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the format of the release by Triumfall?`:
```sql
                SELECT "format" FROM "catalogue" WHERE "artist"='triumfall';
```
## Task
Generate a SQL query to answer the following question:
`What is the category number that was released in November 2007?`

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

CREATE TABLE "catalogue" (
  "artist" text,
  "title" text,
  "release_date" text,
  "format" text,
  "cat_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the category number that was released in November 2007?`:
```sql
                SELECT "cat_num" FROM "catalogue" WHERE "release_date"='november 2007';
```
## Task
Generate a SQL query to answer the following question:
`Which is the lowest round to have a pick of 12 and position of linebacker?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the lowest round to have a pick of 12 and position of linebacker?`:
```sql
                SELECT MIN("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=12 AND "position"='linebacker';
```
## Task
Generate a SQL query to answer the following question:
`Which player was picked in round 15 with a pick smaller than 13?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was picked in round 15 with a pick smaller than 13?`:
```sql
                SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "pick_num"<13 AND "round"=15;
```
## Task
Generate a SQL query to answer the following question:
`How many picks were from Lamar College?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks were from Lamar College?`:
```sql
                SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='lamar';
```
## Task
Generate a SQL query to answer the following question:
`How many overall values have a college of Notre Dame and rounds over 2?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many overall values have a college of Notre Dame and rounds over 2?`:
```sql
                SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='notre dame' AND "round">2;
```
## Task
Generate a SQL query to answer the following question:
`What player was at Albion?`

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

CREATE TABLE "highest_individual_scores" (
  "rank" text,
  "runs" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was at Albion?`:
```sql
                SELECT "player" FROM "highest_individual_scores" WHERE "venue"='albion';
```
## Task
Generate a SQL query to answer the following question:
`Where was the venue that had 274 runs?`

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

CREATE TABLE "highest_individual_scores" (
  "rank" text,
  "runs" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the venue that had 274 runs?`:
```sql
                SELECT "venue" FROM "highest_individual_scores" WHERE "runs"='274';
```
## Task
Generate a SQL query to answer the following question:
`which athlete played against Queensland?`

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

CREATE TABLE "highest_individual_scores" (
  "rank" text,
  "runs" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `which athlete played against Queensland?`:
```sql
                SELECT "player" FROM "highest_individual_scores" WHERE "opponent"='queensland';
```
## Task
Generate a SQL query to answer the following question:
`Where is the venue with more than 245 runs?`

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

CREATE TABLE "highest_individual_scores" (
  "rank" text,
  "runs" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the venue with more than 245 runs?`:
```sql
                SELECT "venue" FROM "highest_individual_scores" WHERE "runs"='245';
```
## Task
Generate a SQL query to answer the following question:
`Where did Jack Badcock play?`

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

CREATE TABLE "highest_individual_scores" (
  "rank" text,
  "runs" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Jack Badcock play?`:
```sql
                SELECT "venue" FROM "highest_individual_scores" WHERE "player"='jack badcock';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Date of 16 november 2007?`

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

CREATE TABLE "doubles_13_6_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Date of 16 november 2007?`:
```sql
                SELECT "surface" FROM "doubles_13_6_7" WHERE "date"='16 november 2007';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for 2004 afc asian cup qualifier`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for 2004 afc asian cup qualifier`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='2004 afc asian cup qualifier';
```
## Task
Generate a SQL query to answer the following question:
`Name the venue for 23 january 2009`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for 23 january 2009`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='23 january 2009';
```
## Task
Generate a SQL query to answer the following question:
`Name the competition for khartoum`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the competition for khartoum`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "venue"='khartoum';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest ties the team had with fewer than 7 games?`

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

CREATE TABLE "world_championship_group_c_slovenia" (
  "games" real,
  "drawn" real,
  "lost" real,
  "goal_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest ties the team had with fewer than 7 games?`:
```sql
                SELECT MIN("drawn") FROM "world_championship_group_c_slovenia" WHERE "games"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the population for a county that has a median income of $69,760?`

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

CREATE TABLE "counties" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population for a county that has a median income of $69,760?`:
```sql
                SELECT "population" FROM "counties" WHERE "median_household_income"='$69,760';
```
## Task
Generate a SQL query to answer the following question:
`What county has $51,456 income per capita?`

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

CREATE TABLE "counties" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What county has $51,456 income per capita?`:
```sql
                SELECT "county" FROM "counties" WHERE "per_capita_income"='$51,456';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when attendance was 60,355?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when attendance was 60,355?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='60,355';
```
## Task
Generate a SQL query to answer the following question:
`Which Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035?`

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

CREATE TABLE "financial_performance" (
  "year_ended" text,
  "passengers_flown" real,
  "employees_average_year" real,
  "net_profit_loss_sek" real,
  "basic_eps_sek" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035?`:
```sql
                SELECT SUM("net_profit_loss_sek") FROM "financial_performance" WHERE "basic_eps_sek"=-6.58 AND "employees_average_year">'31,035';
```
## Task
Generate a SQL query to answer the following question:
`Which Passengers flown has a Net profit/loss (SEK) smaller than -6,360,000,000, and Employees (Average/Year) smaller than 34,544, and a Basic eps (SEK) of -18.2?`

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

CREATE TABLE "financial_performance" (
  "year_ended" text,
  "passengers_flown" real,
  "employees_average_year" real,
  "net_profit_loss_sek" real,
  "basic_eps_sek" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Passengers flown has a Net profit/loss (SEK) smaller than -6,360,000,000, and Employees (Average/Year) smaller than 34,544, and a Basic eps (SEK) of -18.2?`:
```sql
                SELECT SUM("passengers_flown") FROM "financial_performance" WHERE "net_profit_loss_sek"<'-6,360,000,000' AND "employees_average_year"<'34,544' AND "basic_eps_sek"=-18.2;
```
## Task
Generate a SQL query to answer the following question:
`Which average Net profit/loss (SEK) has Employees (Average/Year) larger than 18,786, and a Year ended of 2000*, and Passengers flown larger than 23,240,000?`

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

CREATE TABLE "financial_performance" (
  "year_ended" text,
  "passengers_flown" real,
  "employees_average_year" real,
  "net_profit_loss_sek" real,
  "basic_eps_sek" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Net profit/loss (SEK) has Employees (Average/Year) larger than 18,786, and a Year ended of 2000*, and Passengers flown larger than 23,240,000?`:
```sql
                SELECT AVG("net_profit_loss_sek") FROM "financial_performance" WHERE "employees_average_year">'18,786' AND "year_ended"='2000*' AND "passengers_flown">'23,240,000';
```
## Task
Generate a SQL query to answer the following question:
`How many Employees (Average/Year) have a Net profit/loss (SEK) larger than 4,936,000,000, and a Basic eps (SEK) larger than 1.06?`

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

CREATE TABLE "financial_performance" (
  "year_ended" text,
  "passengers_flown" real,
  "employees_average_year" real,
  "net_profit_loss_sek" real,
  "basic_eps_sek" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Employees (Average/Year) have a Net profit/loss (SEK) larger than 4,936,000,000, and a Basic eps (SEK) larger than 1.06?`:
```sql
                SELECT COUNT("employees_average_year") FROM "financial_performance" WHERE "net_profit_loss_sek">'4,936,000,000' AND "basic_eps_sek">1.06;
```
## Task
Generate a SQL query to answer the following question:
`What is the result when 13 is the week?`

### 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 is the result when 13 is the week?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`What average week has shea stadium as the game site, and 1979-12-09 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,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What average week has shea stadium as the game site, and 1979-12-09 as the date?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "game_site"='shea stadium' AND "date"='1979-12-09';
```
## Task
Generate a SQL query to answer the following question:
`Name the most rank for the United States with wins less than 1`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank for the United States with wins less than 1`:
```sql
                SELECT MAX("rank") FROM "leaders" WHERE "country"='united states' AND "wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`Name the most rank for wins more than 0 and events of 26`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank for wins more than 0 and events of 26`:
```sql
                SELECT MAX("rank") FROM "leaders" WHERE "events"=26 AND "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the average earnings for rank of 3 and wins less than 3`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average earnings for rank of 3 and wins less than 3`:
```sql
                SELECT AVG("earnings") FROM "leaders" WHERE "rank"=3 AND "wins"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average area of the city that has a density less than than 206.2 and an altitude of less than 85?`

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

CREATE TABLE "communes" (
  "rank" text,
  "city" text,
  "population" real,
  "area_km_2" real,
  "density_inhabitants_km_2" real,
  "altitude_mslm" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average area of the city that has a density less than than 206.2 and an altitude of less than 85?`:
```sql
                SELECT AVG("area_km_2") FROM "communes" WHERE "density_inhabitants_km_2"<206.2 AND "altitude_mslm"<85;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116?`

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

CREATE TABLE "communes" (
  "rank" text,
  "city" text,
  "population" real,
  "area_km_2" real,
  "density_inhabitants_km_2" real,
  "altitude_mslm" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116?`:
```sql
                SELECT MIN("density_inhabitants_km_2") FROM "communes" WHERE "area_km_2">16.02 AND "altitude_mslm"<116 AND "city"='alessandria';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest density of serravalle scrivia?`

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

CREATE TABLE "communes" (
  "rank" text,
  "city" text,
  "population" real,
  "area_km_2" real,
  "density_inhabitants_km_2" real,
  "altitude_mslm" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest density of serravalle scrivia?`:
```sql
                SELECT MIN("density_inhabitants_km_2") FROM "communes" WHERE "city"='serravalle scrivia';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8?`

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

CREATE TABLE "communes" (
  "rank" text,
  "city" text,
  "population" real,
  "area_km_2" real,
  "density_inhabitants_km_2" real,
  "altitude_mslm" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8?`:
```sql
                SELECT MIN("population") FROM "communes" WHERE "altitude_mslm"<197 AND "city"='alessandria' AND "density_inhabitants_km_2"<461.8;
```
## Task
Generate a SQL query to answer the following question:
`What myspace has linkedin as the site, with an orkit greater than 3?`

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

CREATE TABLE "overlap_between_multiple_social_network_" (
  "site" text,
  "bebo" real,
  "facebook" real,
  "friendster" real,
  "linked_in" real,
  "my_space" real,
  "ning" real,
  "orkut" real,
  "plaxo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What myspace has linkedin as the site, with an orkit greater than 3?`:
```sql
                SELECT AVG("my_space") FROM "overlap_between_multiple_social_network_" WHERE "site"='linkedin' AND "orkut">3;
```
## Task
Generate a SQL query to answer the following question:
`How many linkedin have Facebook as the site, with a myspace less than 64?`

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

CREATE TABLE "overlap_between_multiple_social_network_" (
  "site" text,
  "bebo" real,
  "facebook" real,
  "friendster" real,
  "linked_in" real,
  "my_space" real,
  "ning" real,
  "orkut" real,
  "plaxo" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many linkedin have Facebook as the site, with a myspace less than 64?`:
```sql
                SELECT COUNT("linked_in") FROM "overlap_between_multiple_social_network_" WHERE "site"='facebook' AND "my_space"<64;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Ning that has a bebo less than 4, an orkut less than 100, with a plaxo greater than 0?`

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

CREATE TABLE "overlap_between_multiple_social_network_" (
  "site" text,
  "bebo" real,
  "facebook" real,
  "friendster" real,
  "linked_in" real,
  "my_space" real,
  "ning" real,
  "orkut" real,
  "plaxo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Ning that has a bebo less than 4, an orkut less than 100, with a plaxo greater than 0?`:
```sql
                SELECT MAX("ning") FROM "overlap_between_multiple_social_network_" WHERE "bebo"<4 AND "orkut"<100 AND "plaxo">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average plaxo that has a myspace greater than 64, a bebo greater than 3, with 4 as the friendster?`

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

CREATE TABLE "overlap_between_multiple_social_network_" (
  "site" text,
  "bebo" real,
  "facebook" real,
  "friendster" real,
  "linked_in" real,
  "my_space" real,
  "ning" real,
  "orkut" real,
  "plaxo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average plaxo that has a myspace greater than 64, a bebo greater than 3, with 4 as the friendster?`:
```sql
                SELECT AVG("plaxo") FROM "overlap_between_multiple_social_network_" WHERE "my_space">64 AND "bebo">3 AND "friendster"=4;
```
## Task
Generate a SQL query to answer the following question:
`What album has the title I Need A Life with the label of warp records / paper bag records?`

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

CREATE TABLE "singles" (
  "year" real,
  "title" text,
  "label" text,
  "format" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What album has the title I Need A Life with the label of warp records / paper bag records?`:
```sql
                SELECT "album" FROM "singles" WHERE "label"='warp records / paper bag records' AND "title"='i need a life';
```
## Task
Generate a SQL query to answer the following question:
`What title has a Label of warp records / paper bag records?`

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

CREATE TABLE "singles" (
  "year" real,
  "title" text,
  "label" text,
  "format" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title has a Label of warp records / paper bag records?`:
```sql
                SELECT "title" FROM "singles" WHERE "label"='warp records / paper bag records';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest Average that has a 1987-88 of 55 and a Played that's larger than 114?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Average that has a 1987-88 of 55 and a Played that's larger than 114?`:
```sql
                SELECT MAX("average") FROM "relegation" WHERE "1987_88"='55' AND "played">114;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?`:
```sql
                SELECT MIN("points") FROM "relegation" WHERE "team"='san martín de tucumán' AND "played"<38;
```
## Task
Generate a SQL query to answer the following question:
`What's the 1986-87 that's got a 1988-89 that's larger than 42, and Points of 109?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1986-87 that's got a 1988-89 that's larger than 42, and Points of 109?`:
```sql
                SELECT "1986_87" FROM "relegation" WHERE "1988_89">42 AND "points"=109;
```
## Task
Generate a SQL query to answer the following question:
`What's the total of 1988-89 that has a 1986-87 of 38, and Points that's smaller than 109?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total of 1988-89 that has a 1986-87 of 38, and Points that's smaller than 109?`:
```sql
                SELECT SUM("1988_89") FROM "relegation" WHERE "1986_87"='38' AND "points"<109;
```
## Task
Generate a SQL query to answer the following question:
`What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "total">3 AND "bronze">5 AND "silver"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number for bronze with a rank of 19?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number for bronze with a rank of 19?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "rank"='19';
```
## Task
Generate a SQL query to answer the following question:
`what season had a score of 1:0`

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

CREATE TABLE "last_encounters_since_2006" (
  "season" text,
  "home" text,
  "score" text,
  "away" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what season had a score of 1:0`:
```sql
                SELECT "season" FROM "last_encounters_since_2006" WHERE "score"='1:0';
```
## Task
Generate a SQL query to answer the following question:
`indoor year is 1978, what is the record?`

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

CREATE TABLE "nasl_indoor_soccer" (
  "indoor_year" text,
  "record" text,
  "regular_season_finish" text,
  "playoffs" text,
  "avg_attend" real
);
### SQL
Given the database schema, here is the SQL query that answers `indoor year is 1978, what is the record?`:
```sql
                SELECT "record" FROM "nasl_indoor_soccer" WHERE "indoor_year"='1978';
```
## Task
Generate a SQL query to answer the following question:
`Record of 11-10-3 is what sum of game #?`

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

CREATE TABLE "december" (
  "game_num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Record of 11-10-3 is what sum of game #?`:
```sql
                SELECT SUM("game_num") FROM "december" WHERE "record"='11-10-3';
```
## Task
Generate a SQL query to answer the following question:
`Points of 31, and a Score of 1 - 5 is what home?`

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

CREATE TABLE "december" (
  "game_num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Points of 31, and a Score of 1 - 5 is what home?`:
```sql
                SELECT "home" FROM "december" WHERE "points"=31 AND "score"='1 - 5';
```
## Task
Generate a SQL query to answer the following question:
`Visitor of calgary has what record?`

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

CREATE TABLE "december" (
  "game_num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Visitor of calgary has what record?`:
```sql
                SELECT "record" FROM "december" WHERE "visitor"='calgary';
```
## Task
Generate a SQL query to answer the following question:
`Score of 2 - 2 had what points?`

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

CREATE TABLE "december" (
  "game_num" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Score of 2 - 2 had what points?`:
```sql
                SELECT "points" FROM "december" WHERE "score"='2 - 2';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was Gainsborough Trinity the Opponents with H/A of H?`

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

CREATE TABLE "second_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was Gainsborough Trinity the Opponents with H/A of H?`:
```sql
                SELECT "date" FROM "second_division" WHERE "opponents"='gainsborough trinity' AND "h_a"='h';
```
## Task
Generate a SQL query to answer the following question:
`What H/A had more than 15,000 in Attendance and Blackpool as Opponents?`

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

CREATE TABLE "second_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What H/A had more than 15,000 in Attendance and Blackpool as Opponents?`:
```sql
                SELECT "h_a" FROM "second_division" WHERE "attendance">'15,000' AND "opponents"='blackpool';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance when Lincoln City was the Opponents with H/A of A?`

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

CREATE TABLE "second_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance when Lincoln City was the Opponents with H/A of A?`:
```sql
                SELECT COUNT("attendance") FROM "second_division" WHERE "opponents"='lincoln city' AND "h_a"='a';
```
## Task
Generate a SQL query to answer the following question:
`what Area has the frequency of 100.3 and an On-air ID of yass fm?`

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

CREATE TABLE "defunct_callsigns" (
  "callsign" text,
  "area_served" text,
  "frequency" text,
  "band" text,
  "on_air_id" text,
  "purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `what Area has the frequency of 100.3 and an On-air ID of yass fm?`:
```sql
                SELECT "area_served" FROM "defunct_callsigns" WHERE "frequency"='100.3' AND "on_air_id"='yass fm';
```
## Task
Generate a SQL query to answer the following question:
`What is the Callsign with an Area of tamworth and frequency of 0 88.9?`

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

CREATE TABLE "defunct_callsigns" (
  "callsign" text,
  "area_served" text,
  "frequency" text,
  "band" text,
  "on_air_id" text,
  "purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Callsign with an Area of tamworth and frequency of 0 88.9?`:
```sql
                SELECT "callsign" FROM "defunct_callsigns" WHERE "area_served"='tamworth' AND "frequency"='0 88.9';
```
## Task
Generate a SQL query to answer the following question:
`What is the Purpose of the Area Braidwood?`

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

CREATE TABLE "defunct_callsigns" (
  "callsign" text,
  "area_served" text,
  "frequency" text,
  "band" text,
  "on_air_id" text,
  "purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Purpose of the Area Braidwood?`:
```sql
                SELECT "purpose" FROM "defunct_callsigns" WHERE "area_served"='braidwood';
```
## Task
Generate a SQL query to answer the following question:
`What Band has a Frequency of 0 99.7 in the Area of Newcastle?`

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

CREATE TABLE "defunct_callsigns" (
  "callsign" text,
  "area_served" text,
  "frequency" text,
  "band" text,
  "on_air_id" text,
  "purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Band has a Frequency of 0 99.7 in the Area of Newcastle?`:
```sql
                SELECT "band" FROM "defunct_callsigns" WHERE "frequency"='0 99.7' AND "area_served"='newcastle';
```