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:
|   Rank | Nation         |   Gold |   Silver |   Bronze |   Total |
|-------:|:---------------|-------:|---------:|---------:|--------:|
|      1 | russia         |      8 |       12 |       10 |      30 |
|      2 | china          |      7 |        4 |        2 |      13 |
|      3 | ukraine        |      7 |        1 |        1 |       9 |
|      4 | poland         |      3 |        4 |        2 |       9 |
|      5 | belarus        |      2 |        2 |        2 |       6 |
|      6 | germany        |      2 |        1 |        2 |       5 |
|      6 | south africa   |      2 |        1 |        2 |       5 |
|      7 | australia      |      2 |        1 |        1 |       4 |
|      8 | japan          |      2 |        0 |        1 |       3 |
|      9 | france         |      1 |        3 |        0 |       4 |
|     10 | romania        |      1 |        2 |        2 |       5 |
|     11 | hungary        |      1 |        2 |        1 |       4 |
|     12 | great britain  |      1 |        1 |        2 |       4 |
|     12 | spain          |      1 |        1 |        2 |       4 |
|     14 | morocco        |      1 |        1 |        1 |       3 |
|     15 | brazil         |      1 |        0 |        3 |       3 |
|     16 | czech republic |      1 |        0 |        2 |       3 |
|     17 | moldova        |      1 |        0 |        0 |       1 |
|     18 | finland        |      0 |        2 |        1 |       3 |
|     19 | estonia        |      0 |        1 |        1 |       2 |
|     19 | north korea    |      0 |        1 |        1 |       2 |
|     19 | south korea    |      0 |        1 |        1 |       2 |
|     22 | denmark        |      0 |        1 |        0 |       1 |
|     22 | ireland        |      0 |        1 |        0 |       1 |
|     22 | jamaica        |      0 |        1 |        0 |       1 |
|     22 | kazakhstan     |      0 |        1 |        0 |       1 |
|     22 | uganda         |      0 |        1 |        0 |       1 |
|     27 | croatia        |      0 |        0 |        2 |       2 |
|     28 | canada         |      0 |        0 |        1 |       1 |
|     28 | cyprus         |      0 |        0 |        1 |       1 |
|     28 | italy          |      0 |        0 |        1 |       1 |
|     28 | switzerland    |      0 |        0 |        1 |       1 |

Question: What is the lowest amount of gold a team with less than 2 total medals, ranked 17, and more than 0 silver medals, has?

table_id: 2-12305146-3
label: SELECT MIN("Gold") FROM "table" WHERE "Total" < 2 AND "Rank" = 17 AND "Silver" > 0