CREATE TABLE "episodes" (
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);

Question: Who wrote the episode with a production code greater than 1.4 direcyed by rick wallace?
SQL: SELECT "written_by" FROM "episodes" WHERE "prod_code">1.4 AND "directed_by"='rick wallace';

Question: Who wrote the episode that was directed by dan lerner?
SQL: SELECT "written_by" FROM "episodes" WHERE "directed_by"='dan lerner';