MIAMI — Justin Upton homered, doubled twice and scored three runs to help the Atlanta Braves earn their 27th comeback victory with a 6-4 win over the Miami Marlins Tuesday. The Braves, who lead the NL in come-from-behind wins, overcame deficits of 3-1 and 4-3. Pitchers for the two teams combined to retire 30 consecutive batters Monday, when Atlanta won 7-1 in 14 innings. But the second game of the series was a slugfest, with Upton leading the way. He doubled home a run in the third, doubled and scored to make it 4-all in the fifth, then hit his 16th home run — but first since June 12 — leading off the seventh against reliever Ryan Webb. Dodgers 6, Diamondbacks 1: Ricky Nolasco gave up four hits over seven innings in his Dodgers debut and surging Los Angeles beat the Diamondbacks for its 14th victory in 17 games. Nolasco (6-8), acquired Saturday in a trade with the Miami Marlins, also doubled and singled, driving in a run and scoring another. The Dodgers pulled within 2½ games of the NL West-leading Diamondbacks. Phillies 4, Nationals 2: Cole Hamels threw eight sharp innings, Michael Young hit a two-run double and Philadelphia beat Washington for its third straight win. Hamels (4-11) allowed one run and six hits to win consecutive starts for the first time this season. The Phillies have won six of their past eight games. Brewers 2, Reds 0: Wily Peralta tossed a three-hitter for his first career shutout and Logan Schafer hit his first homer, a two-run shot that lifted Milwaukee to a victory over Cincinnati. Peralta (6-9), whose start was pushed back from Sunday to give his aching left hamstring a couple extra days of rest, struck out six and walked four for his first complete game. It also was the Brewers' first shutout and complete game of the season. Cardinals 9, Astros 5: Adam Wainwright earned his 12th win to tie for the NL lead, pitching seven scoreless innings, and Matt Holliday hit his team-high 13th homer to lead the Cardinals to a win over the Astros. Matt Carpenter had three hits and drove in three runs for St. Louis, which has won four in a row and five of six. Houston dropped its ninth in the last 11 and leads the majors with 58 losses. Mets 10, Giants 6: Marlon Byrd's two-out grand slam capped a five-run eighth inning and the Mets beat the Giants for their third consecutive win. Padres 2, Rockies 1: Eric Stults pitched a four-hitter, Alexi Amarista drove in two runs and the Padres snapped their 10-game losing streak with a win over the Rockies. Inter-League Cubs 7, Angels 2: Alfonso Soriano hit two of the Cubs' season high five home runs and Travis Wood earned his first win in nearly six weeks in a victory over Los Angeles. Athletics 2, Pirates 1: Dan Straily pitched two-hit ball into the seventh inning, Brandon Moss hit a two-run homer and the Athletics beat the Pirates. — Agencies