cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?`:
```sql
                SELECT SUM("rank") FROM "heat_1" WHERE "athlete"='solomon bayoh' AND "time"<22.16;
```
## Task
Generate a SQL query to answer the following question:
`Who is the artist of the album Soul?`

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

CREATE TABLE "top_5_british_albums" (
  "rank" real,
  "artist" text,
  "album" text,
  "peak_position" text,
  "sales" real,
  "certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the artist of the album Soul?`:
```sql
                SELECT "artist" FROM "top_5_british_albums" WHERE "album"='soul';
```
## Task
Generate a SQL query to answer the following question:
`who is the athlete when the time is less than 11.13 and the country is belgium?`

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

CREATE TABLE "round_2" (
  "rank" real,
  "heat" real,
  "athlete" text,
  "country" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the athlete when the time is less than 11.13 and the country is belgium?`:
```sql
                SELECT "athlete" FROM "round_2" WHERE "time"<11.13 AND "country"='belgium';
```
## Task
Generate a SQL query to answer the following question:
`who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?`

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

CREATE TABLE "round_2" (
  "rank" real,
  "heat" real,
  "athlete" text,
  "country" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?`:
```sql
                SELECT "athlete" FROM "round_2" WHERE "rank"<13 AND "time">11.13 AND "country"='bahamas' AND "heat">2;
```
## Task
Generate a SQL query to answer the following question:
`what is the heat when the athlete is anita pistone?`

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

CREATE TABLE "round_2" (
  "rank" real,
  "heat" real,
  "athlete" text,
  "country" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the heat when the athlete is anita pistone?`:
```sql
                SELECT SUM("heat") FROM "round_2" WHERE "athlete"='anita pistone';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?`

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

CREATE TABLE "round_2" (
  "rank" real,
  "heat" real,
  "athlete" text,
  "country" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?`:
```sql
                SELECT COUNT("time") FROM "round_2" WHERE "rank">29 AND "athlete"='barbara pierre' AND "heat"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Class has a Location of linton?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Class has a Location of linton?`:
```sql
                SELECT "ihsaa_class" FROM "membership" WHERE "location"='linton';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of matches played for teams with more than 10 losses and under 5 points?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of matches played for teams with more than 10 losses and under 5 points?`:
```sql
                SELECT SUM("played") FROM "first_round" WHERE "lost">10 AND "points"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses?`:
```sql
                SELECT COUNT("position") FROM "first_round" WHERE "points">5 AND "drawn"=3 AND "lost"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of losses for teams with under 4 losses and under 21 points?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of losses for teams with under 4 losses and under 21 points?`:
```sql
                SELECT AVG("drawn") FROM "first_round" WHERE "lost"<4 AND "points"<21;
```
## Task
Generate a SQL query to answer the following question:
`What is the home team at the game with an Attendance of 2,029?`

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

CREATE TABLE "southern_section" (
  "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 at the game with an Attendance of 2,029?`:
```sql
                SELECT "home_team" FROM "southern_section" WHERE "attendance"='2,029';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team at the game with an Attendance of 1,730?`

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

CREATE TABLE "southern_section" (
  "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 away team at the game with an Attendance of 1,730?`:
```sql
                SELECT "away_team" FROM "southern_section" WHERE "attendance"='1,730';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team at the game with a Tie no of 2?`

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

CREATE TABLE "southern_section" (
  "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 away team at the game with a Tie no of 2?`:
```sql
                SELECT "away_team" FROM "southern_section" WHERE "tie_no"='2';
```
## Task
Generate a SQL query to answer the following question:
`What F/Laps listing has entries of n/a Points, 1 Poles, and 0 Wins?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What F/Laps listing has entries of n/a Points, 1 Poles, and 0 Wins?`:
```sql
                SELECT "f_laps" FROM "career_summary" WHERE "points"='n/a' AND "poles"='1' AND "wins"='0';
```
## Task
Generate a SQL query to answer the following question:
`What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a?`:
```sql
                SELECT "series" FROM "career_summary" WHERE "season"<2003 AND "podiums"='1' AND "points"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What Podiums listing has a World Rally Championship series entry?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Podiums listing has a World Rally Championship series entry?`:
```sql
                SELECT "podiums" FROM "career_summary" WHERE "series"='world rally championship';
```
## Task
Generate a SQL query to answer the following question:
`What races have n/a Points, 0 Wins, and 6th Position entries?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What races have n/a Points, 0 Wins, and 6th Position entries?`:
```sql
                SELECT "races" FROM "career_summary" WHERE "points"='n/a' AND "wins"='0' AND "position"='6th';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?`:
```sql
                SELECT MAX("season") FROM "career_summary" WHERE "team"='prema powerteam' AND "series"='masters of formula three';
```
## Task
Generate a SQL query to answer the following question:
`What listing for Podiums has 0 F/laps and 39 points?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What listing for Podiums has 0 F/laps and 39 points?`:
```sql
                SELECT "podiums" FROM "career_summary" WHERE "f_laps"='0' AND "points"='39';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has an Attendance larger than 16,186, and Points smaller than 52, and a Record of 21–16–9?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has an Attendance larger than 16,186, and Points smaller than 52, and a Record of 21–16–9?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "attendance">'16,186' AND "points"<52 AND "record"='21–16–9';
```
## Task
Generate a SQL query to answer the following question:
`Which Loss has a Record of 20–16–9?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Loss has a Record of 20–16–9?`:
```sql
                SELECT "loss" FROM "regular_season" WHERE "record"='20–16–9';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 19–16–8?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Record of 19–16–8?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "record"='19–16–8';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Time that has the Lane of 8?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Time that has the Lane of 8?`:
```sql
                SELECT "time" FROM "semifinal_1" WHERE "lane"=8;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Total number of Rankthat has the Lane of 4?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Total number of Rankthat has the Lane of 4?`:
```sql
                SELECT COUNT("rank") FROM "semifinal_1" WHERE "lane"=4;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4?`:
```sql
                SELECT MIN("rank") FROM "semifinal_1" WHERE "nationality"='australia' AND "name"='leisel jones' AND "lane">4;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Name that has the Rank of 4?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Name that has the Rank of 4?`:
```sql
                SELECT "name" FROM "semifinal_1" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Against for a game against Bristol City?`

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

CREATE TABLE "anglo_italian_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Against for a game against Bristol City?`:
```sql
                SELECT MAX("against") FROM "anglo_italian_cup" WHERE "opposing_team"='bristol city';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game against Oxford United?`

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

CREATE TABLE "anglo_italian_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game against Oxford United?`:
```sql
                SELECT "date" FROM "anglo_italian_cup" WHERE "opposing_team"='oxford united';
```
## Task
Generate a SQL query to answer the following question:
`What country is ranked number 4?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is ranked number 4?`:
```sql
                SELECT "country" FROM "semifinal_a_b_2" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`What are the notes from the rank of 1?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes from the rank of 1?`:
```sql
                SELECT "notes" FROM "semifinal_a_b_2" WHERE "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`What rowers have FA as the notes?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rowers have FA as the notes?`:
```sql
                SELECT "rowers" FROM "heat_1" WHERE "notes"='fa';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank has 7:09.06 as the time?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank has 7:09.06 as the time?`:
```sql
                SELECT MIN("rank") FROM "heat_1" WHERE "time"='7:09.06';
```
## Task
Generate a SQL query to answer the following question:
`What notes have 2 as the rank?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What notes have 2 as the rank?`:
```sql
                SELECT "notes" FROM "heat_1" WHERE "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`What was the match that happened in Bishop's Stortford?`

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

CREATE TABLE "stats" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the match that happened in Bishop's Stortford?`:
```sql
                SELECT "match" FROM "stats" WHERE "opponent"='bishop''s stortford';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score for the Thurrock?`

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

CREATE TABLE "stats" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the Thurrock?`:
```sql
                SELECT "score1" FROM "stats" WHERE "opponent"='thurrock';
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA class has a mascot of the Raiders?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "size" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA class has a mascot of the Raiders?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='raiders';
```
## Task
Generate a SQL query to answer the following question:
`Which school has a mascot of the Panthers?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "size" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school has a mascot of the Panthers?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='panthers';
```
## Task
Generate a SQL query to answer the following question:
`What's Italy's time when the notes were SA/B?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Italy's time when the notes were SA/B?`:
```sql
                SELECT "time" FROM "heat_1" WHERE "notes"='sa/b' AND "country"='italy';
```
## Task
Generate a SQL query to answer the following question:
`What is Italy's rank?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Italy's rank?`:
```sql
                SELECT "rank" FROM "heat_1" WHERE "country"='italy';
```
## Task
Generate a SQL query to answer the following question:
`How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make?`

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

CREATE TABLE "alumni" (
  "name" text,
  "nationality" text,
  "position" text,
  "year_of_birth" real,
  "career" text,
  "appearances" real,
  "goals" real,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make?`:
```sql
                SELECT COUNT("appearances") FROM "alumni" WHERE "club"='rayo vallecano' AND "goals">37;
```
## Task
Generate a SQL query to answer the following question:
`Who's the player that was eliminated on episode 4?`

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

CREATE TABLE "cast" (
  "player" text,
  "original_season" text,
  "gender" text,
  "eliminated" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the player that was eliminated on episode 4?`:
```sql
                SELECT "player" FROM "cast" WHERE "eliminated"='episode 4';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player in 20th place?`

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

CREATE TABLE "cast" (
  "player" text,
  "original_season" text,
  "gender" text,
  "eliminated" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player in 20th place?`:
```sql
                SELECT "player" FROM "cast" WHERE "placing"='20th place';
```
## Task
Generate a SQL query to answer the following question:
`What's the original season in 11th place?`

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

CREATE TABLE "cast" (
  "player" text,
  "original_season" text,
  "gender" text,
  "eliminated" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the original season in 11th place?`:
```sql
                SELECT "original_season" FROM "cast" WHERE "placing"='11th place';
```
## Task
Generate a SQL query to answer the following question:
`Who's the player eliminated on episode 5?`

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

CREATE TABLE "cast" (
  "player" text,
  "original_season" text,
  "gender" text,
  "eliminated" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the player eliminated on episode 5?`:
```sql
                SELECT "player" FROM "cast" WHERE "eliminated"='episode 5';
```
## Task
Generate a SQL query to answer the following question:
`Who's the player that's male and on the original season of RW: Key West?`

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

CREATE TABLE "cast" (
  "player" text,
  "original_season" text,
  "gender" text,
  "eliminated" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the player that's male and on the original season of RW: Key West?`:
```sql
                SELECT "player" FROM "cast" WHERE "gender"='male' AND "original_season"='rw: key west';
```
## Task
Generate a SQL query to answer the following question:
`Who's the player eliminated on episode 8 of Fresh Meat?`

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

CREATE TABLE "cast" (
  "player" text,
  "original_season" text,
  "gender" text,
  "eliminated" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the player eliminated on episode 8 of Fresh Meat?`:
```sql
                SELECT "player" FROM "cast" WHERE "original_season"='fresh meat' AND "eliminated"='episode 8';
```
## Task
Generate a SQL query to answer the following question:
`The boat named Agamemnon has what status?`

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

CREATE TABLE "boats_of_the_class" (
  "name" text,
  "hull" real,
  "pennant_number" text,
  "status" text,
  "date_of_commission" text
);
### SQL
Given the database schema, here is the SQL query that answers `The boat named Agamemnon has what status?`:
```sql
                SELECT "status" FROM "boats_of_the_class" WHERE "name"='agamemnon';
```
## Task
Generate a SQL query to answer the following question:
`What status does the boat Ajax have?`

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

CREATE TABLE "boats_of_the_class" (
  "name" text,
  "hull" real,
  "pennant_number" text,
  "status" text,
  "date_of_commission" text
);
### SQL
Given the database schema, here is the SQL query that answers `What status does the boat Ajax have?`:
```sql
                SELECT "status" FROM "boats_of_the_class" WHERE "name"='ajax';
```
## Task
Generate a SQL query to answer the following question:
`What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376?`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" real,
  "lower_index_mj_nm_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376?`:
```sql
                SELECT AVG("upper_index_mj_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_kcal_nm_3"='19,376';
```
## Task
Generate a SQL query to answer the following question:
`What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71?`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" real,
  "lower_index_mj_nm_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71?`:
```sql
                SELECT COUNT("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "fuel_gas"='iso-butane' AND "lower_index_mj_nm_3"<84.71;
```
## Task
Generate a SQL query to answer the following question:
`What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54?`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" real,
  "lower_index_mj_nm_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54?`:
```sql
                SELECT AVG("lower_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"=74.54 AND "upper_index_kcal_nm_3"<'19,376';
```
## Task
Generate a SQL query to answer the following question:
`What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28?`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" real,
  "lower_index_mj_nm_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28?`:
```sql
                SELECT SUM("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"=47.91 AND "upper_index_mj_nm_3">53.28;
```
## Task
Generate a SQL query to answer the following question:
`What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04?`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" real,
  "lower_index_mj_nm_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04?`:
```sql
                SELECT SUM("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3">47.91 AND "fuel_gas"='propylene' AND "upper_index_mj_nm_3">77.04;
```
## Task
Generate a SQL query to answer the following question:
`What is the entry for Lower index MJ/ Nm 3 for the row that has an Upper index Kcal/ Nm 3 larger than 19,376, for lpg, and an Upper index MJ/ Nm 3 smaller than 86.84?`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" real,
  "lower_index_mj_nm_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the entry for Lower index MJ/ Nm 3 for the row that has an Upper index Kcal/ Nm 3 larger than 19,376, for lpg, and an Upper index MJ/ Nm 3 smaller than 86.84?`:
```sql
                SELECT AVG("lower_index_mj_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_kcal_nm_3">'19,376' AND "fuel_gas"='lpg' AND "upper_index_mj_nm_3"<86.84;
```
## Task
Generate a SQL query to answer the following question:
`What match number has a ground of H and the opponent Chelsea under 18s?`

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

CREATE TABLE "stats" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What match number has a ground of H and the opponent Chelsea under 18s?`:
```sql
                SELECT AVG("match") FROM "stats" WHERE "ground"='h' AND "opponent"='chelsea under 18s';
```
## Task
Generate a SQL query to answer the following question:
`On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s?`

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

CREATE TABLE "stats" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s?`:
```sql
                SELECT "date" FROM "stats" WHERE "match"<14 AND "ground"='h' AND "opponent"='aston villa under 18s';
```
## Task
Generate a SQL query to answer the following question:
`On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?`

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

CREATE TABLE "stats" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?`:
```sql
                SELECT "date" FROM "stats" WHERE "score1"='2 - 4' AND "opponent"='chelsea under 18s';
```
## Task
Generate a SQL query to answer the following question:
`What is the ticket price at Canadian National Exhibition Stadium?`

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

CREATE TABLE "not_all_data_are_listed" (
  "date_s" text,
  "venue" text,
  "city" text,
  "ticket_price_s" text,
  "ticket_sold_available" text,
  "ticket_grossing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ticket price at Canadian National Exhibition Stadium?`:
```sql
                SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "venue"='canadian national exhibition stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the ticket price at Red Rocks Amphitheatre?`

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

CREATE TABLE "not_all_data_are_listed" (
  "date_s" text,
  "venue" text,
  "city" text,
  "ticket_price_s" text,
  "ticket_sold_available" text,
  "ticket_grossing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ticket price at Red Rocks Amphitheatre?`:
```sql
                SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "venue"='red rocks amphitheatre';
```
## Task
Generate a SQL query to answer the following question:
`What was the ticket price on September 16, 1986?`

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

CREATE TABLE "not_all_data_are_listed" (
  "date_s" text,
  "venue" text,
  "city" text,
  "ticket_price_s" text,
  "ticket_sold_available" text,
  "ticket_grossing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ticket price on September 16, 1986?`:
```sql
                SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "date_s"='september 16, 1986';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opposition for the player who has a total of 10 points?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opposition for the player who has a total of 10 points?`:
```sql
                SELECT "opposition" FROM "single_game" WHERE "total"=10;
```
## Task
Generate a SQL query to answer the following question:
`Which player is from County Dublin?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is from County Dublin?`:
```sql
                SELECT "player" FROM "single_game" WHERE "county"='dublin';
```
## Task
Generate a SQL query to answer the following question:
`What is the average 2006 metropolitan population of Lima with a GDP per capita over $13,100?`

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

CREATE TABLE "population_and_economy_size_for_latin_am" (
  "rank" real,
  "metropolitan_area" text,
  "country" text,
  "gdp_ppp_2008_billions_of_us" real,
  "metropolitan_population_2006_millions" real,
  "gdp_ppp_us_per_capita" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average 2006 metropolitan population of Lima with a GDP per capita over $13,100?`:
```sql
                SELECT AVG("metropolitan_population_2006_millions") FROM "population_and_economy_size_for_latin_am" WHERE "metropolitan_area"='lima' AND "gdp_ppp_us_per_capita">'13,100';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 2006 metropolitan population for a Mexico City, Mexico with a GDP per capita of less than 20,300?`

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

CREATE TABLE "population_and_economy_size_for_latin_am" (
  "rank" real,
  "metropolitan_area" text,
  "country" text,
  "gdp_ppp_2008_billions_of_us" real,
  "metropolitan_population_2006_millions" real,
  "gdp_ppp_us_per_capita" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 2006 metropolitan population for a Mexico City, Mexico with a GDP per capita of less than 20,300?`:
```sql
                SELECT MIN("metropolitan_population_2006_millions") FROM "population_and_economy_size_for_latin_am" WHERE "country"='mexico' AND "metropolitan_area"='mexico city' AND "gdp_ppp_us_per_capita"<'20,300';
```
## Task
Generate a SQL query to answer the following question:
`Who placed highest with a time of 1:47.70?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who placed highest with a time of 1:47.70?`:
```sql
                SELECT MIN("rank") FROM "semifinal_1" WHERE "time"='1:47.70';
```
## Task
Generate a SQL query to answer the following question:
`How much Col (m) has an Elevation (m) smaller than 3,187, and a Prominence (m) smaller than 1,570?`

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

CREATE TABLE "surrounding" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Col (m) has an Elevation (m) smaller than 3,187, and a Prominence (m) smaller than 1,570?`:
```sql
                SELECT COUNT("col_m") FROM "surrounding" WHERE "elevation_m"<'3,187' AND "prominence_m"<'1,570';
```
## Task
Generate a SQL query to answer the following question:
`Which Elevation (m) has a Prominence (m) larger than 2,120, and a Peak of mount karisimbi, and a Col (m) larger than 1195?`

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

CREATE TABLE "surrounding" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Elevation (m) has a Prominence (m) larger than 2,120, and a Peak of mount karisimbi, and a Col (m) larger than 1195?`:
```sql
                SELECT MIN("elevation_m") FROM "surrounding" WHERE "prominence_m">'2,120' AND "peak"='mount karisimbi' AND "col_m">1195;
```
## Task
Generate a SQL query to answer the following question:
`Which Prominence (m) has an Elevation (m) of 3,095?`

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

CREATE TABLE "surrounding" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Prominence (m) has an Elevation (m) of 3,095?`:
```sql
                SELECT MIN("prominence_m") FROM "surrounding" WHERE "elevation_m"='3,095';
```
## Task
Generate a SQL query to answer the following question:
`How long did Witold Latoszek character lasted?`

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

CREATE TABLE "poland" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long did Witold Latoszek character lasted?`:
```sql
                SELECT "duration" FROM "poland" WHERE "character"='witold latoszek';
```
## Task
Generate a SQL query to answer the following question:
`Which episode was the last written by chris hawkshaw this season?`

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

CREATE TABLE "episodes" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode was the last written by chris hawkshaw this season?`:
```sql
                SELECT MAX("no_in_season") FROM "episodes" WHERE "written_by"='chris hawkshaw';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest col for the prominence of 1,834 meters and elevation higher than 1,834 meters?`

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

CREATE TABLE "and_neighbouring_islands" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest col for the prominence of 1,834 meters and elevation higher than 1,834 meters?`:
```sql
                SELECT MAX("col_m") FROM "and_neighbouring_islands" WHERE "prominence_m"='1,834' AND "elevation_m">'1,834';
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest 2007 when the change 06-07 was 14.7%?`

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

CREATE TABLE "patronage_ridership" (
  "type_of_service" text,
  "2006" real,
  "2007" real,
  "2008" real,
  "change_06_07" text,
  "change_07_08" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest 2007 when the change 06-07 was 14.7%?`:
```sql
                SELECT MAX("2007") FROM "patronage_ridership" WHERE "change_06_07"='14.7%';
```
## Task
Generate a SQL query to answer the following question:
`when was the ship completed when laid down is 21 august 1925?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the ship completed when laid down is 21 august 1925?`:
```sql
                SELECT "completed" FROM "list_of_ships" WHERE "laid_down"='21 august 1925';
```
## Task
Generate a SQL query to answer the following question:
`When was satsuki dd-27 completed?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was satsuki dd-27 completed?`:
```sql
                SELECT "completed" FROM "list_of_ships" WHERE "name"='satsuki dd-27';
```
## Task
Generate a SQL query to answer the following question:
`when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan?`:
```sql
                SELECT "launched" FROM "list_of_ships" WHERE "builder"='fujinagata shipyards, japan' AND "laid_down"='20 october 1924';
```
## Task
Generate a SQL query to answer the following question:
`when was the ship completed that was laid down on 23 march 1926?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the ship completed that was laid down on 23 march 1926?`:
```sql
                SELECT "completed" FROM "list_of_ships" WHERE "laid_down"='23 march 1926';
```