user: ### NOW ANSWER:
Question: Who wrote the episode that was directed by Dan Lerner?
Columns: ['Title', 'Directed by', 'Written by', 'Original air date', 'Prod. code']
Types: ['text', 'text', 'text', 'text', 'real']
Sample row: ['"Pilot"', 'Michael Engler', 'Jeff Judah & Gabe Sachs', 'October 7, 2004', 1.1]
SQL:

assistant: SELECT "Written by" FROM "Table" WHERE "Directed by" = 'Dan Lerner';