Context: CREATE TABLE table_27155243_4 (episode__number INTEGER, written_by VARCHAR)
Question: What episode was written by Matt Maclennan?
Answer: SELECT MAX(episode__number) FROM table_27155243_4 WHERE written_by = "Matt MacLennan"