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.
Stokes has loomed large over the second Rothesay Test despite not being selected following his breach of team protocols.
Aidan O’Brien’s classy stayer won the Queen Alexandra Stakes by a neck.