cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What Canadian Championship has 84 (4) as the league?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "total" text,
  "league" text,
  "canadian_championship" text,
  "concacaf_champions_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Canadian Championship has 84 (4) as the league?`:
```sql
                SELECT "canadian_championship" FROM "most_appearances" WHERE "league"='84 (4)';
```
## Task
Generate a SQL query to answer the following question:
`What Canadian Championship has Ashtone Morgan Category:Articles with hcards as the name?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "total" text,
  "league" text,
  "canadian_championship" text,
  "concacaf_champions_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Canadian Championship has Ashtone Morgan Category:Articles with hcards as the name?`:
```sql
                SELECT "canadian_championship" FROM "most_appearances" WHERE "name"='ashtone morgan category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`What is the total when the name is Carl Robinson Category:Articles with hcards?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "total" text,
  "league" text,
  "canadian_championship" text,
  "concacaf_champions_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when the name is Carl Robinson Category:Articles with hcards?`:
```sql
                SELECT "total" FROM "most_appearances" WHERE "name"='carl robinson category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`What CONCACAF Champions League has 57 (27) as the league?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "total" text,
  "league" text,
  "canadian_championship" text,
  "concacaf_champions_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What CONCACAF Champions League has 57 (27) as the league?`:
```sql
                SELECT "concacaf_champions_league" FROM "most_appearances" WHERE "league"='57 (27)';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Games are less than 38, when Rank is less than 4, and when Points are 357?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Games are less than 38, when Rank is less than 4, and when Points are 357?`:
```sql
                SELECT "name" FROM "rebounds" WHERE "games"<38 AND "rank"<4 AND "points"=357;
```
## Task
Generate a SQL query to answer the following question:
`What is Team, when Rank is greater than 2, and when Points are greater than 259?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when Rank is greater than 2, and when Points are greater than 259?`:
```sql
                SELECT "team" FROM "rebounds" WHERE "rank">2 AND "points">259;
```
## Task
Generate a SQL query to answer the following question:
`What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357?`:
```sql
                SELECT MAX("games") FROM "rebounds" WHERE "team"='ciudad de la laguna' AND "points">357;
```
## Task
Generate a SQL query to answer the following question:
`What is Points, when Name is Ondrej Starosta?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Points, when Name is Ondrej Starosta?`:
```sql
                SELECT "points" FROM "rebounds" WHERE "name"='ondrej starosta';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value for Points, when Games is greater than 34, and when Name is Andrew Panko?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value for Points, when Games is greater than 34, and when Name is Andrew Panko?`:
```sql
                SELECT MIN("points") FROM "rebounds" WHERE "games">34 AND "name"='andrew panko';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value for Points, when Games is 21, and when Rank is greater than 2?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value for Points, when Games is 21, and when Rank is greater than 2?`:
```sql
                SELECT MAX("points") FROM "rebounds" WHERE "games"=21 AND "rank">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the record on 2007-06-21 with a mark less than 91.29?`

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

CREATE TABLE "men_s_best_throwers_of_all_time_current_" (
  "rank" real,
  "mark" real,
  "athlete" text,
  "place" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of the record on 2007-06-21 with a mark less than 91.29?`:
```sql
                SELECT AVG("rank") FROM "men_s_best_throwers_of_all_time_current_" WHERE "date"='2007-06-21' AND "mark"<91.29;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest mark of the rank 8 record?`

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

CREATE TABLE "men_s_best_throwers_of_all_time_current_" (
  "rank" real,
  "mark" real,
  "athlete" text,
  "place" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest mark of the rank 8 record?`:
```sql
                SELECT MIN("mark") FROM "men_s_best_throwers_of_all_time_current_" WHERE "rank"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the record on 1996-05-25 with a mark greater than 90.73?`

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

CREATE TABLE "men_s_best_throwers_of_all_time_current_" (
  "rank" real,
  "mark" real,
  "athlete" text,
  "place" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the record on 1996-05-25 with a mark greater than 90.73?`:
```sql
                SELECT "place" FROM "men_s_best_throwers_of_all_time_current_" WHERE "mark">90.73 AND "date"='1996-05-25';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the rank 6 record, which has a mark greater than 91.29?`

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

CREATE TABLE "men_s_best_throwers_of_all_time_current_" (
  "rank" real,
  "mark" real,
  "athlete" text,
  "place" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the rank 6 record, which has a mark greater than 91.29?`:
```sql
                SELECT "place" FROM "men_s_best_throwers_of_all_time_current_" WHERE "mark">91.29 AND "rank"=6;
```
## Task
Generate a SQL query to answer the following question:
`What competition has a venue in Hampden Park, Glasgow?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition has a venue in Hampden Park, Glasgow?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "venue"='hampden park, glasgow';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in Hampden Park, Glasgow?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in Hampden Park, Glasgow?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "venue"='hampden park, glasgow';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Notes of 2:28:31?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Notes of 2:28:31?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "notes"='2:28:31';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Competition of venice marathon?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Competition of venice marathon?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "competition"='venice marathon';
```
## Task
Generate a SQL query to answer the following question:
`Which Year that has Notes of dnf?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year that has Notes of dnf?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "notes"='dnf';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Year larger than 2000?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has a Year larger than 2000?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "year">2000;
```
## Task
Generate a SQL query to answer the following question:
`What date has a set 4 of 25-19?`

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

CREATE TABLE "results_pool_f" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has a set 4 of 25-19?`:
```sql
                SELECT "date" FROM "results_pool_f" WHERE "set_4"='25-19';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the set 2 of 25-18?`

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

CREATE TABLE "results_pool_f" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the set 2 of 25-18?`:
```sql
                SELECT "total" FROM "results_pool_f" WHERE "set_2"='25-18';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for set 2 of 25-19?`

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

CREATE TABLE "results_pool_f" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for set 2 of 25-19?`:
```sql
                SELECT "total" FROM "results_pool_f" WHERE "set_2"='25-19';
```
## Task
Generate a SQL query to answer the following question:
`What is set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16?`

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

CREATE TABLE "results_pool_f" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16?`:
```sql
                SELECT "set_3" FROM "results_pool_f" WHERE "set_5"='na' AND "set_1"='21-25' AND "set_2"='25-16';
```
## Task
Generate a SQL query to answer the following question:
`What is the set 1 for the date jun 26, and a set 2 of 25-16?`

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

CREATE TABLE "results_pool_f" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the set 1 for the date jun 26, and a set 2 of 25-16?`:
```sql
                SELECT "set_1" FROM "results_pool_f" WHERE "date"='jun 26' AND "set_2"='25-16';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for set 2 17-25?`

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

CREATE TABLE "results_pool_f" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for set 2 17-25?`:
```sql
                SELECT "total" FROM "results_pool_f" WHERE "set_2"='17-25';
```
## Task
Generate a SQL query to answer the following question:
`What Opponent has a Score that is 1-6, 3-6?`

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

CREATE TABLE "singles_finals_18_11_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Opponent has a Score that is 1-6, 3-6?`:
```sql
                SELECT "opponent" FROM "singles_finals_18_11_7" WHERE "score"='1-6, 3-6';
```
## Task
Generate a SQL query to answer the following question:
`What writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title?`

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

CREATE TABLE "2000s" (
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title?`:
```sql
                SELECT "writer" FROM "2000s" WHERE "artist"='mort drucker' AND "issue">470 AND "actual_title"='law & order: svu';
```
## Task
Generate a SQL query to answer the following question:
`What date has ed as an actual title?`

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

CREATE TABLE "2000s" (
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has ed as an actual title?`:
```sql
                SELECT "date" FROM "2000s" WHERE "actual_title"='ed';
```
## Task
Generate a SQL query to answer the following question:
`What isssue has 7th heaven as an actual title?`

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

CREATE TABLE "2000s" (
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What isssue has 7th heaven as an actual title?`:
```sql
                SELECT "issue" FROM "2000s" WHERE "actual_title"='7th heaven';
```
## Task
Generate a SQL query to answer the following question:
`What issue has mort drucker as the artist and february 2001 as the date?`

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

CREATE TABLE "2000s" (
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What issue has mort drucker as the artist and february 2001 as the date?`:
```sql
                SELECT "issue" FROM "2000s" WHERE "artist"='mort drucker' AND "date"='february 2001';
```
## Task
Generate a SQL query to answer the following question:
`In what Week was the Attendance 39,434?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what Week was the Attendance 39,434?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"<'39,434';
```
## Task
Generate a SQL query to answer the following question:
`What is the first Week against Cincinnati Bengals with an Attendance greater than 58,615?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first Week against Cincinnati Bengals with an Attendance greater than 58,615?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "attendance">'58,615' AND "opponent"='cincinnati bengals';
```
## Task
Generate a SQL query to answer the following question:
`What year was the match were xavier malisse was the runner-up against lleyton hewitt?`

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

CREATE TABLE "singles_12_3_titles_9_runners_up" (
  "outcome" text,
  "year" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the match were xavier malisse was the runner-up against lleyton hewitt?`:
```sql
                SELECT "year" FROM "singles_12_3_titles_9_runners_up" WHERE "outcome"='runner-up' AND "opponent"='lleyton hewitt';
```
## Task
Generate a SQL query to answer the following question:
`What year was the match against filippo volandri where xavier malisse was runner-up?`

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

CREATE TABLE "singles_12_3_titles_9_runners_up" (
  "outcome" text,
  "year" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the match against filippo volandri where xavier malisse was runner-up?`:
```sql
                SELECT "year" FROM "singles_12_3_titles_9_runners_up" WHERE "outcome"='runner-up' AND "opponent"='filippo volandri';
```
## Task
Generate a SQL query to answer the following question:
`How many against have a difference of 6, with a played greater than 19?`

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

CREATE TABLE "laf_s_campeonato_paulista" (
  "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 against have a difference of 6, with a played greater than 19?`:
```sql
                SELECT SUM("against") FROM "laf_s_campeonato_paulista" WHERE "difference"='6' AND "played">19;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest drawn that has a played greater than 19, with a position less than 2?`

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

CREATE TABLE "laf_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest drawn that has a played greater than 19, with a position less than 2?`:
```sql
                SELECT MIN("drawn") FROM "laf_s_campeonato_paulista" WHERE "played">19 AND "position"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?`

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

CREATE TABLE "laf_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?`:
```sql
                SELECT AVG("against") FROM "laf_s_campeonato_paulista" WHERE "drawn"<7 AND "points">22 AND "played"=19;
```
## Task
Generate a SQL query to answer the following question:
`When has a TV Time of fox 12:00 pm cdt?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "tv_time" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a TV Time of fox 12:00 pm cdt?`:
```sql
                SELECT "date" FROM "schedule" WHERE "tv_time"='fox 12:00 pm cdt';
```
## Task
Generate a SQL query to answer the following question:
`When has a Week of 8?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "tv_time" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Week of 8?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "tv_time" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "result"='l 13-16' AND "opponent"='at buffalo bills';
```
## Task
Generate a SQL query to answer the following question:
`What kind of TV Time that has a Result of w 24–10?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "tv_time" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of TV Time that has a Result of w 24–10?`:
```sql
                SELECT "tv_time" FROM "schedule" WHERE "result"='w 24–10';
```
## Task
Generate a SQL query to answer the following question:
`What played at 8:00 when Grey's Anatomy played at 9:00 and Ugly Betty played at 8:30?`

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

CREATE TABLE "thursday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What played at 8:00 when Grey's Anatomy played at 9:00 and Ugly Betty played at 8:30?`:
```sql
                SELECT "8_00" FROM "thursday" WHERE "9_00"='grey''s anatomy' AND "8_30"='ugly betty';
```
## Task
Generate a SQL query to answer the following question:
`What played at 8:00 when there was local programming at 10:00 and Supernatural played at 9:00?`

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

CREATE TABLE "thursday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What played at 8:00 when there was local programming at 10:00 and Supernatural played at 9:00?`:
```sql
                SELECT "8_00" FROM "thursday" WHERE "10_00"='local programming' AND "9_00"='supernatural';
```
## Task
Generate a SQL query to answer the following question:
`What show played at 8:00 when Ugly Betty played at 8:30?`

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

CREATE TABLE "thursday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show played at 8:00 when Ugly Betty played at 8:30?`:
```sql
                SELECT "8_00" FROM "thursday" WHERE "8_30"='ugly betty';
```
## Task
Generate a SQL query to answer the following question:
`When Grey's Anatomy aired at 9:30 what aired at 9:00?`

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

CREATE TABLE "thursday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Grey's Anatomy aired at 9:30 what aired at 9:00?`:
```sql
                SELECT "9_00" FROM "thursday" WHERE "9_30"='grey''s anatomy';
```
## Task
Generate a SQL query to answer the following question:
`When My Name is Earl played at 8:00 what aired at 9:30?`

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

CREATE TABLE "thursday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `When My Name is Earl played at 8:00 what aired at 9:30?`:
```sql
                SELECT "9_30" FROM "thursday" WHERE "8_00"='my name is earl';
```
## Task
Generate a SQL query to answer the following question:
`What was the division when Jim O'Brien was the head coach and the team finished 2nd in the division?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conf" text,
  "conf_finish" text,
  "div" text,
  "div_finish" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the division when Jim O'Brien was the head coach and the team finished 2nd in the division?`:
```sql
                SELECT "div" FROM "seasons" WHERE "div_finish"='2nd' AND "head_coach"='jim o''brien';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the conference that K. C. Jones was a head coach in?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conf" text,
  "conf_finish" text,
  "div" text,
  "div_finish" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the conference that K. C. Jones was a head coach in?`:
```sql
                SELECT "conf" FROM "seasons" WHERE "head_coach"='k. c. jones';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest assists of the game on March 5?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest assists of the game on March 5?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='march 5';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of appearances by new zealand when they scored 4 goals?`

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

CREATE TABLE "players" (
  "name" text,
  "nationality" text,
  "position" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of appearances by new zealand when they scored 4 goals?`:
```sql
                SELECT MIN("appearances") FROM "players" WHERE "goals"=4 AND "nationality"='new zealand';
```
## Task
Generate a SQL query to answer the following question:
`how many appearances did batram suri category:articles with hcards have scoring less than 2 goals?`

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

CREATE TABLE "players" (
  "name" text,
  "nationality" text,
  "position" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many appearances did batram suri category:articles with hcards have scoring less than 2 goals?`:
```sql
                SELECT COUNT("appearances") FROM "players" WHERE "name"='batram suri category:articles with hcards' AND "goals"<2;
```
## Task
Generate a SQL query to answer the following question:
`What region has a 2002 population greater than 132,798, an area larger than 5,528.3, and the cachapoal province?`

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

CREATE TABLE "list_of_provinces" (
  "region" text,
  "province" text,
  "capital" text,
  "no_of_communes" real,
  "area" real,
  "2002_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What region has a 2002 population greater than 132,798, an area larger than 5,528.3, and the cachapoal province?`:
```sql
                SELECT "region" FROM "list_of_provinces" WHERE "2002_population">'132,798' AND "area">'5,528.3' AND "province"='cachapoal';
```
## Task
Generate a SQL query to answer the following question:
`What is the total 2002 population of the province with putre as the capital, less than 3 communes, and an area larger than 11,919.5?`

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

CREATE TABLE "list_of_provinces" (
  "region" text,
  "province" text,
  "capital" text,
  "no_of_communes" real,
  "area" real,
  "2002_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total 2002 population of the province with putre as the capital, less than 3 communes, and an area larger than 11,919.5?`:
```sql
                SELECT COUNT("2002_population") FROM "list_of_provinces" WHERE "no_of_communes"<3 AND "area">'11,919.5' AND "capital"='putre';
```
## Task
Generate a SQL query to answer the following question:
`What province has a v valparaíso region and an area of 927.2?`

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

CREATE TABLE "list_of_provinces" (
  "region" text,
  "province" text,
  "capital" text,
  "no_of_communes" real,
  "area" real,
  "2002_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What province has a v valparaíso region and an area of 927.2?`:
```sql
                SELECT "province" FROM "list_of_provinces" WHERE "region"='v valparaíso' AND "area"=927.2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average area with valparaíso as the capital?`

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

CREATE TABLE "list_of_provinces" (
  "region" text,
  "province" text,
  "capital" text,
  "no_of_communes" real,
  "area" real,
  "2002_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average area with valparaíso as the capital?`:
```sql
                SELECT AVG("area") FROM "list_of_provinces" WHERE "capital"='valparaíso';
```
## Task
Generate a SQL query to answer the following question:
`WHich Category in White has a Amerindian of 4,87%?`

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

CREATE TABLE "controversy" (
  "category" text,
  "frequency" text,
  "white" text,
  "brown" text,
  "black" text,
  "amerindian" text,
  "yellow" text,
  "total" text,
  "difference_between_white_and_black" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Category in White has a Amerindian of 4,87%?`:
```sql
                SELECT "white" FROM "controversy" WHERE "amerindian"='4,87%';
```
## Task
Generate a SQL query to answer the following question:
`WHich Category in White has a Black of 38,05%?`

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

CREATE TABLE "controversy" (
  "category" text,
  "frequency" text,
  "white" text,
  "brown" text,
  "black" text,
  "amerindian" text,
  "yellow" text,
  "total" text,
  "difference_between_white_and_black" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Category in White has a Black of 38,05%?`:
```sql
                SELECT "white" FROM "controversy" WHERE "black"='38,05%';
```
## Task
Generate a SQL query to answer the following question:
`Which Category in Brown has a Frequency of 0.08%?`

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

CREATE TABLE "controversy" (
  "category" text,
  "frequency" text,
  "white" text,
  "brown" text,
  "black" text,
  "amerindian" text,
  "yellow" text,
  "total" text,
  "difference_between_white_and_black" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Category in Brown has a Frequency of 0.08%?`:
```sql
                SELECT "brown" FROM "controversy" WHERE "frequency"='0.08%';
```
## Task
Generate a SQL query to answer the following question:
`Which Category in Black has a Brown of 6,54%?`

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

CREATE TABLE "controversy" (
  "category" text,
  "frequency" text,
  "white" text,
  "brown" text,
  "black" text,
  "amerindian" text,
  "yellow" text,
  "total" text,
  "difference_between_white_and_black" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Category in Black has a Brown of 6,54%?`:
```sql
                SELECT "black" FROM "controversy" WHERE "brown"='6,54%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Capacity in use with an Annual change that is 21.8%?`

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

CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Capacity in use with an Annual change that is 21.8%?`:
```sql
                SELECT "capacity_in_use" FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "annual_change"='21.8%';
```
## Task
Generate a SQL query to answer the following question:
`How many Tries has Points for smaller than 137, and Tries against larger than 12?`

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

CREATE TABLE "pool_2" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Tries has Points for smaller than 137, and Tries against larger than 12?`:
```sql
                SELECT COUNT("tries_for") FROM "pool_2" WHERE "points_for"<137 AND "tries_against">12;
```
## Task
Generate a SQL query to answer the following question:
`WHich Team that has Points against of 43?`

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

CREATE TABLE "pool_2" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Team that has Points against of 43?`:
```sql
                SELECT "team" FROM "pool_2" WHERE "points_against"=43;
```
## Task
Generate a SQL query to answer the following question:
`WHich Tries has a Team of pau and Points against larger than 103?`

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

CREATE TABLE "pool_2" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Tries has a Team of pau and Points against larger than 103?`:
```sql
                SELECT MIN("tries_for") FROM "pool_2" WHERE "team"='pau' AND "points_against">103;
```
## Task
Generate a SQL query to answer the following question:
`How many Points against has Tries for smaller than 14, and a Team of llanelli?`

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

CREATE TABLE "pool_2" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points against has Tries for smaller than 14, and a Team of llanelli?`:
```sql
                SELECT AVG("points_against") FROM "pool_2" WHERE "tries_for"<14 AND "team"='llanelli';
```
## Task
Generate a SQL query to answer the following question:
`How many Tries against has a Try diff of –17 and Points for smaller than 80?`

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

CREATE TABLE "pool_2" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Tries against has a Try diff of –17 and Points for smaller than 80?`:
```sql
                SELECT COUNT("tries_against") FROM "pool_2" WHERE "try_diff"='–17' AND "points_for"<80;
```
## Task
Generate a SQL query to answer the following question:
`Which player was the forward?`

### 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_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was the forward?`:
```sql
                SELECT "player" FROM "p" WHERE "position"='forward';
```
## Task
Generate a SQL query to answer the following question:
`Which years in Orlando are featured with the center position?`

### 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_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years in Orlando are featured with the center position?`:
```sql
                SELECT "years_in_orlando" FROM "p" WHERE "position"='center';
```
## Task
Generate a SQL query to answer the following question:
`Which position was in Orlando in 2000?`

### 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_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position was in Orlando in 2000?`:
```sql
                SELECT "position" FROM "p" WHERE "years_in_orlando"='2000';
```
## Task
Generate a SQL query to answer the following question:
`Who were the winners of the Women's Doubles in the years after 2009?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the winners of the Women's Doubles in the years after 2009?`:
```sql
                SELECT "women_s_doubles" FROM "past_winners" WHERE "year">2009;
```
## Task
Generate a SQL query to answer the following question:
`Who were the Men's doubles of the years that had Kristína Ludíková as Women's singles after the year 2008?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the Men's doubles of the years that had Kristína Ludíková as Women's singles after the year 2008?`:
```sql
                SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_singles"='kristína ludíková' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What is the Name with Goals that are 135?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name with Goals that are 135?`:
```sql
                SELECT "name" FROM "list_of_top_association_football_goal_sc" WHERE "goals"=135;
```
## Task
Generate a SQL query to answer the following question:
`Which American Labor candidate ran against Democratic candidate Robert F. Wagner?`

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

CREATE TABLE "1938_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which American Labor candidate ran against Democratic candidate Robert F. Wagner?`:
```sql
                SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "democratic_ticket"='robert f. wagner';
```
## Task
Generate a SQL query to answer the following question:
`Which Socialist candidate ran against American Labor candidate Caroline O'Day?`

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

CREATE TABLE "1938_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Socialist candidate ran against American Labor candidate Caroline O'Day?`:
```sql
                SELECT "socialist_ticket" FROM "1938_state_election_results" WHERE "american_labor_ticket"='caroline o''day';
```
## Task
Generate a SQL query to answer the following question:
`Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?`

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

CREATE TABLE "1938_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?`:
```sql
                SELECT "democratic_ticket" FROM "1938_state_election_results" WHERE "socialist_ticket"='edna mitchell blue';
```
## Task
Generate a SQL query to answer the following question:
`Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?`

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

CREATE TABLE "1938_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?`:
```sql
                SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "socialist_ticket"='herman j. hahn';
```
## Task
Generate a SQL query to answer the following question:
`Which Republican ran against the American Labor candidate Matthew J. Merritt?`

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

CREATE TABLE "1938_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Republican ran against the American Labor candidate Matthew J. Merritt?`:
```sql
                SELECT "republican_ticket" FROM "1938_state_election_results" WHERE "american_labor_ticket"='matthew j. merritt';
```
## Task
Generate a SQL query to answer the following question:
`Which American Labor candidate ran against Republican Thomas E. Dewey?`

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

CREATE TABLE "1938_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which American Labor candidate ran against Republican Thomas E. Dewey?`:
```sql
                SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "republican_ticket"='thomas e. dewey';
```