CHICAGO (AP) — Pablo Sandoval snapped his 0-for-38 skid with a three-run homer, Matt Moore pitched effectively into the seventh inning and the San Francisco Giants beat the Chicago White Sox 9-2 on Friday night.

Denard Span also homered and Brandon Crawford had three hits with an RBI for San Francisco, which has won back-to-back games after losing seven of eight.

READ MORE: Early Season Red Flag Warning Sends Residents Scrambling To Protect Homes

Sandoval went 1 for 3 with four RBIs. His previous hit was a single on Aug. 25 at Arizona.

Avisail Garcia homered for Chicago, which has dropped five straight.

READ MORE: One Dead, Two Wounded In San Jose Shooting

Moore (5-13) allowed two runs and five hits in 6 2/3 innings. He won for just the second time in eight decisions.

Lucas Giolito (2-2) gave up five runs, three earned, and three hits in 5 1/3 innings. He walked four, struck out five and was ejected by plate umpire Gabe Morales after he was lifted.

MORE NEWS: COVID: San Francisco Businesses Thriving Again Under New Yellow Tier Freedoms

© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed