cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What round is sf/sg player sly williams from a year after 1965 from?`

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

CREATE TABLE "selections" (
  "year" real,
  "round" text,
  "player" text,
  "nationality" text,
  "position" text,
  "college_high_school_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round is sf/sg player sly williams from a year after 1965 from?`:
```sql
                SELECT "round" FROM "selections" WHERE "position"='sf/sg' AND "year">1965 AND "player"='sly williams';
```
## Task
Generate a SQL query to answer the following question:
`What is the round of the pf position player from 1996 and the college/high school/club mississippi state?`

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

CREATE TABLE "selections" (
  "year" real,
  "round" text,
  "player" text,
  "nationality" text,
  "position" text,
  "college_high_school_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round of the pf position player from 1996 and the college/high school/club mississippi state?`:
```sql
                SELECT "round" FROM "selections" WHERE "position"='pf' AND "year"=1996 AND "college_high_school_club"='mississippi state';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Visitor of montreal canadiens, and Points of 5?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Visitor of montreal canadiens, and Points of 5?`:
```sql
                SELECT "score" FROM "game_log" WHERE "visitor"='montreal canadiens' AND "points"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which Points have an Attendance of 21,273, and a Record of 5–1–1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have an Attendance of 21,273, and a Record of 5–1–1?`:
```sql
                SELECT MIN("points") FROM "game_log" WHERE "attendance"='21,273' AND "record"='5–1–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Points have a Visitor of montreal canadiens, and an Attendance larger than 18,568, and a Record of 2–0–1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have a Visitor of montreal canadiens, and an Attendance larger than 18,568, and a Record of 2–0–1?`:
```sql
                SELECT MAX("points") FROM "game_log" WHERE "visitor"='montreal canadiens' AND "attendance">'18,568' AND "record"='2–0–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price?`:
```sql
                SELECT "date" FROM "game_log" WHERE "home"='montreal canadiens' AND "points">9 AND "decision"='price';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the home team Notts County?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" real,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the home team Notts County?`:
```sql
                SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='notts county';
```
## Task
Generate a SQL query to answer the following question:
`Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" text,
  "rating" real,
  "share" real,
  "viewers_millions" real,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?`:
```sql
                SELECT "episode" FROM "u_s_nielsen_ratings" WHERE "viewers_millions">11.26 AND "weekly_rank"='#8' AND "share"=12;
```
## Task
Generate a SQL query to answer the following question:
`Which Viewers (millions) has an Episode of "i'm not a good villain", and a Share smaller than 12?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" text,
  "rating" real,
  "share" real,
  "viewers_millions" real,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Viewers (millions) has an Episode of "i'm not a good villain", and a Share smaller than 12?`:
```sql
                SELECT MAX("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode"='\"i''m not a good villain\"' AND "share"<12;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2012 with a mini in 2009?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2012 with a mini in 2009?`:
```sql
                SELECT "2012" FROM "see_also" WHERE "2009"='mini';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2013 with virgin in 2009?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2013 with virgin in 2009?`:
```sql
                SELECT "2013" FROM "see_also" WHERE "2009"='virgin';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of the 2009 xbox?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of the 2009 xbox?`:
```sql
                SELECT MAX("rank") FROM "see_also" WHERE "2009"='xbox';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010 with a rank higher than 15 and a 2011 maserati?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 with a rank higher than 15 and a 2011 maserati?`:
```sql
                SELECT "2010" FROM "see_also" WHERE "rank">15 AND "2011"='maserati';
```
## Task
Generate a SQL query to answer the following question:
`What is the record with 23 points and a visitor of Chicago?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record with 23 points and a visitor of Chicago?`:
```sql
                SELECT "record" FROM "game_log" WHERE "points"=23 AND "visitor"='chicago';
```
## Task
Generate a SQL query to answer the following question:
`What venue had a tie?`

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

CREATE TABLE "captaincy_record" (
  "venue" text,
  "span" text,
  "matches" text,
  "lost" text,
  "tied" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue had a tie?`:
```sql
                SELECT "tied" FROM "captaincy_record" WHERE "venue"='venue';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in Spain T3?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in Spain T3?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t3' AND "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What score did Lee Trevino get in T1?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score did Lee Trevino get in T1?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t1' AND "player"='lee trevino';
```
## Task
Generate a SQL query to answer the following question:
`Which player had the score 71-72=143 in Spain?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had the score 71-72=143 in Spain?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='71-72=143' AND "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`When curtis strange had a to par +1, what was his score?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `When curtis strange had a to par +1, what was his score?`:
```sql
                SELECT "score" FROM "second_round" WHERE "to_par"='+1' AND "player"='curtis strange';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player for Zimbabwe?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player for Zimbabwe?`:
```sql
                SELECT "player" FROM "second_round" WHERE "country"='zimbabwe';
```
## Task
Generate a SQL query to answer the following question:
`What country is Greg Norman from?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Greg Norman from?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='greg norman';
```
## Task
Generate a SQL query to answer the following question:
`What country is Bob Tway from?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Bob Tway from?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='bob tway';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of starts in 2007 when the average start was over 17.6?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of starts in 2007 when the average start was over 17.6?`:
```sql
                SELECT MAX("starts") FROM "nascar_nationwide_series" WHERE "year"=2007 AND "avg_start">17.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of wins when the number of third was 1, points were less than 572 and had less than 16 races?`

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

CREATE TABLE "season_by_season" (
  "driver" text,
  "points" real,
  "races" real,
  "wins" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of wins when the number of third was 1, points were less than 572 and had less than 16 races?`:
```sql
                SELECT "wins" FROM "season_by_season" WHERE "third"='1' AND "points"<572 AND "races"<16;
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the friendly match competition?`

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

CREATE TABLE "notable_matches" (
  "date" text,
  "team_num1" text,
  "res" text,
  "team_num2" text,
  "competition" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the friendly match competition?`:
```sql
                SELECT "res" FROM "notable_matches" WHERE "competition"='friendly match';
```
## Task
Generate a SQL query to answer the following question:
`What was the team #1 for the match that had a result of 0-3?`

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

CREATE TABLE "notable_matches" (
  "date" text,
  "team_num1" text,
  "res" text,
  "team_num2" text,
  "competition" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team #1 for the match that had a result of 0-3?`:
```sql
                SELECT "team_num1" FROM "notable_matches" WHERE "res"='0-3';
```
## Task
Generate a SQL query to answer the following question:
`what is the 2010 population density for municipio ponce?`

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

CREATE TABLE "puerto_rico" (
  "2012_rank" real,
  "municipio" text,
  "2010_land_area" text,
  "2010_population_density" text,
  "ansi" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the 2010 population density for municipio ponce?`:
```sql
                SELECT "2010_population_density" FROM "puerto_rico" WHERE "municipio"='ponce';
```
## Task
Generate a SQL query to answer the following question:
`What's the category for the tween academy: class of 2012 nomination?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award_giving_body" text,
  "category" text,
  "nominated_for" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the category for the tween academy: class of 2012 nomination?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "nominated_for"='tween academy: class of 2012';
```
## Task
Generate a SQL query to answer the following question:
`How many years was famas awards the award giving body?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award_giving_body" text,
  "category" text,
  "nominated_for" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was famas awards the award giving body?`:
```sql
                SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award_giving_body"='famas awards';
```
## Task
Generate a SQL query to answer the following question:
`What's the result for the category of best actor in a supporting role?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award_giving_body" text,
  "category" text,
  "nominated_for" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the result for the category of best actor in a supporting role?`:
```sql
                SELECT "result" FROM "awards_and_nominations" WHERE "category"='best actor in a supporting role';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Date of december 17?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Date of december 17?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "date"='december 17';
```
## Task
Generate a SQL query to answer the following question:
`Which Streak has a Team of new york knicks?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Streak has a Team of new york knicks?`:
```sql
                SELECT "streak" FROM "season_schedule" WHERE "team"='new york knicks';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 21–10?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Record of 21–10?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "record"='21–10';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Record of 17–8?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Record of 17–8?`:
```sql
                SELECT "team" FROM "season_schedule" WHERE "record"='17–8';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 102–113?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Score of 102–113?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "score"='102–113';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Streak of loss 1, and a Score of 110–111?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Streak of loss 1, and a Score of 110–111?`:
```sql
                SELECT "game" FROM "season_schedule" WHERE "streak"='loss 1' AND "score"='110–111';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player who is Sco and moving to greenock morton in the summer?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player who is Sco and moving to greenock morton in the summer?`:
```sql
                SELECT "name" FROM "out" WHERE "nat"='sco' AND "transfer_window"='summer' AND "moving_to"='greenock morton';
```
## Task
Generate a SQL query to answer the following question:
`Where is rory loy moving to?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is rory loy moving to?`:
```sql
                SELECT "moving_to" FROM "out" WHERE "name"='rory loy';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee for rory loy?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee for rory loy?`:
```sql
                SELECT "transfer_fee" FROM "out" WHERE "name"='rory loy';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with toronto as the visitor?`

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

CREATE TABLE "final_standings" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game with toronto as the visitor?`:
```sql
                SELECT "date" FROM "final_standings" WHERE "visitor"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with less than 35 points and chicago as the home team?`

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

CREATE TABLE "final_standings" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game with less than 35 points and chicago as the home team?`:
```sql
                SELECT "date" FROM "final_standings" WHERE "points"<35 AND "home"='chicago';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with pittsburgh as the home team and boston as the visitor team?`

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

CREATE TABLE "final_standings" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game with pittsburgh as the home team and boston as the visitor team?`:
```sql
                SELECT "date" FROM "final_standings" WHERE "home"='pittsburgh' AND "visitor"='boston';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with 35 points and pittsburgh as the home team?`

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

CREATE TABLE "final_standings" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game with 35 points and pittsburgh as the home team?`:
```sql
                SELECT "record" FROM "final_standings" WHERE "home"='pittsburgh' AND "points"=35;
```
## Task
Generate a SQL query to answer the following question:
`What place did bobby wadkins come in?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place did bobby wadkins come in?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='bobby wadkins';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Lane, when Mark is 7.66?`

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

CREATE TABLE "final" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Lane, when Mark is 7.66?`:
```sql
                SELECT MIN("lane") FROM "final" WHERE "mark"='7.66';
```
## Task
Generate a SQL query to answer the following question:
`What is Mark, when React is less than 0.148?`

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

CREATE TABLE "final" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mark, when React is less than 0.148?`:
```sql
                SELECT "mark" FROM "final" WHERE "react"<0.148;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Land, when React is greater than 0.217, and when Name is Yoel Hernández?`

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

CREATE TABLE "final" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Land, when React is greater than 0.217, and when Name is Yoel Hernández?`:
```sql
                SELECT SUM("lane") FROM "final" WHERE "react">0.217 AND "name"='yoel hernández';
```
## Task
Generate a SQL query to answer the following question:
`What is Mark, when Lane is less than 5, and when React is 0.217?`

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

CREATE TABLE "final" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mark, when Lane is less than 5, and when React is 0.217?`:
```sql
                SELECT "mark" FROM "final" WHERE "lane"<5 AND "react"=0.217;
```
## Task
Generate a SQL query to answer the following question:
`What was the record following game 67?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record following game 67?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "game"=67;
```
## Task
Generate a SQL query to answer the following question:
`What day in February had an opponent of @ Colorado Rockies?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day in February had an opponent of @ Colorado Rockies?`:
```sql
                SELECT SUM("february") FROM "schedule_and_results" WHERE "opponent"='@ colorado rockies';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with a record of 18-22-13?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game with a record of 18-22-13?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "record"='18-22-13';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent in the final has a Score of 6–3, 3–6, 6–8?`

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

CREATE TABLE "runners_up_17" (
  "date" real,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent in the final has a Score of 6–3, 3–6, 6–8?`:
```sql
                SELECT "opponent_in_the_final" FROM "runners_up_17" WHERE "score"='6–3, 3–6, 6–8';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Opponent in the final of ken flach robert seguso?`

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

CREATE TABLE "runners_up_17" (
  "date" real,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Opponent in the final of ken flach robert seguso?`:
```sql
                SELECT "tournament" FROM "runners_up_17" WHERE "surface"='carpet' AND "date"<1995 AND "opponent_in_the_final"='ken flach robert seguso';
```
## Task
Generate a SQL query to answer the following question:
`What time in office does the U.S. Navy have?`

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

CREATE TABLE "commanders_in_chief_commanders" (
  "name" text,
  "branch" text,
  "term_began" text,
  "term_ended" text,
  "time_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time in office does the U.S. Navy have?`:
```sql
                SELECT "time_in_office" FROM "commanders_in_chief_commanders" WHERE "branch"='u.s. navy';
```
## Task
Generate a SQL query to answer the following question:
`When did the term end for the U.S. Marine Corps?`

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

CREATE TABLE "commanders_in_chief_commanders" (
  "name" text,
  "branch" text,
  "term_began" text,
  "term_ended" text,
  "time_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the term end for the U.S. Marine Corps?`:
```sql
                SELECT "term_ended" FROM "commanders_in_chief_commanders" WHERE "branch"='u.s. marine corps';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2006 figure for Argentina when 2007 is less than 0,15?`

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

CREATE TABLE "world_energy_intensity_progression_by_ye" (
  "country" text,
  "unit_p_koe_05" text,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2006 figure for Argentina when 2007 is less than 0,15?`:
```sql
                SELECT COUNT("2006") FROM "world_energy_intensity_progression_by_ye" WHERE "country"='argentina' AND "2007"<'0,15';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2009 average if 2008 is less than 0,11 and 2007 is less than 0,08?`

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

CREATE TABLE "world_energy_intensity_progression_by_ye" (
  "country" text,
  "unit_p_koe_05" text,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2009 average if 2008 is less than 0,11 and 2007 is less than 0,08?`:
```sql
                SELECT AVG("2009") FROM "world_energy_intensity_progression_by_ye" WHERE "2008"<'0,11' AND "2007"<'0,08';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2009 average when the 2007 average is more than 0,18?`

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

CREATE TABLE "world_energy_intensity_progression_by_ye" (
  "country" text,
  "unit_p_koe_05" text,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2009 average when the 2007 average is more than 0,18?`:
```sql
                SELECT AVG("2009") FROM "world_energy_intensity_progression_by_ye" WHERE "2007">'0,18';
```
## Task
Generate a SQL query to answer the following question:
`How many gains were there for the player who had a loss greater than 57 and a long less than 55?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gains were there for the player who had a loss greater than 57 and a long less than 55?`:
```sql
                SELECT COUNT("gain") FROM "rushing" WHERE "loss">57 AND "long"<55;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Loss for the player named total that has a long greater than 55?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Loss for the player named total that has a long greater than 55?`:
```sql
                SELECT MIN("loss") FROM "rushing" WHERE "name"='total' AND "long">55;
```
## Task
Generate a SQL query to answer the following question:
`What nationality is Kentucky and the player Tayshaun Prince?`

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

CREATE TABLE "p" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is Kentucky and the player Tayshaun Prince?`:
```sql
                SELECT "nationality" FROM "p" WHERE "school_club_team"='kentucky' AND "player"='tayshaun prince';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of Duke?`

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

CREATE TABLE "p" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of Duke?`:
```sql
                SELECT "nationality" FROM "p" WHERE "school_club_team"='duke';
```
## Task
Generate a SQL query to answer the following question:
`What was the nationality of a point guard position in 1999-2001?`

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

CREATE TABLE "p" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nationality of a point guard position in 1999-2001?`:
```sql
                SELECT "nationality" FROM "p" WHERE "position"='point guard' AND "years_for_grizzlies"='1999-2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of Tayshaun Prince?`

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

CREATE TABLE "p" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of Tayshaun Prince?`:
```sql
                SELECT "position" FROM "p" WHERE "player"='tayshaun prince';
```
## Task
Generate a SQL query to answer the following question:
`Who was the parent on the order of 6?`

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

CREATE TABLE "list_of_princesses_royal" (
  "order" real,
  "name_dates" text,
  "princess_royal_from_date_to_date" text,
  "parent" text,
  "date_married" text,
  "husband_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the parent on the order of 6?`:
```sql
                SELECT "parent" FROM "list_of_princesses_royal" WHERE "order"=6;
```
## Task
Generate a SQL query to answer the following question:
`Who was the husband date that was married in 1858?`

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

CREATE TABLE "list_of_princesses_royal" (
  "order" real,
  "name_dates" text,
  "princess_royal_from_date_to_date" text,
  "parent" text,
  "date_married" text,
  "husband_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the husband date that was married in 1858?`:
```sql
                SELECT "husband_dates" FROM "list_of_princesses_royal" WHERE "date_married"='1858';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Opponent of vs. hamilton tiger cats?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Opponent of vs. hamilton tiger cats?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "opponent"='vs. hamilton tiger cats';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Opponent that has the Date of sun, sept 9?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the Date of sun, sept 9?`:
```sql
                SELECT "opponent" FROM "season_schedule" WHERE "date"='sun, sept 9';
```
## Task
Generate a SQL query to answer the following question:
`Which country is Scott Hoch from?`

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

CREATE TABLE "sunday" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is Scott Hoch from?`:
```sql
                SELECT "country" FROM "sunday" WHERE "player"='scott hoch';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the player from Spain?`

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

CREATE TABLE "sunday" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the player from Spain?`:
```sql
                SELECT "place" FROM "sunday" WHERE "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Record is 12-57?`

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

CREATE TABLE "february" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Record is 12-57?`:
```sql
                SELECT "score" FROM "february" WHERE "record"='12-57';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Record is 12-58?`

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

CREATE TABLE "february" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Record is 12-58?`:
```sql
                SELECT "date" FROM "february" WHERE "record"='12-58';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Date is February 5?`

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

CREATE TABLE "february" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Date is February 5?`:
```sql
                SELECT "score" FROM "february" WHERE "date"='february 5';
```
## Task
Generate a SQL query to answer the following question:
`What is H/A/N, when Score is 104-109?`

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

CREATE TABLE "february" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is H/A/N, when Score is 104-109?`:
```sql
                SELECT "h_a_n" FROM "february" WHERE "score"='104-109';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Opponent is Portland Trail Blazers, and when Record is 12-58?`

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

CREATE TABLE "february" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Opponent is Portland Trail Blazers, and when Record is 12-58?`:
```sql
                SELECT "score" FROM "february" WHERE "opponent"='portland trail blazers' AND "record"='12-58';
```
## Task
Generate a SQL query to answer the following question:
`What is H/A/N when Date is February 24?`

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

CREATE TABLE "february" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is H/A/N when Date is February 24?`:
```sql
                SELECT "h_a_n" FROM "february" WHERE "date"='february 24';
```
## Task
Generate a SQL query to answer the following question:
`What is the last game of the season that has the record 0-1-0?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last game of the season that has the record 0-1-0?`:
```sql
                SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='0-1-0';
```
## Task
Generate a SQL query to answer the following question:
`Who had the decision goal when the date was 1?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the decision goal when the date was 1?`:
```sql
                SELECT "decision" FROM "game_log" WHERE "date"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who had the decision goal when the record was 7-7-2?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the decision goal when the record was 7-7-2?`:
```sql
                SELECT "decision" FROM "game_log" WHERE "record"='7-7-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the first game in which Weekes scored the decision goal and the record was 7-4-2?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first game in which Weekes scored the decision goal and the record was 7-4-2?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "decision"='weekes' AND "record"='7-4-2';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of points scored during the 1951 NSWRFL Grand Final?`

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

CREATE TABLE "most_points_scored_by_a_team" (
  "points" real,
  "score" text,
  "premiers" text,
  "runners_up" text,
  "details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of points scored during the 1951 NSWRFL Grand Final?`:
```sql
                SELECT COUNT("points") FROM "most_points_scored_by_a_team" WHERE "details"='1951 nswrfl grand final';
```
## Task
Generate a SQL query to answer the following question:
`Which premier team played the 1951 NSWRFL Grand Final?`

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

CREATE TABLE "most_points_scored_by_a_team" (
  "points" real,
  "score" text,
  "premiers" text,
  "runners_up" text,
  "details" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which premier team played the 1951 NSWRFL Grand Final?`:
```sql
                SELECT "premiers" FROM "most_points_scored_by_a_team" WHERE "details"='1951 nswrfl grand final';
```