text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_2818164_4 (no_in_series INTEGER, written_by VARCHAR)
  ### Question:
  What is the series number for the episode written by janet leahy?
  ### Answer:
  SELECT MIN(no_in_series) FROM table_2818164_4 WHERE written_by = "Janet Leahy"