cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap where Joan Lascorz was the winner?`

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

CREATE TABLE "season_calendar" (
  "date" text,
  "round" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap where Joan Lascorz was the winner?`:
```sql
                SELECT "fastest_lap" FROM "season_calendar" WHERE "race_winner"='joan lascorz';
```
## Task
Generate a SQL query to answer the following question:
`Who won the round in Europe?`

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

CREATE TABLE "season_calendar" (
  "date" text,
  "round" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the round in Europe?`:
```sql
                SELECT "race_winner" FROM "season_calendar" WHERE "round"='europe';
```
## Task
Generate a SQL query to answer the following question:
`How many games have a Score of 3–0, and a January larger than 12?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have a Score of 3–0, and a January larger than 12?`:
```sql
                SELECT COUNT("game") FROM "regular_season" WHERE "score"='3–0' AND "january">12;
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5–3?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5–3?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "january">8 AND "game"<48 AND "score"='5–3';
```
## Task
Generate a SQL query to answer the following question:
`Which Game is the highest that has a January of 28?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game is the highest that has a January of 28?`:
```sql
                SELECT MAX("game") FROM "regular_season" WHERE "january"=28;
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Game larger than 47, and a January smaller than 25?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Game larger than 47, and a January smaller than 25?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "game">47 AND "january"<25;
```
## Task
Generate a SQL query to answer the following question:
`What stroke has a max power of 109 ps(80kw)@4000 rpm?`

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

CREATE TABLE "engine_reference" (
  "code" text,
  "vehicle" text,
  "year" text,
  "displacement" text,
  "bore" text,
  "stroke" text,
  "c_r" text,
  "max_power" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stroke has a max power of 109 ps(80kw)@4000 rpm?`:
```sql
                SELECT "stroke" FROM "engine_reference" WHERE "max_power"='109 ps(80kw)@4000 rpm';
```
## Task
Generate a SQL query to answer the following question:
`The nissan primera p12 nissan almera n16 has what C.R.?`

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

CREATE TABLE "engine_reference" (
  "code" text,
  "vehicle" text,
  "year" text,
  "displacement" text,
  "bore" text,
  "stroke" text,
  "c_r" text,
  "max_power" text
);
### SQL
Given the database schema, here is the SQL query that answers `The nissan primera p12 nissan almera n16 has what C.R.?`:
```sql
                SELECT "c_r" FROM "engine_reference" WHERE "vehicle"='nissan primera p12 nissan almera n16';
```
## Task
Generate a SQL query to answer the following question:
`What displacement has the code yd22ddt?`

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

CREATE TABLE "engine_reference" (
  "code" text,
  "vehicle" text,
  "year" text,
  "displacement" text,
  "bore" text,
  "stroke" text,
  "c_r" text,
  "max_power" text
);
### SQL
Given the database schema, here is the SQL query that answers `What displacement has the code yd22ddt?`:
```sql
                SELECT "displacement" FROM "engine_reference" WHERE "code"='yd22ddt';
```
## Task
Generate a SQL query to answer the following question:
`What code has a C.R of 16.7:1?`

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

CREATE TABLE "engine_reference" (
  "code" text,
  "vehicle" text,
  "year" text,
  "displacement" text,
  "bore" text,
  "stroke" text,
  "c_r" text,
  "max_power" text
);
### SQL
Given the database schema, here is the SQL query that answers `What code has a C.R of 16.7:1?`:
```sql
                SELECT "code" FROM "engine_reference" WHERE "c_r"='16.7:1';
```
## Task
Generate a SQL query to answer the following question:
`What Outcome happened on a Date that was 20 november 2011?`

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

CREATE TABLE "singles" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Outcome happened on a Date that was 20 november 2011?`:
```sql
                SELECT "outcome" FROM "singles" WHERE "date"='20 november 2011';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team has a Score of 0–3?`

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

CREATE TABLE "fourth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Away team has a Score of 0–3?`:
```sql
                SELECT "away_team" FROM "fourth_round" WHERE "score"='0–3';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Tie number of 5?`

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

CREATE TABLE "fourth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Tie number of 5?`:
```sql
                SELECT "attendance" FROM "fourth_round" WHERE "tie_no"='5';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has an Attendance of 23 january 1999, and a Tie # of 6?`

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

CREATE TABLE "fourth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Attendance of 23 january 1999, and a Tie # of 6?`:
```sql
                SELECT "score" FROM "fourth_round" WHERE "attendance"='23 january 1999' AND "tie_no"='6';
```
## Task
Generate a SQL query to answer the following question:
`Which Tie #has an Attendance of 54,591?`

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

CREATE TABLE "fourth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tie #has an Attendance of 54,591?`:
```sql
                SELECT "tie_no" FROM "fourth_round" WHERE "attendance"='54,591';
```
## Task
Generate a SQL query to answer the following question:
`Which Home team has a Score of 1–1, and an Away team of tottenham hotspur?`

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

CREATE TABLE "fourth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team has a Score of 1–1, and an Away team of tottenham hotspur?`:
```sql
                SELECT "home_team" FROM "fourth_round" WHERE "score"='1–1' AND "away_team"='tottenham hotspur';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Tie # of 15?`

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

CREATE TABLE "fourth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Tie # of 15?`:
```sql
                SELECT "attendance" FROM "fourth_round" WHERE "tie_no"='15';
```
## Task
Generate a SQL query to answer the following question:
`In what Year was the Position 11th?`

### 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,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year was the Position 11th?`:
```sql
                SELECT COUNT("year") FROM "achievements" WHERE "position"='11th';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the Competition in Rome, Italy?`

### 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,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the Competition in Rome, Italy?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "venue"='rome, italy';
```
## Task
Generate a SQL query to answer the following question:
`What Notes after 1983 have a Position of 18th?`

### 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,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Notes after 1983 have a Position of 18th?`:
```sql
                SELECT "notes" FROM "achievements" WHERE "year">1983 AND "position"='18th';
```
## Task
Generate a SQL query to answer the following question:
`After 1983, what was the Position in Seoul, South Korea?`

### 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,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `After 1983, what was the Position in Seoul, South Korea?`:
```sql
                SELECT "position" FROM "achievements" WHERE "year">1983 AND "venue"='seoul, south korea';
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='1' AND "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals does the country with 2 Silver and more than 2 Bronze have?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Gold medals does the country with 2 Silver and more than 2 Bronze have?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=2 AND "bronze">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the Age of dorothy Peel as of 1 February 2014 ?`

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

CREATE TABLE "living_british_supercentenarians" (
  "name" text,
  "birth_date" text,
  "age_as_of_1_february_2014" text,
  "country_of_birth" text,
  "place_of_residence" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Age of dorothy Peel as of 1 February 2014 ?`:
```sql
                SELECT "age_as_of_1_february_2014" FROM "living_british_supercentenarians" WHERE "name"='dorothy peel';
```
## Task
Generate a SQL query to answer the following question:
`Who is 111years, 358days Age as of 1 February 2014?`

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

CREATE TABLE "living_british_supercentenarians" (
  "name" text,
  "birth_date" text,
  "age_as_of_1_february_2014" text,
  "country_of_birth" text,
  "place_of_residence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is 111years, 358days Age as of 1 February 2014?`:
```sql
                SELECT "name" FROM "living_british_supercentenarians" WHERE "age_as_of_1_february_2014"='111years, 358days';
```
## Task
Generate a SQL query to answer the following question:
`Which Capacity has a City of london, and a Stadium of queen's club?`

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

CREATE TABLE "atp_tour_venues" (
  "rank" text,
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Capacity has a City of london, and a Stadium of queen's club?`:
```sql
                SELECT AVG("capacity") FROM "atp_tour_venues" WHERE "city"='london' AND "stadium"='queen''s club';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Name of thomas morgenstern, and Points larger than 368.9?`

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

CREATE TABLE "planica" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Name of thomas morgenstern, and Points larger than 368.9?`:
```sql
                SELECT AVG("rank") FROM "planica" WHERE "name"='thomas morgenstern' AND "points">368.9;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has an Overall WC points (Rank) of 1561 (2), and a 1st (m) larger than 217?`

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

CREATE TABLE "planica" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has an Overall WC points (Rank) of 1561 (2), and a 1st (m) larger than 217?`:
```sql
                SELECT AVG("rank") FROM "planica" WHERE "overall_wc_points_rank"='1561 (2)' AND "1st_m">217;
```
## Task
Generate a SQL query to answer the following question:
`How much Rank has a Name of janne happonen, and a 1st (m) larger than 203.5?`

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

CREATE TABLE "planica" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Rank has a Name of janne happonen, and a 1st (m) larger than 203.5?`:
```sql
                SELECT COUNT("rank") FROM "planica" WHERE "name"='janne happonen' AND "1st_m">203.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "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 lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "gold">8 AND "silver"<10;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of silvers for ranks over 7?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "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 number of silvers for ranks over 7?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "rank">7;
```
## Task
Generate a SQL query to answer the following question:
`Which location held a game against the Maryland Terrapins?`

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

CREATE TABLE "fixtures" (
  "date" text,
  "location" text,
  "opponent" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location held a game against the Maryland Terrapins?`:
```sql
                SELECT "location" FROM "fixtures" WHERE "opponent"='maryland terrapins';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the record recorded was 64-78?`

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

CREATE TABLE "game_log" (
  "date" text,
  "time" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the record recorded was 64-78?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='64-78';
```
## Task
Generate a SQL query to answer the following question:
`When the record was 67-82, what was the final score recorded?`

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

CREATE TABLE "game_log" (
  "date" text,
  "time" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the record was 67-82, what was the final score recorded?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='67-82';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for the game played with 54,136 people in attendance?`

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

CREATE TABLE "game_log" (
  "date" text,
  "time" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for the game played with 54,136 people in attendance?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "attendance"='54,136';
```
## Task
Generate a SQL query to answer the following question:
`Which position does bert coan play?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position does bert coan play?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "player"='bert coan';
```
## Task
Generate a SQL query to answer the following question:
`What is round 1's position?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is round 1's position?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "round"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which Round is the highest one that has a Position of running back?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round is the highest one that has a Position of running back?`:
```sql
                SELECT MAX("round") FROM "nfl_draft" WHERE "position"='running back';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Pick smaller than 29, and a School/Club Team of arizona?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Pick smaller than 29, and a School/Club Team of arizona?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "pick"<29 AND "school_club_team"='arizona';
```
## Task
Generate a SQL query to answer the following question:
`Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43?`:
```sql
                SELECT MIN("round") FROM "nfl_draft" WHERE "school_club_team"='alabama' AND "pick">43;
```
## Task
Generate a SQL query to answer the following question:
`what is the venue of belshina`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_2001" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue of belshina`:
```sql
                SELECT "venue" FROM "teams_and_venues" WHERE "team"='belshina';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue of neman`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_2001" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue of neman`:
```sql
                SELECT "venue" FROM "teams_and_venues" WHERE "team"='neman';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of pick with round less than 6 and overall of 102`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of pick with round less than 6 and overall of 102`:
```sql
                SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "round"<6 AND "overall"=102;
```
## Task
Generate a SQL query to answer the following question:
`Which Outcome has a Score of 4–6 3–6?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Outcome has a Score of 4–6 3–6?`:
```sql
                SELECT "outcome" FROM "singles_5_2_3" WHERE "score"='4–6 3–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Score of 3–6 6–4 4–6?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Score of 3–6 6–4 4–6?`:
```sql
                SELECT "tournament" FROM "singles_5_2_3" WHERE "score"='3–6 6–4 4–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 6–1 7–6 (8–6)?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Score of 6–1 7–6 (8–6)?`:
```sql
                SELECT "date" FROM "singles_5_2_3" WHERE "score"='6–1 7–6 (8–6)';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Date of 26 september 2004?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Date of 26 september 2004?`:
```sql
                SELECT "score" FROM "singles_5_2_3" WHERE "date"='26 september 2004';
```
## Task
Generate a SQL query to answer the following question:
`Which Outcome has a Score of 3–6 2–6?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Outcome has a Score of 3–6 2–6?`:
```sql
                SELECT "outcome" FROM "singles_5_2_3" WHERE "score"='3–6 2–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has an Opponent in the final of daniella dominikovic?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has an Opponent in the final of daniella dominikovic?`:
```sql
                SELECT "surface" FROM "singles_5_2_3" WHERE "opponent_in_the_final"='daniella dominikovic';
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of time (sum) at 40° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft?`

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

CREATE TABLE "performance" (
  "m_v_ft_s" real,
  "shell_lb" real,
  "time_to_ft_m_at_25_seconds" text,
  "time_to_ft_m_at_40_seconds" real,
  "time_to_ft_m_at_55_seconds" real,
  "max_height_ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of time (sum) at 40° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft?`:
```sql
                SELECT COUNT("time_to_ft_m_at_40_seconds") FROM "performance" WHERE "shell_lb"=16 AND "max_height_ft"<'22,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the average maximum height of a shell that travels for more than 16.3 seconds at 55° and has a maximum velocity of 2200 ft/s?`

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

CREATE TABLE "performance" (
  "m_v_ft_s" real,
  "shell_lb" real,
  "time_to_ft_m_at_25_seconds" text,
  "time_to_ft_m_at_40_seconds" real,
  "time_to_ft_m_at_55_seconds" real,
  "max_height_ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average maximum height of a shell that travels for more than 16.3 seconds at 55° and has a maximum velocity of 2200 ft/s?`:
```sql
                SELECT AVG("max_height_ft") FROM "performance" WHERE "time_to_ft_m_at_55_seconds">16.3 AND "m_v_ft_s"=2200;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum amount of time a shell travels at 55° when it traveled less than 9.6 seconds at 40°?`

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

CREATE TABLE "performance" (
  "m_v_ft_s" real,
  "shell_lb" real,
  "time_to_ft_m_at_25_seconds" text,
  "time_to_ft_m_at_40_seconds" real,
  "time_to_ft_m_at_55_seconds" real,
  "max_height_ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum amount of time a shell travels at 55° when it traveled less than 9.6 seconds at 40°?`:
```sql
                SELECT MAX("time_to_ft_m_at_55_seconds") FROM "performance" WHERE "time_to_ft_m_at_40_seconds"<9.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the weight of the shell that reached its maximum height at 40° in 12.6 seconds?`

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

CREATE TABLE "performance" (
  "m_v_ft_s" real,
  "shell_lb" real,
  "time_to_ft_m_at_25_seconds" text,
  "time_to_ft_m_at_40_seconds" real,
  "time_to_ft_m_at_55_seconds" real,
  "max_height_ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight of the shell that reached its maximum height at 40° in 12.6 seconds?`:
```sql
                SELECT "shell_lb" FROM "performance" WHERE "time_to_ft_m_at_40_seconds"=12.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds?`

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

CREATE TABLE "performance" (
  "m_v_ft_s" real,
  "shell_lb" real,
  "time_to_ft_m_at_25_seconds" text,
  "time_to_ft_m_at_40_seconds" real,
  "time_to_ft_m_at_55_seconds" real,
  "max_height_ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds?`:
```sql
                SELECT AVG("max_height_ft") FROM "performance" WHERE "time_to_ft_m_at_25_seconds"='10.1' AND "shell_lb"<12.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance for the game that was before week 6 on October 22, 1967?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance for the game that was before week 6 on October 22, 1967?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "date"='october 22, 1967' AND "week"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY?`

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

CREATE TABLE "delegates" (
  "state" text,
  "name" text,
  "hometown" text,
  "age_1" real,
  "talent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY?`:
```sql
                SELECT "state" FROM "delegates" WHERE "talent"='classical piano' AND "hometown"='lancaster, ny';
```
## Task
Generate a SQL query to answer the following question:
`Whose talent was ballet en pointe?`

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

CREATE TABLE "delegates" (
  "state" text,
  "name" text,
  "hometown" text,
  "age_1" real,
  "talent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose talent was ballet en pointe?`:
```sql
                SELECT "name" FROM "delegates" WHERE "talent"='ballet en pointe';
```
## Task
Generate a SQL query to answer the following question:
`What is the state represented by the contestant from Mesa, AZ?`

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

CREATE TABLE "delegates" (
  "state" text,
  "name" text,
  "hometown" text,
  "age_1" real,
  "talent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the state represented by the contestant from Mesa, AZ?`:
```sql
                SELECT "state" FROM "delegates" WHERE "hometown"='mesa, az';
```
## Task
Generate a SQL query to answer the following question:
`What is the talent of the contestant from Lexington, SC?`

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

CREATE TABLE "delegates" (
  "state" text,
  "name" text,
  "hometown" text,
  "age_1" real,
  "talent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the talent of the contestant from Lexington, SC?`:
```sql
                SELECT "talent" FROM "delegates" WHERE "hometown"='lexington, sc';
```
## Task
Generate a SQL query to answer the following question:
`What is the age of the contestant from Reno, NV?`

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

CREATE TABLE "delegates" (
  "state" text,
  "name" text,
  "hometown" text,
  "age_1" real,
  "talent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the age of the contestant from Reno, NV?`:
```sql
                SELECT "age_1" FROM "delegates" WHERE "hometown"='reno, nv';
```
## Task
Generate a SQL query to answer the following question:
`Which writer wrote episode 18-09 (652)?`

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

CREATE TABLE "season_18_1954" (
  "episode" text,
  "title" text,
  "writer_s" text,
  "preservation" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which writer wrote episode 18-09 (652)?`:
```sql
                SELECT "writer_s" FROM "season_18_1954" WHERE "episode"='18-09 (652)';
```
## Task
Generate a SQL query to answer the following question:
`What episode was written by jonathan lewis?`

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

CREATE TABLE "season_18_1954" (
  "episode" text,
  "title" text,
  "writer_s" text,
  "preservation" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode was written by jonathan lewis?`:
```sql
                SELECT "episode" FROM "season_18_1954" WHERE "writer_s"='jonathan lewis';
```
## Task
Generate a SQL query to answer the following question:
`What position does Maryland have a player for Round 3?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Maryland have a player for Round 3?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='maryland' AND "round"=3;
```
## Task
Generate a SQL query to answer the following question:
`How many picks are there for defensive back for rounds larger than 11?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks are there for defensive back for rounds larger than 11?`:
```sql
                SELECT COUNT("pick") FROM "nfl_draft" WHERE "position"='defensive back' AND "round">11;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest game that has april 21 as the date?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest game that has april 21 as the date?`:
```sql
                SELECT MAX("game") FROM "playoffs" WHERE "date"='april 21';
```
## Task
Generate a SQL query to answer the following question:
`What score has a game less than 4, and april 19 as the date?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a game less than 4, and april 19 as the date?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "game"<4 AND "date"='april 19';
```
## Task
Generate a SQL query to answer the following question:
`What opponent has a game less than 6, and april 17 as the date?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has a game less than 6, and april 17 as the date?`:
```sql
                SELECT "opponent" FROM "playoffs" WHERE "game"<6 AND "date"='april 17';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team that played Derby County as the away team?`

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

CREATE TABLE "fifth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team that played Derby County as the away team?`:
```sql
                SELECT "home_team" FROM "fifth_round" WHERE "away_team"='derby county';
```
## Task
Generate a SQL query to answer the following question:
`Which home team is ranked no. 7 by tie no.?`

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

CREATE TABLE "fifth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team is ranked no. 7 by tie no.?`:
```sql
                SELECT "home_team" FROM "fifth_round" WHERE "tie_no"='7';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the game in which Manchester United was the home team?`

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

CREATE TABLE "fifth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the game in which Manchester United was the home team?`:
```sql
                SELECT "score" FROM "fifth_round" WHERE "home_team"='manchester united';
```
## Task
Generate a SQL query to answer the following question:
`How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"<5 AND "silver">1 AND "rank">8;
```
## Task
Generate a SQL query to answer the following question:
`What nation was the film from that was in english and had a Literary tradition of canadian literature?`

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

CREATE TABLE "award_winners" (
  "year" real,
  "name" text,
  "country" text,
  "language_s" text,
  "literary_tradition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nation was the film from that was in english and had a Literary tradition of canadian literature?`:
```sql
                SELECT "country" FROM "award_winners" WHERE "language_s"='english' AND "literary_tradition"='canadian literature';
```
## Task
Generate a SQL query to answer the following question:
`What is the literary traidtion for the film in english in 2011?`

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

CREATE TABLE "award_winners" (
  "year" real,
  "name" text,
  "country" text,
  "language_s" text,
  "literary_tradition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the literary traidtion for the film in english in 2011?`:
```sql
                SELECT "literary_tradition" FROM "award_winners" WHERE "language_s"='english' AND "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`What country was the film made in that was made after 2011?`

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

CREATE TABLE "award_winners" (
  "year" real,
  "name" text,
  "country" text,
  "language_s" text,
  "literary_tradition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the film made in that was made after 2011?`:
```sql
                SELECT "country" FROM "award_winners" WHERE "year">2011;
```
## Task
Generate a SQL query to answer the following question:
`Which team has 48 rebounds?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has 48 rebounds?`:
```sql
                SELECT "team" FROM "rebounds" WHERE "rebounds"=48;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest amount of 12 games and less than 48 rebounds?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest amount of 12 games and less than 48 rebounds?`:
```sql
                SELECT MIN("rank") FROM "rebounds" WHERE "games"=12 AND "rebounds"<48;
```
## Task
Generate a SQL query to answer the following question:
`How many rebounds does Fedor likholitov have with a rank greater than 8?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many rebounds does Fedor likholitov have with a rank greater than 8?`:
```sql
                SELECT SUM("rebounds") FROM "rebounds" WHERE "name"='fedor likholitov' AND "rank">8;
```
## Task
Generate a SQL query to answer the following question:
`Which game has more than 112 rebounds and a rank greater than 3?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which game has more than 112 rebounds and a rank greater than 3?`:
```sql
                SELECT MAX("games") FROM "rebounds" WHERE "rank">3 AND "rebounds"=112;
```
## Task
Generate a SQL query to answer the following question:
`What was the score in a place of t5 in the United States?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "nation" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in a place of t5 in the United States?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "place"='t5' AND "nation"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par that has more than $122,591 in Sweden and had Annika Sörenstam play?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "nation" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par that has more than $122,591 in Sweden and had Annika Sörenstam play?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "money">'122,591' AND "nation"='sweden' AND "player"='annika sörenstam';
```