cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Tell me the name for men's featherweight and sport of weightlifting`

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

CREATE TABLE "medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the name for men's featherweight and sport of weightlifting`:
```sql
                SELECT "name" FROM "medalists" WHERE "event"='men''s featherweight' AND "sport"='weightlifting';
```
## Task
Generate a SQL query to answer the following question:
`Which details of journey had simon hoggart as a narrator?`

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

CREATE TABLE "great_little_railways" (
  "episode_no" real,
  "episode_title" text,
  "uk_broadcast_date" text,
  "narrator" text,
  "writer" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which details of journey had simon hoggart as a narrator?`:
```sql
                SELECT "details_of_journey" FROM "great_little_railways" WHERE "narrator"='simon hoggart';
```
## Task
Generate a SQL query to answer the following question:
`Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?`

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

CREATE TABLE "great_little_railways" (
  "episode_no" real,
  "episode_title" text,
  "uk_broadcast_date" text,
  "narrator" text,
  "writer" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?`:
```sql
                SELECT "countries_visited" FROM "great_little_railways" WHERE "episode_no"<7 AND "writer"='ray gosling';
```
## Task
Generate a SQL query to answer the following question:
`How tall is Zipp Duncan?`

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

CREATE TABLE "louisville" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is Zipp Duncan?`:
```sql
                SELECT "height" FROM "louisville" WHERE "name"='zipp duncan';
```
## Task
Generate a SQL query to answer the following question:
`What is the average games of Tony Dixon?`

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

CREATE TABLE "louisville" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average games of Tony Dixon?`:
```sql
                SELECT AVG("games") FROM "louisville" WHERE "name"='tony dixon';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of wins where the top 25 is 6, top 10 is more than 2, and the event number is less than 19?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of wins where the top 25 is 6, top 10 is more than 2, and the event number is less than 19?`:
```sql
                SELECT SUM("wins") FROM "summary" WHERE "top_25"=6 AND "top_10">2 AND "events"<19;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0?`:
```sql
                SELECT SUM("cuts_made") FROM "summary" WHERE "top_25"<6 AND "top_5">0;
```
## Task
Generate a SQL query to answer the following question:
`How many top-10 numbers had a top 25 of more than 6 with less than 2 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many top-10 numbers had a top 25 of more than 6 with less than 2 wins?`:
```sql
                SELECT COUNT("top_10") FROM "summary" WHERE "top_25">6 AND "wins"<2;
```
## Task
Generate a SQL query to answer the following question:
`Name the 2011 with 2010 of 1r and 2012 of sf`

### 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,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 with 2010 of 1r and 2012 of sf`:
```sql
                SELECT "2011" FROM "doubles_performance_timeline" WHERE "2010"='1r' AND "2012"='sf';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2008 with 2012 of 2r and 2006 of 2r`

### 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,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2008 with 2012 of 2r and 2006 of 2r`:
```sql
                SELECT "2008" FROM "doubles_performance_timeline" WHERE "2012"='2r' AND "2006"='2r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2008 for 2012 of sf`

### 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,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2008 for 2012 of sf`:
```sql
                SELECT "2008" FROM "doubles_performance_timeline" WHERE "2012"='sf';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2013 for 2011 of 1r`

### 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,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2013 for 2011 of 1r`:
```sql
                SELECT "2013" FROM "doubles_performance_timeline" WHERE "2011"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2011 with 2006 of 2r and 2008 of 2r`

### 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,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 with 2006 of 2r and 2008 of 2r`:
```sql
                SELECT "2011" FROM "doubles_performance_timeline" WHERE "2006"='2r' AND "2008"='2r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2012 with 2013 of 2r and 2009 of 3r`

### 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,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2012 with 2013 of 2r and 2009 of 3r`:
```sql
                SELECT "2012" FROM "doubles_performance_timeline" WHERE "2013"='2r' AND "2009"='3r';
```
## Task
Generate a SQL query to answer the following question:
`How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0?`

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

CREATE TABLE "michigan_48_ohio_northern_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0?`:
```sql
                SELECT COUNT("field_goals") FROM "michigan_48_ohio_northern_0" WHERE "points">5 AND "touchdowns">2 AND "extra_points"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many Touchdowns have Extra points larger than 0, and Points of 48?`

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

CREATE TABLE "michigan_48_ohio_northern_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Touchdowns have Extra points larger than 0, and Points of 48?`:
```sql
                SELECT COUNT("touchdowns") FROM "michigan_48_ohio_northern_0" WHERE "extra_points">0 AND "points"=48;
```
## Task
Generate a SQL query to answer the following question:
`Which Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0?`

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

CREATE TABLE "michigan_48_ohio_northern_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0?`:
```sql
                SELECT AVG("touchdowns") FROM "michigan_48_ohio_northern_0" WHERE "extra_points"<5 AND "player"='clark' AND "field_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Points have Touchdowns larger than 0, and an Extra points smaller than 0?`

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

CREATE TABLE "michigan_48_ohio_northern_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have Touchdowns larger than 0, and an Extra points smaller than 0?`:
```sql
                SELECT SUM("points") FROM "michigan_48_ohio_northern_0" WHERE "touchdowns">0 AND "extra_points"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Semifinalists has a Champions of michael chang 6-0 6-4?`

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

CREATE TABLE "september" (
  "week_of" text,
  "tournament" text,
  "champions" text,
  "runners_up" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Semifinalists has a Champions of michael chang 6-0 6-4?`:
```sql
                SELECT "semifinalists" FROM "september" WHERE "champions"='michael chang 6-0 6-4';
```
## Task
Generate a SQL query to answer the following question:
`Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi?`

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

CREATE TABLE "september" (
  "week_of" text,
  "tournament" text,
  "champions" text,
  "runners_up" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi?`:
```sql
                SELECT "runners_up" FROM "september" WHERE "semifinalists"='guillermo pérez-roldán andrea gaudenzi';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the least season with level less than 1`

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

CREATE TABLE "club_career_stats" (
  "season" real,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the least season with level less than 1`:
```sql
                SELECT MIN("season") FROM "club_career_stats" WHERE "level"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which 2007/ 08 has a 2010/ 11 of not held, and a 2011/ 12 of not held, and a 2008/ 09 of not held, and a 2006/ 07 of lq?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007/ 08 has a 2010/ 11 of not held, and a 2011/ 12 of not held, and a 2008/ 09 of not held, and a 2006/ 07 of lq?`:
```sql
                SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2010_11"='not held' AND "2011_12"='not held' AND "2008_09"='not held' AND "2006_07"='lq';
```
## Task
Generate a SQL query to answer the following question:
`Which 2009/10 has a 2005/06 of not held, and a 2010/11 of not held?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2009/10 has a 2005/06 of not held, and a 2010/11 of not held?`:
```sql
                SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2005_06"='not held' AND "2010_11"='not held';
```
## Task
Generate a SQL query to answer the following question:
`Which 2011/ 12 has a 2006/ 07 of not held, and a 2008/ 09 of not held, and a 2012/ 13 of dnq?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011/ 12 has a 2006/ 07 of not held, and a 2008/ 09 of not held, and a 2012/ 13 of dnq?`:
```sql
                SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2006_07"='not held' AND "2008_09"='not held' AND "2012_13"='dnq';
```
## Task
Generate a SQL query to answer the following question:
`Which 2011/ 12 has a 2010/ 11 of A, and a 2007/ 08 of not held, and a 2012/ 13 of lq?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011/ 12 has a 2010/ 11 of A, and a 2007/ 08 of not held, and a 2012/ 13 of lq?`:
```sql
                SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2010_11"='a' AND "2007_08"='not held' AND "2012_13"='lq';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007/ 08 has a 2005/ 06 of A, and a 2009/ 10 of A, and a 2012/ 13 of A?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007/ 08 has a 2005/ 06 of A, and a 2009/ 10 of A, and a 2012/ 13 of A?`:
```sql
                SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2005_06"='a' AND "2009_10"='a' AND "2012_13"='a';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007/ 08 has a 2011/ 12 of ur?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007/ 08 has a 2011/ 12 of ur?`:
```sql
                SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2011_12"='ur';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on September 11, 1983?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance on September 11, 1983?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='september 11, 1983';
```
## Task
Generate a SQL query to answer the following question:
`What was the Opponent during the game with a Result of W 37-21?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Opponent during the game with a Result of W 37-21?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='w 37-21';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result on Week 8?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result on Week 8?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of games with less than 1 loss?`

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

CREATE TABLE "world_championship_group_d_belgium" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of games with less than 1 loss?`:
```sql
                SELECT MIN("games") FROM "world_championship_group_d_belgium" WHERE "lost"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the nationality of the skater with 108.8 points?`

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

CREATE TABLE "men" (
  "rank" real,
  "name" text,
  "club" text,
  "nation" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nationality of the skater with 108.8 points?`:
```sql
                SELECT "nation" FROM "men" WHERE "points"=108.8;
```
## Task
Generate a SQL query to answer the following question:
`How many points for the skater from club btsc?`

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

CREATE TABLE "men" (
  "rank" real,
  "name" text,
  "club" text,
  "nation" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for the skater from club btsc?`:
```sql
                SELECT COUNT("points") FROM "men" WHERE "club"='btsc';
```
## Task
Generate a SQL query to answer the following question:
`Which Original title has a Year of 1983, and a Country of italy?`

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

CREATE TABLE "films_directed_by_tarkovsky" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Original title has a Year of 1983, and a Country of italy?`:
```sql
                SELECT "original_title" FROM "films_directed_by_tarkovsky" WHERE "year"=1983 AND "country"='italy';
```
## Task
Generate a SQL query to answer the following question:
`How many years have an Original title of иваново детство?`

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

CREATE TABLE "films_directed_by_tarkovsky" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have an Original title of иваново детство?`:
```sql
                SELECT COUNT("year") FROM "films_directed_by_tarkovsky" WHERE "original_title"='иваново детство';
```
## Task
Generate a SQL query to answer the following question:
`Which Length has a Country of soviet union, and a Year larger than 1975?`

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

CREATE TABLE "films_directed_by_tarkovsky" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Length has a Country of soviet union, and a Year larger than 1975?`:
```sql
                SELECT "length" FROM "films_directed_by_tarkovsky" WHERE "country"='soviet union' AND "year">1975;
```
## Task
Generate a SQL query to answer the following question:
`What is listed as the lowest Year with a Wins that's smaller than 0?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed as the lowest Year with a Wins that's smaller than 0?`:
```sql
                SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the Wins with a Year of 1989?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Wins with a Year of 1989?`:
```sql
                SELECT "wins" FROM "motorcycle_grand_prix_results" WHERE "year"=1989;
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the Class that's got a Team of Cagiva and Points of 4?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Class that's got a Team of Cagiva and Points of 4?`:
```sql
                SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "team"='cagiva' AND "points"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many km2  has a Population 2001 Census larger than 274,095, and a District Headquarters of jharsuguda?`

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

CREATE TABLE "population" (
  "district" text,
  "district_headquarters" text,
  "area_km_2" real,
  "population_1991_census" real,
  "population_2001_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many km2  has a Population 2001 Census larger than 274,095, and a District Headquarters of jharsuguda?`:
```sql
                SELECT COUNT("area_km_2") FROM "population" WHERE "population_2001_census">'274,095' AND "district_headquarters"='jharsuguda';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Population 2001 Census that has 476,815 in Population 1991 Census?`

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

CREATE TABLE "population" (
  "district" text,
  "district_headquarters" text,
  "area_km_2" real,
  "population_1991_census" real,
  "population_2001_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Population 2001 Census that has 476,815 in Population 1991 Census?`:
```sql
                SELECT SUM("population_2001_census") FROM "population" WHERE "population_1991_census"='476,815';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Population 2001 Census that has  jharsuguda District Headquarters with an Area smaller than 2,081?`

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

CREATE TABLE "population" (
  "district" text,
  "district_headquarters" text,
  "area_km_2" real,
  "population_1991_census" real,
  "population_2001_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Population 2001 Census that has  jharsuguda District Headquarters with an Area smaller than 2,081?`:
```sql
                SELECT COUNT("population_2001_census") FROM "population" WHERE "district_headquarters"='jharsuguda' AND "area_km_2"<'2,081';
```
## Task
Generate a SQL query to answer the following question:
`What played has 3 as the losing bonus?`

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

CREATE TABLE "2011_2012_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
);
### SQL
Given the database schema, here is the SQL query that answers `What played has 3 as the losing bonus?`:
```sql
                SELECT "played" FROM "2011_2012_table" WHERE "losing_bonus"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the try bonus that has llangefni rfc as the club?`

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

CREATE TABLE "2011_2012_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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the try bonus that has llangefni rfc as the club?`:
```sql
                SELECT "try_bonus" FROM "2011_2012_table" WHERE "club"='llangefni rfc';
```
## Task
Generate a SQL query to answer the following question:
`What played has 247 as the points?`

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

CREATE TABLE "2011_2012_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
);
### SQL
Given the database schema, here is the SQL query that answers `What played has 247 as the points?`:
```sql
                SELECT "played" FROM "2011_2012_table" WHERE "points_for"='247';
```
## Task
Generate a SQL query to answer the following question:
`What try bonus has 19 as the tries against?`

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

CREATE TABLE "2011_2012_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
);
### SQL
Given the database schema, here is the SQL query that answers `What try bonus has 19 as the tries against?`:
```sql
                SELECT "try_bonus" FROM "2011_2012_table" WHERE "tries_against"='19';
```
## Task
Generate a SQL query to answer the following question:
`What points has 18 for the played and bala rfc as the club?`

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

CREATE TABLE "2011_2012_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
);
### SQL
Given the database schema, here is the SQL query that answers `What points has 18 for the played and bala rfc as the club?`:
```sql
                SELECT "points_for" FROM "2011_2012_table" WHERE "played"='18' AND "club"='bala rfc';
```
## Task
Generate a SQL query to answer the following question:
`What try bonus has 18 as the played of and 204 as the points?`

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

CREATE TABLE "2011_2012_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
);
### SQL
Given the database schema, here is the SQL query that answers `What try bonus has 18 as the played of and 204 as the points?`:
```sql
                SELECT "try_bonus" FROM "2011_2012_table" WHERE "played"='18' AND "points_for"='204';
```
## Task
Generate a SQL query to answer the following question:
`What record has montreal as the visitor, and february 2 as the date?`

### 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 record has montreal as the visitor, and february 2 as the date?`:
```sql
                SELECT "record" FROM "game_log" WHERE "visitor"='montreal' AND "date"='february 2';
```
## Task
Generate a SQL query to answer the following question:
`What record has February 25 as the date?`

### 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 record has February 25 as the date?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='february 25';
```
## Task
Generate a SQL query to answer the following question:
`What date has boston as the visitor?`

### 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 date has boston as the visitor?`:
```sql
                SELECT "date" FROM "game_log" WHERE "visitor"='boston';
```
## Task
Generate a SQL query to answer the following question:
`What score has vancouver as the home, and february 16 as the date?`

### 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 score has vancouver as the home, and february 16 as the date?`:
```sql
                SELECT "score" FROM "game_log" WHERE "home"='vancouver' AND "date"='february 16';
```
## Task
Generate a SQL query to answer the following question:
`Team of corinthians, and a Lost larger than 15 has which highest drawn?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Team of corinthians, and a Lost larger than 15 has which highest drawn?`:
```sql
                SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "team"='corinthians' AND "lost">15;
```
## Task
Generate a SQL query to answer the following question:
`Difference of - 20, and a Position smaller than 17 is the highest against?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Difference of - 20, and a Position smaller than 17 is the highest against?`:
```sql
                SELECT MAX("against") FROM "campeonato_brasileiro_s_rie_a" WHERE "difference"='- 20' AND "position"<17;
```
## Task
Generate a SQL query to answer the following question:
`Against smaller than 53, and a Drawn smaller than 10, and a Played smaller than 38 has what average points?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Against smaller than 53, and a Drawn smaller than 10, and a Played smaller than 38 has what average points?`:
```sql
                SELECT AVG("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "against"<53 AND "drawn"<10 AND "played"<38;
```
## Task
Generate a SQL query to answer the following question:
`Which score was for Toronto Maple Leafs at home on November 12?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score was for Toronto Maple Leafs at home on November 12?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "home"='toronto maple leafs' AND "date"='november 12';
```
## Task
Generate a SQL query to answer the following question:
`Which home team had a visitor of Chicago Black Hawks with a score of 2–3?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had a visitor of Chicago Black Hawks with a score of 2–3?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "visitor"='chicago black hawks' AND "score"='2–3';
```
## Task
Generate a SQL query to answer the following question:
`Who was home on November 26?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was home on November 26?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "date"='november 26';
```
## Task
Generate a SQL query to answer the following question:
`What was the visitor with a record of 5–8–4?`

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

CREATE TABLE "regular_season" (
  "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 visitor with a record of 5–8–4?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "record"='5–8–4';
```
## Task
Generate a SQL query to answer the following question:
`What was the average rank of a player with more than 52 points, fewer than 10 draws, a goal loss under 44, and a loss under 15?`

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

CREATE TABLE "league_table" (
  "rank" real,
  "name" text,
  "point" real,
  "played" real,
  "draw" real,
  "lose" real,
  "goal_in" real,
  "goal_loss" real,
  "goal_diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average rank of a player with more than 52 points, fewer than 10 draws, a goal loss under 44, and a loss under 15?`:
```sql
                SELECT AVG("rank") FROM "league_table" WHERE "point">52 AND "draw"<10 AND "goal_loss"<44 AND "lose"<15;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of lose for a player named Santos with more than 45 points?`

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

CREATE TABLE "league_table" (
  "rank" real,
  "name" text,
  "point" real,
  "played" real,
  "draw" real,
  "lose" real,
  "goal_in" real,
  "goal_loss" real,
  "goal_diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of lose for a player named Santos with more than 45 points?`:
```sql
                SELECT MAX("lose") FROM "league_table" WHERE "name"='santos' AND "point">45;
```
## Task
Generate a SQL query to answer the following question:
`What report has a score of 0-0 with Sydney FC?`

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

CREATE TABLE "pre_season_cup_group_stage" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What report has a score of 0-0 with Sydney FC?`:
```sql
                SELECT "report" FROM "pre_season_cup_group_stage" WHERE "score"='0-0' AND "away_team"='sydney fc';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the score 0-0?`

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

CREATE TABLE "pre_season_cup_group_stage" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the score 0-0?`:
```sql
                SELECT "date" FROM "pre_season_cup_group_stage" WHERE "score"='0-0';
```
## Task
Generate a SQL query to answer the following question:
`Which home team had the score 1-3?`

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

CREATE TABLE "pre_season_cup_group_stage" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had the score 1-3?`:
```sql
                SELECT "home_team" FROM "pre_season_cup_group_stage" WHERE "score"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`Where did the away team have round 2?`

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

CREATE TABLE "pre_season_cup_group_stage" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the away team have round 2?`:
```sql
                SELECT "venue" FROM "pre_season_cup_group_stage" WHERE "away_team"='round 2';
```
## Task
Generate a SQL query to answer the following question:
`When did the venue of round 3 happen?`

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

CREATE TABLE "pre_season_cup_group_stage" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the venue of round 3 happen?`:
```sql
                SELECT "date" FROM "pre_season_cup_group_stage" WHERE "venue"='round 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest density of a town with a 13,708 2011 population census ?`

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

CREATE TABLE "lg_as" (
  "local_government_area" text,
  "principal_town" text,
  "land_area_km" real,
  "population_2011_census" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest density of a town with a 13,708 2011 population census ?`:
```sql
                SELECT MIN("density") FROM "lg_as" WHERE "population_2011_census"='13,708';
```
## Task
Generate a SQL query to answer the following question:
`specific orbital energy of −29.8 mj/kg has what orbit?`

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

CREATE TABLE "escape_velocities_at_altitude" (
  "orbit" text,
  "center_to_center_distance" text,
  "altitude_above_the_earth_s_surface" text,
  "orbital_period" text,
  "specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `specific orbital energy of −29.8 mj/kg has what orbit?`:
```sql
                SELECT "orbit" FROM "escape_velocities_at_altitude" WHERE "specific_orbital_energy"='−29.8 mj/kg';
```
## Task
Generate a SQL query to answer the following question:
`altitude above the Earth's surface of 500 to 39,900 km has what orbital period?`

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

CREATE TABLE "escape_velocities_at_altitude" (
  "orbit" text,
  "center_to_center_distance" text,
  "altitude_above_the_earth_s_surface" text,
  "orbital_period" text,
  "specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `altitude above the Earth's surface of 500 to 39,900 km has what orbital period?`:
```sql
                SELECT "orbital_period" FROM "escape_velocities_at_altitude" WHERE "altitude_above_the_earth_s_surface"='500 to 39,900 km';
```
## Task
Generate a SQL query to answer the following question:
`specific orbital energy of −0.5 mj/kg is what altitude above the earth's surface?`

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

CREATE TABLE "escape_velocities_at_altitude" (
  "orbit" text,
  "center_to_center_distance" text,
  "altitude_above_the_earth_s_surface" text,
  "orbital_period" text,
  "specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `specific orbital energy of −0.5 mj/kg is what altitude above the earth's surface?`:
```sql
                SELECT "altitude_above_the_earth_s_surface" FROM "escape_velocities_at_altitude" WHERE "specific_orbital_energy"='−0.5 mj/kg';
```
## Task
Generate a SQL query to answer the following question:
`Earth's surface of 357,000 to 399,000 km has what orbit altitude above?`

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

CREATE TABLE "escape_velocities_at_altitude" (
  "orbit" text,
  "center_to_center_distance" text,
  "altitude_above_the_earth_s_surface" text,
  "orbital_period" text,
  "specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Earth's surface of 357,000 to 399,000 km has what orbit altitude above?`:
```sql
                SELECT "orbit" FROM "escape_velocities_at_altitude" WHERE "altitude_above_the_earth_s_surface"='357,000 to 399,000 km';
```
## Task
Generate a SQL query to answer the following question:
`Orbital period of 89 to 128 min has what specific orbital energy?`

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

CREATE TABLE "escape_velocities_at_altitude" (
  "orbit" text,
  "center_to_center_distance" text,
  "altitude_above_the_earth_s_surface" text,
  "orbital_period" text,
  "specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Orbital period of 89 to 128 min has what specific orbital energy?`:
```sql
                SELECT "specific_orbital_energy" FROM "escape_velocities_at_altitude" WHERE "orbital_period"='89 to 128 min';
```
## Task
Generate a SQL query to answer the following question:
`center-to-center distance of 6,900 to 46,300 km involves which orbital period?`

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

CREATE TABLE "escape_velocities_at_altitude" (
  "orbit" text,
  "center_to_center_distance" text,
  "altitude_above_the_earth_s_surface" text,
  "orbital_period" text,
  "specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `center-to-center distance of 6,900 to 46,300 km involves which orbital period?`:
```sql
                SELECT "orbital_period" FROM "escape_velocities_at_altitude" WHERE "center_to_center_distance"='6,900 to 46,300 km';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest FA Cup for a Malaysia Cup of 0?`

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

CREATE TABLE "scorers" (
  "player" text,
  "league" real,
  "malaysia_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest FA Cup for a Malaysia Cup of 0?`:
```sql
                SELECT MIN("fa_cup") FROM "scorers" WHERE "malaysia_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is Zamri Hassan's lowest Malaysia Cup when there were an FA Cup of 0?`

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

CREATE TABLE "scorers" (
  "player" text,
  "league" real,
  "malaysia_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Zamri Hassan's lowest Malaysia Cup when there were an FA Cup of 0?`:
```sql
                SELECT MIN("malaysia_cup") FROM "scorers" WHERE "player"='zamri hassan' AND "fa_cup"<0;
```