cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What's the Time for an Event of 4x100 m relay and has a Venue of Frankfurt?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Time for an Event of 4x100 m relay and has a Venue of Frankfurt?`:
```sql
                SELECT "time" FROM "achievements" WHERE "event"='4x100 m relay' AND "venue"='frankfurt';
```
## Task
Generate a SQL query to answer the following question:
`What Competition has an Event of 4x100 m relay and has the Time of 38.89?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Competition has an Event of 4x100 m relay and has the Time of 38.89?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "event"='4x100 m relay' AND "time"='38.89';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest Year with a  Venue of casablanca and has the Time of 20.63w?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest Year with a  Venue of casablanca and has the Time of 20.63w?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "venue"='casablanca' AND "time"='20.63w';
```
## Task
Generate a SQL query to answer the following question:
`What was the College/junior/club team of the player with the united states nationality?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the College/junior/club team of the player with the united states nationality?`:
```sql
                SELECT "college_junior_club_team" FROM "draft_picks" WHERE "nationality"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest pick number for a united states player picked before round 7?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest pick number for a united states player picked before round 7?`:
```sql
                SELECT MIN("pick") FROM "draft_picks" WHERE "round">7 AND "nationality"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What country was the player with the score line 69-71-72-69=281 from?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the player with the score line 69-71-72-69=281 from?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "score"='69-71-72-69=281';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the player from South Africa?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the player from South Africa?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "country"='south africa';
```
## Task
Generate a SQL query to answer the following question:
`What country did the player with the score line 73-74-72-64=283 from?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country did the player with the score line 73-74-72-64=283 from?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "score"='73-74-72-64=283';
```
## Task
Generate a SQL query to answer the following question:
`Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock?`

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

CREATE TABLE "winners" (
  "year" real,
  "top_fuel" text,
  "funny_car" text,
  "pro_stock" text,
  "pro_stock_motorcycle" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock?`:
```sql
                SELECT "pro_stock_motorcycle" FROM "winners" WHERE "pro_stock"='tom martino';
```
## Task
Generate a SQL query to answer the following question:
`Who won Funny Car in 2012?`

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

CREATE TABLE "winners" (
  "year" real,
  "top_fuel" text,
  "funny_car" text,
  "pro_stock" text,
  "pro_stock_motorcycle" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Funny Car in 2012?`:
```sql
                SELECT "funny_car" FROM "winners" WHERE "year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`Who won Funny Car when Jim Yates won Pro Stock, in years after 1996?`

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

CREATE TABLE "winners" (
  "year" real,
  "top_fuel" text,
  "funny_car" text,
  "pro_stock" text,
  "pro_stock_motorcycle" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Funny Car when Jim Yates won Pro Stock, in years after 1996?`:
```sql
                SELECT "funny_car" FROM "winners" WHERE "pro_stock"='jim yates' AND "year">1996;
```
## Task
Generate a SQL query to answer the following question:
`Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car?`

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

CREATE TABLE "winners" (
  "year" real,
  "top_fuel" text,
  "funny_car" text,
  "pro_stock" text,
  "pro_stock_motorcycle" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car?`:
```sql
                SELECT "pro_stock" FROM "winners" WHERE "top_fuel"='tony schumacher' AND "funny_car"='tony pedregon';
```
## Task
Generate a SQL query to answer the following question:
`In which year did John Force win Funny Car and Mike Dunn win in Top Fuel?`

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

CREATE TABLE "winners" (
  "year" real,
  "top_fuel" text,
  "funny_car" text,
  "pro_stock" text,
  "pro_stock_motorcycle" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year did John Force win Funny Car and Mike Dunn win in Top Fuel?`:
```sql
                SELECT "year" FROM "winners" WHERE "funny_car"='john force' AND "top_fuel"='mike dunn';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of races in the 2006 season with 0 poles and more than 0 podiums?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of races in the 2006 season with 0 poles and more than 0 podiums?`:
```sql
                SELECT COUNT("races") FROM "by_seasons_and_teams" WHERE "poles"=0 AND "season"='2006' AND "podiums">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?`:
```sql
                SELECT MAX("fastest_laps") FROM "by_seasons_and_teams" WHERE "poles"=0 AND "races">15 AND "podiums">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of races when there was more than 1 pole, and the fastest number of laps was less than 4?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of races when there was more than 1 pole, and the fastest number of laps was less than 4?`:
```sql
                SELECT SUM("races") FROM "by_seasons_and_teams" WHERE "poles">1 AND "fastest_laps"<4;
```
## Task
Generate a SQL query to answer the following question:
`What was the average number of fastest laps with less than 0 poles?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average number of fastest laps with less than 0 poles?`:
```sql
                SELECT AVG("fastest_laps") FROM "by_seasons_and_teams" WHERE "poles"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of poles when the fastest laps are less than 0?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of poles when the fastest laps are less than 0?`:
```sql
                SELECT MIN("poles") FROM "by_seasons_and_teams" WHERE "fastest_laps"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins in the 2007 season when the fastest laps is 0, there are less than 0 podiums, and there are less than 16 races?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of wins in the 2007 season when the fastest laps is 0, there are less than 0 podiums, and there are less than 16 races?`:
```sql
                SELECT SUM("wins") FROM "by_seasons_and_teams" WHERE "fastest_laps"=0 AND "races"<16 AND "season"='2007' AND "podiums"<0;
```
## Task
Generate a SQL query to answer the following question:
`What surface did hayley ericksen play on?`

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

CREATE TABLE "doubles_finals_6_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface did hayley ericksen play on?`:
```sql
                SELECT "surface" FROM "doubles_finals_6_2" WHERE "partner"='hayley ericksen';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents on a hard surface with a score of 6-4, 7-6(2)?`

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

CREATE TABLE "doubles_finals_6_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents on a hard surface with a score of 6-4, 7-6(2)?`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_finals_6_2" WHERE "surface"='hard' AND "score"='6-4, 7-6(2)';
```
## Task
Generate a SQL query to answer the following question:
`What was hayley ericksen's score?`

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

CREATE TABLE "doubles_finals_6_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was hayley ericksen's score?`:
```sql
                SELECT "score" FROM "doubles_finals_6_2" WHERE "partner"='hayley ericksen';
```
## Task
Generate a SQL query to answer the following question:
`Who won the Silver the Year Katie Curtis Unknown won the Bronze?`

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

CREATE TABLE "women" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Silver the Year Katie Curtis Unknown won the Bronze?`:
```sql
                SELECT "silver" FROM "women" WHERE "bronze"='katie curtis unknown';
```
## Task
Generate a SQL query to answer the following question:
`Round that greg huntington went in?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Round that greg huntington went in?`:
```sql
                SELECT "round" FROM "washington_redskins_draft_history" WHERE "name"='greg huntington';
```
## Task
Generate a SQL query to answer the following question:
`Total overall from penn state?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Total overall from penn state?`:
```sql
                SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "college"='penn state';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons did Pat Chambers coach?`

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

CREATE TABLE "coaching_history" (
  "coach" text,
  "years" text,
  "seasons" real,
  "record" text,
  "pct" real,
  "nat_titles" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did Pat Chambers coach?`:
```sql
                SELECT COUNT("seasons") FROM "coaching_history" WHERE "coach"='pat chambers';
```
## Task
Generate a SQL query to answer the following question:
`What was the to par that goes with the score 68-74-69=211?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the to par that goes with the score 68-74-69=211?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='68-74-69=211';
```
## Task
Generate a SQL query to answer the following question:
`What country is Paul Stankowski from?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Paul Stankowski from?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='paul stankowski';
```
## Task
Generate a SQL query to answer the following question:
`What place goes with the score of 70-66-65=201?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place goes with the score of 70-66-65=201?`:
```sql
                SELECT "place" FROM "third_round" WHERE "score"='70-66-65=201';
```
## Task
Generate a SQL query to answer the following question:
`When Fred Funk had a to par of E, what was the score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Fred Funk had a to par of E, what was the score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "to_par"='e' AND "player"='fred funk';
```
## Task
Generate a SQL query to answer the following question:
`Where is the location where Scott Junk was the opponent?`

### 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" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location where Scott Junk was the opponent?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='scott junk';
```
## Task
Generate a SQL query to answer the following question:
`what is the score on 14 december 1974 and the away team is crystal palace?`

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

CREATE TABLE "second_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 on 14 december 1974 and the away team is crystal palace?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "date"='14 december 1974' AND "away_team"='crystal palace';
```
## Task
Generate a SQL query to answer the following question:
`what is the date when the away team is crystal palace?`

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

CREATE TABLE "second_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 date when the away team is crystal palace?`:
```sql
                SELECT "date" FROM "second_round_proper" WHERE "away_team"='crystal palace';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the player with the 2012 club of asd roma?`

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

CREATE TABLE "current" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the player with the 2012 club of asd roma?`:
```sql
                SELECT "height" FROM "current" WHERE "2012_club"='asd roma';
```
## Task
Generate a SQL query to answer the following question:
`What was the Tie Number of the Bradford City away team?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Tie Number of the Bradford City away team?`:
```sql
                SELECT "tie_no" FROM "fourth_round_proper" WHERE "away_team"='bradford city';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='replay' AND "away_team"='bolton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`What date has a Tie Number of 4?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has a Tie Number of 4?`:
```sql
                SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the average money ($) that Tom Weiskopf made?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average money ($) that Tom Weiskopf made?`:
```sql
                SELECT AVG("money") FROM "final_leaderboard" WHERE "player"='tom weiskopf';
```
## Task
Generate a SQL query to answer the following question:
`What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "to_par"='+2' AND "score"='73-74-71-72=290';
```
## Task
Generate a SQL query to answer the following question:
`For the number notion more than 1,000,000 with a power notion of 10 12, what is the short scale?`

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

CREATE TABLE "cardinal_numbers" (
  "number_notation" real,
  "power_notation" text,
  "short_scale" text,
  "long_scale" text,
  "indian_or_south_asian_english" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the number notion more than 1,000,000 with a power notion of 10 12, what is the short scale?`:
```sql
                SELECT "short_scale" FROM "cardinal_numbers" WHERE "number_notation">'1,000,000' AND "power_notation"='10 12';
```
## Task
Generate a SQL query to answer the following question:
`For a long scale of one million, what is the power notion?`

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

CREATE TABLE "cardinal_numbers" (
  "number_notation" real,
  "power_notation" text,
  "short_scale" text,
  "long_scale" text,
  "indian_or_south_asian_english" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a long scale of one million, what is the power notion?`:
```sql
                SELECT "power_notation" FROM "cardinal_numbers" WHERE "long_scale"='one million';
```
## Task
Generate a SQL query to answer the following question:
`For a power notation of 10 12, what is the long scale?`

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

CREATE TABLE "cardinal_numbers" (
  "number_notation" real,
  "power_notation" text,
  "short_scale" text,
  "long_scale" text,
  "indian_or_south_asian_english" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a power notation of 10 12, what is the long scale?`:
```sql
                SELECT "long_scale" FROM "cardinal_numbers" WHERE "power_notation"='10 12';
```
## Task
Generate a SQL query to answer the following question:
`For a short scale of one quadrillion a thousand trillion, what is the Long scale?`

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

CREATE TABLE "cardinal_numbers" (
  "number_notation" real,
  "power_notation" text,
  "short_scale" text,
  "long_scale" text,
  "indian_or_south_asian_english" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a short scale of one quadrillion a thousand trillion, what is the Long scale?`:
```sql
                SELECT "long_scale" FROM "cardinal_numbers" WHERE "short_scale"='one quadrillion a thousand trillion';
```
## Task
Generate a SQL query to answer the following question:
`what is the employee (real name) when the pick # is higher than 10 and the brand (to) is raw?`

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

CREATE TABLE "draft_lottery" (
  "pick_num" real,
  "brand_to" text,
  "employee_real_name" text,
  "role" text,
  "brand_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the employee (real name) when the pick # is higher than 10 and the brand (to) is raw?`:
```sql
                SELECT "employee_real_name" FROM "draft_lottery" WHERE "pick_num">10 AND "brand_to"='raw';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opposing team when the scorer was ronaldinho 90+3'?`

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

CREATE TABLE "uefa_cup" (
  "match" real,
  "date" text,
  "round" text,
  "home_away" text,
  "opponent_team" text,
  "score" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opposing team when the scorer was ronaldinho 90+3'?`:
```sql
                SELECT "opponent_team" FROM "uefa_cup" WHERE "scorers"='ronaldinho 90+3''';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opposing team when the scorers were jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69'?`

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

CREATE TABLE "uefa_cup" (
  "match" real,
  "date" text,
  "round" text,
  "home_away" text,
  "opponent_team" text,
  "score" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opposing team when the scorers were jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69'?`:
```sql
                SELECT "opponent_team" FROM "uefa_cup" WHERE "scorers"='jong-a-pin 19''( o.g. ) , gattuso 23'' , inzaghi 69''';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Altrincham was home?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Altrincham was home?`:
```sql
                SELECT "score" FROM "third_round_proper" WHERE "home_team"='altrincham';
```
## Task
Generate a SQL query to answer the following question:
`How many goals against when the draws are fewer than 3?`

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

CREATE TABLE "premier_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals against when the draws are fewer than 3?`:
```sql
                SELECT MAX("goals_against") FROM "premier_division_final_table" WHERE "drawn"<3;
```
## Task
Generate a SQL query to answer the following question:
`How many goals when the points 1 is 38 and the played number is less than 42?`

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

CREATE TABLE "premier_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals when the points 1 is 38 and the played number is less than 42?`:
```sql
                SELECT SUM("goals_for") FROM "premier_division_final_table" WHERE "points_1"=38 AND "played"<42;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest goals for when goal difference is +10 and goals against is more than 61?`

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

CREATE TABLE "premier_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest goals for when goal difference is +10 and goals against is more than 61?`:
```sql
                SELECT MIN("goals_for") FROM "premier_division_final_table" WHERE "goal_difference"='+10' AND "goals_against">61;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest goals for when goals against is 75 and drawn is smaller than 11?`

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

CREATE TABLE "premier_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest goals for when goals against is 75 and drawn is smaller than 11?`:
```sql
                SELECT MIN("goals_for") FROM "premier_division_final_table" WHERE "goals_against"=75 AND "drawn"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest goals for the position after 10, a goal difference less than -24, and played more than 30 times?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest goals for the position after 10, a goal difference less than -24, and played more than 30 times?`:
```sql
                SELECT MAX("goals_for") FROM "group_ii" WHERE "position">10 AND "goal_difference"<-24 AND "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest goals for more than 30 games played?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goals for more than 30 games played?`:
```sql
                SELECT MIN("goals_for") FROM "group_ii" WHERE "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?`:
```sql
                SELECT MAX("goals_for") FROM "group_ii" WHERE "position">8 AND "losses"=12 AND "played"<30;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses for the over 30 games played?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses for the over 30 games played?`:
```sql
                SELECT COUNT("losses") FROM "group_ii" WHERE "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses and draws less than 7, points larger than 26, 60 goals, and a position before 4?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses and draws less than 7, points larger than 26, 60 goals, and a position before 4?`:
```sql
                SELECT COUNT("losses") FROM "group_ii" WHERE "draws"<7 AND "points">26 AND "goals_for"=60 AND "position"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a total of 15?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a total of 15?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "gold">0 AND "total"=15 AND "silver"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when High Points is "Dwight Howard (25)"?`

### 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 Score, when High Points is "Dwight Howard (25)"?`:
```sql
                SELECT "score" FROM "game_log" WHERE "high_points"='dwight howard (25)';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Team is "Washington"?`

### 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 Score, when Team is "Washington"?`:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='washington';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Location Attendance is "Pepsi Center 19,749"?`

### 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 Record, when Location Attendance is "Pepsi Center 19,749"?`:
```sql
                SELECT "record" FROM "game_log" WHERE "location_attendance"='pepsi center 19,749';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Game is "36"?`

### 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 Record, when Game is "36"?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game"=36;
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Winning Score is −14 (68-68-67-71=274)?`

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

CREATE TABLE "pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Winning Score is −14 (68-68-67-71=274)?`:
```sql
                SELECT "date" FROM "pga_tour_wins_9" WHERE "winning_score"='−14 (68-68-67-71=274)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Margin of Victory, when Tournament is Mercedes Championships (3)?`

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

CREATE TABLE "pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Margin of Victory, when Tournament is Mercedes Championships (3)?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_9" WHERE "tournament"='mercedes championships (3)';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Tournament, is Greenbrier Classic?`

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

CREATE TABLE "pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Tournament, is Greenbrier Classic?`:
```sql
                SELECT "date" FROM "pga_tour_wins_9" WHERE "tournament"='greenbrier classic';
```
## Task
Generate a SQL query to answer the following question:
`What is Runner(s)-Up when Margin of Victory is 6 Strokes?`

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

CREATE TABLE "pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Runner(s)-Up when Margin of Victory is 6 Strokes?`:
```sql
                SELECT "runner_s_up" FROM "pga_tour_wins_9" WHERE "margin_of_victory"='6 strokes';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Runner(s)-Up is Jonathan Kaye?`

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

CREATE TABLE "pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Runner(s)-Up is Jonathan Kaye?`:
```sql
                SELECT "date" FROM "pga_tour_wins_9" WHERE "runner_s_up"='jonathan kaye';
```
## Task
Generate a SQL query to answer the following question:
`What is the year that nahete colles was named?`

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

CREATE TABLE "colles" (
  "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 year that nahete colles was named?`:
```sql
                SELECT MAX("year_named") FROM "colles" WHERE "name"='nahete colles';
```
## Task
Generate a SQL query to answer the following question:
`What year was the geological feature with a latitude of 76.0n and a diameter larger than 548 km was named?`

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

CREATE TABLE "colles" (
  "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 year was the geological feature with a latitude of 76.0n and a diameter larger than 548 km was named?`:
```sql
                SELECT MAX("year_named") FROM "colles" WHERE "latitude"='76.0n' AND "diameter_km">548;
```
## Task
Generate a SQL query to answer the following question:
`What is the diameter in km of t'ien hu colles?`

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

CREATE TABLE "colles" (
  "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 diameter in km of t'ien hu colles?`:
```sql
                SELECT "diameter_km" FROM "colles" WHERE "name"='t''ien hu colles';
```
## Task
Generate a SQL query to answer the following question:
`Which team has driven 134 laps?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has driven 134 laps?`:
```sql
                SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "laps"=134;
```
## Task
Generate a SQL query to answer the following question:
`In what class is the laps greater than 134 and the position is 4th?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what class is the laps greater than 134 and the position is 4th?`:
```sql
                SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps">134 AND "pos"='4th';
```
## Task
Generate a SQL query to answer the following question:
`What title did Mentuhotep IV have?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title did Mentuhotep IV have?`:
```sql
                SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='mentuhotep iv';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of Amenemhat II?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of Amenemhat II?`:
```sql
                SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='amenemhat ii';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of Senusret I?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of Senusret I?`:
```sql
                SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='senusret i';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of Amenemhat I?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of Amenemhat I?`:
```sql
                SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='amenemhat i';
```
## Task
Generate a SQL query to answer the following question:
`What is the type shown from 1991 bc?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type shown from 1991 bc?`:
```sql
                SELECT "type" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='1991 bc';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record when the round was 5, time was 5:00, and the opponent was Torrance Taylor`

### 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,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record when the round was 5, time was 5:00, and the opponent was Torrance Taylor`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"=5 AND "time"='5:00' AND "opponent"='torrance taylor';
```