cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Tell me the actor's name for anastasiya slutskaya belarus`

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

CREATE TABLE "stozhary_2003_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actor's name for anastasiya slutskaya belarus`:
```sql
                SELECT "actor_s_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='anastasiya slutskaya' AND "country"='belarus';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the nominator for piotr adamczyk`

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

CREATE TABLE "stozhary_2003_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nominator for piotr adamczyk`:
```sql
                SELECT "nomination" FROM "stozhary_2003_prize_winners" WHERE "actor_s_name"='piotr adamczyk';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium can hold 63,443 people?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium can hold 63,443 people?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='63,443';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the number of weeks for bye`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "start_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the number of weeks for bye`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='bye';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the number of weeks for december 5, 2005`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "start_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the number of weeks for december 5, 2005`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='december 5, 2005';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the start time for december 24, 2005`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "start_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the start time for december 24, 2005`:
```sql
                SELECT "start_time" FROM "schedule" WHERE "date"='december 24, 2005';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the result for lincoln financial field december 11, 2005`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "start_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for lincoln financial field december 11, 2005`:
```sql
                SELECT "result" FROM "schedule" WHERE "venue"='lincoln financial field' AND "date"='december 11, 2005';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of years for wins less than 2 and class of 50cc with points of 15`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the total number of years for wins less than 2 and class of 50cc with points of 15`:
```sql
                SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<2 AND "class"='50cc' AND "points"=15;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the year for class of 125cc`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the year for class of 125cc`:
```sql
                SELECT "year" FROM "motorcycle_grand_prix_results" WHERE "class"='125cc';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the average wins for class of 50cc and rank of 8th`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the average wins for class of 50cc and rank of 8th`:
```sql
                SELECT AVG("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "rank"='8th';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969`:
```sql
                SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "team"='tomos' AND "year"<1969;
```
## Task
Generate a SQL query to answer the following question:
`Which country has the highest bronze amount and a silver amount bigger than 41?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the highest bronze amount and a silver amount bigger than 41?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "silver">41;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of medals Russia has if they have more than 2 silver medals and less than 4 gold medals?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of medals Russia has if they have more than 2 silver medals and less than 4 gold medals?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "silver">2 AND "nation"='russia' AND "gold"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many points did the 2005 1st place team receive?`

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

CREATE TABLE "cart_champ_car" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the 2005 1st place team receive?`:
```sql
                SELECT "points" FROM "cart_champ_car" WHERE "year"=2005;
```
## Task
Generate a SQL query to answer the following question:
`What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?`

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

CREATE TABLE "cart_champ_car" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?`:
```sql
                SELECT "engine" FROM "cart_champ_car" WHERE "chassis"='lola b02/00' AND "rank"='1st';
```
## Task
Generate a SQL query to answer the following question:
`How many years did Team Newman/Haas Racing receive a 1st place ranking?`

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

CREATE TABLE "cart_champ_car" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did Team Newman/Haas Racing receive a 1st place ranking?`:
```sql
                SELECT COUNT("year") FROM "cart_champ_car" WHERE "team"='newman/haas racing' AND "rank"='1st';
```
## Task
Generate a SQL query to answer the following question:
`What is the aggregate of place for points being 35?`

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

CREATE TABLE "national_final" (
  "draw" real,
  "artist" text,
  "song" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aggregate of place for points being 35?`:
```sql
                SELECT SUM("place") FROM "national_final" WHERE "points"=35;
```
## Task
Generate a SQL query to answer the following question:
`Name the fewest points of 5 place`

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

CREATE TABLE "national_final" (
  "draw" real,
  "artist" text,
  "song" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fewest points of 5 place`:
```sql
                SELECT MIN("points") FROM "national_final" WHERE "place"=5;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of places for vicky gordon and points more than 23`

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

CREATE TABLE "national_final" (
  "draw" real,
  "artist" text,
  "song" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of places for vicky gordon and points more than 23`:
```sql
                SELECT COUNT("place") FROM "national_final" WHERE "artist"='vicky gordon' AND "points">23;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the opponent for attendance of 68,264`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the opponent for attendance of 68,264`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='68,264';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the sum of week for result of l 24–21`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the sum of week for result of l 24–21`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "result"='l 24–21';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the result for attendance of 54,462`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for attendance of 54,462`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='54,462';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the opponent for attendance of 53,899`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the opponent for attendance of 53,899`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='53,899';
```
## Task
Generate a SQL query to answer the following question:
`What is the points that is more than 636 and has a value of 50?`

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

CREATE TABLE "players" (
  "nationality" text,
  "no_a" text,
  "pos_a" text,
  "from" text,
  "school_club" text,
  "pts_b" real,
  "reb_b" real,
  "ast_b" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points that is more than 636 and has a value of 50?`:
```sql
                SELECT "pts_b" FROM "players" WHERE "reb_b">636 AND "no_a"='50';
```
## Task
Generate a SQL query to answer the following question:
`Which rebound was 8 and has and ast that was less than 57?`

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

CREATE TABLE "players" (
  "nationality" text,
  "no_a" text,
  "pos_a" text,
  "from" text,
  "school_club" text,
  "pts_b" real,
  "reb_b" real,
  "ast_b" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rebound was 8 and has and ast that was less than 57?`:
```sql
                SELECT AVG("reb_b") FROM "players" WHERE "no_a"='8' AND "ast_b"<57;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the country for ICAO of tjig`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the country for ICAO of tjig`:
```sql
                SELECT "country" FROM "destinations" WHERE "icao"='tjig';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the country for san juan`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the country for san juan`:
```sql
                SELECT "country" FROM "destinations" WHERE "city"='san juan';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the country for ICAO tjvq`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the country for ICAO tjvq`:
```sql
                SELECT "country" FROM "destinations" WHERE "icao"='tjvq';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the iata for icao of tjrv`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the iata for icao of tjrv`:
```sql
                SELECT "iata" FROM "destinations" WHERE "icao"='tjrv';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the icao of isla grande`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the icao of isla grande`:
```sql
                SELECT "icao" FROM "destinations" WHERE "city"='isla grande';
```
## Task
Generate a SQL query to answer the following question:
`What position does the Colorado Rapids pick after 15 play?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the Colorado Rapids pick after 15 play?`:
```sql
                SELECT "position" FROM "round_two" WHERE "mls_team"='colorado rapids' AND "pick_num">15;
```
## Task
Generate a SQL query to answer the following question:
`I want to know the events for 106 bands`

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

CREATE TABLE "2000_s" (
  "year" real,
  "date" text,
  "event" text,
  "days" text,
  "stages" text,
  "acts" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the events for 106 bands`:
```sql
                SELECT "event" FROM "2000_s" WHERE "acts"='106 bands';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the Actor's name for film name of sara`

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

CREATE TABLE "stozhary_99_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the Actor's name for film name of sara`:
```sql
                SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "film_name"='sara';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the nomination for ukraine`

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

CREATE TABLE "stozhary_99_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nomination for ukraine`:
```sql
                SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "country"='ukraine';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the actors name for barhanov and his bodyguard`

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

CREATE TABLE "stozhary_99_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actors name for barhanov and his bodyguard`:
```sql
                SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "film_name"='barhanov and his bodyguard';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the actors name for goran paskaljevic`

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

CREATE TABLE "stozhary_99_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actors name for goran paskaljevic`:
```sql
                SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "director"='goran paskaljevic';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the nomination for goran paskaljevic`

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

CREATE TABLE "stozhary_99_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nomination for goran paskaljevic`:
```sql
                SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "director"='goran paskaljevic';
```
## Task
Generate a SQL query to answer the following question:
`In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single?`

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

CREATE TABLE "individual" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single?`:
```sql
                SELECT "year" FROM "individual" WHERE "men_s_singles"='stephan wojcikiewicz' AND "women_s_singles"='anna rice';
```
## Task
Generate a SQL query to answer the following question:
`Who played men's doubles in 2012?`

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

CREATE TABLE "individual" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played men's doubles in 2012?`:
```sql
                SELECT "men_s_doubles" FROM "individual" WHERE "year"='2012';
```
## Task
Generate a SQL query to answer the following question:
`Which FA Cup apps has league goals of 1 with total goals less than 1?`

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

CREATE TABLE "barnsley" (
  "division" text,
  "league_apps" real,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "total_apps" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which FA Cup apps has league goals of 1 with total goals less than 1?`:
```sql
                SELECT AVG("fa_cup_apps") FROM "barnsley" WHERE "league_goals"=1 AND "total_goals"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?`

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

CREATE TABLE "barnsley" (
  "division" text,
  "league_apps" real,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "total_apps" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?`:
```sql
                SELECT MAX("total_apps") FROM "barnsley" WHERE "fa_cup_apps"=26 AND "total_goals">9;
```
## Task
Generate a SQL query to answer the following question:
`Which league goals has FA cup apps of 2?`

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

CREATE TABLE "barnsley" (
  "division" text,
  "league_apps" real,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "total_apps" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which league goals has FA cup apps of 2?`:
```sql
                SELECT "league_goals" FROM "barnsley" WHERE "fa_cup_apps"=2;
```
## Task
Generate a SQL query to answer the following question:
`What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?`

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

CREATE TABLE "barnsley" (
  "division" text,
  "league_apps" real,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "total_apps" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?`:
```sql
                SELECT COUNT("fa_cup_apps") FROM "barnsley" WHERE "total_apps">12 AND "league_apps">38 AND "fa_cup_goals">1;
```
## Task
Generate a SQL query to answer the following question:
`What was the total attendance on December 14, 1975 after week 13?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total attendance on December 14, 1975 after week 13?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "date"='december 14, 1975' AND "week">13;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "rank">6 AND "gold">0 AND "silver"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?`:
```sql
                SELECT COUNT("silver") FROM "medal_table" WHERE "gold"<1 AND "rank"=13 AND "bronze">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average value of Bronze when silver is 0 and the total is less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value of Bronze when silver is 0 and the total is less than 1?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=0 AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "total"=3 AND "silver">1 AND "gold"<1;
```
## Task
Generate a SQL query to answer the following question:
`How man values for bronze occur when gold is less than 1, rank is greater than 15, and total is greater than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How man values for bronze occur when gold is less than 1, rank is greater than 15, and total is greater than 1?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "gold"<1 AND "rank">15 AND "total">1;
```
## Task
Generate a SQL query to answer the following question:
`Name the position of pick 234`

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

CREATE TABLE "round_nine" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position of pick 234`:
```sql
                SELECT "position" FROM "round_nine" WHERE "pick"='234';
```
## Task
Generate a SQL query to answer the following question:
`Name the team of vitali yeremeyev`

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

CREATE TABLE "round_nine" (
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team of vitali yeremeyev`:
```sql
                SELECT "nhl_team" FROM "round_nine" WHERE "player"='vitali yeremeyev';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the result for 2007-09-29`

### 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 `Tell me the result for 2007-09-29`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='2007-09-29';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks have an attendance of 64,116?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks have an attendance of 64,116?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"='64,116';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a week larger than 14?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a week larger than 14?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">14;
```
## Task
Generate a SQL query to answer the following question:
`Which venue has a week smaller than 2?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a week smaller than 2?`:
```sql
                SELECT "venue" FROM "schedule" WHERE "week"<2;
```
## Task
Generate a SQL query to answer the following question:
`When was the Metallica: Escape from the Studio show?`

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

CREATE TABLE "1990s" (
  "year" real,
  "date" text,
  "event" text,
  "days" text,
  "stages" text,
  "acts" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Metallica: Escape from the Studio show?`:
```sql
                SELECT "date" FROM "1990s" WHERE "event"='metallica: escape from the studio';
```
## Task
Generate a SQL query to answer the following question:
`When is the Monsters of Rock show with 12 bands?`

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

CREATE TABLE "1990s" (
  "year" real,
  "date" text,
  "event" text,
  "days" text,
  "stages" text,
  "acts" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the Monsters of Rock show with 12 bands?`:
```sql
                SELECT "date" FROM "1990s" WHERE "event"='monsters of rock' AND "acts"='12 bands';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the result for 15 july`

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

CREATE TABLE "2000_2009" (
  "year" real,
  "competition" text,
  "date" text,
  "surface" text,
  "location" text,
  "score" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for 15 july`:
```sql
                SELECT "result" FROM "2000_2009" WHERE "date"='15 july';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the number range for 1965-66`

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

CREATE TABLE "fleet_details" (
  "class" text,
  "type" text,
  "no_built_converted" text,
  "year_built_converted" text,
  "no_range" text,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the number range for 1965-66`:
```sql
                SELECT "no_range" FROM "fleet_details" WHERE "year_built_converted"='1965-66';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the year built for withdrawn of 1983`

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

CREATE TABLE "fleet_details" (
  "class" text,
  "type" text,
  "no_built_converted" text,
  "year_built_converted" text,
  "no_range" text,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the year built for withdrawn of 1983`:
```sql
                SELECT "year_built_converted" FROM "fleet_details" WHERE "withdrawn"=1983;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the year built for number built of 10`

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

CREATE TABLE "fleet_details" (
  "class" text,
  "type" text,
  "no_built_converted" text,
  "year_built_converted" text,
  "no_range" text,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the year built for number built of 10`:
```sql
                SELECT "year_built_converted" FROM "fleet_details" WHERE "no_built_converted"='10';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the result for 2008-12-23`

### 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 `Tell me the result for 2008-12-23`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='2008-12-23';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the director nominated for best actor in a leading role`

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

CREATE TABLE "stozhary_2005_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the director nominated for best actor in a leading role`:
```sql
                SELECT "director" FROM "stozhary_2005_prize_winners" WHERE "nomination"='best actor in a leading role';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the nomination for peresohla zemlia`

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

CREATE TABLE "stozhary_2005_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nomination for peresohla zemlia`:
```sql
                SELECT "nomination" FROM "stozhary_2005_prize_winners" WHERE "film_name"='peresohla zemlia';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the nomination for russia and svetlana hodchenkova`

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

CREATE TABLE "stozhary_2005_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nomination for russia and svetlana hodchenkova`:
```sql
                SELECT "nomination" FROM "stozhary_2005_prize_winners" WHERE "country"='russia' AND "actor_s_name"='svetlana hodchenkova';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the actor's name for nienasycenie (insatiability)`

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

CREATE TABLE "stozhary_2005_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actor's name for nienasycenie (insatiability)`:
```sql
                SELECT "actor_s_name" FROM "stozhary_2005_prize_winners" WHERE "film_name"='nienasycenie (insatiability)';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the actor's name for escho raz o voyne`

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

CREATE TABLE "stozhary_2005_prize_winners" (
  "nomination" text,
  "actor_s_name" text,
  "film_name" text,
  "director" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actor's name for escho raz o voyne`:
```sql
                SELECT "actor_s_name" FROM "stozhary_2005_prize_winners" WHERE "film_name"='escho raz o voyne';
```
## Task
Generate a SQL query to answer the following question:
`What are the average laps driven in the GT class?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average laps driven in the GT class?`:
```sql
                SELECT AVG("laps") FROM "24_hours_of_le_mans_results" WHERE "class"='gt';
```
## Task
Generate a SQL query to answer the following question:
`What classes have driven greater than 133 laps, placed above 18th position and have a class position of 1st?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What classes have driven greater than 133 laps, placed above 18th position and have a class position of 1st?`:
```sql
                SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps">133 AND "pos"='18th' AND "class_pos"='1st';
```
## Task
Generate a SQL query to answer the following question:
`I want the tsongas of may 22, 2007`

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

CREATE TABLE "democratic_primary" (
  "source" text,
  "date" text,
  "donoghue_d" text,
  "eldridge_d" text,
  "finegold_d" text,
  "miceli_d" text,
  "tsongas_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the tsongas of may 22, 2007`:
```sql
                SELECT "tsongas_d" FROM "democratic_primary" WHERE "date"='may 22, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the venue for winner of nevada and year more than 2004`

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

CREATE TABLE "wac_men_s_basketball_tournament_results" (
  "year" real,
  "winner" text,
  "score" text,
  "opponent" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the venue for winner of nevada and year more than 2004`:
```sql
                SELECT "venue" FROM "wac_men_s_basketball_tournament_results" WHERE "winner"='nevada' AND "year">2004;
```
## Task
Generate a SQL query to answer the following question:
`What date is the 1:00 pm game at arrowhead stadium?`

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

CREATE TABLE "regular_season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "time_et" text,
  "game_site" text,
  "final_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date is the 1:00 pm game at arrowhead stadium?`:
```sql
                SELECT "date" FROM "regular_season_schedule" WHERE "time_et"='1:00 pm' AND "game_site"='arrowhead stadium';
```
## Task
Generate a SQL query to answer the following question:
`Where will the game at (ET) of 7:00 pm be at?`

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

CREATE TABLE "regular_season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "time_et" text,
  "game_site" text,
  "final_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where will the game at (ET) of 7:00 pm be at?`:
```sql
                SELECT "game_site" FROM "regular_season_schedule" WHERE "time_et"='7:00 pm';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Driver that has a Laps smaller than 498,  less than 58 points, a car number bigger than 22 and who has won $93,514?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "car_num" real,
  "make" text,
  "points" real,
  "laps" real,
  "winnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Driver that has a Laps smaller than 498,  less than 58 points, a car number bigger than 22 and who has won $93,514?`:
```sql
                SELECT "driver" FROM "race_results" WHERE "laps"<498 AND "points"<58 AND "car_num">22 AND "winnings"='$93,514';
```
## Task
Generate a SQL query to answer the following question:
`At what location was there a loss on 20 jan?`

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

CREATE TABLE "2000s" (
  "year" real,
  "competition" text,
  "date" text,
  "location" text,
  "score" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what location was there a loss on 20 jan?`:
```sql
                SELECT "location" FROM "2000s" WHERE "result"='loss' AND "date"='20 jan';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the venue for record of 2-7`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the venue for record of 2-7`:
```sql
                SELECT "venue" FROM "schedule" WHERE "record"='2-7';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the result for green bay packers`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for green bay packers`:
```sql
                SELECT "result" FROM "schedule" WHERE "opponent"='green bay packers';
```
## Task
Generate a SQL query to answer the following question:
`Tell mem the opponent for result of w 31-21`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell mem the opponent for result of w 31-21`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='w 31-21';
```
## Task
Generate a SQL query to answer the following question:
`What is the average speed of rider Peter Williams?`

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

CREATE TABLE "1970_isle_of_man_production_750_cc_tt_fi" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average speed of rider Peter Williams?`:
```sql
                SELECT "speed" FROM "1970_isle_of_man_production_750_cc_tt_fi" WHERE "rider"='peter williams';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?`

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

CREATE TABLE "1970_isle_of_man_production_750_cc_tt_fi" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?`:
```sql
                SELECT "time" FROM "1970_isle_of_man_production_750_cc_tt_fi" WHERE "team"='triumph' AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`What was the score in 1969?`

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

CREATE TABLE "history" (
  "year" text,
  "zone" text,
  "final_round" text,
  "score" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in 1969?`:
```sql
                SELECT "score" FROM "history" WHERE "year"='1969';
```
## Task
Generate a SQL query to answer the following question:
`In 1975, what was the final round?`

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

CREATE TABLE "history" (
  "year" text,
  "zone" text,
  "final_round" text,
  "score" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1975, what was the final round?`:
```sql
                SELECT "final_round" FROM "history" WHERE "year"='1975';
```