cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the visitor for detroit on february 24`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the visitor for detroit on february 24`:
```sql
                SELECT "visitor" FROM "february" WHERE "home"='detroit' AND "date"='february 24';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest listed year for the partner of Marcel Granollers and a hard surface?`

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

CREATE TABLE "doubles_5_3_titles_2_runners_up" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest listed year for the partner of Marcel Granollers and a hard surface?`:
```sql
                SELECT MAX("year") FROM "doubles_5_3_titles_2_runners_up" WHERE "partner"='marcel granollers' AND "surface"='hard';
```
## Task
Generate a SQL query to answer the following question:
`What is the listed surface for the Championship of Toronto that had a runner-up outcome?`

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

CREATE TABLE "doubles_5_3_titles_2_runners_up" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the listed surface for the Championship of Toronto that had a runner-up outcome?`:
```sql
                SELECT "surface" FROM "doubles_5_3_titles_2_runners_up" WHERE "outcome"='runner-up' AND "championship"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`What time was the game during 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,
  "location" text,
  "time_et" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was the game during week 5?`:
```sql
                SELECT "time_et" FROM "schedule" WHERE "week"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which City has a Series of Tamra's oc wedding?`

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

CREATE TABLE "spin_offs" (
  "series" text,
  "premiere_date" text,
  "no_of_seasons" real,
  "city" text,
  "starring" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Series of Tamra's oc wedding?`:
```sql
                SELECT "city" FROM "spin_offs" WHERE "series"='tamra''s oc wedding';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of borough councilors from Brompton?`

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

CREATE TABLE "list_of_sherbrooke_boroughs" (
  "borough" text,
  "components" text,
  "population" real,
  "number_of_borough_councilors" real,
  "number_of_municipal_councilors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of borough councilors from Brompton?`:
```sql
                SELECT AVG("number_of_borough_councilors") FROM "list_of_sherbrooke_boroughs" WHERE "borough"='brompton';
```
## Task
Generate a SQL query to answer the following question:
`Which components have a borough of Lennoxville and borough councilors under 4?`

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

CREATE TABLE "list_of_sherbrooke_boroughs" (
  "borough" text,
  "components" text,
  "population" real,
  "number_of_borough_councilors" real,
  "number_of_municipal_councilors" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which components have a borough of Lennoxville and borough councilors under 4?`:
```sql
                SELECT "components" FROM "list_of_sherbrooke_boroughs" WHERE "number_of_borough_councilors"<4 AND "borough"='lennoxville';
```
## Task
Generate a SQL query to answer the following question:
`5 November 2010 of dragon oil 4.02% has what average Date?`

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

CREATE TABLE "constituents" (
  "date" real,
  "2_january_2007" text,
  "19_october_2009" text,
  "5_november_2010" text,
  "16_december_2011" text,
  "30_march_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `5 November 2010 of dragon oil 4.02% has what average Date?`:
```sql
                SELECT AVG("date") FROM "constituents" WHERE "5_november_2010"='dragon oil 4.02%';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points for a difference of 55 and an against less than 47?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of points for a difference of 55 and an against less than 47?`:
```sql
                SELECT AVG("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "difference"='55' AND "against"<47;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest lost that has an against greater than 60, points less than 61 and an 18 drawn?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lost that has an against greater than 60, points less than 61 and an 18 drawn?`:
```sql
                SELECT MAX("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "against">60 AND "points"<61 AND "drawn">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Historic House of the 18th Century?`

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

CREATE TABLE "midlothian" (
  "name" text,
  "type" text,
  "date" text,
  "condition" text,
  "ownership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the Historic House of the 18th Century?`:
```sql
                SELECT "name" FROM "midlothian" WHERE "type"='historic house' AND "date"='18th century';
```
## Task
Generate a SQL query to answer the following question:
`What is the Type of castle from the 14th Century which Condition is preserved?`

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

CREATE TABLE "midlothian" (
  "name" text,
  "type" text,
  "date" text,
  "condition" text,
  "ownership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Type of castle from the 14th Century which Condition is preserved?`:
```sql
                SELECT "type" FROM "midlothian" WHERE "date"='14th century' AND "condition"='preserved';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the private Castle of the 16th century which is occupied?`

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

CREATE TABLE "midlothian" (
  "name" text,
  "type" text,
  "date" text,
  "condition" text,
  "ownership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the private Castle of the 16th century which is occupied?`:
```sql
                SELECT "name" FROM "midlothian" WHERE "ownership"='private' AND "condition"='occupied' AND "date"='16th century';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the castle with a Historic Scotland Ownership?`

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

CREATE TABLE "midlothian" (
  "name" text,
  "type" text,
  "date" text,
  "condition" text,
  "ownership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the castle with a Historic Scotland Ownership?`:
```sql
                SELECT "date" FROM "midlothian" WHERE "ownership"='historic scotland';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Fortified House?`

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

CREATE TABLE "midlothian" (
  "name" text,
  "type" text,
  "date" text,
  "condition" text,
  "ownership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Fortified House?`:
```sql
                SELECT "date" FROM "midlothian" WHERE "type"='fortified house';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Courtyard Castle?`

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

CREATE TABLE "midlothian" (
  "name" text,
  "type" text,
  "date" text,
  "condition" text,
  "ownership" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Courtyard Castle?`:
```sql
                SELECT "date" FROM "midlothian" WHERE "type"='courtyard castle';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest lost that has 6 for points?`

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

CREATE TABLE "group_1" (
  "games" real,
  "drawn" real,
  "lost" real,
  "goal_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lost that has 6 for points?`:
```sql
                SELECT MAX("lost") FROM "group_1" WHERE "points"=6;
```
## Task
Generate a SQL query to answer the following question:
`How many losses have points less than 3, with a drawn greater than 0?`

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

CREATE TABLE "group_1" (
  "games" real,
  "drawn" real,
  "lost" real,
  "goal_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have points less than 3, with a drawn greater than 0?`:
```sql
                SELECT SUM("lost") FROM "group_1" WHERE "points"<3 AND "drawn">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Margin of victory has a Runner(s)-up of buddy gardner?`

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

CREATE TABLE "pga_tour_wins_15" (
  "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 Margin of victory has a Runner(s)-up of buddy gardner?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_15" WHERE "runner_s_up"='buddy gardner';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Winning score of –14 (66-64-68-68=266)?`

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

CREATE TABLE "pga_tour_wins_15" (
  "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 has a Winning score of –14 (66-64-68-68=266)?`:
```sql
                SELECT "date" FROM "pga_tour_wins_15" WHERE "winning_score"='–14 (66-64-68-68=266)';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Winning score of e (72-69-71-68=280)?`

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

CREATE TABLE "pga_tour_wins_15" (
  "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 Tournament has a Winning score of e (72-69-71-68=280)?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_15" WHERE "winning_score"='e (72-69-71-68=280)';
```
## Task
Generate a SQL query to answer the following question:
`Which Margin of victory has a Runner(s)-up of dave barr?`

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

CREATE TABLE "pga_tour_wins_15" (
  "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 Margin of victory has a Runner(s)-up of dave barr?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_15" WHERE "runner_s_up"='dave barr';
```
## Task
Generate a SQL query to answer the following question:
`Which Margin of victory has a Runner(s)-up of mark o'meara?`

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

CREATE TABLE "pga_tour_wins_15" (
  "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 Margin of victory has a Runner(s)-up of mark o'meara?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_15" WHERE "runner_s_up"='mark o''meara';
```
## Task
Generate a SQL query to answer the following question:
`In round 9 what was the nationality?`

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

CREATE TABLE "draft_picks" (
  "round" text,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `In round 9 what was the nationality?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "round"='9';
```
## Task
Generate a SQL query to answer the following question:
`In round 3 what was the position?`

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

CREATE TABLE "draft_picks" (
  "round" text,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `In round 3 what was the position?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "round"='3';
```
## Task
Generate a SQL query to answer the following question:
`Who has a nationality of Czech Republic and a position of right wing?`

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

CREATE TABLE "draft_picks" (
  "round" text,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a nationality of Czech Republic and a position of right wing?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "position"='right wing' AND "nationality"='czech republic';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11?`

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

CREATE TABLE "won_lost_records" (
  "quarterback" text,
  "uniform_no_s" real,
  "games_started" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "winning_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11?`:
```sql
                SELECT MAX("winning_pct") FROM "won_lost_records" WHERE "losses">4 AND "ties"<2 AND "games_started">11 AND "wins"<22;
```
## Task
Generate a SQL query to answer the following question:
`Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold?`

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

CREATE TABLE "titles_by_country" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold?`:
```sql
                SELECT COUNT("gold") FROM "titles_by_country" WHERE "rank"='6' AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`Total of 5 had what bronze?`

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

CREATE TABLE "titles_by_country" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Total of 5 had what bronze?`:
```sql
                SELECT "bronze" FROM "titles_by_country" WHERE "total"=5;
```
## Task
Generate a SQL query to answer the following question:
`In which tournament did he place 20th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which tournament did he place 20th?`:
```sql
                SELECT "tournament" FROM "achievements" WHERE "result"='20th';
```
## Task
Generate a SQL query to answer the following question:
`What the result for the hypo-meeting tournament in 1994?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the result for the hypo-meeting tournament in 1994?`:
```sql
                SELECT "result" FROM "achievements" WHERE "year"=1994 AND "tournament"='hypo-meeting';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in 1995?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in 1995?`:
```sql
                SELECT "result" FROM "achievements" WHERE "year"=1995;
```
## Task
Generate a SQL query to answer the following question:
`After March 19, what's the score of game 67?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `After March 19, what's the score of game 67?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "march">19 AND "game"=67;
```
## Task
Generate a SQL query to answer the following question:
`Who is the head linesman of the game on 1 February 2009?`

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

CREATE TABLE "nfl_championships" (
  "game" text,
  "date" text,
  "referee" text,
  "umpire" text,
  "head_linesman" text,
  "line_judge" text,
  "field_judge" text,
  "back_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head linesman of the game on 1 February 2009?`:
```sql
                SELECT "head_linesman" FROM "nfl_championships" WHERE "date"='1 february 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge?`

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

CREATE TABLE "nfl_championships" (
  "game" text,
  "date" text,
  "referee" text,
  "umpire" text,
  "head_linesman" text,
  "line_judge" text,
  "field_judge" text,
  "back_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge?`:
```sql
                SELECT "date" FROM "nfl_championships" WHERE "line_judge"='bob beeks' AND "head_linesman"='jerry bergman' AND "back_judge"='paul baetz';
```
## Task
Generate a SQL query to answer the following question:
`Which game was on 14 January 1973?`

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

CREATE TABLE "nfl_championships" (
  "game" text,
  "date" text,
  "referee" text,
  "umpire" text,
  "head_linesman" text,
  "line_judge" text,
  "field_judge" text,
  "back_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game was on 14 January 1973?`:
```sql
                SELECT "game" FROM "nfl_championships" WHERE "date"='14 january 1973';
```
## Task
Generate a SQL query to answer the following question:
`Who was the line judge at the game where Scott Green was referee?`

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

CREATE TABLE "nfl_championships" (
  "game" text,
  "date" text,
  "referee" text,
  "umpire" text,
  "head_linesman" text,
  "line_judge" text,
  "field_judge" text,
  "back_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the line judge at the game where Scott Green was referee?`:
```sql
                SELECT "line_judge" FROM "nfl_championships" WHERE "referee"='scott green';
```
## Task
Generate a SQL query to answer the following question:
`Who is the head linesman at game xxxv?`

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

CREATE TABLE "nfl_championships" (
  "game" text,
  "date" text,
  "referee" text,
  "umpire" text,
  "head_linesman" text,
  "line_judge" text,
  "field_judge" text,
  "back_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head linesman at game xxxv?`:
```sql
                SELECT "head_linesman" FROM "nfl_championships" WHERE "game"='xxxv';
```
## Task
Generate a SQL query to answer the following question:
`What game had Al Jury as field judge?`

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

CREATE TABLE "nfl_championships" (
  "game" text,
  "date" text,
  "referee" text,
  "umpire" text,
  "head_linesman" text,
  "line_judge" text,
  "field_judge" text,
  "back_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game had Al Jury as field judge?`:
```sql
                SELECT "game" FROM "nfl_championships" WHERE "field_judge"='al jury';
```
## Task
Generate a SQL query to answer the following question:
`What's listed for Departure that has 1676 listed for the Kilometers?`

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

CREATE TABLE "running_timetables" (
  "station_code" text,
  "station" text,
  "arrival" text,
  "departure" text,
  "kilometers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's listed for Departure that has 1676 listed for the Kilometers?`:
```sql
                SELECT "departure" FROM "running_timetables" WHERE "kilometers"=1676;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Kilometers that has a Station Code of KGQ?`

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

CREATE TABLE "running_timetables" (
  "station_code" text,
  "station" text,
  "arrival" text,
  "departure" text,
  "kilometers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Kilometers that has a Station Code of KGQ?`:
```sql
                SELECT COUNT("kilometers") FROM "running_timetables" WHERE "station_code"='kgq';
```
## Task
Generate a SQL query to answer the following question:
`What's the Kilometers listed that also has the Station Code of Kuda?`

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

CREATE TABLE "running_timetables" (
  "station_code" text,
  "station" text,
  "arrival" text,
  "departure" text,
  "kilometers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Kilometers listed that also has the Station Code of Kuda?`:
```sql
                SELECT "kilometers" FROM "running_timetables" WHERE "station_code"='kuda';
```
## Task
Generate a SQL query to answer the following question:
`What's listed for the Station Code that has the Arrival of 02:20?`

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

CREATE TABLE "running_timetables" (
  "station_code" text,
  "station" text,
  "arrival" text,
  "departure" text,
  "kilometers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's listed for the Station Code that has the Arrival of 02:20?`:
```sql
                SELECT "station_code" FROM "running_timetables" WHERE "arrival"='02:20';
```
## Task
Generate a SQL query to answer the following question:
`What is listede for Departure that also has a Station Code of CLT?`

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

CREATE TABLE "running_timetables" (
  "station_code" text,
  "station" text,
  "arrival" text,
  "departure" text,
  "kilometers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listede for Departure that also has a Station Code of CLT?`:
```sql
                SELECT "departure" FROM "running_timetables" WHERE "station_code"='clt';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest area with 45 population?`

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

CREATE TABLE "islands_under_square_miles_km" (
  "island_s_name" text,
  "area_sq_mi" real,
  "area_km_2" real,
  "location" text,
  "population_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest area with 45 population?`:
```sql
                SELECT MIN("area_km_2") FROM "islands_under_square_miles_km" WHERE "population_2000"='45';
```
## Task
Generate a SQL query to answer the following question:
`What is the area located in Rhode Island with more than 38 sq mi area?`

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

CREATE TABLE "islands_under_square_miles_km" (
  "island_s_name" text,
  "area_sq_mi" real,
  "area_km_2" real,
  "location" text,
  "population_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area located in Rhode Island with more than 38 sq mi area?`:
```sql
                SELECT AVG("area_km_2") FROM "islands_under_square_miles_km" WHERE "location"='rhode island' AND "area_sq_mi">38;
```
## Task
Generate a SQL query to answer the following question:
`What is the average area in New York that is larger than 55 sq mi?`

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

CREATE TABLE "islands_under_square_miles_km" (
  "island_s_name" text,
  "area_sq_mi" real,
  "area_km_2" real,
  "location" text,
  "population_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average area in New York that is larger than 55 sq mi?`:
```sql
                SELECT AVG("area_km_2") FROM "islands_under_square_miles_km" WHERE "area_sq_mi">55 AND "location"='new york';
```
## Task
Generate a SQL query to answer the following question:
`Which event was in Tokyo, Japan and had an opponent of rumina sato?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event was in Tokyo, Japan and had an opponent of rumina sato?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "location"='tokyo, japan' AND "opponent"='rumina sato';
```
## Task
Generate a SQL query to answer the following question:
`Which round was 2:30?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round was 2:30?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='2:30';
```
## Task
Generate a SQL query to answer the following question:
`Which event had the opponent of shinya aoki and was at 4:56?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event had the opponent of shinya aoki and was at 4:56?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='shinya aoki' AND "time"='4:56';
```
## Task
Generate a SQL query to answer the following question:
`Which method did pride bushido 10 have ?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which method did pride bushido 10 have ?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='pride bushido 10';
```
## Task
Generate a SQL query to answer the following question:
`Which 2008–09 has an Event of autumn gold?`

### 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,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2008–09 has an Event of autumn gold?`:
```sql
                SELECT "2008_09" FROM "grand_slam_record" WHERE "event"='autumn gold';
```
## Task
Generate a SQL query to answer the following question:
`Which 2009–10 has a 2012–13 of r16?`

### 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,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2009–10 has a 2012–13 of r16?`:
```sql
                SELECT "2009_10" FROM "grand_slam_record" WHERE "2012_13"='r16';
```
## Task
Generate a SQL query to answer the following question:
`Which 2008–09 has a 2012–13 of q, and a 2006–07 of q, and a 2007–08 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,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2008–09 has a 2012–13 of q, and a 2006–07 of q, and a 2007–08 of qf?`:
```sql
                SELECT "2008_09" FROM "grand_slam_record" WHERE "2012_13"='q' AND "2006_07"='q' AND "2007_08"='qf';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007–08 has a 2009–10 of dnp?`

### 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,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007–08 has a 2009–10 of dnp?`:
```sql
                SELECT "2007_08" FROM "grand_slam_record" WHERE "2009_10"='dnp';
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn has a Team of internacional-sp?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn has a Team of internacional-sp?`:
```sql
                SELECT SUM("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "team"='internacional-sp';
```
## Task
Generate a SQL query to answer the following question:
`How much Lost has a Drawn larger than 5, and a Played larger than 18?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Lost has a Drawn larger than 5, and a Played larger than 18?`:
```sql
                SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "drawn">5 AND "played">18;
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn is the highest one that has a Played smaller than 18?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn is the highest one that has a Played smaller than 18?`:
```sql
                SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "played"<18;
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9?`:
```sql
                SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "against">15 AND "points"<15 AND "lost"<9;
```
## Task
Generate a SQL query to answer the following question:
`What's the least amount of floors at 921 sw sixth avenue?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_feet_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the least amount of floors at 921 sw sixth avenue?`:
```sql
                SELECT MIN("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='921 sw sixth avenue';
```
## Task
Generate a SQL query to answer the following question:
`What's the address of the union bank of California tower?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_feet_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the address of the union bank of California tower?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='union bank of california tower';
```
## Task
Generate a SQL query to answer the following question:
`What were the years that the building at 200 sw harrison was considered to be the tallest building?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_feet_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the years that the building at 200 sw harrison was considered to be the tallest building?`:
```sql
                SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "street_address"='200 sw harrison';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest position with less than 7 points piloted by Didier Hauss?`

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

CREATE TABLE "overall_results" (
  "position" real,
  "pilot" text,
  "country" text,
  "glider" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest position with less than 7 points piloted by Didier Hauss?`:
```sql
                SELECT MIN("position") FROM "overall_results" WHERE "points"<7 AND "pilot"='didier hauss';
```
## Task
Generate a SQL query to answer the following question:
`During what Season was the Final Venue at Sandy Lane with Kiveton Park as the Winner?`

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

CREATE TABLE "list_of_finals" (
  "season" text,
  "winner" text,
  "result" text,
  "runner_up" text,
  "final_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `During what Season was the Final Venue at Sandy Lane with Kiveton Park as the Winner?`:
```sql
                SELECT "season" FROM "list_of_finals" WHERE "winner"='kiveton park' AND "final_venue"='sandy lane';
```
## Task
Generate a SQL query to answer the following question:
`What was the Runner-up during the 2005-06 Season with Kiveton Park as the Winner?`

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

CREATE TABLE "list_of_finals" (
  "season" text,
  "winner" text,
  "result" text,
  "runner_up" text,
  "final_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Runner-up during the 2005-06 Season with Kiveton Park as the Winner?`:
```sql
                SELECT "runner_up" FROM "list_of_finals" WHERE "winner"='kiveton park' AND "season"='2005-06';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result in Green Lane with Kirkburton as the Runner-up?`

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

CREATE TABLE "list_of_finals" (
  "season" text,
  "winner" text,
  "result" text,
  "runner_up" text,
  "final_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result in Green Lane with Kirkburton as the Runner-up?`:
```sql
                SELECT "result" FROM "list_of_finals" WHERE "runner_up"='kirkburton' AND "final_venue"='green lane';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result in the 2005-06 Season?`

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

CREATE TABLE "list_of_finals" (
  "season" text,
  "winner" text,
  "result" text,
  "runner_up" text,
  "final_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result in the 2005-06 Season?`:
```sql
                SELECT "result" FROM "list_of_finals" WHERE "season"='2005-06';
```
## Task
Generate a SQL query to answer the following question:
`What was the Final Venue having Sheffield Reserves as the Winner?`

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

CREATE TABLE "list_of_finals" (
  "season" text,
  "winner" text,
  "result" text,
  "runner_up" text,
  "final_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Final Venue having Sheffield Reserves as the Winner?`:
```sql
                SELECT "final_venue" FROM "list_of_finals" WHERE "winner"='sheffield reserves';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Round that has a Time of 6:04?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Round that has a Time of 6:04?`:
```sql
                SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "time"='6:04';
```
## Task
Generate a SQL query to answer the following question:
`What Round has the Method of Submission (Single Wing Choke)?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Round has the Method of Submission (Single Wing Choke)?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "method"='submission (single wing choke)';
```
## Task
Generate a SQL query to answer the following question:
`Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?`

### 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 `Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?`:
```sql
                SELECT "class" FROM "translators" WHERE "frequency_m_hz">91.5 AND "city_of_license"='hyannis, nebraska';
```
## Task
Generate a SQL query to answer the following question:
`Which Class has a ERP W larger than 205, and a Frequency MHz smaller than 93.9, and a Call sign of k210cb?`

### 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 `Which Class has a ERP W larger than 205, and a Frequency MHz smaller than 93.9, and a Call sign of k210cb?`:
```sql
                SELECT "class" FROM "translators" WHERE "erp_w">205 AND "frequency_m_hz"<93.9 AND "call_sign"='k210cb';
```
## Task
Generate a SQL query to answer the following question:
`Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?`

### 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 `Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?`:
```sql
                SELECT MAX("frequency_m_hz") FROM "translators" WHERE "erp_w">205 AND "call_sign"='k230ap';
```
## Task
Generate a SQL query to answer the following question:
`Which Frequency MHz has a ERP W of 250?`

### 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 `Which Frequency MHz has a ERP W of 250?`:
```sql
                SELECT MAX("frequency_m_hz") FROM "translators" WHERE "erp_w"=250;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of game 81?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of game 81?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=81;
```
## Task
Generate a SQL query to answer the following question:
`WHich Surface has an Opponent of gustavo kuerten?`

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

CREATE TABLE "singles_13_6_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Surface has an Opponent of gustavo kuerten?`:
```sql
                SELECT "surface" FROM "singles_13_6_7" WHERE "opponent"='gustavo kuerten';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Tournament of st. petersburg , russia?`

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

CREATE TABLE "singles_13_6_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Tournament of st. petersburg , russia?`:
```sql
                SELECT "surface" FROM "singles_13_6_7" WHERE "tournament"='st. petersburg , russia';
```
## Task
Generate a SQL query to answer the following question:
`When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken?`

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

CREATE TABLE "singles_13_6_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken?`:
```sql
                SELECT "date" FROM "singles_13_6_7" WHERE "surface"='hard (i)' AND "tournament"='brighton , united kingdom';
```