CREATE TABLE "table1_21994729_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text
);

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

Question: Who wrote the episode titled "heroes"?
SQL: SELECT "written_by" FROM "table1_21994729_2" WHERE "title"='\"Heroes\"';