cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Akira when Prince Devitt is Devitt (7:20)?`

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

CREATE TABLE "2009" (
  "block_a" text,
  "akira" text,
  "atsushi_aoki" text,
  "black_tiger_v" text,
  "jado" text,
  "milano_collection_a_t" text,
  "prince_devitt" text,
  "tiger_mask_iv" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Akira when Prince Devitt is Devitt (7:20)?`:
```sql
                SELECT "akira" FROM "2009" WHERE "prince_devitt"='devitt (7:20)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Prince Devitt when Block A is Yamato?`

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

CREATE TABLE "2009" (
  "block_a" text,
  "akira" text,
  "atsushi_aoki" text,
  "black_tiger_v" text,
  "jado" text,
  "milano_collection_a_t" text,
  "prince_devitt" text,
  "tiger_mask_iv" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Prince Devitt when Block A is Yamato?`:
```sql
                SELECT "prince_devitt" FROM "2009" WHERE "block_a"='yamato';
```
## Task
Generate a SQL query to answer the following question:
`I want the league one/second division for club of millwall`

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

CREATE TABLE "winners_by_club" (
  "club" text,
  "premier_league" text,
  "championship_first_division" text,
  "league_one_second_division" text,
  "league_two_third_division" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the league one/second division for club of millwall`:
```sql
                SELECT "league_one_second_division" FROM "winners_by_club" WHERE "club"='millwall';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team when they played carlton?`

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

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

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the visiting team score at south melbourne?`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Crowd that is larger than 18,000 with a Home team score of 14.13 (97)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Crowd that is larger than 18,000 with a Home team score of 14.13 (97)?`:
```sql
                SELECT "date" FROM "round_4" WHERE "crowd">'18,000' AND "home_team_score"='14.13 (97)';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has an Away team score of 11.7 (73)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has an Away team score of 11.7 (73)?`:
```sql
                SELECT "date" FROM "round_4" WHERE "away_team_score"='11.7 (73)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total Crowd number for the Away team of Hawthorn?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total Crowd number for the Away team of Hawthorn?`:
```sql
                SELECT COUNT("crowd") FROM "round_4" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What did the team score when playing against home in geelong?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the team score when playing against home in geelong?`:
```sql
                SELECT "home_team_score" FROM "round_10" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`How many people watched when st kilda played at home?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people watched when st kilda played at home?`:
```sql
                SELECT "crowd" FROM "round_10" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the crowd was larger than 41,451?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when the crowd was larger than 41,451?`:
```sql
                SELECT "away_team" FROM "round_22" WHERE "crowd">'41,451';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the venue was Junction Oval?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when the venue was Junction Oval?`:
```sql
                SELECT "home_team" FROM "round_22" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd size when the home team score was 8.11 (59)?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average crowd size when the home team score was 8.11 (59)?`:
```sql
                SELECT AVG("crowd") FROM "round_22" WHERE "home_team_score"='8.11 (59)';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the time which has attendance of 66,772`

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

CREATE TABLE "schedule" (
  "week" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the time which has attendance of 66,772`:
```sql
                SELECT "time" FROM "schedule" WHERE "attendance"='66,772';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent that has attendance of 76,965`

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

CREATE TABLE "schedule" (
  "week" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent that has attendance of 76,965`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='76,965';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the week that has an attendance of 78,301`

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

CREATE TABLE "schedule" (
  "week" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the week that has an attendance of 78,301`:
```sql
                SELECT "week" FROM "schedule" WHERE "attendance"='78,301';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the opponent that ha a week of 3`

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

CREATE TABLE "schedule" (
  "week" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the opponent that ha a week of 3`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"='3';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance on 14 April 2007?`

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

CREATE TABLE "premier_league" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance on 14 April 2007?`:
```sql
                SELECT MIN("attendance") FROM "premier_league" WHERE "date"='14 april 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue where there are more than 52,302 in attendance and the result is 2-0?`

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

CREATE TABLE "premier_league" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue where there are more than 52,302 in attendance and the result is 2-0?`:
```sql
                SELECT "venue" FROM "premier_league" WHERE "attendance">'52,302' AND "result"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`What is catcher Josh Donaldson's pick number?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is catcher Josh Donaldson's pick number?`:
```sql
                SELECT "pick" FROM "supplemental_first_round_selections" WHERE "position"='catcher' AND "player"='josh donaldson';
```
## Task
Generate a SQL query to answer the following question:
`Which players plays at Akron College?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which players plays at Akron College?`:
```sql
                SELECT "player" FROM "round_two" WHERE "college"='akron';
```
## Task
Generate a SQL query to answer the following question:
`Which college does the player jon hameister-ries play for?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college does the player jon hameister-ries play for?`:
```sql
                SELECT "college" FROM "round_two" WHERE "player"='jon hameister-ries';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player with a pick larger than 21 from the College of the Sequoias?`

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

CREATE TABLE "selections" (
  "draft" real,
  "round" real,
  "pick" real,
  "nationality" text,
  "college_high_school_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player with a pick larger than 21 from the College of the Sequoias?`:
```sql
                SELECT "nationality" FROM "selections" WHERE "pick">21 AND "college_high_school_club"='college of the sequoias';
```
## Task
Generate a SQL query to answer the following question:
`I want the result for goals which has goals of deacon 6/6`

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

CREATE TABLE "challenge_cup" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the result for goals which has goals of deacon 6/6`:
```sql
                SELECT "result" FROM "challenge_cup" WHERE "goals"='deacon 6/6';
```
## Task
Generate a SQL query to answer the following question:
`Which competition was at wilderspool?`

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

CREATE TABLE "challenge_cup" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition was at wilderspool?`:
```sql
                SELECT "competition" FROM "challenge_cup" WHERE "venue"='wilderspool';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the venue for score of 82-0`

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

CREATE TABLE "challenge_cup" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the venue for score of 82-0`:
```sql
                SELECT "venue" FROM "challenge_cup" WHERE "score"='82-0';
```
## Task
Generate a SQL query to answer the following question:
`I want the date with the venue of mcalpine stadium`

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

CREATE TABLE "challenge_cup" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the date with the venue of mcalpine stadium`:
```sql
                SELECT "date" FROM "challenge_cup" WHERE "venue"='mcalpine stadium';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the goals for score of 38-28`

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

CREATE TABLE "challenge_cup" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the goals for score of 38-28`:
```sql
                SELECT "goals" FROM "challenge_cup" WHERE "score"='38-28';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "points">11 AND "driver"='sébastien bourdais' AND "laps"<67;
```
## Task
Generate a SQL query to answer the following question:
`Name the most laps for grid more than 9 and the driver being jan heylen`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most laps for grid more than 9 and the driver being jan heylen`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "grid">9 AND "driver"='jan heylen';
```
## Task
Generate a SQL query to answer the following question:
`How many voted in queens for the canddiate with all write-in votes and 26 staten island votes?`

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

CREATE TABLE "2009" (
  "2009_democratic_primary" text,
  "manhattan" text,
  "the_bronx" text,
  "brooklyn" text,
  "queens" text,
  "staten_island" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many voted in queens for the canddiate with all write-in votes and 26 staten island votes?`:
```sql
                SELECT "queens" FROM "2009" WHERE "2009_democratic_primary"='all write-in votes' AND "staten_island"='26';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid when the laps were 24?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid when the laps were 24?`:
```sql
                SELECT COUNT("grid") FROM "classification" WHERE "laps"=24;
```
## Task
Generate a SQL query to answer the following question:
`Who constructed Chris Amon's car?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who constructed Chris Amon's car?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "driver"='chris amon';
```
## Task
Generate a SQL query to answer the following question:
`What was Jack Brabham's highest grid when his laps were more than 90?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Jack Brabham's highest grid when his laps were more than 90?`:
```sql
                SELECT MAX("grid") FROM "classification" WHERE "driver"='jack brabham' AND "laps">90;
```
## Task
Generate a SQL query to answer the following question:
`What was CHris Amon's highest lap when his grid was 4?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was CHris Amon's highest lap when his grid was 4?`:
```sql
                SELECT MAX("laps") FROM "classification" WHERE "driver"='chris amon' AND "grid"<4;
```
## Task
Generate a SQL query to answer the following question:
`Where did Hawthorn have their away match against North Melbourne?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Hawthorn have their away match against North Melbourne?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score at Richmond's away game against Footscray?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team score at Richmond's away game against Footscray?`:
```sql
                SELECT "home_team_score" FROM "round_12" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the away team score 14.4 (88)?`

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

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

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the size of the crowd for the home team of Footscray?`:
```sql
                SELECT "crowd" FROM "round_5" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired for the car going 42 Laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time/Retired for the car going 42 Laps?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "laps"=42;
```
## Task
Generate a SQL query to answer the following question:
`How many laps for alexander wurz with a grid under 12?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps for alexander wurz with a grid under 12?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "grid"<12 AND "driver"='alexander wurz';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest evening gown score a contestant with an average less than 8.23, an interview score of 8.11, and a swimsuit larger than 7.84 has?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest evening gown score a contestant with an average less than 8.23, an interview score of 8.11, and a swimsuit larger than 7.84 has?`:
```sql
                SELECT MIN("evening_gown") FROM "preliminary_competition" WHERE "average"<8.23 AND "interview"=8.11 AND "swimsuit">7.84;
```
## Task
Generate a SQL query to answer the following question:
`What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?`:
```sql
                SELECT COUNT("interview") FROM "preliminary_competition" WHERE "state"='indiana' AND "average"<8.3;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has?`:
```sql
                SELECT MAX("swimsuit") FROM "preliminary_competition" WHERE "average">8.48 AND "interview">8.58 AND "evening_gown">8.82 AND "state"='kansas';
```
## Task
Generate a SQL query to answer the following question:
`What is the average interview score of a contestant from Louisiana with an evening gown smaller than 8.82?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average interview score of a contestant from Louisiana with an evening gown smaller than 8.82?`:
```sql
                SELECT AVG("interview") FROM "preliminary_competition" WHERE "evening_gown"<8.82 AND "state"='louisiana';
```
## Task
Generate a SQL query to answer the following question:
`What prefix has Haloalkane as the chemical class?`

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

CREATE TABLE "groups_containing_halogens" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What prefix has Haloalkane as the chemical class?`:
```sql
                SELECT "prefix" FROM "groups_containing_halogens" WHERE "chemical_class"='haloalkane';
```
## Task
Generate a SQL query to answer the following question:
`Which example has rx as the formula?`

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

CREATE TABLE "groups_containing_halogens" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which example has rx as the formula?`:
```sql
                SELECT "example" FROM "groups_containing_halogens" WHERE "formula"='rx';
```
## Task
Generate a SQL query to answer the following question:
`Which chemical class uses the example Chloroethane (ethyl chloride)?`

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

CREATE TABLE "groups_containing_halogens" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which chemical class uses the example Chloroethane (ethyl chloride)?`:
```sql
                SELECT "chemical_class" FROM "groups_containing_halogens" WHERE "example"='chloroethane (ethyl chloride)';
```
## Task
Generate a SQL query to answer the following question:
`What prefix has Bromo as the group?`

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

CREATE TABLE "groups_containing_halogens" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What prefix has Bromo as the group?`:
```sql
                SELECT "prefix" FROM "groups_containing_halogens" WHERE "group"='bromo';
```
## Task
Generate a SQL query to answer the following question:
`What is the chemical class for ri?`

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

CREATE TABLE "groups_containing_halogens" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chemical class for ri?`:
```sql
                SELECT "chemical_class" FROM "groups_containing_halogens" WHERE "formula"='ri';
```
## Task
Generate a SQL query to answer the following question:
`What prefix has chemical class Iodoalkane?`

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

CREATE TABLE "groups_containing_halogens" (
  "chemical_class" text,
  "group" text,
  "formula" text,
  "prefix" text,
  "suffix" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What prefix has chemical class Iodoalkane?`:
```sql
                SELECT "prefix" FROM "groups_containing_halogens" WHERE "chemical_class"='iodoalkane';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of the player with earnings of $6,715,649?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of the player with earnings of $6,715,649?`:
```sql
                SELECT MAX("rank") FROM "leaders" WHERE "earnings"='6,715,649';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of Lee Trevino, who had less than 27 wins?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of Lee Trevino, who had less than 27 wins?`:
```sql
                SELECT SUM("rank") FROM "leaders" WHERE "player"='lee trevino' AND "wins"<27;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player with more than $6,570,797 in earnings and less than 27 wins?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player with more than $6,570,797 in earnings and less than 27 wins?`:
```sql
                SELECT "player" FROM "leaders" WHERE "earnings">'6,570,797' AND "wins"<27;
```
## Task
Generate a SQL query to answer the following question:
`What date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air?`

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

CREATE TABLE "season_2_2007_08" (
  "series_no" real,
  "season_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air?`:
```sql
                SELECT "original_air_date" FROM "season_2_2007_08" WHERE "series_no">40 AND "production_code"<213 AND "season_no">11;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the series number 49 with a season larger than 4?`

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

CREATE TABLE "season_2_2007_08" (
  "series_no" real,
  "season_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the series number 49 with a season larger than 4?`:
```sql
                SELECT "written_by" FROM "season_2_2007_08" WHERE "season_no">4 AND "series_no"=49;
```
## Task
Generate a SQL query to answer the following question:
`What was the latest gross 75,50,00,000?`

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

CREATE TABLE "list_of_highest_grossing_bollywood_films" (
  "year" real,
  "movie" text,
  "record_held" text,
  "studio_s" text,
  "nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest gross 75,50,00,000?`:
```sql
                SELECT MAX("year") FROM "list_of_highest_grossing_bollywood_films" WHERE "nett_gross"='75,50,00,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the total count of net gross in 1957?`

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

CREATE TABLE "list_of_highest_grossing_bollywood_films" (
  "year" real,
  "movie" text,
  "record_held" text,
  "studio_s" text,
  "nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total count of net gross in 1957?`:
```sql
                SELECT COUNT("nett_gross") FROM "list_of_highest_grossing_bollywood_films" WHERE "year"=1957;
```
## Task
Generate a SQL query to answer the following question:
`What is the total End term with a Title of prince regent of bavaria?`

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

CREATE TABLE "royal_bavaria" (
  "name" text,
  "title" text,
  "start_term" real,
  "end_term" real,
  "house" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total End term with a Title of prince regent of bavaria?`:
```sql
                SELECT SUM("end_term") FROM "royal_bavaria" WHERE "title"='prince regent of bavaria';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest End term with a Start term of 1913, and a Name of ludwig iii?`

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

CREATE TABLE "royal_bavaria" (
  "name" text,
  "title" text,
  "start_term" real,
  "end_term" real,
  "house" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest End term with a Start term of 1913, and a Name of ludwig iii?`:
```sql
                SELECT MIN("end_term") FROM "royal_bavaria" WHERE "start_term"=1913 AND "name"='ludwig iii';
```
## Task
Generate a SQL query to answer the following question:
`Which Title has an 1825 end term?`

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

CREATE TABLE "royal_bavaria" (
  "name" text,
  "title" text,
  "start_term" real,
  "end_term" real,
  "house" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has an 1825 end term?`:
```sql
                SELECT "title" FROM "royal_bavaria" WHERE "end_term"=1825;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Start term with a 1912 end term?`

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

CREATE TABLE "royal_bavaria" (
  "name" text,
  "title" text,
  "start_term" real,
  "end_term" real,
  "house" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Start term with a 1912 end term?`:
```sql
                SELECT AVG("start_term") FROM "royal_bavaria" WHERE "end_term"=1912;
```
## Task
Generate a SQL query to answer the following question:
`What date were the high rebounds Evans (14)?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date were the high rebounds Evans (14)?`:
```sql
                SELECT "date" FROM "playoffs" WHERE "high_rebounds"='evans (14)';
```
## Task
Generate a SQL query to answer the following question:
`Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?`:
```sql
                SELECT MAX("game") FROM "playoffs" WHERE "high_rebounds"='evans (7)' AND "high_assists"='evans, ollie (3)';
```
## Task
Generate a SQL query to answer the following question:
`What division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52?`

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

CREATE TABLE "sheffield_united_career" (
  "division" text,
  "league_apps_sub" real,
  "league_goals" real,
  "fa_cup_apps_sub" text,
  "fa_cup_goals" real,
  "fl_cup_apps_sub" real,
  "fl_cup_goals" real,
  "other_apps" real,
  "other_goals" real,
  "total_apps_sub" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52?`:
```sql
                SELECT MAX("fa_cup_goals") FROM "sheffield_united_career" WHERE "total_apps_sub"='52' AND "total_goals"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0?`

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

CREATE TABLE "sheffield_united_career" (
  "division" text,
  "league_apps_sub" real,
  "league_goals" real,
  "fa_cup_apps_sub" text,
  "fa_cup_goals" real,
  "fl_cup_apps_sub" real,
  "fl_cup_goals" real,
  "other_apps" real,
  "other_goals" real,
  "total_apps_sub" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0?`:
```sql
                SELECT AVG("fl_cup_apps_sub") FROM "sheffield_united_career" WHERE "fl_cup_goals">0 AND "other_apps"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is Division One's total number of FL Cup Goals, with an Other Apps greater than 3, and a FA Cup Goals greater than 0?`

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

CREATE TABLE "sheffield_united_career" (
  "division" text,
  "league_apps_sub" real,
  "league_goals" real,
  "fa_cup_apps_sub" text,
  "fa_cup_goals" real,
  "fl_cup_apps_sub" real,
  "fl_cup_goals" real,
  "other_apps" real,
  "other_goals" real,
  "total_apps_sub" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Division One's total number of FL Cup Goals, with an Other Apps greater than 3, and a FA Cup Goals greater than 0?`:
```sql
                SELECT COUNT("fl_cup_goals") FROM "sheffield_united_career" WHERE "division"='one' AND "other_apps">3 AND "fa_cup_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`What is Division One's average Other Apps, with a League Goal less than 1?`

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

CREATE TABLE "sheffield_united_career" (
  "division" text,
  "league_apps_sub" real,
  "league_goals" real,
  "fa_cup_apps_sub" text,
  "fa_cup_goals" real,
  "fl_cup_apps_sub" real,
  "fl_cup_goals" real,
  "other_apps" real,
  "other_goals" real,
  "total_apps_sub" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Division One's average Other Apps, with a League Goal less than 1?`:
```sql
                SELECT AVG("other_apps") FROM "sheffield_united_career" WHERE "division"='one' AND "league_goals"<1;
```
## Task
Generate a SQL query to answer the following question:
`Who plays at Victoria Park?`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who plays at Victoria Park?`:
```sql
                SELECT "away_team" FROM "round_11" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`What is the score against the indians after game 2?`

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

CREATE TABLE "postseason_game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score against the indians after game 2?`:
```sql
                SELECT "score" FROM "postseason_game_log" WHERE "game">2 AND "opponent"='indians';
```
## Task
Generate a SQL query to answer the following question:
`What is the average grid for piers courage?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average grid for piers courage?`:
```sql
                SELECT AVG("grid") FROM "classification" WHERE "driver"='piers courage';
```
## Task
Generate a SQL query to answer the following question:
`Who drove 53 laps?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove 53 laps?`:
```sql
                SELECT "driver" FROM "classification" WHERE "laps"=53;
```
## Task
Generate a SQL query to answer the following question:
`What is the lap total for george eaton, with a grid under 17 retiring due to gearbox?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lap total for george eaton, with a grid under 17 retiring due to gearbox?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "time_retired"='gearbox' AND "driver"='george eaton' AND "grid"<17;
```
## Task
Generate a SQL query to answer the following question:
`How many laps for denny hulme with under 4 on the grid?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps for denny hulme with under 4 on the grid?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "driver"='denny hulme' AND "grid"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd when the home team scored 13.10 (88)?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in the crowd when the home team scored 13.10 (88)?`:
```sql
                SELECT "crowd" FROM "round_5" WHERE "home_team_score"='13.10 (88)';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the crowd when the away team score was 12.11 (83)?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the crowd when the away team score was 12.11 (83)?`:
```sql
                SELECT SUM("crowd") FROM "round_5" WHERE "away_team_score"='12.11 (83)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team when there were more than 5,500 people in the crowd?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the home team when there were more than 5,500 people in the crowd?`:
```sql
                SELECT "home_team_score" FROM "round_5" WHERE "crowd">'5,500';
```