CREATE TABLE table_21994729_2 (written_by VARCHAR, prod_code VARCHAR)

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