table: 1-1014319-1
columns: Week, Dance/song, Horwood, Goodman, Dixon, Tonioli, Total, Result
Q: What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31?
A: SELECT Goodman FROM 1-1014319-1 WHERE Total = '31' AND Horwood = '7' AND Result = 'Safe'