cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the minimum Height of the Little Switzerland Tunnel?`

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

CREATE TABLE "tunnels" (
  "milepost" real,
  "name_of_the_tunnel" text,
  "length" text,
  "maximum_height" text,
  "minimum_height" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum Height of the Little Switzerland Tunnel?`:
```sql
                SELECT "minimum_height" FROM "tunnels" WHERE "name_of_the_tunnel"='little switzerland tunnel';
```
## Task
Generate a SQL query to answer the following question:
`What is the Milepost of the Twin Tunnel #1 North?`

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

CREATE TABLE "tunnels" (
  "milepost" real,
  "name_of_the_tunnel" text,
  "length" text,
  "maximum_height" text,
  "minimum_height" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Milepost of the Twin Tunnel #1 North?`:
```sql
                SELECT COUNT("milepost") FROM "tunnels" WHERE "name_of_the_tunnel"='twin tunnel #1 north';
```
## Task
Generate a SQL query to answer the following question:
`WHat is the number of Population has a Density of 50.09 and a Rank larger than 30?`

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

CREATE TABLE "by_population" (
  "rank" real,
  "province" text,
  "population" real,
  "area" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHat is the number of Population has a Density of 50.09 and a Rank larger than 30?`:
```sql
                SELECT SUM("population") FROM "by_population" WHERE "density"=50.09 AND "rank">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the Density that has a Population larger than 290,458, and an Area of 91.6?`

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

CREATE TABLE "by_population" (
  "rank" real,
  "province" text,
  "population" real,
  "area" real,
  "density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Density that has a Population larger than 290,458, and an Area of 91.6?`:
```sql
                SELECT SUM("density") FROM "by_population" WHERE "population">'290,458' AND "area"=91.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the Icelandic word for the English word bride?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Icelandic word for the English word bride?`:
```sql
                SELECT "icelandic" FROM "words_derived_from_non_indo_european_lan" WHERE "english"='bride';
```
## Task
Generate a SQL query to answer the following question:
`What is the ENglish word for the Icelandic word hlaupa?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ENglish word for the Icelandic word hlaupa?`:
```sql
                SELECT "english" FROM "words_derived_from_non_indo_european_lan" WHERE "icelandic"='hlaupa';
```
## Task
Generate a SQL query to answer the following question:
`What is the Russian word for the Greek word greek?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Russian word for the Greek word greek?`:
```sql
                SELECT "russian" FROM "words_derived_from_non_indo_european_lan" WHERE "greek"='greek';
```
## Task
Generate a SQL query to answer the following question:
`What is the English word for the Latin word uxor?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English word for the Latin word uxor?`:
```sql
                SELECT "english" FROM "words_derived_from_non_indo_european_lan" WHERE "latin"='uxor';
```
## Task
Generate a SQL query to answer the following question:
`What is the Latin word for the English word bone?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Latin word for the English word bone?`:
```sql
                SELECT "latin" FROM "words_derived_from_non_indo_european_lan" WHERE "english"='bone';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest against that has bacchus marsh as a ballarat fl, with wins less than 1?`

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

CREATE TABLE "2005_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest against that has bacchus marsh as a ballarat fl, with wins less than 1?`:
```sql
                SELECT MIN("against") FROM "2005_ladder" WHERE "ballarat_fl"='bacchus marsh' AND "wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest draws that have losses greater than 0, an against less than 1728, melton as the ballarat fl, and byes less than 2?`

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

CREATE TABLE "2005_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest draws that have losses greater than 0, an against less than 1728, melton as the ballarat fl, and byes less than 2?`:
```sql
                SELECT MIN("draws") FROM "2005_ladder" WHERE "losses">0 AND "against"<1728 AND "ballarat_fl"='melton' AND "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many losses have byes greater than 2?`

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

CREATE TABLE "2005_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have byes greater than 2?`:
```sql
                SELECT COUNT("losses") FROM "2005_ladder" WHERE "byes">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest draws that have losses less than 0, an against greater than 1353, 2 as the wins, and ballarat as ballarat fl?`

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

CREATE TABLE "2005_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest draws that have losses less than 0, an against greater than 1353, 2 as the wins, and ballarat as ballarat fl?`:
```sql
                SELECT MIN("draws") FROM "2005_ladder" WHERE "losses">0 AND "against">1353 AND "wins"=2 AND "ballarat_fl"='ballarat';
```
## Task
Generate a SQL query to answer the following question:
`What is the total year of the winner who plays the halfback position with a % of points possible of 80.64%?`

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

CREATE TABLE "winners" (
  "year" real,
  "winner" text,
  "school" text,
  "position" text,
  "points" text,
  "pct_of_points_possible" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total year of the winner who plays the halfback position with a % of points possible of 80.64%?`:
```sql
                SELECT COUNT("year") FROM "winners" WHERE "position"='halfback' AND "pct_of_points_possible"='80.64%';
```
## Task
Generate a SQL query to answer the following question:
`What is the year of the winner from the army school, plays the halfback position, and has a % of points possible of 39.01%?`

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

CREATE TABLE "winners" (
  "year" real,
  "winner" text,
  "school" text,
  "position" text,
  "points" text,
  "pct_of_points_possible" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the winner from the army school, plays the halfback position, and has a % of points possible of 39.01%?`:
```sql
                SELECT SUM("year") FROM "winners" WHERE "school"='army' AND "position"='halfback' AND "pct_of_points_possible"='39.01%';
```
## Task
Generate a SQL query to answer the following question:
`What position does the winner from Ohio State with 412 points play?`

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

CREATE TABLE "winners" (
  "year" real,
  "winner" text,
  "school" text,
  "position" text,
  "points" text,
  "pct_of_points_possible" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the winner from Ohio State with 412 points play?`:
```sql
                SELECT "position" FROM "winners" WHERE "school"='ohio state' AND "points"='412';
```
## Task
Generate a SQL query to answer the following question:
`What is the % of points possible of the winner from Penn State?`

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

CREATE TABLE "winners" (
  "year" real,
  "winner" text,
  "school" text,
  "position" text,
  "points" text,
  "pct_of_points_possible" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % of points possible of the winner from Penn State?`:
```sql
                SELECT "pct_of_points_possible" FROM "winners" WHERE "school"='penn state';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the winner with 792 points?`

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

CREATE TABLE "winners" (
  "year" real,
  "winner" text,
  "school" text,
  "position" text,
  "points" text,
  "pct_of_points_possible" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the winner with 792 points?`:
```sql
                SELECT "position" FROM "winners" WHERE "points"='792';
```
## Task
Generate a SQL query to answer the following question:
`How many were in Attendance on February 21, 1988 against the New Jersey Saints?`

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

CREATE TABLE "game_log" (
  "date" text,
  "at_vs" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in Attendance on February 21, 1988 against the New Jersey Saints?`:
```sql
                SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='new jersey saints' AND "date"='february 21, 1988';
```
## Task
Generate a SQL query to answer the following question:
`What was the Opponent on February 6, 1988?`

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

CREATE TABLE "game_log" (
  "date" text,
  "at_vs" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Opponent on February 6, 1988?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='february 6, 1988';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Top-10, when Top-25 is 4, and when Top-5 is greater than 1?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Top-10, when Top-25 is 4, and when Top-5 is greater than 1?`:
```sql
                SELECT MAX("top_10") FROM "summary" WHERE "top_25"=4 AND "top_5">1;
```
## Task
Generate a SQL query to answer the following question:
`What is Wins, when Top-25 is less than 4, and when Top-5 is greater than 0?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Wins, when Top-25 is less than 4, and when Top-5 is greater than 0?`:
```sql
                SELECT "wins" FROM "summary" WHERE "top_25"<4 AND "top_5">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1?`:
```sql
                SELECT COUNT("wins") FROM "summary" WHERE "top_25"<4 AND "top_10"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which home team played in the matchup with an away team of Liverpool?`

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

CREATE TABLE "fourth_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 `Which home team played in the matchup with an away team of Liverpool?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='liverpool';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of tie number 5?`

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

CREATE TABLE "fourth_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 was the date of tie number 5?`:
```sql
                SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='5';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team for tie number 9?`

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

CREATE TABLE "fourth_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 `Who was the away team for tie number 9?`:
```sql
                SELECT "away_team" FROM "fourth_round_proper" WHERE "tie_no"='9';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the replay at Millwall?`

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

CREATE TABLE "fourth_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 was the score of the replay at Millwall?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='replay' AND "home_team"='millwall';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team for tie number 16?`

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

CREATE TABLE "fourth_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 `Who was the home team for tie number 16?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='16';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the golds of the nation with 5 total and less than 0 bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the golds of the nation with 5 total and less than 0 bronze medals?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "total"=5 AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the gold medals of the total nation, which has more than 19 silver medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the gold medals of the total nation, which has more than 19 silver medals?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "nation"='total' AND "silver">19;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "bronze"=3 AND "total">4;
```
## Task
Generate a SQL query to answer the following question:
`Which label's year was 1990?`

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

CREATE TABLE "grammy_awards" (
  "year" text,
  "title" text,
  "genre" text,
  "label" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which label's year was 1990?`:
```sql
                SELECT "label" FROM "grammy_awards" WHERE "year"='1990';
```
## Task
Generate a SQL query to answer the following question:
`Which result's genre was jazz when its label was columbia and its title was requiem?`

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

CREATE TABLE "grammy_awards" (
  "year" text,
  "title" text,
  "genre" text,
  "label" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which result's genre was jazz when its label was columbia and its title was requiem?`:
```sql
                SELECT "result" FROM "grammy_awards" WHERE "genre"='jazz' AND "label"='columbia' AND "title"='requiem';
```
## Task
Generate a SQL query to answer the following question:
`Which year's label was label?`

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

CREATE TABLE "grammy_awards" (
  "year" text,
  "title" text,
  "genre" text,
  "label" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year's label was label?`:
```sql
                SELECT "year" FROM "grammy_awards" WHERE "label"='label';
```
## Task
Generate a SQL query to answer the following question:
`Which title's genre was jazz when it was nominated in 1996?`

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

CREATE TABLE "grammy_awards" (
  "year" text,
  "title" text,
  "genre" text,
  "label" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title's genre was jazz when it was nominated in 1996?`:
```sql
                SELECT "title" FROM "grammy_awards" WHERE "genre"='jazz' AND "result"='nominated' AND "year"='1996';
```
## Task
Generate a SQL query to answer the following question:
`Which year's genre was jazz under the columbia label when it was nominated for the title Trio jeepy?`

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

CREATE TABLE "grammy_awards" (
  "year" text,
  "title" text,
  "genre" text,
  "label" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year's genre was jazz under the columbia label when it was nominated for the title Trio jeepy?`:
```sql
                SELECT "year" FROM "grammy_awards" WHERE "genre"='jazz' AND "label"='columbia' AND "result"='nominated' AND "title"='trio jeepy';
```
## Task
Generate a SQL query to answer the following question:
`Which label's year is 1993?`

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

CREATE TABLE "grammy_awards" (
  "year" text,
  "title" text,
  "genre" text,
  "label" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which label's year is 1993?`:
```sql
                SELECT "label" FROM "grammy_awards" WHERE "year"='1993';
```
## Task
Generate a SQL query to answer the following question:
`What company focuses on Engine Overhaul for their principal activity?`

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

CREATE TABLE "subsidiaries" (
  "company" text,
  "type" text,
  "principal_activities" text,
  "incorporated_in" text,
  "group_s_equity_shareholding" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company focuses on Engine Overhaul for their principal activity?`:
```sql
                SELECT "company" FROM "subsidiaries" WHERE "principal_activities"='engine overhaul';
```
## Task
Generate a SQL query to answer the following question:
`What is the group equity shareholding for abacus distribution systems (malaysia) sdn bhd?`

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

CREATE TABLE "subsidiaries" (
  "company" text,
  "type" text,
  "principal_activities" text,
  "incorporated_in" text,
  "group_s_equity_shareholding" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the group equity shareholding for abacus distribution systems (malaysia) sdn bhd?`:
```sql
                SELECT "group_s_equity_shareholding" FROM "subsidiaries" WHERE "company"='abacus distribution systems (malaysia) sdn bhd';
```
## Task
Generate a SQL query to answer the following question:
`What company has a Group Equity Shareholding value of 60%?`

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

CREATE TABLE "subsidiaries" (
  "company" text,
  "type" text,
  "principal_activities" text,
  "incorporated_in" text,
  "group_s_equity_shareholding" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company has a Group Equity Shareholding value of 60%?`:
```sql
                SELECT "company" FROM "subsidiaries" WHERE "group_s_equity_shareholding"='60%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Group Equity shareholding of the company that has their principal activities as catering, and is of the Associate type?`

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

CREATE TABLE "subsidiaries" (
  "company" text,
  "type" text,
  "principal_activities" text,
  "incorporated_in" text,
  "group_s_equity_shareholding" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Group Equity shareholding of the company that has their principal activities as catering, and is of the Associate type?`:
```sql
                SELECT "group_s_equity_shareholding" FROM "subsidiaries" WHERE "principal_activities"='catering' AND "type"='associate';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest yield when the ASK is greater than 88,252.7, an RPK of 74,183.2, and a load factor less than 74.5?`

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

CREATE TABLE "singapore_airlines_operating_highlights_" (
  "year_ended" text,
  "passengers_thousand" real,
  "rpk_million" real,
  "ask_million" real,
  "load_factor_pct" real,
  "yield_s_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest yield when the ASK is greater than 88,252.7, an RPK of 74,183.2, and a load factor less than 74.5?`:
```sql
                SELECT MAX("yield_s_km") FROM "singapore_airlines_operating_highlights_" WHERE "ask_million">'88,252.7' AND "rpk_million"='74,183.2' AND "load_factor_pct"<74.5;
```
## Task
Generate a SQL query to answer the following question:
`When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3?`:
```sql
                SELECT "date" FROM "playoffs" WHERE "game">4 AND "team"='san antonio' AND "record"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Score of 108-105 (ot)?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Score of 108-105 (ot)?`:
```sql
                SELECT "team" FROM "playoffs" WHERE "score"='108-105 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Team of at san antonio, and a Record of 3-3?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Team of at san antonio, and a Record of 3-3?`:
```sql
                SELECT "game" FROM "playoffs" WHERE "team"='at san antonio' AND "record"='3-3';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Score of 105-115?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Score of 105-115?`:
```sql
                SELECT "record" FROM "playoffs" WHERE "score"='105-115';
```
## Task
Generate a SQL query to answer the following question:
`What's the average amount of ties had when a team wins 6 and it's past the 2004 season?`

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

CREATE TABLE "season_records" (
  "season" real,
  "division" text,
  "wins" real,
  "losses" real,
  "ties" real,
  "final_position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average amount of ties had when a team wins 6 and it's past the 2004 season?`:
```sql
                SELECT AVG("ties") FROM "season_records" WHERE "wins"=6 AND "season">2004;
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the race that had a group of G1 at Moonee Valley?`

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

CREATE TABLE "2008_09_season_as_a_four_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the race that had a group of G1 at Moonee Valley?`:
```sql
                SELECT "result" FROM "2008_09_season_as_a_four_year_old" WHERE "group"='g1' AND "venue"='moonee valley';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the race that was a 2000m distance?`

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

CREATE TABLE "2008_09_season_as_a_four_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "time" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the race that was a 2000m distance?`:
```sql
                SELECT "result" FROM "2008_09_season_as_a_four_year_old" WHERE "distance"='2000m';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Date of november 21, 1999?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Date of november 21, 1999?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='november 21, 1999';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Week smaller than 8, and an Opponent of philadelphia eagles?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Week smaller than 8, and an Opponent of philadelphia eagles?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"<8 AND "opponent"='philadelphia eagles';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Result of l 26–16?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Result of l 26–16?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='l 26–16';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance on week 13?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance on week 13?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a Round of 6?`

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

CREATE TABLE "professional_record" (
  "result" text,
  "opponent" text,
  "type" text,
  "round" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Round of 6?`:
```sql
                SELECT "result" FROM "professional_record" WHERE "round"='6';
```
## Task
Generate a SQL query to answer the following question:
`When is a Type of tko, and an Opponent of jesse brinkley`

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

CREATE TABLE "professional_record" (
  "result" text,
  "opponent" text,
  "type" text,
  "round" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is a Type of tko, and an Opponent of jesse brinkley`:
```sql
                SELECT "date" FROM "professional_record" WHERE "type"='tko' AND "opponent"='jesse brinkley';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has an Opponent of steve walker?`

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

CREATE TABLE "professional_record" (
  "result" text,
  "opponent" text,
  "type" text,
  "round" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has an Opponent of steve walker?`:
```sql
                SELECT "result" FROM "professional_record" WHERE "opponent"='steve walker';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?`

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

CREATE TABLE "professional_record" (
  "result" text,
  "opponent" text,
  "type" text,
  "round" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?`:
```sql
                SELECT "opponent" FROM "professional_record" WHERE "type"='ud' AND "round"='10' AND "date"='2008-06-11';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20?`

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

CREATE TABLE "professional_record" (
  "result" text,
  "opponent" text,
  "type" text,
  "round" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20?`:
```sql
                SELECT "opponent" FROM "professional_record" WHERE "type"='tko' AND "round"='2 (6)' AND "date"='2006-09-20';
```
## Task
Generate a SQL query to answer the following question:
`When has a Type of tko, and a Round of 1 (6)`

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

CREATE TABLE "professional_record" (
  "result" text,
  "opponent" text,
  "type" text,
  "round" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Type of tko, and a Round of 1 (6)`:
```sql
                SELECT "date" FROM "professional_record" WHERE "type"='tko' AND "round"='1 (6)';
```
## Task
Generate a SQL query to answer the following question:
`How many positions have a played greater than 12?`

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

CREATE TABLE "lpf_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions have a played greater than 12?`:
```sql
                SELECT COUNT("position") FROM "lpf_s_campeonato_paulista" WHERE "played">12;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest played that has points greater than 11, 1 as the position, and a loss less than 1?`

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

CREATE TABLE "lpf_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest played that has points greater than 11, 1 as the position, and a loss less than 1?`:
```sql
                SELECT MIN("played") FROM "lpf_s_campeonato_paulista" WHERE "points">11 AND "position"=1 AND "lost"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the Date that has a Outcome of winner, and çağla büyükakçay was the opponent in the final?`

### 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_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date that has a Outcome of winner, and çağla büyükakçay was the opponent in the final?`:
```sql
                SELECT "date" FROM "singles_5_4_1" WHERE "outcome"='winner' AND "opponent_in_the_final"='çağla büyükakçay';
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome when çağla büyükakçay was the opponent in the final?`

### 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_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome when çağla büyükakçay was the opponent in the final?`:
```sql
                SELECT "outcome" FROM "singles_5_4_1" WHERE "opponent_in_the_final"='çağla büyükakçay';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score when the opponent in the final is alicia pillay on a hard surface?`

### 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_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score when the opponent in the final is alicia pillay on a hard surface?`:
```sql
                SELECT "score" FROM "singles_5_4_1" WHERE "surface"='hard' AND "opponent_in_the_final"='alicia pillay';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent in the final when the outcome was runner-up?`

### 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_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent in the final when the outcome was runner-up?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_5_4_1" WHERE "outcome"='runner-up';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent in the final with an outcome of winner on 14-may-2007?`

### 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_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent in the final with an outcome of winner on 14-may-2007?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_5_4_1" WHERE "outcome"='winner' AND "date"='14-may-2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score for 09-oct-2006?`

### 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_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score for 09-oct-2006?`:
```sql
                SELECT "score" FROM "singles_5_4_1" WHERE "date"='09-oct-2006';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 10:00 PM when the 11:00 PM is to ma dauy kan (vj ja)?`

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

CREATE TABLE "night" (
  "time" text,
  "06_00_pm" text,
  "07_00_pm" text,
  "08_00_pm" text,
  "09_00_pm" text,
  "10_00_pm" text,
  "10_30_pm" text,
  "11_00_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 10:00 PM when the 11:00 PM is to ma dauy kan (vj ja)?`:
```sql
                SELECT "10_00_pm" FROM "night" WHERE "11_00_pm"='to ma dauy kan (vj ja)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 08:00 PM when the 07:00 PM is I am siam (rerun)?`

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

CREATE TABLE "night" (
  "time" text,
  "06_00_pm" text,
  "07_00_pm" text,
  "08_00_pm" text,
  "09_00_pm" text,
  "10_00_pm" text,
  "10_30_pm" text,
  "11_00_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 08:00 PM when the 07:00 PM is I am siam (rerun)?`:
```sql
                SELECT "08_00_pm" FROM "night" WHERE "07_00_pm"='i am siam (rerun)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 10:30 PM when the 08:00 PM is [v] play & learn, and a Time of Sunday?`

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

CREATE TABLE "night" (
  "time" text,
  "06_00_pm" text,
  "07_00_pm" text,
  "08_00_pm" text,
  "09_00_pm" text,
  "10_00_pm" text,
  "10_30_pm" text,
  "11_00_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 10:30 PM when the 08:00 PM is [v] play & learn, and a Time of Sunday?`:
```sql
                SELECT "10_30_pm" FROM "night" WHERE "08_00_pm"='[v] play & learn' AND "time"='sunday';
```
## Task
Generate a SQL query to answer the following question:
`What was the time of the bout against Dave Menne?`

### 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 `What was the time of the bout against Dave Menne?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='dave menne';
```
## Task
Generate a SQL query to answer the following question:
`What was the time of the bout that ended in a TKO (strikes)?`

### 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 `What was the time of the bout that ended in a TKO (strikes)?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='tko (strikes)';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of matches for the player in rank 8?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of matches for the player in rank 8?`:
```sql
                SELECT MAX("matches") FROM "list_of_top_association_football_goal_sc" WHERE "rank"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-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 `Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-25?`:
```sql
                SELECT "set_3" FROM "results_pool_c" WHERE "set_1"='19-25' AND "set_2"='19-25';
```
## Task
Generate a SQL query to answer the following question:
`What is the set 5 if the Date is jun 7, and a Set 4 is 21-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 if the Date is jun 7, and a Set 4 is 21-25?`:
```sql
                SELECT "set_5" FROM "results_pool_c" WHERE "date"='jun 7' AND "set_4"='21-25';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 5 if Set 2 is 25-20?`

### 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 if Set 2 is 25-20?`:
```sql
                SELECT "set_5" FROM "results_pool_c" WHERE "set_2"='25-20';
```
## Task
Generate a SQL query to answer the following question:
`Which driver's grid was 24?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver's grid was 24?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"=24;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of laps when the grid is less than 19 and time/retired is +21.3 secs?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean number of laps when the grid is less than 19 and time/retired is +21.3 secs?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "grid"<19 AND "time_retired"='+21.3 secs';
```