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:
|   Year | Date        | Driver            | Team                        | Manufacturer   | Laps   | Miles (km)      | Race Time   |   Average Speed (mph) | Report   |
|-------:|:------------|:------------------|:----------------------------|:---------------|:-------|:----------------|:------------|----------------------:|:---------|
|   1960 | october 16  | speedy thompson   | wood brothers racing        | ford           | 267    | 400.5 (644.542) | 3:32:50     |               112.905 | report   |
|   1961 | october 15  | joe weatherly     | bud moore engineering       | pontiac        | 267    | 400.5 (644.542) | 3:20:20     |               119.95  | report   |
|   1962 | october 14  | junior johnson    | ray fox                     | pontiac        | 267    | 400.5 (644.542) | 3:01:42     |               132.085 | report   |
|   1963 | october 13  | junior johnson    | ray fox                     | chevrolet      | 267    | 400.5 (644.542) | 3:01:54     |               132.105 | report   |
|   1964 | october 18  | fred lorenzen     | holman-moody                | ford           | 267    | 400.5 (644.542) | 2:58:35     |               134.475 | report   |
|   1965 | october 17  | fred lorenzen     | holman-moody                | ford           | 267    | 400.5 (644.542) | 3:21:44     |               119.117 | report   |
|   1966 | october 16  | lee roy yarbrough | jon thorne                  | dodge          | 334    | 501 (806.281)   | 3:49:55     |               130.576 | report   |
|   1967 | october 15  | buddy baker       | ray fox                     | dodge          | 334    | 501 (806.281)   | 3:50:04     |               130.317 | report   |
|   1968 | october 20  | charlie glotzbach | cotton owens                | dodge          | 334    | 501 (806.281)   | 3:42:08     |               135.234 | report   |
|   1969 | october 12  | donnie allison    | banjo matthews              | ford           | 334    | 501 (806.281)   | 3:48:32     |               131.271 | report   |
|   1970 | october 11  | lee roy yarbrough | junior johnson & associates | mercury        | 334    | 501 (806.281)   | 4:03:28     |               123.246 | report   |
|   1971 | october 10  | bobby allison     | holman-moody                | mercury        | 238*   | 357 (574.535)   | 2:49:38     |               126.14  | report   |
|   1972 | october 8   | bobby allison     | richard howard              | chevrolet      | 334    | 501 (806.281)   | 3:45:37     |               133.234 | report   |
|   1973 | october 7   | cale yarborough   | richard howard              | chevrolet      | 334    | 501 (806.281)   | 3:26:58     |               145.24  | report   |
|   1974 | october 6   | david pearson     | wood brothers racing        | mercury        | 334    | 501 (806.281)   | 4:10:41     |               119.912 | report   |
|   1975 | october 5   | richard petty     | petty enterprises           | dodge          | 334    | 501 (806.281)   | 3:47:22     |               132.209 | report   |
|   1976 | october 10  | donnie allison    | ellington racing            | chevrolet      | 334    | 501 (806.281)   | 3:32:51     |               141.226 | report   |
|   1977 | october 9   | benny parsons     | l.g. dewitt                 | chevrolet      | 334    | 501 (806.281)   | 3:30:32     |               142.78  | report   |
|   1978 | october 8   | bobby allison     | bud moore engineering       | ford           | 334    | 501 (806.281)   | 3:31:57     |               141.826 | report   |
|   1979 | october 7   | cale yarborough   | junior johnson & associates | chevrolet      | 334    | 501 (806.281)   | 3:43:53     |               134.266 | report   |
|   1980 | october 5   | dale earnhardt    | rod osterlund racing        | chevrolet      | 334    | 501 (806.281)   | 3:42:18     |               135.243 | report   |
|   1981 | october 11  | darrell waltrip   | junior johnson & associates | buick          | 334    | 501 (806.281)   | 4:15:52     |               117.483 | report   |
|   1982 | october 10  | harry gant        | mach 1 racing               | buick          | 334    | 501 (806.281)   | 3:39:05     |               137.208 | report   |
|   1983 | october 9   | richard petty     | petty enterprises           | pontiac        | 334    | 501 (806.281)   | 3:34:43     |               139.998 | report   |
|   1984 | october 7   | bill elliott      | melling racing              | ford           | 334    | 501 (806.281)   | 3:24:41     |               148.861 | report   |
|   1985 | october 6   | cale yarborough   | ranier-lundy                | ford           | 334    | 501 (806.281)   | 3:39:48     |               136.761 | report   |
|   1986 | october 5   | dale earnhardt    | richard childress racing    | chevrolet      | 334    | 501 (806.281)   | 3:47:02     |               132.403 | report   |
|   1987 | october 11  | bill elliott      | melling racing              | ford           | 334    | 501 (806.281)   | 3:54:02     |               128.443 | report   |
|   1988 | october 9   | rusty wallace     | blue max racing             | pontiac        | 334    | 501 (806.281)   | 3:50:02     |               130.677 | report   |
|   1989 | october 8   | ken schrader      | hendrick motorsports        | chevrolet      | 334    | 501 (806.281)   | 3:20:35     |               149.863 | report   |
|   1990 | october 7   | davey allison     | robert yates racing         | ford           | 334    | 501 (806.281)   | 3:38:44     |               137.428 | report   |
|   1991 | october 6   | geoffrey bodine   | junior johnson & associates | ford           | 334    | 501 (806.281)   | 3:36:17     |               138.984 | report   |
|   1992 | october 11  | mark martin       | roush racing                | ford           | 334    | 501 (806.281)   | 3:15:47     |               153.537 | report   |
|   1993 | october 10  | ernie irvan       | robert yates racing         | ford           | 334    | 501 (806.281)   | 3:14:31     |               154.537 | report   |
|   1994 | october 9   | dale jarrett      | joe gibbs racing            | chevrolet      | 334    | 501 (806.281)   | 3:26:00     |               145.922 | report   |
|   1995 | october 8   | mark martin       | roush racing                | ford           | 334    | 501 (806.281)   | 3:26:48     |               145.358 | report   |
|   1996 | october 6   | terry labonte     | hendrick motorsports        | chevrolet      | 334    | 501 (806.281)   | 3:30:00     |               143.143 | report   |
|   1997 | october 5   | dale jarrett      | robert yates racing         | ford           | 334    | 501 (806.281)   | 3:28:17     |               144.323 | report   |
|   1998 | october 4   | mark martin       | roush racing                | ford           | 334    | 501 (806.281)   | 4:04:01     |               123.188 | report   |
|   1999 | october 11* | jeff gordon       | hendrick motorsports        | chevrolet      | 334    | 501 (806.281)   | 3:07:31     |               160.306 | report   |
|   2000 | october 8   | bobby labonte     | joe gibbs racing            | pontiac        | 334    | 501 (806.281)   | 3:44:57     |               133.63  | report   |
|   2001 | october 7   | sterling marlin   | chip ganassi racing         | dodge          | 334    | 501 (806.281)   | 3:36:15     |               139.006 | report   |
|   2002 | october 13  | jamie mcmurray    | chip ganassi racing         | dodge          | 334    | 501 (806.281)   | 3:32:28     |               141.481 | report   |
|   2003 | october 11  | tony stewart      | joe gibbs racing            | chevrolet      | 334    | 501 (806.281)   | 3:30:24     |               142.871 | report   |
|   2004 | october 16  | jimmie johnson    | hendrick motorsports        | chevrolet      | 334    | 501 (806.281)   | 3:50:51     |               130.214 | report   |
|   2005 | october 15  | jimmie johnson    | hendrick motorsports        | chevrolet      | 336*   | 504 (811.109)   | 4:11:18     |               120.334 | report   |
|   2006 | october 14  | kasey kahne       | evernham motorsports        | dodge          | 334    | 501 (806.281)   | 3:47:29     |               132.142 | report   |
|   2007 | october 13  | jeff gordon       | hendrick motorsports        | chevrolet      | 337*   | 505.5 (813.523) | 4:00:58     |               125.868 | report   |
|   2008 | october 11  | jeff burton       | richard childress racing    | chevrolet      | 334    | 501 (806.281)   | 3:44:50     |               133.699 | report   |
|   2009 | october 17  | jimmie johnson    | hendrick motorsports        | chevrolet      | 334    | 501 (806.281)   | 3:38:22     |               137.658 | report   |
|   2010 | october 16  | jamie mcmurray    | earnhardt ganassi racing    | chevrolet      | 334    | 501 (806.281)   | 3:34:07     |               140.391 | report   |
|   2011 | october 15  | matt kenseth      | roush fenway racing         | ford           | 334    | 501 (806.281)   | 3:25:37     |               146.194 | report   |
|   2012 | october 13  | clint bowyer      | michael waltrip racing      | toyota         | 334    | 501 (806.281)   | 3:14:01     |               154.935 | report   |

Question: What year was the average speed 145.24

table_id: 1-1963459-2
label: SELECT MAX("Year") FROM "table" WHERE "Average Speed (mph)" = "145.24"