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
###Question: Who was "The Magic Necklace" written by?
gpt
SELECT Written by: FROM table WHERE Title = "The Magic Necklace"