Question: How many seasons had episode 158?
SQL: SELECT MIN("No. in season") FROM "1-2226817-9" WHERE "No. in series" = 158.0;

Question: What is the production code of the episode directed by Stacie Lipp?
SQL: SELECT "Production code" FROM "1-2226817-9" WHERE "Written by" = 'Stacie Lipp';

Question: What is the name of episode 165?
SQL: SELECT "Title" FROM "1-2226817-9" WHERE "No. in series" = 165.0;

Question: How many episodes have the production code 8.04
SQL: SELECT COUNT("Directed by") FROM "1-2226817-9" WHERE "Production code" = '8.04';