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:
| No.1           | No.2            | No.3             | No.4              | No.5                        | No.6              | No.7                            | No.8                   | No.9                      | No.10                        | FINAL                 |
|:---------------|:----------------|:-----------------|:------------------|:----------------------------|:------------------|:--------------------------------|:-----------------------|:--------------------------|:-----------------------------|:----------------------|
| no nominations | delfina pedro   | lourenço pedro   | anibal lourenço   | anibal lourenço             | anibal liliana    | liliana lourenço                | liliana lourenço       | liliana lourenço          | lara pedro                   | winner (day 121)      |
| no nominations | rosa tozé       | rosa tozé        | anibal madalena   | anibal ricardo              | anibal tozé       | liliana lourenço                | catarina tozé          | liliana lourenço          | catarina marciano            | runner-up (day 121)   |
| no nominations | joana marciano  | pdero ricardo    | catarina madalena | marciano ricardo            | anibal tozé       | catarina tozé                   | marciano tozé          | lourenço marciano         | catarina marciano            | third place (day 121) |
| no nominations | anibal lourenço | anibal lourenço  | liliana lourenço  | lourenço ricardo            | anibal liliana    | liliana lourenço                | pedro tozé             | liliana lourenço          | lara pedro                   | evicted (day 115)     |
| no nominations | delfina rosa    | marciano pedro   | madalena marciano | catarina marciano           | catarina marciano | catarina joana                  | catarina marciano      | catarina marciano         | walked (day 101)             | walked (day 101)      |
| no nominations | delfina rosa    | pedro rosa       | catarina marciano | catarina joana              | joana marciano    | catarina joana                  | catarina marciano      | catarina marciano         | evicted (day 101)            | evicted (day 101)     |
| no nominations | delfina pedro   | pedro rosa       | madalena marciano | lara pedro                  | marciano pedro    | joana pedro                     | marciano pedro         | evicted (day 94)          | evicted (day 94)             | evicted (day 94)      |
| no nominations | delfina lara    | anibal rosa      | anibal madelena   | lara lourenço               | anibal lourenço   | lourenço pedro                  | evicted (day 80)       | evicted (day 80)          | evicted (day 80)             | evicted (day 80)      |
| no nominations | lara pedro      | marciano pedro   | madalena marciano | pedro ricardo               | joana marciano    | evicted (day 66)                | evicted (day 66)       | evicted (day 66)          | evicted (day 66)             | evicted (day 66)      |
| no nominations | joana rosa      | madalena pedro   | madalena marciano | lara pedro                  | evicted (day 52)  | evicted (day 52)                | evicted (day 52)       | evicted (day 52)          | evicted (day 52)             | evicted (day 52)      |
| no nominations | marciano rosa   | marciano rosa    | anibal lourenço   | evicted (day 38)            | evicted (day 38)  | evicted (day 38)                | evicted (day 38)       | evicted (day 38)          | evicted (day 38)             | evicted (day 38)      |
| no nominations | pedro ricardo   | joana pedro      | evicted (day 24)  | evicted (day 24)            | evicted (day 24)  | evicted (day 24)                | evicted (day 24)       | evicted (day 24)          | evicted (day 24)             | evicted (day 24)      |
| no nominations | joana tozé      | evicted (day 11) | evicted (day 11)  | evicted (day 11)            | evicted (day 11)  | evicted (day 11)                | evicted (day 11)       | evicted (day 11)          | evicted (day 11)             | evicted (day 11)      |
| no nominations | evicted (day 3) | evicted (day 3)  | evicted (day 3)   | evicted (day 3)             | evicted (day 3)   | evicted (day 3)                 | evicted (day 3)        | evicted (day 3)           | evicted (day 3)              | evicted (day 3)       |
| all housemates | delfina rosa    | pedro rosa       | madalena marciano | lara lourenço pedro ricardo | anibal marciano   | catarina joana liliana lourenço | catarina marciano tozé | liliana lourenço marciano | catarina lara marciano pedro | catarina lara pedro   |
| fernando       | delfina         | rosa             | madalena          | ricardo                     | anibal            | joana                           | tozé                   | lourenço                  | marciano                     | lara                  |
| fernando       | delfina         | rosa             | madalena          | ricardo                     | anibal            | joana                           | tozé                   | lourenço                  | marciano                     | pedro                 |
| fernando       | delfina         | rosa             | madalena          | ricardo                     | anibal            | joana                           | tozé                   | lourenço                  | marciano                     | catarina              |

Question: Who was number 9 that had a number 7 of Joana and a Final of Pedro?

table_id: 2-12531692-6
label: SELECT "No.9" FROM "table" WHERE "No.7" = "joana" AND "FINAL" = "pedro"