cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`On which week was the opponent the oakland raiders?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On which week was the opponent the oakland raiders?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "opponent"='oakland raiders';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game where the opponent was the denver broncos?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game where the opponent was the denver broncos?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "opponent"='denver broncos';
```
## Task
Generate a SQL query to answer the following question:
`How many people are enrolled in platteville, wi?`

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

CREATE TABLE "west_conference" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people are enrolled in platteville, wi?`:
```sql
                SELECT SUM("enrollment") FROM "west_conference" WHERE "location"='platteville, wi';
```
## Task
Generate a SQL query to answer the following question:
`What is the team nickname of university of wisconsin-platteville?`

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

CREATE TABLE "west_conference" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team nickname of university of wisconsin-platteville?`:
```sql
                SELECT "nickname" FROM "west_conference" WHERE "institution"='university of wisconsin-platteville';
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Place is 3?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To Par, when Place is 3?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "place"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Player is "Rives McBee"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Player is "Rives McBee"?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='rives mcbee';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Player is "Tony Lema"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Player is "Tony Lema"?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='tony lema';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when To Par is "E"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when To Par is "E"?`:
```sql
                SELECT "score" FROM "third_round" WHERE "to_par"='e';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Score is 71-71-69=211?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Score is 71-71-69=211?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='71-71-69=211';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Score is 71-74-70=215?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Score is 71-74-70=215?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='71-74-70=215';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2004/ 05 when 2007/ 08 shows not held, 2012/ 13 is A, 2011/ 12 of A, and a 2010/ 11 of not held?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2004_05" text,
  "2007_08" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2004/ 05 when 2007/ 08 shows not held, 2012/ 13 is A, 2011/ 12 of A, and a 2010/ 11 of not held?`:
```sql
                SELECT "2004_05" FROM "performance_and_rankings_timeline" WHERE "2007_08"='not held' AND "2012_13"='a' AND "2011_12"='a' AND "2010_11"='not held';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2012/ 13 when the 2007/ 08 is not held, and the 2011/ 12 is non-ranking?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2004_05" text,
  "2007_08" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2012/ 13 when the 2007/ 08 is not held, and the 2011/ 12 is non-ranking?`:
```sql
                SELECT "2012_13" FROM "performance_and_rankings_timeline" WHERE "2007_08"='not held' AND "2011_12"='non-ranking';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2011/ 12 when the 2010/ 11 is not held, and the 2012/ 13 is A?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2004_05" text,
  "2007_08" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2011/ 12 when the 2010/ 11 is not held, and the 2012/ 13 is A?`:
```sql
                SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2010_11"='not held' AND "2012_13"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2004/ 05 when the 2011/ 12 is non-ranking?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2004_05" text,
  "2007_08" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004/ 05 when the 2011/ 12 is non-ranking?`:
```sql
                SELECT "2004_05" FROM "performance_and_rankings_timeline" WHERE "2011_12"='non-ranking';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2012/ 13 when the 2011/ 12 is non-ranking?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2004_05" text,
  "2007_08" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2012/ 13 when the 2011/ 12 is non-ranking?`:
```sql
                SELECT "2012_13" FROM "performance_and_rankings_timeline" WHERE "2011_12"='non-ranking';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010/ 11 when the 2011/ 12 is ranking tournaments?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2004_05" text,
  "2007_08" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010/ 11 when the 2011/ 12 is ranking tournaments?`:
```sql
                SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2011_12"='ranking tournaments';
```
## Task
Generate a SQL query to answer the following question:
`what is the lost when played is less than 42?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lost when played is less than 42?`:
```sql
                SELECT SUM("lost") FROM "final_table" WHERE "played"<42;
```
## Task
Generate a SQL query to answer the following question:
`what is the goal difference when drawn is more than 11, goals against is less than 63, goals for is less than 87 and lost is more than 16?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the goal difference when drawn is more than 11, goals against is less than 63, goals for is less than 87 and lost is more than 16?`:
```sql
                SELECT "goal_difference" FROM "final_table" WHERE "drawn">11 AND "goals_against"<63 AND "goals_for"<87 AND "lost">16;
```
## Task
Generate a SQL query to answer the following question:
`how many times is lost less than 7 and the position 2?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is lost less than 7 and the position 2?`:
```sql
                SELECT COUNT("goals_for") FROM "final_table" WHERE "lost"<7 AND "position"=2;
```
## Task
Generate a SQL query to answer the following question:
`what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9?`:
```sql
                SELECT SUM("position") FROM "final_table" WHERE "points_1"<36 AND "goals_for"<40 AND "drawn"<9;
```
## Task
Generate a SQL query to answer the following question:
`How many executions in persona have a number with known sentences of 2 (1543–1544)?`

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

CREATE TABLE "table_of_sentences" (
  "tribunal" text,
  "number_of_autos_da_f_with_known_sentences" text,
  "executions_in_persona" text,
  "executions_in_effigie" text,
  "penanced" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many executions in persona have a number with known sentences of 2 (1543–1544)?`:
```sql
                SELECT "executions_in_persona" FROM "table_of_sentences" WHERE "number_of_autos_da_f_with_known_sentences"='2 (1543–1544)';
```
## Task
Generate a SQL query to answer the following question:
`How many were penanced when the number with known sentences was 71 (1600–1773)?`

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

CREATE TABLE "table_of_sentences" (
  "tribunal" text,
  "number_of_autos_da_f_with_known_sentences" text,
  "executions_in_persona" text,
  "executions_in_effigie" text,
  "penanced" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were penanced when the number with known sentences was 71 (1600–1773)?`:
```sql
                SELECT "penanced" FROM "table_of_sentences" WHERE "number_of_autos_da_f_with_known_sentences"='71 (1600–1773)';
```
## Task
Generate a SQL query to answer the following question:
`How many were penanced for a total of 7666?`

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

CREATE TABLE "table_of_sentences" (
  "tribunal" text,
  "number_of_autos_da_f_with_known_sentences" text,
  "executions_in_persona" text,
  "executions_in_effigie" text,
  "penanced" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were penanced for a total of 7666?`:
```sql
                SELECT "penanced" FROM "table_of_sentences" WHERE "total"='7666';
```
## Task
Generate a SQL query to answer the following question:
`How man executions in effigie took place at the Lamego tribunal?`

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

CREATE TABLE "table_of_sentences" (
  "tribunal" text,
  "number_of_autos_da_f_with_known_sentences" text,
  "executions_in_persona" text,
  "executions_in_effigie" text,
  "penanced" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How man executions in effigie took place at the Lamego tribunal?`:
```sql
                SELECT "executions_in_effigie" FROM "table_of_sentences" WHERE "tribunal"='lamego';
```
## Task
Generate a SQL query to answer the following question:
`How many were penanced with 0 executions in effigie for a total of 21?`

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

CREATE TABLE "table_of_sentences" (
  "tribunal" text,
  "number_of_autos_da_f_with_known_sentences" text,
  "executions_in_persona" text,
  "executions_in_effigie" text,
  "penanced" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were penanced with 0 executions in effigie for a total of 21?`:
```sql
                SELECT "penanced" FROM "table_of_sentences" WHERE "executions_in_effigie"='0' AND "total"='21';
```
## Task
Generate a SQL query to answer the following question:
`Which tribunal had a total of 4167?`

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

CREATE TABLE "table_of_sentences" (
  "tribunal" text,
  "number_of_autos_da_f_with_known_sentences" text,
  "executions_in_persona" text,
  "executions_in_effigie" text,
  "penanced" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tribunal had a total of 4167?`:
```sql
                SELECT "tribunal" FROM "table_of_sentences" WHERE "total"='4167';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the Game on October 20?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent of the Game on October 20?`:
```sql
                SELECT "opponent" FROM "season_schedule" WHERE "date"='october 20';
```
## Task
Generate a SQL query to answer the following question:
`Which institution is located in Reading, PA?`

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

CREATE TABLE "national_division" (
  "institution" text,
  "location" text,
  "nickname" text,
  "enrollment" real,
  "established" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which institution is located in Reading, PA?`:
```sql
                SELECT "institution" FROM "national_division" WHERE "location"='reading, pa';
```
## Task
Generate a SQL query to answer the following question:
`What was the nick name for the school established in 1958?`

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

CREATE TABLE "national_division" (
  "institution" text,
  "location" text,
  "nickname" text,
  "enrollment" real,
  "established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nick name for the school established in 1958?`:
```sql
                SELECT "nickname" FROM "national_division" WHERE "established"=1958;
```
## Task
Generate a SQL query to answer the following question:
`When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "team"='mi-jack conquest racing' AND "driver"='justin wilson' AND "grid"<5;
```
## Task
Generate a SQL query to answer the following question:
`When the team is newman/haas racing and the grid size is 3, what's the time/retired?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the team is newman/haas racing and the grid size is 3, what's the time/retired?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "team"='newman/haas racing' AND "grid"=3;
```
## Task
Generate a SQL query to answer the following question:
`What tournament took place on Ground A with 8 rounds?`

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

CREATE TABLE "competitive_matches" (
  "date" text,
  "tournament" text,
  "round" text,
  "ground" text,
  "opponent" text,
  "score_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament took place on Ground A with 8 rounds?`:
```sql
                SELECT "tournament" FROM "competitive_matches" WHERE "ground"='a' AND "round"='8';
```
## Task
Generate a SQL query to answer the following question:
`What series had the title rank of various?`

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

CREATE TABLE "regular_cast" (
  "actor" text,
  "character" text,
  "title_rank" text,
  "series" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series had the title rank of various?`:
```sql
                SELECT "series" FROM "regular_cast" WHERE "title_rank"='various';
```
## Task
Generate a SQL query to answer the following question:
`What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?`

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

CREATE TABLE "regular_cast" (
  "actor" text,
  "character" text,
  "title_rank" text,
  "series" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?`:
```sql
                SELECT "title_rank" FROM "regular_cast" WHERE "series"='1-8, 13' AND "character"='arthur hastings';
```
## Task
Generate a SQL query to answer the following question:
`What is the title rank of actor pauline moran?`

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

CREATE TABLE "regular_cast" (
  "actor" text,
  "character" text,
  "title_rank" text,
  "series" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title rank of actor pauline moran?`:
```sql
                SELECT "title_rank" FROM "regular_cast" WHERE "actor"='pauline moran';
```
## Task
Generate a SQL query to answer the following question:
`Which character had a title rank of various?`

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

CREATE TABLE "regular_cast" (
  "actor" text,
  "character" text,
  "title_rank" text,
  "series" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which character had a title rank of various?`:
```sql
                SELECT "character" FROM "regular_cast" WHERE "title_rank"='various';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest rebounds of the game with a game number higher than 65 on March 28?`

### 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 `Who had the highest rebounds of the game with a game number higher than 65 on March 28?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "game">65 AND "date"='march 28';
```
## Task
Generate a SQL query to answer the following question:
`WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?`

### 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 DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"<58 AND "team"='boston';
```
## Task
Generate a SQL query to answer the following question:
`Original airdate for #6 with 1.246 viewers?`

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

CREATE TABLE "series_3_2009_ratings" (
  "episode" real,
  "original_airdate" text,
  "timeslot_approx" text,
  "viewers_millions" real,
  "nightly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Original airdate for #6 with 1.246 viewers?`:
```sql
                SELECT "original_airdate" FROM "series_3_2009_ratings" WHERE "nightly_rank"='#6' AND "viewers_millions"=1.246;
```
## Task
Generate a SQL query to answer the following question:
`Rank for viewers larger than 1.244?`

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

CREATE TABLE "series_3_2009_ratings" (
  "episode" real,
  "original_airdate" text,
  "timeslot_approx" text,
  "viewers_millions" real,
  "nightly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Rank for viewers larger than 1.244?`:
```sql
                SELECT "nightly_rank" FROM "series_3_2009_ratings" WHERE "viewers_millions">1.244;
```
## Task
Generate a SQL query to answer the following question:
`How many weeks had a Result of w 20–6?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks had a Result of w 20–6?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "result"='w 20–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has an Attendance of bye?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has an Attendance of bye?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='bye';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE FLAPS WITH PODIUMS OF 24 AND RACES BIGGER THAN 143?`

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

CREATE TABLE "by_seasons" (
  "season" text,
  "races" real,
  "podiums" real,
  "pole" real,
  "f_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE FLAPS WITH PODIUMS OF 24 AND RACES BIGGER THAN 143?`:
```sql
                SELECT MAX("f_laps") FROM "by_seasons" WHERE "podiums"=24 AND "races">143;
```
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?`

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

CREATE TABLE "by_seasons" (
  "season" text,
  "races" real,
  "podiums" real,
  "pole" real,
  "f_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?`:
```sql
                SELECT SUM("races") FROM "by_seasons" WHERE "f_laps"=0 AND "podiums">0 AND "season"='2008' AND "pole"<1;
```
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?`

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

CREATE TABLE "by_seasons" (
  "season" text,
  "races" real,
  "podiums" real,
  "pole" real,
  "f_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?`:
```sql
                SELECT MIN("races") FROM "by_seasons" WHERE "pole"<2 AND "season"='2007';
```
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6?`

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

CREATE TABLE "by_seasons" (
  "season" text,
  "races" real,
  "podiums" real,
  "pole" real,
  "f_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6?`:
```sql
                SELECT MAX("races") FROM "by_seasons" WHERE "season"='2010' AND "f_laps">6;
```
## Task
Generate a SQL query to answer the following question:
`What T20 Match has a total of 23?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" text,
  "la_matches" text,
  "t20_matches" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What T20 Match has a total of 23?`:
```sql
                SELECT "t20_matches" FROM "ground_history" WHERE "total"='23';
```
## Task
Generate a SQL query to answer the following question:
`What FC Match was played in Darlington?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" text,
  "la_matches" text,
  "t20_matches" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What FC Match was played in Darlington?`:
```sql
                SELECT "fc_matches" FROM "ground_history" WHERE "location"='darlington';
```
## Task
Generate a SQL query to answer the following question:
`What T20 match was played in 1979?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" text,
  "la_matches" text,
  "t20_matches" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What T20 match was played in 1979?`:
```sql
                SELECT "t20_matches" FROM "ground_history" WHERE "year"='1979';
```
## Task
Generate a SQL query to answer the following question:
`Which FC match has a total of 24?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" text,
  "la_matches" text,
  "t20_matches" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FC match has a total of 24?`:
```sql
                SELECT "fc_matches" FROM "ground_history" WHERE "total"='24';
```
## Task
Generate a SQL query to answer the following question:
`Where was the FC match with a score of 12 played?`

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

CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" text,
  "la_matches" text,
  "t20_matches" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the FC match with a score of 12 played?`:
```sql
                SELECT "location" FROM "ground_history" WHERE "fc_matches"='12';
```
## Task
Generate a SQL query to answer the following question:
`How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?`

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

CREATE TABLE "singles" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?`:
```sql
                SELECT COUNT("oricon") FROM "singles" WHERE "romaji_title"='rakuen -memorial tracks- (maxi-single)';
```
## Task
Generate a SQL query to answer the following question:
`What reference is used with the title アイシテル?`

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

CREATE TABLE "singles" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What reference is used with the title アイシテル?`:
```sql
                SELECT "reference" FROM "singles" WHERE "japanese_title"='アイシテル';
```
## Task
Generate a SQL query to answer the following question:
`What is the reference for the romani title da.i.su.ki?`

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

CREATE TABLE "singles" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the reference for the romani title da.i.su.ki?`:
```sql
                SELECT "reference" FROM "singles" WHERE "romaji_title"='da.i.su.ki';
```
## Task
Generate a SQL query to answer the following question:
`What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?`

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

CREATE TABLE "singles" (
  "romaji_title" text,
  "japanese_title" text,
  "release_date" text,
  "reference" text,
  "oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?`:
```sql
                SELECT "japanese_title" FROM "singles" WHERE "romaji_title"='ashita wa ashita no kaze ga fuku';
```
## Task
Generate a SQL query to answer the following question:
`Which club was founded after 1998?`

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

CREATE TABLE "sport" (
  "club" text,
  "sport" text,
  "founded" real,
  "league" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club was founded after 1998?`:
```sql
                SELECT "club" FROM "sport" WHERE "founded">1998;
```
## Task
Generate a SQL query to answer the following question:
`Which Tries has a Goal smaller than 0?`

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

CREATE TABLE "2002_squad_statistics" (
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tries has a Goal smaller than 0?`:
```sql
                SELECT MIN("tries") FROM "2002_squad_statistics" WHERE "goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the issue price for the Trumpeter Swan set?`

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

CREATE TABLE "specimen_set_variant_dollars" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the issue price for the Trumpeter Swan set?`:
```sql
                SELECT "issue_price" FROM "specimen_set_variant_dollars" WHERE "theme"='trumpeter swan';
```
## Task
Generate a SQL query to answer the following question:
`Who was the artist with a mintage of 40,000 and an issue price of $45.95?`

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

CREATE TABLE "specimen_set_variant_dollars" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the artist with a mintage of 40,000 and an issue price of $45.95?`:
```sql
                SELECT "artist" FROM "specimen_set_variant_dollars" WHERE "mintage"='40,000' AND "issue_price"='45.95';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points a player got during the game on May 25?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of points a player got during the game on May 25?`:
```sql
                SELECT "high_points" FROM "playoffs" WHERE "date"='may 25';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club?`

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

CREATE TABLE "2010s" (
  "player" text,
  "position" text,
  "first_team_appearances" text,
  "first_team_goals" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club?`:
```sql
                SELECT "position" FROM "2010s" WHERE "first_team_goals"='ongoing' AND "current_club"='aston villa';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player who has had 7 first team appearances?`

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

CREATE TABLE "2010s" (
  "player" text,
  "position" text,
  "first_team_appearances" text,
  "first_team_goals" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player who has had 7 first team appearances?`:
```sql
                SELECT "player" FROM "2010s" WHERE "first_team_appearances"='7';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?`

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

CREATE TABLE "2010s" (
  "player" text,
  "position" text,
  "first_team_appearances" text,
  "first_team_goals" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?`:
```sql
                SELECT "current_club" FROM "2010s" WHERE "first_team_appearances"='ongoing' AND "position"='midfielder' AND "player"='samir carruthers';
```
## Task
Generate a SQL query to answer the following question:
`How many first-team goals does the team have whose player is Samir Carruthers?`

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

CREATE TABLE "2010s" (
  "player" text,
  "position" text,
  "first_team_appearances" text,
  "first_team_goals" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many first-team goals does the team have whose player is Samir Carruthers?`:
```sql
                SELECT "first_team_goals" FROM "2010s" WHERE "player"='samir carruthers';
```
## Task
Generate a SQL query to answer the following question:
`What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?`

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

CREATE TABLE "2010s" (
  "player" text,
  "position" text,
  "first_team_appearances" text,
  "first_team_goals" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?`:
```sql
                SELECT "position" FROM "2010s" WHERE "first_team_appearances"='ongoing' AND "current_club"='aston villa' AND "player"='graham burke';
```
## Task
Generate a SQL query to answer the following question:
`Which position has had 7 first-team appearances?`

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

CREATE TABLE "2010s" (
  "player" text,
  "position" text,
  "first_team_appearances" text,
  "first_team_goals" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has had 7 first-team appearances?`:
```sql
                SELECT "position" FROM "2010s" WHERE "first_team_appearances"='7';
```
## Task
Generate a SQL query to answer the following question:
`What was the theme when the issue price was $508.95?`

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

CREATE TABLE "18_k_gold_proof_lunar_hologram_coin_seri" (
  "year" real,
  "theme" text,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the theme when the issue price was $508.95?`:
```sql
                SELECT "theme" FROM "18_k_gold_proof_lunar_hologram_coin_seri" WHERE "issue_price"='$508.95';
```
## Task
Generate a SQL query to answer the following question:
`What's the mintage when the theme was year of the rabbit?`

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

CREATE TABLE "18_k_gold_proof_lunar_hologram_coin_seri" (
  "year" real,
  "theme" text,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the mintage when the theme was year of the rabbit?`:
```sql
                SELECT "mintage" FROM "18_k_gold_proof_lunar_hologram_coin_seri" WHERE "theme"='year of the rabbit';
```
## Task
Generate a SQL query to answer the following question:
`What year was the year of the pig theme?`

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

CREATE TABLE "18_k_gold_proof_lunar_hologram_coin_seri" (
  "year" real,
  "theme" text,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the year of the pig theme?`:
```sql
                SELECT "year" FROM "18_k_gold_proof_lunar_hologram_coin_seri" WHERE "theme"='year of the pig';
```
## Task
Generate a SQL query to answer the following question:
`Who was the artist for the year of the snake?`

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

CREATE TABLE "18_k_gold_proof_lunar_hologram_coin_seri" (
  "year" real,
  "theme" text,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the artist for the year of the snake?`:
```sql
                SELECT "artist" FROM "18_k_gold_proof_lunar_hologram_coin_seri" WHERE "theme"='year of the snake';
```
## Task
Generate a SQL query to answer the following question:
`What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?`

### 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 is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?`:
```sql
                SELECT COUNT("frequency_m_hz") FROM "translators" WHERE "city_of_license"='port charlotte, florida' AND "erp_w">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the call sign for the translator with an ERP W larger than 10?`

### 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 is the call sign for the translator with an ERP W larger than 10?`:
```sql
                SELECT "call_sign" FROM "translators" WHERE "erp_w">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest ERP W of the translator with a call sign of w284av?`

### 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 is the highest ERP W of the translator with a call sign of w284av?`:
```sql
                SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='w284av';
```
## Task
Generate a SQL query to answer the following question:
`How big was the crowd of the Home team of Collingwood?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How big was the crowd of the Home team of Collingwood?`:
```sql
                SELECT MAX("crowd") FROM "round_16" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What away team had a score of 7.9 (51)?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team had a score of 7.9 (51)?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "away_team_score"='7.9 (51)';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score when the away team scored 6.13 (49)?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team score when the away team scored 6.13 (49)?`:
```sql
                SELECT "home_team_score" FROM "round_16" WHERE "away_team_score"='6.13 (49)';
```
## Task
Generate a SQL query to answer the following question:
`What date was the home team score 5.9 (39)?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the home team score 5.9 (39)?`:
```sql
                SELECT "date" FROM "round_16" WHERE "home_team_score"='5.9 (39)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team when the home team was south melbourne?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team when the home team was south melbourne?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "home_team"='south melbourne';
```