Table: episode_data_31
Columns: no_in_series
no_in_season
title
directed_by
written_by
original_air_date
u_s_viewers_millions

Question: What in the series number of the episode written by Lauren Gussis?
SQL: SELECT MIN("no_in_series") FROM episode_data_31 WHERE "written_by" = 'Lauren Gussis'

Question: On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?
SQL: SELECT COUNT("original_air_date") FROM episode_data_31 WHERE "directed_by" = 'Marcos Siega' AND "written_by" = 'Scott Buck'

Question: Who was the director of the episode called "If I had a hammer"?
SQL: SELECT "directed_by" FROM episode_data_31 WHERE "title" = '"If I Had a Hammer"'

Question: What's the series number of the episode written by Tim Schlattmann?
SQL: SELECT MIN("no_in_series") FROM episode_data_31 WHERE "written_by" = 'Tim Schlattmann'