Table schema:
CREATE TABLE table_21994729_2 (written_by VARCHAR, prod_code VARCHAR)

Question: Who wore the episode with the production code of 1apx11?
SQL: SELECT written_by FROM table_21994729_2 WHERE prod_code = "1APX11"