cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010?`

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

CREATE TABLE "cities" (
  "city" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "regional_population_2010" text,
  "gdp_2011_billion_yuan" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010?`:
```sql
                SELECT "hanyu_pinyin" FROM "cities" WHERE "gdp_2011_billion_yuan">688.02 AND "regional_population_2010"='8,700,400';
```
## Task
Generate a SQL query to answer the following question:
`Which Hanzi has a Regional Population of 4,591,972 in 2010?`

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

CREATE TABLE "cities" (
  "city" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "regional_population_2010" text,
  "gdp_2011_billion_yuan" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Hanzi has a Regional Population of 4,591,972 in 2010?`:
```sql
                SELECT "hanzi" FROM "cities" WHERE "regional_population_2010"='4,591,972';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62?`:
```sql
                SELECT "name" FROM "semifinal_2" WHERE "rank"<5 AND "time"<55.62 AND "lane"<5 AND "nationality"='netherlands';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank of Karen Pickering when she had a time of less than 55.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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Rank of Karen Pickering when she had a time of less than 55.71?`:
```sql
                SELECT MAX("rank") FROM "semifinal_2" WHERE "name"='karen pickering' AND "time"<55.71;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger 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,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?`:
```sql
                SELECT MAX("lane") FROM "semifinal_2" WHERE "time">55.94 AND "rank">8;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that had a loss of Burns (0-1)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game that had a loss of Burns (0-1)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "loss"='burns (0-1)';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game when the record was 20-16?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game when the record was 20-16?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='20-16';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game that had an attendance of 18,769?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game that had an attendance of 18,769?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "attendance"='18,769';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that had a loss of Geisel (0-1)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game that had a loss of Geisel (0-1)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "loss"='geisel (0-1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game against the Royals that had an attendance of 12,699?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game against the Royals that had an attendance of 12,699?`:
```sql
                SELECT "date" FROM "game_log" WHERE "opponent"='royals' AND "attendance"='12,699';
```
## Task
Generate a SQL query to answer the following question:
`When Regions center has a rank less than 11, what is the greatest number o floors?`

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

CREATE TABLE "tallest_buildings" (
  "rank" real,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `When Regions center has a rank less than 11, what is the greatest number o floors?`:
```sql
                SELECT MAX("floors") FROM "tallest_buildings" WHERE "name"='regions center' AND "rank"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank for a building with 24 floors?`

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

CREATE TABLE "tallest_buildings" (
  "rank" real,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for a building with 24 floors?`:
```sql
                SELECT AVG("rank") FROM "tallest_buildings" WHERE "floors"=24;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for Omni nashville hotel?`

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

CREATE TABLE "tallest_buildings" (
  "rank" real,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for Omni nashville hotel?`:
```sql
                SELECT SUM("rank") FROM "tallest_buildings" WHERE "name"='omni nashville hotel';
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest rank for Fifth third center?`

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

CREATE TABLE "tallest_buildings" (
  "rank" real,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest rank for Fifth third center?`:
```sql
                SELECT MAX("rank") FROM "tallest_buildings" WHERE "name"='fifth third center';
```
## Task
Generate a SQL query to answer the following question:
`When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year?`

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

CREATE TABLE "tallest_buildings" (
  "rank" real,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year?`:
```sql
                SELECT AVG("year") FROM "tallest_buildings" WHERE "floors"<23 AND "height_ft_m"='292 (89)' AND "rank"<14;
```
## Task
Generate a SQL query to answer the following question:
`What type of regular season/preseason game was played on August 25, 2007?`

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

CREATE TABLE "game_summaries" (
  "date" text,
  "visiting_team" text,
  "home_team" text,
  "stadium" text,
  "regular_season_preseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of regular season/preseason game was played on August 25, 2007?`:
```sql
                SELECT "regular_season_preseason" FROM "game_summaries" WHERE "date"='august 25, 2007';
```
## Task
Generate a SQL query to answer the following question:
`In what stadium was the game on August 22, 2008 played?`

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

CREATE TABLE "game_summaries" (
  "date" text,
  "visiting_team" text,
  "home_team" text,
  "stadium" text,
  "regular_season_preseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what stadium was the game on August 22, 2008 played?`:
```sql
                SELECT "stadium" FROM "game_summaries" WHERE "date"='august 22, 2008';
```
## Task
Generate a SQL query to answer the following question:
`In what stadium was the home team Dallas Cowboys 21?`

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

CREATE TABLE "game_summaries" (
  "date" text,
  "visiting_team" text,
  "home_team" text,
  "stadium" text,
  "regular_season_preseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what stadium was the home team Dallas Cowboys 21?`:
```sql
                SELECT "stadium" FROM "game_summaries" WHERE "home_team"='dallas cowboys 21';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the home team the Dallas Cowboys 34?`

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

CREATE TABLE "game_summaries" (
  "date" text,
  "visiting_team" text,
  "home_team" text,
  "stadium" text,
  "regular_season_preseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the home team the Dallas Cowboys 34?`:
```sql
                SELECT "date" FROM "game_summaries" WHERE "home_team"='dallas cowboys 34';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team on October 15, 2006?`

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

CREATE TABLE "game_summaries" (
  "date" text,
  "visiting_team" text,
  "home_team" text,
  "stadium" text,
  "regular_season_preseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team on October 15, 2006?`:
```sql
                SELECT "visiting_team" FROM "game_summaries" WHERE "date"='october 15, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest amount of Laps that had a finish of 7 with a start of 6?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest amount of Laps that had a finish of 7 with a start of 6?`:
```sql
                SELECT MIN("laps") FROM "indy_500_results" WHERE "finish"='7' AND "start"='6';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest bronze with a Gold smaller than 3, and a Silver larger than 1, and a Rank of 6, and a Nation of hungary?`

### 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 smallest bronze with a Gold smaller than 3, and a Silver larger than 1, and a Rank of 6, and a Nation of hungary?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "gold"<3 AND "silver">1 AND "rank"=6 AND "nation"='hungary';
```
## Task
Generate a SQL query to answer the following question:
`What is the average bronze with a rank of 4 and less than 1 silver?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average bronze with a rank of 4 and less than 1 silver?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "rank"=4 AND "silver"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which silver has a Gold larger than 4, and a Rank of 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which silver has a Gold larger than 4, and a Rank of 1?`:
```sql
                SELECT "silver" FROM "medal_table" WHERE "gold">4 AND "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0?`

### 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 lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "total"=3 AND "nation"='hungary' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?`

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

CREATE TABLE "medal_table" (
  "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 have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "rank"=7 AND "bronze"=1 AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?`

### 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 Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver"<2 AND "nation"='ukraine' AND "gold"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which player played in 2007?`

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

CREATE TABLE "best_figures_in_an_innings" (
  "bowling" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player played in 2007?`:
```sql
                SELECT "player" FROM "best_figures_in_an_innings" WHERE "season"='2007';
```
## Task
Generate a SQL query to answer the following question:
`What was Min Patel's bowling?`

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

CREATE TABLE "best_figures_in_an_innings" (
  "bowling" text,
  "player" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Min Patel's bowling?`:
```sql
                SELECT "bowling" FROM "best_figures_in_an_innings" WHERE "player"='min patel';
```
## Task
Generate a SQL query to answer the following question:
`Who was the week 1 nomination when the week 2 nomination was Piia Jarkko?`

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

CREATE TABLE "table_of_nominations" (
  "week_1" text,
  "week_2" text,
  "week_6" text,
  "week_9" text,
  "week_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the week 1 nomination when the week 2 nomination was Piia Jarkko?`:
```sql
                SELECT "week_1" FROM "table_of_nominations" WHERE "week_2"='piia jarkko';
```
## Task
Generate a SQL query to answer the following question:
`Who was the week 12 nomination when the week 9 nomination walked (day 11)?`

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

CREATE TABLE "table_of_nominations" (
  "week_1" text,
  "week_2" text,
  "week_6" text,
  "week_9" text,
  "week_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the week 12 nomination when the week 9 nomination walked (day 11)?`:
```sql
                SELECT "week_12" FROM "table_of_nominations" WHERE "week_9"='walked (day 11)';
```
## Task
Generate a SQL query to answer the following question:
`What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?`

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

CREATE TABLE "table_of_nominations" (
  "week_1" text,
  "week_2" text,
  "week_6" text,
  "week_9" text,
  "week_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?`:
```sql
                SELECT "week_12" FROM "table_of_nominations" WHERE "week_1"='maria maxine' AND "week_2"='henri satu';
```
## Task
Generate a SQL query to answer the following question:
`Name the heightfor city of license of malone, ny`

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

CREATE TABLE "stations" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "facility_id" real,
  "erp_power_w" real,
  "height_m_ft" text,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the heightfor city of license of malone, ny`:
```sql
                SELECT "height_m_ft" FROM "stations" WHERE "city_of_license"='malone, ny';
```
## Task
Generate a SQL query to answer the following question:
`Name the class with call sign of wmhn`

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

CREATE TABLE "stations" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "facility_id" real,
  "erp_power_w" real,
  "height_m_ft" text,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class with call sign of wmhn`:
```sql
                SELECT "class" FROM "stations" WHERE "call_sign"='wmhn';
```
## Task
Generate a SQL query to answer the following question:
`Name the frequency with class of b`

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

CREATE TABLE "stations" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "facility_id" real,
  "erp_power_w" real,
  "height_m_ft" text,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the frequency with class of b`:
```sql
                SELECT "frequency" FROM "stations" WHERE "class"='b';
```
## Task
Generate a SQL query to answer the following question:
`Name the city of license with frequency of 90.1 fm`

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

CREATE TABLE "stations" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "facility_id" real,
  "erp_power_w" real,
  "height_m_ft" text,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city of license with frequency of 90.1 fm`:
```sql
                SELECT "city_of_license" FROM "stations" WHERE "frequency"='90.1 fm';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430`

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

CREATE TABLE "stations" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "facility_id" real,
  "erp_power_w" real,
  "height_m_ft" text,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430`:
```sql
                SELECT COUNT("erp_power_w") FROM "stations" WHERE "frequency"='89.3 fm' AND "facility_id"<40430;
```
## Task
Generate a SQL query to answer the following question:
`What is the Engine(s) that has  f Tyres in 1971?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "chassis" text,
  "engine_s" text,
  "tyres" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Engine(s) that has  f Tyres in 1971?`:
```sql
                SELECT "engine_s" FROM "complete_world_championship_formula_one_" WHERE "tyres"='f' AND "year"=1971;
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance on June 27?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on June 27?`:
```sql
                SELECT MIN("att") FROM "game_log" WHERE "date"='june 27';
```
## Task
Generate a SQL query to answer the following question:
`Name the surface for 12 september 2006`

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

CREATE TABLE "singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for 12 september 2006`:
```sql
                SELECT "surface" FROM "singles_titles" WHERE "date"='12 september 2006';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for opponent in the final being paul baccanello`

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

CREATE TABLE "singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for opponent in the final being paul baccanello`:
```sql
                SELECT "score" FROM "singles_titles" WHERE "opponent_in_the_final"='paul baccanello';
```
## Task
Generate a SQL query to answer the following question:
`Name the surface for 20 march 2007`

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

CREATE TABLE "singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for 20 march 2007`:
```sql
                SELECT "surface" FROM "singles_titles" WHERE "date"='20 march 2007';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for opponent in the final being ignasi villacampa`

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

CREATE TABLE "singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for opponent in the final being ignasi villacampa`:
```sql
                SELECT "date" FROM "singles_titles" WHERE "opponent_in_the_final"='ignasi villacampa';
```
## Task
Generate a SQL query to answer the following question:
`Name the tournament for grass surface and opponent in the final being paul baccanello`

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

CREATE TABLE "singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tournament for grass surface and opponent in the final being paul baccanello`:
```sql
                SELECT "tournament" FROM "singles_titles" WHERE "surface"='grass' AND "opponent_in_the_final"='paul baccanello';
```
## Task
Generate a SQL query to answer the following question:
`When is the earliest year in milan that guillermo vilas was champion?`

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

CREATE TABLE "singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the earliest year in milan that guillermo vilas was champion?`:
```sql
                SELECT MIN("year") FROM "singles" WHERE "location"='milan' AND "champion"='guillermo vilas';
```
## Task
Generate a SQL query to answer the following question:
`Where in 1985 was tim mayotte runner up?`

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

CREATE TABLE "singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where in 1985 was tim mayotte runner up?`:
```sql
                SELECT "location" FROM "singles" WHERE "year">1985 AND "runner_up"='tim mayotte';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when stefan edberg won after 1978?`

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

CREATE TABLE "singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when stefan edberg won after 1978?`:
```sql
                SELECT "score" FROM "singles" WHERE "year">1978 AND "champion"='stefan edberg';
```
## Task
Generate a SQL query to answer the following question:
`What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?`

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

CREATE TABLE "broadcast_translators_of_wpby" (
  "station" text,
  "city_of_license" text,
  "channel" text,
  "erp_k_w" real,
  "haat_m_ft" text,
  "facility_id" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?`:
```sql
                SELECT MAX("facility_id") FROM "broadcast_translators_of_wpby" WHERE "city_of_license"='wheeling' AND "erp_k_w"<4.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the City of license that has a ERP kW more than 4.5 and w23dr-d?`

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

CREATE TABLE "broadcast_translators_of_wpby" (
  "station" text,
  "city_of_license" text,
  "channel" text,
  "erp_k_w" real,
  "haat_m_ft" text,
  "facility_id" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the City of license that has a ERP kW more than 4.5 and w23dr-d?`:
```sql
                SELECT "city_of_license" FROM "broadcast_translators_of_wpby" WHERE "erp_k_w">4.5 AND "station"='w23dr-d';
```
## Task
Generate a SQL query to answer the following question:
`What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?`

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

CREATE TABLE "tower_remains" (
  "church_name" text,
  "location" text,
  "rebuilt" text,
  "date_of_demolition" real,
  "subsuming_parish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?`:
```sql
                SELECT "location" FROM "tower_remains" WHERE "date_of_demolition"=1940 AND "church_name"='christ church greyfriars';
```
## Task
Generate a SQL query to answer the following question:
`How many dates of demolition are located on Wood Street?`

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

CREATE TABLE "tower_remains" (
  "church_name" text,
  "location" text,
  "rebuilt" text,
  "date_of_demolition" real,
  "subsuming_parish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates of demolition are located on Wood Street?`:
```sql
                SELECT COUNT("date_of_demolition") FROM "tower_remains" WHERE "location"='wood street';
```
## Task
Generate a SQL query to answer the following question:
`What was Olga Govortsova's score when she played on a clay surface on 19 May 2008?`

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

CREATE TABLE "doubles_12_8_titles_4_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olga Govortsova's score when she played on a clay surface on 19 May 2008?`:
```sql
                SELECT "score" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='clay' AND "date"='19 may 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was Olga Govortsova's outcome when she played on a grass surface?`

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

CREATE TABLE "doubles_12_8_titles_4_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olga Govortsova's outcome when she played on a grass surface?`:
```sql
                SELECT "outcome" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='grass';
```
## Task
Generate a SQL query to answer the following question:
`What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012?`

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

CREATE TABLE "doubles_12_8_titles_4_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012?`:
```sql
                SELECT "score" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='clay' AND "date"='26 may 2012';
```
## Task
Generate a SQL query to answer the following question:
`Which mountain range has a rank of 19?`

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

CREATE TABLE "the_50_most_topographically_prominent_mo" (
  "rank" real,
  "mountain_peak" text,
  "province" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mountain range has a rank of 19?`:
```sql
                SELECT "mountain_range" FROM "the_50_most_topographically_prominent_mo" WHERE "rank"=19;
```
## Task
Generate a SQL query to answer the following question:
`Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain?`

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

CREATE TABLE "the_50_most_topographically_prominent_mo" (
  "rank" real,
  "mountain_peak" text,
  "province" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain?`:
```sql
                SELECT "location" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_range"='coast mountains' AND "rank"<18 AND "mountain_peak"='skihist mountain';
```
## Task
Generate a SQL query to answer the following question:
`Which mountain range includes Mount Hubbard?`

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

CREATE TABLE "the_50_most_topographically_prominent_mo" (
  "rank" real,
  "mountain_peak" text,
  "province" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mountain range includes Mount Hubbard?`:
```sql
                SELECT "mountain_range" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_peak"='mount hubbard';
```
## Task
Generate a SQL query to answer the following question:
`Which province includes Axel Heiberg Island?`

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

CREATE TABLE "the_50_most_topographically_prominent_mo" (
  "rank" real,
  "mountain_peak" text,
  "province" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province includes Axel Heiberg Island?`:
```sql
                SELECT "province" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_range"='axel heiberg island';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes of events that finished in 12th position?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes of events that finished in 12th position?`:
```sql
                SELECT "notes" FROM "achievements" WHERE "position"='12th';
```
## Task
Generate a SQL query to answer the following question:
`Which venue was finished in 2nd position in 1985?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue was finished in 2nd position in 1985?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "position"='2nd' AND "year"=1985;
```
## Task
Generate a SQL query to answer the following question:
`What is the average year of events that took place in Antwerp, Belgium?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year of events that took place in Antwerp, Belgium?`:
```sql
                SELECT AVG("year") FROM "achievements" WHERE "venue"='antwerp, belgium';
```
## Task
Generate a SQL query to answer the following question:
`What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes?`:
```sql
                SELECT MAX("year") FROM "achievements" WHERE "notes"='team competition' AND "venue"='antwerp, belgium';
```
## Task
Generate a SQL query to answer the following question:
`What was the label's format LP and catalog of CH-9192?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" real,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the label's format LP and catalog of CH-9192?`:
```sql
                SELECT "label" FROM "release_history" WHERE "format"='lp' AND "catalog"='ch-9192';
```
## Task
Generate a SQL query to answer the following question:
`When was Catalog CHD-9192 published?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" real,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Catalog CHD-9192 published?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='chd-9192';
```
## Task
Generate a SQL query to answer the following question:
`I need the FCC info on the radio Frequency MHz 107.5?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `I need the FCC info on the radio Frequency MHz 107.5?`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"=107.5;
```
## Task
Generate a SQL query to answer the following question:
`Give me the MHz Frequency of Allapattah, Florida.`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Give me the MHz Frequency of Allapattah, Florida.`:
```sql
                SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='allapattah, florida';
```
## Task
Generate a SQL query to answer the following question:
`What class does the w298ak sign belong to?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class does the w298ak sign belong to?`:
```sql
                SELECT "class" FROM "translators" WHERE "call_sign"='w298ak';
```
## Task
Generate a SQL query to answer the following question:
`What class is ERP W of 800?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class is ERP W of 800?`:
```sql
                SELECT "class" FROM "translators" WHERE "erp_w"=800;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?`

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

CREATE TABLE "apertura_2002_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?`:
```sql
                SELECT SUM("goals_conceded") FROM "apertura_2002_standings" WHERE "points"<21 AND "lost"<8;
```
## Task
Generate a SQL query to answer the following question:
`What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1?`

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

CREATE TABLE "apertura_2002_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1?`:
```sql
                SELECT SUM("lost") FROM "apertura_2002_standings" WHERE "points">28 AND "draw"=5 AND "place"<1;
```
## Task
Generate a SQL query to answer the following question:
`What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?`

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

CREATE TABLE "apertura_2002_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?`:
```sql
                SELECT SUM("goals_scored") FROM "apertura_2002_standings" WHERE "points"<27 AND "team"='c.d. atlético balboa';
```
## Task
Generate a SQL query to answer the following question:
`What is listed as the Highest Played and that has a Place that is larger than 10?`

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

CREATE TABLE "apertura_2002_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed as the Highest Played and that has a Place that is larger than 10?`:
```sql
                SELECT MAX("played") FROM "apertura_2002_standings" WHERE "place">10;
```
## Task
Generate a SQL query to answer the following question:
`What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?`

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

CREATE TABLE "apertura_2002_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?`:
```sql
                SELECT MAX("played") FROM "apertura_2002_standings" WHERE "points"=17 AND "draw"<5;
```
## Task
Generate a SQL query to answer the following question:
`When was the game that ended with a score of 6-4?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game that ended with a score of 6-4?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='6-4';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on April 8?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on April 8?`:
```sql
                SELECT "score" FROM "april" WHERE "date"='april 8';
```
## Task
Generate a SQL query to answer the following question:
`What was the decision in Minnesota?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the decision in Minnesota?`:
```sql
                SELECT "decision" FROM "april" WHERE "home"='minnesota';
```
## Task
Generate a SQL query to answer the following question:
`Which score has a record of 58–15–8?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has a record of 58–15–8?`:
```sql
                SELECT "score" FROM "april" WHERE "record"='58–15–8';
```
## Task
Generate a SQL query to answer the following question:
`Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?`

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

CREATE TABLE "season_to_season" (
  "season" text,
  "level" text,
  "division" text,
  "section" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?`:
```sql
                SELECT "section" FROM "season_to_season" WHERE "level"='tier 3' AND "position"='6th' AND "season"='1937-38';
```