cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the decision on November 26?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the decision on November 26?`:
```sql
                SELECT "decision" FROM "regular_season" WHERE "date"='november 26';
```
## Task
Generate a SQL query to answer the following question:
`What is the BW 2013 ranking of Washington, D.C., which has an ARWU 2012 ranking greater than 51?`

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

CREATE TABLE "current_individual_rankings" (
  "location_state_city" text,
  "usn_2013" real,
  "bw_2013" real,
  "forbes_2011" real,
  "ec_2013" real,
  "ft_2011" real,
  "ae_2011" real,
  "cnn_2011" real,
  "bi_2013" real,
  "arwu_2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the BW 2013 ranking of Washington, D.C., which has an ARWU 2012 ranking greater than 51?`:
```sql
                SELECT "bw_2013" FROM "current_individual_rankings" WHERE "arwu_2012">51 AND "location_state_city"='washington, d.c.';
```
## Task
Generate a SQL query to answer the following question:
`What is the USN 2013 ranking with a BW 2013 ranking less than 1000, a Forbes 2011 ranking larger than 17, and a CNN 2011 ranking less than 13?`

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

CREATE TABLE "current_individual_rankings" (
  "location_state_city" text,
  "usn_2013" real,
  "bw_2013" real,
  "forbes_2011" real,
  "ec_2013" real,
  "ft_2011" real,
  "ae_2011" real,
  "cnn_2011" real,
  "bi_2013" real,
  "arwu_2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the USN 2013 ranking with a BW 2013 ranking less than 1000, a Forbes 2011 ranking larger than 17, and a CNN 2011 ranking less than 13?`:
```sql
                SELECT SUM("usn_2013") FROM "current_individual_rankings" WHERE "bw_2013"<1000 AND "forbes_2011">17 AND "cnn_2011"<13;
```
## Task
Generate a SQL query to answer the following question:
`What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44?`

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

CREATE TABLE "current_individual_rankings" (
  "location_state_city" text,
  "usn_2013" real,
  "bw_2013" real,
  "forbes_2011" real,
  "ec_2013" real,
  "ft_2011" real,
  "ae_2011" real,
  "cnn_2011" real,
  "bi_2013" real,
  "arwu_2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44?`:
```sql
                SELECT AVG("ae_2011") FROM "current_individual_rankings" WHERE "forbes_2011"=24 AND "ft_2011"<44;
```
## Task
Generate a SQL query to answer the following question:
`What is the average ARWU 2012 ranking of Illinois, Champaign, which has a USN 2013 ranking less than 91 and an EC 2013 ranking larger than 1000?`

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

CREATE TABLE "current_individual_rankings" (
  "location_state_city" text,
  "usn_2013" real,
  "bw_2013" real,
  "forbes_2011" real,
  "ec_2013" real,
  "ft_2011" real,
  "ae_2011" real,
  "cnn_2011" real,
  "bi_2013" real,
  "arwu_2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average ARWU 2012 ranking of Illinois, Champaign, which has a USN 2013 ranking less than 91 and an EC 2013 ranking larger than 1000?`:
```sql
                SELECT AVG("arwu_2012") FROM "current_individual_rankings" WHERE "usn_2013"<91 AND "location_state_city"='illinois, champaign' AND "ec_2013">1000;
```
## Task
Generate a SQL query to answer the following question:
`What is the average BW 2013 ranking of Texas, Fort Worth, which has an AE 2011 ranking of 1000 and an FT 2011 ranking less than 1000?`

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

CREATE TABLE "current_individual_rankings" (
  "location_state_city" text,
  "usn_2013" real,
  "bw_2013" real,
  "forbes_2011" real,
  "ec_2013" real,
  "ft_2011" real,
  "ae_2011" real,
  "cnn_2011" real,
  "bi_2013" real,
  "arwu_2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average BW 2013 ranking of Texas, Fort Worth, which has an AE 2011 ranking of 1000 and an FT 2011 ranking less than 1000?`:
```sql
                SELECT AVG("bw_2013") FROM "current_individual_rankings" WHERE "ae_2011"=1000 AND "location_state_city"='texas, fort worth' AND "ft_2011"<1000;
```
## Task
Generate a SQL query to answer the following question:
`Who did they play at lincoln financial field at 8:30 (ET) after week 14?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "time_et" text,
  "result" text,
  "game_site" text,
  "record" text,
  "nfl_recap" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did they play at lincoln financial field at 8:30 (ET) after week 14?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "week">14 AND "game_site"='lincoln financial field' AND "time_et"='8:30';
```
## Task
Generate a SQL query to answer the following question:
`What is the density for the area that is larger than 4,015.6 and a population smaller than 6,178?`

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

CREATE TABLE "administration" (
  "commune" text,
  "area_km_2" real,
  "2002_population" real,
  "density_km_2" real,
  "government_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the density for the area that is larger than 4,015.6 and a population smaller than 6,178?`:
```sql
                SELECT COUNT("density_km_2") FROM "administration" WHERE "area_km_2">'4,015.6' AND "2002_population"<'6,178';
```
## Task
Generate a SQL query to answer the following question:
`What is the density that has an area smaller than 2,200.2 and a population larger than 2,599?`

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

CREATE TABLE "administration" (
  "commune" text,
  "area_km_2" real,
  "2002_population" real,
  "density_km_2" real,
  "government_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the density that has an area smaller than 2,200.2 and a population larger than 2,599?`:
```sql
                SELECT COUNT("density_km_2") FROM "administration" WHERE "area_km_2"<'2,200.2' AND "2002_population">'2,599';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank for nations with fewer than 0 gold medals?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for nations with fewer than 0 gold medals?`:
```sql
                SELECT AVG("rank") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze medals with more than 1 medal total and fewer than 1 silver medal?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of bronze medals with more than 1 medal total and fewer than 1 silver medal?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "total">1 AND "silver"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of a nation with fewer than 0 silver medals?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of a nation with fewer than 0 silver medals?`:
```sql
                SELECT MAX("rank") FROM "medal_table" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Bats have a First of josh, and Throws of r, and a Surname of cakebread?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bats have a First of josh, and Throws of r, and a Surname of cakebread?`:
```sql
                SELECT "bats" FROM "player_roster" WHERE "first"='josh' AND "throws"='r' AND "surname"='cakebread';
```
## Task
Generate a SQL query to answer the following question:
`Which DOB has Throws of r, and a Position of c, and a First of torey?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which DOB has Throws of r, and a Position of c, and a First of torey?`:
```sql
                SELECT "d_o_b" FROM "player_roster" WHERE "throws"='r' AND "position"='c' AND "first"='torey';
```
## Task
Generate a SQL query to answer the following question:
`Which DOB has a Surname of cresswell?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which DOB has a Surname of cresswell?`:
```sql
                SELECT "d_o_b" FROM "player_roster" WHERE "surname"='cresswell';
```
## Task
Generate a SQL query to answer the following question:
`Which DOB has Bats of r, and Throws of r, and a Position of rhp, and a First of john?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which DOB has Bats of r, and Throws of r, and a Position of rhp, and a First of john?`:
```sql
                SELECT "d_o_b" FROM "player_roster" WHERE "bats"='r' AND "throws"='r' AND "position"='rhp' AND "first"='john';
```
## Task
Generate a SQL query to answer the following question:
`Which Position did Ruzic play?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position did Ruzic play?`:
```sql
                SELECT "position" FROM "player_roster" WHERE "surname"='ruzic';
```
## Task
Generate a SQL query to answer the following question:
`How many throws did Torey have?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many throws did Torey have?`:
```sql
                SELECT "throws" FROM "player_roster" WHERE "first"='torey';
```
## Task
Generate a SQL query to answer the following question:
`Which Ties is the highest one that has Losses smaller than 9, and Starts of 26, and Wins smaller than 21?`

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

CREATE TABLE "most_starts" (
  "name" text,
  "period" text,
  "starts" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ties is the highest one that has Losses smaller than 9, and Starts of 26, and Wins smaller than 21?`:
```sql
                SELECT MAX("ties") FROM "most_starts" WHERE "losses"<9 AND "starts"=26 AND "wins"<21;
```
## Task
Generate a SQL query to answer the following question:
`Which Win % has a Name of tony rice, and Wins smaller than 28?`

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

CREATE TABLE "most_starts" (
  "name" text,
  "period" text,
  "starts" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Win % has a Name of tony rice, and Wins smaller than 28?`:
```sql
                SELECT COUNT("win_pct") FROM "most_starts" WHERE "name"='tony rice' AND "wins"<28;
```
## Task
Generate a SQL query to answer the following question:
`Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?`

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

CREATE TABLE "most_starts" (
  "name" text,
  "period" text,
  "starts" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?`:
```sql
                SELECT SUM("wins") FROM "most_starts" WHERE "win_pct"<0.8270000000000001 AND "name"='rick mirer' AND "ties"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many Losses have a Name of blair kiel?`

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

CREATE TABLE "most_starts" (
  "name" text,
  "period" text,
  "starts" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Losses have a Name of blair kiel?`:
```sql
                SELECT COUNT("losses") FROM "most_starts" WHERE "name"='blair kiel';
```
## Task
Generate a SQL query to answer the following question:
`Which Losses have a Name of jimmy clausen?`

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

CREATE TABLE "most_starts" (
  "name" text,
  "period" text,
  "starts" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses have a Name of jimmy clausen?`:
```sql
                SELECT AVG("losses") FROM "most_starts" WHERE "name"='jimmy clausen';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of attendance on june 24`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of attendance on june 24`:
```sql
                SELECT COUNT("attendance") FROM "game_log" WHERE "date"='june 24';
```
## Task
Generate a SQL query to answer the following question:
`Attendance larger than 17,001, and a Date of june 15 had what decision?`

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

CREATE TABLE "stanley_cup_final" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Attendance larger than 17,001, and a Date of june 15 had what decision?`:
```sql
                SELECT "decision" FROM "stanley_cup_final" WHERE "attendance">'17,001' AND "date"='june 15';
```
## Task
Generate a SQL query to answer the following question:
`Home of dallas happened on what date?`

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

CREATE TABLE "stanley_cup_final" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Home of dallas happened on what date?`:
```sql
                SELECT "date" FROM "stanley_cup_final" WHERE "home"='dallas';
```
## Task
Generate a SQL query to answer the following question:
`Home of buffalo happened on what date?`

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

CREATE TABLE "stanley_cup_final" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Home of buffalo happened on what date?`:
```sql
                SELECT "date" FROM "stanley_cup_final" WHERE "home"='buffalo';
```
## Task
Generate a SQL query to answer the following question:
`Visitor of dallas, and a Date of june 12 had what highest attendance?`

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

CREATE TABLE "stanley_cup_final" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Visitor of dallas, and a Date of june 12 had what highest attendance?`:
```sql
                SELECT MAX("attendance") FROM "stanley_cup_final" WHERE "visitor"='dallas' AND "date"='june 12';
```
## Task
Generate a SQL query to answer the following question:
`On which date was the position less than 4 at Piraeus?`

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

CREATE TABLE "men_indoor" (
  "pos" real,
  "mark" text,
  "athlete" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the position less than 4 at Piraeus?`:
```sql
                SELECT "date" FROM "men_indoor" WHERE "pos"<4 AND "venue"='piraeus';
```
## Task
Generate a SQL query to answer the following question:
`Which team had 64 laps and 13 points?`

### 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,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had 64 laps and 13 points?`:
```sql
                SELECT "team" FROM "race" WHERE "laps"=64 AND "points"=13;
```
## Task
Generate a SQL query to answer the following question:
`How many laps did the team with a time/retired of +1.906 have?`

### 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,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did the team with a time/retired of +1.906 have?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "time_retired"='+1.906';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired of the team with a grid of 14?`

### 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,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired of the team with a grid of 14?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"=14;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?`

### 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,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "team"='pkv racing' AND "points"=13 AND "laps"<64;
```
## Task
Generate a SQL query to answer the following question:
`What is the total grid of the team with a time/retired of +7.346?`

### 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,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total grid of the team with a time/retired of +7.346?`:
```sql
                SELECT COUNT("grid") FROM "race" WHERE "time_retired"='+7.346';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid of pkv racing with the driver oriol servià?`

### 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,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid of pkv racing with the driver oriol servià?`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "team"='pkv racing' AND "driver"='oriol servià';
```
## Task
Generate a SQL query to answer the following question:
`When Cancelable of yes, bubble of yes and a Category of keyboard, what was the Attribute?`

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

CREATE TABLE "microsoft_specific_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Cancelable of yes, bubble of yes and a Category of keyboard, what was the Attribute?`:
```sql
                SELECT "attribute" FROM "microsoft_specific_events" WHERE "cancelable"='yes' AND "bubbles"='yes' AND "category"='keyboard';
```
## Task
Generate a SQL query to answer the following question:
`When Bubbles of no, and a Category of miscellaneous, and a Type of propertychange, what was the Cancelable?`

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

CREATE TABLE "microsoft_specific_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Bubbles of no, and a Category of miscellaneous, and a Type of propertychange, what was the Cancelable?`:
```sql
                SELECT "cancelable" FROM "microsoft_specific_events" WHERE "bubbles"='no' AND "category"='miscellaneous' AND "type"='propertychange';
```
## Task
Generate a SQL query to answer the following question:
`When Type was rowexit what was the Category?`

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

CREATE TABLE "microsoft_specific_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Type was rowexit what was the Category?`:
```sql
                SELECT "category" FROM "microsoft_specific_events" WHERE "type"='rowexit';
```
## Task
Generate a SQL query to answer the following question:
`When Cancelable of yes, and a Type of drag, what was the Category?`

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

CREATE TABLE "microsoft_specific_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Cancelable of yes, and a Type of drag, what was the Category?`:
```sql
                SELECT "category" FROM "microsoft_specific_events" WHERE "cancelable"='yes' AND "type"='drag';
```
## Task
Generate a SQL query to answer the following question:
`When Event has Bubbles of yes, Cancelable of yes, Category of mouse, and a Type of contextmenu what is the Attribute?`

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

CREATE TABLE "microsoft_specific_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Event has Bubbles of yes, Cancelable of yes, Category of mouse, and a Type of contextmenu what is the Attribute?`:
```sql
                SELECT "attribute" FROM "microsoft_specific_events" WHERE "bubbles"='yes' AND "cancelable"='yes' AND "category"='mouse' AND "type"='contextmenu';
```
## Task
Generate a SQL query to answer the following question:
`Let's say Type is of datasetcomplete, what is the Attribute?`

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

CREATE TABLE "microsoft_specific_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `Let's say Type is of datasetcomplete, what is the Attribute?`:
```sql
                SELECT "attribute" FROM "microsoft_specific_events" WHERE "type"='datasetcomplete';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the parish that has a former local authority of St Neots urban district?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the parish that has a former local authority of St Neots urban district?`:
```sql
                SELECT "name" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "former_local_authority"='st neots urban district';
```
## Task
Generate a SQL query to answer the following question:
`What district is the parish who had the South Cambridgeshire rural district as the former local authority?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is the parish who had the South Cambridgeshire rural district as the former local authority?`:
```sql
                SELECT "district" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "former_local_authority"='south cambridgeshire rural district';
```
## Task
Generate a SQL query to answer the following question:
`What district is St Martin's Without parish in with a population less than 75?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is St Martin's Without parish in with a population less than 75?`:
```sql
                SELECT "district" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "population"<75 AND "name"='st martin''s without';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when FK kom were the guests?`

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

CREATE TABLE "schedule" (
  "venue" text,
  "home" text,
  "guest" text,
  "score" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when FK kom were the guests?`:
```sql
                SELECT "home" FROM "schedule" WHERE "guest"='fk kom';
```
## Task
Generate a SQL query to answer the following question:
`What venue was the match against the guest team, FK ibar, played at?`

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

CREATE TABLE "schedule" (
  "venue" text,
  "home" text,
  "guest" text,
  "score" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What venue was the match against the guest team, FK ibar, played at?`:
```sql
                SELECT "venue" FROM "schedule" WHERE "guest"='fk ibar';
```
## Task
Generate a SQL query to answer the following question:
`What's the Score with a Home of Scotland and Date of 24 February?`

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

CREATE TABLE "results" (
  "year" real,
  "home" text,
  "score" text,
  "away" text,
  "date" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Score with a Home of Scotland and Date of 24 February?`:
```sql
                SELECT "score" FROM "results" WHERE "home"='scotland' AND "date"='24 february';
```
## Task
Generate a SQL query to answer the following question:
`What round was john sutro, tackle, drafter with a pick lower than 79?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was john sutro, tackle, drafter with a pick lower than 79?`:
```sql
                SELECT SUM("round") FROM "nfl_draft" WHERE "position"='tackle' AND "player"='john sutro' AND "pick"<79;
```
## Task
Generate a SQL query to answer the following question:
`What pick was roger holdinsky?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick was roger holdinsky?`:
```sql
                SELECT "pick" FROM "nfl_draft" WHERE "player"='roger holdinsky';
```
## Task
Generate a SQL query to answer the following question:
`When was chuck morris, back, drafted?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was chuck morris, back, drafted?`:
```sql
                SELECT MIN("pick") FROM "nfl_draft" WHERE "position"='back' AND "player"='chuck morris';
```
## Task
Generate a SQL query to answer the following question:
`What wss the average round drafted for xavier players?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What wss the average round drafted for xavier players?`:
```sql
                SELECT AVG("round") FROM "nfl_draft" WHERE "school"='xavier';
```
## Task
Generate a SQL query to answer the following question:
`What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?`

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

CREATE TABLE "references" (
  "rank" text,
  "urban_sub_area" text,
  "population" text,
  "status" text,
  "council_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?`:
```sql
                SELECT "urban_sub_area" FROM "references" WHERE "council_area"='east dunbartonshire' AND "population"='19,020';
```
## Task
Generate a SQL query to answer the following question:
`What is the council area for the Larkhall urban sub-area?`

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

CREATE TABLE "references" (
  "rank" text,
  "urban_sub_area" text,
  "population" text,
  "status" text,
  "council_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the council area for the Larkhall urban sub-area?`:
```sql
                SELECT "council_area" FROM "references" WHERE "urban_sub_area"='larkhall';
```
## Task
Generate a SQL query to answer the following question:
`What is the population of the East Kilbride urban sub-area?`

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

CREATE TABLE "references" (
  "rank" text,
  "urban_sub_area" text,
  "population" text,
  "status" text,
  "council_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of the East Kilbride urban sub-area?`:
```sql
                SELECT "population" FROM "references" WHERE "urban_sub_area"='east kilbride';
```
## Task
Generate a SQL query to answer the following question:
`Which urban sub-area has a population of 16,140?`

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

CREATE TABLE "references" (
  "rank" text,
  "urban_sub_area" text,
  "population" text,
  "status" text,
  "council_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which urban sub-area has a population of 16,140?`:
```sql
                SELECT "urban_sub_area" FROM "references" WHERE "population"='16,140';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the cubs on July 19?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the cubs on July 19?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='july 19';
```
## Task
Generate a SQL query to answer the following question:
`What was the score during the game that had more than 12,194 people in attendance and a record of 53-32?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score during the game that had more than 12,194 people in attendance and a record of 53-32?`:
```sql
                SELECT "score" FROM "game_log" WHERE "attendance">'12,194' AND "record"='53-32';
```
## Task
Generate a SQL query to answer the following question:
`What nationality is Northwood School (N.Y.)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is Northwood School (N.Y.)?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "college_junior_club_team_league"='northwood school (n.y.)';
```
## Task
Generate a SQL query to answer the following question:
`What are incumbent William Vandever's results?`

### 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" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are incumbent William Vandever's results?`:
```sql
                SELECT "result" FROM "california" WHERE "incumbent"='william vandever';
```
## Task
Generate a SQL query to answer the following question:
`Who was the first person elected from Democratic GAIN?`

### 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" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first person elected from Democratic GAIN?`:
```sql
                SELECT "first_elected" FROM "california" WHERE "result"='democratic gain';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for incumbent Joseph McKenna who was first elected in 1884?`

### 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" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for incumbent Joseph McKenna who was first elected in 1884?`:
```sql
                SELECT "result" FROM "california" WHERE "first_elected"='1884' AND "incumbent"='joseph mckenna';
```
## Task
Generate a SQL query to answer the following question:
`When was republican incumbent Joseph McKenna first elected?`

### 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" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was republican incumbent Joseph McKenna first elected?`:
```sql
                SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "incumbent"='joseph mckenna';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest capacity in grodno`

### 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_1992" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest capacity in grodno`:
```sql
                SELECT MIN("capacity") FROM "teams_and_venues" WHERE "location"='grodno';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has January larger than 18 and a Record of 35–15–1?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has January larger than 18 and a Record of 35–15–1?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "january">18 AND "record"='35–15–1';
```
## Task
Generate a SQL query to answer the following question:
`How many starts are associated with an oldsmobile engine, 21 finishes and before 2001?`

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

CREATE TABLE "indianapolis_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many starts are associated with an oldsmobile engine, 21 finishes and before 2001?`:
```sql
                SELECT SUM("start") FROM "indianapolis_500_results" WHERE "engine"='oldsmobile' AND "finish"=21 AND "year"<2001;
```
## Task
Generate a SQL query to answer the following question:
`What was the finish associated with under 11 starts, a honda engine, before 2003?`

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

CREATE TABLE "indianapolis_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish associated with under 11 starts, a honda engine, before 2003?`:
```sql
                SELECT AVG("finish") FROM "indianapolis_500_results" WHERE "start"<11 AND "engine"='honda' AND "year"<2003;
```
## Task
Generate a SQL query to answer the following question:
`what is the director of la ronde`

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

CREATE TABLE "1960s" (
  "year" text,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the director of la ronde`:
```sql
                SELECT "director" FROM "1960s" WHERE "original_title"='la ronde';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of people attending the game on May 30 with Colorado as the visitors?`

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

CREATE TABLE "western_conference_finals" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of people attending the game on May 30 with Colorado as the visitors?`:
```sql
                SELECT MIN("attendance") FROM "western_conference_finals" WHERE "visitor"='colorado' AND "date"='may 30';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of people attending the game where Colorado was the home team?`

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

CREATE TABLE "western_conference_finals" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of people attending the game where Colorado was the home team?`:
```sql
                SELECT MIN("attendance") FROM "western_conference_finals" WHERE "home"='colorado';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on May 26?`

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

CREATE TABLE "western_conference_finals" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game on May 26?`:
```sql
                SELECT "score" FROM "western_conference_finals" WHERE "date"='may 26';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round that Adam Wiesel was picked?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round that Adam Wiesel was picked?`:
```sql
                SELECT MIN("round") FROM "nhl_entry_draft" WHERE "player"='adam wiesel';
```
## Task
Generate a SQL query to answer the following question:
`What college, junior, or club team did defence player Rory Fitzpatrick play for?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college, junior, or club team did defence player Rory Fitzpatrick play for?`:
```sql
                SELECT "college_junior_club_team" FROM "nhl_entry_draft" WHERE "position"='defence' AND "player"='rory fitzpatrick';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for 1911?`

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

CREATE TABLE "largest_margin_of_innings_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for 1911?`:
```sql
                SELECT "score" FROM "largest_margin_of_innings_victory" WHERE "year"=1911;
```
## Task
Generate a SQL query to answer the following question:
`what country has tiger woods`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what country has tiger woods`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`what country has a score of 69-70-72=211?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what country has a score of 69-70-72=211?`:
```sql
                SELECT "place" FROM "third_round" WHERE "score"='69-70-72=211';
```
## Task
Generate a SQL query to answer the following question:
`what player scored 69-72-68=209?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what player scored 69-72-68=209?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='69-72-68=209';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number for earnings for tom watson when ranked more than 2?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number for earnings for tom watson when ranked more than 2?`:
```sql
                SELECT MAX("earnings") FROM "leaders" WHERE "player"='tom watson' AND "rank">2;
```