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

Question: On how many different dates was the episode written by Charlie Day aired for the first time?
SQL: SELECT COUNT("original_air_date") FROM episode_data_49 WHERE "written_by" = 'Charlie Day'

Question: Who are the writers of the episode with production code IP02009?
SQL: SELECT "written_by" FROM episode_data_49 WHERE "production_code" = 'IP02009'

Question: Who are the writers of the episode titled "Mac Bangs Dennis' Mom"?
SQL: SELECT "written_by" FROM episode_data_49 WHERE "title" = '"Mac Bangs Dennis'' Mom"'

Question: How many different titles does the episode with production code IP02003 have?
SQL: SELECT COUNT("title") FROM episode_data_49 WHERE "production_code" = 'IP02003'