Table: tv_episode_data_40
Columns: series
season
title
directed_by
written_by
original_air_date
production_code

Question: What episode in the series is "teased"?
SQL: SELECT MAX("series") FROM tv_episode_data_40 WHERE "title" = '"Teased"'

Question: What date did "sympathy" originally air?
SQL: SELECT "original_air_date" FROM tv_episode_data_40 WHERE "title" = '"Sympathy"'

Question: What original air date was the episode with production code of 5.05?
SQL: SELECT "original_air_date" FROM tv_episode_data_40 WHERE "production_code" = '5.05'

Question: Who wrote episode with production code 1.01?
SQL: SELECT "written_by" FROM tv_episode_data_40 WHERE "production_code" = '1.01'