What episode was written by Matt Maclennan?
CREATE TABLE table_27155243_4 (episode__number INTEGER, written_by VARCHAR)
SELECT MAX(episode__number) FROM table_27155243_4 WHERE written_by = "Matt MacLennan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_27155243_4 (episode__number INTEGER, written_by VARCHAR) Question: What episode was written by Matt Maclennan? [/INST] SELECT MAX(episode__number) FROM table_27155243_4 WHERE written_by = "Matt MacLennan" </s>