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:
| State   | Born/Died   | Active service   | Chief Judge   | Senior status   | Appointed by                                   | Reason for termination   |
|:--------|:------------|:-----------------|:--------------|:----------------|:-----------------------------------------------|:-------------------------|
| ny      | 1865–1927   | 1926–1927        | 1926–1927     | —               | operation of law category:articles with hcards | death                    |
| ny      | 1858–1940   | 1926–1932        | 1927–1932     | —               | operation of law category:articles with hcards | retirement               |
| ny      | 1852–1930   | 1926–1930        | —             | —               | operation of law category:articles with hcards | retirement               |
| ny      | 1854–1944   | 1926–1939        | 1934–1939     | —               | operation of law category:articles with hcards | retirement               |
| ny      | 1859–1948   | 1926–1939        | —             | —               | operation of law category:articles with hcards | retirement               |
| ny      | 1871–1941   | 1926–1941        | 1939–1940     | —               | operation of law category:articles with hcards | retirement               |
| ny      | 1854–1929   | 1926–1928        | —             | —               | operation of law category:articles with hcards | retirement               |
| ny      | 1857–1932   | 1926–1930        | —             | —               | operation of law category:articles with hcards | retirement               |
| ny      | 1870–1932   | 1926–1932        | 1932–1932     | —               | operation of law category:articles with hcards | death                    |
| ny      | 1871–1949   | 1928–1949        | 1932–1934     | —               | coolidge category:articles with hcards         | death                    |
| ny      | 1877–1959   | 1928–1953        | —             | —               | coolidge category:articles with hcards         | retirement               |
| ny      | 1877–1950   | 1930–1948        | —             | —               | hoover category:articles with hcards           | retirement               |
| ny      | 1870–1959   | 1931–1941        | —             | —               | hoover category:articles with hcards           | retirement               |
| ny      | 1871–1955   | 1932–1942        | —             | —               | hoover category:articles with hcards           | retirement               |
| ny      | 1873–1955   | 1933–1947        | —             | —               | f. roosevelt category:articles with hcards     | retirement               |
| ny      | 1877–1945   | 1940–1945        | —             | —               | f. roosevelt category:articles with hcards     | death                    |
| ny      | 1888–1969   | 1940–1967        | 1940–1965     | 1967–1969       | f. roosevelt category:articles with hcards     | death                    |
| ny      | 1887–1956   | 1942–1956        | —             | —               | f. roosevelt category:articles with hcards     | death                    |
| ny      | 1889–1957   | 1942–1952        | —             | —               | f. roosevelt category:articles with hcards     | reappointment            |
| ny      | 1878–1975   | 1943–1965        | —             | 1965–1975       | f. roosevelt category:articles with hcards     | death                    |
| ny      | 1898–1962   | 1945–1962        | —             | —               | truman category:articles with hcards           | death                    |
| ny      | 1888–1963   | 1947–1963        | —             | —               | truman category:articles with hcards           | death                    |
| ny      | 1899–1988   | 1948–1980        | 1965–1971     | —               | truman category:articles with hcards           | reassignment             |
| ny      | 1911–1992   | 1949–1980        | —             | —               | truman category:articles with hcards           | reassignment             |
| ny      | 1887–1976   | 1954–1966        | —             | 1966–1976       | eisenhower category:articles with hcards       | death                    |
| ny      | 1893–1977   | 1955–1966        | —             | 1966–1977       | eisenhower category:articles with hcards       | death                    |
| ny      | 1912–1982   | 1957–1980        | —             | —               | eisenhower category:articles with hcards       | reassignment             |
| ny      | 1907–1990   | 1964–1966        | —             | —               | l. johnson category:articles with hcards       | reappointment            |
| ny      | 1912–1990   | 1965–1980        | —             | —               | l. johnson category:articles with hcards       | reassignment             |
| ny      | 1922–2001   | 1966–1980        | —             | —               | l. johnson category:articles with hcards       | reassignment             |
| ny      | 1913–1984   | 1967–1968        | —             | —               | l. johnson category:articles with hcards       | resignation              |
| ny      | 1913–2002   | 1967–1980        | —             | —               | l. johnson category:articles with hcards       | reassignment             |
| ny      | 1907–1999   | 1968–1980        | —             | —               | l. johnson category:articles with hcards       | reassignment             |
| ny      | 1909–1995   | 1968–1970        | —             | 1970–1980       | l. johnson category:articles with hcards       | reassignment             |
| ny      | 1920–2006   | 1968–1980        | 1977–1980     | —               | l. johnson category:articles with hcards       | reassignment             |
| ny      | 1913–1992   | 1971–1980        | 1971–1977     | —               | nixon category:articles with hcards            | reassignment             |

Question: What is the reason the Chief Judge of 1971–1977 was terminated?

table_id: 2-1220886-3
label: SELECT "Reason for termination" FROM "table" WHERE "Chief Judge" = "1971–1977"