CREATE TABLE "episodes" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "ratings" text
);

Question: What season had the title "A Safe Place"?
SQL: SELECT "no_in_season" FROM "episodes" WHERE "title"='\"a safe place\"';

Question: What season was the episode "Solitary Confinement", written by Fiona Kelly?
SQL: SELECT "no_in_season" FROM "episodes" WHERE "written_by"='fiona kelly' AND "title"='\"solitary confinement\"';

Question: What was the title of the episode written by Robert Haywood?
SQL: SELECT "title" FROM "episodes" WHERE "written_by"='robert haywood';