cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Format of the September 22, 2008 release with Catalog number RTRADCD491?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Format of the September 22, 2008 release with Catalog number RTRADCD491?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='rtradcd491' AND "date"='september 22, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the Format of the release with Catalog number RTRADLP491?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Format of the release with Catalog number RTRADLP491?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='rtradlp491';
```
## Task
Generate a SQL query to answer the following question:
`What is the Label of the Release with Catalog number 2508668?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Label of the Release with Catalog number 2508668?`:
```sql
                SELECT "label" FROM "release_history" WHERE "catalog"='2508668';
```
## Task
Generate a SQL query to answer the following question:
`What is the Format of the release with Catalog number 2508668?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Format of the release with Catalog number 2508668?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='2508668';
```
## Task
Generate a SQL query to answer the following question:
`What is the Region of the Warner Music Canada Label release?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Region of the Warner Music Canada Label release?`:
```sql
                SELECT "region" FROM "release_history" WHERE "label"='warner music canada';
```
## Task
Generate a SQL query to answer the following question:
`Who were the developers for Portal?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the developers for Portal?`:
```sql
                SELECT "developer_s" FROM "list_of_game_of_the_year_awards" WHERE "game"='portal';
```
## Task
Generate a SQL query to answer the following question:
`Who were the developers for the Action RPG made after 2010?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the developers for the Action RPG made after 2010?`:
```sql
                SELECT "developer_s" FROM "list_of_game_of_the_year_awards" WHERE "year">2010 AND "genre"='action rpg';
```
## Task
Generate a SQL query to answer the following question:
`Which Callsign has an IATA of tr?`

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

CREATE TABLE "airlines_based_in_changi" (
  "airline" text,
  "iata" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Callsign has an IATA of tr?`:
```sql
                SELECT "callsign" FROM "airlines_based_in_changi" WHERE "iata"='tr';
```
## Task
Generate a SQL query to answer the following question:
`Which Commenced operations have an Airline of valuair?`

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

CREATE TABLE "airlines_based_in_changi" (
  "airline" text,
  "iata" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Commenced operations have an Airline of valuair?`:
```sql
                SELECT "commenced_operations" FROM "airlines_based_in_changi" WHERE "airline"='valuair';
```
## Task
Generate a SQL query to answer the following question:
`Which Commenced operations have an Airline of valuair?`

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

CREATE TABLE "airlines_based_in_changi" (
  "airline" text,
  "iata" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Commenced operations have an Airline of valuair?`:
```sql
                SELECT MAX("commenced_operations") FROM "airlines_based_in_changi" WHERE "airline"='valuair';
```
## Task
Generate a SQL query to answer the following question:
`Which IATA has a ICAO of slk?`

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

CREATE TABLE "airlines_based_in_changi" (
  "airline" text,
  "iata" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which IATA has a ICAO of slk?`:
```sql
                SELECT "iata" FROM "airlines_based_in_changi" WHERE "icao"='slk';
```
## Task
Generate a SQL query to answer the following question:
`How many Viewers have a Rank smaller than 2?`

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

CREATE TABLE "most_watched_programmes" (
  "rank" real,
  "series" text,
  "episode_title" text,
  "viewers" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Viewers have a Rank smaller than 2?`:
```sql
                SELECT SUM("viewers") FROM "most_watched_programmes" WHERE "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?`

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

CREATE TABLE "o" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?`:
```sql
                SELECT COUNT("longitude") FROM "o" WHERE "ansi_code"<1036534 AND "water_sqmi"=0 AND "geo_id">3809959540;
```
## Task
Generate a SQL query to answer the following question:
`What is the population in 2010 for the longitude of -97.578927?`

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

CREATE TABLE "o" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population in 2010 for the longitude of -97.578927?`:
```sql
                SELECT COUNT("pop_2010") FROM "o" WHERE "longitude"=-97.578927;
```
## Task
Generate a SQL query to answer the following question:
`What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940?`

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

CREATE TABLE "o" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940?`:
```sql
                SELECT SUM("pop_2010") FROM "o" WHERE "land_sqmi"<34.424 AND "county"='mountrail' AND "geo_id"<3806159940;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72?`

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

CREATE TABLE "o" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72?`:
```sql
                SELECT MAX("latitude") FROM "o" WHERE "ansi_code">1759541 AND "pop_2010"=72;
```
## Task
Generate a SQL query to answer the following question:
`Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?`:
```sql
                SELECT "athlete" FROM "semifinal_2" WHERE "rank">1 AND "lane">7 AND "nationality"='china';
```
## Task
Generate a SQL query to answer the following question:
`How many Lanes have a Time larger than 13.59, and a Rank larger than 8?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Lanes have a Time larger than 13.59, and a Rank larger than 8?`:
```sql
                SELECT SUM("lane") FROM "semifinal_2" WHERE "time">13.59 AND "rank">8;
```
## Task
Generate a SQL query to answer the following question:
`How many lanes have a Nationality of france, and a Rank larger than 8?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many lanes have a Nationality of france, and a Rank larger than 8?`:
```sql
                SELECT SUM("lane") FROM "semifinal_2" WHERE "nationality"='france' AND "rank">8;
```
## Task
Generate a SQL query to answer the following question:
`What game was developed by Nintendo for the Gamecube platform?`

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

CREATE TABLE "game_spot" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was developed by Nintendo for the Gamecube platform?`:
```sql
                SELECT "game" FROM "game_spot" WHERE "developer_s"='nintendo' AND "platform_s"='gamecube';
```
## Task
Generate a SQL query to answer the following question:
`What is the genre of Super Mario Galaxy?`

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

CREATE TABLE "game_spot" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre of Super Mario Galaxy?`:
```sql
                SELECT "genre" FROM "game_spot" WHERE "game"='super mario galaxy';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year having a rank among provinces over 5 and ten-year percentage change of 67.3?`

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

CREATE TABLE "demography" (
  "year" real,
  "population" real,
  "five_year_pct_change" text,
  "ten_year_pct_change" text,
  "rank_among_provinces" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year having a rank among provinces over 5 and ten-year percentage change of 67.3?`:
```sql
                SELECT AVG("year") FROM "demography" WHERE "ten_year_pct_change"='67.3' AND "rank_among_provinces">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest population for the province having a rank under 5?`

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

CREATE TABLE "demography" (
  "year" real,
  "population" real,
  "five_year_pct_change" text,
  "ten_year_pct_change" text,
  "rank_among_provinces" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population for the province having a rank under 5?`:
```sql
                SELECT MAX("population") FROM "demography" WHERE "rank_among_provinces"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of population values having a rank among provinces under 5 with a five-year percentage change of 3.6?`

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

CREATE TABLE "demography" (
  "year" real,
  "population" real,
  "five_year_pct_change" text,
  "ten_year_pct_change" text,
  "rank_among_provinces" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of population values having a rank among provinces under 5 with a five-year percentage change of 3.6?`:
```sql
                SELECT COUNT("population") FROM "demography" WHERE "five_year_pct_change"='3.6' AND "rank_among_provinces"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest year having a ten-year percentage change of 7.9?`

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

CREATE TABLE "demography" (
  "year" real,
  "population" real,
  "five_year_pct_change" text,
  "ten_year_pct_change" text,
  "rank_among_provinces" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year having a ten-year percentage change of 7.9?`:
```sql
                SELECT MAX("year") FROM "demography" WHERE "ten_year_pct_change"='7.9';
```
## Task
Generate a SQL query to answer the following question:
`What's the comp for 1998-04-22?`

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

CREATE TABLE "1998_in_paraguayan_football" (
  "date" text,
  "venue" text,
  "score" text,
  "comp" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the comp for 1998-04-22?`:
```sql
                SELECT "comp" FROM "1998_in_paraguayan_football" WHERE "date"='1998-04-22';
```
## Task
Generate a SQL query to answer the following question:
`What's the score at Olympic Stadium Tokyo, Japan?`

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

CREATE TABLE "1998_in_paraguayan_football" (
  "date" text,
  "venue" text,
  "score" text,
  "comp" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score at Olympic Stadium Tokyo, Japan?`:
```sql
                SELECT "score" FROM "1998_in_paraguayan_football" WHERE "venue"='olympic stadium tokyo, japan';
```
## Task
Generate a SQL query to answer the following question:
`What's the comp in Olympic Stadium Tokyo, Japan?`

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

CREATE TABLE "1998_in_paraguayan_football" (
  "date" text,
  "venue" text,
  "score" text,
  "comp" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the comp in Olympic Stadium Tokyo, Japan?`:
```sql
                SELECT "comp" FROM "1998_in_paraguayan_football" WHERE "venue"='olympic stadium tokyo, japan';
```
## Task
Generate a SQL query to answer the following question:
`What's the report in King Baudouin Stadium Brussels, Belgium?`

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

CREATE TABLE "1998_in_paraguayan_football" (
  "date" text,
  "venue" text,
  "score" text,
  "comp" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the report in King Baudouin Stadium Brussels, Belgium?`:
```sql
                SELECT "report" FROM "1998_in_paraguayan_football" WHERE "venue"='king baudouin stadium brussels, belgium';
```
## Task
Generate a SQL query to answer the following question:
`What is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg?`

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

CREATE TABLE "eliminated_contestants_weigh_in_results" (
  "contestant" text,
  "starting_weight_kg" real,
  "final_weight_kg" real,
  "weight_lost_kg" real,
  "percentage_lost" text,
  "position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg?`:
```sql
                SELECT "percentage_lost" FROM "eliminated_contestants_weigh_in_results" WHERE "starting_weight_kg">102 AND "weight_lost_kg"=46.9;
```
## Task
Generate a SQL query to answer the following question:
`What lane has a time of 1:57.71?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What lane has a time of 1:57.71?`:
```sql
                SELECT SUM("lane") FROM "semifinal_2" WHERE "time"='1:57.71';
```
## Task
Generate a SQL query to answer the following question:
`Who had a larger rank than 3, less than 6 lanes, and a time of 1:58.15?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a larger rank than 3, less than 6 lanes, and a time of 1:58.15?`:
```sql
                SELECT "name" FROM "semifinal_2" WHERE "rank">3 AND "lane"<6 AND "time"='1:58.15';
```
## Task
Generate a SQL query to answer the following question:
`Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7?`

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

CREATE TABLE "registered_births_and_deaths" (
  "average_population_x_1000" real,
  "live_births" text,
  "deaths" text,
  "natural_change" text,
  "crude_birth_rate_per_1000" real,
  "crude_death_rate_per_1000" real,
  "natural_change_per_1000" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7?`:
```sql
                SELECT MIN("crude_death_rate_per_1000") FROM "registered_births_and_deaths" WHERE "deaths"='768' AND "crude_birth_rate_per_1000"<29.7;
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has an Opponent of perth glory, and a Round of 9?`

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

CREATE TABLE "attendance_at_home_games" (
  "round" text,
  "date" text,
  "opponent" text,
  "score_aufc_away" text,
  "attendance" real,
  "weekday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has an Opponent of perth glory, and a Round of 9?`:
```sql
                SELECT MIN("attendance") FROM "attendance_at_home_games" WHERE "opponent"='perth glory' AND "round"='9';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of rider darren gilpin?`

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

CREATE TABLE "race_1_newcomers_race_c" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of rider darren gilpin?`:
```sql
                SELECT MIN("rank") FROM "race_1_newcomers_race_c" WHERE "rider"='darren gilpin';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of rider colin martin?`

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

CREATE TABLE "race_1_newcomers_race_c" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of rider colin martin?`:
```sql
                SELECT MAX("rank") FROM "race_1_newcomers_race_c" WHERE "rider"='colin martin';
```
## Task
Generate a SQL query to answer the following question:
`What is shown on Tuesday when Monday is showing Fox Sports Primetime?`

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

CREATE TABLE "current_regular_national_weekly_schedule" (
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is shown on Tuesday when Monday is showing Fox Sports Primetime?`:
```sql
                SELECT "tuesday" FROM "current_regular_national_weekly_schedule" WHERE "monday"='fox sports primetime';
```
## Task
Generate a SQL query to answer the following question:
`What is shown on Friday when Tuesday is Jay Mohr Sports?`

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

CREATE TABLE "current_regular_national_weekly_schedule" (
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is shown on Friday when Tuesday is Jay Mohr Sports?`:
```sql
                SELECT "friday" FROM "current_regular_national_weekly_schedule" WHERE "tuesday"='jay mohr sports';
```
## Task
Generate a SQL query to answer the following question:
`What is shown on Friday when Monday is Fox Sports Primetime?`

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

CREATE TABLE "current_regular_national_weekly_schedule" (
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is shown on Friday when Monday is Fox Sports Primetime?`:
```sql
                SELECT "friday" FROM "current_regular_national_weekly_schedule" WHERE "monday"='fox sports primetime';
```
## Task
Generate a SQL query to answer the following question:
`What is shown on Tuesday when Thursday shows Fox Sports Tonight (ends 1 am next day)?`

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

CREATE TABLE "current_regular_national_weekly_schedule" (
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is shown on Tuesday when Thursday shows Fox Sports Tonight (ends 1 am next day)?`:
```sql
                SELECT "tuesday" FROM "current_regular_national_weekly_schedule" WHERE "thursday"='fox sports tonight (ends 1 am next day)';
```
## Task
Generate a SQL query to answer the following question:
`What is shown on Tuesday when Wednesday is Fox Sports Tonight (ends 1 am next day)?`

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

CREATE TABLE "current_regular_national_weekly_schedule" (
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is shown on Tuesday when Wednesday is Fox Sports Tonight (ends 1 am next day)?`:
```sql
                SELECT "tuesday" FROM "current_regular_national_weekly_schedule" WHERE "wednesday"='fox sports tonight (ends 1 am next day)';
```
## Task
Generate a SQL query to answer the following question:
`Which capacity has the class 4c3h?`

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

CREATE TABLE "classic_competition" (
  "driver" text,
  "navigator" text,
  "vehicle" text,
  "class" text,
  "capacity" real,
  "total_time" text,
  "margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which capacity has the class 4c3h?`:
```sql
                SELECT "capacity" FROM "classic_competition" WHERE "class"='4c3h';
```
## Task
Generate a SQL query to answer the following question:
`What is the navigator for James?`

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

CREATE TABLE "classic_competition" (
  "driver" text,
  "navigator" text,
  "vehicle" text,
  "class" text,
  "capacity" real,
  "total_time" text,
  "margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the navigator for James?`:
```sql
                SELECT "navigator" FROM "classic_competition" WHERE "driver"='james';
```
## Task
Generate a SQL query to answer the following question:
`How much time did Coad make when the margin was 04:02?`

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

CREATE TABLE "classic_competition" (
  "driver" text,
  "navigator" text,
  "vehicle" text,
  "class" text,
  "capacity" real,
  "total_time" text,
  "margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much time did Coad make when the margin was 04:02?`:
```sql
                SELECT "total_time" FROM "classic_competition" WHERE "margin"='04:02' AND "driver"='coad';
```
## Task
Generate a SQL query to answer the following question:
`What class has a capacity smaller than 3384 for Ferguson?`

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

CREATE TABLE "classic_competition" (
  "driver" text,
  "navigator" text,
  "vehicle" text,
  "class" text,
  "capacity" real,
  "total_time" text,
  "margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class has a capacity smaller than 3384 for Ferguson?`:
```sql
                SELECT "class" FROM "classic_competition" WHERE "capacity"<3384 AND "navigator"='ferguson';
```
## Task
Generate a SQL query to answer the following question:
`Which 1990 has a 2005 smaller than 5,361, and a 2007 smaller than 4,841, and a 2006 smaller than 618, and a 2004 smaller than 389?`

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

CREATE TABLE "figures_of_the_sports_associations_in_th" (
  "1985" text,
  "1990" text,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1990 has a 2005 smaller than 5,361, and a 2007 smaller than 4,841, and a 2006 smaller than 618, and a 2004 smaller than 389?`:
```sql
                SELECT "1990" FROM "figures_of_the_sports_associations_in_th" WHERE "2005"<'5,361' AND "2007"<'4,841' AND "2006"<618 AND "2004"<389;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of places for a song with a draw of 21 and more than 36 points?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of places for a song with a draw of 21 and more than 36 points?`:
```sql
                SELECT COUNT("place") FROM "results" WHERE "draw"=21 AND "points">36;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest numbered game against Phoenix with a record of 29-17?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest numbered game against Phoenix with a record of 29-17?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "opponent"='phoenix' AND "record"='29-17';
```
## Task
Generate a SQL query to answer the following question:
`what is the soap opera when the duration is 18 years and the character is miley byrne?`

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

CREATE TABLE "ireland" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the soap opera when the duration is 18 years and the character is miley byrne?`:
```sql
                SELECT "soap_opera" FROM "ireland" WHERE "duration"='18 years' AND "character"='miley byrne';
```
## Task
Generate a SQL query to answer the following question:
`what is the years when the duration is 13 years and the character is renee phelan?`

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

CREATE TABLE "ireland" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the years when the duration is 13 years and the character is renee phelan?`:
```sql
                SELECT "years" FROM "ireland" WHERE "duration"='13 years' AND "character"='renee phelan';
```
## Task
Generate a SQL query to answer the following question:
`what is the years when the soap opera is glenroe and the actor is mick lally?`

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

CREATE TABLE "ireland" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the years when the soap opera is glenroe and the actor is mick lally?`:
```sql
                SELECT "years" FROM "ireland" WHERE "soap_opera"='glenroe' AND "actor"='mick lally';
```
## Task
Generate a SQL query to answer the following question:
`who is the actor when the character is dinny byrne?`

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

CREATE TABLE "ireland" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the actor when the character is dinny byrne?`:
```sql
                SELECT "actor" FROM "ireland" WHERE "character"='dinny byrne';
```
## Task
Generate a SQL query to answer the following question:
`what is the soap opera when the actor is dave duffy?`

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

CREATE TABLE "ireland" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the soap opera when the actor is dave duffy?`:
```sql
                SELECT "soap_opera" FROM "ireland" WHERE "actor"='dave duffy';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the game with an 11 tie number?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the game with an 11 tie number?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='11';
```
## Task
Generate a SQL query to answer the following question:
`What date was Ipswich Town the away team?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Ipswich Town the away team?`:
```sql
                SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='ipswich town';
```
## Task
Generate a SQL query to answer the following question:
`Who is the owner with a Hot Adult Contemporary format?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner with a Hot Adult Contemporary format?`:
```sql
                SELECT "owner" FROM "radio" WHERE "format"='hot adult contemporary';
```
## Task
Generate a SQL query to answer the following question:
`What's the call sign of The Q?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the call sign of The Q?`:
```sql
                SELECT "call_sign" FROM "radio" WHERE "branding"='the q';
```
## Task
Generate a SQL query to answer the following question:
`What's the call sign for Jack FM?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the call sign for Jack FM?`:
```sql
                SELECT "call_sign" FROM "radio" WHERE "branding"='jack fm';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms?`

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

CREATE TABLE "1928_to_1933" (
  "year" real,
  "main" text,
  "hessen" text,
  "rhein" text,
  "saar" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms?`:
```sql
                SELECT AVG("year") FROM "1928_to_1933" WHERE "saar"='fk pirmasens' AND "hessen"='wormatia worms';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of FK Pirmasens, and Hessen of Wormatia Worms?`

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

CREATE TABLE "1928_to_1933" (
  "year" real,
  "main" text,
  "hessen" text,
  "rhein" text,
  "saar" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of FK Pirmasens, and Hessen of Wormatia Worms?`:
```sql
                SELECT MIN("year") FROM "1928_to_1933" WHERE "main"='eintracht frankfurt' AND "rhein"='waldhof mannheim' AND "saar"='fk pirmasens' AND "hessen"='wormatia worms';
```
## Task
Generate a SQL query to answer the following question:
`Which year has a Main of Eintracht Frankfurt and Hessen of FSV Mainz 05?`

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

CREATE TABLE "1928_to_1933" (
  "year" real,
  "main" text,
  "hessen" text,
  "rhein" text,
  "saar" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has a Main of Eintracht Frankfurt and Hessen of FSV Mainz 05?`:
```sql
                SELECT "year" FROM "1928_to_1933" WHERE "main"='eintracht frankfurt' AND "hessen"='fsv mainz 05';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Hessen the year that Saar was FK Pirmasens?`

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

CREATE TABLE "1928_to_1933" (
  "year" real,
  "main" text,
  "hessen" text,
  "rhein" text,
  "saar" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Hessen the year that Saar was FK Pirmasens?`:
```sql
                SELECT "hessen" FROM "1928_to_1933" WHERE "saar"='fk pirmasens';
```
## Task
Generate a SQL query to answer the following question:
`What's the series of Buddy The Woodsman by director Jack King?`

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

CREATE TABLE "1934" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series of Buddy The Woodsman by director Jack King?`:
```sql
                SELECT "series" FROM "1934" WHERE "director"='jack king' AND "title"='buddy the woodsman';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494?`

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

CREATE TABLE "1934" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494?`:
```sql
                SELECT "director" FROM "1934" WHERE "series"='mm' AND "production_num"<6494 AND "release_date"='1934-09-15';
```
## Task
Generate a SQL query to answer the following question:
`Who's the director of Buddy of the Apes?`

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

CREATE TABLE "1934" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the director of Buddy of the Apes?`:
```sql
                SELECT "director" FROM "1934" WHERE "title"='buddy of the apes';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the film directed by Friz Freleng with an MM Series, production number greater than 6209 and a release date of 1934-11-03?`

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

CREATE TABLE "1934" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the film directed by Friz Freleng with an MM Series, production number greater than 6209 and a release date of 1934-11-03?`:
```sql
                SELECT "title" FROM "1934" WHERE "production_num">6209 AND "series"='mm' AND "director"='friz freleng' AND "release_date"='1934-11-03';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest time for Paulo Villar in lane 9?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest time for Paulo Villar in lane 9?`:
```sql
                SELECT MIN("time") FROM "semifinal_1" WHERE "athlete"='paulo villar' AND "lane"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of lane 4?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of lane 4?`:
```sql
                SELECT "nationality" FROM "semifinal_1" WHERE "lane"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality with a 13.21 time?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality with a 13.21 time?`:
```sql
                SELECT "nationality" FROM "semifinal_1" WHERE "time"=13.21;
```
## Task
Generate a SQL query to answer the following question:
`With an increase in net assets of $211,418, what are the net assets at end of year?`

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

CREATE TABLE "finances" (
  "year" text,
  "total_support_and_revenue" text,
  "total_expenses" text,
  "increase_in_net_assets" text,
  "net_assets_at_end_of_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `With an increase in net assets of $211,418, what are the net assets at end of year?`:
```sql
                SELECT "net_assets_at_end_of_year" FROM "finances" WHERE "increase_in_net_assets"='$211,418';
```
## Task
Generate a SQL query to answer the following question:
`What increase in net assets also has $5,617,236 as the total expenses?`

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

CREATE TABLE "finances" (
  "year" text,
  "total_support_and_revenue" text,
  "total_expenses" text,
  "increase_in_net_assets" text,
  "net_assets_at_end_of_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What increase in net assets also has $5,617,236 as the total expenses?`:
```sql
                SELECT "increase_in_net_assets" FROM "finances" WHERE "total_expenses"='$5,617,236';
```
## Task
Generate a SQL query to answer the following question:
`With the net assets at end of year of $8,231,767, what is the increase in net assets?`

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

CREATE TABLE "finances" (
  "year" text,
  "total_support_and_revenue" text,
  "total_expenses" text,
  "increase_in_net_assets" text,
  "net_assets_at_end_of_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `With the net assets at end of year of $8,231,767, what is the increase in net assets?`:
```sql
                SELECT "increase_in_net_assets" FROM "finances" WHERE "net_assets_at_end_of_year"='$8,231,767';
```
## Task
Generate a SQL query to answer the following question:
`What net assets at end of year has $6,310,964 as the increase in net assets?`

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

CREATE TABLE "finances" (
  "year" text,
  "total_support_and_revenue" text,
  "total_expenses" text,
  "increase_in_net_assets" text,
  "net_assets_at_end_of_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What net assets at end of year has $6,310,964 as the increase in net assets?`:
```sql
                SELECT "net_assets_at_end_of_year" FROM "finances" WHERE "increase_in_net_assets"='$6,310,964';
```
## Task
Generate a SQL query to answer the following question:
`When the increase in net assets is $654,066, what is the net assets at end of year?`

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

CREATE TABLE "finances" (
  "year" text,
  "total_support_and_revenue" text,
  "total_expenses" text,
  "increase_in_net_assets" text,
  "net_assets_at_end_of_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the increase in net assets is $654,066, what is the net assets at end of year?`:
```sql
                SELECT "net_assets_at_end_of_year" FROM "finances" WHERE "increase_in_net_assets"='$654,066';
```
## Task
Generate a SQL query to answer the following question:
`What net assets at end of year also has $736,132 as the increase in net assets?`

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

CREATE TABLE "finances" (
  "year" text,
  "total_support_and_revenue" text,
  "total_expenses" text,
  "increase_in_net_assets" text,
  "net_assets_at_end_of_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What net assets at end of year also has $736,132 as the increase in net assets?`:
```sql
                SELECT "net_assets_at_end_of_year" FROM "finances" WHERE "increase_in_net_assets"='$736,132';
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals did Puerto Rico receive with 1 Silver and a Total of 1 or less?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Gold medals did Puerto Rico receive with 1 Silver and a Total of 1 or less?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=1 AND "nation"='puerto rico' AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "bronze"<7 AND "silver"=1 AND "rank">9;
```