CREATE TABLE "table1_2818164_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);

Question: What is the series number for the episode written by janet leahy?
SQL: SELECT MIN("no_in_series") FROM "table1_2818164_4" WHERE "written_by"='Janet Leahy';

Question: What was the air date of the episode with the production code of 322?
SQL: SELECT "original_air_date" FROM "table1_2818164_4" WHERE "production_code"=322;

Question: What is the series number for the episode directed by  jay sandrich that aired October 23, 1986?
SQL: SELECT MIN("no_in_series") FROM "table1_2818164_4" WHERE "directed_by"='Jay Sandrich' AND "original_air_date"='October 23, 1986';

Question: Who wrote the episode titled "man talk"?
SQL: SELECT "written_by" FROM "table1_2818164_4" WHERE "title"='\"Man Talk\"';