Pablo Sandoval hit a three-run homer and a solo shot, and the NL West-leading San Francisco Giants reduced their magic number to clinch the division to four by beating the Colorado Rockies 9-2 on Thursday.