cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the rider who had the time of 1:27.37.22?`

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

CREATE TABLE "newcomers_race_a" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider who had the time of 1:27.37.22?`:
```sql
                SELECT "rider" FROM "newcomers_race_a" WHERE "time"='1:27.37.22';
```
## Task
Generate a SQL query to answer the following question:
`Who is the rider who has a rank lower than 10, and a time of 1:26.31.20?`

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

CREATE TABLE "newcomers_race_a" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider who has a rank lower than 10, and a time of 1:26.31.20?`:
```sql
                SELECT "rider" FROM "newcomers_race_a" WHERE "rank"<10 AND "time"='1:26.31.20';
```
## Task
Generate a SQL query to answer the following question:
`What date was the Circuit of Indianapolis?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the Circuit of Indianapolis?`:
```sql
                SELECT "date" FROM "season_review" WHERE "circuit"='indianapolis';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Constructor at the Argentine Grand Prix?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Constructor at the Argentine Grand Prix?`:
```sql
                SELECT "constructor" FROM "season_review" WHERE "race"='argentine grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the Circuit of Indianapolis?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the Circuit of Indianapolis?`:
```sql
                SELECT "date" FROM "season_review" WHERE "circuit"='indianapolis';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver of the Argentine Grand Prix?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver of the Argentine Grand Prix?`:
```sql
                SELECT "winning_driver" FROM "season_review" WHERE "race"='argentine grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What was Juan Manuel Fangio's reported pole position and the tire of C?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Juan Manuel Fangio's reported pole position and the tire of C?`:
```sql
                SELECT "report" FROM "season_review" WHERE "pole_position"='juan manuel fangio' AND "tyre"='c';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance when the Home team was Montreal, on the Date of March 24?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance when the Home team was Montreal, on the Date of March 24?`:
```sql
                SELECT SUM("attendance") FROM "march" WHERE "home"='montreal' AND "date"='march 24';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score on March 15?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score on March 15?`:
```sql
                SELECT "score" FROM "march" WHERE "date"='march 15';
```
## Task
Generate a SQL query to answer the following question:
`What school does Dell Curry play for?`

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

CREATE TABLE "c" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school does Dell Curry play for?`:
```sql
                SELECT "school_club_team" FROM "c" WHERE "player"='dell curry';
```
## Task
Generate a SQL query to answer the following question:
`What school does John Crotty play for?`

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

CREATE TABLE "c" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school does John Crotty play for?`:
```sql
                SELECT "school_club_team" FROM "c" WHERE "player"='john crotty';
```
## Task
Generate a SQL query to answer the following question:
`What school does Wayne Cooper play for?`

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

CREATE TABLE "c" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school does Wayne Cooper play for?`:
```sql
                SELECT "school_club_team" FROM "c" WHERE "player"='wayne cooper';
```
## Task
Generate a SQL query to answer the following question:
`Who has greater than 8 Long and a 73 Yards?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" text,
  "avg" text,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has greater than 8 Long and a 73 Yards?`:
```sql
                SELECT "player" FROM "running_backs" WHERE "long">8 AND "yards"='73';
```
## Task
Generate a SQL query to answer the following question:
`Who has a highest Long with 26 Yards and less than 9 Car?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" text,
  "avg" text,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a highest Long with 26 Yards and less than 9 Car?`:
```sql
                SELECT MAX("long") FROM "running_backs" WHERE "yards"='26' AND "car"<9;
```
## Task
Generate a SQL query to answer the following question:
`Who has the highest Long with 59 Car?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" text,
  "avg" text,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the highest Long with 59 Car?`:
```sql
                SELECT MAX("long") FROM "running_backs" WHERE "car"=59;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the team with a rank less than 13 and points more than 79 and previous rank of 4`

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

CREATE TABLE "individual_2007_uci_pro_tour_standings_a" (
  "rank" real,
  "previous_rank" text,
  "name" text,
  "nationality" text,
  "team" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the team with a rank less than 13 and points more than 79 and previous rank of 4`:
```sql
                SELECT "team" FROM "individual_2007_uci_pro_tour_standings_a" WHERE "rank"<13 AND "points">79 AND "previous_rank"='4';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the sum of points with a previous rank of 3`

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

CREATE TABLE "individual_2007_uci_pro_tour_standings_a" (
  "rank" real,
  "previous_rank" text,
  "name" text,
  "nationality" text,
  "team" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the sum of points with a previous rank of 3`:
```sql
                SELECT SUM("points") FROM "individual_2007_uci_pro_tour_standings_a" WHERE "previous_rank"='3';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the previous rank for italy with points more than 100`

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

CREATE TABLE "individual_2007_uci_pro_tour_standings_a" (
  "rank" real,
  "previous_rank" text,
  "name" text,
  "nationality" text,
  "team" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the previous rank for italy with points more than 100`:
```sql
                SELECT "previous_rank" FROM "individual_2007_uci_pro_tour_standings_a" WHERE "nationality"='italy' AND "points">100;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the sum of rank for australia when points are less than 79`

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

CREATE TABLE "individual_2007_uci_pro_tour_standings_a" (
  "rank" real,
  "previous_rank" text,
  "name" text,
  "nationality" text,
  "team" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the sum of rank for australia when points are less than 79`:
```sql
                SELECT SUM("rank") FROM "individual_2007_uci_pro_tour_standings_a" WHERE "nationality"='australia' AND "points"<79;
```
## Task
Generate a SQL query to answer the following question:
`How many ships for the nation with grand total of 20?`

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

CREATE TABLE "naval_forces_operation_mainbrace_1952_ci" (
  "nato_member" text,
  "aircraft_carriers" text,
  "battleships" text,
  "cruisers" text,
  "escorts" text,
  "submarines" text,
  "torpedo_boat_squadrons" text,
  "s_motor_ship_s_naval_trawler" text,
  "grand_total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ships for the nation with grand total of 20?`:
```sql
                SELECT "s_motor_ship_s_naval_trawler" FROM "naval_forces_operation_mainbrace_1952_ci" WHERE "grand_total"=20;
```
## Task
Generate a SQL query to answer the following question:
`How many escorts does the nation with 6 cruisers have?`

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

CREATE TABLE "naval_forces_operation_mainbrace_1952_ci" (
  "nato_member" text,
  "aircraft_carriers" text,
  "battleships" text,
  "cruisers" text,
  "escorts" text,
  "submarines" text,
  "torpedo_boat_squadrons" text,
  "s_motor_ship_s_naval_trawler" text,
  "grand_total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many escorts does the nation with 6 cruisers have?`:
```sql
                SELECT "escorts" FROM "naval_forces_operation_mainbrace_1952_ci" WHERE "cruisers"='6';
```
## Task
Generate a SQL query to answer the following question:
`Which address has 44 floors?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which address has 44 floors?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "floors"=44;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the person with 73.28 bodyweight and fewer snatches than 75?`

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

CREATE TABLE "heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the person with 73.28 bodyweight and fewer snatches than 75?`:
```sql
                SELECT AVG("total_kg") FROM "heavyweight_75_kg" WHERE "bodyweight"=73.28 AND "snatch"<75;
```
## Task
Generate a SQL query to answer the following question:
`Which person has a bodyweight of 73.6?`

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

CREATE TABLE "heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which person has a bodyweight of 73.6?`:
```sql
                SELECT "name" FROM "heavyweight_75_kg" WHERE "bodyweight"=73.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8?`

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

CREATE TABLE "heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8?`:
```sql
                SELECT AVG("total_kg") FROM "heavyweight_75_kg" WHERE "snatch">87.5 AND "bodyweight">74.8;
```
## Task
Generate a SQL query to answer the following question:
`What is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5?`

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

CREATE TABLE "heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5?`:
```sql
                SELECT SUM("bodyweight") FROM "heavyweight_75_kg" WHERE "clean_jerk"=82.5 AND "total_kg"<152.5;
```
## Task
Generate a SQL query to answer the following question:
`Name the home team when the away team was essendon`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the home team when the away team was essendon`:
```sql
                SELECT "home_team_score" FROM "round_10" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Name the away team score for home team of university`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the away team score for home team of university`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "home_team"='university';
```
## Task
Generate a SQL query to answer the following question:
`Name the venue for geelong away team`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for geelong away team`:
```sql
                SELECT "venue" FROM "round_10" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`Name the venue when the away team was richmond`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue when the away team was richmond`:
```sql
                SELECT "venue" FROM "round_10" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Name the away team score for geelong away team`

### 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,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the away team score for geelong away team`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`When the venue was brunswick street oval what was the home teams score?`

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

CREATE TABLE "round_3" (
  "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 `When the venue was brunswick street oval what was the home teams score?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`When the away team scored 10.15 (75) and the crowd was larger than 20,000 people, what was the home team playing?`

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

CREATE TABLE "round_3" (
  "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 `When the away team scored 10.15 (75) and the crowd was larger than 20,000 people, what was the home team playing?`:
```sql
                SELECT "home_team" FROM "round_3" WHERE "crowd">'20,000' AND "away_team_score"='10.15 (75)';
```
## Task
Generate a SQL query to answer the following question:
`When the away team scored 7.8 (50), what was the opposing teams score?`

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

CREATE TABLE "round_3" (
  "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 `When the away team scored 7.8 (50), what was the opposing teams score?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "away_team_score"='7.8 (50)';
```
## Task
Generate a SQL query to answer the following question:
`When the away team scored 14.14 (98), who was the Home team who played?`

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

CREATE TABLE "round_3" (
  "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 `When the away team scored 14.14 (98), who was the Home team who played?`:
```sql
                SELECT "home_team" FROM "round_3" WHERE "away_team_score"='14.14 (98)';
```
## Task
Generate a SQL query to answer the following question:
`If the home team scored 14.15 (99), who was the away team?`

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

CREATE TABLE "round_3" (
  "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 `If the home team scored 14.15 (99), who was the away team?`:
```sql
                SELECT "away_team" FROM "round_3" WHERE "home_team_score"='14.15 (99)';
```
## Task
Generate a SQL query to answer the following question:
`How many draws feature artist wendy fierce?`

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

CREATE TABLE "semi_final_2_14_february_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws feature artist wendy fierce?`:
```sql
                SELECT SUM("draw") FROM "semi_final_2_14_february_1999" WHERE "artist"='wendy fierce';
```
## Task
Generate a SQL query to answer the following question:
`What song is later than place 2 and has a draw number of 1?`

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

CREATE TABLE "semi_final_2_14_february_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What song is later than place 2 and has a draw number of 1?`:
```sql
                SELECT "song" FROM "semi_final_2_14_february_1999" WHERE "place">2 AND "draw"=1;
```
## Task
Generate a SQL query to answer the following question:
`What day did Collingwood play as the home team?`

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

CREATE TABLE "round_7" (
  "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 day did Collingwood play as the home team?`:
```sql
                SELECT "date" FROM "round_7" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Princes Park?`

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

CREATE TABLE "round_7" (
  "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 at Princes Park?`:
```sql
                SELECT "away_team" FROM "round_7" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`Who was Hawthorn's away opponent?`

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

CREATE TABLE "round_7" (
  "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 Hawthorn's away opponent?`:
```sql
                SELECT "away_team" FROM "round_7" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`Name the record that has a stream of l1 and score of l 95–111`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record that has a stream of l1 and score of l 95–111`:
```sql
                SELECT "record" FROM "march" WHERE "streak"='l1' AND "score"='l 95–111';
```
## Task
Generate a SQL query to answer the following question:
`Name the attendance for when the washington wizards was visiting`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the attendance for when the washington wizards was visiting`:
```sql
                SELECT "attendance" FROM "march" WHERE "visitor"='washington wizards';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest grid for driver of juan pablo montoya?`

### 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 smallest grid for driver of juan pablo montoya?`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "driver"='juan pablo montoya';
```
## Task
Generate a SQL query to answer the following question:
`What driver has a ime/Retired of +1 lap, and a Constructor of bar - honda?`

### 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 driver has a ime/Retired of +1 lap, and a Constructor of bar - honda?`:
```sql
                SELECT "driver" FROM "race" WHERE "time_retired"='+1 lap' AND "constructor"='bar - honda';
```
## Task
Generate a SQL query to answer the following question:
`What is the Chinese title with a premiere rating of 31?`

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

CREATE TABLE "highest_rating_drama_series_of_2008" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Chinese title with a premiere rating of 31?`:
```sql
                SELECT "chinese_title" FROM "highest_rating_drama_series_of_2008" WHERE "premiere"=31;
```
## Task
Generate a SQL query to answer the following question:
`What is the premiere rating for a Chinese title of 野蠻奶奶大戰戈師奶, and a Peak smaller than 41?`

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

CREATE TABLE "highest_rating_drama_series_of_2008" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the premiere rating for a Chinese title of 野蠻奶奶大戰戈師奶, and a Peak smaller than 41?`:
```sql
                SELECT SUM("premiere") FROM "highest_rating_drama_series_of_2008" WHERE "chinese_title"='野蠻奶奶大戰戈師奶' AND "peak"<41;
```
## Task
Generate a SQL query to answer the following question:
`What is the premiere rating associated with an average of 35 ranked above 1?`

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

CREATE TABLE "highest_rating_drama_series_of_2008" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the premiere rating associated with an average of 35 ranked above 1?`:
```sql
                SELECT MIN("premiere") FROM "highest_rating_drama_series_of_2008" WHERE "average"=35 AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`When was there a game at Arden Street Oval?`

### 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 `When was there a game at Arden Street Oval?`:
```sql
                SELECT "date" FROM "round_5" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`How big was the crowd when Richmond was the away team?`

### 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 big was the crowd when Richmond was the away team?`:
```sql
                SELECT "crowd" FROM "round_5" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Which away team plays at Arden Street Oval?`

### 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 `Which away team plays at Arden Street Oval?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`How many fans were at Essendon?`

### 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 fans were at Essendon?`:
```sql
                SELECT COUNT("crowd") FROM "round_5" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`On 11 July 2003, which athlete performed?`

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

CREATE TABLE "women" (
  "event" text,
  "record" text,
  "athlete" text,
  "nationality" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On 11 July 2003, which athlete performed?`:
```sql
                SELECT "athlete" FROM "women" WHERE "date"='11 july 2003';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team that played luton town?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team that played luton town?`:
```sql
                SELECT "away_team" FROM "fifth_round_proper" WHERE "home_team"='luton town';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 45 √ when it has D 41√ of r 20`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50_o" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 45 √ when it has D 41√ of r 20`:
```sql
                SELECT "d_45" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_41"='r 20';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 41 √ when it has D 43 √ of r 18`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50_o" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 41 √ when it has D 43 √ of r 18`:
```sql
                SELECT "d_41" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_43"='r 18';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 49 √ for when D 46 √ of i 1 @`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50_o" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 49 √ for when D 46 √ of i 1 @`:
```sql
                SELECT "d_49" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46"='i 1 @';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 43 √ when it has D 46 √ of d 26`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50_o" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 43 √ when it has D 46 √ of d 26`:
```sql
                SELECT "d_43" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46"='d 26';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 44 √ for when it has D 41 √ of r 41 +`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50_o" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 44 √ for when it has D 41 √ of r 41 +`:
```sql
                SELECT "d_44" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_41"='r 41 +';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 42 √ for when it has D 49 √ of r 12`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50_o" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 42 √ for when it has D 49 √ of r 12`:
```sql
                SELECT "d_42" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_49"='r 12';
```
## Task
Generate a SQL query to answer the following question:
`What were the goals in the game with the 26-28 final score?`

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

CREATE TABLE "2000_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the goals in the game with the 26-28 final score?`:
```sql
                SELECT "goals" FROM "2000_fixtures_and_results" WHERE "score"='26-28';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on 19/3/00?`

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

CREATE TABLE "2000_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game on 19/3/00?`:
```sql
                SELECT "score" FROM "2000_fixtures_and_results" WHERE "date"='19/3/00';
```
## Task
Generate a SQL query to answer the following question:
`Which competition was on 17/9/00?`

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

CREATE TABLE "2000_fixtures_and_results" (
  "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 on 17/9/00?`:
```sql
                SELECT "competition" FROM "2000_fixtures_and_results" WHERE "date"='17/9/00';
```
## Task
Generate a SQL query to answer the following question:
`Which competition ended with a score of 58-4?`

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

CREATE TABLE "2000_fixtures_and_results" (
  "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 ended with a score of 58-4?`:
```sql
                SELECT "competition" FROM "2000_fixtures_and_results" WHERE "score"='58-4';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game that had a final score of 30-20?`

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

CREATE TABLE "2000_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game that had a final score of 30-20?`:
```sql
                SELECT "venue" FROM "2000_fixtures_and_results" WHERE "score"='30-20';
```
## Task
Generate a SQL query to answer the following question:
`When was the game at the boulevard that ended with an 8-8 score?`

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

CREATE TABLE "2000_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game at the boulevard that ended with an 8-8 score?`:
```sql
                SELECT "date" FROM "2000_fixtures_and_results" WHERE "venue"='the boulevard' AND "score"='8-8';
```
## Task
Generate a SQL query to answer the following question:
`Name the report for 6 may`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the report for 6 may`:
```sql
                SELECT "report" FROM "other_grands_prix" WHERE "date"='6 may';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the report with winner of louis wagner`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the report with winner of louis wagner`:
```sql
                SELECT "report" FROM "other_grands_prix" WHERE "winning_driver"='louis wagner';
```
## Task
Generate a SQL query to answer the following question:
`Name the report with cuban race`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the report with cuban race`:
```sql
                SELECT "report" FROM "other_grands_prix" WHERE "name"='cuban race';
```
## Task
Generate a SQL query to answer the following question:
`Name the circuit for darracq and name of cuban race`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit for darracq and name of cuban race`:
```sql
                SELECT "circuit" FROM "other_grands_prix" WHERE "winning_constructor"='darracq' AND "name"='cuban race';
```
## Task
Generate a SQL query to answer the following question:
`Name the winning driver for havana`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning driver for havana`:
```sql
                SELECT "winning_driver" FROM "other_grands_prix" WHERE "circuit"='havana';
```
## Task
Generate a SQL query to answer the following question:
`What is the listed crowd when the home team's score is 27.13 (175)?`

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

CREATE TABLE "round_20" (
  "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 listed crowd when the home team's score is 27.13 (175)?`:
```sql
                SELECT "crowd" FROM "round_20" WHERE "home_team_score"='27.13 (175)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team's score when st kilda is away?`

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

CREATE TABLE "round_20" (
  "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 home team's score when st kilda is away?`:
```sql
                SELECT "home_team_score" FROM "round_20" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`No Decision listed above has a visitor of Montreal.`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `No Decision listed above has a visitor of Montreal.`:
```sql
                SELECT "decision" FROM "december" WHERE "visitor"='montreal';
```
## Task
Generate a SQL query to answer the following question:
`On December 4, Tampa Bay has a record of 12-13-2.`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On December 4, Tampa Bay has a record of 12-13-2.`:
```sql
                SELECT "record" FROM "december" WHERE "home"='tampa bay' AND "date"='december 4';
```
## Task
Generate a SQL query to answer the following question:
`What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance?`

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

CREATE TABLE "passengers_carried_in_2010" (
  "rank" real,
  "airline" text,
  "country" text,
  "passengers_carried" real,
  "remarks" text,
  "alliance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance?`:
```sql
                SELECT "remarks" FROM "passengers_carried_in_2010" WHERE "rank">2 AND "alliance"='skyteam (2012)';
```
## Task
Generate a SQL query to answer the following question:
`How many airlines have the star alliance and are in brazil?`

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

CREATE TABLE "passengers_carried_in_2010" (
  "rank" real,
  "airline" text,
  "country" text,
  "passengers_carried" real,
  "remarks" text,
  "alliance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many airlines have the star alliance and are in brazil?`:
```sql
                SELECT COUNT("rank") FROM "passengers_carried_in_2010" WHERE "alliance"='star alliance' AND "country"='brazil';
```
## Task
Generate a SQL query to answer the following question:
`What was the percentage of Slovenes in 1951 in the village that had 10.1% in 1991?`

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

CREATE TABLE "references" (
  "village_german" text,
  "village_slovenian" text,
  "number_of_people_1991" real,
  "percent_of_slovenes_1991" text,
  "percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage of Slovenes in 1951 in the village that had 10.1% in 1991?`:
```sql
                SELECT "percent_of_slovenes_1951" FROM "references" WHERE "percent_of_slovenes_1991"='10.1%';
```
## Task
Generate a SQL query to answer the following question:
`What was Rut's Slovenes percentage in 1991?`

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

CREATE TABLE "references" (
  "village_german" text,
  "village_slovenian" text,
  "number_of_people_1991" real,
  "percent_of_slovenes_1991" text,
  "percent_of_slovenes_1951" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Rut's Slovenes percentage in 1991?`:
```sql
                SELECT "percent_of_slovenes_1991" FROM "references" WHERE "village_slovenian"='rut';
```