Table: episode_data_23
Columns: no_in_series
no_in_season
title
directed_by
written_by
original_air_date
production_code

Question: How many seasons had episode 158?
SQL: SELECT MIN("no_in_season") FROM episode_data_23 WHERE "no_in_series" = 158

Question: What is the production code of the episode directed by Stacie Lipp?
SQL: SELECT "production_code" FROM episode_data_23 WHERE "written_by" = 'Stacie Lipp'

Question: What is the name of episode 165?
SQL: SELECT "title" FROM episode_data_23 WHERE "no_in_series" = 165

Question: How many episodes have the production code 8.04
SQL: SELECT COUNT("directed_by") FROM episode_data_23 WHERE "production_code" = '8.04'