cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Sum of Score, when Place is T2, and when Player is Justin Leonard?`

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

CREATE TABLE "first_round_thursday" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Sum of Score, when Place is T2, and when Player is Justin Leonard?`:
```sql
                SELECT SUM("score") FROM "first_round_thursday" WHERE "place"='t2' AND "player"='justin leonard';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is less than 67, and when Country is South Africa?`

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

CREATE TABLE "first_round_thursday" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Score is less than 67, and when Country is South Africa?`:
```sql
                SELECT "place" FROM "first_round_thursday" WHERE "score"<67 AND "country"='south africa';
```
## Task
Generate a SQL query to answer the following question:
`What show was on at 8:00 when american idol was on at 9:00?`

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

CREATE TABLE "tuesday" (
  "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 was on at 8:00 when american idol was on at 9:00?`:
```sql
                SELECT "8_00" FROM "tuesday" WHERE "9_00"='american idol';
```
## Task
Generate a SQL query to answer the following question:
`What was on at 8:30 when dancing with the stars: the results was on at 9:30?`

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

CREATE TABLE "tuesday" (
  "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 was on at 8:30 when dancing with the stars: the results was on at 9:30?`:
```sql
                SELECT "8_30" FROM "tuesday" WHERE "9_30"='dancing with the stars: the results';
```
## Task
Generate a SQL query to answer the following question:
`What was on at 8:30 when dancing with the stars: the results was on at 9:30?`

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

CREATE TABLE "tuesday" (
  "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 was on at 8:30 when dancing with the stars: the results was on at 9:30?`:
```sql
                SELECT "8_30" FROM "tuesday" WHERE "9_00"='dancing with the stars: the results';
```
## Task
Generate a SQL query to answer the following question:
`What was on at 10:00 when ncis was on at 8:00?`

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

CREATE TABLE "tuesday" (
  "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 was on at 10:00 when ncis was on at 8:00?`:
```sql
                SELECT "10_00" FROM "tuesday" WHERE "8_00"='ncis';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Team that has the Laps of 379?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Team that has the Laps of 379?`:
```sql
                SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "laps"=379;
```
## Task
Generate a SQL query to answer the following question:
`What is the Tournament with a Margin of victory that was 4 strokes?`

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

CREATE TABLE "pga_tour_wins_21" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tournament with a Margin of victory that was 4 strokes?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_21" WHERE "margin_of_victory"='4 strokes';
```
## Task
Generate a SQL query to answer the following question:
`What is 1999, when 1998 is 2R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1999, when 1998 is 2R?`:
```sql
                SELECT "1999" FROM "singles_performance_timeline" WHERE "1998"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is 1998, when 1994 is Grand Slam Tournaments?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1998, when 1994 is Grand Slam Tournaments?`:
```sql
                SELECT "1998" FROM "singles_performance_timeline" WHERE "1994"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is 2009, when 2000 is 1R, and when 1998 is 3R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2009, when 2000 is 1R, and when 1998 is 3R?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2000"='1r' AND "1998"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What is 2009, when 2008 is 1R, and when Tournament is French Open?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2009, when 2008 is 1R, and when Tournament is French Open?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2008"='1r' AND "tournament"='french open';
```
## Task
Generate a SQL query to answer the following question:
`What is 2009, when 2004 is 2R, and when 1993 is A?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2009, when 2004 is 2R, and when 1993 is A?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2004"='2r' AND "1993"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the average amount of gold medals for a country with more than 12 total medals?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average amount of gold medals for a country with more than 12 total medals?`:
```sql
                SELECT AVG("gold") FROM "medals_table" WHERE "total">12;
```
## Task
Generate a SQL query to answer the following question:
`Who were the Visitor when the Nets were the Home team?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the Visitor when the Nets were the Home team?`:
```sql
                SELECT "visitor" FROM "november" WHERE "home"='nets';
```
## Task
Generate a SQL query to answer the following question:
`What Leading scorer had a Score of 80–112?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Leading scorer had a Score of 80–112?`:
```sql
                SELECT "leading_scorer" FROM "november" WHERE "score"='80–112';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the tournament played on Sep 20, 1981, ending with a margin of vicroty of 2 strokes?`

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

CREATE TABLE "pga_tour_wins_16" (
  "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 name of the tournament played on Sep 20, 1981, ending with a margin of vicroty of 2 strokes?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_16" WHERE "margin_of_victory"='2 strokes' AND "date"='sep 20, 1981';
```
## Task
Generate a SQL query to answer the following question:
`For the tournament played on Jul 4, 1982, what was the winning score?`

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

CREATE TABLE "pga_tour_wins_16" (
  "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 `For the tournament played on Jul 4, 1982, what was the winning score?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_16" WHERE "date"='jul 4, 1982';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score for the Andy Williams-San Diego Open Invitational tournament?`

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

CREATE TABLE "pga_tour_wins_16" (
  "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 was the winning score for the Andy Williams-San Diego Open Invitational tournament?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_16" WHERE "tournament"='andy williams-san diego open invitational';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner(s)-up for the tournament played on Jun 3, 1973?`

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

CREATE TABLE "pga_tour_wins_16" (
  "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 `Who was the runner(s)-up for the tournament played on Jun 3, 1973?`:
```sql
                SELECT "runner_s_up" FROM "pga_tour_wins_16" WHERE "date"='jun 3, 1973';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score for the tournament played on Jul 14, 1973?`

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

CREATE TABLE "pga_tour_wins_16" (
  "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 was the winning score for the tournament played on Jul 14, 1973?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_16" WHERE "date"='jul 14, 1973';
```
## Task
Generate a SQL query to answer the following question:
`In which tournament was Gil Morgan the runner-up?`

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

CREATE TABLE "pga_tour_wins_16" (
  "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 `In which tournament was Gil Morgan the runner-up?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_16" WHERE "runner_s_up"='gil morgan';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance when the Atlanta Falcons played for a week smaller than 10?`

### 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,
  "tv_time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance when the Atlanta Falcons played for a week smaller than 10?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='atlanta falcons' AND "week"<10;
```
## Task
Generate a SQL query to answer the following question:
`What is the Result when the Theme was by Dolly Parton?`

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

CREATE TABLE "performances_results" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result when the Theme was by Dolly Parton?`:
```sql
                SELECT "result" FROM "performances_results" WHERE "theme"='dolly parton';
```
## Task
Generate a SQL query to answer the following question:
`What is the Order # when the song choice was " you're so vain "?`

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

CREATE TABLE "performances_results" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Order # when the song choice was " you're so vain "?`:
```sql
                SELECT "order_num" FROM "performances_results" WHERE "song_choice"='\" you''re so vain \"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Theme when the Original artist was carole king, and a Week # shows hollywood?`

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

CREATE TABLE "performances_results" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Theme when the Original artist was carole king, and a Week # shows hollywood?`:
```sql
                SELECT "theme" FROM "performances_results" WHERE "original_artist"='carole king' AND "week_num"='hollywood';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result when the Song choice was "beautiful"?`

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

CREATE TABLE "performances_results" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result when the Song choice was "beautiful"?`:
```sql
                SELECT "result" FROM "performances_results" WHERE "song_choice"='\"beautiful\"';
```
## Task
Generate a SQL query to answer the following question:
`What Week # that is there an Order # of 7, and the Song choice was " let it be "?`

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

CREATE TABLE "performances_results" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Week # that is there an Order # of 7, and the Song choice was " let it be "?`:
```sql
                SELECT "week_num" FROM "performances_results" WHERE "order_num"='7' AND "song_choice"='\" let it be \"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Song choice when there is an Order # of 4?`

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

CREATE TABLE "performances_results" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Song choice when there is an Order # of 4?`:
```sql
                SELECT "song_choice" FROM "performances_results" WHERE "order_num"='4';
```
## Task
Generate a SQL query to answer the following question:
`What proto-oceanic has louse as the animal?`

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

CREATE TABLE "animals" (
  "animal" text,
  "proto_austronesian" text,
  "proto_malayo_polynesian" text,
  "proto_oceanic" text,
  "proto_polynesian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What proto-oceanic has louse as the animal?`:
```sql
                SELECT "proto_oceanic" FROM "animals" WHERE "animal"='louse';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of delegate that have 4 counties carries and more than 1,903 state delegates?`

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

CREATE TABLE "96pct_of_precincts_reporting" (
  "candidate" text,
  "state_delegate" real,
  "percentage" text,
  "delegates" real,
  "counties_carries" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of delegate that have 4 counties carries and more than 1,903 state delegates?`:
```sql
                SELECT SUM("delegates") FROM "96pct_of_precincts_reporting" WHERE "counties_carries"=4 AND "state_delegate">'1,903';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team with an Away team that is oxford united?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team with an Away team that is oxford united?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='oxford united';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team with an Away team that is wrexham?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team with an Away team that is wrexham?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='wrexham';
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Silver of 7, and a Bronze smaller than 7?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold has a Silver of 7, and a Bronze smaller than 7?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "silver"=7 AND "bronze"<7;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Silver of 15, and a Gold smaller than 20?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Silver of 15, and a Gold smaller than 20?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "silver"=15 AND "gold"<20;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Silver of 7, and a Total larger than 25?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Silver of 7, and a Total larger than 25?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=7 AND "total">25;
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Bronze larger than 1, and a Total larger than 80?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold has a Bronze larger than 1, and a Total larger than 80?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "bronze">1 AND "total">80;
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver">8 AND "bronze"=20 AND "gold"<20;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of NA for set 4, a score of 3-0 and a 26-24 for set 2?`

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

CREATE TABLE "results_pool_c" (
  "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 of NA for set 4, a score of 3-0 and a 26-24 for set 2?`:
```sql
                SELECT "total" FROM "results_pool_c" WHERE "set_4"='na' AND "score"='3-0' AND "set_2"='26-24';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the 3-0 score with a set 2 of 25-12 and a set 3 of 25-18?`

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

CREATE TABLE "results_pool_c" (
  "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 of the 3-0 score with a set 2 of 25-12 and a set 3 of 25-18?`:
```sql
                SELECT "total" FROM "results_pool_c" WHERE "score"='3-0' AND "set_3"='25-18' AND "set_2"='25-12';
```
## Task
Generate a SQL query to answer the following question:
`What is the set 5 of the match with a set 2 of 26-24 and a set 1 of 27-25?`

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

CREATE TABLE "results_pool_c" (
  "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 5 of the match with a set 2 of 26-24 and a set 1 of 27-25?`:
```sql
                SELECT "set_5" FROM "results_pool_c" WHERE "set_2"='26-24' AND "set_1"='27-25';
```
## Task
Generate a SQL query to answer the following question:
`Who has a total number of 76 silver medals?`

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

CREATE TABLE "overall" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a total number of 76 silver medals?`:
```sql
                SELECT COUNT("silver") FROM "overall" WHERE "total"=76;
```
## Task
Generate a SQL query to answer the following question:
`What score has ipswich town as the home team, and replay as the tie no.?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has ipswich town as the home team, and replay as the tie no.?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "home_team"='ipswich town' AND "tie_no"='replay';
```
## Task
Generate a SQL query to answer the following question:
`What score has grays athletic as the home team?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has grays athletic as the home team?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "home_team"='grays athletic';
```
## Task
Generate a SQL query to answer the following question:
`What date has 6 as the tie no.?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 6 as the tie no.?`:
```sql
                SELECT "date" FROM "first_round_proper" WHERE "tie_no"='6';
```
## Task
Generate a SQL query to answer the following question:
`What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island?`

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

CREATE TABLE "race_calendar" (
  "round" text,
  "race" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island?`:
```sql
                SELECT "fastest_lap" FROM "race_calendar" WHERE "winning_team"='team brm' AND "race"=1 AND "pole_position"='leanne tander' AND "circuit"='phillip island';
```
## Task
Generate a SQL query to answer the following question:
`What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow?`

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

CREATE TABLE "race_calendar" (
  "round" text,
  "race" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow?`:
```sql
                SELECT "fastest_lap" FROM "race_calendar" WHERE "round"='5' AND "winning_driver"='james winslow';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander?`

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

CREATE TABLE "race_calendar" (
  "round" text,
  "race" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "fastest_lap"='james winslow' AND "race"=1 AND "winning_driver"='leanne tander';
```
## Task
Generate a SQL query to answer the following question:
`What is Pole Position, when Circuit is Adelaide Street Circuit, and when Winning Team is Piccola Scuderia Corse?`

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

CREATE TABLE "race_calendar" (
  "round" text,
  "race" real,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pole Position, when Circuit is Adelaide Street Circuit, and when Winning Team is Piccola Scuderia Corse?`:
```sql
                SELECT "pole_position" FROM "race_calendar" WHERE "circuit"='adelaide street circuit' AND "winning_team"='piccola scuderia corse';
```
## Task
Generate a SQL query to answer the following question:
`What country was the game played in when the location was trestles?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the game played in when the location was trestles?`:
```sql
                SELECT "country" FROM "tournaments" WHERE "location"='trestles';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game played when it was located at bells beach?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game played when it was located at bells beach?`:
```sql
                SELECT "date" FROM "tournaments" WHERE "location"='bells beach';
```
## Task
Generate a SQL query to answer the following question:
`What country was the game played when it was played from April 11-April 21?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the game played when it was played from April 11-April 21?`:
```sql
                SELECT "country" FROM "tournaments" WHERE "date"='april 11-april 21';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Runner-up when the game was played at Bells Beach?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Runner-up when the game was played at Bells Beach?`:
```sql
                SELECT "runner_up" FROM "tournaments" WHERE "location"='bells beach';
```
## Task
Generate a SQL query to answer the following question:
`Which Accolade had a publication of Under the Radar?`

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

CREATE TABLE "reception" (
  "publication" text,
  "country" text,
  "accolade" text,
  "year" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Accolade had a publication of Under the Radar?`:
```sql
                SELECT "accolade" FROM "reception" WHERE "publication"='under the radar';
```
## Task
Generate a SQL query to answer the following question:
`Which year had a publication of Pazz & Jop?`

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

CREATE TABLE "reception" (
  "publication" text,
  "country" text,
  "accolade" text,
  "year" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year had a publication of Pazz & Jop?`:
```sql
                SELECT "year" FROM "reception" WHERE "publication"='pazz & jop';
```
## Task
Generate a SQL query to answer the following question:
`How many districts featured the democrat nicholas von stein?`

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

CREATE TABLE "match_up_summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts featured the democrat nicholas von stein?`:
```sql
                SELECT COUNT("district") FROM "match_up_summary" WHERE "democratic"='nicholas von stein';
```
## Task
Generate a SQL query to answer the following question:
`Which incumbent's democratic candidate was mike carroll?`

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

CREATE TABLE "match_up_summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which incumbent's democratic candidate was mike carroll?`:
```sql
                SELECT "incumbent" FROM "match_up_summary" WHERE "democratic"='mike carroll';
```
## Task
Generate a SQL query to answer the following question:
`Who ran under the Democratic ticket when Edward R. Dudley ran under the Liberal ticket?`

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

CREATE TABLE "1962_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "liberal_ticket" text,
  "conservative_ticket" text,
  "socialist_workers_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who ran under the Democratic ticket when Edward R. Dudley ran under the Liberal ticket?`:
```sql
                SELECT "democratic_ticket" FROM "1962_state_election_results" WHERE "liberal_ticket"='edward r. dudley';
```
## Task
Generate a SQL query to answer the following question:
`When John Emanuel ran under the Socialist Labor ticket who ran under the Democratic ticket?`

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

CREATE TABLE "1962_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "liberal_ticket" text,
  "conservative_ticket" text,
  "socialist_workers_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `When John Emanuel ran under the Socialist Labor ticket who ran under the Democratic ticket?`:
```sql
                SELECT "democratic_ticket" FROM "1962_state_election_results" WHERE "socialist_labor_ticket"='john emanuel';
```
## Task
Generate a SQL query to answer the following question:
`What was the office up for election when Sylvia Weinstein ran under the Socialist Workers ticket?`

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

CREATE TABLE "1962_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "liberal_ticket" text,
  "conservative_ticket" text,
  "socialist_workers_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the office up for election when Sylvia Weinstein ran under the Socialist Workers ticket?`:
```sql
                SELECT "office" FROM "1962_state_election_results" WHERE "socialist_workers_ticket"='sylvia weinstein';
```
## Task
Generate a SQL query to answer the following question:
`Who ran under the Socialist Labor ticket when Robert M. Morgenthau ran for the Democratic ticket?`

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

CREATE TABLE "1962_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "liberal_ticket" text,
  "conservative_ticket" text,
  "socialist_workers_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who ran under the Socialist Labor ticket when Robert M. Morgenthau ran for the Democratic ticket?`:
```sql
                SELECT "socialist_labor_ticket" FROM "1962_state_election_results" WHERE "democratic_ticket"='robert m. morgenthau';
```
## Task
Generate a SQL query to answer the following question:
`When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?`

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

CREATE TABLE "1962_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "liberal_ticket" text,
  "conservative_ticket" text,
  "socialist_workers_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?`:
```sql
                SELECT "socialist_workers_ticket" FROM "1962_state_election_results" WHERE "republican_ticket"='john p. lomenzo';
```
## Task
Generate a SQL query to answer the following question:
`What is the area km2 of the area with a pop density people/km2 larger than 91, is a member state of Italy, and had less than 58.8 population in millions?`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" real,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area km2 of the area with a pop density people/km2 larger than 91, is a member state of Italy, and had less than 58.8 population in millions?`:
```sql
                SELECT SUM("area_km_2") FROM "area_and_population" WHERE "pop_density_people_km_2">91 AND "member_state"='italy' AND "population_in_millions"<58.8;
```
## Task
Generate a SQL query to answer the following question:
`What is the area % of EU with 16.4 population in millions?`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" real,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area % of EU with 16.4 population in millions?`:
```sql
                SELECT "area_pct_of_eu" FROM "area_and_population" WHERE "population_in_millions"=16.4;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of area km2 with a 4.2 population in millions and is a member state of the Czech Republic?`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" real,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of area km2 with a 4.2 population in millions and is a member state of the Czech Republic?`:
```sql
                SELECT COUNT("area_km_2") FROM "area_and_population" WHERE "population_in_millions">4.2 AND "member_state"='czech republic';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the pop density people/km2 with a population % of EU of 0.1%, an area % of EU of 0.1%, and has more than 0.5 population in millions?`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" real,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the pop density people/km2 with a population % of EU of 0.1%, an area % of EU of 0.1%, and has more than 0.5 population in millions?`:
```sql
                SELECT SUM("pop_density_people_km_2") FROM "area_and_population" WHERE "population_pct_of_eu"='0.1%' AND "area_pct_of_eu"='0.1%' AND "population_in_millions">0.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?`

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

CREATE TABLE "area_and_population" (
  "member_state" text,
  "population_in_millions" real,
  "population_pct_of_eu" text,
  "area_km_2" real,
  "area_pct_of_eu" text,
  "pop_density_people_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?`:
```sql
                SELECT MIN("area_km_2") FROM "area_and_population" WHERE "member_state"='czech republic' AND "population_in_millions"<10.3;
```
## Task
Generate a SQL query to answer the following question:
`Weighing less than 85, with less than 340 Spikes, what is Gilberto Godoy Filho's Height`

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

CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" (
  "name" text,
  "date_of_birth" text,
  "height" real,
  "weight" real,
  "spike" real,
  "block" real
);
### SQL
Given the database schema, here is the SQL query that answers `Weighing less than 85, with less than 340 Spikes, what is Gilberto Godoy Filho's Height`:
```sql
                SELECT COUNT("height") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "spike"<340 AND "name"='gilberto godoy filho' AND "weight"<85;
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance for Opponent Boston Patriots and Week is greater than 14?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance for Opponent Boston Patriots and Week is greater than 14?`:
```sql
                SELECT COUNT("attendance") FROM "season_schedule" WHERE "opponent"='boston patriots' AND "week">14;
```
## Task
Generate a SQL query to answer the following question:
`Which Nominated work has a Year of 1997?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nominated work has a Year of 1997?`:
```sql
                SELECT "nominated_work" FROM "awards_and_nominations" WHERE "year"=1997;
```
## Task
Generate a SQL query to answer the following question:
`Which Award has a Category of music video acting award?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Award has a Category of music video acting award?`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "category"='music video acting award';
```
## Task
Generate a SQL query to answer the following question:
`What name has a CONCACAF Champions League of 2 (0) and also a Canadian Championship of 8 (0)?`

### 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 name has a CONCACAF Champions League of 2 (0) and also a Canadian Championship of 8 (0)?`:
```sql
                SELECT "name" FROM "most_appearances" WHERE "concacaf_champions_league"='2 (0)' AND "canadian_championship"='8 (0)';
```
## Task
Generate a SQL query to answer the following question:
`When the league is 84 (4) what is the Canadian Championship?`

### 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 `When the league is 84 (4) what is the Canadian Championship?`:
```sql
                SELECT "canadian_championship" FROM "most_appearances" WHERE "league"='84 (4)';
```