user: Question: Who wrote the episode with the code XLE05012?
Columns: ['No.', '#', 'Title', 'Directed by', 'Written by', 'Original air date', 'Production code', 'U.S. viewers (million)']
Types: ['real', 'real', 'text', 'text', 'text', 'text', 'text', 'text']
Sample row: [46.0, 1.0, '"The Bachelor Draft"', 'Jeff Schaffer', 'Jeff Schaffer & Jackie Marcus Schaffer', 'September4,2013', 'XLE05001', '0.79']
SQL:

assistant: SELECT "Written by" FROM "Table" WHERE "Production code" = 'XLE05012';