question: What is the highest production code of an episode written by Tim Loane?
answer: SELECT MAX(production_code) FROM table_18335117_2 WHERE writer = "Tim Loane"
context: CREATE TABLE table_18335117_2 (production_code INTEGER, writer VARCHAR)