cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the high lap total that has a grid of less than 4 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 that has a grid of less than 4 and a Time/Retired of + 1 lap?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "grid"<4 AND "time_retired"='+ 1 lap';
```
## Task
Generate a SQL query to answer the following question:
`How many laps associated with a Time/Retired of + 1:25.475?`

### 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 associated with a Time/Retired of + 1:25.475?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "time_retired"='+ 1:25.475';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played where the away team scored 12.15 (87)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played where the away team scored 12.15 (87)?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "away_team_score"='12.15 (87)';
```
## Task
Generate a SQL query to answer the following question:
`Which away team played a home team with the score of 13.12 (90)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team played a home team with the score of 13.12 (90)?`:
```sql
                SELECT "away_team" FROM "round_12" WHERE "home_team_score"='13.12 (90)';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the away team when the home team scored 19.17 (131)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the away team when the home team scored 19.17 (131)?`:
```sql
                SELECT "away_team_score" FROM "round_12" WHERE "home_team_score"='19.17 (131)';
```
## Task
Generate a SQL query to answer the following question:
`What was the home teams score when the VFL played Princes 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 `What was the home teams score when the VFL played Princes Park?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`What was the opponents score when Geelong played as home team?`

### 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 was the opponents score when Geelong played as home team?`:
```sql
                SELECT "away_team_score" FROM "round_14" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the home teams score when the VFL played at Kardinia 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 `What was the home teams score when the VFL played at Kardinia Park?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`When did Fitzroy play as the away team?`

### 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 did Fitzroy play as the away team?`:
```sql
                SELECT "date" FROM "round_14" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals of the player with 234 apps and a rank above 8?`

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

CREATE TABLE "all_time_top_scorers" (
  "rank" real,
  "player" text,
  "goals" real,
  "apps" real,
  "avg_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of goals of the player with 234 apps and a rank above 8?`:
```sql
                SELECT AVG("goals") FROM "all_time_top_scorers" WHERE "apps"=234 AND "rank"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the average avg/game of the player with 97 goals and a rank above 7?`

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

CREATE TABLE "all_time_top_scorers" (
  "rank" real,
  "player" text,
  "goals" real,
  "apps" real,
  "avg_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average avg/game of the player with 97 goals and a rank above 7?`:
```sql
                SELECT AVG("avg_game") FROM "all_time_top_scorers" WHERE "goals"=97 AND "rank"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of games won where less than 21 games were conceded and less than 18 games were actually played?`

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

CREATE TABLE "clausura_2007_standings" (
  "place_posici_n" real,
  "team_equipo" text,
  "played_pj" real,
  "won_pg" real,
  "draw_pe" real,
  "lost_pp" real,
  "goals_scored_gf" real,
  "goals_conceded_gc" real,
  "dif" real,
  "points_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of games won where less than 21 games were conceded and less than 18 games were actually played?`:
```sql
                SELECT MAX("won_pg") FROM "clausura_2007_standings" WHERE "goals_conceded_gc"<21 AND "played_pj"<18;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?`

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

CREATE TABLE "clausura_2007_standings" (
  "place_posici_n" real,
  "team_equipo" text,
  "played_pj" real,
  "won_pg" real,
  "draw_pe" real,
  "lost_pp" real,
  "goals_scored_gf" real,
  "goals_conceded_gc" real,
  "dif" real,
  "points_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?`:
```sql
                SELECT AVG("goals_conceded_gc") FROM "clausura_2007_standings" WHERE "goals_scored_gf">19 AND "points_pts"=31 AND "draw_pe">7;
```
## Task
Generate a SQL query to answer the following question:
`How many goals were conceded against the Chepo F.C. team where they lost 7 games?`

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

CREATE TABLE "clausura_2007_standings" (
  "place_posici_n" real,
  "team_equipo" text,
  "played_pj" real,
  "won_pg" real,
  "draw_pe" real,
  "lost_pp" real,
  "goals_scored_gf" real,
  "goals_conceded_gc" real,
  "dif" real,
  "points_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals were conceded against the Chepo F.C. team where they lost 7 games?`:
```sql
                SELECT "goals_conceded_gc" FROM "clausura_2007_standings" WHERE "lost_pp"=7 AND "team_equipo"='chepo f.c.';
```
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd at junction oval?`

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

CREATE TABLE "round_15" (
  "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 smallest crowd at junction oval?`:
```sql
                SELECT MIN("crowd") FROM "round_15" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What state has Richard Foster as a member?`

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

CREATE TABLE "notes" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "first_elected" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state has Richard Foster as a member?`:
```sql
                SELECT "state" FROM "notes" WHERE "member"='richard foster';
```
## Task
Generate a SQL query to answer the following question:
`Which member has Cook as the electorate?`

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

CREATE TABLE "notes" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "first_elected" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which member has Cook as the electorate?`:
```sql
                SELECT "member" FROM "notes" WHERE "electorate"='cook';
```
## Task
Generate a SQL query to answer the following question:
`Who was the driver with chassis 625 553 500?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the driver with chassis 625 553 500?`:
```sql
                SELECT "driver" FROM "teams_and_drivers" WHERE "chassis"='625 553 500';
```
## Task
Generate a SQL query to answer the following question:
`What was tyre that was made by cooper - bristol that was driven by bob gerard?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was tyre that was made by cooper - bristol that was driven by bob gerard?`:
```sql
                SELECT "tyre" FROM "teams_and_drivers" WHERE "constructor"='cooper - bristol' AND "driver"='bob gerard';
```
## Task
Generate a SQL query to answer the following question:
`Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani?`:
```sql
                SELECT "constructor" FROM "teams_and_drivers" WHERE "entrant"='officine alfieri maserati' AND "driver"='sergio mantovani';
```
## Task
Generate a SQL query to answer the following question:
`What tyre had Sergio Mantovani as a driver?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tyre had Sergio Mantovani as a driver?`:
```sql
                SELECT "tyre" FROM "teams_and_drivers" WHERE "driver"='sergio mantovani';
```
## Task
Generate a SQL query to answer the following question:
`Can you say what was the entrant of maserati built item with a Tyre of p with a chassis of 250f a6gcm that was driven by Luigi Villoresi?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you say what was the entrant of maserati built item with a Tyre of p with a chassis of 250f a6gcm that was driven by Luigi Villoresi?`:
```sql
                SELECT "entrant" FROM "teams_and_drivers" WHERE "constructor"='maserati' AND "tyre"='p' AND "chassis"='250f a6gcm' AND "driver"='luigi villoresi';
```
## Task
Generate a SQL query to answer the following question:
`What is the dutch word for one?`

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

CREATE TABLE "vocabulary_comparison" (
  "english" text,
  "scots" text,
  "west_frisian" text,
  "afrikaans" text,
  "dutch" text,
  "dutch_limburgish" text,
  "low_german" text,
  "low_german_groningen" text,
  "middle_german_luxemburgish" text,
  "german" text,
  "yiddish" text,
  "gothic" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dutch word for one?`:
```sql
                SELECT "dutch" FROM "vocabulary_comparison" WHERE "english"='one';
```
## Task
Generate a SQL query to answer the following question:
`What is the Middle German (Luxemburgish) word for ein?`

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

CREATE TABLE "vocabulary_comparison" (
  "english" text,
  "scots" text,
  "west_frisian" text,
  "afrikaans" text,
  "dutch" text,
  "dutch_limburgish" text,
  "low_german" text,
  "low_german_groningen" text,
  "middle_german_luxemburgish" text,
  "german" text,
  "yiddish" text,
  "gothic" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Middle German (Luxemburgish) word for ein?`:
```sql
                SELECT "middle_german_luxemburgish" FROM "vocabulary_comparison" WHERE "dutch_limburgish"='ein';
```
## Task
Generate a SQL query to answer the following question:
`What is the Middle German (Luxemburgish) word for stone?`

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

CREATE TABLE "vocabulary_comparison" (
  "english" text,
  "scots" text,
  "west_frisian" text,
  "afrikaans" text,
  "dutch" text,
  "dutch_limburgish" text,
  "low_german" text,
  "low_german_groningen" text,
  "middle_german_luxemburgish" text,
  "german" text,
  "yiddish" text,
  "gothic" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Middle German (Luxemburgish) word for stone?`:
```sql
                SELECT "middle_german_luxemburgish" FROM "vocabulary_comparison" WHERE "english"='stone';
```
## Task
Generate a SQL query to answer the following question:
`What is the Dutch waord for høvd / høvur?`

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

CREATE TABLE "vocabulary_comparison" (
  "english" text,
  "scots" text,
  "west_frisian" text,
  "afrikaans" text,
  "dutch" text,
  "dutch_limburgish" text,
  "low_german" text,
  "low_german_groningen" text,
  "middle_german_luxemburgish" text,
  "german" text,
  "yiddish" text,
  "gothic" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Dutch waord for høvd / høvur?`:
```sql
                SELECT "dutch" FROM "vocabulary_comparison" WHERE "low_german_groningen"='høvd / høvur';
```
## Task
Generate a SQL query to answer the following question:
`What is the English word for twie?`

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

CREATE TABLE "vocabulary_comparison" (
  "english" text,
  "scots" text,
  "west_frisian" text,
  "afrikaans" text,
  "dutch" text,
  "dutch_limburgish" text,
  "low_german" text,
  "low_german_groningen" text,
  "middle_german_luxemburgish" text,
  "german" text,
  "yiddish" text,
  "gothic" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English word for twie?`:
```sql
                SELECT "english" FROM "vocabulary_comparison" WHERE "dutch_limburgish"='twie';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor on the team with 8 rounds and a chassis of 156 158 1512?`

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

CREATE TABLE "teams_and_drivers" (
  "constructor" text,
  "chassis" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constructor on the team with 8 rounds and a chassis of 156 158 1512?`:
```sql
                SELECT "constructor" FROM "teams_and_drivers" WHERE "rounds"='8' AND "chassis"='156 158 1512';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver of the team with tyre d, bt11 chassis, and 8 rounds?`

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

CREATE TABLE "teams_and_drivers" (
  "constructor" text,
  "chassis" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver of the team with tyre d, bt11 chassis, and 8 rounds?`:
```sql
                SELECT "driver" FROM "teams_and_drivers" WHERE "tyre"='d' AND "chassis"='bt11' AND "rounds"='8';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of bronze that silver is smaller than 1 and gold bigger than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of bronze that silver is smaller than 1 and gold bigger than 0?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "silver"<1 AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the name when the nation is France, the pts/game is more than 3 and points is less than 33?`

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

CREATE TABLE "leading_points_scorers" (
  "name" text,
  "nation" text,
  "points" real,
  "games" real,
  "pts_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when the nation is France, the pts/game is more than 3 and points is less than 33?`:
```sql
                SELECT "name" FROM "leading_points_scorers" WHERE "nation"='france' AND "pts_game">3 AND "points"<33;
```
## Task
Generate a SQL query to answer the following question:
`what is the pts/game for Charlotte barras and the games is 5?`

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

CREATE TABLE "leading_points_scorers" (
  "name" text,
  "nation" text,
  "points" real,
  "games" real,
  "pts_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pts/game for Charlotte barras and the games is 5?`:
```sql
                SELECT "pts_game" FROM "leading_points_scorers" WHERE "games"=5 AND "name"='charlotte barras';
```
## Task
Generate a SQL query to answer the following question:
`what is the average points when the nation is wales and the pts/game is more than 5?`

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

CREATE TABLE "leading_points_scorers" (
  "name" text,
  "nation" text,
  "points" real,
  "games" real,
  "pts_game" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average points when the nation is wales and the pts/game is more than 5?`:
```sql
                SELECT AVG("points") FROM "leading_points_scorers" WHERE "nation"='wales' AND "pts_game">5;
```
## Task
Generate a SQL query to answer the following question:
`When is the earliest year for it is in barcelona, spain?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the earliest year for it is in barcelona, spain?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "venue"='barcelona, spain';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year they finished 5th in santiago, chile?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year they finished 5th in santiago, chile?`:
```sql
                SELECT AVG("year") FROM "achievements" WHERE "position"='5th' AND "venue"='santiago, chile';
```
## Task
Generate a SQL query to answer the following question:
`Which pick was MIchael Holper?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which pick was MIchael Holper?`:
```sql
                SELECT MIN("pick") FROM "round_1" WHERE "player"='michael holper';
```
## Task
Generate a SQL query to answer the following question:
`Which country is Leo Najorda from?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is Leo Najorda from?`:
```sql
                SELECT "country_of_origin" FROM "round_1" WHERE "player"='leo najorda';
```
## Task
Generate a SQL query to answer the following question:
`Which United States player from Hawaii-Hilo had the lowest pick?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which United States player from Hawaii-Hilo had the lowest pick?`:
```sql
                SELECT MIN("pick") FROM "round_1" WHERE "country_of_origin"='united states' AND "college"='hawaii-hilo';
```
## Task
Generate a SQL query to answer the following question:
`Which United States player for Air21 Express had a pick smaller than 9?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which United States player for Air21 Express had a pick smaller than 9?`:
```sql
                SELECT "player" FROM "round_1" WHERE "pick"<9 AND "country_of_origin"='united states' AND "pba_team"='air21 express';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "nation"='russia (rus)' AND "silver"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total where the nation is South Africa (rsa) and bronze is less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total where the nation is South Africa (rsa) and bronze is less than 1?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "nation"='south africa (rsa)' AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "gold"=0 AND "rank">14 AND "total"=1 AND "silver"<1;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the home team for vfl park venue`

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

CREATE TABLE "round_21" (
  "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 `Tell me the home team for vfl park venue`:
```sql
                SELECT "home_team" FROM "round_21" WHERE "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the home team for venue of mcg`

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

CREATE TABLE "round_21" (
  "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 `Tell me the home team for venue of mcg`:
```sql
                SELECT "home_team" FROM "round_21" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the most crowd for arden street oval venue`

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

CREATE TABLE "round_21" (
  "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 `Tell me the most crowd for arden street oval venue`:
```sql
                SELECT MAX("crowd") FROM "round_21" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team's score when South Melbourne was 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 was the away team's score when South Melbourne was the home team?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that scored 19.18 (132)?`

### 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 home team that scored 19.18 (132)?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "home_team_score"='19.18 (132)';
```
## Task
Generate a SQL query to answer the following question:
`What was the placing of the nation of East Germany?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "name" text,
  "nation" text,
  "total_points" real,
  "placings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the placing of the nation of East Germany?`:
```sql
                SELECT COUNT("placings") FROM "ice_dancing" WHERE "nation"='east germany';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest level of team Astana since 2007?`

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

CREATE TABLE "club_career_stats" (
  "season" real,
  "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's the highest level of team Astana since 2007?`:
```sql
                SELECT MAX("level") FROM "club_career_stats" WHERE "team"='astana' AND "season">2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the average amount of goals that has a points smaller of 882, less than 5 field goals, and less than 85 tries all by Ty Williams.`

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

CREATE TABLE "most_points_for_the_club" (
  "points" real,
  "player" text,
  "tries" real,
  "goals" real,
  "field_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average amount of goals that has a points smaller of 882, less than 5 field goals, and less than 85 tries all by Ty Williams.`:
```sql
                SELECT AVG("goals") FROM "most_points_for_the_club" WHERE "points"<882 AND "field_goals"<5 AND "player"='ty williams' AND "tries"<85;
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Western Oval?`

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

CREATE TABLE "round_9" (
  "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 Western Oval?`:
```sql
                SELECT "away_team" FROM "round_9" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that played against Collingwood?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team that played against Collingwood?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "away_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd size for Richmond home games?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average crowd size for Richmond home games?`:
```sql
                SELECT AVG("crowd") FROM "round_9" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd for North Melbourne home games?`

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

CREATE TABLE "round_9" (
  "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 largest crowd for North Melbourne home games?`:
```sql
                SELECT MAX("crowd") FROM "round_9" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`In which venue does Melbourne play as the home team?`

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

CREATE TABLE "round_9" (
  "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 which venue does Melbourne play as the home team?`:
```sql
                SELECT "venue" FROM "round_9" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`When did the home team score 20.16 (136)?`

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

CREATE TABLE "round_9" (
  "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 did the home team score 20.16 (136)?`:
```sql
                SELECT "date" FROM "round_9" WHERE "home_team_score"='20.16 (136)';
```
## Task
Generate a SQL query to answer the following question:
`Which Grid has a Driver of johnny dumfries?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has a Driver of johnny dumfries?`:
```sql
                SELECT "grid" FROM "classification" WHERE "driver"='johnny dumfries';
```
## Task
Generate a SQL query to answer the following question:
`What is the score on 22 September 1972?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score on 22 September 1972?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='22 september 1972';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue on 3 September 1972?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue on 3 September 1972?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='3 september 1972';
```
## Task
Generate a SQL query to answer the following question:
`Name the series for april 30`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series for april 30`:
```sql
                SELECT "series" FROM "playoffs" WHERE "date"='april 30';
```
## Task
Generate a SQL query to answer the following question:
`Name the highest game for west (8) high assists`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest game for west (8) high assists`:
```sql
                SELECT MAX("game") FROM "playoffs" WHERE "high_assists"='west (8)';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Date of 14 February?`

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

CREATE TABLE "singles" (
  "year" real,
  "date" text,
  "album" text,
  "label" text,
  "format_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Date of 14 February?`:
```sql
                SELECT MIN("year") FROM "singles" WHERE "date"='14 february';
```
## Task
Generate a SQL query to answer the following question:
`Which Label has a Date of 20 July?`

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

CREATE TABLE "singles" (
  "year" real,
  "date" text,
  "album" text,
  "label" text,
  "format_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Date of 20 July?`:
```sql
                SELECT "label" FROM "singles" WHERE "date"='20 july';
```
## Task
Generate a SQL query to answer the following question:
`Which Label has a Date of 14 February?`

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

CREATE TABLE "singles" (
  "year" real,
  "date" text,
  "album" text,
  "label" text,
  "format_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Date of 14 February?`:
```sql
                SELECT "label" FROM "singles" WHERE "date"='14 february';
```
## Task
Generate a SQL query to answer the following question:
`Who choreographed the smooth waltz with lacey schwimmer?`

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

CREATE TABLE "season_3" (
  "week" real,
  "partner" text,
  "style" text,
  "choreographer_s" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who choreographed the smooth waltz with lacey schwimmer?`:
```sql
                SELECT "choreographer_s" FROM "season_3" WHERE "style"='smooth waltz' AND "partner"='lacey schwimmer';
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner for the jazz piece in the bottom three?`

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

CREATE TABLE "season_3" (
  "week" real,
  "partner" text,
  "style" text,
  "choreographer_s" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner for the jazz piece in the bottom three?`:
```sql
                SELECT "partner" FROM "season_3" WHERE "style"='jazz' AND "results"='bottom three';
```
## Task
Generate a SQL query to answer the following question:
`In which venue did a home team score 15.5 (95)?`

### 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 `In which venue did a home team score 15.5 (95)?`:
```sql
                SELECT "venue" FROM "round_14" WHERE "home_team_score"='15.5 (95)';
```
## Task
Generate a SQL query to answer the following question:
`For Venue vfl park, what was the home team 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 `For Venue vfl park, what was the home team score?`:
```sql
                SELECT "home_team_score" FROM "round_14" WHERE "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`On which date was the venue of vfl park used?`

### 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 `On which date was the venue of vfl park used?`:
```sql
                SELECT "date" FROM "round_14" WHERE "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`What was the Average crowd when the away team was north melbourne?`

### 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 was the Average crowd when the away team was north melbourne?`:
```sql
                SELECT AVG("crowd") FROM "round_14" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS?`

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

CREATE TABLE "engine_specifications" (
  "engine_name" text,
  "engine_code_s" text,
  "valvetrain" text,
  "displacement" text,
  "max_power_at_rpm" text,
  "max_torque_at_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS?`:
```sql
                SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_code_s"='bjb/bkc/bxe/bls';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum power at rpm for the engine named 2.0 TDI that has a 1968cc displacement?`

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

CREATE TABLE "engine_specifications" (
  "engine_name" text,
  "engine_code_s" text,
  "valvetrain" text,
  "displacement" text,
  "max_power_at_rpm" text,
  "max_torque_at_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum power at rpm for the engine named 2.0 TDI that has a 1968cc displacement?`:
```sql
                SELECT "max_power_at_rpm" FROM "engine_specifications" WHERE "displacement"='1968cc' AND "engine_name"='2.0 tdi';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum torque at rpm for the engine with code BMM?`

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

CREATE TABLE "engine_specifications" (
  "engine_name" text,
  "engine_code_s" text,
  "valvetrain" text,
  "displacement" text,
  "max_power_at_rpm" text,
  "max_torque_at_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum torque at rpm for the engine with code BMM?`:
```sql
                SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_code_s"='bmm';
```
## Task
Generate a SQL query to answer the following question:
`What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800?`

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

CREATE TABLE "engine_specifications" (
  "engine_name" text,
  "engine_code_s" text,
  "valvetrain" text,
  "displacement" text,
  "max_power_at_rpm" text,
  "max_torque_at_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800?`:
```sql
                SELECT "engine_name" FROM "engine_specifications" WHERE "max_torque_at_rpm"='n·m ( lbf·ft ) @ 3,800';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of t.u.f.f. puppy?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of t.u.f.f. puppy?`:
```sql
                SELECT "result" FROM "awards_and_nominations" WHERE "work"='t.u.f.f. puppy';
```
## Task
Generate a SQL query to answer the following question:
`what is the score for the 2010 world cup qualifying?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score for the 2010 world cup qualifying?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='2010 world cup qualifying';
```
## Task
Generate a SQL query to answer the following question:
`Which home has a Date of november 7?`

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

CREATE TABLE "november" (
  "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 `Which home has a Date of november 7?`:
```sql
                SELECT "home" FROM "november" WHERE "date"='november 7';
```