PHILADELPHIA (AP) - Gregor Blanco drove in the tiebreaking run with a drag bunt single in the 10th and San Francisco beat Philadelphia 6-5 on Saturday in a game where All-Star pitchers Cole Hamels and Matt Cain hit homers in the same inning.
Jonathan Papelbon (2-4) walked Melky Cabrera to start the 10th. He advanced to third on a single and scored with out on Blanco's perfect bunt down the first-base line.
Cabrera hit a tying homer off Hamels in the eighth and Buster Posey hit a two-run shot for the NL West-leading Giants, who are 7-1 since the All-Star break.
Ryan Howard hit a three-run homer and Chase Utley also went deep for the last-place Phillies, who have lost three in a row, seven straight at home.
Hamels allowed five runs and 10 hits, including three homers, in 7 2-3 innings on a career-high 128 pitches.
Cain gave up five runs and five hits, including three homers, in eight innings.
Sergio Romo (3-1) retired the two batters he faced in the ninth and Santiago Casilla finished for his 24th save.
BRAVES 4, NATIONALS 0, 1st game
WASHINGTON (AP) - Ben Sheets pitched six shutout innings, and Brian McCann and Chipper Jones homered as Atlanta beat Washington in the opening game of a day-night doubleheader
Sheets (2-0) extended his scoreless innings streak to 12 in his return after missing last season because of Tommy John surgery on his right elbow. The victory pushed the Braves' winning streak to three.
The Nationals have lost three straight.
McCann hit a solo homer in the second inning, his 16th, and Jones, entering as a pinch-hitter in the ninth with a runner on, hit his ninth.
In his second start of the season, Sheets threw 91 pitches, allowing five hits with six strikeouts and three walks. Washington finished 0-of-7 with runners in scoring position, all against Sheets.
Nationals starter Edwin Jackson (5-6) struck out nine while allowing five hits and two walks over seven innings.
DODGERS 8, METS 5
NEW YORK (AP) - Juan Uribe broke out of a long slump with a homer and four RBIs for Los Angeles and Chris Capuano pitched seven solid innings against his former team.
Uribe hit an early two-run double to end a 1-for-38 slide. He added a two-run homer in the ninth inning off 13-game winner R.A. Dickey, who was making his first relief appearance of the season to help an overtaxed Mets bullpen.
Matt Treanor also stopped a slump with a run-scoring hit and the Dodgers won their third straight following a 1-7 skid. Matt Kemp had an RBI triple and Capuano (10-5) struck out nine for his first victory in seven career starts against the Mets.
Los Angeles chased 41-year-old spot starter Miguel Batista (1-3) after three innings.
Ronny Cedeno homered for the Mets, who have lost eight of nine.
SI Now: Should NCAA Student Athletes be treated as pros?
SI Now: What role will Tim Tebow fill for the Patriots?