Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31?

### Inputs:
table_name: table, columns: ['Week', 'Dance/song', 'Horwood', 'Goodman', 'Dixon', 'Tonioli', 'Total', 'Result']

### Response:
SELECT Goodman FROM table WHERE Total = 31 AND Horwood = 7 AND Result = Safe