cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many rounds did the match go for the Bellator 72 event?`

### 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 `How many rounds did the match go for the Bellator 72 event?`:
```sql
                SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "event"='bellator 72';
```
## Task
Generate a SQL query to answer the following question:
`What is the rating that has live viewers over 3.06 and DVR viewers of 5.36?`

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

CREATE TABLE "ratings" (
  "air_date" text,
  "rating" real,
  "share" real,
  "18_49" text,
  "viewers_live_m" real,
  "viewers_dvr_7_m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rating that has live viewers over 3.06 and DVR viewers of 5.36?`:
```sql
                SELECT "rating" FROM "ratings" WHERE "viewers_live_m">3.06 AND "viewers_dvr_7_m"='5.36';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the live viewers for episodes with share over 5?`

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

CREATE TABLE "ratings" (
  "air_date" text,
  "rating" real,
  "share" real,
  "18_49" text,
  "viewers_live_m" real,
  "viewers_dvr_7_m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the live viewers for episodes with share over 5?`:
```sql
                SELECT SUM("viewers_live_m") FROM "ratings" WHERE "share">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the ratings for episodes with live viewers of 2.96?`

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

CREATE TABLE "ratings" (
  "air_date" text,
  "rating" real,
  "share" real,
  "18_49" text,
  "viewers_live_m" real,
  "viewers_dvr_7_m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the ratings for episodes with live viewers of 2.96?`:
```sql
                SELECT SUM("rating") FROM "ratings" WHERE "viewers_live_m"=2.96;
```
## Task
Generate a SQL query to answer the following question:
`Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?`:
```sql
                SELECT "callsign" FROM "long_range_am_stations" WHERE "webcast"='listen live' AND "frequency"<1210 AND "brand"='newsradio 740 ktrh';
```
## Task
Generate a SQL query to answer the following question:
`Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey?`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey?`:
```sql
                SELECT "website" FROM "long_range_am_stations" WHERE "city_of_license"='monterrey' AND "webcast"='listen live' AND "frequency"<1050;
```
## Task
Generate a SQL query to answer the following question:
`The KTRH.com website includes which type of webcast?`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `The KTRH.com website includes which type of webcast?`:
```sql
                SELECT "webcast" FROM "long_range_am_stations" WHERE "website"='ktrh.com';
```
## Task
Generate a SQL query to answer the following question:
`Which website includes a webcast of listen live, a frequency under 680, and was licensed in the city of San Antonio.`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which website includes a webcast of listen live, a frequency under 680, and was licensed in the city of San Antonio.`:
```sql
                SELECT "website" FROM "long_range_am_stations" WHERE "city_of_license"='san antonio' AND "webcast"='listen live' AND "frequency"=680;
```
## Task
Generate a SQL query to answer the following question:
`Which long range AM station has the lowest frequency and includes a webcast of listen live, was licensed in the city of Monterrey, and uses the Callsign of xet?`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which long range AM station has the lowest frequency and includes a webcast of listen live, was licensed in the city of Monterrey, and uses the Callsign of xet?`:
```sql
                SELECT MIN("frequency") FROM "long_range_am_stations" WHERE "webcast"='listen live' AND "city_of_license"='monterrey' AND "callsign"='xet';
```
## Task
Generate a SQL query to answer the following question:
`Which Games is the highest one that has a Drawn smaller than 0?`

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

CREATE TABLE "group_1" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Games is the highest one that has a Drawn smaller than 0?`:
```sql
                SELECT MAX("games") FROM "group_1" WHERE "drawn"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the score for game 6?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for game 6?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"=6;
```
## Task
Generate a SQL query to answer the following question:
`Which Position in 2000 has a Capacity larger than 10,080, and a Venue of central, rechytsa?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position in 2000 has a Capacity larger than 10,080, and a Venue of central, rechytsa?`:
```sql
                SELECT "position_in_2000" FROM "teams_and_venues" WHERE "capacity">'10,080' AND "venue"='central, rechytsa';
```
## Task
Generate a SQL query to answer the following question:
`Which Capacity has a Location of mogilev?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Capacity has a Location of mogilev?`:
```sql
                SELECT SUM("capacity") FROM "teams_and_venues" WHERE "location"='mogilev';
```
## Task
Generate a SQL query to answer the following question:
`What was the District of California 2 result?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the District of California 2 result?`:
```sql
                SELECT "result" FROM "california" WHERE "district"='california 2';
```
## Task
Generate a SQL query to answer the following question:
`What was the district Incumbent Julius Kahn was in that was smaller than 1906?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the district Incumbent Julius Kahn was in that was smaller than 1906?`:
```sql
                SELECT "district" FROM "california" WHERE "first_elected"<1906 AND "incumbent"='julius kahn';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest re-elected result for Sylvester C. Smith?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest re-elected result for Sylvester C. Smith?`:
```sql
                SELECT MIN("first_elected") FROM "california" WHERE "result"='re-elected' AND "incumbent"='sylvester c. smith';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for Julius Kahn's first election of 1898?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for Julius Kahn's first election of 1898?`:
```sql
                SELECT "result" FROM "california" WHERE "first_elected"=1898 AND "incumbent"='julius kahn';
```
## Task
Generate a SQL query to answer the following question:
`Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble?`

### 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" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble?`:
```sql
                SELECT "party" FROM "south_carolina" WHERE "result"='retired democratic hold' AND "first_elected"<1884 AND "incumbent"='samuel dibble';
```
## Task
Generate a SQL query to answer the following question:
`Which district had a first elected in 1882 with a result of re-elected?`

### 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" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which district had a first elected in 1882 with a result of re-elected?`:
```sql
                SELECT "district" FROM "south_carolina" WHERE "first_elected"=1882 AND "result"='re-elected';
```
## Task
Generate a SQL query to answer the following question:
`Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12?`

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

CREATE TABLE "average_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total" real,
  "number_of_dances" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12?`:
```sql
                SELECT MIN("average") FROM "average_chart" WHERE "total"<134 AND "number_of_dances"<3 AND "rank_by_average"<12;
```
## Task
Generate a SQL query to answer the following question:
`Which Couple has a Rank by average larger than 3, and an Average larger than 16.5, and a Total smaller than 195, and a Number of dances larger than 3?`

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

CREATE TABLE "average_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total" real,
  "number_of_dances" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Couple has a Rank by average larger than 3, and an Average larger than 16.5, and a Total smaller than 195, and a Number of dances larger than 3?`:
```sql
                SELECT "couple" FROM "average_chart" WHERE "rank_by_average">3 AND "average">16.5 AND "total"<195 AND "number_of_dances">3;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1?`

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

CREATE TABLE "average_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total" real,
  "number_of_dances" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1?`:
```sql
                SELECT MIN("rank_by_average") FROM "average_chart" WHERE "total"=425 AND "place">1;
```
## Task
Generate a SQL query to answer the following question:
`What nation are carolina hermann / daniel hermann from?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "name" text,
  "club" text,
  "nation" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation are carolina hermann / daniel hermann from?`:
```sql
                SELECT "nation" FROM "ice_dancing" WHERE "name"='carolina hermann / daniel hermann';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank associated with 141.48 points?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "name" text,
  "club" text,
  "nation" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank associated with 141.48 points?`:
```sql
                SELECT "rank" FROM "ice_dancing" WHERE "points"=141.48;
```
## Task
Generate a SQL query to answer the following question:
`What competitors are scored 124.51 points?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "name" text,
  "club" text,
  "nation" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What competitors are scored 124.51 points?`:
```sql
                SELECT "name" FROM "ice_dancing" WHERE "points"=124.51;
```
## Task
Generate a SQL query to answer the following question:
`At what percent was Pat Robertson when George H.W. Bush had 76%?`

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

CREATE TABLE "statewide" (
  "date" text,
  "state" text,
  "george_h_w_bush" text,
  "bob_dole" text,
  "pat_robertson" text,
  "jack_kemp" text,
  "pete_du_pont" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what percent was Pat Robertson when George H.W. Bush had 76%?`:
```sql
                SELECT "pat_robertson" FROM "statewide" WHERE "george_h_w_bush"='76%';
```
## Task
Generate a SQL query to answer the following question:
`When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have?`

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

CREATE TABLE "statewide" (
  "date" text,
  "state" text,
  "george_h_w_bush" text,
  "bob_dole" text,
  "pat_robertson" text,
  "jack_kemp" text,
  "pete_du_pont" text
);
### SQL
Given the database schema, here is the SQL query that answers `When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have?`:
```sql
                SELECT "bob_dole" FROM "statewide" WHERE "george_h_w_bush"='81%' AND "pat_robertson"='9%';
```
## Task
Generate a SQL query to answer the following question:
`When Pat Robertson was at 16%, what did Pete du Pont have?`

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

CREATE TABLE "statewide" (
  "date" text,
  "state" text,
  "george_h_w_bush" text,
  "bob_dole" text,
  "pat_robertson" text,
  "jack_kemp" text,
  "pete_du_pont" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Pat Robertson was at 16%, what did Pete du Pont have?`:
```sql
                SELECT "pete_du_pont" FROM "statewide" WHERE "pat_robertson"='16%';
```
## Task
Generate a SQL query to answer the following question:
`When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have?`

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

CREATE TABLE "statewide" (
  "date" text,
  "state" text,
  "george_h_w_bush" text,
  "bob_dole" text,
  "pat_robertson" text,
  "jack_kemp" text,
  "pete_du_pont" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have?`:
```sql
                SELECT "pat_robertson" FROM "statewide" WHERE "bob_dole"='26%' AND "george_h_w_bush"='47%';
```
## Task
Generate a SQL query to answer the following question:
`When Bob Dole had 26%, and Pete du Pont had 0%, what did Pat Robertson have?`

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

CREATE TABLE "statewide" (
  "date" text,
  "state" text,
  "george_h_w_bush" text,
  "bob_dole" text,
  "pat_robertson" text,
  "jack_kemp" text,
  "pete_du_pont" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Bob Dole had 26%, and Pete du Pont had 0%, what did Pat Robertson have?`:
```sql
                SELECT "pat_robertson" FROM "statewide" WHERE "bob_dole"='26%' AND "pete_du_pont"='0%';
```
## Task
Generate a SQL query to answer the following question:
`When Pat Robertson had 19%, and Bob Dole had 26%, what did George H.W. Bush have?`

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

CREATE TABLE "statewide" (
  "date" text,
  "state" text,
  "george_h_w_bush" text,
  "bob_dole" text,
  "pat_robertson" text,
  "jack_kemp" text,
  "pete_du_pont" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Pat Robertson had 19%, and Bob Dole had 26%, what did George H.W. Bush have?`:
```sql
                SELECT "george_h_w_bush" FROM "statewide" WHERE "pat_robertson"='19%' AND "bob_dole"='26%';
```
## Task
Generate a SQL query to answer the following question:
`Attendance larger than 45,710, and a Venue of metropolitan stadium had what highest week?`

### 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,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Attendance larger than 45,710, and a Venue of metropolitan stadium had what highest week?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "attendance">'45,710' AND "venue"='metropolitan stadium';
```
## Task
Generate a SQL query to answer the following question:
`Date of october 10, 1965 had what lowest attendance?`

### 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,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Date of october 10, 1965 had what lowest attendance?`:
```sql
                SELECT MIN("attendance") FROM "schedule" WHERE "date"='october 10, 1965';
```
## Task
Generate a SQL query to answer the following question:
`Opponent of chicago bears involved what date?`

### 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,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Opponent of chicago bears involved what date?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='chicago bears';
```
## Task
Generate a SQL query to answer the following question:
`Performer 2 of compilation 2 is what performer 1?`

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

CREATE TABLE "series_7" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Performer 2 of compilation 2 is what performer 1?`:
```sql
                SELECT "performer_1" FROM "series_7" WHERE "performer_2"='compilation 2';
```
## Task
Generate a SQL query to answer the following question:
`Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4?`

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

CREATE TABLE "series_7" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4?`:
```sql
                SELECT "performer_4" FROM "series_7" WHERE "performer_1"='greg proops' AND "date"='25 august 1995';
```
## Task
Generate a SQL query to answer the following question:
`Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode?`

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

CREATE TABLE "series_7" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode?`:
```sql
                SELECT AVG("episode") FROM "series_7" WHERE "performer_1"='greg proops' AND "performer_3"='ryan stiles' AND "date"='25 august 1995';
```
## Task
Generate a SQL query to answer the following question:
`Performer 1 of Stephen Frost, and a Performer 2 of Josie Lawrence, and a Date of 15 September 1995 is what performer 3?`

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

CREATE TABLE "series_7" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Performer 1 of Stephen Frost, and a Performer 2 of Josie Lawrence, and a Date of 15 September 1995 is what performer 3?`:
```sql
                SELECT "performer_3" FROM "series_7" WHERE "performer_1"='stephen frost' AND "performer_2"='josie lawrence' AND "date"='15 september 1995';
```
## Task
Generate a SQL query to answer the following question:
`WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text,
  "asian_team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov?`:
```sql
                SELECT "mountains_classification" FROM "classification_leadership" WHERE "asian_team_classification"='seoul cycling team' AND "winner"='alexandre usov';
```
## Task
Generate a SQL query to answer the following question:
`WHo is the Asian rider classification that has ruslan ivanov on the Stage of 9?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text,
  "asian_team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHo is the Asian rider classification that has ruslan ivanov on the Stage of 9?`:
```sql
                SELECT "asian_rider_classification" FROM "classification_leadership" WHERE "general_classification"='ruslan ivanov' AND "stage"='9';
```
## Task
Generate a SQL query to answer the following question:
`WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text,
  "asian_team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt?`:
```sql
                SELECT "general_classification" FROM "classification_leadership" WHERE "asian_rider_classification"='shinichi fukushima' AND "winner"='jeremy hunt';
```
## Task
Generate a SQL query to answer the following question:
`Which Stage has a Mountains classification of filippo savini?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text,
  "asian_team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Stage has a Mountains classification of filippo savini?`:
```sql
                SELECT "stage" FROM "classification_leadership" WHERE "mountains_classification"='filippo savini';
```
## Task
Generate a SQL query to answer the following question:
`Which Stage has a Winner of jeremy hunt?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text,
  "asian_team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Stage has a Winner of jeremy hunt?`:
```sql
                SELECT "stage" FROM "classification_leadership" WHERE "winner"='jeremy hunt';
```
## Task
Generate a SQL query to answer the following question:
`Which winning team has Iowa city as the site, and december 3, 2006 as the date?`

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

CREATE TABLE "2006_2007" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which winning team has Iowa city as the site, and december 3, 2006 as the date?`:
```sql
                SELECT "winning_team" FROM "2006_2007" WHERE "site"='iowa city' AND "date"='december 3, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What site has november 30, 2006 as the date?`

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

CREATE TABLE "2006_2007" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What site has november 30, 2006 as the date?`:
```sql
                SELECT "site" FROM "2006_2007" WHERE "date"='november 30, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What winning team has volleyball as the sport?`

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

CREATE TABLE "2006_2007" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What winning team has volleyball as the sport?`:
```sql
                SELECT "winning_team" FROM "2006_2007" WHERE "sport"='volleyball';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number in January when the St. Louis Blues had a game smaller than 42?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number in January when the St. Louis Blues had a game smaller than 42?`:
```sql
                SELECT COUNT("january") FROM "schedule_and_results" WHERE "opponent"='st. louis blues' AND "game"<42;
```
## Task
Generate a SQL query to answer the following question:
`What is the January sum with the record of 17-20-2 with a game smaller than 39?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the January sum with the record of 17-20-2 with a game smaller than 39?`:
```sql
                SELECT SUM("january") FROM "schedule_and_results" WHERE "record"='17-20-2' AND "game"<39;
```
## Task
Generate a SQL query to answer the following question:
`What was the record when the New York Knicks played at the Boston Garden?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when the New York Knicks played at the Boston Garden?`:
```sql
                SELECT "record" FROM "game_log" WHERE "location"='boston garden' AND "opponent"='new york knicks';
```
## Task
Generate a SQL query to answer the following question:
`When the record was 7-2, what was the score for the game?`

### 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 the record was 7-2, what was the score for the game?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='7-2';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the record 4-2?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the record 4-2?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='4-2';
```
## Task
Generate a SQL query to answer the following question:
`Which Females Rank is the highest one that has Females (%) larger than 53, and an HIV awareness (males%) smaller than 89, and a State of odisha?`

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

CREATE TABLE "references" (
  "males_rank" real,
  "females_rank" real,
  "state" text,
  "hiv_awareness_malespct" real,
  "females_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Females Rank is the highest one that has Females (%) larger than 53, and an HIV awareness (males%) smaller than 89, and a State of odisha?`:
```sql
                SELECT MAX("females_rank") FROM "references" WHERE "females_pct">53 AND "hiv_awareness_malespct"<89 AND "state"='odisha';
```
## Task
Generate a SQL query to answer the following question:
`How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1?`

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

CREATE TABLE "references" (
  "males_rank" real,
  "females_rank" real,
  "state" text,
  "hiv_awareness_malespct" real,
  "females_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1?`:
```sql
                SELECT COUNT("females_pct") FROM "references" WHERE "females_rank"<21 AND "state"='kerala' AND "males_rank">1;
```
## Task
Generate a SQL query to answer the following question:
`How many Females (%) have a State of karnataka, and Males Rank larger than 16?`

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

CREATE TABLE "references" (
  "males_rank" real,
  "females_rank" real,
  "state" text,
  "hiv_awareness_malespct" real,
  "females_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Females (%) have a State of karnataka, and Males Rank larger than 16?`:
```sql
                SELECT COUNT("females_pct") FROM "references" WHERE "state"='karnataka' AND "males_rank">16;
```
## Task
Generate a SQL query to answer the following question:
`Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22?`

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

CREATE TABLE "references" (
  "males_rank" real,
  "females_rank" real,
  "state" text,
  "hiv_awareness_malespct" real,
  "females_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22?`:
```sql
                SELECT MAX("males_rank") FROM "references" WHERE "females_pct"<40 AND "females_rank"<22;
```
## Task
Generate a SQL query to answer the following question:
`Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3?`

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

CREATE TABLE "references" (
  "males_rank" real,
  "females_rank" real,
  "state" text,
  "hiv_awareness_malespct" real,
  "females_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3?`:
```sql
                SELECT SUM("females_pct") FROM "references" WHERE "hiv_awareness_malespct">92 AND "females_rank">2 AND "males_rank"<3;
```
## Task
Generate a SQL query to answer the following question:
`League Cup smaller than 0 is what sum of the total?`

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

CREATE TABLE "top_scorers" (
  "name" text,
  "championship" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `League Cup smaller than 0 is what sum of the total?`:
```sql
                SELECT SUM("total") FROM "top_scorers" WHERE "league_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`Championship larger than 3, and a FA Cup smaller than 3, and a Total smaller than 6 involves what highest league cup?`

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

CREATE TABLE "top_scorers" (
  "name" text,
  "championship" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Championship larger than 3, and a FA Cup smaller than 3, and a Total smaller than 6 involves what highest league cup?`:
```sql
                SELECT MAX("league_cup") FROM "top_scorers" WHERE "championship">3 AND "fa_cup"<3 AND "total"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Surface of hard on 28 august 1993?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Surface of hard on 28 august 1993?`:
```sql
                SELECT "opponent" FROM "singles_5_4_1" WHERE "surface"='hard' AND "date"='28 august 1993';
```
## Task
Generate a SQL query to answer the following question:
`WHICH Outcome IS ON 18 july 1993?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH Outcome IS ON 18 july 1993?`:
```sql
                SELECT "outcome" FROM "singles_5_4_1" WHERE "date"='18 july 1993';
```
## Task
Generate a SQL query to answer the following question:
`WHICH Outcome has aN Opponent of pascale paradis-mangon?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH Outcome has aN Opponent of pascale paradis-mangon?`:
```sql
                SELECT "outcome" FROM "singles_5_4_1" WHERE "opponent"='pascale paradis-mangon';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has aN Outcome of winner on 4 november 1990?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has aN Outcome of winner on 4 november 1990?`:
```sql
                SELECT "score" FROM "singles_5_4_1" WHERE "outcome"='winner' AND "date"='4 november 1990';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has an Opponent of susan sloane?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has an Opponent of susan sloane?`:
```sql
                SELECT "tournament" FROM "singles_5_4_1" WHERE "opponent"='susan sloane';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has an Opponent of meike babel?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has an Opponent of meike babel?`:
```sql
                SELECT "tournament" FROM "singles_5_4_1" WHERE "opponent"='meike babel';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a November of 29?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a November of 29?`:
```sql
                SELECT SUM("game") FROM "regular_season" WHERE "november"=29;
```
## Task
Generate a SQL query to answer the following question:
`Which Points have a Record of 12–2–4–1, and a November larger than 22?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have a Record of 12–2–4–1, and a November larger than 22?`:
```sql
                SELECT AVG("points") FROM "regular_season" WHERE "record"='12–2–4–1' AND "november">22;
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Game of 19?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Game of 19?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "game"=19;
```
## Task
Generate a SQL query to answer the following question:
`How many Novembers have a Game larger than 14, and an Opponent of minnesota wild?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Novembers have a Game larger than 14, and an Opponent of minnesota wild?`:
```sql
                SELECT COUNT("november") FROM "regular_season" WHERE "game">14 AND "opponent"='minnesota wild';
```
## Task
Generate a SQL query to answer the following question:
`Which November is the lowest one that has a Record of 12–2–4–1?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which November is the lowest one that has a Record of 12–2–4–1?`:
```sql
                SELECT MIN("november") FROM "regular_season" WHERE "record"='12–2–4–1';
```
## Task
Generate a SQL query to answer the following question:
`What day has a record of 25–30–13 and less than 63 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What day has a record of 25–30–13 and less than 63 points?`:
```sql
                SELECT AVG("march") FROM "regular_season" WHERE "record"='25–30–13' AND "points"<63;
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has 63 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has 63 points?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "points"=63;
```
## Task
Generate a SQL query to answer the following question:
`Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7?`

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

CREATE TABLE "architecture_support" (
  "distribution" text,
  "x86_64" text,
  "ia64" text,
  "ppc64" text,
  "sparc32" text,
  "hppa" text,
  "mips" text,
  "s390" text,
  "s390x" text,
  "alpha" text,
  "m68k" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7?`:
```sql
                SELECT "alpha" FROM "architecture_support" WHERE "ia64"='discontinued 3.5-3.8 4.1-4.7';
```
## Task
Generate a SQL query to answer the following question:
`Which s390x contains a yes ia64 and a no for alpha?`

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

CREATE TABLE "architecture_support" (
  "distribution" text,
  "x86_64" text,
  "ia64" text,
  "ppc64" text,
  "sparc32" text,
  "hppa" text,
  "mips" text,
  "s390" text,
  "s390x" text,
  "alpha" text,
  "m68k" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which s390x contains a yes ia64 and a no for alpha?`:
```sql
                SELECT "s390x" FROM "architecture_support" WHERE "ia64"='yes' AND "alpha"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which hppa contains a ppc64 of yes 3+, no for mips and no for alpha?`

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

CREATE TABLE "architecture_support" (
  "distribution" text,
  "x86_64" text,
  "ia64" text,
  "ppc64" text,
  "sparc32" text,
  "hppa" text,
  "mips" text,
  "s390" text,
  "s390x" text,
  "alpha" text,
  "m68k" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which hppa contains a ppc64 of yes 3+, no for mips and no for alpha?`:
```sql
                SELECT "hppa" FROM "architecture_support" WHERE "mips"='no' AND "alpha"='no' AND "ppc64"='yes 3+';
```