Who wrote episode 31 in the series?
CREATE TABLE table_24652 (
    "No. in series" real,
    "No. in season" real,
    "Title" text,
    "Directed by" text,
    "Written by" text,
    "Original U.S. air date" text,
    "Prod. code" real
)
SELECT "Written by" FROM table_24652 WHERE "No. in series" = '31'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who wrote episode 31 in the series? ### Input: CREATE TABLE table_24652 (
    "No. in series" real,
    "No. in season" real,
    "Title" text,
    "Directed by" text,
    "Written by" text,
    "Original U.S. air date" text,
    "Prod. code" real
) ### Response: SELECT "Written by" FROM table_24652 WHERE "No. in series" = '31'