San Francisco: Pablo Sandoval homered and had five RBIs to back an uneven start by Madison Bumgarner as the San Francisco Giants beat the St. Louis Cardinals 13-8 on Sunday.

Andrew McCutchen and Alen Hanson each added three hits. Brandon Belt and Gorkys Hernandez had two apiece to help the Giants split the four-game series.

Bumgarner (2-3) earned his second win this season despite an erratic outing. Making his seventh start after missing the first two months with a broken left pinkie, Bumgarner allowed four runs and seven hits in 5 1/3 innings.

He walked two and hit a batter with a pitch. The Giants bailed out their ace with a pair of three-run innings and a five-run sixth while setting a season high for scoring.