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:
| Tie no   | Home team           | Score   | Away team         | Date             |
|:---------|:--------------------|:--------|:------------------|:-----------------|
| 1        | blackpool           | 1–2     | altrincham        | 7 december 1985  |
| 2        | bournemouth         | 4–1     | dagenham          | 7 december 1985  |
| 3        | bristol city        | 1–2     | exeter city       | 7 december 1985  |
| 4        | reading             | 2–0     | hereford united   | 7 december 1985  |
| 5        | gillingham          | 6–1     | bognor regis town | 7 december 1985  |
| 6        | notts county        | 2–2     | wrexham           | 7 december 1985  |
| replay   | wrexham             | 0–3     | notts county      | 10 december 1985 |
| 7        | derby county        | 6–1     | telford united    | 9 december 1985  |
| 8        | tranmere rovers     | 1–1     | bury              | 7 december 1985  |
| replay   | bury                | 2–1     | tranmere rovers   | 10 december 1985 |
| 9        | wycombe wanderers   | 2–0     | chelmsford city   | 7 december 1985  |
| 10       | plymouth argyle     | 3–0     | maidstone united  | 7 december 1985  |
| 11       | scunthorpe united   | 2–2     | rochdale          | 7 december 1985  |
| replay   | rochdale            | 2–1     | scunthorpe united | 10 december 1985 |
| 12       | port vale           | 0–0     | walsall           | 8 december 1985  |
| replay   | walsall             | 2–1     | port vale         | 10 december 1985 |
| 13       | newport county      | 1–1     | torquay united    | 7 december 1985  |
| replay   | torquay united      | 2–3     | newport county    | 10 december 1985 |
| 14       | runcorn             | 1–1     | wigan athletic    | 7 december 1985  |
| replay   | wigan athletic      | 4–0     | runcorn           | 10 december 1985 |
| 15       | york city           | 3–1     | whitby town       | 7 december 1985  |
| 16       | rotherham united    | 4–1     | burnley           | 7 december 1985  |
| 17       | peterborough united | 1–0     | bath city         | 7 december 1985  |
| 18       | orient              | 2–2     | slough town       | 7 december 1985  |
| replay   | slough town         | 2–3     | orient            | 10 december 1985 |
| 19       | swansea city        | 1–2     | bristol rovers    | 7 december 1985  |
| 20       | hartlepool united   | 0–1     | frickley athletic | 7 december 1985  |

Question: What was the home team when the away team was Frickley Athletic?

table_id: 2-17438349-2
label: SELECT "Home team" FROM "table" WHERE "Away team" = "frickley athletic"