What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31?
CREATE TABLE "table1_1014319_1" (
  "week" real,
  "dance_song" text,
  "horwood" text,
  "goodman" text,
  "dixon" text,
  "tonioli" text,
  "total" text,
  "result" text
);
SELECT "goodman" FROM "table1_1014319_1" WHERE "total"='31' AND "horwood"='7' AND "result"='Safe';