cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that had a loss of Risley (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" real,
  "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 Risley (0-1)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "loss"='risley (0-1)';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when the record was 70-74?`

### 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 `What was the date of the game when the record was 70-74?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='70-74';
```
## Task
Generate a SQL query to answer the following question:
`What player was moving from manchester united?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was moving from manchester united?`:
```sql
                SELECT "name" FROM "in" WHERE "moving_from"='manchester united';
```
## Task
Generate a SQL query to answer the following question:
`What player costs £210k to transfer?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player costs £210k to transfer?`:
```sql
                SELECT "name" FROM "in" WHERE "transfer_fee"='£210k';
```
## Task
Generate a SQL query to answer the following question:
`Who is moving during winter from wal?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is moving during winter from wal?`:
```sql
                SELECT "moving_from" FROM "in" WHERE "transfer_window"='winter' AND "country"='wal';
```
## Task
Generate a SQL query to answer the following question:
`Which original artist has a Episode of workshop #1?`

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

CREATE TABLE "performances_results" (
  "episode" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which original artist has a Episode of workshop #1?`:
```sql
                SELECT "original_artist" FROM "performances_results" WHERE "episode"='workshop #1';
```
## Task
Generate a SQL query to answer the following question:
`Which theme has a Episode of top 6?`

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

CREATE TABLE "performances_results" (
  "episode" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which theme has a Episode of top 6?`:
```sql
                SELECT "theme" FROM "performances_results" WHERE "episode"='top 6';
```
## Task
Generate a SQL query to answer the following question:
`Which Theme has a Order # of 9?`

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

CREATE TABLE "performances_results" (
  "episode" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Theme has a Order # of 9?`:
```sql
                SELECT "theme" FROM "performances_results" WHERE "order_num"='9';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on August 19?`

### 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,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on August 19?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='august 19';
```
## Task
Generate a SQL query to answer the following question:
`Where the time is 2:46, what is the record?`

### 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,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the time is 2:46, what is the record?`:
```sql
                SELECT "record" FROM "game_log" WHERE "time"='2:46';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date, when the home team is the NY Rangers?`

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

CREATE TABLE "october" (
  "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 is the Date, when the home team is the NY Rangers?`:
```sql
                SELECT "date" FROM "october" WHERE "home"='ny rangers';
```
## Task
Generate a SQL query to answer the following question:
`Power of 220kw (299hp) @ 4000 has what torque?`

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

CREATE TABLE "variants" (
  "engine" text,
  "displacement" text,
  "power" text,
  "torque" text,
  "redline" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Power of 220kw (299hp) @ 4000 has what torque?`:
```sql
                SELECT "torque" FROM "variants" WHERE "power"='220kw (299hp) @ 4000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002?`

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

CREATE TABLE "variants" (
  "engine" text,
  "displacement" text,
  "power" text,
  "torque" text,
  "redline" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002?`:
```sql
                SELECT "displacement" FROM "variants" WHERE "year">2002 AND "power"='220kw (299hp) @ 4000';
```
## Task
Generate a SQL query to answer the following question:
`Displacement of 4.4l (4423cc/269in³) and a Power of 220kw (299hp) @ 4000 belongs to what engine?`

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

CREATE TABLE "variants" (
  "engine" text,
  "displacement" text,
  "power" text,
  "torque" text,
  "redline" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Displacement of 4.4l (4423cc/269in³) and a Power of 220kw (299hp) @ 4000 belongs to what engine?`:
```sql
                SELECT "engine" FROM "variants" WHERE "displacement"='4.4l (4423cc/269in³)' AND "power"='220kw (299hp) @ 4000';
```
## Task
Generate a SQL query to answer the following question:
`What week was the Original artist, the police ?`

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

CREATE TABLE "performances_results" (
  "week" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the Original artist, the police ?`:
```sql
                SELECT "week" FROM "performances_results" WHERE "original_artist"='the police';
```
## Task
Generate a SQL query to answer the following question:
`Which song garnered an advanced result during top 20 week ?`

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

CREATE TABLE "performances_results" (
  "week" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which song garnered an advanced result during top 20 week ?`:
```sql
                SELECT "song_choice" FROM "performances_results" WHERE "result"='advanced' AND "week"='top 20';
```
## Task
Generate a SQL query to answer the following question:
`Which Malaysia Satellite tournaments were played after 1998?`

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

CREATE TABLE "finals_14_9_titles_5_runners_up" (
  "outcome" text,
  "year" real,
  "tournament" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Malaysia Satellite tournaments were played after 1998?`:
```sql
                SELECT "outcome" FROM "finals_14_9_titles_5_runners_up" WHERE "year">1998 AND "tournament"='malaysia satellite';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up for the Bulgaria Open, before 2007?`

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

CREATE TABLE "finals_14_9_titles_5_runners_up" (
  "outcome" text,
  "year" real,
  "tournament" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up for the Bulgaria Open, before 2007?`:
```sql
                SELECT "score" FROM "finals_14_9_titles_5_runners_up" WHERE "year"<2007 AND "outcome"='runner-up' AND "tournament"='bulgaria open';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the player who played against Wong Choong Hann in the Dutch Open?`

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

CREATE TABLE "finals_14_9_titles_5_runners_up" (
  "outcome" text,
  "year" real,
  "tournament" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the player who played against Wong Choong Hann in the Dutch Open?`:
```sql
                SELECT "score" FROM "finals_14_9_titles_5_runners_up" WHERE "tournament"='dutch open' AND "opponent"='wong choong hann';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open?`

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

CREATE TABLE "finals_14_9_titles_5_runners_up" (
  "outcome" text,
  "year" real,
  "tournament" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open?`:
```sql
                SELECT "outcome" FROM "finals_14_9_titles_5_runners_up" WHERE "opponent"='nguyen tien minh' AND "tournament"='bulgaria open';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score when the New York Jets were the Visiting Team?`

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

CREATE TABLE "1989" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score when the New York Jets were the Visiting Team?`:
```sql
                SELECT "final_score" FROM "1989" WHERE "visiting_team"='new york jets';
```
## Task
Generate a SQL query to answer the following question:
`When were the Cleveland Browns the visiting team?`

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

CREATE TABLE "1989" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `When were the Cleveland Browns the visiting team?`:
```sql
                SELECT "date" FROM "1989" WHERE "visiting_team"='cleveland browns';
```
## Task
Generate a SQL query to answer the following question:
`Where were the New York Jets visiting?`

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

CREATE TABLE "1989" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where were the New York Jets visiting?`:
```sql
                SELECT "stadium" FROM "1989" WHERE "visiting_team"='new york jets';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score in Robert F. Kennedy Memorial Stadium?`

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

CREATE TABLE "1989" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score in Robert F. Kennedy Memorial Stadium?`:
```sql
                SELECT "final_score" FROM "1989" WHERE "stadium"='robert f. kennedy memorial stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the visiting team on November 12?`

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

CREATE TABLE "1989" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the visiting team on November 12?`:
```sql
                SELECT "visiting_team" FROM "1989" WHERE "date"='november 12';
```
## Task
Generate a SQL query to answer the following question:
`In what stadium were the New England Patriots the visiting team?`

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

CREATE TABLE "1989" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what stadium were the New England Patriots the visiting team?`:
```sql
                SELECT "stadium" FROM "1989" WHERE "visiting_team"='new england patriots';
```
## Task
Generate a SQL query to answer the following question:
`If the games played are smaller than 18, what are the lowest goals conceded?`

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

CREATE TABLE "league_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 `If the games played are smaller than 18, what are the lowest goals conceded?`:
```sql
                SELECT MIN("goals_conceded") FROM "league_standings" WHERE "played"<18;
```
## Task
Generate a SQL query to answer the following question:
`If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded?`

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

CREATE TABLE "league_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 `If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded?`:
```sql
                SELECT COUNT("goals_conceded") FROM "league_standings" WHERE "place"<8 AND "played">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the place that has less than 2 losses?`

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

CREATE TABLE "league_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 sum of the place that has less than 2 losses?`:
```sql
                SELECT SUM("place") FROM "league_standings" WHERE "lost"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the aspect ration when the max fps HDRx is 80?`

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

CREATE TABLE "epic_m_and_epic_x" (
  "frame_size" text,
  "width" real,
  "height" real,
  "mpix" real,
  "aspect_ratio" text,
  "max_fps" real,
  "max_fps_hd_rx" real,
  "lowest_possible_redcode_at_24_fps" text,
  "lowest_possible_redcode_at_max_fps" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aspect ration when the max fps HDRx is 80?`:
```sql
                SELECT "aspect_ratio" FROM "epic_m_and_epic_x" WHERE "max_fps_hd_rx"=80;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest width for a frame size of 5k and a height shorter than 2700?`

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

CREATE TABLE "epic_m_and_epic_x" (
  "frame_size" text,
  "width" real,
  "height" real,
  "mpix" real,
  "aspect_ratio" text,
  "max_fps" real,
  "max_fps_hd_rx" real,
  "lowest_possible_redcode_at_24_fps" text,
  "lowest_possible_redcode_at_max_fps" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest width for a frame size of 5k and a height shorter than 2700?`:
```sql
                SELECT MIN("width") FROM "epic_m_and_epic_x" WHERE "frame_size"='5k' AND "height"<2700;
```
## Task
Generate a SQL query to answer the following question:
`What was the opponent on August 29?`

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

CREATE TABLE "august" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opponent on August 29?`:
```sql
                SELECT "opponent" FROM "august" WHERE "date"='august 29';
```
## Task
Generate a SQL query to answer the following question:
`Which team had the attendance of 16,468 and lost?`

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

CREATE TABLE "august" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had the attendance of 16,468 and lost?`:
```sql
                SELECT "loss" FROM "august" WHERE "attendance"='16,468';
```
## Task
Generate a SQL query to answer the following question:
`What opponent has a loss of Trachsel (10-11)?`

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

CREATE TABLE "august" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has a loss of Trachsel (10-11)?`:
```sql
                SELECT "opponent" FROM "august" WHERE "loss"='trachsel (10-11)';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance on August 8?`

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

CREATE TABLE "august" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on August 8?`:
```sql
                SELECT "attendance" FROM "august" WHERE "date"='august 8';
```
## Task
Generate a SQL query to answer the following question:
`Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?`

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

CREATE TABLE "stations" (
  "station" text,
  "japanese" text,
  "distance_km" real,
  "rapid" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?`:
```sql
                SELECT "rapid" FROM "stations" WHERE "distance_km"<14.2 AND "station"='kōmyōji';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34?`

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

CREATE TABLE "appearances" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "other" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34?`:
```sql
                SELECT SUM("other") FROM "appearances" WHERE "name"='simon gillett category:articles with hcards' AND "total"<34;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0?`

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

CREATE TABLE "appearances" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "other" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0?`:
```sql
                SELECT SUM("league_cup") FROM "appearances" WHERE "total"<1 AND "league"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest Total, when the FA Cup is 0, when the Name is Robbie Williams Category:Articles with hCards, and when the League Cup is less than 0?`

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

CREATE TABLE "appearances" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "other" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest Total, when the FA Cup is 0, when the Name is Robbie Williams Category:Articles with hCards, and when the League Cup is less than 0?`:
```sql
                SELECT MAX("total") FROM "appearances" WHERE "fa_cup"=0 AND "name"='robbie williams category:articles with hcards' AND "league_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?`

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

CREATE TABLE "appearances" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "other" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?`:
```sql
                SELECT AVG("total") FROM "appearances" WHERE "name"='simon gillett category:articles with hcards' AND "other">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of League Cup, when the Other is less than 1, when the Name is Gareth Farrelly Category:Articles with hCards, and when the League is greater than 1?`

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

CREATE TABLE "appearances" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "other" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of League Cup, when the Other is less than 1, when the Name is Gareth Farrelly Category:Articles with hCards, and when the League is greater than 1?`:
```sql
                SELECT SUM("league_cup") FROM "appearances" WHERE "other"<1 AND "name"='gareth farrelly category:articles with hcards' AND "league">1;
```
## Task
Generate a SQL query to answer the following question:
`Name the runner-up which has 3rd place of terry hollands`

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

CREATE TABLE "list_of_champions" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "3rd_place" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the runner-up which has 3rd place of terry hollands`:
```sql
                SELECT "runner_up" FROM "list_of_champions" WHERE "3rd_place"='terry hollands';
```
## Task
Generate a SQL query to answer the following question:
`Name the champion for christopher miles runner-up`

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

CREATE TABLE "list_of_champions" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "3rd_place" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the champion for christopher miles runner-up`:
```sql
                SELECT "champion" FROM "list_of_champions" WHERE "runner_up"='christopher miles';
```
## Task
Generate a SQL query to answer the following question:
`Name the champion for 2000`

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

CREATE TABLE "list_of_champions" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "3rd_place" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the champion for 2000`:
```sql
                SELECT "champion" FROM "list_of_champions" WHERE "year"='2000';
```
## Task
Generate a SQL query to answer the following question:
`Name the champion for 3rd place tbc and runner-up tbc`

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

CREATE TABLE "list_of_champions" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "3rd_place" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the champion for 3rd place tbc and runner-up tbc`:
```sql
                SELECT "champion" FROM "list_of_champions" WHERE "3rd_place"='tbc' AND "runner_up"='tbc';
```
## Task
Generate a SQL query to answer the following question:
`Name the location for 1998`

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

CREATE TABLE "list_of_champions" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "3rd_place" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location for 1998`:
```sql
                SELECT "location" FROM "list_of_champions" WHERE "year"='1998';
```
## Task
Generate a SQL query to answer the following question:
`How many gold medals correspond with a total over 4?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold medals correspond with a total over 4?`:
```sql
                SELECT "gold" FROM "medal_table" WHERE "total">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "total"=12 AND "bronze"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" 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 number of gold medals corresponding to the total rank with more than 4 bronze medals?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "rank"='total' AND "bronze">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of bronze medals with more than 4 gold medals?`

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

CREATE TABLE "medal_table" (
  "rank" 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 number of bronze medals with more than 4 gold medals?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "gold">4;
```
## Task
Generate a SQL query to answer the following question:
`The candidate with Riding of st. john's south—mount pearl is what gender?`

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

CREATE TABLE "7_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `The candidate with Riding of st. john's south—mount pearl is what gender?`:
```sql
                SELECT "gender" FROM "7_seats" WHERE "riding"='st. john''s south—mount pearl';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of walter noel from st. john's?`

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

CREATE TABLE "7_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of walter noel from st. john's?`:
```sql
                SELECT "rank" FROM "7_seats" WHERE "residence"='st. john''s' AND "candidate_s_name"='walter noel';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the candidate from happy valley-goose bay with a gender of m?`

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

CREATE TABLE "7_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the candidate from happy valley-goose bay with a gender of m?`:
```sql
                SELECT "candidate_s_name" FROM "7_seats" WHERE "gender"='m' AND "residence"='happy valley-goose bay';
```
## Task
Generate a SQL query to answer the following question:
`Which number has a 0.35 percentage?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which number has a 0.35 percentage?`:
```sql
                SELECT "number" FROM "language" WHERE "percentage_pct"='0.35';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage for Russian?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage for Russian?`:
```sql
                SELECT "percentage_pct" FROM "language" WHERE "language"='russian';
```
## Task
Generate a SQL query to answer the following question:
`How many males speak Russian?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many males speak Russian?`:
```sql
                SELECT "males" FROM "language" WHERE "language"='russian';
```
## Task
Generate a SQL query to answer the following question:
`Who is the writer for Red Rose Chain LTD?`

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

CREATE TABLE "2007" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "recipient" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the writer for Red Rose Chain LTD?`:
```sql
                SELECT "writer_s" FROM "2007" WHERE "recipient"='red rose chain ltd';
```
## Task
Generate a SQL query to answer the following question:
`Which producer did Daniel Cormack direct?`

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

CREATE TABLE "2007" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "recipient" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which producer did Daniel Cormack direct?`:
```sql
                SELECT "producer_s" FROM "2007" WHERE "director_s"='daniel cormack';
```
## Task
Generate a SQL query to answer the following question:
`Who produced Laura Tunstall?`

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

CREATE TABLE "2007" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "recipient" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who produced Laura Tunstall?`:
```sql
                SELECT "producer_s" FROM "2007" WHERE "recipient"='laura tunstall';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the film Jehovah's Witness?`

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

CREATE TABLE "2007" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "recipient" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the film Jehovah's Witness?`:
```sql
                SELECT "writer_s" FROM "2007" WHERE "film"='jehovah''s witness';
```
## Task
Generate a SQL query to answer the following question:
`When did Hein Vergeer have a distance of 5,000m?`

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

CREATE TABLE "personal_records" (
  "distance" text,
  "time" text,
  "date" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Hein Vergeer have a distance of 5,000m?`:
```sql
                SELECT "date" FROM "personal_records" WHERE "distance"='5,000m';
```
## Task
Generate a SQL query to answer the following question:
`What were the notes during the distance of Men's Speed Skating?`

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

CREATE TABLE "personal_records" (
  "distance" text,
  "time" text,
  "date" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the notes during the distance of Men's Speed Skating?`:
```sql
                SELECT "notes" FROM "personal_records" WHERE "distance"='men''s speed skating';
```
## Task
Generate a SQL query to answer the following question:
`What date has the competition of uefa euro 2012 qualifying?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has the competition of uefa euro 2012 qualifying?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='uefa euro 2012 qualifying';
```
## Task
Generate a SQL query to answer the following question:
`What is the Grade that has Turf 1600m?`

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

CREATE TABLE "step_races" (
  "race_name" real,
  "grade" text,
  "racecourse" text,
  "distance" text,
  "priority_entry_rights_to_derby" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Grade that has Turf 1600m?`:
```sql
                SELECT "grade" FROM "step_races" WHERE "priority_entry_rights_to_derby"='turf 1600m';
```
## Task
Generate a SQL query to answer the following question:
`What is the Priority-entry-rights to Derby in rank 4?`

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

CREATE TABLE "step_races" (
  "race_name" real,
  "grade" text,
  "racecourse" text,
  "distance" text,
  "priority_entry_rights_to_derby" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Priority-entry-rights to Derby in rank 4?`:
```sql
                SELECT "priority_entry_rights_to_derby" FROM "step_races" WHERE "race_name"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?`

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

CREATE TABLE "distribution" (
  "installation" text,
  "cluj" real,
  "oradea" real,
  "baia_mare" real,
  "bistrita" real,
  "satu_mare" real,
  "zalau" real,
  "electrica_north_transylvania" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?`:
```sql
                SELECT COUNT("baia_mare") FROM "distribution" WHERE "electrica_north_transylvania"<14.476 AND "bistrita"=643 AND "zalau"<737;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest Satu Mare value associated with Baia Mare over 523?`

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

CREATE TABLE "distribution" (
  "installation" text,
  "cluj" real,
  "oradea" real,
  "baia_mare" real,
  "bistrita" real,
  "satu_mare" real,
  "zalau" real,
  "electrica_north_transylvania" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Satu Mare value associated with Baia Mare over 523?`:
```sql
                SELECT MIN("satu_mare") FROM "distribution" WHERE "baia_mare">523;
```
## Task
Generate a SQL query to answer the following question:
`Which Word wrap support has a Format of mobipocket?`

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

CREATE TABLE "features" (
  "format" text,
  "filename_extension" text,
  "image_support" text,
  "interactivity_support" text,
  "word_wrap_support" text,
  "open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Word wrap support has a Format of mobipocket?`:
```sql
                SELECT "word_wrap_support" FROM "features" WHERE "format"='mobipocket';
```
## Task
Generate a SQL query to answer the following question:
`Which Interactivity support has a Format of fictionbook?`

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

CREATE TABLE "features" (
  "format" text,
  "filename_extension" text,
  "image_support" text,
  "interactivity_support" text,
  "word_wrap_support" text,
  "open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Interactivity support has a Format of fictionbook?`:
```sql
                SELECT "interactivity_support" FROM "features" WHERE "format"='fictionbook';
```
## Task
Generate a SQL query to answer the following question:
`Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no?`

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

CREATE TABLE "features" (
  "format" text,
  "filename_extension" text,
  "image_support" text,
  "interactivity_support" text,
  "word_wrap_support" text,
  "open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no?`:
```sql
                SELECT "filename_extension" FROM "features" WHERE "interactivity_support"='no' AND "open_standard"='yes' AND "image_support"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?`

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

CREATE TABLE "features" (
  "format" text,
  "filename_extension" text,
  "image_support" text,
  "interactivity_support" text,
  "word_wrap_support" text,
  "open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?`:
```sql
                SELECT "filename_extension" FROM "features" WHERE "word_wrap_support"='yes' AND "open_standard"='no' AND "interactivity_support"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?`

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

CREATE TABLE "features" (
  "format" text,
  "filename_extension" text,
  "image_support" text,
  "interactivity_support" text,
  "word_wrap_support" text,
  "open_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?`:
```sql
                SELECT "format" FROM "features" WHERE "interactivity_support"='no' AND "word_wrap_support"='yes' AND "image_support"='yes' AND "open_standard"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Position of guard, and a Pick # larger than 9 is what highest round?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Position of guard, and a Pick # larger than 9 is what highest round?`:
```sql
                SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "position"='guard' AND "pick_num">9;
```
## Task
Generate a SQL query to answer the following question:
`Pick # smaller than 11, and a Name of von hutchins belongs to what college?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Pick # smaller than 11, and a Name of von hutchins belongs to what college?`:
```sql
                SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "pick_num"<11 AND "name"='von hutchins';
```
## Task
Generate a SQL query to answer the following question:
`College of idaho, and an Overall smaller than 141 is what average round?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `College of idaho, and an Overall smaller than 141 is what average round?`:
```sql
                SELECT AVG("round") FROM "indianapolis_colts_draft_history" WHERE "college"='idaho' AND "overall"<141;
```
## Task
Generate a SQL query to answer the following question:
`Name of David Kimball, and an Overall smaller than 229 is what highest round?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name of David Kimball, and an Overall smaller than 229 is what highest round?`:
```sql
                SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "name"='david kimball' AND "overall"<229;
```
## Task
Generate a SQL query to answer the following question:
`How many points did the car with the brm v8 engine have?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the car with the brm v8 engine have?`:
```sql
                SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='brm v8';
```
## Task
Generate a SQL query to answer the following question:
`Which chassis has more than 0 points and was before 1966?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis has more than 0 points and was before 1966?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"<1966 AND "points">0;
```