cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the name of the driver of the vehicle constructed by Bugatti in Anfa?`

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

CREATE TABLE "winners_of_the_moroccan_grand_prix" (
  "year" text,
  "driver" text,
  "constructor" text,
  "category" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the driver of the vehicle constructed by Bugatti in Anfa?`:
```sql
                SELECT "driver" FROM "winners_of_the_moroccan_grand_prix" WHERE "constructor"='bugatti' AND "location"='anfa';
```
## Task
Generate a SQL query to answer the following question:
`What company constructed the vehicle in the location not held in 1933?`

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

CREATE TABLE "winners_of_the_moroccan_grand_prix" (
  "year" text,
  "driver" text,
  "constructor" text,
  "category" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company constructed the vehicle in the location not held in 1933?`:
```sql
                SELECT "constructor" FROM "winners_of_the_moroccan_grand_prix" WHERE "location"='not held' AND "year"='1933';
```
## Task
Generate a SQL query to answer the following question:
`What company constructed the vehicle when the driver shows as not held?`

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

CREATE TABLE "winners_of_the_moroccan_grand_prix" (
  "year" text,
  "driver" text,
  "constructor" text,
  "category" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company constructed the vehicle when the driver shows as not held?`:
```sql
                SELECT "constructor" FROM "winners_of_the_moroccan_grand_prix" WHERE "driver"='not held';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the driver in 1955?`

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

CREATE TABLE "winners_of_the_moroccan_grand_prix" (
  "year" text,
  "driver" text,
  "constructor" text,
  "category" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the driver in 1955?`:
```sql
                SELECT "driver" FROM "winners_of_the_moroccan_grand_prix" WHERE "year"='1955';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the constructor when report shows report in 1955?`

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

CREATE TABLE "winners_of_the_moroccan_grand_prix" (
  "year" text,
  "driver" text,
  "constructor" text,
  "category" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the constructor when report shows report in 1955?`:
```sql
                SELECT "constructor" FROM "winners_of_the_moroccan_grand_prix" WHERE "report"='report' AND "year"='1955';
```
## Task
Generate a SQL query to answer the following question:
`What is the inductioin for 1975–1976?`

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

CREATE TABLE "engines_for_united_states_models" (
  "generation" text,
  "years" text,
  "engine" text,
  "power" text,
  "torque" text,
  "induction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the inductioin for 1975–1976?`:
```sql
                SELECT "induction" FROM "engines_for_united_states_models" WHERE "years"='1975–1976';
```
## Task
Generate a SQL query to answer the following question:
`What is the power of an engine of 1972?`

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

CREATE TABLE "engines_for_united_states_models" (
  "generation" text,
  "years" text,
  "engine" text,
  "power" text,
  "torque" text,
  "induction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power of an engine of 1972?`:
```sql
                SELECT "power" FROM "engines_for_united_states_models" WHERE "years"='1972';
```
## Task
Generate a SQL query to answer the following question:
`In the game where richmond was the away team, what venue was it played at?`

### 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 `In the game where richmond was the away team, what venue was it played at?`:
```sql
                SELECT "venue" FROM "round_3" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the match where fitzroy was the home team occur?`

### 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 `On what date did the match where fitzroy was the home team occur?`:
```sql
                SELECT "date" FROM "round_3" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`In the match where the away team scored 12.16 (88), who was the home 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 `In the match where the away team scored 12.16 (88), who was the home team?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "away_team_score"='12.16 (88)';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the away team had a score of 17.15 (117)`

### 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 `What was the name of the away team had a score of 17.15 (117)`:
```sql
                SELECT "away_team" FROM "round_3" WHERE "away_team_score"='17.15 (117)';
```
## Task
Generate a SQL query to answer the following question:
`On the match where the away team scored 16.16 (112) what was the crowd attendance?`

### 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 `On the match where the away team scored 16.16 (112) what was the crowd attendance?`:
```sql
                SELECT AVG("crowd") FROM "round_3" WHERE "away_team_score"='16.16 (112)';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1?`

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

CREATE TABLE "club_career_stats" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1?`:
```sql
                SELECT MIN("apps") FROM "club_career_stats" WHERE "country"='honduras' AND "goals"<2 AND "team"='club deportivo victoria' AND "division">1;
```
## Task
Generate a SQL query to answer the following question:
`What grid for jacques villeneuve with over 36 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 grid for jacques villeneuve with over 36 laps?`:
```sql
                SELECT MAX("grid") FROM "race" WHERE "driver"='jacques villeneuve' AND "laps">36;
```
## Task
Generate a SQL query to answer the following question:
`What were the lowest laps of Tarso Marques?`

### 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 were the lowest laps of Tarso Marques?`:
```sql
                SELECT MIN("laps") FROM "race" WHERE "driver"='tarso marques';
```
## Task
Generate a SQL query to answer the following question:
`What's the average Grid for those who spun off after Lap 64?`

### 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's the average Grid for those who spun off after Lap 64?`:
```sql
                SELECT AVG("grid") FROM "race" WHERE "time_retired"='spun off' AND "laps">64;
```
## Task
Generate a SQL query to answer the following question:
`What is the grid total that has a Time/Retired of + 1:33.141, and under 70 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 grid total that has a Time/Retired of + 1:33.141, and under 70 laps?`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "time_retired"='+ 1:33.141' AND "laps"<70;
```
## Task
Generate a SQL query to answer the following question:
`What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?`

### 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 high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "constructor"='tyrrell - yamaha' AND "time_retired"='+ 1 lap';
```
## Task
Generate a SQL query to answer the following question:
`What is the low lap total for a grid of 14?`

### 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 low lap total for a grid of 14?`:
```sql
                SELECT MIN("laps") FROM "race" WHERE "grid"=14;
```
## Task
Generate a SQL query to answer the following question:
`How many laps for martin brundle with a grid of less than 10?`

### 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 martin brundle with a grid of less than 10?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "driver"='martin brundle' AND "grid"<10;
```
## Task
Generate a SQL query to answer the following question:
`What was the average points in the quarterfinals domestic cup?`

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

CREATE TABLE "league_and_cup_history" (
  "season" text,
  "level" text,
  "goals" text,
  "points" real,
  "domestic_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average points in the quarterfinals domestic cup?`:
```sql
                SELECT AVG("points") FROM "league_and_cup_history" WHERE "domestic_cup"='quarterfinals';
```
## Task
Generate a SQL query to answer the following question:
`Which level is quarterfinals domestic cup?`

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

CREATE TABLE "league_and_cup_history" (
  "season" text,
  "level" text,
  "goals" text,
  "points" real,
  "domestic_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which level is quarterfinals domestic cup?`:
```sql
                SELECT "level" FROM "league_and_cup_history" WHERE "domestic_cup"='quarterfinals';
```
## Task
Generate a SQL query to answer the following question:
`What format is catalogue 148615 in?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format is catalogue 148615 in?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalogue"='148615';
```
## Task
Generate a SQL query to answer the following question:
`Which region was on June 8, 2004?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region was on June 8, 2004?`:
```sql
                SELECT "region" FROM "release_history" WHERE "date"='june 8, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What format is catalogue WPCR13504 in?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format is catalogue WPCR13504 in?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalogue"='wpcr13504';
```
## Task
Generate a SQL query to answer the following question:
`What format is the Catalogue 9362486152 from the region of Australia in?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format is the Catalogue 9362486152 from the region of Australia in?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalogue"='9362486152' AND "region"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What region is the catalogue number 9362486152 that was from September 3, 2004 from?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region is the catalogue number 9362486152 that was from September 3, 2004 from?`:
```sql
                SELECT "region" FROM "release_history" WHERE "catalogue"='9362486152' AND "date"='september 3, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What region is the catalogue released on June 8, 2004 from?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region is the catalogue released on June 8, 2004 from?`:
```sql
                SELECT "region" FROM "release_history" WHERE "date"='june 8, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What day is carlton the home side?`

### 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 day is carlton the home side?`:
```sql
                SELECT "date" FROM "round_4" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team's score when the Home team score is 14.18 (102)?`

### 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 away team's score when the Home team score is 14.18 (102)?`:
```sql
                SELECT "away_team_score" FROM "round_4" WHERE "home_team_score"='14.18 (102)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team's score when south melbourne is away?`

### 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 home team's score when south melbourne is away?`:
```sql
                SELECT "home_team_score" FROM "round_4" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What day does the home side score 13.13 (91)?`

### 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 day does the home side score 13.13 (91)?`:
```sql
                SELECT "date" FROM "round_4" WHERE "home_team_score"='13.13 (91)';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the listed when cerclis id is msd004006995`

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

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the listed when cerclis id is msd004006995`:
```sql
                SELECT "listed" FROM "superfund_sites" WHERE "cerclis_id"='msd004006995';
```
## Task
Generate a SQL query to answer the following question:
`What is the timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5?`

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

CREATE TABLE "the_biggest_loser_u_s_tv_series" (
  "episode" real,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5?`:
```sql
                SELECT AVG("rank_timeslot") FROM "the_biggest_loser_u_s_tv_series" WHERE "rating">2.9 AND "rating_share_18_49"='2.6/8' AND "rank_night">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6?`

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

CREATE TABLE "the_biggest_loser_u_s_tv_series" (
  "episode" real,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6?`:
```sql
                SELECT MIN("rating") FROM "the_biggest_loser_u_s_tv_series" WHERE "rank_night"<7 AND "rank_timeslot"<5 AND "episode">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8?`

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

CREATE TABLE "the_biggest_loser_u_s_tv_series" (
  "episode" real,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8?`:
```sql
                SELECT MIN("rank_night") FROM "the_biggest_loser_u_s_tv_series" WHERE "rating_share_18_49"='2.6/8' AND "episode">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the timeslot rank when the rating is smaller than 2.6 and the share is more than 4?`

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

CREATE TABLE "the_biggest_loser_u_s_tv_series" (
  "episode" real,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the timeslot rank when the rating is smaller than 2.6 and the share is more than 4?`:
```sql
                SELECT AVG("rank_timeslot") FROM "the_biggest_loser_u_s_tv_series" WHERE "rating"<2.6 AND "share">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest timeslot rank when the rating is smaller than 2.6?`

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

CREATE TABLE "the_biggest_loser_u_s_tv_series" (
  "episode" real,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest timeslot rank when the rating is smaller than 2.6?`:
```sql
                SELECT MIN("rank_timeslot") FROM "the_biggest_loser_u_s_tv_series" WHERE "rating"<2.6;
```
## Task
Generate a SQL query to answer the following question:
`What away team played at Kardinia Park?`

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

CREATE TABLE "round_8" (
  "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 away team played at Kardinia Park?`:
```sql
                SELECT "away_team" FROM "round_8" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What team played Hawthorn?`

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

CREATE TABLE "round_8" (
  "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 team played Hawthorn?`:
```sql
                SELECT "away_team" FROM "round_8" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the total wins with less than 21 goals taken?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total wins with less than 21 goals taken?`:
```sql
                SELECT SUM("wins") FROM "final_standing" WHERE "goals_against"<21;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of game 59?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of game 59?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=59;
```
## Task
Generate a SQL query to answer the following question:
`What player is a lock with 1 cap?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player is a lock with 1 cap?`:
```sql
                SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "position"='lock' AND "caps"=1;
```
## Task
Generate a SQL query to answer the following question:
`What position does ceri sweeney with under 87 caps of the newport gwent dragons play?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does ceri sweeney with under 87 caps of the newport gwent dragons play?`:
```sql
                SELECT "position" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='newport gwent dragons' AND "caps"<87 AND "player"='ceri sweeney';
```
## Task
Generate a SQL query to answer the following question:
`What player has 12 caps?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has 12 caps?`:
```sql
                SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "caps"=12;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)`

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

CREATE TABLE "2008" (
  "block_a" text,
  "ryuji_hijikata" text,
  "shuji_kondo" text,
  "mazada" text,
  "el_samurai" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)`:
```sql
                SELECT "shuji_kondo" FROM "2008" WHERE "mazada"='x' AND "ryuji_hijikata"='hijikata (14:24)';
```
## Task
Generate a SQL query to answer the following question:
`Name the El samurai with MAZADA of x for Ryuji Hijikata of draw (30:00)`

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

CREATE TABLE "2008" (
  "block_a" text,
  "ryuji_hijikata" text,
  "shuji_kondo" text,
  "mazada" text,
  "el_samurai" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the El samurai with MAZADA of x for Ryuji Hijikata of draw (30:00)`:
```sql
                SELECT "el_samurai" FROM "2008" WHERE "mazada"='x' AND "ryuji_hijikata"='draw (30:00)';
```
## Task
Generate a SQL query to answer the following question:
`Name the MAZADA for El Samurai of mazada (16:22)`

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

CREATE TABLE "2008" (
  "block_a" text,
  "ryuji_hijikata" text,
  "shuji_kondo" text,
  "mazada" text,
  "el_samurai" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the MAZADA for El Samurai of mazada (16:22)`:
```sql
                SELECT "mazada" FROM "2008" WHERE "el_samurai"='mazada (16:22)';
```
## Task
Generate a SQL query to answer the following question:
`Name the Shuji Kondo for MAZADA of hijikata (14:24)`

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

CREATE TABLE "2008" (
  "block_a" text,
  "ryuji_hijikata" text,
  "shuji_kondo" text,
  "mazada" text,
  "el_samurai" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Shuji Kondo for MAZADA of hijikata (14:24)`:
```sql
                SELECT "shuji_kondo" FROM "2008" WHERE "mazada"='hijikata (14:24)';
```
## Task
Generate a SQL query to answer the following question:
`when was the building withdrawn when the builder was ac cars and was introduced before 1958?`

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

CREATE TABLE "br_railbuses" (
  "number_range" text,
  "builder" text,
  "introduced" real,
  "no_built" real,
  "region" text,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `when was the building withdrawn when the builder was ac cars and was introduced before 1958?`:
```sql
                SELECT SUM("withdrawn") FROM "br_railbuses" WHERE "builder"='ac cars' AND "introduced"<1958;
```
## Task
Generate a SQL query to answer the following question:
`What was the decision on october 5?`

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

CREATE TABLE "october" (
  "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 decision on october 5?`:
```sql
                SELECT "decision" FROM "october" WHERE "date"='october 5';
```
## Task
Generate a SQL query to answer the following question:
`Who played home team 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 played home team at Victoria Park?`:
```sql
                SELECT "home_team" FROM "round_11" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`What Season has Goals greater than 0 and less than 33 Apps?`

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

CREATE TABLE "club_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Season has Goals greater than 0 and less than 33 Apps?`:
```sql
                SELECT "season" FROM "club_statistics" WHERE "goals">0 AND "apps"<33;
```
## Task
Generate a SQL query to answer the following question:
`How many carries for the RB averaging 4.7, and a long of over 30 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" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many carries for the RB averaging 4.7, and a long of over 30 yards?`:
```sql
                SELECT SUM("car") FROM "running_backs" WHERE "avg"=4.7 AND "long">30;
```
## Task
Generate a SQL query to answer the following question:
`How many yards did kevin swayne average, with a long carry over 7?`

### 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" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards did kevin swayne average, with a long carry over 7?`:
```sql
                SELECT MIN("avg") FROM "running_backs" WHERE "player"='kevin swayne' AND "long">7;
```
## Task
Generate a SQL query to answer the following question:
`How many yards for the player with over 0 TDs and an average of 2.9?`

### 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" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards for the player with over 0 TDs and an average of 2.9?`:
```sql
                SELECT MIN("yards") FROM "running_backs" WHERE "td_s">0 AND "avg"=2.9;
```
## Task
Generate a SQL query to answer the following question:
`How many TDs for the player averaging over 7, and over 39 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" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many TDs for the player averaging over 7, and over 39 yards?`:
```sql
                SELECT MIN("td_s") FROM "running_backs" WHERE "avg">7 AND "yards">39;
```
## Task
Generate a SQL query to answer the following question:
`What is the catalogue for Harbor Lights as a title?`

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

CREATE TABLE "disc_one" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalogue for Harbor Lights as a title?`:
```sql
                SELECT "catalogue" FROM "disc_one" WHERE "song_title"='harbor lights';
```
## Task
Generate a SQL query to answer the following question:
`What cataglogue has 27 tracks?`

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

CREATE TABLE "disc_one" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What cataglogue has 27 tracks?`:
```sql
                SELECT "catalogue" FROM "disc_one" WHERE "track"=27;
```
## Task
Generate a SQL query to answer the following question:
`Which year first played with Double W-L of 8–3?`

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

CREATE TABLE "current_and_former_player_information" (
  "name" text,
  "total_w_l" text,
  "singles_w_l" text,
  "doubles_w_l" text,
  "no_of_ties" real,
  "first_year_played" real,
  "no_of_years_played" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year first played with Double W-L of 8–3?`:
```sql
                SELECT "first_year_played" FROM "current_and_former_player_information" WHERE "doubles_w_l"='8–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the height that has a year after 1983 and is named Phoenix Tower?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height that has a year after 1983 and is named Phoenix Tower?`:
```sql
                SELECT "height_ft_m" FROM "tallest_buildings" WHERE "year">1983 AND "name"='phoenix tower';
```
## Task
Generate a SQL query to answer the following question:
`What is the oldest year listed with the 1500 Louisiana Street name?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the oldest year listed with the 1500 Louisiana Street name?`:
```sql
                SELECT MIN("year") FROM "tallest_buildings" WHERE "name"='1500 louisiana street';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of rank 11?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of rank 11?`:
```sql
                SELECT "height_ft_m" FROM "tallest_buildings" WHERE "rank"='11';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest enrollment for anglican day schools founded after 1929?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colours" text,
  "abbreviation" text,
  "in_competition_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest enrollment for anglican day schools founded after 1929?`:
```sql
                SELECT MAX("enrolment") FROM "winning_head_of_the_river_championship_e" WHERE "denomination"='anglican' AND "day_boarding"='day' AND "founded">1929;
```
## Task
Generate a SQL query to answer the following question:
`What city of license is associated with call sign w244bk?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city of license is associated with call sign w244bk?`:
```sql
                SELECT "city_of_license" FROM "translators" WHERE "call_sign"='w244bk';
```
## Task
Generate a SQL query to answer the following question:
`What city of license has a Frequency under 107.7, and a call sign of w247aq?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city of license has a Frequency under 107.7, and a call sign of w247aq?`:
```sql
                SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"<107.7 AND "call_sign"='w247aq';
```
## Task
Generate a SQL query to answer the following question:
`Which team was played against on the game where Earl Watson (6) had the highest assists on January 19?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was played against on the game where Earl Watson (6) had the highest assists on January 19?`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_assists"='earl watson (6)' AND "date"='january 19';
```
## Task
Generate a SQL query to answer the following question:
`A singular abbreviation of p. is used for what singular word?`

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

CREATE TABLE "plural_forms" (
  "singular_abbreviation" text,
  "singular_word" text,
  "plural_abbreviation" text,
  "plural_word" text,
  "discipline" text
);
### SQL
Given the database schema, here is the SQL query that answers `A singular abbreviation of p. is used for what singular word?`:
```sql
                SELECT "singular_word" FROM "plural_forms" WHERE "singular_abbreviation"='p.';
```
## Task
Generate a SQL query to answer the following question:
`A plural abbreviation of pp. is used for what singular word?`

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

CREATE TABLE "plural_forms" (
  "singular_abbreviation" text,
  "singular_word" text,
  "plural_abbreviation" text,
  "plural_word" text,
  "discipline" text
);
### SQL
Given the database schema, here is the SQL query that answers `A plural abbreviation of pp. is used for what singular word?`:
```sql
                SELECT "singular_word" FROM "plural_forms" WHERE "plural_abbreviation"='pp.';
```
## Task
Generate a SQL query to answer the following question:
`The plural word of hands uses what singular word?`

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

CREATE TABLE "plural_forms" (
  "singular_abbreviation" text,
  "singular_word" text,
  "plural_abbreviation" text,
  "plural_word" text,
  "discipline" text
);
### SQL
Given the database schema, here is the SQL query that answers `The plural word of hands uses what singular word?`:
```sql
                SELECT "singular_word" FROM "plural_forms" WHERE "plural_word"='hands';
```
## Task
Generate a SQL query to answer the following question:
`The plural word of following lines or pages has what plural abbreviation?`

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

CREATE TABLE "plural_forms" (
  "singular_abbreviation" text,
  "singular_word" text,
  "plural_abbreviation" text,
  "plural_word" text,
  "discipline" text
);
### SQL
Given the database schema, here is the SQL query that answers `The plural word of following lines or pages has what plural abbreviation?`:
```sql
                SELECT "plural_abbreviation" FROM "plural_forms" WHERE "plural_word"='following lines or pages';
```
## Task
Generate a SQL query to answer the following question:
`The plural abbreviation of ll. uses what plural word?`

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

CREATE TABLE "plural_forms" (
  "singular_abbreviation" text,
  "singular_word" text,
  "plural_abbreviation" text,
  "plural_word" text,
  "discipline" text
);
### SQL
Given the database schema, here is the SQL query that answers `The plural abbreviation of ll. uses what plural word?`:
```sql
                SELECT "plural_word" FROM "plural_forms" WHERE "plural_abbreviation"='ll.';
```
## Task
Generate a SQL query to answer the following question:
`The singular word of hand uses what plural word?`

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

CREATE TABLE "plural_forms" (
  "singular_abbreviation" text,
  "singular_word" text,
  "plural_abbreviation" text,
  "plural_word" text,
  "discipline" text
);
### SQL
Given the database schema, here is the SQL query that answers `The singular word of hand uses what plural word?`:
```sql
                SELECT "plural_word" FROM "plural_forms" WHERE "singular_word"='hand';
```
## Task
Generate a SQL query to answer the following question:
`How much did the home team st kilda score?`

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

CREATE TABLE "round_14" (
  "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 much did the home team st kilda score?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`When the crowd was larger than 7,500 what was the away teams score?`

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

CREATE TABLE "round_14" (
  "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 crowd was larger than 7,500 what was the away teams score?`:
```sql
                SELECT "away_team_score" FROM "round_14" WHERE "crowd">'7,500';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of people to attend games at junction oval?`

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

CREATE TABLE "round_14" (
  "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's the total number of people to attend games at junction oval?`:
```sql
                SELECT COUNT("crowd") FROM "round_14" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`When the Away team scored 11.8 (74) how many people showed up?`

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

CREATE TABLE "round_14" (
  "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 11.8 (74) how many people showed up?`:
```sql
                SELECT "crowd" FROM "round_14" WHERE "away_team_score"='11.8 (74)';
```
## Task
Generate a SQL query to answer the following question:
`How many people have attended victoria park?`

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

CREATE TABLE "round_14" (
  "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 have attended victoria park?`:
```sql
                SELECT COUNT("crowd") FROM "round_14" WHERE "venue"='victoria park';
```