CREATE TABLE table_name_12 (written_by VARCHAR(255), directed_by VARCHAR(255))
Who wrote the episode that was directed by dan lerner?
    
SQL: SELECT written_by FROM table_name_12 WHERE directed_by = "dan lerner"