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:
|   Position | Club                    |   Played |   Points |   Wins |   Draws |   Losses |   Goals for |   Goals against |   Goal Difference |
|-----------:|:------------------------|---------:|---------:|-------:|--------:|---------:|------------:|----------------:|------------------:|
|          1 | cultural leonesa        |       30 |       40 |     18 |       4 |        8 |          68 |              38 |                30 |
|          2 | real oviedo             |       30 |       39 |     18 |       3 |        9 |          61 |              33 |                28 |
|          3 | real zaragoza           |       30 |       39 |     18 |       3 |        9 |          69 |              41 |                28 |
|          4 | real gijón cf           |       30 |       38 |     15 |       8 |        7 |          50 |              34 |                16 |
|          5 | cd logroñés             |       30 |       36 |     15 |       6 |        9 |          52 |              43 |                 9 |
|          6 | baracaldo ah            |       30 |       33 |     15 |       3 |       12 |          47 |              42 |                 5 |
|          7 | cp la felguera          |       30 |       30 |     11 |       8 |       11 |          41 |              45 |                -4 |
|          8 | sd eibar                |       30 |       29 |     13 |       3 |       14 |          54 |              51 |                 3 |
|          9 | ca osasuna              |       30 |       29 |     12 |       5 |       13 |          56 |              57 |                -1 |
|         10 | ud lérida               |       30 |       27 |     10 |       7 |       13 |          41 |              56 |               -15 |
|         11 | sd la españa industrial |       30 |       26 |      9 |       8 |       13 |          46 |              45 |                 1 |
|         12 | club ferrol             |       30 |       24 |      9 |       6 |       15 |          35 |              59 |               -24 |
|         13 | caudal deportivo        |       30 |       24 |      8 |       8 |       14 |          49 |              59 |               -10 |
|         14 | club sestao             |       30 |       23 |      8 |       7 |       15 |          45 |              56 |               -11 |
|         15 | real avilés cf          |       30 |       23 |     10 |       3 |       17 |          50 |              60 |               -10 |
|         16 | cd juvenil              |       30 |       20 |      5 |      10 |       15 |          40 |              85 |               -45 |

Question: What is the average goal difference of club cultural leonesa, which has more than 27 points and less than 9 losses?

table_id: 2-17421790-2
label: SELECT AVG("Goal Difference") FROM "table" WHERE "Points" > 27 AND "Losses" < 9 AND "Club" = "cultural leonesa"