CREATE TABLE table_17641206_4 (duration VARCHAR(255), written_by VARCHAR(255))
How many episodes  of 30 minutes were written by John Sullivan?
    
SQL: SELECT COUNT(duration) FROM table_17641206_4 WHERE written_by = "John Sullivan"