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

Question: What are all the production codes of episodes written by Michael G. Moye?
SQL: SELECT "production_code" FROM "table1_2226817_8" WHERE "written_by"='Michael G. Moye';

Question: Who is the writer of episode 13?
SQL: SELECT COUNT("written_by") FROM "table1_2226817_8" WHERE "no_in_season"=13;

Question: Which series number has the production code 7.07?
SQL: SELECT COUNT("no_in_series") FROM "table1_2226817_8" WHERE "production_code"='7.07';

Question: How many seasons have the production code 7.01 for an episode? 
SQL: SELECT MAX("no_in_season") FROM "table1_2226817_8" WHERE "production_code"='7.01';

Question: How many episodes in the series are from season 12?
SQL: SELECT "no_in_series" FROM "table1_2226817_8" WHERE "no_in_season"=12;