cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the decision when Buffalo was the visitor?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the decision when Buffalo was the visitor?`:
```sql
                SELECT "decision" FROM "game_log" WHERE "visitor"='buffalo';
```
## Task
Generate a SQL query to answer the following question:
`Who is the visiting team when Minnesota is the home team?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visiting team when Minnesota is the home team?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "home"='minnesota';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match when Phoenix is the home team?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match when Phoenix is the home team?`:
```sql
                SELECT "date" FROM "game_log" WHERE "home"='phoenix';
```
## Task
Generate a SQL query to answer the following question:
`Who is the quarterback for Arkansas State?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the quarterback for Arkansas State?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "position"='quarterback' AND "college"='arkansas state';
```
## Task
Generate a SQL query to answer the following question:
`What is the total round of the 129 pick?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total round of the 129 pick?`:
```sql
                SELECT COUNT("round") FROM "nfl_draft" WHERE "pick_num"=129;
```
## Task
Generate a SQL query to answer the following question:
`What is the record for January 19?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for January 19?`:
```sql
                SELECT "record" FROM "january" WHERE "date"='january 19';
```
## Task
Generate a SQL query to answer the following question:
`What record has the score 111-89?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has the score 111-89?`:
```sql
                SELECT "record" FROM "january" WHERE "score"='111-89';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for January 7?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for January 7?`:
```sql
                SELECT "record" FROM "january" WHERE "date"='january 7';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on January 7?`

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

CREATE TABLE "january" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on January 7?`:
```sql
                SELECT "opponent" FROM "january" WHERE "date"='january 7';
```
## Task
Generate a SQL query to answer the following question:
`What home team scored 102-87?`

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

CREATE TABLE "round_5" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team scored 102-87?`:
```sql
                SELECT "home_team" FROM "round_5" WHERE "score"='102-87';
```
## Task
Generate a SQL query to answer the following question:
`What venue had a Score of 120-108?`

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

CREATE TABLE "round_5" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue had a Score of 120-108?`:
```sql
                SELECT "venue" FROM "round_5" WHERE "score"='120-108';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Sydney Spirit was the home team?`

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

CREATE TABLE "round_5" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Sydney Spirit was the home team?`:
```sql
                SELECT "score" FROM "round_5" WHERE "home_team"='sydney spirit';
```
## Task
Generate a SQL query to answer the following question:
`What was the score at North Shore Events Centre?`

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

CREATE TABLE "round_5" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score at North Shore Events Centre?`:
```sql
                SELECT "score" FROM "round_5" WHERE "venue"='north shore events centre';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team venue for the New Zealand Breakers?`

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

CREATE TABLE "round_5" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team venue for the New Zealand Breakers?`:
```sql
                SELECT "venue" FROM "round_5" WHERE "home_team"='new zealand breakers';
```
## Task
Generate a SQL query to answer the following question:
`Who had the decision when the visitor was Detroit and the home team was Ottawa?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the decision when the visitor was Detroit and the home team was Ottawa?`:
```sql
                SELECT "decision" FROM "game_log" WHERE "visitor"='detroit' AND "home"='ottawa';
```
## Task
Generate a SQL query to answer the following question:
`What is the score on March 18?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score on March 18?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='march 18';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest points on March 27?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest points on March 27?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='march 27';
```
## Task
Generate a SQL query to answer the following question:
`Name the average Lead Margin on  november 13-november 19, 2007?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_larry_la_rocco" text,
  "republican_jim_risch" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Lead Margin on  november 13-november 19, 2007?`:
```sql
                SELECT AVG("lead_margin") FROM "opinion_polling_for_the_united_states_se" WHERE "dates_administered"='november 13-november 19, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Which Poll Source has a Republican Jim Risch of 43%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_larry_la_rocco" text,
  "republican_jim_risch" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Poll Source has a Republican Jim Risch of 43%?`:
```sql
                SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "republican_jim_risch"='43%';
```
## Task
Generate a SQL query to answer the following question:
`For week 15, what was the total number of attendance recorded?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `For week 15, what was the total number of attendance recorded?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "week"=15;
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the home team is king's lynn?`

### 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 is the score when the home team is king's lynn?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "home_team"='king''s lynn';
```
## Task
Generate a SQL query to answer the following question:
`what is the home team when the away team is frickley colliery?`

### 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 is the home team when the away team is frickley colliery?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='frickley colliery';
```
## Task
Generate a SQL query to answer the following question:
`what is the tie no, on 24 november 1971 and the away team is king's lynn?`

### 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 is the tie no, on 24 november 1971 and the away team is king's lynn?`:
```sql
                SELECT "tie_no" FROM "first_round_proper" WHERE "date"='24 november 1971' AND "away_team"='king''s lynn';
```
## Task
Generate a SQL query to answer the following question:
`What is the Longitude of the 61.0s Latitude?`

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

CREATE TABLE "lineae" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Longitude of the 61.0s Latitude?`:
```sql
                SELECT "longitude" FROM "lineae" WHERE "latitude"='61.0s';
```
## Task
Generate a SQL query to answer the following question:
`What name has a longitude of 213.0e?`

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

CREATE TABLE "lineae" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What name has a longitude of 213.0e?`:
```sql
                SELECT "name" FROM "lineae" WHERE "longitude"='213.0e';
```
## Task
Generate a SQL query to answer the following question:
`Which type had an unknown manufacturer?`

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

CREATE TABLE "rides_and_attractions" (
  "name" text,
  "type" text,
  "themed_area" text,
  "manufacturer" text,
  "opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which type had an unknown manufacturer?`:
```sql
                SELECT "type" FROM "rides_and_attractions" WHERE "manufacturer"='unknown';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the dreamworks experience from Ferrari?`

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

CREATE TABLE "rides_and_attractions" (
  "name" text,
  "type" text,
  "themed_area" text,
  "manufacturer" text,
  "opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the dreamworks experience from Ferrari?`:
```sql
                SELECT "name" FROM "rides_and_attractions" WHERE "themed_area"='dreamworks experience' AND "manufacturer"='ferrari';
```
## Task
Generate a SQL query to answer the following question:
`Which type opened in 1982?`

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

CREATE TABLE "rides_and_attractions" (
  "name" text,
  "type" text,
  "themed_area" text,
  "manufacturer" text,
  "opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which type opened in 1982?`:
```sql
                SELECT "type" FROM "rides_and_attractions" WHERE "opened"='1982';
```
## Task
Generate a SQL query to answer the following question:
`What themed area opened in 2010 as an animal show?`

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

CREATE TABLE "rides_and_attractions" (
  "name" text,
  "type" text,
  "themed_area" text,
  "manufacturer" text,
  "opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `What themed area opened in 2010 as an animal show?`:
```sql
                SELECT "themed_area" FROM "rides_and_attractions" WHERE "type"='animal show' AND "opened"='2010';
```
## Task
Generate a SQL query to answer the following question:
`Which visitor lives in Minnesota?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which visitor lives in Minnesota?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "home"='minnesota';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on november 21?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on november 21?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='november 21';
```
## Task
Generate a SQL query to answer the following question:
`Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third?`

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

CREATE TABLE "teams" (
  "season" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third?`:
```sql
                SELECT "lead" FROM "teams" WHERE "second"='cathrine norberg' AND "third"='anna rindeskog';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of game 21?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of game 21?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"=21;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game on December 22?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game on December 22?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='december 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when the game is greater than 24?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the game is greater than 24?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game">24;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?`

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

CREATE TABLE "2013_list" (
  "rank" text,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?`:
```sql
                SELECT MAX("market_value_billion") FROM "2013_list" WHERE "rank"='02 2' AND "sales_billion">113.1;
```
## Task
Generate a SQL query to answer the following question:
`What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?`

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

CREATE TABLE "2013_list" (
  "rank" text,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?`:
```sql
                SELECT "rank" FROM "2013_list" WHERE "headquarters"='united kingdom' AND "sales_billion"=370.9;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?`

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

CREATE TABLE "2013_list" (
  "rank" text,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?`:
```sql
                SELECT MIN("profits_billion") FROM "2013_list" WHERE "market_value_billion"<201.3 AND "headquarters"='united states' AND "company"='jpmorgan chase';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the community that has an area larger than 5.2 sq km, and a Census Ranking of 2,531 of 5,008?`

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

CREATE TABLE "communities" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the community that has an area larger than 5.2 sq km, and a Census Ranking of 2,531 of 5,008?`:
```sql
                SELECT "status" FROM "communities" WHERE "area_km_2">5.2 AND "census_ranking"='2,531 of 5,008';
```
## Task
Generate a SQL query to answer the following question:
`What is saint-andré's population?`

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

CREATE TABLE "communities" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is saint-andré's population?`:
```sql
                SELECT "population" FROM "communities" WHERE "official_name"='saint-andré';
```
## Task
Generate a SQL query to answer the following question:
`what's the results of week 12?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the results of week 12?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=12;
```
## Task
Generate a SQL query to answer the following question:
`What opponent has 76,202 attendance ?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has 76,202 attendance ?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='76,202';
```
## Task
Generate a SQL query to answer the following question:
`What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?`

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

CREATE TABLE "men_s_15_km" (
  "winner" text,
  "country" text,
  "winter_olympics" real,
  "fis_nordic_world_ski_championships" real,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?`:
```sql
                SELECT "fis_nordic_world_ski_championships" FROM "men_s_15_km" WHERE "winter_olympics"=1968;
```
## Task
Generate a SQL query to answer the following question:
`Which country has a FIS Nordic World Ski Championship before 1989, was in the winter Olympics before 1980, and has a Holmenkollen of 1956?`

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

CREATE TABLE "men_s_15_km" (
  "winner" text,
  "country" text,
  "winter_olympics" real,
  "fis_nordic_world_ski_championships" real,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a FIS Nordic World Ski Championship before 1989, was in the winter Olympics before 1980, and has a Holmenkollen of 1956?`:
```sql
                SELECT "country" FROM "men_s_15_km" WHERE "fis_nordic_world_ski_championships"<1989 AND "winter_olympics"<1980 AND "holmenkollen"='1956';
```
## Task
Generate a SQL query to answer the following question:
`When the Grids is less than 2 what are the total laps?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the Grids is less than 2 what are the total laps?`:
```sql
                SELECT COUNT("laps") FROM "250cc_classification" WHERE "grid"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a To par of –1?`

### 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 Player has a To par of –1?`:
```sql
                SELECT "player" FROM "first_round" WHERE "to_par"='–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a To par of –4?`

### 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 Player has a To par of –4?`:
```sql
                SELECT "player" FROM "first_round" WHERE "to_par"='–4';
```
## Task
Generate a SQL query to answer the following question:
`Which Place has a Score larger than 68, and a Player of david ogrin?`

### 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 Place has a Score larger than 68, and a Player of david ogrin?`:
```sql
                SELECT "place" FROM "first_round" WHERE "score">68 AND "player"='david ogrin';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Place of t2?`

### 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 Player has a Place of t2?`:
```sql
                SELECT "player" FROM "first_round" WHERE "place"='t2';
```
## Task
Generate a SQL query to answer the following question:
`What event did Mikhail Avetisyan win by method of DQ (eye gouging)?`

### 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 event did Mikhail Avetisyan win by method of DQ (eye gouging)?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='dq (eye gouging)';
```
## Task
Generate a SQL query to answer the following question:
`For the item that has a Gecko of 'font', what is the KHTML value?`

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

CREATE TABLE "grammar_and_rules" (
  "trident" text,
  "gecko" text,
  "web_kit" text,
  "khtml" text,
  "presto" text,
  "prince_xml" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the item that has a Gecko of 'font', what is the KHTML value?`:
```sql
                SELECT "khtml" FROM "grammar_and_rules" WHERE "gecko"='font';
```
## Task
Generate a SQL query to answer the following question:
`What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?`

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

CREATE TABLE "grammar_and_rules" (
  "trident" text,
  "gecko" text,
  "web_kit" text,
  "khtml" text,
  "presto" text,
  "prince_xml" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?`:
```sql
                SELECT "prince_xml" FROM "grammar_and_rules" WHERE "gecko"='no' AND "web_kit"='nightly build';
```
## Task
Generate a SQL query to answer the following question:
`What is the Gecko value for the item that has a Trident value of 'font'?`

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

CREATE TABLE "grammar_and_rules" (
  "trident" text,
  "gecko" text,
  "web_kit" text,
  "khtml" text,
  "presto" text,
  "prince_xml" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Gecko value for the item that has a Trident value of 'font'?`:
```sql
                SELECT "gecko" FROM "grammar_and_rules" WHERE "trident"='font';
```
## Task
Generate a SQL query to answer the following question:
`What is the Gecko value for the item that has a Prince XML value of 'no' and a KHTML value of 'yes'?`

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

CREATE TABLE "grammar_and_rules" (
  "trident" text,
  "gecko" text,
  "web_kit" text,
  "khtml" text,
  "presto" text,
  "prince_xml" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Gecko value for the item that has a Prince XML value of 'no' and a KHTML value of 'yes'?`:
```sql
                SELECT "gecko" FROM "grammar_and_rules" WHERE "prince_xml"='yes' AND "khtml"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Trident version has a Gecko value of 19.0?`

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

CREATE TABLE "grammar_and_rules" (
  "trident" text,
  "gecko" text,
  "web_kit" text,
  "khtml" text,
  "presto" text,
  "prince_xml" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Trident version has a Gecko value of 19.0?`:
```sql
                SELECT "trident" FROM "grammar_and_rules" WHERE "gecko"='19.0';
```
## Task
Generate a SQL query to answer the following question:
`For the item with a Prince XML value of 'font', what is the WebKit value?`

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

CREATE TABLE "grammar_and_rules" (
  "trident" text,
  "gecko" text,
  "web_kit" text,
  "khtml" text,
  "presto" text,
  "prince_xml" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the item with a Prince XML value of 'font', what is the WebKit value?`:
```sql
                SELECT "web_kit" FROM "grammar_and_rules" WHERE "prince_xml"='font';
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Team of cerro corá, and Losses larger than 4?`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a Team of cerro corá, and Losses larger than 4?`:
```sql
                SELECT AVG("played") FROM "torneo_apertura" WHERE "team"='cerro corá' AND "losses">4;
```
## Task
Generate a SQL query to answer the following question:
`Which Losses has Scored of 9, and Points larger than 8?`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses has Scored of 9, and Points larger than 8?`:
```sql
                SELECT AVG("losses") FROM "torneo_apertura" WHERE "scored"=9 AND "points">8;
```
## Task
Generate a SQL query to answer the following question:
`On Race 14 when the FLap is larger than 1, what is the podium number?`

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

CREATE TABLE "by_season" (
  "season" text,
  "race" real,
  "podium" real,
  "pole" real,
  "f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `On Race 14 when the FLap is larger than 1, what is the podium number?`:
```sql
                SELECT COUNT("podium") FROM "by_season" WHERE "race"=14 AND "f_lap">1;
```
## Task
Generate a SQL query to answer the following question:
`When the Flap is less than 15 and the podium is larger than 11, what is the pole?`

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

CREATE TABLE "by_season" (
  "season" text,
  "race" real,
  "podium" real,
  "pole" real,
  "f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the Flap is less than 15 and the podium is larger than 11, what is the pole?`:
```sql
                SELECT "pole" FROM "by_season" WHERE "f_lap"<15 AND "podium">11;
```
## Task
Generate a SQL query to answer the following question:
`When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, what is the FLap?`

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

CREATE TABLE "by_season" (
  "season" text,
  "race" real,
  "podium" real,
  "pole" real,
  "f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, what is the FLap?`:
```sql
                SELECT "f_lap" FROM "by_season" WHERE "pole">0 AND "podium"<44 AND "race"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Week, when Opponent is Minnesota Vikings?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Week, when Opponent is Minnesota Vikings?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "opponent"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Attendance is 58,836?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Attendance is 58,836?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='58,836';
```
## Task
Generate a SQL query to answer the following question:
`Which engine of Rob Walker Racing Team has 47 points and F tyres?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine of Rob Walker Racing Team has 47 points and F tyres?`:
```sql
                SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "points"='47' AND "tyres"='f' AND "entrant"='rob walker racing team';
```
## Task
Generate a SQL query to answer the following question:
`Which entrant has 49 points and a Mclaren M7A chassis?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which entrant has 49 points and a Mclaren M7A chassis?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "points"='49' AND "chassis"='mclaren m7a';
```
## Task
Generate a SQL query to answer the following question:
`How many points did Bob Gerard Racing have in 1965?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Bob Gerard Racing have in 1965?`:
```sql
                SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "entrant"='bob gerard racing' AND "year"=1965;
```
## Task
Generate a SQL query to answer the following question:
`Which entrant had a Brabham BT10 chassis before 1965?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which entrant had a Brabham BT10 chassis before 1965?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"<1965 AND "chassis"='brabham bt10';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance on September 28, 1997?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance on September 28, 1997?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='september 28, 1997';
```
## Task
Generate a SQL query to answer the following question:
`What was the Opponent on August 31, 1997?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Opponent on August 31, 1997?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='august 31, 1997';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on Week 10?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance on Week 10?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many Points have a Home of pittsburgh, and a Score of 1–7?`

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

CREATE TABLE "final_standings" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points have a Home of pittsburgh, and a Score of 1–7?`:
```sql
                SELECT SUM("points") FROM "final_standings" WHERE "home"='pittsburgh' AND "score"='1–7';
```
## Task
Generate a SQL query to answer the following question:
`Which Visitor has an Attendance larger than 10,959, and Points larger than 24?`

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

CREATE TABLE "final_standings" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visitor has an Attendance larger than 10,959, and Points larger than 24?`:
```sql
                SELECT "visitor" FROM "final_standings" WHERE "attendance">'10,959' AND "points">24;
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 7–7–1?`

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

CREATE TABLE "final_standings" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Record of 7–7–1?`:
```sql
                SELECT "date" FROM "final_standings" WHERE "record"='7–7–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 11–10–2?`

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

CREATE TABLE "final_standings" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Record of 11–10–2?`:
```sql
                SELECT "date" FROM "final_standings" WHERE "record"='11–10–2';
```
## Task
Generate a SQL query to answer the following question:
`Which position had 3 podiums and F/laps of 4?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position had 3 podiums and F/laps of 4?`:
```sql
                SELECT "position" FROM "career_summary" WHERE "podiums"='3' AND "f_laps"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of races associated with Team ASM and 0 poles?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of races associated with Team ASM and 0 poles?`:
```sql
                SELECT "races" FROM "career_summary" WHERE "poles"='0' AND "team"='asm';
```
## Task
Generate a SQL query to answer the following question:
`Which team had 1 race, 1 F/lap and in the series 24 hours of Nurburgring?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had 1 race, 1 F/lap and in the series 24 hours of Nurburgring?`:
```sql
                SELECT "team" FROM "career_summary" WHERE "races"='1' AND "f_laps"='1' AND "series"='24 hours of nurburgring';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of podiums associated with 4 wins?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of podiums associated with 4 wins?`:
```sql
                SELECT "podiums" FROM "career_summary" WHERE "wins"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of races associated with 7 podiums and a position of 4th?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of races associated with 7 podiums and a position of 4th?`:
```sql
                SELECT "races" FROM "career_summary" WHERE "position"='4th' AND "podiums"='7';
```
## Task
Generate a SQL query to answer the following question:
`What is the F/Laps value associated with a position of 3rd?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the F/Laps value associated with a position of 3rd?`:
```sql
                SELECT "f_laps" FROM "career_summary" WHERE "position"='3rd';
```