Task: NL2SQL (source dataset: WikiSQL)

Natural language to SQL, also known as NL2SQL, is the problem of generating a SQL query that can be executed on a input table, for a given natural language question.

You will be given an input table called "table" in the markdown format, as well as a question. Your task is to generate an SQL query that can be executed on the input table to answer the question.

Please ensure that the generated SQL only return relevant columns being specifically asked in the question (e.g., in SQL please don't return more than one columns in SELECT if only one column is needed to answer the given question, and similarly please refrain from using SELECT * unless the entire row is needed to answer the question).
 
When generating SQL code, please use the SQLite syntax to ensure that your SQL is executable on SQLite3. Use only columns that are present in the table, always use quotes around your column and table names (some column names have punctuation or special characters), and refer to the columns using the column-names exactly as they appear in the table, do not add or remove punctuation (underscore, slash, etc.)

No explanation, return the code only with the following markdown codeblock format : ```sql<SQL CODE>```. For example, ```sql
SELECT * FROM "table"
``` is a valid format.

Table:
| Date    | Pages   | Hero                        | Story                | Story code   |
|:--------|:--------|:----------------------------|:---------------------|:-------------|
| 1987-07 | 26      | scrooge mcduck              | don rosa             | ar 102       |
| 1987-08 | 10      | scrooge mcduck              | don rosa             | ar 103       |
| 1987-10 | 10      | donald duck                 | don rosa             | ar 104       |
| 1987-12 | 10      | donald duck                 | don rosa             | ar 105       |
| 1987-12 | 26      | scrooge mcduck              | don rosa             | ar 106       |
| 1988-02 | 10      | donald duck                 | don rosa             | ar 108       |
| 1988-03 | 4       | donald duck                 | don rosa             | ar 109       |
| 1988-04 | 10      | donald duck                 | don rosa             | ar 110       |
| 1988-05 | 2       | scrooge mcduck              | gary leach           | ar 107       |
| 1988-06 | 28      | scrooge mcduck              | don rosa             | ar 113       |
| 1988-07 | 2       | donald duck                 | gary leach           | ar 116       |
| 1988-07 | 2       | scrooge mcduck              | gary leach           | ar 118       |
| 1988-08 | 10      | donald duck                 | don rosa             | ar 119       |
| 1988-10 | 18      | donald duck                 | don rosa             | ar 125       |
| 1988-11 | 12      | scrooge mcduck              | don rosa             | ar 128       |
| 1989-05 | 28      | donald duck                 | don rosa             | ar 130       |
| 1989-07 | 10      | scrooge mcduck              | don rosa             | ar 143       |
| 1989-08 | 28      | scrooge mcduck              | don rosa             | ar 145       |
| 1989-11 | 1/4     | scrooge mcduck              | don rosa             | arc 241b     |
| 1990-03 | 3       | daisy duck                  | ruud straatman       | h 87112      |
| 1990-03 | 7       | donald duck                 | arno buitink         | h 87178      |
| 1990-03 | 10      | scrooge mcduck              | don rosa             | h 89068      |
| 1990-04 | 10      | donald duck                 | jan kruse            | h 85218      |
| 1990-04 | 1       | scrooge mcduck              | evert geradts        | h 87173      |
| 1990-05 | 8       | gyro gearloose              | don rosa, carl barks | h 89174      |
| 1990-09 | 4       | duck tales                  | don rosa             | k dtm 90i    |
| 1990-06 | 12      | donald duck                 | don rosa             | kd 0190      |
| 1990-11 | 10      | donald duck                 | don rosa             | d 90057      |
| 1991-01 | 13      | donald duck                 | don rosa             | d 90147      |
| 1991-01 | 20      | donald duck                 | don rosa             | d 90227      |
| 1991-03 | 30      | scrooge mcduck              | don rosa             | d 90314      |
| 1991-05 | 12      | donald duck                 | don rosa             | d 90161      |
| 1991-08 | 10      | donald duck                 | don rosa             | d 90345      |
| 1991-10 | 14      | scrooge mcduck              | don rosa             | d 91071      |
| 1991-10 | 27      | scrooge mcduck              | don rosa             | d 91192      |
| 1992-01 | 11      | donald duck                 | don rosa             | d 91076      |
| 1992-08 | 15      | scrooge mcduck              | don rosa             | d 91308      |
| 1992-08 | 28      | scrooge mcduck              | don rosa             | d 91411      |
| 1992-11 | 15      | scrooge mcduck              | don rosa             | d 92008      |
| 1993-01 | 15      | scrooge mcduck              | don rosa             | d 92083      |
| 1993-03 | 15      | scrooge mcduck              | don rosa             | d 92191      |
| 1993-05 | 12      | scrooge mcduck              | don rosa             | d 92273      |
| 1993-06 | 15      | scrooge mcduck              | don rosa             | d 92314      |
| 1993-07 | 24      | scrooge mcduck              | don rosa             | d 92514      |
| 1993-09 | 28      | the junior woodchucks       | don rosa             | d 92380      |
| 1993-11 | 15      | scrooge mcduck              | don rosa             | d 93121      |
| 1994-02 | 12      | donald duck                 | don rosa             | d 93287      |
| 1994-03 | 15      | scrooge mcduck              | don rosa             | d 93227      |
| 1994-04 | 24      | scrooge mcduck              | don rosa             | d 93288      |
| 1994-05 | 19 (16) | scrooge mcduck              | don rosa             | d 93488      |
| 1994-05 | 16      | donald duck                 | don rosa             | d 93574      |
| 1995-01 | 24      | scrooge mcduck              | don rosa             | d 94012      |
| 1995-03 | 24      | scrooge mcduck              | don rosa             | d 94066      |
| 1995-06 | 15      | scrooge mcduck              | don rosa             | d 91249      |
| 1995-09 | 24      | scrooge mcduck              | don rosa             | d 95044      |
| 1995-09 | 25 (24) | scrooge mcduck              | don rosa             | d 94202      |
| 1995-10 | 1       | scrooge mcduck              | don rosa             | g tem 9510   |
| 1995-10 | 24      | donald duck                 | don rosa             | d 94144      |
| 1996-05 | 24      | donald duck                 | don rosa             | d 95079      |
| 1996-06 | 28      | scrooge mcduck              | don rosa             | d 95153      |
| 1996-08 | 16      | scrooge mcduck              | don rosa             | d 96001      |
| 1996-12 | 24      | scrooge mcduck              | don rosa             | d 96089      |
| 1997-05 | 10      | donald duck                 | don rosa             | d 94121      |
| 1997-06 | 29 (28) | scrooge mcduck              | don rosa             | d 96325      |
| 1997-07 | 24      | scrooge mcduck              | don rosa             | d 96203      |
| 1997-10 | 16      | the junior woodchucks       | don rosa             | d 97052      |
| 1998    | 2       | donald duck (not mentioned) | nils lid hjort       | hc skate 8a  |
| 1998-01 | 14      | donald duck                 | don rosa             | d 97437      |
| 1998-01 | 30      | scrooge mcduck              | don rosa             | d 96066      |
| 1998-05 | 24      | scrooge mcduck              | don rosa             | d 97346      |
| 1998-12 | 24      | scrooge mcduck              | don rosa             | d 98045      |
| 1999-03 | 24      | scrooge mcduck              | don rosa             | d 98202      |
| 1999-07 | 24      | scrooge mcduck              | don rosa             | d 98346      |
| 1999-10 | 12      | scrooge mcduck              | don rosa             | f pm 99001   |
| 1999-11 | 33      | scrooge mcduck              | don rosa             | d 99078      |
| 1999-11 | 1       | scrooge mcduck              | don rosa             | d 99078b     |
| 2000-05 | 12      | scrooge mcduck              | don rosa             | f pm 00201   |
| 2000-09 | 28      | donald duck                 | don rosa             | d 2000-002   |
| 2001-02 | 26      | scrooge mcduck              | don rosa             | f pm 01201   |
| 2001-05 | 17      | beagle boys                 | don rosa             | d 2000-191   |
| 2001-10 | 28      | scrooge mcduck              | don rosa             | d 2001-024   |
| 2002-03 | 13      | scrooge mcduck              | don rosa             | d 2001-095   |
| 2002-05 | 20      | gyro gearloose              | don rosa             | d 2001-143   |
| 2002-12 | 25      | scrooge mcduck              | don rosa             | d 2002-033   |
| 2003-10 | 13      | donald duck                 | don rosa             | d 2003-017   |
| 2004-02 | 34      | scrooge mcduck              | don rosa             | d 2003-081   |
| 2004-06 | 26      | scrooge mcduck              | don rosa             | d 2003-235   |
| 2005-01 | 32      | donald duck                 | don rosa             | d 2004-032   |
| 2006-05 | 33      | scrooge mcduck              | don rosa             | d 2005-061   |

Question: How many pages does the story from 1987-08 have?

table_id: 2-10538601-1
label: SELECT "Pages" FROM "table" WHERE "Date" = "1987-08"