CREATE TABLE table_3709 ("Total #" FLOAT, "Episode #" FLOAT, "Title" TEXT, "Directed by" TEXT, "Written by" TEXT, "Original air date" TEXT)

What episode was written by Matt Maclennan?
SELECT MAX("Episode #") FROM table_3709 WHERE "Written by" = 'Matt MacLennan'
SELECT MAX("Episode #") FROM "table_3709" WHERE "Written by" = 'Matt MacLennan'