cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is listed for the Hand that has a 1 credit of 1?`

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

CREATE TABLE "deuces_wild" (
  "hand" text,
  "1_credit" text,
  "2_credits" text,
  "3_credits" text,
  "4_credits" text,
  "5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Hand that has a 1 credit of 1?`:
```sql
                SELECT "hand" FROM "deuces_wild" WHERE "1_credit"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the games number when the Position was wr, and a Number larger than 17?`

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

CREATE TABLE "alabama" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the games number when the Position was wr, and a Number larger than 17?`:
```sql
                SELECT COUNT("games") FROM "alabama" WHERE "position"='wr' AND "number">17;
```
## Task
Generate a SQL query to answer the following question:
`What is the number when the height shows 6'6"', and a Games number smaller than 4?`

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

CREATE TABLE "alabama" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number when the height shows 6'6"', and a Games number smaller than 4?`:
```sql
                SELECT AVG("number") FROM "alabama" WHERE "height"='6''6\"''' AND "games"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the class for the position of lg?`

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

CREATE TABLE "alabama" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class for the position of lg?`:
```sql
                SELECT "class" FROM "alabama" WHERE "position"='lg';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest weight for the Farnley Stakes race?`

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

CREATE TABLE "2001_02_season_as_a_five_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest weight for the Farnley Stakes race?`:
```sql
                SELECT MAX("weight_kg") FROM "2001_02_season_as_a_five_year_old" WHERE "race"='farnley stakes';
```
## Task
Generate a SQL query to answer the following question:
`What time is associated with the event that happened in Tokyo, Japan, ending in a draw, with 3 rounds?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time is associated with the event that happened in Tokyo, Japan, ending in a draw, with 3 rounds?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "location"='tokyo, japan' AND "round"=3 AND "res"='draw';
```
## Task
Generate a SQL query to answer the following question:
`Which 2012 has a 2007 of 0 / 4?`

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

CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
  "tournament" text,
  "1998" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2012 has a 2007 of 0 / 4?`:
```sql
                SELECT "2012" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2007"='0 / 4';
```
## Task
Generate a SQL query to answer the following question:
`Which 2011 has a Career Win-Loss of 7–10?`

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

CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
  "tournament" text,
  "1998" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011 has a Career Win-Loss of 7–10?`:
```sql
                SELECT "2011" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "career_win_loss"='7–10';
```
## Task
Generate a SQL query to answer the following question:
`Which 1998 has a 2002 of 2–4?`

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

CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
  "tournament" text,
  "1998" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1998 has a 2002 of 2–4?`:
```sql
                SELECT "1998" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2002"='2–4';
```
## Task
Generate a SQL query to answer the following question:
`Which 2002 has a 2008 of 3–3?`

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

CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
  "tournament" text,
  "1998" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2002 has a 2008 of 3–3?`:
```sql
                SELECT "2002" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2008"='3–3';
```
## Task
Generate a SQL query to answer the following question:
`Which 2003 has a 2012 of 1r, and a 2008 of 1r?`

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

CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
  "tournament" text,
  "1998" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2003 has a 2012 of 1r, and a 2008 of 1r?`:
```sql
                SELECT "2003" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2012"='1r' AND "2008"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What club is robert gallery a part of`

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

CREATE TABLE "team_players_in_the_nfl" (
  "player" text,
  "position" text,
  "round" real,
  "pick" real,
  "nfl_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club is robert gallery a part of`:
```sql
                SELECT "nfl_club" FROM "team_players_in_the_nfl" WHERE "player"='robert gallery';
```
## Task
Generate a SQL query to answer the following question:
`How many attendance numbers had more than 15 games, and sellouts of more than 8 in the 2011-12 season?`

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

CREATE TABLE "cintas_center" (
  "season" text,
  "record" text,
  "pct" real,
  "games" real,
  "attendance" real,
  "average" real,
  "sellouts" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many attendance numbers had more than 15 games, and sellouts of more than 8 in the 2011-12 season?`:
```sql
                SELECT COUNT("attendance") FROM "cintas_center" WHERE "games">15 AND "sellouts">8 AND "season"='2011-12';
```
## Task
Generate a SQL query to answer the following question:
`What's the mean attendance number when the record is 12-4 and the average is less than 10,027?`

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

CREATE TABLE "cintas_center" (
  "season" text,
  "record" text,
  "pct" real,
  "games" real,
  "attendance" real,
  "average" real,
  "sellouts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the mean attendance number when the record is 12-4 and the average is less than 10,027?`:
```sql
                SELECT AVG("attendance") FROM "cintas_center" WHERE "record"='12-4' AND "average"<'10,027';
```
## Task
Generate a SQL query to answer the following question:
`What is the full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474?`

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

CREATE TABLE "cintas_center" (
  "season" text,
  "record" text,
  "pct" real,
  "games" real,
  "attendance" real,
  "average" real,
  "sellouts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474?`:
```sql
                SELECT COUNT("average") FROM "cintas_center" WHERE "sellouts"<14 AND "season"='2011-12' AND "attendance"<'162,474';
```
## Task
Generate a SQL query to answer the following question:
`What medal was awarded in the men's freestyle 52 kg?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What medal was awarded in the men's freestyle 52 kg?`:
```sql
                SELECT "medal" FROM "list_of_medalists" WHERE "event"='men''s freestyle 52 kg';
```
## Task
Generate a SQL query to answer the following question:
`Events smaller than 1 had what highest cuts made?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `Events smaller than 1 had what highest cuts made?`:
```sql
                SELECT MAX("cuts_made") FROM "summary" WHERE "events"<1;
```
## Task
Generate a SQL query to answer the following question:
`What position was played with a Difference of - 5, and a Played larger than 14?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_c" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position was played with a Difference of - 5, and a Played larger than 14?`:
```sql
                SELECT AVG("position") FROM "campeonato_brasileiro_s_rie_c" WHERE "difference"='- 5' AND "played">14;
```
## Task
Generate a SQL query to answer the following question:
`How many games lost associated with under 14 played?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_c" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games lost associated with under 14 played?`:
```sql
                SELECT COUNT("lost") FROM "campeonato_brasileiro_s_rie_c" WHERE "played"<14;
```
## Task
Generate a SQL query to answer the following question:
`How many games against for team guarani with under 3 draws?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_c" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games against for team guarani with under 3 draws?`:
```sql
                SELECT SUM("against") FROM "campeonato_brasileiro_s_rie_c" WHERE "team"='guarani' AND "drawn"<3;
```
## Task
Generate a SQL query to answer the following question:
`What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill?`

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

CREATE TABLE "legislative_history" (
  "congress" text,
  "bill_number_s" text,
  "date_introduced" text,
  "sponsor_s" text,
  "num_of_cosponsors" real,
  "latest_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill?`:
```sql
                SELECT "congress" FROM "legislative_history" WHERE "num_of_cosponsors"<23 AND "date_introduced"='june 30, 2005';
```
## Task
Generate a SQL query to answer the following question:
`Who sponsored the bill introduced on June 9, 2011?`

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

CREATE TABLE "legislative_history" (
  "congress" text,
  "bill_number_s" text,
  "date_introduced" text,
  "sponsor_s" text,
  "num_of_cosponsors" real,
  "latest_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who sponsored the bill introduced on June 9, 2011?`:
```sql
                SELECT "sponsor_s" FROM "legislative_history" WHERE "date_introduced"='june 9, 2011';
```
## Task
Generate a SQL query to answer the following question:
`Who sponsored the bill that was introduced on June 2, 2009?`

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

CREATE TABLE "legislative_history" (
  "congress" text,
  "bill_number_s" text,
  "date_introduced" text,
  "sponsor_s" text,
  "num_of_cosponsors" real,
  "latest_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who sponsored the bill that was introduced on June 2, 2009?`:
```sql
                SELECT "sponsor_s" FROM "legislative_history" WHERE "date_introduced"='june 2, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome of the Melbourne Tournament?`

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

CREATE TABLE "doubles_12_6_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome of the Melbourne Tournament?`:
```sql
                SELECT "outcome" FROM "doubles_12_6_6" WHERE "tournament"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`In what Tournament was Janet Young a Partner?`

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

CREATE TABLE "doubles_12_6_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Tournament was Janet Young a Partner?`:
```sql
                SELECT "tournament" FROM "doubles_12_6_6" WHERE "partner"='janet young';
```
## Task
Generate a SQL query to answer the following question:
`What was the Outcome of the match with a Score of w/o?`

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

CREATE TABLE "doubles_12_6_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Outcome of the match with a Score of w/o?`:
```sql
                SELECT "outcome" FROM "doubles_12_6_6" WHERE "score"='w/o';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Result of win, and a Streak of won 2, and 76ers points of 96, and a Record of 20-50?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "76ers_points" real,
  "opponent_points" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Result of win, and a Streak of won 2, and 76ers points of 96, and a Record of 20-50?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "result"='win' AND "streak"='won 2' AND "76ers_points"=96 AND "record"='20-50';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Streak of lost 1, and 76ers points smaller than 94, and a Game larger than 13, and a Record of 14-40?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "76ers_points" real,
  "opponent_points" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Streak of lost 1, and 76ers points smaller than 94, and a Game larger than 13, and a Record of 14-40?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "streak"='lost 1' AND "76ers_points"<94 AND "game">13 AND "record"='14-40';
```
## Task
Generate a SQL query to answer the following question:
`Which school or club team has a pick of 139?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school or club team has a pick of 139?`:
```sql
                SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"=139;
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number for the player playing tackle position, and a round less than 15?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for the player playing tackle position, and a round less than 15?`:
```sql
                SELECT SUM("pick") FROM "nfl_draft" WHERE "position"='tackle' AND "round"<15;
```
## Task
Generate a SQL query to answer the following question:
`Which school of club team has a pick of 46?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school of club team has a pick of 46?`:
```sql
                SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"=46;
```
## Task
Generate a SQL query to answer the following question:
`Who got 59.486 for Qual 2?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got 59.486 for Qual 2?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "qual_2"='59.486';
```
## Task
Generate a SQL query to answer the following question:
`Who got 59.578 for Qual 1?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got 59.578 for Qual 1?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "qual_1"='59.578';
```
## Task
Generate a SQL query to answer the following question:
`What team was Andrew Ranger in?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was Andrew Ranger in?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "name"='andrew ranger';
```
## Task
Generate a SQL query to answer the following question:
`What team has 59.372 for qual 1?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has 59.372 for qual 1?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_1"='59.372';
```
## Task
Generate a SQL query to answer the following question:
`What did Alex Tagliani get for Qual 1?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did Alex Tagliani get for Qual 1?`:
```sql
                SELECT "qual_1" FROM "qualifying_results" WHERE "name"='alex tagliani';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game on November 7, 1999?`

### 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 `What was the result of the game on November 7, 1999?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='november 7, 1999';
```
## Task
Generate a SQL query to answer the following question:
`When was the game before week 15 with the result of 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game before week 15 with the result of bye?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"<15 AND "result"='bye';
```
## Task
Generate a SQL query to answer the following question:
`Who is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008?`

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

CREATE TABLE "film" (
  "year" real,
  "title" text,
  "director" text,
  "writer" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008?`:
```sql
                SELECT "writer" FROM "film" WHERE "year"<2008 AND "notes"='short film' AND "title"='wallace & gromit: a close shave';
```
## Task
Generate a SQL query to answer the following question:
`What notes did the creature comforts film have?`

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

CREATE TABLE "film" (
  "year" real,
  "title" text,
  "director" text,
  "writer" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What notes did the creature comforts film have?`:
```sql
                SELECT "notes" FROM "film" WHERE "title"='creature comforts';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?`

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

CREATE TABLE "film" (
  "year" real,
  "title" text,
  "director" text,
  "writer" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?`:
```sql
                SELECT "director" FROM "film" WHERE "title"='wallace & gromit: the curse of the were-rabbit';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year of Wallace & Gromit: The Curse of the Were-Rabbit?`

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

CREATE TABLE "film" (
  "year" real,
  "title" text,
  "director" text,
  "writer" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year of Wallace & Gromit: The Curse of the Were-Rabbit?`:
```sql
                SELECT MIN("year") FROM "film" WHERE "title"='wallace & gromit: the curse of the were-rabbit';
```
## Task
Generate a SQL query to answer the following question:
`what was the length of the game on may 19`

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

CREATE TABLE "schedule" (
  "race" text,
  "length" text,
  "class" text,
  "circuit" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the length of the game on may 19`:
```sql
                SELECT "length" FROM "schedule" WHERE "date"='may 19';
```
## Task
Generate a SQL query to answer the following question:
`March of 26 has what lowest game?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `March of 26 has what lowest game?`:
```sql
                SELECT MIN("game") FROM "schedule_and_results" WHERE "march"=26;
```
## Task
Generate a SQL query to answer the following question:
`March of 29 involves what highest scoring game?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `March of 29 involves what highest scoring game?`:
```sql
                SELECT MAX("game") FROM "schedule_and_results" WHERE "march"=29;
```
## Task
Generate a SQL query to answer the following question:
`Game larger than 76, and a March larger than 26 involves what score?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Game larger than 76, and a March larger than 26 involves what score?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "game">76 AND "march">26;
```
## Task
Generate a SQL query to answer the following question:
`What was the time when the laps were smaller than 66 and the grid was 15?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time when the laps were smaller than 66 and the grid was 15?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "laps"<66 AND "grid"=15;
```
## Task
Generate a SQL query to answer the following question:
`What was the grid for anthony davidson when the laps were less than 8?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the grid for anthony davidson when the laps were less than 8?`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "driver"='anthony davidson' AND "laps"<8;
```
## Task
Generate a SQL query to answer the following question:
`What team did carlos cardus drive for in 1983 when he got less than 21 points?`

### 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 `What team did carlos cardus drive for in 1983 when he got less than 21 points?`:
```sql
                SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "points"<21 AND "year"=1983;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the points when Carlos drove for repsol honda in 8th place?`

### 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 `What is the sum of the points when Carlos drove for repsol honda in 8th place?`:
```sql
                SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "team"='repsol honda' AND "rank"='8th';
```
## Task
Generate a SQL query to answer the following question:
`What is the average points won when Carlos had 0 wins?`

### 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 `What is the average points won when Carlos had 0 wins?`:
```sql
                SELECT AVG("points") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 points?`

### 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 `What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 points?`:
```sql
                SELECT MAX("year") FROM "motorcycle_grand_prix_results" WHERE "team"='repsol honda' AND "wins"<4 AND "points"<162;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of goals from 24 tries and 96 or greater points?`

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

CREATE TABLE "castleford_tigers_career" (
  "year" text,
  "team" text,
  "apps" real,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of goals from 24 tries and 96 or greater points?`:
```sql
                SELECT SUM("goals") FROM "castleford_tigers_career" WHERE "tries"=24 AND "points">96;
```
## Task
Generate a SQL query to answer the following question:
`What year has tries less than 24 and 0 points?`

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

CREATE TABLE "castleford_tigers_career" (
  "year" text,
  "team" text,
  "apps" real,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year has tries less than 24 and 0 points?`:
```sql
                SELECT "year" FROM "castleford_tigers_career" WHERE "tries"<24 AND "points"=0;
```
## Task
Generate a SQL query to answer the following question:
`What Game has a Location of Philadelphia Spectrum and an Opponent of New York Knicks?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Game has a Location of Philadelphia Spectrum and an Opponent of New York Knicks?`:
```sql
                SELECT "game" FROM "game_log" WHERE "location"='philadelphia spectrum' AND "opponent"='new york knicks';
```
## Task
Generate a SQL query to answer the following question:
`What Game has a Location of Philadelphia Spectrum and a Date of April 1?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Game has a Location of Philadelphia Spectrum and a Date of April 1?`:
```sql
                SELECT "game" FROM "game_log" WHERE "location"='philadelphia spectrum' AND "date"='april 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the segment for Netflix episode S08E04?`

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

CREATE TABLE "season_15_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the segment for Netflix episode S08E04?`:
```sql
                SELECT "segment_a" FROM "season_15_2010" WHERE "netflix"='s08e04';
```
## Task
Generate a SQL query to answer the following question:
`What is the Netflix episode for series episode 15-01?`

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

CREATE TABLE "season_15_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Netflix episode for series episode 15-01?`:
```sql
                SELECT "netflix" FROM "season_15_2010" WHERE "series_ep"='15-01';
```
## Task
Generate a SQL query to answer the following question:
`What is the segment A for the episode with Children's Ride-on Cars for segment D?`

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

CREATE TABLE "season_15_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the segment A for the episode with Children's Ride-on Cars for segment D?`:
```sql
                SELECT "segment_a" FROM "season_15_2010" WHERE "segment_d"='children''s ride-on cars';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year with fewer than 5 wins and 89 points?`

### 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,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year with fewer than 5 wins and 89 points?`:
```sql
                SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<5 AND "points"=89;
```
## Task
Generate a SQL query to answer the following question:
`When is the most recent year with more than 27 points and more than 5 wins?`

### 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,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `When is the most recent year with more than 27 points and more than 5 wins?`:
```sql
                SELECT MAX("year") FROM "motorcycle_grand_prix_results" WHERE "points">27 AND "wins">5;
```
## Task
Generate a SQL query to answer the following question:
`What are the sum of points in 1989 with 0 wins?`

### 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,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the sum of points in 1989 with 0 wins?`:
```sql
                SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "wins"=0 AND "year"=1989;
```
## Task
Generate a SQL query to answer the following question:
`Which class has fewer than 89 points and the Honda team later than 1987?`

### 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,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has fewer than 89 points and the Honda team later than 1987?`:
```sql
                SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "points"<89 AND "team"='honda' AND "year">1987;
```
## Task
Generate a SQL query to answer the following question:
`How many points are there later than 1992?`

### 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,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are there later than 1992?`:
```sql
                SELECT COUNT("points") FROM "motorcycle_grand_prix_results" WHERE "year">1992;
```
## Task
Generate a SQL query to answer the following question:
`Where was the event on June 10?`

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

CREATE TABLE "2011_in_sports" (
  "date" text,
  "event" text,
  "location" text,
  "attendance" text,
  "ppv_buyrate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the event on June 10?`:
```sql
                SELECT "location" FROM "2011_in_sports" WHERE "date"='june 10';
```
## Task
Generate a SQL query to answer the following question:
`What event was in New Orleans, Louisiana, USA?`

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

CREATE TABLE "2011_in_sports" (
  "date" text,
  "event" text,
  "location" text,
  "attendance" text,
  "ppv_buyrate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event was in New Orleans, Louisiana, USA?`:
```sql
                SELECT "event" FROM "2011_in_sports" WHERE "location"='new orleans, louisiana, usa';
```
## Task
Generate a SQL query to answer the following question:
`On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?`

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

CREATE TABLE "2011_in_sports" (
  "date" text,
  "event" text,
  "location" text,
  "attendance" text,
  "ppv_buyrate" text
);
### SQL
Given the database schema, here is the SQL query that answers `On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?`:
```sql
                SELECT "ppv_buyrate" FROM "2011_in_sports" WHERE "date"='september 10' AND "event"='strikeforce: heavyweight grand prix semifinals';
```
## Task
Generate a SQL query to answer the following question:
`How many points are there on november 7?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are there on november 7?`:
```sql
                SELECT MAX("points") FROM "regular_season" WHERE "november"=7;
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the game where the Blazers were the home team?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the game where the Blazers were the home team?`:
```sql
                SELECT "score" FROM "march" WHERE "home"='blazers';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game that had the Clippers as visiting team?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game that had the Clippers as visiting team?`:
```sql
                SELECT "attendance" FROM "march" WHERE "visitor"='clippers';
```
## Task
Generate a SQL query to answer the following question:
`Which team has a car # before 99, a Toyota, and is driven by Mike Skinner?`

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

CREATE TABLE "qwik_liner_las_vegas_350" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a car # before 99, a Toyota, and is driven by Mike Skinner?`:
```sql
                SELECT "team" FROM "qwik_liner_las_vegas_350" WHERE "car_num"<99 AND "make"='toyota' AND "driver"='mike skinner';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest position for driver Kyle Busch?`

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

CREATE TABLE "qwik_liner_las_vegas_350" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest position for driver Kyle Busch?`:
```sql
                SELECT MIN("pos") FROM "qwik_liner_las_vegas_350" WHERE "driver"='kyle busch';
```
## Task
Generate a SQL query to answer the following question:
`Who is the team of the Chevrolet, and has a position less than 7, for car # 88?`

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

CREATE TABLE "qwik_liner_las_vegas_350" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team of the Chevrolet, and has a position less than 7, for car # 88?`:
```sql
                SELECT "team" FROM "qwik_liner_las_vegas_350" WHERE "make"='chevrolet' AND "pos"<7 AND "car_num"=88;
```
## Task
Generate a SQL query to answer the following question:
`Which Film has a Result of nominated, and a Year of 2001?`

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

CREATE TABLE "c_sar_awards" (
  "year" real,
  "group" text,
  "award" text,
  "film" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Film has a Result of nominated, and a Year of 2001?`:
```sql
                SELECT "film" FROM "c_sar_awards" WHERE "result"='nominated' AND "year"=2001;
```
## Task
Generate a SQL query to answer the following question:
`Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?`

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

CREATE TABLE "c_sar_awards" (
  "year" real,
  "group" text,
  "award" text,
  "film" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?`:
```sql
                SELECT "award" FROM "c_sar_awards" WHERE "group"='césar awards' AND "result"='nominated' AND "year">2001 AND "film"='8 women (8 femmes)';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Group of césar awards, and a Result of nominated, and an Award of the best actress, and a Film of 8 women (8 femmes)?`

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

CREATE TABLE "c_sar_awards" (
  "year" real,
  "group" text,
  "award" text,
  "film" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Group of césar awards, and a Result of nominated, and an Award of the best actress, and a Film of 8 women (8 femmes)?`:
```sql
                SELECT AVG("year") FROM "c_sar_awards" WHERE "group"='césar awards' AND "result"='nominated' AND "award"='best actress' AND "film"='8 women (8 femmes)';
```
## Task
Generate a SQL query to answer the following question:
`Which Award has a Result of nominated, and a Year of 2003?`

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

CREATE TABLE "c_sar_awards" (
  "year" real,
  "group" text,
  "award" text,
  "film" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Award has a Result of nominated, and a Year of 2003?`:
```sql
                SELECT "award" FROM "c_sar_awards" WHERE "result"='nominated' AND "year"=2003;
```