cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Result has a Year larger than 2003, and an Award of best supporting actress?`

### 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 Result has a Year larger than 2003, and an Award of best supporting actress?`:
```sql
                SELECT "result" FROM "c_sar_awards" WHERE "year">2003 AND "award"='best supporting actress';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of valid poll with seats more than 4 and candidates more than 9`

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

CREATE TABLE "voting_details" (
  "constituency" text,
  "electorate" real,
  "turnout" text,
  "spoilt" text,
  "valid_poll" real,
  "quota" text,
  "seats" real,
  "candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of valid poll with seats more than 4 and candidates more than 9`:
```sql
                SELECT COUNT("valid_poll") FROM "voting_details" WHERE "seats">4 AND "candidates">9;
```
## Task
Generate a SQL query to answer the following question:
`Name the least valid poll for munster`

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

CREATE TABLE "voting_details" (
  "constituency" text,
  "electorate" real,
  "turnout" text,
  "spoilt" text,
  "valid_poll" real,
  "quota" text,
  "seats" real,
  "candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least valid poll for munster`:
```sql
                SELECT MIN("valid_poll") FROM "voting_details" WHERE "constituency"='munster';
```
## Task
Generate a SQL query to answer the following question:
`Name the average valid poll for seats less than 3`

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

CREATE TABLE "voting_details" (
  "constituency" text,
  "electorate" real,
  "turnout" text,
  "spoilt" text,
  "valid_poll" real,
  "quota" text,
  "seats" real,
  "candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average valid poll for seats less than 3`:
```sql
                SELECT AVG("valid_poll") FROM "voting_details" WHERE "seats"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which Catalog has a Format of 12" maxi, and a Region of france?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Catalog has a Format of 12" maxi, and a Region of france?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "format"='12\" maxi' AND "region"='france';
```
## Task
Generate a SQL query to answer the following question:
`Which Label has a Format of 7" single, and a Date of 1988?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Format of 7" single, and a Date of 1988?`:
```sql
                SELECT "label" FROM "release_history" WHERE "format"='7\" single' AND "date"='1988';
```
## Task
Generate a SQL query to answer the following question:
`Which Label has a Region of germany, and a Format of 12" maxi?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Region of germany, and a Format of 12" maxi?`:
```sql
                SELECT "label" FROM "release_history" WHERE "region"='germany' AND "format"='12\" maxi';
```
## Task
Generate a SQL query to answer the following question:
`Which Label has a Region of canada?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Region of canada?`:
```sql
                SELECT "label" FROM "release_history" WHERE "region"='canada';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Catalog of 887 195-2, and a Format of cd maxi?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Catalog of 887 195-2, and a Format of cd maxi?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='887 195-2' AND "format"='cd maxi';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Region of france?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Region of france?`:
```sql
                SELECT "date" FROM "release_history" WHERE "region"='france';
```
## Task
Generate a SQL query to answer the following question:
`Which Time has an Opponent of shamil abdurahimov?`

### 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,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time has an Opponent of shamil abdurahimov?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='shamil abdurahimov';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has an Event of cage rage 23?`

### 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,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has an Event of cage rage 23?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='cage rage 23';
```
## Task
Generate a SQL query to answer the following question:
`What was the average date with a record of 30-31-9 in a game over 70?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average date with a record of 30-31-9 in a game over 70?`:
```sql
                SELECT AVG("date") FROM "schedule_and_results" WHERE "record"='30-31-9' AND "game">70;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest date at Los Angeles with a game less than 62?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest date at Los Angeles with a game less than 62?`:
```sql
                SELECT MAX("date") FROM "schedule_and_results" WHERE "location_attendance"='los angeles' AND "game"<62;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest date for a game over 69 with a St. Louis Blues opponent?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest date for a game over 69 with a St. Louis Blues opponent?`:
```sql
                SELECT MAX("date") FROM "schedule_and_results" WHERE "game">69 AND "opponent"='st. louis blues';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "date" real,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?`:
```sql
                SELECT MAX("game") FROM "schedule_and_results" WHERE "opponent"='oakland seals' AND "record"='27-30-6' AND "date">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the total attendance for the date of october 5?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total attendance for the date of october 5?`:
```sql
                SELECT SUM("attendance") FROM "regular_season" WHERE "date"='october 5';
```
## Task
Generate a SQL query to answer the following question:
`What record has September 21 as the date?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What record has September 21 as the date?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='september 21';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the match on December 19, 2009?`

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

CREATE TABLE "under_23_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 of the match on December 19, 2009?`:
```sql
                SELECT "score" FROM "under_23_international_goals" WHERE "date"='december 19, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest game against the New York Rangers with more than 55 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest game against the New York Rangers with more than 55 points?`:
```sql
                SELECT MAX("game") FROM "regular_season" WHERE "opponent"='new york rangers' AND "points">55;
```
## Task
Generate a SQL query to answer the following question:
`What's the record for a game past 44 against the Dallas Stars with more than 54 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the record for a game past 44 against the Dallas Stars with more than 54 points?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "points">54 AND "game">44 AND "opponent"='dallas stars';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?`

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

CREATE TABLE "big_five_it_services_company" (
  "firm" text,
  "revenues" text,
  "employees" real,
  "fiscal_year" real,
  "headquarters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?`:
```sql
                SELECT MAX("fiscal_year") FROM "big_five_it_services_company" WHERE "revenues"='$4.3 billion' AND "employees">'85,335';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?`

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

CREATE TABLE "big_five_it_services_company" (
  "firm" text,
  "revenues" text,
  "employees" real,
  "fiscal_year" real,
  "headquarters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?`:
```sql
                SELECT AVG("fiscal_year") FROM "big_five_it_services_company" WHERE "headquarters"='noida' AND "employees"<'85,335';
```
## Task
Generate a SQL query to answer the following question:
`What are the Points after 1991?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Points after 1991?`:
```sql
                SELECT COUNT("points") FROM "grand_prix_career_statistics" WHERE "year">1991;
```
## Task
Generate a SQL query to answer the following question:
`What Class has 36 Points?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Class has 36 Points?`:
```sql
                SELECT "class" FROM "grand_prix_career_statistics" WHERE "points"=36;
```
## Task
Generate a SQL query to answer the following question:
`What is the Class after 1986?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Class after 1986?`:
```sql
                SELECT "class" FROM "grand_prix_career_statistics" WHERE "year">1986;
```
## Task
Generate a SQL query to answer the following question:
`How many attendances had the Detroit Lions as opponents?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many attendances had the Detroit Lions as opponents?`:
```sql
                SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='detroit lions';
```
## Task
Generate a SQL query to answer the following question:
`Who was on the men's doubles in 2010?`

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

CREATE TABLE "previous_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 was on the men's doubles in 2010?`:
```sql
                SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=2010;
```
## Task
Generate a SQL query to answer the following question:
`Which women was on the mixed doubles of tontowi ahmad lilyana natsir in 2011?`

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

CREATE TABLE "previous_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 `Which women was on the mixed doubles of tontowi ahmad lilyana natsir in 2011?`:
```sql
                SELECT "women_s_singles" FROM "previous_winners" WHERE "mixed_doubles"='tontowi ahmad lilyana natsir' AND "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`Which nationality's distance was 500m before 2012, when the record was 1:37.071s?`

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

CREATE TABLE "women_kayak" (
  "distance" text,
  "event" text,
  "record" text,
  "nationality" text,
  "year" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality's distance was 500m before 2012, when the record was 1:37.071s?`:
```sql
                SELECT "nationality" FROM "women_kayak" WHERE "distance"='500m' AND "year"<2012 AND "record"='1:37.071s';
```
## Task
Generate a SQL query to answer the following question:
`Which location's year was 2001 when the record was 3:52.983s?`

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

CREATE TABLE "women_kayak" (
  "distance" text,
  "event" text,
  "record" text,
  "nationality" text,
  "year" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location's year was 2001 when the record was 3:52.983s?`:
```sql
                SELECT "location" FROM "women_kayak" WHERE "year"=2001 AND "record"='3:52.983s';
```
## Task
Generate a SQL query to answer the following question:
`Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s?`

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

CREATE TABLE "women_kayak" (
  "distance" text,
  "event" text,
  "record" text,
  "nationality" text,
  "year" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s?`:
```sql
                SELECT "nationality" FROM "women_kayak" WHERE "distance"='200m' AND "year">1994 AND "record"='33.778s';
```
## Task
Generate a SQL query to answer the following question:
`How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "bronze"=1 AND "rank"='8' AND "silver">1;
```
## Task
Generate a SQL query to answer the following question:
`How many Gold does the Nation in Rank 12 with less than 2 Total medals have?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Gold does the Nation in Rank 12 with less than 2 Total medals have?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "rank"='12' AND "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which NHL team got pick 89?`

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

CREATE TABLE "round_six" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NHL team got pick 89?`:
```sql
                SELECT "nhl_team" FROM "round_six" WHERE "pick_num"='89';
```
## Task
Generate a SQL query to answer the following question:
`Who plays goaltender for the Vancouver Canucks?`

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

CREATE TABLE "round_six" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who plays goaltender for the Vancouver Canucks?`:
```sql
                SELECT "player" FROM "round_six" WHERE "position"='goaltender' AND "nhl_team"='vancouver canucks';
```
## Task
Generate a SQL query to answer the following question:
`What is the % Change at London Heathrow airport?`

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

CREATE TABLE "2004_final_statistics" (
  "rank" real,
  "airport" text,
  "location" text,
  "code_iata" text,
  "total_cargo_metric_tonnes" text,
  "2003_rank" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % Change at London Heathrow airport?`:
```sql
                SELECT "pct_change" FROM "2004_final_statistics" WHERE "airport"='london heathrow airport';
```
## Task
Generate a SQL query to answer the following question:
`What 2003 rank does the airport IATA code SIN have?`

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

CREATE TABLE "2004_final_statistics" (
  "rank" real,
  "airport" text,
  "location" text,
  "code_iata" text,
  "total_cargo_metric_tonnes" text,
  "2003_rank" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2003 rank does the airport IATA code SIN have?`:
```sql
                SELECT "2003_rank" FROM "2004_final_statistics" WHERE "code_iata"='sin';
```
## Task
Generate a SQL query to answer the following question:
`Which airport has an IATA code of AMS?`

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

CREATE TABLE "2004_final_statistics" (
  "rank" real,
  "airport" text,
  "location" text,
  "code_iata" text,
  "total_cargo_metric_tonnes" text,
  "2003_rank" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which airport has an IATA code of AMS?`:
```sql
                SELECT "airport" FROM "2004_final_statistics" WHERE "code_iata"='ams';
```
## Task
Generate a SQL query to answer the following question:
`What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?`

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

CREATE TABLE "2004_final_statistics" (
  "rank" real,
  "airport" text,
  "location" text,
  "code_iata" text,
  "total_cargo_metric_tonnes" text,
  "2003_rank" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?`:
```sql
                SELECT "code_iata" FROM "2004_final_statistics" WHERE "total_cargo_metric_tonnes"='1,838,894';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2003 rank for Los Angeles International airport?`

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

CREATE TABLE "2004_final_statistics" (
  "rank" real,
  "airport" text,
  "location" text,
  "code_iata" text,
  "total_cargo_metric_tonnes" text,
  "2003_rank" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2003 rank for Los Angeles International airport?`:
```sql
                SELECT "2003_rank" FROM "2004_final_statistics" WHERE "airport"='los angeles international airport';
```
## Task
Generate a SQL query to answer the following question:
`What % Change is listed against the airport with a rank less than 8 and a 2003 rank of 6?`

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

CREATE TABLE "2004_final_statistics" (
  "rank" real,
  "airport" text,
  "location" text,
  "code_iata" text,
  "total_cargo_metric_tonnes" text,
  "2003_rank" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What % Change is listed against the airport with a rank less than 8 and a 2003 rank of 6?`:
```sql
                SELECT "pct_change" FROM "2004_final_statistics" WHERE "rank"<8 AND "2003_rank"='6';
```
## Task
Generate a SQL query to answer the following question:
`What district is Wyatt Aiken in?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is Wyatt Aiken in?`:
```sql
                SELECT "district" FROM "south_carolina" WHERE "incumbent"='wyatt aiken';
```
## Task
Generate a SQL query to answer the following question:
`Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "silver">0 AND "total"<3 AND "nation"='bulgaria' AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`Nation of total has what sum of gold?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Nation of total has what sum of gold?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "nation"='total';
```
## Task
Generate a SQL query to answer the following question:
`Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "total"=3 AND "gold">0 AND "nation"='belarus' AND "silver">2;
```
## Task
Generate a SQL query to answer the following question:
`Bronze of 22 has what average silver?`

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

CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Bronze of 22 has what average silver?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "bronze"=22;
```
## Task
Generate a SQL query to answer the following question:
`Which position had 5 games played and a record of 1-2-2?`

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

CREATE TABLE "league_table" (
  "position" real,
  "club_city_town" text,
  "games_played" real,
  "w_l_d" text,
  "goals_for_against" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which position had 5 games played and a record of 1-2-2?`:
```sql
                SELECT "position" FROM "league_table" WHERE "games_played"=5 AND "w_l_d"='1-2-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the leader whose term ended in 2013?`

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

CREATE TABLE "history_of_leaders" (
  "name" text,
  "term_start" real,
  "term_end" text,
  "date_of_birth" text,
  "date_of_death" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the leader whose term ended in 2013?`:
```sql
                SELECT "name" FROM "history_of_leaders" WHERE "term_end"='2013';
```
## Task
Generate a SQL query to answer the following question:
`When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?`

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

CREATE TABLE "history_of_leaders" (
  "name" text,
  "term_start" real,
  "term_end" text,
  "date_of_birth" text,
  "date_of_death" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?`:
```sql
                SELECT "term_start" FROM "history_of_leaders" WHERE "term_end"='1919' AND "date_of_birth"='january 8, 1859';
```
## Task
Generate a SQL query to answer the following question:
`Which leader born on December 17, 1874 started their term before 1984?`

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

CREATE TABLE "history_of_leaders" (
  "name" text,
  "term_start" real,
  "term_end" text,
  "date_of_birth" text,
  "date_of_death" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which leader born on December 17, 1874 started their term before 1984?`:
```sql
                SELECT "name" FROM "history_of_leaders" WHERE "term_start"<1984 AND "date_of_birth"='december 17, 1874';
```
## Task
Generate a SQL query to answer the following question:
`What date shows the Outcome of winner against nikola fraňková carmen klaschka?`

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

CREATE TABLE "doubles_4_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date shows the Outcome of winner against nikola fraňková carmen klaschka?`:
```sql
                SELECT "date" FROM "doubles_4_2" WHERE "outcome"='winner' AND "opponents_in_the_final"='nikola fraňková carmen klaschka';
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome of the jounieh tournament?`

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

CREATE TABLE "doubles_4_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome of the jounieh tournament?`:
```sql
                SELECT "outcome" FROM "doubles_4_2" WHERE "tournament"='jounieh';
```
## Task
Generate a SQL query to answer the following question:
`What date was the score of 6–3 6–4?`

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

CREATE TABLE "doubles_4_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the score of 6–3 6–4?`:
```sql
                SELECT "date" FROM "doubles_4_2" WHERE "score"='6–3 6–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the 9:00 episode that will be shown on the station that will show 20/20 at 10:00?`

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

CREATE TABLE "friday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 9:00 episode that will be shown on the station that will show 20/20 at 10:00?`:
```sql
                SELECT "9_00" FROM "friday" WHERE "10_00"='20/20';
```
## Task
Generate a SQL query to answer the following question:
`What is the 9:00 show that will be aired on the station that airs Dawson's Creek at 8:00?`

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

CREATE TABLE "friday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 9:00 show that will be aired on the station that airs Dawson's Creek at 8:00?`:
```sql
                SELECT "9_00" FROM "friday" WHERE "8_00"='dawson''s creek';
```
## Task
Generate a SQL query to answer the following question:
`What is the 9:30 program airing on the station that airs The Red Green Show at 8:30?`

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

CREATE TABLE "friday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 9:30 program airing on the station that airs The Red Green Show at 8:30?`:
```sql
                SELECT "9_30" FROM "friday" WHERE "8_30"='the red green show';
```
## Task
Generate a SQL query to answer the following question:
`What is the 8:30 program that airs on the station that airs various programs at 7:30?`

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

CREATE TABLE "friday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 8:30 program that airs on the station that airs various programs at 7:30?`:
```sql
                SELECT "8_30" FROM "friday" WHERE "7_30"='various programs';
```
## Task
Generate a SQL query to answer the following question:
`What is the 9:30 program that airs on the station that airs Dawson's Creek at 8:30?`

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

CREATE TABLE "friday" (
  "7_00" text,
  "7_30" text,
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text,
  "10_30" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 9:30 program that airs on the station that airs Dawson's Creek at 8:30?`:
```sql
                SELECT "9_30" FROM "friday" WHERE "8_30"='dawson''s creek';
```
## Task
Generate a SQL query to answer the following question:
`when indiana pacers were the opponent what was the date?`

### 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 `when indiana pacers were the opponent what was the date?`:
```sql
                SELECT "date" FROM "game_log" WHERE "opponent"='indiana pacers';
```
## Task
Generate a SQL query to answer the following question:
`tries against is 55, what is the try bonus?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `tries against is 55, what is the try bonus?`:
```sql
                SELECT "try_bonus" FROM "2007_2008_table" WHERE "tries_against"='55';
```
## Task
Generate a SQL query to answer the following question:
`tries against is 29, what is the points against?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `tries against is 29, what is the points against?`:
```sql
                SELECT "points_against" FROM "2007_2008_table" WHERE "tries_against"='29';
```
## Task
Generate a SQL query to answer the following question:
`tries against correct as of 2007-10-15 has what tries for?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `tries against correct as of 2007-10-15 has what tries for?`:
```sql
                SELECT "tries_for" FROM "2007_2008_table" WHERE "tries_against"='correct as of 2007-10-15';
```
## Task
Generate a SQL query to answer the following question:
`tries against is 88, played is 22, what is the lost?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `tries against is 88, played is 22, what is the lost?`:
```sql
                SELECT "lost" FROM "2007_2008_table" WHERE "played"='22' AND "tries_against"='88';
```
## Task
Generate a SQL query to answer the following question:
`Who won silver in the year before 2010, the year Chan Ming Shu won gold?`

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

CREATE TABLE "taijiquan" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won silver in the year before 2010, the year Chan Ming Shu won gold?`:
```sql
                SELECT "silver" FROM "taijiquan" WHERE "year"<2010 AND "gold"='chan ming shu';
```
## Task
Generate a SQL query to answer the following question:
`What is the location for the year under 2010 and the year Hei Zhi Hong won silver?`

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

CREATE TABLE "taijiquan" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location for the year under 2010 and the year Hei Zhi Hong won silver?`:
```sql
                SELECT "location" FROM "taijiquan" WHERE "year"<2010 AND "silver"='hei zhi hong';
```
## Task
Generate a SQL query to answer the following question:
`Which location had a year over 2006?`

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

CREATE TABLE "taijiquan" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location had a year over 2006?`:
```sql
                SELECT "location" FROM "taijiquan" WHERE "year">2006;
```
## Task
Generate a SQL query to answer the following question:
`Score F–A of 2–0, and a Opponents of walsall has what date?`

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

CREATE TABLE "pre_season_friendles" (
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Score F–A of 2–0, and a Opponents of walsall has what date?`:
```sql
                SELECT "date" FROM "pre_season_friendles" WHERE "score_f_a"='2–0' AND "opponents"='walsall';
```
## Task
Generate a SQL query to answer the following question:
`Score F–A of 3–0, and a Date of 31 july 2007 had what opponents?`

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

CREATE TABLE "pre_season_friendles" (
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Score F–A of 3–0, and a Date of 31 july 2007 had what opponents?`:
```sql
                SELECT "opponents" FROM "pre_season_friendles" WHERE "score_f_a"='3–0' AND "date"='31 july 2007';
```
## Task
Generate a SQL query to answer the following question:
`Opponents of sheffield wednesday had what date?`

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

CREATE TABLE "pre_season_friendles" (
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Opponents of sheffield wednesday had what date?`:
```sql
                SELECT "date" FROM "pre_season_friendles" WHERE "opponents"='sheffield wednesday';
```
## Task
Generate a SQL query to answer the following question:
`Date of 4 august 2007 had what opponents?`

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

CREATE TABLE "pre_season_friendles" (
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of 4 august 2007 had what opponents?`:
```sql
                SELECT "opponents" FROM "pre_season_friendles" WHERE "date"='4 august 2007';
```
## Task
Generate a SQL query to answer the following question:
`WHich Position has a Player of david laliberte?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Position has a Player of david laliberte?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "player"='david laliberte';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Player of gino pisellini?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Player of gino pisellini?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "player"='gino pisellini';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score of standard register ping tournament, which has Kelly Robbins as the runner-up?`

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

CREATE TABLE "lpga_tour_20" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score of standard register ping tournament, which has Kelly Robbins as the runner-up?`:
```sql
                SELECT "winning_score" FROM "lpga_tour_20" WHERE "tournament"='standard register ping' AND "runner_s_up"='kelly robbins';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score of the tournament on 16 May 1993?`

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

CREATE TABLE "lpga_tour_20" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score of the tournament on 16 May 1993?`:
```sql
                SELECT "winning_score" FROM "lpga_tour_20" WHERE "date"='16 may 1993';
```
## Task
Generate a SQL query to answer the following question:
`What is the margin of victory of the tournament on 5 Jun 1988?`

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

CREATE TABLE "lpga_tour_20" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the margin of victory of the tournament on 5 Jun 1988?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_tour_20" WHERE "date"='5 jun 1988';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning scor of the tournament with Robin Walton as the runner-up?`

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

CREATE TABLE "lpga_tour_20" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning scor of the tournament with Robin Walton as the runner-up?`:
```sql
                SELECT "winning_score" FROM "lpga_tour_20" WHERE "runner_s_up"='robin walton';
```
## Task
Generate a SQL query to answer the following question:
`which NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `which NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)?`:
```sql
                SELECT "nhl_team" FROM "draft_picks" WHERE "college_junior_club_team_league"='shattuck-saint mary''s school (midget major aaa)';
```