Buster Posey collected four hits, including a bases-clearing double in a four-run third inning on Sunday afternoon, sending the San Francisco Giants to an 8-5 victory over the visiting Milwaukee Brewers. Pablo Sandoval laced a two-run triple and Gorkys Hernandez homered for the Giants, who prevented a four-game sweep by the Brewers and ended a four-game losing streak in the process. Ryan Braun, Hernan Perez and Travis Shaw homered for the Brewers, who had won the first three games of the series 7-5, 3-1 and 7-1.