Table: episodes_shows
Columns: episode
original_title
directed_by
written_by
original_airdate
duration
viewership

Question: What was the title of the episode with 5.04 million viewers?
SQL: SELECT "original_title" FROM episodes_shows WHERE "viewership" = '5.04 million'

Question: What was the first airdate with a viewership of 4.77 million?
SQL: SELECT "original_airdate" FROM episodes_shows WHERE "viewership" = '4.77 million'

Question: How many episodes  of 30 minutes were written by John Sullivan?
SQL: SELECT COUNT("duration") FROM episodes_shows WHERE "written_by" = 'John Sullivan'

Question: Who was the director when the writer was John Sullivan?
SQL: SELECT "directed_by" FROM episodes_shows WHERE "written_by" = 'John Sullivan'