cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the women's singles for 2012`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the women's singles for 2012`:
```sql
                SELECT "women_s_singles" FROM "previous_winners" WHERE "year"='2012';
```
## Task
Generate a SQL query to answer the following question:
`Name the year for angga pratama ryan agung saputra`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for angga pratama ryan agung saputra`:
```sql
                SELECT "year" FROM "previous_winners" WHERE "men_s_doubles"='angga pratama ryan agung saputra';
```
## Task
Generate a SQL query to answer the following question:
`Name the men's doubles for anneke feinya agustin nitya krishinda maheswari`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the men's doubles for anneke feinya agustin nitya krishinda maheswari`:
```sql
                SELECT "men_s_doubles" FROM "previous_winners" WHERE "women_s_doubles"='anneke feinya agustin nitya krishinda maheswari';
```
## Task
Generate a SQL query to answer the following question:
`Name the men's doubles for 2010`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the men's doubles for 2010`:
```sql
                SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"='2010';
```
## Task
Generate a SQL query to answer the following question:
`What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)?`

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

CREATE TABLE "ap_poll" (
  "preseason" text,
  "week_1_aug_26" text,
  "week_2_sept_2" text,
  "week_3_sept_8" text,
  "week_4_sept_15" text,
  "week_5_sept_22" text,
  "week_6_sept_29" text,
  "week_7_oct_6" text,
  "week_8_oct_13" text,
  "week_9_oct_20" text,
  "week_10_oct_27" text,
  "week_11_nov_3" text,
  "week_12_nov_10" text,
  "week_13_nov_17" text,
  "week_14_nov_24" text,
  "week_15_dec_1" text,
  "week_16_dec_8" text,
  "week_17_final_jan_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)?`:
```sql
                SELECT "week_14_nov_24" FROM "ap_poll" WHERE "week_11_nov_3"='usc (6-2)';
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)?`

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

CREATE TABLE "ap_poll" (
  "preseason" text,
  "week_1_aug_26" text,
  "week_2_sept_2" text,
  "week_3_sept_8" text,
  "week_4_sept_15" text,
  "week_5_sept_22" text,
  "week_6_sept_29" text,
  "week_7_oct_6" text,
  "week_8_oct_13" text,
  "week_9_oct_20" text,
  "week_10_oct_27" text,
  "week_11_nov_3" text,
  "week_12_nov_10" text,
  "week_13_nov_17" text,
  "week_14_nov_24" text,
  "week_15_dec_1" text,
  "week_16_dec_8" text,
  "week_17_final_jan_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)?`:
```sql
                SELECT "week_9_oct_20" FROM "ap_poll" WHERE "week_17_final_jan_4"='michigan (10-3)';
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the Week 1 Aug 26 that has a Week 7 Oct 6 of USC (3-2)?`

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

CREATE TABLE "ap_poll" (
  "preseason" text,
  "week_1_aug_26" text,
  "week_2_sept_2" text,
  "week_3_sept_8" text,
  "week_4_sept_15" text,
  "week_5_sept_22" text,
  "week_6_sept_29" text,
  "week_7_oct_6" text,
  "week_8_oct_13" text,
  "week_9_oct_20" text,
  "week_10_oct_27" text,
  "week_11_nov_3" text,
  "week_12_nov_10" text,
  "week_13_nov_17" text,
  "week_14_nov_24" text,
  "week_15_dec_1" text,
  "week_16_dec_8" text,
  "week_17_final_jan_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Week 1 Aug 26 that has a Week 7 Oct 6 of USC (3-2)?`:
```sql
                SELECT "week_1_aug_26" FROM "ap_poll" WHERE "week_7_oct_6"='usc (3-2)';
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the Week 3 Sept 8 that has a Week 2 Sept 2 of Florida State (2-0) (4)?`

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

CREATE TABLE "ap_poll" (
  "preseason" text,
  "week_1_aug_26" text,
  "week_2_sept_2" text,
  "week_3_sept_8" text,
  "week_4_sept_15" text,
  "week_5_sept_22" text,
  "week_6_sept_29" text,
  "week_7_oct_6" text,
  "week_8_oct_13" text,
  "week_9_oct_20" text,
  "week_10_oct_27" text,
  "week_11_nov_3" text,
  "week_12_nov_10" text,
  "week_13_nov_17" text,
  "week_14_nov_24" text,
  "week_15_dec_1" text,
  "week_16_dec_8" text,
  "week_17_final_jan_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Week 3 Sept 8 that has a Week 2 Sept 2 of Florida State (2-0) (4)?`:
```sql
                SELECT "week_3_sept_8" FROM "ap_poll" WHERE "week_2_sept_2"='florida state (2-0) (4)';
```
## Task
Generate a SQL query to answer the following question:
`How much December has a Score of 5–2, and a Game smaller than 27?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much December has a Score of 5–2, and a Game smaller than 27?`:
```sql
                SELECT COUNT("december") FROM "regular_season" WHERE "score"='5–2' AND "game"<27;
```
## Task
Generate a SQL query to answer the following question:
`Which Game has an Opponent of @ pittsburgh penguins?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has an Opponent of @ pittsburgh penguins?`:
```sql
                SELECT MAX("game") FROM "regular_season" WHERE "opponent"='@ pittsburgh penguins';
```
## Task
Generate a SQL query to answer the following question:
`Which December has a Record of 21–7–2, and a Game larger than 30?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which December has a Record of 21–7–2, and a Game larger than 30?`:
```sql
                SELECT MAX("december") FROM "regular_season" WHERE "record"='21–7–2' AND "game">30;
```
## Task
Generate a SQL query to answer the following question:
`Which December has Points of 38, and a Record of 18–6–2?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which December has Points of 38, and a Record of 18–6–2?`:
```sql
                SELECT AVG("december") FROM "regular_season" WHERE "points"=38 AND "record"='18–6–2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score that has a Result of 2–1 on 5 july 2007?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score that has a Result of 2–1 on 5 july 2007?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "result"='2–1' AND "date"='5 july 2007';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Venue of hong kong?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has a Venue of hong kong?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "venue"='hong kong';
```
## Task
Generate a SQL query to answer the following question:
`When is the Competition of friendly match with a Result of 2–1?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the Competition of friendly match with a Result of 2–1?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='friendly match' AND "result"='2–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Result of 2–0?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Result of 2–0?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "result"='2–0';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of 2007 afc asian cup qualification with a Result of 8–0?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of 2007 afc asian cup qualification with a Result of 8–0?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='2007 afc asian cup qualification' AND "result"='8–0';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Result of 3–1?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has a Result of 3–1?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "result"='3–1';
```
## Task
Generate a SQL query to answer the following question:
`What was the Indians' record during the game that had 31,467 in attendance?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Indians' record during the game that had 31,467 in attendance?`:
```sql
                SELECT "record" FROM "game_log" WHERE "attendance"='31,467';
```
## Task
Generate a SQL query to answer the following question:
`what year is 4:00 long`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `what year is 4:00 long`:
```sql
                SELECT COUNT("year") FROM "official_versions" WHERE "length"='4:00';
```
## Task
Generate a SQL query to answer the following question:
`What round on average was a defensive tackle selected?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round on average was a defensive tackle selected?`:
```sql
                SELECT AVG("round") FROM "atlanta_falcons_draft_history" WHERE "position"='defensive tackle';
```
## Task
Generate a SQL query to answer the following question:
`11th of 26, and a 17th larger than 16 has what highest 30th?`

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

CREATE TABLE "points_system" (
  "distance" text,
  "10th" real,
  "11th" real,
  "12th" real,
  "13th" real,
  "14th" real,
  "15th" real,
  "16th" real,
  "17th" real,
  "18th" real,
  "19th" real,
  "20th" real,
  "21st" real,
  "22nd" real,
  "23rd" real,
  "24th" real,
  "25th" real,
  "26th" real,
  "27th" real,
  "28th" real,
  "29th" real,
  "30th" real,
  "31st" real,
  "32nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `11th of 26, and a 17th larger than 16 has what highest 30th?`:
```sql
                SELECT MAX("30th") FROM "points_system" WHERE "11th"=26 AND "17th">16;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze?`

### 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 lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "silver"<1 AND "rank">5 AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`Who ha the gold and 1 bronze, and more than 0 silver?`

### 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 `Who ha the gold and 1 bronze, and more than 0 silver?`:
```sql
                SELECT "gold" FROM "medal_table" WHERE "bronze"=1 AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`Who has a total of the Bronze less than 4, gold more than 0, and no silver?`

### 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 `Who has a total of the Bronze less than 4, gold more than 0, and no silver?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "total"<4 AND "gold">0 AND "silver"=0;
```
## Task
Generate a SQL query to answer the following question:
`What's the Points average with a Lost of 21, and Position of 22?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "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's the Points average with a Lost of 21, and Position of 22?`:
```sql
                SELECT AVG("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "lost"=21 AND "position"=22;
```
## Task
Generate a SQL query to answer the following question:
`What's the total Lost that has a Played that's larger than 42?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "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's the total Lost that has a Played that's larger than 42?`:
```sql
                SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "played">42;
```
## Task
Generate a SQL query to answer the following question:
`what's the relative value that contains a jyutping of daam3?`

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

CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" (
  "jyutping" text,
  "character" text,
  "portuguese" text,
  "relative_value" text,
  "metric_value" text,
  "imperial_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the relative value that contains a jyutping of daam3?`:
```sql
                SELECT "relative_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='daam3';
```
## Task
Generate a SQL query to answer the following question:
`What metric value has a jyutping of lei4?`

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

CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" (
  "jyutping" text,
  "character" text,
  "portuguese" text,
  "relative_value" text,
  "metric_value" text,
  "imperial_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What metric value has a jyutping of lei4?`:
```sql
                SELECT "metric_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='lei4';
```
## Task
Generate a SQL query to answer the following question:
`what's the imperial that contains a jyutping of cin4?`

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

CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" (
  "jyutping" text,
  "character" text,
  "portuguese" text,
  "relative_value" text,
  "metric_value" text,
  "imperial_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the imperial that contains a jyutping of cin4?`:
```sql
                SELECT "imperial_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='cin4';
```
## Task
Generate a SQL query to answer the following question:
`What was the location that led to a record of 9-0-0?`

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

CREATE TABLE "boxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "rd_time" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location that led to a record of 9-0-0?`:
```sql
                SELECT "location" FROM "boxing_record" WHERE "record"='9-0-0';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the bout against Nikki Eplion, which resulted in a win in round 3?`

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

CREATE TABLE "boxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "rd_time" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the bout against Nikki Eplion, which resulted in a win in round 3?`:
```sql
                SELECT "record" FROM "boxing_record" WHERE "result"='win' AND "rd_time"='3' AND "opponent"='nikki eplion';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of bronze medals with less than 2 silver medals and more than 1 medal in total for Uzbekistan?`

### 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 lowest number of bronze medals with less than 2 silver medals and more than 1 medal in total for Uzbekistan?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "silver"<2 AND "total">1 AND "nation"='uzbekistan';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414?`:
```sql
                SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=11 AND "overall"<414 AND "position"='offensive tackle';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round with a pick# of 9, overll less than 468, and position of defensive back?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round with a pick# of 9, overll less than 468, and position of defensive back?`:
```sql
                SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=9 AND "position"='defensive back' AND "overall"<468;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round with a guard position and an overall greater than 71?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round with a guard position and an overall greater than 71?`:
```sql
                SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "position"='guard' AND "overall">71;
```
## Task
Generate a SQL query to answer the following question:
`Who has an overall greater than 414 with a pick# bigger than 9?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has an overall greater than 414 with a pick# bigger than 9?`:
```sql
                SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "overall">414 AND "pick_num">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the Gaelic name for an area less than 127 in Kintyre?`

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

CREATE TABLE "islands" (
  "island" text,
  "gaelic_name" text,
  "location" text,
  "area_ha" real,
  "population" real,
  "last_inhabited" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Gaelic name for an area less than 127 in Kintyre?`:
```sql
                SELECT "gaelic_name" FROM "islands" WHERE "area_ha"<127 AND "location"='kintyre';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 7 february 2008?`

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

CREATE TABLE "doubles_35_23_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 7 february 2008?`:
```sql
                SELECT "score" FROM "doubles_35_23_12" WHERE "date"='7 february 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome on 13 may 2007?`

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

CREATE TABLE "doubles_35_23_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome on 13 may 2007?`:
```sql
                SELECT "outcome" FROM "doubles_35_23_12" WHERE "date"='13 may 2007';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 3 may 2009?`

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

CREATE TABLE "doubles_35_23_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 3 may 2009?`:
```sql
                SELECT "score" FROM "doubles_35_23_12" WHERE "date"='3 may 2009';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for venue of jalan besar, singapore`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for venue of jalan besar, singapore`:
```sql
                SELECT "score" FROM "international_goals" WHERE "venue"='jalan besar, singapore';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for 2 june 2008`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for 2 june 2008`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='2 june 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Game of 63?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Game of 63?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "game"=63;
```
## Task
Generate a SQL query to answer the following question:
`which Record has a Score of 1–4?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `which Record has a Score of 1–4?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "score"='1–4';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8–7?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8–7?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "points"<62 AND "february">16 AND "score"='8–7';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Issues has a End month of oct-80?`

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

CREATE TABLE "other_bibliographic_details" (
  "start_month" text,
  "end_month" text,
  "cover" text,
  "spine" text,
  "indicia" text,
  "masthead" text,
  "number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Issues has a End month of oct-80?`:
```sql
                SELECT COUNT("number_of_issues") FROM "other_bibliographic_details" WHERE "end_month"='oct-80';
```
## Task
Generate a SQL query to answer the following question:
`What is the Spine that has fantastic stories science fiction & fantasy with and end month in aug-72?`

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

CREATE TABLE "other_bibliographic_details" (
  "start_month" text,
  "end_month" text,
  "cover" text,
  "spine" text,
  "indicia" text,
  "masthead" text,
  "number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Spine that has fantastic stories science fiction & fantasy with and end month in aug-72?`:
```sql
                SELECT "spine" FROM "other_bibliographic_details" WHERE "indicia"='fantastic' AND "cover"='fantastic stories science fiction & fantasy' AND "end_month"='aug-72';
```
## Task
Generate a SQL query to answer the following question:
`Which Indicia has anEnd month in feb-75?`

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

CREATE TABLE "other_bibliographic_details" (
  "start_month" text,
  "end_month" text,
  "cover" text,
  "spine" text,
  "indicia" text,
  "masthead" text,
  "number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Indicia has anEnd month in feb-75?`:
```sql
                SELECT "indicia" FROM "other_bibliographic_details" WHERE "end_month"='feb-75';
```
## Task
Generate a SQL query to answer the following question:
`Which HAAT has a Channels TV / RF of 31 (psip) 44 (uhf)`

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

CREATE TABLE "stations" (
  "station" text,
  "city_of_license" text,
  "channels_tv_rf" text,
  "first_air_date" text,
  "haat" text,
  "facility_id" real,
  "public_license_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which HAAT has a Channels TV / RF of 31 (psip) 44 (uhf)`:
```sql
                SELECT "haat" FROM "stations" WHERE "channels_tv_rf"='31 (psip) 44 (uhf)';
```
## Task
Generate a SQL query to answer the following question:
`Which City of license has a Channels TV / RF of 67 ( psip ) 29 ( uhf )`

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

CREATE TABLE "stations" (
  "station" text,
  "city_of_license" text,
  "channels_tv_rf" text,
  "first_air_date" text,
  "haat" text,
  "facility_id" real,
  "public_license_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City of license has a Channels TV / RF of 67 ( psip ) 29 ( uhf )`:
```sql
                SELECT "city_of_license" FROM "stations" WHERE "channels_tv_rf"='67 ( psip ) 29 ( uhf )';
```
## Task
Generate a SQL query to answer the following question:
`Which Station has hagerstown?`

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

CREATE TABLE "stations" (
  "station" text,
  "city_of_license" text,
  "channels_tv_rf" text,
  "first_air_date" text,
  "haat" text,
  "facility_id" real,
  "public_license_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Station has hagerstown?`:
```sql
                SELECT "station" FROM "stations" WHERE "city_of_license"='hagerstown';
```
## Task
Generate a SQL query to answer the following question:
`Which HAAT has 65944?`

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

CREATE TABLE "stations" (
  "station" text,
  "city_of_license" text,
  "channels_tv_rf" text,
  "first_air_date" text,
  "haat" text,
  "facility_id" real,
  "public_license_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which HAAT has 65944?`:
```sql
                SELECT "haat" FROM "stations" WHERE "facility_id"=65944;
```
## Task
Generate a SQL query to answer the following question:
`Which City of license has a Channels TV / RF of 36 (psip) 36 (uhf)? Question 5`

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

CREATE TABLE "stations" (
  "station" text,
  "city_of_license" text,
  "channels_tv_rf" text,
  "first_air_date" text,
  "haat" text,
  "facility_id" real,
  "public_license_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City of license has a Channels TV / RF of 36 (psip) 36 (uhf)? Question 5`:
```sql
                SELECT "city_of_license" FROM "stations" WHERE "channels_tv_rf"='36 (psip) 36 (uhf)';
```
## Task
Generate a SQL query to answer the following question:
`What format is dated October 29, 2004?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format is dated October 29, 2004?`:
```sql
                SELECT "format" FROM "release_history" WHERE "date"='october 29, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What is the date with the catalogue number ptcd-1015-6?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date with the catalogue number ptcd-1015-6?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalogue_num"='ptcd-1015-6';
```
## Task
Generate a SQL query to answer the following question:
`What is the label for December 2004?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the label for December 2004?`:
```sql
                SELECT "label" FROM "release_history" WHERE "date"='december 2004';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for Hydra Head Records with a CD format?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for Hydra Head Records with a CD format?`:
```sql
                SELECT "date" FROM "release_history" WHERE "label"='hydra head records' AND "format"='cd';
```
## Task
Generate a SQL query to answer the following question:
`Which country has Hydra Head Records on February 2005?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has Hydra Head Records on February 2005?`:
```sql
                SELECT "country" FROM "release_history" WHERE "label"='hydra head records' AND "date"='february 2005';
```
## Task
Generate a SQL query to answer the following question:
`Which country has Hydra Head Records with a 2lp format?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has Hydra Head Records with a 2lp format?`:
```sql
                SELECT "country" FROM "release_history" WHERE "format"='2lp' AND "label"='hydra head records';
```
## Task
Generate a SQL query to answer the following question:
`Who rode mad rush?`

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

CREATE TABLE "race_starters" (
  "saddle_cloth" real,
  "horse" text,
  "trainer" text,
  "jockey" text,
  "weight_kg" real,
  "barrier_b" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who rode mad rush?`:
```sql
                SELECT "jockey" FROM "race_starters" WHERE "horse"='mad rush';
```
## Task
Generate a SQL query to answer the following question:
`What place was the horse with a barrier of 20 and weighing less than 54 kg`

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

CREATE TABLE "race_starters" (
  "saddle_cloth" real,
  "horse" text,
  "trainer" text,
  "jockey" text,
  "weight_kg" real,
  "barrier_b" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place was the horse with a barrier of 20 and weighing less than 54 kg`:
```sql
                SELECT "placing" FROM "race_starters" WHERE "weight_kg"<54 AND "barrier_b"='20';
```
## Task
Generate a SQL query to answer the following question:
`What place was the viewed horse?`

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

CREATE TABLE "race_starters" (
  "saddle_cloth" real,
  "horse" text,
  "trainer" text,
  "jockey" text,
  "weight_kg" real,
  "barrier_b" text,
  "placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place was the viewed horse?`:
```sql
                SELECT "placing" FROM "race_starters" WHERE "horse"='viewed';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts?`:
```sql
                SELECT AVG("wins") FROM "nascar_nationwide_series" WHERE "top_10"<5 AND "winnings"='$39,190' AND "starts"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of poles of the year before 1992 with more than 18 starts and winnings of $125,102?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of poles of the year before 1992 with more than 18 starts and winnings of $125,102?`:
```sql
                SELECT MAX("poles") FROM "nascar_nationwide_series" WHERE "starts">18 AND "winnings"='$125,102' AND "year"<1992;
```
## Task
Generate a SQL query to answer the following question:
`Author of stanisław wyspiański, and a Year of 1969 happened in what theatre?`

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

CREATE TABLE "notable_works" (
  "year" real,
  "play" text,
  "author" text,
  "theatre" text,
  "type" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `Author of stanisław wyspiański, and a Year of 1969 happened in what theatre?`:
```sql
                SELECT "theatre" FROM "notable_works" WHERE "author"='stanisław wyspiański' AND "year"=1969;
```
## Task
Generate a SQL query to answer the following question:
`Which game did New Jersey Devils played in?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game did New Jersey Devils played in?`:
```sql
                SELECT "game" FROM "schedule_and_results" WHERE "opponent"='new jersey devils';
```
## Task
Generate a SQL query to answer the following question:
`What score has a record of 21-25-7-4?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a record of 21-25-7-4?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "record"='21-25-7-4';
```
## Task
Generate a SQL query to answer the following question:
`What score has a record of 22-28-7-4?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a record of 22-28-7-4?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "record"='22-28-7-4';
```
## Task
Generate a SQL query to answer the following question:
`What group has 1200 m as the distance?`

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

CREATE TABLE "2000_01_season_as_a_two_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 group has 1200 m as the distance?`:
```sql
                SELECT "group" FROM "2000_01_season_as_a_two_year_old" WHERE "distance"='1200 m';
```
## Task
Generate a SQL query to answer the following question:
`What venue has g1 as the group?`

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

CREATE TABLE "2000_01_season_as_a_two_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 venue has g1 as the group?`:
```sql
                SELECT "venue" FROM "2000_01_season_as_a_two_year_old" WHERE "group"='g1';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4?`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4?`:
```sql
                SELECT MAX("points") FROM "torneo_apertura" WHERE "team"='tacuary' AND "losses"<4;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of Losses that Scored larger than 15, has Points that's larger than 16, and Played that's larger than 9?`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of Losses that Scored larger than 15, has Points that's larger than 16, and Played that's larger than 9?`:
```sql
                SELECT SUM("losses") FROM "torneo_apertura" WHERE "scored">15 AND "points">16 AND "played">9;
```
## Task
Generate a SQL query to answer the following question:
`What's the highest Played with a Scored of 15, and Draws that's less than 1?`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Played with a Scored of 15, and Draws that's less than 1?`:
```sql
                SELECT MAX("played") FROM "torneo_apertura" WHERE "scored"=15 AND "draws"<1;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of WIns with Draws that's larger than 1, Losses that's smaller than 4, and Conceded of 20?`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of WIns with Draws that's larger than 1, Losses that's smaller than 4, and Conceded of 20?`:
```sql
                SELECT SUM("wins") FROM "torneo_apertura" WHERE "draws">1 AND "losses"<4 AND "conceded"=20;
```