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:
| Result   | Opponent          | Type      | Rd., Time   | Date               |
|:---------|:------------------|:----------|:------------|:-------------------|
| result   | opponent          | type      | rd., time   | date               |
| win      | darren stubbs     | w pts 3   | 3           | february 20, 2009  |
| win      | courtney fry      | w pts 3   | 3           | february 20, 2009  |
| win      | billy boyle       | w pts 3   | 3           | february 20, 2009  |
| loss     | nathan cleverly   | l pts 12  | 12          | october 10, 2008   |
| loss     | dean francis      | l tko 9   | 12          | june 13, 2008      |
| win      | peter haymer      | w ko 9    | 12          | february 1, 2008   |
| drawn    | brian magee       | d mpts 12 | 12          | august 28, 2007    |
| win      | steven spartacus  | w rsf 12  | 12          | may 18, 2007       |
| win      | josip jalusic     | w pts 6   | 12          | march 7, 2007      |
| win      | simeon cover      | w pts 6   | 12          | october 28, 2006   |
| win      | nathan king       | w pts 6   | 12          | may 13, 2006       |
| win      | radek seman       | w pts 8   | 12          | april 1, 2006      |
| loss     | peter haymer      | l pts 10  | 12          | june 15, 2005      |
| win      | varuzhan davtyan  | w rtd 5   | 12          | february 12, 2005  |
| loss     | matthew barney    | l mpts 12 | 12          | october 11, 2003   |
| win      | neil linford      | w upts 12 | 12          | march 29, 2003     |
| win      | andrei kiarsten   | w upts 12 | 12          | october 12, 2002   |
| win      | neil simpson      | w upts 12 | 12          | may 25, 2002       |
| win      | konstantin shvets | w upts 12 | 12          | march 2, 2002      |
| win      | chris davies      | w pts 12  | 12          | october 20, 2001   |
| win      | konstantin ochrej | w rsf 4   | 12          | september 9, 2001  |
| win      | hastings rasani   | w rsf 10  | 12          | may 8, 2001        |
| win      | butch lesley      | w rsf 10  | 12          | march 26, 2001     |
| win      | nathan king       | w pts 6   | 12          | january 22, 2001   |
| win      | darren ashton     | w pts 4   | 12          | october 21, 2000   |
| win      | martin jolley     | w pts 6   | 12          | march 13, 2000     |
| win      | darren ashton     | w pts 4   | 12          | february 21, 2000  |
| win      | michael pinnock   | w pts 4   | 12          | october 1, 1999    |
| win      | mark dawson (lee) | w pts 4   | 12          | march 6, 1999      |
| win      | jimmy steel       | w pts 4   | 12          | january 16, 1999   |
| win      | zak chelli        | w rsf 1   | 12          | november 21, 1998  |
| win      | smokey enison     | w rsf 2   | 12          | september 12, 1998 |

Question: Who did Tony Oakey win against when he had type of w pts 12?

table_id: 2-17781161-1
label: SELECT "Opponent" FROM "table" WHERE "Result" = "win" AND "Type" = "w pts 12"