CREATE TABLE table_26961951_6 (written_by VARCHAR, directed_by VARCHAR)

Who was the writer in the episode directed by Jesse Peretz?
SELECT written_by FROM table_26961951_6 WHERE directed_by = "Jesse Peretz"
SELECT "written_by" FROM "table_26961951_6" WHERE "Jesse Peretz" = "directed_by"