cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the partnership in the game with 166* runs and an opponent of Namibia?`

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

CREATE TABLE "highest_partnerships_of_the_tournament" (
  "runs" text,
  "wicket" text,
  "partnerships" text,
  "versus" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the partnership in the game with 166* runs and an opponent of Namibia?`:
```sql
                SELECT "partnerships" FROM "highest_partnerships_of_the_tournament" WHERE "versus"='namibia' AND "runs"='166*';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game against South Africa and 2nd wickets?`

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

CREATE TABLE "highest_partnerships_of_the_tournament" (
  "runs" text,
  "wicket" text,
  "partnerships" text,
  "versus" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game against South Africa and 2nd wickets?`:
```sql
                SELECT "date" FROM "highest_partnerships_of_the_tournament" WHERE "versus"='south africa' AND "wicket"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Away team that played at Carlton on 11 June 1966?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Away team that played at Carlton on 11 June 1966?`:
```sql
                SELECT "away_team" FROM "round_8" WHERE "date"='11 june 1966' AND "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd at a home game of carlton?`

### 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 was the smallest crowd at a home game of carlton?`:
```sql
                SELECT MIN("crowd") FROM "round_9" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What's the title for year n.m.?`

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

CREATE TABLE "publication_history" (
  "year" text,
  "language" text,
  "title" text,
  "translator" text,
  "company" text,
  "pages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title for year n.m.?`:
```sql
                SELECT "title" FROM "publication_history" WHERE "year"='n.m.';
```
## Task
Generate a SQL query to answer the following question:
`What is the language for translators ritah meltser and amatsyah porat?`

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

CREATE TABLE "publication_history" (
  "year" text,
  "language" text,
  "title" text,
  "translator" text,
  "company" text,
  "pages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the language for translators ritah meltser and amatsyah porat?`:
```sql
                SELECT "language" FROM "publication_history" WHERE "translator"='ritah meltser and amatsyah porat';
```
## Task
Generate a SQL query to answer the following question:
`What's the fewest number of pages for the title al-jiniral fi matahatihi?`

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

CREATE TABLE "publication_history" (
  "year" text,
  "language" text,
  "title" text,
  "translator" text,
  "company" text,
  "pages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the fewest number of pages for the title al-jiniral fi matahatihi?`:
```sql
                SELECT MIN("pages") FROM "publication_history" WHERE "title"='al-jiniral fi matahatihi';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for Zouave?`

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

CREATE TABLE "allied_ships" (
  "date" text,
  "name" text,
  "flag" text,
  "tonnage_grt" real,
  "sunk_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for Zouave?`:
```sql
                SELECT "date" FROM "allied_ships" WHERE "name"='zouave';
```
## Task
Generate a SQL query to answer the following question:
`What is the date where the tonnage is larger than 5,754 and the ship was sunk by U-305?`

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

CREATE TABLE "allied_ships" (
  "date" text,
  "name" text,
  "flag" text,
  "tonnage_grt" real,
  "sunk_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date where the tonnage is larger than 5,754 and the ship was sunk by U-305?`:
```sql
                SELECT "date" FROM "allied_ships" WHERE "tonnage_grt">'5,754' AND "sunk_by"='u-305';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the name of Granville?`

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

CREATE TABLE "allied_ships" (
  "date" text,
  "name" text,
  "flag" text,
  "tonnage_grt" real,
  "sunk_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the name of Granville?`:
```sql
                SELECT "date" FROM "allied_ships" WHERE "name"='granville';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the ship sunk by U-305 on 17 March 1943?`

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

CREATE TABLE "allied_ships" (
  "date" text,
  "name" text,
  "flag" text,
  "tonnage_grt" real,
  "sunk_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the ship sunk by U-305 on 17 March 1943?`:
```sql
                SELECT "name" FROM "allied_ships" WHERE "date"='17 march 1943' AND "sunk_by"='u-305';
```
## Task
Generate a SQL query to answer the following question:
`Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?`:
```sql
                SELECT "date" FROM "april" WHERE "visitor"='jazz' AND "leading_scorer"='mehmet okur (22)';
```
## Task
Generate a SQL query to answer the following question:
`What Club has Fiba European Champion's Cup and an Italian Cup?`

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

CREATE TABLE "all_the_triple_crowns_achieved" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Club has Fiba European Champion's Cup and an Italian Cup?`:
```sql
                SELECT "club" FROM "all_the_triple_crowns_achieved" WHERE "european_cup"='fiba european champion''s cup' AND "national_cup"='italian cup';
```
## Task
Generate a SQL query to answer the following question:
`What European Cup is in Israeli Premier League?`

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

CREATE TABLE "all_the_triple_crowns_achieved" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What European Cup is in Israeli Premier League?`:
```sql
                SELECT "european_cup" FROM "all_the_triple_crowns_achieved" WHERE "national_league"='israeli premier league';
```
## Task
Generate a SQL query to answer the following question:
`Which season is Euroleague with Greek Cup?`

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

CREATE TABLE "all_the_triple_crowns_achieved" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season is Euroleague with Greek Cup?`:
```sql
                SELECT "season" FROM "all_the_triple_crowns_achieved" WHERE "european_cup"='euroleague' AND "national_cup"='greek cup';
```
## Task
Generate a SQL query to answer the following question:
`Which European Cup is in the 1990-91 season?`

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

CREATE TABLE "all_the_triple_crowns_achieved" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which European Cup is in the 1990-91 season?`:
```sql
                SELECT "european_cup" FROM "all_the_triple_crowns_achieved" WHERE "season"='1990-91';
```
## Task
Generate a SQL query to answer the following question:
`Which European Cup is in the 2006-07 season?`

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

CREATE TABLE "all_the_triple_crowns_achieved" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which European Cup is in the 2006-07 season?`:
```sql
                SELECT "european_cup" FROM "all_the_triple_crowns_achieved" WHERE "season"='2006-07';
```
## Task
Generate a SQL query to answer the following question:
`Which National League is in 1969-70 season?`

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

CREATE TABLE "all_the_triple_crowns_achieved" (
  "season" text,
  "club" text,
  "national_league" text,
  "national_cup" text,
  "european_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which National League is in 1969-70 season?`:
```sql
                SELECT "national_league" FROM "all_the_triple_crowns_achieved" WHERE "season"='1969-70';
```
## Task
Generate a SQL query to answer the following question:
`what is the right ascension (j2000) when the apparent magnitude is 13?`

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

CREATE TABLE "3001_3100" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the right ascension (j2000) when the apparent magnitude is 13?`:
```sql
                SELECT "right_ascension_j2000" FROM "3001_3100" WHERE "apparent_magnitude"=13;
```
## Task
Generate a SQL query to answer the following question:
`what is the constellation when the right ascension (j2000) is 09h51m54.0s?`

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

CREATE TABLE "3001_3100" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the constellation when the right ascension (j2000) is 09h51m54.0s?`:
```sql
                SELECT "constellation" FROM "3001_3100" WHERE "right_ascension_j2000"='09h51m54.0s';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021?`

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

CREATE TABLE "3001_3100" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021?`:
```sql
                SELECT MIN("apparent_magnitude") FROM "3001_3100" WHERE "object_type"='spiral galaxy' AND "constellation"='leo minor' AND "ngc_number">3021;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21`:
```sql
                SELECT COUNT("draws") FROM "final_table" WHERE "goals_for"=58 AND "losses"=12 AND "goal_difference"<21;
```
## Task
Generate a SQL query to answer the following question:
`How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than 39?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than 39?`:
```sql
                SELECT COUNT("goals_for") FROM "final_table" WHERE "draws"<11 AND "points"='54+16' AND "goals_against"<39;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35`:
```sql
                SELECT COUNT("played") FROM "final_table" WHERE "points"='31-7' AND "position"=16 AND "goals_for"<35;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of goal difference when the position is more than 20`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of goal difference when the position is more than 20`:
```sql
                SELECT COUNT("goal_difference") FROM "final_table" WHERE "position">20;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of draws when the position is less than 17 and wins is less than 11`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of draws when the position is less than 17 and wins is less than 11`:
```sql
                SELECT SUM("draws") FROM "final_table" WHERE "position"<17 AND "wins"<11;
```
## Task
Generate a SQL query to answer the following question:
`what is the first season of current spell when the number of seasons is more than 72 and the position in 2012 4th?`

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

CREATE TABLE "clubs" (
  "club" text,
  "position_in_2012" text,
  "first_season" text,
  "number_of_seasons" real,
  "first_season_of_current_spell" real,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the first season of current spell when the number of seasons is more than 72 and the position in 2012 4th?`:
```sql
                SELECT SUM("first_season_of_current_spell") FROM "clubs" WHERE "number_of_seasons">72 AND "position_in_2012"='4th';
```
## Task
Generate a SQL query to answer the following question:
`what is the most number of season when the position in 2012 10th and the first season of current spell after 2004?`

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

CREATE TABLE "clubs" (
  "club" text,
  "position_in_2012" text,
  "first_season" text,
  "number_of_seasons" real,
  "first_season_of_current_spell" real,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the most number of season when the position in 2012 10th and the first season of current spell after 2004?`:
```sql
                SELECT MAX("number_of_seasons") FROM "clubs" WHERE "position_in_2012"='10th' AND "first_season_of_current_spell">2004;
```
## Task
Generate a SQL query to answer the following question:
`what is the position is 2012 when the last title is n/a and the first season is 2011?`

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

CREATE TABLE "clubs" (
  "club" text,
  "position_in_2012" text,
  "first_season" text,
  "number_of_seasons" real,
  "first_season_of_current_spell" real,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position is 2012 when the last title is n/a and the first season is 2011?`:
```sql
                SELECT "position_in_2012" FROM "clubs" WHERE "last_title"='n/a' AND "first_season"='2011';
```
## Task
Generate a SQL query to answer the following question:
`what is the last title when the titles is more than 12 and the position in 2012 is 7th`

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

CREATE TABLE "clubs" (
  "club" text,
  "position_in_2012" text,
  "first_season" text,
  "number_of_seasons" real,
  "first_season_of_current_spell" real,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the last title when the titles is more than 12 and the position in 2012 is 7th`:
```sql
                SELECT "last_title" FROM "clubs" WHERE "titles">12 AND "position_in_2012"='7th';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank number for a placing of 28.5 and a total less than 92.7?`

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

CREATE TABLE "pairs" (
  "rank" real,
  "name" text,
  "nation" text,
  "placings" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank number for a placing of 28.5 and a total less than 92.7?`:
```sql
                SELECT COUNT("rank") FROM "pairs" WHERE "placings"='28.5' AND "total"<92.7;
```
## Task
Generate a SQL query to answer the following question:
`What is the placing value for a total less than 96.07 in the United States?`

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

CREATE TABLE "pairs" (
  "rank" real,
  "name" text,
  "nation" text,
  "placings" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the placing value for a total less than 96.07 in the United States?`:
```sql
                SELECT "placings" FROM "pairs" WHERE "total"<96.07 AND "nation"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for Rank 11?`

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

CREATE TABLE "pairs" (
  "rank" real,
  "name" text,
  "nation" text,
  "placings" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for Rank 11?`:
```sql
                SELECT COUNT("total") FROM "pairs" WHERE "rank"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all total values for Switzerland?`

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

CREATE TABLE "pairs" (
  "rank" real,
  "name" text,
  "nation" text,
  "placings" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all total values for Switzerland?`:
```sql
                SELECT SUM("total") FROM "pairs" WHERE "nation"='switzerland';
```
## Task
Generate a SQL query to answer the following question:
`What rank goes to a total of 92.7?`

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

CREATE TABLE "pairs" (
  "rank" real,
  "name" text,
  "nation" text,
  "placings" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank goes to a total of 92.7?`:
```sql
                SELECT "rank" FROM "pairs" WHERE "total"=92.7;
```
## Task
Generate a SQL query to answer the following question:
`Who has a rank great than 3 and a placing of 64?`

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

CREATE TABLE "pairs" (
  "rank" real,
  "name" text,
  "nation" text,
  "placings" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a rank great than 3 and a placing of 64?`:
```sql
                SELECT "name" FROM "pairs" WHERE "rank">3 AND "placings"='64';
```
## Task
Generate a SQL query to answer the following question:
`How many Horizontal Bars have a Team of japan (jpn), and Parallel Bars smaller than 38.924?`

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

CREATE TABLE "team_all_around" (
  "rank" real,
  "team" text,
  "floor_exercise" real,
  "pommel_horse" real,
  "rings" real,
  "vault" real,
  "parallel_bars" real,
  "horizontal_bar" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Horizontal Bars have a Team of japan (jpn), and Parallel Bars smaller than 38.924?`:
```sql
                SELECT COUNT("horizontal_bar") FROM "team_all_around" WHERE "team"='japan (jpn)' AND "parallel_bars"<38.924;
```
## Task
Generate a SQL query to answer the following question:
`How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507?`

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

CREATE TABLE "team_all_around" (
  "rank" real,
  "team" text,
  "floor_exercise" real,
  "pommel_horse" real,
  "rings" real,
  "vault" real,
  "parallel_bars" real,
  "horizontal_bar" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507?`:
```sql
                SELECT COUNT("pommel_horse") FROM "team_all_around" WHERE "rings"=37.461 AND "total"<229.507;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of totals with a Vault of 38.437, and a Floor Exercise smaller than 37.524?`

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

CREATE TABLE "team_all_around" (
  "rank" real,
  "team" text,
  "floor_exercise" real,
  "pommel_horse" real,
  "rings" real,
  "vault" real,
  "parallel_bars" real,
  "horizontal_bar" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of totals with a Vault of 38.437, and a Floor Exercise smaller than 37.524?`:
```sql
                SELECT COUNT("total") FROM "team_all_around" WHERE "vault"=38.437 AND "floor_exercise"<37.524;
```
## Task
Generate a SQL query to answer the following question:
`How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437?`

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

CREATE TABLE "team_all_around" (
  "rank" real,
  "team" text,
  "floor_exercise" real,
  "pommel_horse" real,
  "rings" real,
  "vault" real,
  "parallel_bars" real,
  "horizontal_bar" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437?`:
```sql
                SELECT COUNT("pommel_horse") FROM "team_all_around" WHERE "total"<230.019 AND "team"='china (chn)' AND "vault"<38.437;
```
## Task
Generate a SQL query to answer the following question:
`What is the title where the studio was RKO, the role was Dolly, and the year was later than 1943?`

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

CREATE TABLE "filmography" (
  "year" real,
  "title" text,
  "role" text,
  "studio" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title where the studio was RKO, the role was Dolly, and the year was later than 1943?`:
```sql
                SELECT "title" FROM "filmography" WHERE "year">1943 AND "studio"='rko' AND "role"='dolly';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director for To Have and Have Not, earlier than 1945 with WB studio?`

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

CREATE TABLE "filmography" (
  "year" real,
  "title" text,
  "role" text,
  "studio" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director for To Have and Have Not, earlier than 1945 with WB studio?`:
```sql
                SELECT "director" FROM "filmography" WHERE "studio"='wb' AND "year"<1945 AND "title"='to have and have not';
```
## Task
Generate a SQL query to answer the following question:
`What year was The Horn Blows at Midnight, directed by Raoul Walsh?`

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

CREATE TABLE "filmography" (
  "year" real,
  "title" text,
  "role" text,
  "studio" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was The Horn Blows at Midnight, directed by Raoul Walsh?`:
```sql
                SELECT AVG("year") FROM "filmography" WHERE "director"='raoul walsh' AND "title"='the horn blows at midnight';
```
## Task
Generate a SQL query to answer the following question:
`What title was directed by Raoul Walsh later than 1945?`

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

CREATE TABLE "filmography" (
  "year" real,
  "title" text,
  "role" text,
  "studio" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title was directed by Raoul Walsh later than 1945?`:
```sql
                SELECT "title" FROM "filmography" WHERE "director"='raoul walsh' AND "year">1945;
```
## Task
Generate a SQL query to answer the following question:
`What was the studio for The Hard Way in 1943?`

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

CREATE TABLE "filmography" (
  "year" real,
  "title" text,
  "role" text,
  "studio" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the studio for The Hard Way in 1943?`:
```sql
                SELECT "studio" FROM "filmography" WHERE "year"=1943 AND "title"='the hard way';
```
## Task
Generate a SQL query to answer the following question:
`Which team plays at Lake 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 `Which team plays at Lake Oval?`:
```sql
                SELECT "home_team" FROM "round_15" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the away score when they played at Brunswick Street 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 away score when they played at Brunswick Street Oval?`:
```sql
                SELECT "away_team_score" FROM "round_15" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`Where was South Melbourne played?`

### 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 `Where was South Melbourne played?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Where week is greater than 14 and Opponent is Dallas Cowboys, what is the result?`

### 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 `Where week is greater than 14 and Opponent is Dallas Cowboys, what is the result?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week">14 AND "opponent"='dallas cowboys';
```
## Task
Generate a SQL query to answer the following question:
`Where week is greater than 7 and attendance is 66,251 what is the result?`

### 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 `Where week is greater than 7 and attendance is 66,251 what is the result?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week">7 AND "attendance"='66,251';
```
## Task
Generate a SQL query to answer the following question:
`Where attendance is 79,431 what is date?`

### 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 `Where attendance is 79,431 what is date?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='79,431';
```
## Task
Generate a SQL query to answer the following question:
`Where Date is september 13, 1998 what is result?`

### 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 `Where Date is september 13, 1998 what is result?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='september 13, 1998';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team score at Junction oval?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the away team score at Junction oval?`:
```sql
                SELECT "away_team_score" FROM "round_4" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the average amount of spectators when the away team scored 14.7 (91)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average amount of spectators when the away team scored 14.7 (91)?`:
```sql
                SELECT AVG("crowd") FROM "round_4" WHERE "away_team_score"='14.7 (91)';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team score when the home team scored 13.15 (93)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the away team score when the home team scored 13.15 (93)?`:
```sql
                SELECT "away_team_score" FROM "round_4" WHERE "home_team_score"='13.15 (93)';
```
## Task
Generate a SQL query to answer the following question:
`Name the score when the home is ny islanders and the visitor is montreal`

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

CREATE TABLE "january" (
  "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 `Name the score when the home is ny islanders and the visitor is montreal`:
```sql
                SELECT "score" FROM "january" WHERE "home"='ny islanders' AND "visitor"='montreal';
```
## Task
Generate a SQL query to answer the following question:
`Name the score when the decision is dipietro and the visitor is philadelphia`

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

CREATE TABLE "january" (
  "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 `Name the score when the decision is dipietro and the visitor is philadelphia`:
```sql
                SELECT "score" FROM "january" WHERE "decision"='dipietro' AND "visitor"='philadelphia';
```
## Task
Generate a SQL query to answer the following question:
`Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado`

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

CREATE TABLE "january" (
  "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 `Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado`:
```sql
                SELECT "score" FROM "january" WHERE "decision"='dipietro' AND "visitor"='ny islanders' AND "home"='colorado';
```
## Task
Generate a SQL query to answer the following question:
`Name the least attendance with carolina visitor`

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

CREATE TABLE "january" (
  "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 `Name the least attendance with carolina visitor`:
```sql
                SELECT MIN("attendance") FROM "january" WHERE "visitor"='carolina';
```
## Task
Generate a SQL query to answer the following question:
`What was the Home team score when the crowd was larger than 12,240 and Carlton was the away team?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Home team score when the crowd was larger than 12,240 and Carlton was the away team?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "crowd">'12,240' AND "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What Venue had Carlton has the Away team?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue had Carlton has the Away team?`:
```sql
                SELECT "venue" FROM "round_3" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when Clippers have the high points?`

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

CREATE TABLE "standings" (
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when Clippers have the high points?`:
```sql
                SELECT "record" FROM "standings" WHERE "high_points"='clippers';
```
## Task
Generate a SQL query to answer the following question:
`What had the high points when OT had high rebounds?`

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

CREATE TABLE "standings" (
  "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 had the high points when OT had high rebounds?`:
```sql
                SELECT "high_points" FROM "standings" WHERE "high_rebounds"='ot';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the Suns have high points with a record of 33–13?`

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

CREATE TABLE "standings" (
  "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 `On what date did the Suns have high points with a record of 33–13?`:
```sql
                SELECT "date" FROM "standings" WHERE "high_points"='suns' AND "record"='33–13';
```
## Task
Generate a SQL query to answer the following question:
`Who has the high assists when location attendance is 20,562?`

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

CREATE TABLE "standings" (
  "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 has the high assists when location attendance is 20,562?`:
```sql
                SELECT "high_assists" FROM "standings" WHERE "location_attendance"='20,562';
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Silver smaller than 1, and a Total larger than 3?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Silver smaller than 1, and a Total larger than 3?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "silver"<1 AND "total">3;
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Nation of united states, and a Total larger than 5?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold has a Nation of united states, and a Total larger than 5?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "nation"='united states' AND "total">5;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Nation of argentina, and a Silver smaller than 0?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Nation of argentina, and a Silver smaller than 0?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='argentina' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Silver of 2, and a Total smaller than 5?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Silver of 2, and a Total smaller than 5?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=2 AND "total"<5;
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the away team scored 8.14 (62)?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when the away team scored 8.14 (62)?`:
```sql
                SELECT "venue" FROM "round_8" WHERE "away_team_score"='8.14 (62)';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of spectators when the home team scored 13.11 (89)?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of spectators when the home team scored 13.11 (89)?`:
```sql
                SELECT MAX("crowd") FROM "round_8" WHERE "home_team_score"='13.11 (89)';
```
## Task
Generate a SQL query to answer the following question:
`How many spectators were at the away team Carlton?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many spectators were at the away team Carlton?`:
```sql
                SELECT "crowd" FROM "round_8" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What school colors for the friends' school with over 1000 enrolled?`

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

CREATE TABLE "current_member_schools" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "boys_girls" text,
  "day_boarding" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school colors for the friends' school with over 1000 enrolled?`:
```sql
                SELECT "school_colors" FROM "current_member_schools" WHERE "enrolment">1000 AND "school"='the friends'' school';
```
## Task
Generate a SQL query to answer the following question:
`What is the low enrolment for schools founded after 1995?`

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

CREATE TABLE "current_member_schools" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "boys_girls" text,
  "day_boarding" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low enrolment for schools founded after 1995?`:
```sql
                SELECT MIN("enrolment") FROM "current_member_schools" WHERE "founded">1995;
```
## Task
Generate a SQL query to answer the following question:
`WHere is the friends' school?`

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

CREATE TABLE "current_member_schools" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "boys_girls" text,
  "day_boarding" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHere is the friends' school?`:
```sql
                SELECT "location" FROM "current_member_schools" WHERE "school"='the friends'' school';
```
## Task
Generate a SQL query to answer the following question:
`What is the System with the Current version 3.0.0?`

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

CREATE TABLE "atari_5200" (
  "name" text,
  "current_version" text,
  "system" text,
  "platform" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the System with the Current version 3.0.0?`:
```sql
                SELECT "system" FROM "atari_5200" WHERE "current_version"='3.0.0';
```