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

Question: Who was the writters for the episode directed by Richard L. Bare, no. 8 in season?
SQL: SELECT "written_by" FROM "table1_12226390_7" WHERE "directed_by"='Richard L. Bare' AND "no_in_season"=8;

Question: How many episodes had a title "the great mayoralty campaign"?
SQL: SELECT COUNT("directed_by") FROM "table1_12226390_7" WHERE "title"='\"The Great Mayoralty Campaign\"';