cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Location when the name is telmatosaurus?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location when the name is telmatosaurus?`:
```sql
                SELECT "location" FROM "newly_named_dinosaurs" WHERE "name"='telmatosaurus';
```
## Task
Generate a SQL query to answer the following question:
`What is the Status with a novelty of gen et sp, and the name is haplocanthosaurus?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Status with a novelty of gen et sp, and the name is haplocanthosaurus?`:
```sql
                SELECT "status" FROM "newly_named_dinosaurs" WHERE "novelty"='gen et sp' AND "name"='haplocanthosaurus';
```
## Task
Generate a SQL query to answer the following question:
`How many League cups had a total less than 25 and a league larger than 19?`

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

CREATE TABLE "top_scorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many League cups had a total less than 25 and a league larger than 19?`:
```sql
                SELECT COUNT("league_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "total"<25 AND "league">19;
```
## Task
Generate a SQL query to answer the following question:
`How many FA trophies did Ceri Williams get with a smaller total than 19?`

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

CREATE TABLE "top_scorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many FA trophies did Ceri Williams get with a smaller total than 19?`:
```sql
                SELECT COUNT("fa_trophy") FROM "top_scorers_in_order_of_league_goals" WHERE "player"='ceri williams' AND "total"<19;
```
## Task
Generate a SQL query to answer the following question:
`Which City has an Average of 6.85?`

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

CREATE TABLE "mutual_intelligibility" (
  "city" text,
  "comprehension_of_danish" text,
  "comprehension_of_swedish" text,
  "comprehension_of_norwegian" text,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has an Average of 6.85?`:
```sql
                SELECT "city" FROM "mutual_intelligibility" WHERE "average"=6.85;
```
## Task
Generate a SQL query to answer the following question:
`What is the Average of bergen, norway?`

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

CREATE TABLE "mutual_intelligibility" (
  "city" text,
  "comprehension_of_danish" text,
  "comprehension_of_swedish" text,
  "comprehension_of_norwegian" text,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Average of bergen, norway?`:
```sql
                SELECT MIN("average") FROM "mutual_intelligibility" WHERE "city"='bergen, norway';
```
## Task
Generate a SQL query to answer the following question:
`Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13?`

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

CREATE TABLE "mutual_intelligibility" (
  "city" text,
  "comprehension_of_danish" text,
  "comprehension_of_swedish" text,
  "comprehension_of_norwegian" text,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13?`:
```sql
                SELECT "comprehension_of_danish" FROM "mutual_intelligibility" WHERE "average"<6.85 AND "comprehension_of_norwegian"='4.13';
```
## Task
Generate a SQL query to answer the following question:
`What are the Attendance numbers for november 18, 1990?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Attendance numbers for november 18, 1990?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='november 18, 1990';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date for a week higher than 7 with a record of 9–1?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date for a week higher than 7 with a record of 9–1?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">7 AND "record"='9–1';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game with an attendance over 53,731 after week 5?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game with an attendance over 53,731 after week 5?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance">'53,731' AND "week"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average week of a game on November 12, 1989?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average week of a game on November 12, 1989?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "date"='november 12, 1989';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 5 with a Set 3 that is 25-23 and a Set 4 that is 23-25?`

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

CREATE TABLE "pool_b" (
  "game" real,
  "date" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "result_sets" text,
  "result_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 5 with a Set 3 that is 25-23 and a Set 4 that is 23-25?`:
```sql
                SELECT "set_5" FROM "pool_b" WHERE "set_3"='25-23' AND "set_4"='23-25';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Game with a Set 4 of 25-21 and a Set 3 of 25-23?`

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

CREATE TABLE "pool_b" (
  "game" real,
  "date" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "result_sets" text,
  "result_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the Game with a Set 4 of 25-21 and a Set 3 of 25-23?`:
```sql
                SELECT SUM("game") FROM "pool_b" WHERE "set_4"='25-21' AND "set_3"='25-23';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 5 with a Game that is 59?`

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

CREATE TABLE "pool_b" (
  "game" real,
  "date" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "result_sets" text,
  "result_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 5 with a Game that is 59?`:
```sql
                SELECT "set_5" FROM "pool_b" WHERE "game"=59;
```
## Task
Generate a SQL query to answer the following question:
`What shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara?`

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

CREATE TABLE "international_results" (
  "year" real,
  "competition" text,
  "club" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara?`:
```sql
                SELECT "nation" FROM "international_results" WHERE "competition"='preseason' AND "year"<2011 AND "club"='chivas de guadalajara';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result for the club universidad de guadalajara?`

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

CREATE TABLE "international_results" (
  "year" real,
  "competition" text,
  "club" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result for the club universidad de guadalajara?`:
```sql
                SELECT "result" FROM "international_results" WHERE "club"='club universidad de guadalajara';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3?`

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

CREATE TABLE "international_results" (
  "year" real,
  "competition" text,
  "club" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3?`:
```sql
                SELECT "nation" FROM "international_results" WHERE "year"=2012 AND "competition"='preseason' AND "result"='w 0–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Year when the Competition was friendly, and a Club of everton?`

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

CREATE TABLE "international_results" (
  "year" real,
  "competition" text,
  "club" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Year when the Competition was friendly, and a Club of everton?`:
```sql
                SELECT AVG("year") FROM "international_results" WHERE "competition"='friendly' AND "club"='everton';
```
## Task
Generate a SQL query to answer the following question:
`What is the Competition when the Club was costa rica u-20?`

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

CREATE TABLE "international_results" (
  "year" real,
  "competition" text,
  "club" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Competition when the Club was costa rica u-20?`:
```sql
                SELECT "competition" FROM "international_results" WHERE "club"='costa rica u-20';
```
## Task
Generate a SQL query to answer the following question:
`What is the Club of mexico, Year of 2010, and a Competition of preseason, and a Result of w 0–1?`

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

CREATE TABLE "international_results" (
  "year" real,
  "competition" text,
  "club" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Club of mexico, Year of 2010, and a Competition of preseason, and a Result of w 0–1?`:
```sql
                SELECT "club" FROM "international_results" WHERE "nation"='mexico' AND "year"=2010 AND "competition"='preseason' AND "result"='w 0–1';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total when the nation is Sweden?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "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 lowest total when the nation is Sweden?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "nation"='sweden';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total when silver is less than 1, and the rank is 15?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total when silver is less than 1, and the rank is 15?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "silver"<1 AND "rank"='15';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Bronze when rank is 11, and the total is less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "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 Bronze when rank is 11, and the total is less than 1?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"='11' AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which name's 2012 club was deportivo nacional?`

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

CREATE TABLE "olympic_roster" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name's 2012 club was deportivo nacional?`:
```sql
                SELECT "name" FROM "olympic_roster" WHERE "2012_club"='deportivo nacional';
```
## Task
Generate a SQL query to answer the following question:
`Which weight was attached to the 2012 club San Pedro?`

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

CREATE TABLE "olympic_roster" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which weight was attached to the 2012 club San Pedro?`:
```sql
                SELECT "weight" FROM "olympic_roster" WHERE "2012_club"='san pedro';
```
## Task
Generate a SQL query to answer the following question:
`What year is the latest year that has no under director?`

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

CREATE TABLE "filmography" (
  "year" real,
  "film" text,
  "director" text,
  "producer" text,
  "writer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is the latest year that has no under director?`:
```sql
                SELECT MAX("year") FROM "filmography" WHERE "director"='no';
```
## Task
Generate a SQL query to answer the following question:
`With yes under writer and in 2014, what is the director?`

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

CREATE TABLE "filmography" (
  "year" real,
  "film" text,
  "director" text,
  "producer" text,
  "writer" text
);
### SQL
Given the database schema, here is the SQL query that answers `With yes under writer and in 2014, what is the director?`:
```sql
                SELECT "director" FROM "filmography" WHERE "year"=2014 AND "writer"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Who is the writer of the film Run?`

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

CREATE TABLE "filmography" (
  "year" real,
  "film" text,
  "director" text,
  "producer" text,
  "writer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the writer of the film Run?`:
```sql
                SELECT "writer" FROM "filmography" WHERE "film"='run';
```
## Task
Generate a SQL query to answer the following question:
`What is the most goals made for a person with less than 208 matches and ranked lower than 12?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most goals made for a person with less than 208 matches and ranked lower than 12?`:
```sql
                SELECT MAX("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<208 AND "rank">12;
```
## Task
Generate a SQL query to answer the following question:
`In what years was there a rank lower than 9, under 84 goals, and more than 158 matches?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what years was there a rank lower than 9, under 84 goals, and more than 158 matches?`:
```sql
                SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "matches">158 AND "rank">9 AND "goals"<84;
```
## Task
Generate a SQL query to answer the following question:
`What is the HDTV status of the r-light television service?`

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

CREATE TABLE "conto_tv_teleitalia" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the HDTV status of the r-light television service?`:
```sql
                SELECT "hdtv" FROM "conto_tv_teleitalia" WHERE "television_service"='r-light';
```
## Task
Generate a SQL query to answer the following question:
`Which television service has programmi per adulti 24h/24 content and no HDTV?`

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

CREATE TABLE "conto_tv_teleitalia" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which television service has programmi per adulti 24h/24 content and no HDTV?`:
```sql
                SELECT "television_service" FROM "conto_tv_teleitalia" WHERE "content"='programmi per adulti 24h/24' AND "hdtv"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which television service has a qualsiasi package/option?`

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

CREATE TABLE "conto_tv_teleitalia" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which television service has a qualsiasi package/option?`:
```sql
                SELECT "television_service" FROM "conto_tv_teleitalia" WHERE "package_option"='qualsiasi';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins for Darley of Ballarat FL against larger than 1055?`

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

CREATE TABLE "2009_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of wins for Darley of Ballarat FL against larger than 1055?`:
```sql
                SELECT COUNT("wins") FROM "2009_ladder" WHERE "ballarat_fl"='darley' AND "against">1055;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest draw that has less than 4 wins, 14 losses, and against more than 1836?`

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

CREATE TABLE "2009_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest draw that has less than 4 wins, 14 losses, and against more than 1836?`:
```sql
                SELECT MIN("draws") FROM "2009_ladder" WHERE "wins"<4 AND "losses"=14 AND "against">1836;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Byes that has Ballarat FL of Sunbury against more than 1167?`

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

CREATE TABLE "2009_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Byes that has Ballarat FL of Sunbury against more than 1167?`:
```sql
                SELECT AVG("byes") FROM "2009_ladder" WHERE "ballarat_fl"='sunbury' AND "against">1167;
```
## Task
Generate a SQL query to answer the following question:
`What is the average draws with more than 1 win, 14 losses, and against less than 1836?`

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

CREATE TABLE "2009_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average draws with more than 1 win, 14 losses, and against less than 1836?`:
```sql
                SELECT AVG("draws") FROM "2009_ladder" WHERE "wins">1 AND "losses"=14 AND "against"<1836;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest draw from Ballarat FL of sunbury, and byes larger than 2?`

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

CREATE TABLE "2009_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest draw from Ballarat FL of sunbury, and byes larger than 2?`:
```sql
                SELECT MIN("draws") FROM "2009_ladder" WHERE "ballarat_fl"='sunbury' AND "byes">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest medium Gallup March 2008 value for a Strategic Marking value under 17 and Medium Gallup May 2008 value over 10?`

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

CREATE TABLE "opinion_polls" (
  "party" text,
  "medium_gallup_march_2008" real,
  "strategic_marketing_march_2008" real,
  "ce_sid_may_2008" real,
  "medium_gallup_may_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest medium Gallup March 2008 value for a Strategic Marking value under 17 and Medium Gallup May 2008 value over 10?`:
```sql
                SELECT MAX("medium_gallup_march_2008") FROM "opinion_polls" WHERE "strategic_marketing_march_2008"<17 AND "medium_gallup_may_2008">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Medium Gallup, March 2008 values where the Medium Gallup, May 2008 values are under 10?`

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

CREATE TABLE "opinion_polls" (
  "party" text,
  "medium_gallup_march_2008" real,
  "strategic_marketing_march_2008" real,
  "ce_sid_may_2008" real,
  "medium_gallup_may_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Medium Gallup, March 2008 values where the Medium Gallup, May 2008 values are under 10?`:
```sql
                SELECT SUM("medium_gallup_march_2008") FROM "opinion_polls" WHERE "medium_gallup_may_2008"<10;
```
## Task
Generate a SQL query to answer the following question:
`What show is on at 9:30 when Dating in the Dark is on at 10:00?`

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

CREATE TABLE "monday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show is on at 9:30 when Dating in the Dark is on at 10:00?`:
```sql
                SELECT "9_30" FROM "monday" WHERE "10_00"='dating in the dark';
```
## Task
Generate a SQL query to answer the following question:
`What show is on at 9:00 when Law & Order: Criminal Intent is on at 9:30 and The Great American Road Trip is on at 8:00?`

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

CREATE TABLE "monday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show is on at 9:00 when Law & Order: Criminal Intent is on at 9:30 and The Great American Road Trip is on at 8:00?`:
```sql
                SELECT "9_00" FROM "monday" WHERE "9_30"='law & order: criminal intent' AND "8_00"='the great american road trip';
```
## Task
Generate a SQL query to answer the following question:
`What show is on at 9:00 when The Bachelorette is on at 8:30?`

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

CREATE TABLE "monday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show is on at 9:00 when The Bachelorette is on at 8:30?`:
```sql
                SELECT "9_00" FROM "monday" WHERE "8_30"='the bachelorette';
```
## Task
Generate a SQL query to answer the following question:
`Which away has apoel as the club?`

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

CREATE TABLE "european_record" (
  "season" text,
  "competition" text,
  "round" text,
  "club" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away has apoel as the club?`:
```sql
                SELECT "away" FROM "european_record" WHERE "club"='apoel';
```
## Task
Generate a SQL query to answer the following question:
`Which away has uefa cup as the competition, group f as the round, with espanyol as the club?`

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

CREATE TABLE "european_record" (
  "season" text,
  "competition" text,
  "round" text,
  "club" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away has uefa cup as the competition, group f as the round, with espanyol as the club?`:
```sql
                SELECT "away" FROM "european_record" WHERE "competition"='uefa cup' AND "round"='group f' AND "club"='espanyol';
```
## Task
Generate a SQL query to answer the following question:
`In what location were the fatalities unknown for the Ju-52 aircraft?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what location were the fatalities unknown for the Ju-52 aircraft?`:
```sql
                SELECT "location" FROM "accidents_and_incidents" WHERE "fatalities"='unknown' AND "aircraft"='ju-52';
```
## Task
Generate a SQL query to answer the following question:
`In what location was the tail number ZS-SPF?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what location was the tail number ZS-SPF?`:
```sql
                SELECT "location" FROM "accidents_and_incidents" WHERE "tail_number"='zs-spf';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the Ju-52 aircraft?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the Ju-52 aircraft?`:
```sql
                SELECT "location" FROM "accidents_and_incidents" WHERE "aircraft"='ju-52';
```
## Task
Generate a SQL query to answer the following question:
`How many fatalities occurred for an unknown tail number?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fatalities occurred for an unknown tail number?`:
```sql
                SELECT "fatalities" FROM "accidents_and_incidents" WHERE "tail_number"='unknown';
```
## Task
Generate a SQL query to answer the following question:
`What was the tail number with 3/3 fatalities?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tail number with 3/3 fatalities?`:
```sql
                SELECT "tail_number" FROM "accidents_and_incidents" WHERE "fatalities"='3/3';
```
## Task
Generate a SQL query to answer the following question:
`How many fatalities occurred for the Ju-52 aircraft?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fatalities occurred for the Ju-52 aircraft?`:
```sql
                SELECT "fatalities" FROM "accidents_and_incidents" WHERE "aircraft"='ju-52';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for a goal of 6?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for a goal of 6?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "goal"=6;
```
## Task
Generate a SQL query to answer the following question:
`Where was the match held on July 17, 1999?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the match held on July 17, 1999?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='july 17, 1999';
```
## Task
Generate a SQL query to answer the following question:
`Who was on the Democratic ticket for the Office of Attorney General?`

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

CREATE TABLE "1910_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "independence_league_ticket" text,
  "prohibition_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was on the Democratic ticket for the Office of Attorney General?`:
```sql
                SELECT "democratic_ticket" FROM "1910_state_election_results" WHERE "office"='attorney general';
```
## Task
Generate a SQL query to answer the following question:
`What name has gen et sp nov as the novelty?`

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

CREATE TABLE "angiosperms" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has gen et sp nov as the novelty?`:
```sql
                SELECT "name" FROM "angiosperms" WHERE "novelty"='gen et sp nov';
```
## Task
Generate a SQL query to answer the following question:
`What authors have clarno formation as the unit, actinidia oregonensis as the name?`

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

CREATE TABLE "angiosperms" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What authors have clarno formation as the unit, actinidia oregonensis as the name?`:
```sql
                SELECT "authors" FROM "angiosperms" WHERE "unit"='clarno formation' AND "name"='actinidia oregonensis';
```
## Task
Generate a SQL query to answer the following question:
`What novelty has USA as the location, and coryloides as the name?`

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

CREATE TABLE "angiosperms" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What novelty has USA as the location, and coryloides as the name?`:
```sql
                SELECT "novelty" FROM "angiosperms" WHERE "location"='usa' AND "name"='coryloides';
```
## Task
Generate a SQL query to answer the following question:
`What status has paleopanax as the name?`

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

CREATE TABLE "angiosperms" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What status has paleopanax as the name?`:
```sql
                SELECT "status" FROM "angiosperms" WHERE "name"='paleopanax';
```
## Task
Generate a SQL query to answer the following question:
`What unit has gen et sp nov as the novelty?`

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

CREATE TABLE "angiosperms" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What unit has gen et sp nov as the novelty?`:
```sql
                SELECT "unit" FROM "angiosperms" WHERE "novelty"='gen et sp nov';
```
## Task
Generate a SQL query to answer the following question:
`Which date was the Memorial Tournament held on, when Payne Stewart was runner-up?`

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

CREATE TABLE "pga_tour_wins_20" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date was the Memorial Tournament held on, when Payne Stewart was runner-up?`:
```sql
                SELECT "date" FROM "pga_tour_wins_20" WHERE "tournament"='memorial tournament' AND "runner_s_up"='payne stewart';
```
## Task
Generate a SQL query to answer the following question:
`What grand slam event has a 2011-12 of q?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What grand slam event has a 2011-12 of q?`:
```sql
                SELECT "event" FROM "grand_slam_record" WHERE "2011_12"='q';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2009-10 result that has a 2006-07 result of n/a?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2009-10 result that has a 2006-07 result of n/a?`:
```sql
                SELECT "2009_10" FROM "grand_slam_record" WHERE "2006_07"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007-08 result when the event was Colonial Square?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007-08 result when the event was Colonial Square?`:
```sql
                SELECT "2007_08" FROM "grand_slam_record" WHERE "event"='colonial square';
```
## Task
Generate a SQL query to answer the following question:
`What is the result in 2008-09 that has a 2011-12 result of qf?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result in 2008-09 that has a 2011-12 result of qf?`:
```sql
                SELECT "2008_09" FROM "grand_slam_record" WHERE "2011_12"='qf';
```
## Task
Generate a SQL query to answer the following question:
`What result in 2006-07 has a result in 2010-11 of n/a, and the event is Colonial Square?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result in 2006-07 has a result in 2010-11 of n/a, and the event is Colonial Square?`:
```sql
                SELECT "2006_07" FROM "grand_slam_record" WHERE "2010_11"='n/a' AND "event"='colonial square';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008-09 result has Masters as the event?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008-09 result has Masters as the event?`:
```sql
                SELECT "2008_09" FROM "grand_slam_record" WHERE "event"='masters';
```
## Task
Generate a SQL query to answer the following question:
`What year gave a nominated result for the room 222 series?`

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

CREATE TABLE "women" (
  "year" real,
  "actor" text,
  "award" text,
  "series" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year gave a nominated result for the room 222 series?`:
```sql
                SELECT COUNT("year") FROM "women" WHERE "result"='nominated' AND "series"='room 222';
```
## Task
Generate a SQL query to answer the following question:
`What was actor Teresa Graves's series before the year 1993?`

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

CREATE TABLE "women" (
  "year" real,
  "actor" text,
  "award" text,
  "series" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was actor Teresa Graves's series before the year 1993?`:
```sql
                SELECT "series" FROM "women" WHERE "year"<1993 AND "actor"='teresa graves';
```
## Task
Generate a SQL query to answer the following question:
`Which motor's quantity was more than 8, and a class of bs 1915?`

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

CREATE TABLE "trams" (
  "class" text,
  "quantity" real,
  "manufacturer" text,
  "motor" text,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which motor's quantity was more than 8, and a class of bs 1915?`:
```sql
                SELECT "motor" FROM "trams" WHERE "quantity">8 AND "class"='bs 1915';
```
## Task
Generate a SQL query to answer the following question:
`Which motor's class was bs 1910?`

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

CREATE TABLE "trams" (
  "class" text,
  "quantity" real,
  "manufacturer" text,
  "motor" text,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which motor's class was bs 1910?`:
```sql
                SELECT "motor" FROM "trams" WHERE "class"='bs 1910';
```
## Task
Generate a SQL query to answer the following question:
`What is the quantity when the seats number was 16 and the class was kss 1913?`

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

CREATE TABLE "trams" (
  "class" text,
  "quantity" real,
  "manufacturer" text,
  "motor" text,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity when the seats number was 16 and the class was kss 1913?`:
```sql
                SELECT "quantity" FROM "trams" WHERE "seats"=16 AND "class"='kss 1913';
```
## Task
Generate a SQL query to answer the following question:
`What is the Root of All Evil with an Original air date that is september 3, 2008?`

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

CREATE TABLE "season_2_2008" (
  "advocate_num_1" text,
  "advocate_num_2" text,
  "root_of_all_evil" text,
  "poll_winner" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Root of All Evil with an Original air date that is september 3, 2008?`:
```sql
                SELECT "root_of_all_evil" FROM "season_2_2008" WHERE "original_air_date"='september 3, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Goals Conceded (GC) that has a Draw (PE) larger than 2, and a Goals Scored (GF) larger than 19?`

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

CREATE TABLE "group_b" (
  "place_posici_n" real,
  "team_equipo" text,
  "played_pj" real,
  "won_pg" real,
  "draw_pe" real,
  "lost_pp" real,
  "goals_scored_gf" real,
  "goals_conceded_gc" real,
  "dif" real,
  "points_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `Goals Conceded (GC) that has a Draw (PE) larger than 2, and a Goals Scored (GF) larger than 19?`:
```sql
                SELECT MAX("goals_conceded_gc") FROM "group_b" WHERE "draw_pe">2 AND "goals_scored_gf">19;
```
## Task
Generate a SQL query to answer the following question:
`What is the number for the University of Dublin with their Cultural and Educational Panel of 5, and an Industrial and Commercial Panel with less than 9?`

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

CREATE TABLE "composition_of_the_6th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for the University of Dublin with their Cultural and Educational Panel of 5, and an Industrial and Commercial Panel with less than 9?`:
```sql
                SELECT COUNT("university_of_dublin") FROM "composition_of_the_6th_seanad" WHERE "cultural_and_educational_panel"=5 AND "industrial_and_commercial_panel"<9;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Losing Semi- finalist larger than 1, and a Winner smaller than 5?`

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

CREATE TABLE "top_countries" (
  "rank" real,
  "country" text,
  "winner" real,
  "runner_up" real,
  "losing_semi_finalist" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Losing Semi- finalist larger than 1, and a Winner smaller than 5?`:
```sql
                SELECT "rank" FROM "top_countries" WHERE "losing_semi_finalist">1 AND "winner"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Country of costa rica, and a Losing Semi- finalist larger than 1?`

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

CREATE TABLE "top_countries" (
  "rank" real,
  "country" text,
  "winner" real,
  "runner_up" real,
  "losing_semi_finalist" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Country of costa rica, and a Losing Semi- finalist larger than 1?`:
```sql
                SELECT AVG("rank") FROM "top_countries" WHERE "country"='costa rica' AND "losing_semi_finalist">1;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Runner -up smaller than 0?`

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

CREATE TABLE "top_countries" (
  "rank" real,
  "country" text,
  "winner" real,
  "runner_up" real,
  "losing_semi_finalist" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Runner -up smaller than 0?`:
```sql
                SELECT MAX("rank") FROM "top_countries" WHERE "runner_up"<0;
```