cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45?`:
```sql
                SELECT "league_goals" FROM "appearances_and_goals" WHERE "fa_cup_goals">0 AND "fa_cup_apps"='2' AND "league_apps"='45';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?`:
```sql
                SELECT COUNT("total_goals") FROM "appearances_and_goals" WHERE "total_apps"='1' AND "name"='bob mountain' AND "fa_cup_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance for the match against west ham united at the venue of a?`

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

CREATE TABLE "fa_premier_league" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance for the match against west ham united at the venue of a?`:
```sql
                SELECT MAX("attendance") FROM "fa_premier_league" WHERE "venue"='a' AND "opponent"='west ham united';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Score of 67?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Score of 67?`:
```sql
                SELECT "country" FROM "first_round" WHERE "score"=67;
```
## Task
Generate a SQL query to answer the following question:
`Which To par has a Player of momoko ueda?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has a Player of momoko ueda?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "player"='momoko ueda';
```
## Task
Generate a SQL query to answer the following question:
`Which To par has a Player of johanna head?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has a Player of johanna head?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "player"='johanna head';
```
## Task
Generate a SQL query to answer the following question:
`What is the notes for the team from Denmark?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the notes for the team from Denmark?`:
```sql
                SELECT "notes" FROM "semifinal_a_b_2" WHERE "country"='denmark';
```
## Task
Generate a SQL query to answer the following question:
`Which athlete had a rank of 6 and notes of sc/d?`

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

CREATE TABLE "quarterfinal_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which athlete had a rank of 6 and notes of sc/d?`:
```sql
                SELECT "athlete" FROM "quarterfinal_2" WHERE "notes"='sc/d' AND "rank"=6;
```
## Task
Generate a SQL query to answer the following question:
`Which country is the athlete latt shwe zin with notes of sc/d from?`

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

CREATE TABLE "quarterfinal_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is the athlete latt shwe zin with notes of sc/d from?`:
```sql
                SELECT "country" FROM "quarterfinal_2" WHERE "notes"='sc/d' AND "athlete"='latt shwe zin';
```
## Task
Generate a SQL query to answer the following question:
`What's the HR number when the LMS number is 14758?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the HR number when the LMS number is 14758?`:
```sql
                SELECT "hr_no" FROM "numbers_and_names" WHERE "lms_no"=14758;
```
## Task
Generate a SQL query to answer the following question:
`What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?`:
```sql
                SELECT AVG("cr_no") FROM "numbers_and_names" WHERE "works"='hawthorn leslie 3100' AND "lms_no"<14761;
```
## Task
Generate a SQL query to answer the following question:
`What's the HR Number when the LMS number is 14757 and has a built of 9/1915?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the HR Number when the LMS number is 14757 and has a built of 9/1915?`:
```sql
                SELECT "hr_no" FROM "numbers_and_names" WHERE "built"='9/1915' AND "lms_no"=14757;
```
## Task
Generate a SQL query to answer the following question:
`What's the built date when the CR number is more than 940 and the LMS number is 14760?`

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

CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the built date when the CR number is more than 940 and the LMS number is 14760?`:
```sql
                SELECT "built" FROM "numbers_and_names" WHERE "cr_no">940 AND "lms_no"=14760;
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team of the event on Thursday, December 11 with Visitor Modo Hockey?`

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

CREATE TABLE "game_log" (
  "round" real,
  "date" text,
  "home" text,
  "result" text,
  "visitor" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team of the event on Thursday, December 11 with Visitor Modo Hockey?`:
```sql
                SELECT "home" FROM "game_log" WHERE "visitor"='modo hockey' AND "date"='thursday, december 11';
```
## Task
Generate a SQL query to answer the following question:
`What is the traditional Chinese name for the record titled Sunrise?`

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

CREATE TABLE "studio" (
  "albumnum" text,
  "english_title" text,
  "chinese_traditional" text,
  "chinese_simplified" text,
  "release_date" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the traditional Chinese name for the record titled Sunrise?`:
```sql
                SELECT "chinese_traditional" FROM "studio" WHERE "english_title"='sunrise';
```
## Task
Generate a SQL query to answer the following question:
`What would be the traditional Chinese name tat is simplified as 崇拜?`

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

CREATE TABLE "studio" (
  "albumnum" text,
  "english_title" text,
  "chinese_traditional" text,
  "chinese_simplified" text,
  "release_date" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What would be the traditional Chinese name tat is simplified as 崇拜?`:
```sql
                SELECT "chinese_traditional" FROM "studio" WHERE "chinese_simplified"='崇拜';
```
## Task
Generate a SQL query to answer the following question:
`What traditional Chinese name would the Rock Records release Grown up Overnight be given?`

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

CREATE TABLE "studio" (
  "albumnum" text,
  "english_title" text,
  "chinese_traditional" text,
  "chinese_simplified" text,
  "release_date" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What traditional Chinese name would the Rock Records release Grown up Overnight be given?`:
```sql
                SELECT "chinese_traditional" FROM "studio" WHERE "label"='rock records' AND "english_title"='grown up overnight';
```
## Task
Generate a SQL query to answer the following question:
`What is the traditional Chinese name for the record Beautiful?`

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

CREATE TABLE "studio" (
  "albumnum" text,
  "english_title" text,
  "chinese_traditional" text,
  "chinese_simplified" text,
  "release_date" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the traditional Chinese name for the record Beautiful?`:
```sql
                SELECT "chinese_traditional" FROM "studio" WHERE "english_title"='beautiful';
```
## Task
Generate a SQL query to answer the following question:
`What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name?`

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

CREATE TABLE "studio" (
  "albumnum" text,
  "english_title" text,
  "chinese_traditional" text,
  "chinese_simplified" text,
  "release_date" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name?`:
```sql
                SELECT "albumnum" FROM "studio" WHERE "chinese_simplified"='情歌没有告诉你';
```
## Task
Generate a SQL query to answer the following question:
`What is the simplified Chinese name for the 9th album?`

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

CREATE TABLE "studio" (
  "albumnum" text,
  "english_title" text,
  "chinese_traditional" text,
  "chinese_simplified" text,
  "release_date" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the simplified Chinese name for the 9th album?`:
```sql
                SELECT "chinese_simplified" FROM "studio" WHERE "albumnum"='9th';
```
## Task
Generate a SQL query to answer the following question:
`Which Eliminated has a Tag Team of jindrak and cade?`

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

CREATE TABLE "tag_team_turmoil_match" (
  "eliminated" text,
  "tag_team" text,
  "entered" real,
  "eliminated_by" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Eliminated has a Tag Team of jindrak and cade?`:
```sql
                SELECT "eliminated_by" FROM "tag_team_turmoil_match" WHERE "tag_team"='jindrak and cade';
```
## Task
Generate a SQL query to answer the following question:
`Which Eliminated has an Entered smaller than 2?`

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

CREATE TABLE "tag_team_turmoil_match" (
  "eliminated" text,
  "tag_team" text,
  "entered" real,
  "eliminated_by" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Eliminated has an Entered smaller than 2?`:
```sql
                SELECT "eliminated_by" FROM "tag_team_turmoil_match" WHERE "entered"<2;
```
## Task
Generate a SQL query to answer the following question:
`Name the Tag Team with Entered of 6?`

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

CREATE TABLE "tag_team_turmoil_match" (
  "eliminated" text,
  "tag_team" text,
  "entered" real,
  "eliminated_by" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Tag Team with Entered of 6?`:
```sql
                SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "entered"=6;
```
## Task
Generate a SQL query to answer the following question:
`Name Tag Team with a Eliminated of 5?`

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

CREATE TABLE "tag_team_turmoil_match" (
  "eliminated" text,
  "tag_team" text,
  "entered" real,
  "eliminated_by" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name Tag Team with a Eliminated of 5?`:
```sql
                SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "eliminated"='5';
```
## Task
Generate a SQL query to answer the following question:
`Name the Tag Team with a Time of 03:34?`

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

CREATE TABLE "tag_team_turmoil_match" (
  "eliminated" text,
  "tag_team" text,
  "entered" real,
  "eliminated_by" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Tag Team with a Time of 03:34?`:
```sql
                SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "time"='03:34';
```
## Task
Generate a SQL query to answer the following question:
`Name the highest Entered of Eliminated by of rosey and the hurricane?`

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

CREATE TABLE "tag_team_turmoil_match" (
  "eliminated" text,
  "tag_team" text,
  "entered" real,
  "eliminated_by" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest Entered of Eliminated by of rosey and the hurricane?`:
```sql
                SELECT MAX("entered") FROM "tag_team_turmoil_match" WHERE "eliminated_by"='rosey and the hurricane';
```
## Task
Generate a SQL query to answer the following question:
`Which Episodes have a TV Station of ntv, and a Japanese Title of あいのうた?`

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

CREATE TABLE "2005_fall_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Episodes have a TV Station of ntv, and a Japanese Title of あいのうた?`:
```sql
                SELECT AVG("episodes") FROM "2005_fall_season" WHERE "tv_station"='ntv' AND "japanese_title"='あいのうた';
```
## Task
Generate a SQL query to answer the following question:
`Which TV Station has Average Ratings of 16.89%?`

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

CREATE TABLE "2005_fall_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which TV Station has Average Ratings of 16.89%?`:
```sql
                SELECT "tv_station" FROM "2005_fall_season" WHERE "average_ratings"='16.89%';
```
## Task
Generate a SQL query to answer the following question:
`Which Episodes have a TV Station of tbs, and a Japanese Title of 今夜ひとりのベッドで?`

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

CREATE TABLE "2005_fall_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Episodes have a TV Station of tbs, and a Japanese Title of 今夜ひとりのベッドで?`:
```sql
                SELECT MAX("episodes") FROM "2005_fall_season" WHERE "tv_station"='tbs' AND "japanese_title"='今夜ひとりのベッドで';
```
## Task
Generate a SQL query to answer the following question:
`Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?`

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

CREATE TABLE "2005_fall_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?`:
```sql
                SELECT "japanese_title" FROM "2005_fall_season" WHERE "tv_station"='tbs' AND "romaji_title"='hana yori dango';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team with a tie number of 4?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team with a tie number of 4?`:
```sql
                SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='4';
```
## Task
Generate a SQL query to answer the following question:
`What date was the tie number of 32?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the tie number of 32?`:
```sql
                SELECT "date" FROM "first_round_proper" WHERE "tie_no"='32';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the tie number was a replay and the home team was mansfield town?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the tie number was a replay and the home team was mansfield town?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='mansfield town';
```
## Task
Generate a SQL query to answer the following question:
`what is the to par when the score is 67-68-76=211?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the to par when the score is 67-68-76=211?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='67-68-76=211';
```
## Task
Generate a SQL query to answer the following question:
`what is the score for tom watson?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score for tom watson?`:
```sql
                SELECT "score" FROM "third_round" WHERE "player"='tom watson';
```
## Task
Generate a SQL query to answer the following question:
`who is the player when the place is t10 and the score is 67-72-72=211?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the player when the place is t10 and the score is 67-72-72=211?`:
```sql
                SELECT "player" FROM "third_round" WHERE "place"='t10' AND "score"='67-72-72=211';
```
## Task
Generate a SQL query to answer the following question:
`what is the place for bryce molder?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the place for bryce molder?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='bryce molder';
```
## Task
Generate a SQL query to answer the following question:
`what is the to par for mathew goggin?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the to par for mathew goggin?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "player"='mathew goggin';
```
## Task
Generate a SQL query to answer the following question:
`Which Quantity has an Axle arrangement of 2′c h2?`

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

CREATE TABLE "passenger_and_express_train_locomotives" (
  "class" text,
  "railway_number_s" text,
  "drg_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Quantity has an Axle arrangement of 2′c h2?`:
```sql
                SELECT AVG("quantity") FROM "passenger_and_express_train_locomotives" WHERE "axle_arrangement"='2′c h2';
```
## Task
Generate a SQL query to answer the following question:
`Which Year(s) of manufacture has an Axle arrangement of 2′b n2?`

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

CREATE TABLE "passenger_and_express_train_locomotives" (
  "class" text,
  "railway_number_s" text,
  "drg_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year(s) of manufacture has an Axle arrangement of 2′b n2?`:
```sql
                SELECT "year_s_of_manufacture" FROM "passenger_and_express_train_locomotives" WHERE "axle_arrangement"='2′b n2';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Time of 5:56.73?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Time of 5:56.73?`:
```sql
                SELECT "rank" FROM "semifinal_a_b_1" WHERE "time"='5:56.73';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has Notes of fb, and a Time of 5:57.31?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has Notes of fb, and a Time of 5:57.31?`:
```sql
                SELECT "rank" FROM "semifinal_a_b_1" WHERE "notes"='fb' AND "time"='5:57.31';
```
## Task
Generate a SQL query to answer the following question:
`How much 2000 has a 2005 smaller than 583,590, and a 2009 smaller than 156,761, and a 2002 larger than 1,393,020?`

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

CREATE TABLE "top_markets_2000_2011" (
  "country_or_territory" text,
  "2000" real,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much 2000 has a 2005 smaller than 583,590, and a 2009 smaller than 156,761, and a 2002 larger than 1,393,020?`:
```sql
                SELECT SUM("2000") FROM "top_markets_2000_2011" WHERE "2005"<'583,590' AND "2009"<'156,761' AND "2002">'1,393,020';
```
## Task
Generate a SQL query to answer the following question:
`Which 2011 has a 2004 smaller than 271,691, and a Country or territory of vietnam, and a 2009 larger than 265,414?`

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

CREATE TABLE "top_markets_2000_2011" (
  "country_or_territory" text,
  "2000" real,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011 has a 2004 smaller than 271,691, and a Country or territory of vietnam, and a 2009 larger than 265,414?`:
```sql
                SELECT AVG("2011") FROM "top_markets_2000_2011" WHERE "2004"<'271,691' AND "country_or_territory"='vietnam' AND "2009">'265,414';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099?`

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

CREATE TABLE "top_markets_2000_2011" (
  "country_or_territory" text,
  "2000" real,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099?`:
```sql
                SELECT MIN("2007") FROM "top_markets_2000_2011" WHERE "country_or_territory"='china' AND "2002"<'670,099';
```
## Task
Generate a SQL query to answer the following question:
`what is the giro wins when jerseys is 2, country is portugal and young rider is more than 0?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "giro_wins" real,
  "points" real,
  "young_rider" real,
  "most_recent_cyclist" text,
  "most_recent_date" text,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the giro wins when jerseys is 2, country is portugal and young rider is more than 0?`:
```sql
                SELECT SUM("giro_wins") FROM "per_country" WHERE "jerseys"=2 AND "country"='portugal' AND "young_rider">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest jersey when points is 0, different holders is less than 3, giro wins is less than 1 and young rider is more than 1?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "giro_wins" real,
  "points" real,
  "young_rider" real,
  "most_recent_cyclist" text,
  "most_recent_date" text,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest jersey when points is 0, different holders is less than 3, giro wins is less than 1 and young rider is more than 1?`:
```sql
                SELECT MAX("jerseys") FROM "per_country" WHERE "points"=0 AND "different_holders"<3 AND "giro_wins"<1 AND "young_rider">1;
```
## Task
Generate a SQL query to answer the following question:
`how many times is young rider more than 0, country is france and points less than 1?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "giro_wins" real,
  "points" real,
  "young_rider" real,
  "most_recent_cyclist" text,
  "most_recent_date" text,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is young rider more than 0, country is france and points less than 1?`:
```sql
                SELECT COUNT("jerseys") FROM "per_country" WHERE "young_rider">0 AND "country"='france' AND "points"<1;
```
## Task
Generate a SQL query to answer the following question:
`what is the least different holders when the country is ireland and giro wins is less than 1?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "giro_wins" real,
  "points" real,
  "young_rider" real,
  "most_recent_cyclist" text,
  "most_recent_date" text,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least different holders when the country is ireland and giro wins is less than 1?`:
```sql
                SELECT MIN("different_holders") FROM "per_country" WHERE "country"='ireland' AND "giro_wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is Brian Mateer's Speed?`

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

CREATE TABLE "race_6a_lightweight_manx_grand_prix" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Brian Mateer's Speed?`:
```sql
                SELECT "speed" FROM "race_6a_lightweight_manx_grand_prix" WHERE "rider"='brian mateer';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Rider with a Speed of 111.072mph in Team 250CC Honda?`

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

CREATE TABLE "race_6a_lightweight_manx_grand_prix" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Rider with a Speed of 111.072mph in Team 250CC Honda?`:
```sql
                SELECT AVG("rank") FROM "race_6a_lightweight_manx_grand_prix" WHERE "team"='250cc honda' AND "speed"='111.072mph';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nationality of the swimmer with a Time of 1:08.80?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nationality of the swimmer with a Time of 1:08.80?`:
```sql
                SELECT "nationality" FROM "heats" WHERE "time"='1:08.80';
```
## Task
Generate a SQL query to answer the following question:
`What is Anna Khlistunova's Nationality?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Anna Khlistunova's Nationality?`:
```sql
                SELECT "nationality" FROM "heats" WHERE "name"='anna khlistunova';
```
## Task
Generate a SQL query to answer the following question:
`What is the penalty for the DET team player Andreas Lilja?`

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

CREATE TABLE "penalty_summary" (
  "period" text,
  "team" text,
  "player" text,
  "penalty" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the penalty for the DET team player Andreas Lilja?`:
```sql
                SELECT "penalty" FROM "penalty_summary" WHERE "team"='det' AND "player"='andreas lilja';
```
## Task
Generate a SQL query to answer the following question:
`What is the penalty for Jonathan Toews?`

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

CREATE TABLE "penalty_summary" (
  "period" text,
  "team" text,
  "player" text,
  "penalty" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the penalty for Jonathan Toews?`:
```sql
                SELECT "penalty" FROM "penalty_summary" WHERE "player"='jonathan toews';
```
## Task
Generate a SQL query to answer the following question:
`What is the period for Ben Eager?`

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

CREATE TABLE "penalty_summary" (
  "period" text,
  "team" text,
  "player" text,
  "penalty" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the period for Ben Eager?`:
```sql
                SELECT "period" FROM "penalty_summary" WHERE "player"='ben eager';
```
## Task
Generate a SQL query to answer the following question:
`What is the period for the DET Team with a time of 11:27?`

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

CREATE TABLE "penalty_summary" (
  "period" text,
  "team" text,
  "player" text,
  "penalty" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the period for the DET Team with a time of 11:27?`:
```sql
                SELECT "period" FROM "penalty_summary" WHERE "team"='det' AND "time"='11:27';
```
## Task
Generate a SQL query to answer the following question:
`What player has a penalty of holding on the DET team?`

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

CREATE TABLE "penalty_summary" (
  "period" text,
  "team" text,
  "player" text,
  "penalty" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a penalty of holding on the DET team?`:
```sql
                SELECT "player" FROM "penalty_summary" WHERE "penalty"='holding' AND "team"='det';
```
## Task
Generate a SQL query to answer the following question:
`What time does Dustin Byfuglien have in 1st period?`

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

CREATE TABLE "penalty_summary" (
  "period" text,
  "team" text,
  "player" text,
  "penalty" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time does Dustin Byfuglien have in 1st period?`:
```sql
                SELECT "time" FROM "penalty_summary" WHERE "period"='1st' AND "player"='dustin byfuglien';
```
## Task
Generate a SQL query to answer the following question:
`Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "result"='2-0' AND "location"='ferreiras' AND "assist_pass"='casey nogueira';
```
## Task
Generate a SQL query to answer the following question:
`What is the score with the Lineup match reports?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score with the Lineup match reports?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "lineup"='match reports';
```
## Task
Generate a SQL query to answer the following question:
`On what date is there an assist/pass by Shannon Boxx?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date is there an assist/pass by Shannon Boxx?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "assist_pass"='shannon boxx';
```
## Task
Generate a SQL query to answer the following question:
`Which assist/pass is in Ferreiras?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which assist/pass is in Ferreiras?`:
```sql
                SELECT "assist_pass" FROM "international_goals" WHERE "location"='ferreiras';
```
## Task
Generate a SQL query to answer the following question:
`Willy Sagnol with a type as career end had what has the transfer fee?`

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

CREATE TABLE "transfers_out" (
  "nat" text,
  "name" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Willy Sagnol with a type as career end had what has the transfer fee?`:
```sql
                SELECT "transfer_fee" FROM "transfers_out" WHERE "type"='career end' AND "name"='willy sagnol';
```
## Task
Generate a SQL query to answer the following question:
`Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation?`

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

CREATE TABLE "transfers_out" (
  "nat" text,
  "name" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation?`:
```sql
                SELECT "nat" FROM "transfers_out" WHERE "transfer_window"='summer' AND "type"='transfer' AND "name"='marcell jansen';
```
## Task
Generate a SQL query to answer the following question:
`Marcell Jansen of the nation GER has what for the type?`

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

CREATE TABLE "transfers_out" (
  "nat" text,
  "name" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Marcell Jansen of the nation GER has what for the type?`:
```sql
                SELECT "type" FROM "transfers_out" WHERE "nat"='ger' AND "name"='marcell jansen';
```
## Task
Generate a SQL query to answer the following question:
`What player had a transfer window of winter, and free as the transfer fee?`

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

CREATE TABLE "transfers_out" (
  "nat" text,
  "name" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had a transfer window of winter, and free as the transfer fee?`:
```sql
                SELECT "name" FROM "transfers_out" WHERE "transfer_window"='winter' AND "transfer_fee"='free';
```
## Task
Generate a SQL query to answer the following question:
`Which player from GER has a transfer window of summer, and a transfer fee of n/a?`

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

CREATE TABLE "transfers_out" (
  "nat" text,
  "name" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player from GER has a transfer window of summer, and a transfer fee of n/a?`:
```sql
                SELECT "name" FROM "transfers_out" WHERE "transfer_window"='summer' AND "nat"='ger' AND "transfer_fee"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942?`:
```sql
                SELECT MAX("year_left") FROM "former_members" WHERE "conference_joined"='sagamore' AND "year_joined">1942;
```
## Task
Generate a SQL query to answer the following question:
`What's the highest Year Left for the School of Danville?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Year Left for the School of Danville?`:
```sql
                SELECT MAX("year_left") FROM "former_members" WHERE "school"='danville';
```
## Task
Generate a SQL query to answer the following question:
`What was lane 4's time?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was lane 4's time?`:
```sql
                SELECT "time" FROM "semifinal_2" WHERE "lane"=4;
```
## Task
Generate a SQL query to answer the following question:
`What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache?`

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

CREATE TABLE "sandy_bridge_dual_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache?`:
```sql
                SELECT "part_number_s" FROM "sandy_bridge_dual_core_32_nm" WHERE "l2_cache"='2 × 256 kb' AND "frequency"='1.8 ghz';
```
## Task
Generate a SQL query to answer the following question:
`What's the sSpec number of the processor having an ultra-low power I/O?`

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

CREATE TABLE "sandy_bridge_dual_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sSpec number of the processor having an ultra-low power I/O?`:
```sql
                SELECT "s_spec_number" FROM "sandy_bridge_dual_core_32_nm" WHERE "i_o_bus"='ultra-low power';
```
## Task
Generate a SQL query to answer the following question:
`What the cores with a release date of February 2011 and a BGA-1023 socket?`

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

CREATE TABLE "sandy_bridge_dual_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the cores with a release date of February 2011 and a BGA-1023 socket?`:
```sql
                SELECT "cores" FROM "sandy_bridge_dual_core_32_nm" WHERE "socket"='bga-1023' AND "release_date"='february 2011';
```
## Task
Generate a SQL query to answer the following question:
`What's the L3 Cache that has a standard power I/O?`

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

CREATE TABLE "sandy_bridge_dual_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the L3 Cache that has a standard power I/O?`:
```sql
                SELECT "l3_cache" FROM "sandy_bridge_dual_core_32_nm" WHERE "i_o_bus"='standard power';
```