CREATE TABLE table_31038 ("No. in series" FLOAT, "No. in season" FLOAT, "Title" TEXT, "Directed by" TEXT, "Written by" TEXT, "Original air date" TEXT, "Production code" TEXT)

Who wrote the episode with ip03012 as the production code?
SELECT "Written by" FROM table_31038 WHERE "Production code" = 'IP03012'
SELECT "Written by" FROM "table_31038" WHERE "Production code" = 'IP03012'