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:
| Outcome   |   Date | Tournament                     | Surface   | Partner         | Opponents                        | Score              |
|:----------|-------:|:-------------------------------|:----------|:----------------|:---------------------------------|:-------------------|
| runner-up |   1971 | merion , u.s.                  | hard      | chuck mckinley  | clark graebner jim osborne       | 6–7, 3–6           |
| runner-up |   1972 | columbus , u.s.                | hard      | chuck mckinley  | jimmy connors pancho gonzales    | 3–6, 5–7           |
| winner    |   1973 | philadelphia wct , u.s.        | carpet    | brian gottfried | roy emerson rod laver            | 4–6, 6–3, 6–4      |
| winner    |   1973 | las vegas , u.s.               | hard      | brian gottfried | ken rosewall fred stolle         | 6–7, 6–4, 6–4      |
| winner    |   1973 | fort worth , u.s.              | hard      | brian gottfried | owen davidson john newcombe      | 7–6, 6–4           |
| runner-up |   1974 | atlanta wct , u.s.             | clay      | brian gottfried | robert lutz stan smith           | 3–6, 6–3, 6–7      |
| runner-up |   1974 | orlando wct , u.s.             | hard      | brian gottfried | owen davidson john newcombe      | 6–7, 3–6           |
| winner    |   1974 | maui , u.s.                    | hard      | roscoe tanner   | owen davidson john newcombe      | 6–3, 7–6           |
| runner-up |   1975 | philadelphia wct , u.s.        | carpet    | erik van dillen | brian gottfried raúl ramírez     | 6–3, 3–6, 6–7      |
| winner    |   1975 | toronto indoor wct , canada    | carpet    | erik van dillen | anand amritraj vijay amritraj    | 6–4, 7–5, 6–1      |
| winner    |   1975 | memphis , u.s.                 | carpet    | erik van dillen | mark cox cliff drysdale          | 1–6, 7–5, 6–4      |
| winner    |   1976 | san francisco , u.s.           | carpet    | roscoe tanner   | brian gottfried bob hewitt       | 6–3, 6–4           |
| runner-up |   1976 | maui , u.s.                    | hard      | roscoe tanner   | raymond moore allan stone        | 7–6, 3–6, 4–6      |
| winner    |   1976 | perth , australia              | hard      | roscoe tanner   | bob carmichael ismail el shafei  | 6–7, 6–1, 6–2      |
| winner    |   1977 | adelaide , australia           | grass     | cliff letcher   | syd ball kim warwick             | 6–3, 4–6, 6–4      |
| runner-up |   1977 | st. louis wct , u.s.           | carpet    | vijay amritraj  | ilie năstase adriano panatta     | 4–6, 6–3, 6–7      |
| runner-up |   1977 | rotterdam , netherlands        | carpet    | vijay amritraj  | wojtek fibak tom okker           | 4–6, 4–6           |
| winner    |   1977 | masters doubles wct , new york | carpet    | vijay amritraj  | vitas gerulaitis adriano panatta | 7–6, 7–6, 4–6, 6–3 |
| winner    |   1977 | san francisco , u.s.           | carpet    | marty riessen   | fred mcnair sherwood stewart     | 6–4, 1–6, 6–4      |
| runner-up |   1978 | birmingham wct , u.s.          | carpet    | frew mcmillan   | vitas gerulaitis sandy mayer     | 6–3, 1–6, 6–7      |
| winner    |   1978 | new orleans , u.s.             | carpet    | erik van dillen | ismail el shafei brian fairlie   | 7–6, 6–3           |
| winner    |   1978 | cleveland , u.s.               | hard      | erik van dillen | rick fisher bruce manson         | 6–1, 6–4           |
| winner    |   1979 | birmingham , u.s.              | carpet    | stan smith      | ilie năstase tom okker           | 6–2, 6–3           |
| runner-up |   1979 | memphis , u.s.                 | carpet    | frew mcmillan   | wojtek fibak tom okker           | 4–6, 4–6           |
| winner    |   1980 | tulsa , u.s.                   | hard (i)  | robert lutz     | francisco gonzález van winitsky  | 2–6, 7–6, 6–2      |
| runner-up |   1980 | bangkok , thailand             | carpet    | tom okker       | ferdi taygan brian teacher       | 6–7, 6–7           |
| runner-up |   1981 | denver , u.s.                  | carpet    | mel purcell     | andrew pattison butch walts      | 3–6, 4–6           |
| runner-up |   1982 | la quinta , u.s.               | hard      | john lloyd      | brian gottfried raúl ramírez     | 4–6, 6–3, 2–6      |
| runner-up |   1982 | forest hills wct , u.s.        | clay      | erik van dillen | tracy delatte johan kriek        | 4–6, 6–3, 3–6      |
| winner    |   1982 | hartford wct , u.s.            | carpet    | robert lutz     | mike cahill tracy delatte        | 7–6, 6–3           |
| runner-up |   1983 | south orange , u.s.            | clay      | john lloyd      | fritz buehning tom cain          | 2–6, 5–7           |

Question: When did Marty Riessen team up with a partner during a match on a carpet surface?

table_id: 2-11084877-2
label: SELECT "Date" FROM "table" WHERE "Surface" = "carpet" AND "Partner" = "marty riessen"