cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the visitor team in tampa bay?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visitor team in tampa bay?`:
```sql
                SELECT "visitor" FROM "march" WHERE "home"='tampa bay';
```
## Task
Generate a SQL query to answer the following question:
`Who had a 32-29-8 record at home?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a 32-29-8 record at home?`:
```sql
                SELECT "home" FROM "march" WHERE "record"='32-29-8';
```
## Task
Generate a SQL query to answer the following question:
`Who had a 33-30-8 record at home?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a 33-30-8 record at home?`:
```sql
                SELECT "home" FROM "march" WHERE "record"='33-30-8';
```
## Task
Generate a SQL query to answer the following question:
`What was the home teams score when North Melbourne played as the away team?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home teams score when North Melbourne played as the away team?`:
```sql
                SELECT "home_team_score" FROM "round_2" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Windy Hill?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team at Windy Hill?`:
```sql
                SELECT "away_team" FROM "round_2" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`Where did Fitzroy play as the home team?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Fitzroy play as the home team?`:
```sql
                SELECT "venue" FROM "round_2" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`Who was away team at the home game of south melbourne?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was away team at the home game of south melbourne?`:
```sql
                SELECT "away_team" FROM "round_10" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team score when they visited south melbourne?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the away team score when they visited south melbourne?`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd when the away team scored 15.18 (108)?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in the crowd when the away team scored 15.18 (108)?`:
```sql
                SELECT "crowd" FROM "round_10" WHERE "away_team_score"='15.18 (108)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when they scored 12.9 (81) at the game?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when they scored 12.9 (81) at the game?`:
```sql
                SELECT "away_team" FROM "round_10" WHERE "away_team_score"='12.9 (81)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest crowd with north melbourne as away team?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest crowd with north melbourne as away team?`:
```sql
                SELECT MAX("crowd") FROM "round_2" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which away team has a Home team score of 17.13 (115)?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team has a Home team score of 17.13 (115)?`:
```sql
                SELECT "away_team" FROM "round_2" WHERE "home_team_score"='17.13 (115)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue has a Home team of south melbourne?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a Home team of south melbourne?`:
```sql
                SELECT "venue" FROM "round_2" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What home score has an Away team of fitzroy?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home score has an Away team of fitzroy?`:
```sql
                SELECT "home_team_score" FROM "round_9" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`Which home team has a Venue of corio oval?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team has a Venue of corio oval?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "venue"='corio oval';
```
## Task
Generate a SQL query to answer the following question:
`Which home team an Away team score of 7.9 (51)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team an Away team score of 7.9 (51)?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "away_team_score"='7.9 (51)';
```
## Task
Generate a SQL query to answer the following question:
`Which away team has a Home team score of 4.4 (28)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team has a Home team score of 4.4 (28)?`:
```sql
                SELECT "away_team" FROM "round_9" WHERE "home_team_score"='4.4 (28)';
```
## Task
Generate a SQL query to answer the following question:
`Which team has an Away team of carlton?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has an Away team of carlton?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Which date has an Away team of richmond?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has an Away team of richmond?`:
```sql
                SELECT "date" FROM "round_9" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`How many regions have a capital of matanzas and a 2005 population under 670427?`

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

CREATE TABLE "summary" (
  "province" text,
  "capital" text,
  "population_2005" real,
  "population_pct" real,
  "area_km" real,
  "area_pct" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many regions have a capital of matanzas and a 2005 population under 670427?`:
```sql
                SELECT COUNT("area_km") FROM "summary" WHERE "capital"='matanzas' AND "population_2005"<670427;
```
## Task
Generate a SQL query to answer the following question:
`What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?`

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

CREATE TABLE "summary" (
  "province" text,
  "capital" text,
  "population_2005" real,
  "population_pct" real,
  "area_km" real,
  "area_pct" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?`:
```sql
                SELECT AVG("area_km") FROM "summary" WHERE "capital"='camagüey' AND "population_pct">7.02;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the Kings game attended by more than 18,630 people?`

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

CREATE TABLE "october" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the Kings game attended by more than 18,630 people?`:
```sql
                SELECT "score" FROM "october" WHERE "attendance">'18,630';
```
## Task
Generate a SQL query to answer the following question:
`What was the average attendance for a Kings game when they had a record of 1–5–0?`

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

CREATE TABLE "october" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average attendance for a Kings game when they had a record of 1–5–0?`:
```sql
                SELECT AVG("attendance") FROM "october" WHERE "record"='1–5–0';
```
## Task
Generate a SQL query to answer the following question:
`What team has over 1 tournament title, 0 in the regular season, and 2 total?`

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

CREATE TABLE "wrestling_titles_by_team" (
  "team" text,
  "seasons" text,
  "regular_season" text,
  "tournament" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team has over 1 tournament title, 0 in the regular season, and 2 total?`:
```sql
                SELECT "team" FROM "wrestling_titles_by_team" WHERE "tournament">1 AND "regular_season"='0' AND "total"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total on average for teams with 3 tournaments?`

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

CREATE TABLE "wrestling_titles_by_team" (
  "team" text,
  "seasons" text,
  "regular_season" text,
  "tournament" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total on average for teams with 3 tournaments?`:
```sql
                SELECT AVG("total") FROM "wrestling_titles_by_team" WHERE "tournament"=3;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "laps">7 AND "driver"='rubens barrichello';
```
## Task
Generate a SQL query to answer the following question:
`what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?`:
```sql
                SELECT "grid" FROM "race" WHERE "laps">0 AND "time_retired"='engine' AND "driver"='pedro de la rosa';
```
## Task
Generate a SQL query to answer the following question:
`who is the driver with the grid of 13?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the driver with the grid of 13?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"=13;
```
## Task
Generate a SQL query to answer the following question:
`How many championships did the team or teams established in 1976 win?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "established" real,
  "championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many championships did the team or teams established in 1976 win?`:
```sql
                SELECT SUM("championships") FROM "professional_sports" WHERE "established"=1976;
```
## Task
Generate a SQL query to answer the following question:
`Which WNBA team that won at least 2 championships was established most recently?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "established" real,
  "championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which WNBA team that won at least 2 championships was established most recently?`:
```sql
                SELECT MAX("established") FROM "professional_sports" WHERE "league"='wnba' AND "championships">2;
```
## Task
Generate a SQL query to answer the following question:
`What are the venues that host WNBA games?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "established" real,
  "championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the venues that host WNBA games?`:
```sql
                SELECT "venue" FROM "professional_sports" WHERE "league"='wnba';
```
## Task
Generate a SQL query to answer the following question:
`Name the bowling style of the player born 16 march 1974`

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

CREATE TABLE "zimbabwe" (
  "player" text,
  "date_of_birth" text,
  "batting_style" text,
  "bowling_style" text,
  "first_class_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the bowling style of the player born 16 march 1974`:
```sql
                SELECT "bowling_style" FROM "zimbabwe" WHERE "date_of_birth"='16 march 1974';
```
## Task
Generate a SQL query to answer the following question:
`Name the batting style for heath streak`

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

CREATE TABLE "zimbabwe" (
  "player" text,
  "date_of_birth" text,
  "batting_style" text,
  "bowling_style" text,
  "first_class_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the batting style for heath streak`:
```sql
                SELECT "batting_style" FROM "zimbabwe" WHERE "player"='heath streak';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of a building that has 52 floors?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of a building that has 52 floors?`:
```sql
                SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "floors"=52;
```
## Task
Generate a SQL query to answer the following question:
`How many floors does the Custom House Tower have?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many floors does the Custom House Tower have?`:
```sql
                SELECT COUNT("floors") FROM "timeline_of_tallest_buildings" WHERE "name"='custom house tower';
```
## Task
Generate a SQL query to answer the following question:
`How many floors does the building on 800 Boylston Street have?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many floors does the building on 800 Boylston Street have?`:
```sql
                SELECT MAX("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='800 boylston street';
```
## Task
Generate a SQL query to answer the following question:
`What is the street address for the Prudential Tower building?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address for the Prudential Tower building?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='prudential tower';
```
## Task
Generate a SQL query to answer the following question:
`There is a building at 800 Boylston Street, how many floors does it have?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `There is a building at 800 Boylston Street, how many floors does it have?`:
```sql
                SELECT SUM("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='800 boylston street';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?`

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

CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
  "rank_wjc" real,
  "rank_arda" real,
  "metro_area" text,
  "number_of_jews_wjc" real,
  "number_of_jews_asarb" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?`:
```sql
                SELECT MAX("number_of_jews_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_wjc"=6 AND "rank_arda">8;
```
## Task
Generate a SQL query to answer the following question:
`What was the WJC rank in San Francisco metro area with the ASARB Jews less than 261,100 and WJC Jews of more than 210,000?`

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

CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
  "rank_wjc" real,
  "rank_arda" real,
  "metro_area" text,
  "number_of_jews_wjc" real,
  "number_of_jews_asarb" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the WJC rank in San Francisco metro area with the ASARB Jews less than 261,100 and WJC Jews of more than 210,000?`:
```sql
                SELECT AVG("rank_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "number_of_jews_asarb"<'261,100' AND "metro_area"='san francisco' AND "number_of_jews_wjc">'210,000';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of WJC Jews with a WJC rank of 6?`

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

CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
  "rank_wjc" real,
  "rank_arda" real,
  "metro_area" text,
  "number_of_jews_wjc" real,
  "number_of_jews_asarb" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of WJC Jews with a WJC rank of 6?`:
```sql
                SELECT "number_of_jews_wjc" FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_wjc"=6;
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of WJC rank when the ARDA rank was less than 2 and ASARB Jews less than 2,028,200?`

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

CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
  "rank_wjc" real,
  "rank_arda" real,
  "metro_area" text,
  "number_of_jews_wjc" real,
  "number_of_jews_asarb" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of WJC rank when the ARDA rank was less than 2 and ASARB Jews less than 2,028,200?`:
```sql
                SELECT COUNT("rank_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_arda"<2 AND "number_of_jews_asarb"<'2,028,200';
```
## Task
Generate a SQL query to answer the following question:
`How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?`

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

CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
  "rank_wjc" real,
  "rank_arda" real,
  "metro_area" text,
  "number_of_jews_wjc" real,
  "number_of_jews_asarb" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?`:
```sql
                SELECT SUM("number_of_jews_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "metro_area"='los angeles' AND "rank_arda">2;
```
## Task
Generate a SQL query to answer the following question:
`Who drove during the race with less than 19 laps and a time listed as ignition?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove during the race with less than 19 laps and a time listed as ignition?`:
```sql
                SELECT "driver" FROM "classification" WHERE "laps"<19 AND "time_retired"='ignition';
```
## Task
Generate a SQL query to answer the following question:
`What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "round">2 AND "event"='raging wolf 6: mayhem in the mist';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the home team scored 16.19 (115)?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when the home team scored 16.19 (115)?`:
```sql
                SELECT "venue" FROM "round_17" WHERE "home_team_score"='16.19 (115)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of people that attended a game at Moorabbin Oval?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of people that attended a game at Moorabbin Oval?`:
```sql
                SELECT MAX("crowd") FROM "round_17" WHERE "venue"='moorabbin oval';
```
## Task
Generate a SQL query to answer the following question:
`What did the home team Hawthorn score in the game attended by more than 14,922 people?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the home team Hawthorn score in the game attended by more than 14,922 people?`:
```sql
                SELECT "home_team_score" FROM "round_17" WHERE "crowd">'14,922' AND "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of people that attended a game when Essendon was the away team?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of people that attended a game when Essendon was the away team?`:
```sql
                SELECT MIN("crowd") FROM "round_17" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Which date did South Melbourne play as the away team?`

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

CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date did South Melbourne play as the away team?`:
```sql
                SELECT "date" FROM "round_17" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor for Jackie Stewart's car?`

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

CREATE TABLE "list_of_winners_by_year" (
  "year" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constructor for Jackie Stewart's car?`:
```sql
                SELECT "constructor" FROM "list_of_winners_by_year" WHERE "driver"='jackie stewart';
```
## Task
Generate a SQL query to answer the following question:
`What is the location where Denny Hulme was the driver?`

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

CREATE TABLE "list_of_winners_by_year" (
  "year" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location where Denny Hulme was the driver?`:
```sql
                SELECT "location" FROM "list_of_winners_by_year" WHERE "driver"='denny hulme';
```
## Task
Generate a SQL query to answer the following question:
`What is number of the train that originated in Secunderabad Junction?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is number of the train that originated in Secunderabad Junction?`:
```sql
                SELECT "train_no" FROM "train_services" WHERE "origin"='secunderabad junction';
```
## Task
Generate a SQL query to answer the following question:
`From where did the train that arrived in the Anand Vihar Terminal originate?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `From where did the train that arrived in the Anand Vihar Terminal originate?`:
```sql
                SELECT "origin" FROM "train_services" WHERE "destination"='anand vihar terminal';
```
## Task
Generate a SQL query to answer the following question:
`From where did Train No. 15929/30 originate?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `From where did Train No. 15929/30 originate?`:
```sql
                SELECT "origin" FROM "train_services" WHERE "train_no"='15929/30';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the train to Bangalore?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the train to Bangalore?`:
```sql
                SELECT "frequency" FROM "train_services" WHERE "destination"='bangalore';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the Chennai Egmore Dibrugarh Express to Dibrugarh?`

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

CREATE TABLE "train_services" (
  "train_no" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the Chennai Egmore Dibrugarh Express to Dibrugarh?`:
```sql
                SELECT "frequency" FROM "train_services" WHERE "destination"='dibrugarh' AND "train_name"='chennai egmore dibrugarh express';
```
## Task
Generate a SQL query to answer the following question:
`How many Norwegian Americans have Norwegian Americans (2000) of 109,744?`

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

CREATE TABLE "norwegian_americans_by_state" (
  "state" text,
  "norwegian_americans_2000" real,
  "percent_2000" text,
  "norwegian_americans_2009" real,
  "percent_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Norwegian Americans have Norwegian Americans (2000) of 109,744?`:
```sql
                SELECT COUNT("norwegian_americans_2009") FROM "norwegian_americans_by_state" WHERE "norwegian_americans_2000"='109,744';
```
## Task
Generate a SQL query to answer the following question:
`Which state has a Percent (2009) of 6.2%?`

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

CREATE TABLE "norwegian_americans_by_state" (
  "state" text,
  "norwegian_americans_2000" real,
  "percent_2000" text,
  "norwegian_americans_2009" real,
  "percent_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state has a Percent (2009) of 6.2%?`:
```sql
                SELECT "state" FROM "norwegian_americans_by_state" WHERE "percent_2009"='6.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is the holding of the customers?`

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

CREATE TABLE "origins_in_corporate_strategy" (
  "component" text,
  "integrated" text,
  "allied_related" text,
  "allied_unrelated" text,
  "holding" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the holding of the customers?`:
```sql
                SELECT "holding" FROM "origins_in_corporate_strategy" WHERE "component"='customers';
```
## Task
Generate a SQL query to answer the following question:
`What Allied-Unrelated is labeled as "common"?`

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

CREATE TABLE "origins_in_corporate_strategy" (
  "component" text,
  "integrated" text,
  "allied_related" text,
  "allied_unrelated" text,
  "holding" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Allied-Unrelated is labeled as "common"?`:
```sql
                SELECT "allied_unrelated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='common';
```
## Task
Generate a SQL query to answer the following question:
`Which integrated has an allied-related of some shared?`

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

CREATE TABLE "origins_in_corporate_strategy" (
  "component" text,
  "integrated" text,
  "allied_related" text,
  "allied_unrelated" text,
  "holding" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which integrated has an allied-related of some shared?`:
```sql
                SELECT "integrated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='some shared';
```
## Task
Generate a SQL query to answer the following question:
`What integrated has an allied-related of centralized?`

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

CREATE TABLE "origins_in_corporate_strategy" (
  "component" text,
  "integrated" text,
  "allied_related" text,
  "allied_unrelated" text,
  "holding" text
);
### SQL
Given the database schema, here is the SQL query that answers `What integrated has an allied-related of centralized?`:
```sql
                SELECT "integrated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='centralized';
```
## Task
Generate a SQL query to answer the following question:
`What component has an integrated of one?`

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

CREATE TABLE "origins_in_corporate_strategy" (
  "component" text,
  "integrated" text,
  "allied_related" text,
  "allied_unrelated" text,
  "holding" text
);
### SQL
Given the database schema, here is the SQL query that answers `What component has an integrated of one?`:
```sql
                SELECT "component" FROM "origins_in_corporate_strategy" WHERE "integrated"='one';
```
## Task
Generate a SQL query to answer the following question:
`How many candidates had 0 percent of the vote in 1999?`

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

CREATE TABLE "electoral_results_1990_2008" (
  "election" real,
  "candidates" real,
  "seats_won" real,
  "votes" real,
  "pct_of_vote" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many candidates had 0 percent of the vote in 1999?`:
```sql
                SELECT COUNT("candidates") FROM "electoral_results_1990_2008" WHERE "pct_of_vote"=0 AND "election"=1999 AND "seats_won">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with Manu ginóbili (44) as the leading scorer?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game with Manu ginóbili (44) as the leading scorer?`:
```sql
                SELECT "score" FROM "february" WHERE "leading_scorer"='manu ginóbili (44)';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game on February 21, 2008?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game on February 21, 2008?`:
```sql
                SELECT "record" FROM "february" WHERE "date"='february 21, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team of the game with manu ginóbili (34) as the leading scorer?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team of the game with manu ginóbili (34) as the leading scorer?`:
```sql
                SELECT "home" FROM "february" WHERE "leading_scorer"='manu ginóbili (34)';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game on February 25, 2008?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game on February 25, 2008?`:
```sql
                SELECT "record" FROM "february" WHERE "date"='february 25, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What type is shown with a moving to of valenciennes?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type is shown with a moving to of valenciennes?`:
```sql
                SELECT "type" FROM "out" WHERE "moving_to"='valenciennes';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer window with n/a as the Transfer fee, free agent for the Moving to, and Joe Sagar as the name?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer window with n/a as the Transfer fee, free agent for the Moving to, and Joe Sagar as the name?`:
```sql
                SELECT "transfer_window" FROM "out" WHERE "transfer_fee"='n/a' AND "moving_to"='free agent' AND "name"='joe sagar';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the person with a type of end of contract, nat of sco, and the Moving to is cardiff city?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the person with a type of end of contract, nat of sco, and the Moving to is cardiff city?`:
```sql
                SELECT "name" FROM "out" WHERE "type"='end of contract' AND "nat"='sco' AND "moving_to"='cardiff city';
```
## Task
Generate a SQL query to answer the following question:
`What Transfer window that has a Transfer fee of free, with a Moving to of derby county?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Transfer window that has a Transfer fee of free, with a Moving to of derby county?`:
```sql
                SELECT "transfer_window" FROM "out" WHERE "transfer_fee"='free' AND "moving_to"='derby county';
```
## Task
Generate a SQL query to answer the following question:
`What is the first game number that had attendance of 56,505?`

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

CREATE TABLE "nl_los_angeles_dodgers_4_vs_al_new_york_" (
  "game" real,
  "score" text,
  "date" text,
  "location" text,
  "attendance" real,
  "time_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first game number that had attendance of 56,505?`:
```sql
                SELECT MIN("game") FROM "nl_los_angeles_dodgers_4_vs_al_new_york_" WHERE "attendance"='56,505';
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd size for the away team footscray?`

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

CREATE TABLE "round_21" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the crowd size for the away team footscray?`:
```sql
                SELECT "crowd" FROM "round_21" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the away team score 10.12 (72)?`

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

CREATE TABLE "round_21" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the away team score 10.12 (72)?`:
```sql
                SELECT "date" FROM "round_21" WHERE "away_team_score"='10.12 (72)';
```
## Task
Generate a SQL query to answer the following question:
`Which Race Name has Goodwood in the Curcuit?`

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

CREATE TABLE "non_championship_race_results" (
  "race_name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Race Name has Goodwood in the Curcuit?`:
```sql
                SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='goodwood';
```