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:
| Team                       | First NHL season   | Last NHL season       |   Seasons completed |   Playoff appearances |   Series won |   Finals appearances |   Division titles |   Conference titles |   Stanley Cup Championships |
|:---------------------------|:-------------------|:----------------------|--------------------:|----------------------:|-------------:|---------------------:|------------------:|--------------------:|----------------------------:|
| montreal canadiens         | 1917–18            | active                |                  91 |                    76 |           86 |                   34 |                30 |                   5 |                          23 |
| montreal wanderers         | 1917–18            | 1917–18 (defunct)     |                   0 |                     0 |            0 |                    0 |                 0 |                   0 |                           0 |
| ottawa senators (original) | 1917–18            | 1933–34 (relocated)   |                  17 |                    10 |            8 |                    4 |                 8 |                   0 |                           4 |
| toronto maple leafs        | 1917–18            | active                |                  91 |                    63 |           57 |                   21 |                 9 |                   0 |                          13 |
| quebec bulldogs            | 1919–20            | 1919–20 (relocated)   |                   1 |                     0 |            0 |                    0 |                 0 |                   0 |                           0 |
| hamilton tigers            | 1920–21            | 1924–25 (defunct)     |                   5 |                     0 |            0 |                    0 |                 0 |                   0 |                           0 |
| boston bruins              | 1924–25            | active                |                  84 |                    62 |           47 |                   18 |                24 |                   0 |                           6 |
| montreal maroons           | 1924–25            | 1937–38 (defunct)     |                  14 |                    11 |           10 |                    3 |                 3 |                   0 |                           2 |
| new york americans         | 1925–26            | 1941–42 (defunct)     |                  17 |                     5 |            2 |                    0 |                 0 |                   0 |                           0 |
| pittsburgh pirates         | 1925–26            | 1929–30 (relocated)   |                   5 |                     2 |            0 |                    0 |                 0 |                   0 |                           0 |
| chicago blackhawks         | 1926–27            | active                |                  82 |                    53 |           40 |                   11 |                14 |                   2 |                           5 |
| detroit red wings          | 1926–27            | active                |                  82 |                    57 |           61 |                   23 |                17 |                   5 |                          11 |
| new york rangers           | 1926–27            | active                |                  82 |                    53 |           42 |                   10 |                 4 |                   2 |                           4 |
| philadelphia quakers       | 1930–31            | 1930–31 (defunct)     |                   1 |                     0 |            0 |                    0 |                 0 |                   0 |                           0 |
| st. louis eagles           | 1934–35            | 1934–35 (defunct)     |                   1 |                     0 |            0 |                    0 |                 0 |                   0 |                           0 |
| california golden seals    | 1967–68            | 1975–76 (relocated)   |                   9 |                     2 |            0 |                    0 |                 0 |                   0 |                           0 |
| los angeles kings          | 1967–68            | active                |                  41 |                    23 |           11 |                    2 |                 1 |                   1 |                           1 |
| minnesota north stars      | 1967–68            | 1992–93 (relocated)   |                  26 |                    17 |           14 |                    2 |                 0 |                   0 |                           0 |
| philadelphia flyers        | 1967–68            | active                |                  41 |                    33 |           43 |                    8 |                16 |                   8 |                           2 |
| pittsburgh penguins        | 1967–68            | active                |                  41 |                    24 |           24 |                    4 |                 6 |                   4 |                           3 |
| st. louis blues            | 1967–68            | active                |                  41 |                    34 |           23 |                    3 |                 7 |                   2 |                           0 |
| buffalo sabres             | 1970–71            | active                |                  38 |                    27 |           20 |                    2 |                 5 |                   3 |                           0 |
| vancouver canucks          | 1970–71            | active                |                  38 |                    22 |           13 |                    4 |                 6 |                   0 |                           0 |
| atlanta flames             | 1972–73            | 1979–80 (relocated)   |                   8 |                     6 |            0 |                    0 |                 0 |                   0 |                           0 |
| new york islanders         | 1972–73            | active                |                  36 |                    22 |           30 |                    5 |                 7 |                   3 |                           4 |
| kansas city scouts         | 1974–75            | 1975–76 (relocated)   |                   2 |                     0 |            0 |                    0 |                 0 |                   0 |                           0 |
| washington capitals        | 1974–75            | active                |                  34 |                    20 |           11 |                    1 |                 5 |                   1 |                           0 |
| cleveland barons           | 1976–77            | 1977–78 (defunct)     |                   2 |                     0 |            0 |                    0 |                 0 |                   0 |                           0 |
| colorado rockies           | 1976–77            | 1981–82 (relocated)   |                   6 |                     1 |            0 |                    0 |                 0 |                   0 |                           0 |
| edmonton oilers            | 1979–80            | active                |                  29 |                    20 |           35 |                    7 |                 6 |                   7 |                           5 |
| hartford whalers           | 1979–80            | 1996–97 (relocated)   |                  18 |                     8 |            1 |                    0 |                 0 |                   0 |                           0 |
| quebec nordiques           | 1979–80            | 1994–95 (relocated)   |                  16 |                     9 |            6 |                    0 |                 0 |                   0 |                           0 |
| winnipeg jets (original)   | 1979–80            | 1995–96 (relocated)   |                  17 |                    11 |            2 |                    0 |                 0 |                   0 |                           0 |
| calgary flames             | 1980–81            | active                |                  28 |                    19 |           15 |                    3 |                 5 |                   3 |                           1 |
| new jersey devils          | 1982–83            | active                |                  26 |                    18 |           22 |                    5 |                 7 |                   4 |                           3 |
| san jose sharks            | 1991–92            | active                |                  17 |                    11 |            9 |                    0 |                 3 |                   0 |                           0 |
| ottawa senators            | 1992–93            | active                |                  16 |                    11 |            8 |                    1 |                 4 |                   1 |                           0 |
| tampa bay lightning        | 1992–93            | active                |                  16 |                     5 |            5 |                    1 |                 2 |                   1 |                           1 |
| anaheim ducks              | 1993–94            | active                |                  15 |                     6 |           11 |                    2 |                 1 |                   2 |                           1 |
| dallas stars               | 1993–94            | active                |                  15 |                    12 |           14 |                    2 |                 7 |                   2 |                           1 |
| florida panthers           | 1993–94            | active                |                  15 |                     3 |            3 |                    1 |                 0 |                   1 |                           0 |
| colorado avalanche         | 1995–96            | active                |                  13 |                    10 |           18 |                    2 |                 8 |                   2 |                           2 |
| phoenix coyotes            | 1996–97            | active                |                  12 |                     5 |            0 |                    0 |                 0 |                   0 |                           0 |
| carolina hurricanes        | 1997–98            | active                |                  11 |                     4 |            7 |                    2 |                 3 |                   2 |                           1 |
| nashville predators        | 1998–99            | active                |                  10 |                     4 |            0 |                    0 |                 0 |                   0 |                           0 |
| atlanta thrashers          | 1999–2000          | 2010–2011 (relocated) |                   9 |                     1 |            0 |                    0 |                 1 |                   0 |                           0 |
| columbus blue jackets      | 2000–01            | active                |                   8 |                     1 |            0 |                    0 |                 0 |                   0 |                           0 |
| minnesota wild             | 2000–01            | active                |                   8 |                     3 |            2 |                    0 |                 1 |                   0 |                           0 |
| winnipeg jets              | 2011–12            | active                |                   1 |                     0 |            0 |                    0 |                 0 |                   0 |                           0 |

Question: What is the average number of seasons completed of the team with less than 1 division titles, 0 playoff appearances, and more than 0 finals appearances?

table_id: 2-17205115-1
label: SELECT AVG("Seasons completed") FROM "table" WHERE "Division titles" < 1 AND "Playoff appearances" = 0 AND "Finals appearances" > 0