CREATE TABLE "table1_27622417_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_u_s_air_date" text,
  "prod_code" text
);

Question: which is the production code when the number of the episode in series is 87? 
SQL: SELECT "prod_code" FROM "table1_27622417_1" WHERE "no_in_series"=87;

Question: how many directors had the episode called "magic unmasked"?
SQL: SELECT COUNT("directed_by") FROM "table1_27622417_1" WHERE "title"='\"Magic Unmasked\"';

Question: what is the number of the episode in the series whose production code is 405?
SQL: SELECT "no_in_series" FROM "table1_27622417_1" WHERE "prod_code"='405';

Question: when was the premiere of the episode whose production code is 415? 
SQL: SELECT "original_u_s_air_date" FROM "table1_27622417_1" WHERE "prod_code"='415';

Question: who were the writers in the episode whose production code was 411? 
SQL: SELECT "written_by" FROM "table1_27622417_1" WHERE "prod_code"='411';

Question: who were the director of the episode whose number in the season is 17? 
SQL: SELECT "directed_by" FROM "table1_27622417_1" WHERE "no_in_season"=17;