Hamilton’s first Ferrari win in Barcelona closed the gap to 41 points behind Mercedes’ championship leader Kimi Antonelli.
The Northern Irishman recovered from an early bogey by picking up three shots in a row.
Moody, who was diagnosed with MND last September, completed his seven-day ride at Twickenham on Saturday.
Kemp’s 39 not out off 16 deliveries and Gibson’s unbeaten 30 off 11 lifted England to a total that was beyond Scotland’s reach.
Aidan O’Brien’s classy stayer won the Queen Alexandra Stakes by a neck.