human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Series #, Season #, Title, Directed by, Written by, Original air date, U.S. viewers (millions)
###Question: Who wrote episode 23 in the season?
gpt
SELECT Written by FROM table WHERE Season # = 23