Hanley Ramirez slugged two home runs, including the go-ahead solo shot in the seventh inning, and had four RBIs to help the Boston Red Sox beat the New York Yankees 5-4 at Fenway Park. Ramirez also launched a three-run shot two innings earlier. The Red Sox moved three games ahead of the Baltimore Orioles for first place in the American League East while the Yankees fell eight games behind in the division. Robby Scott earned his first career victory in 2/3 innings of relief for Boston before Koji Uehara notched his seventh save with a scoreless ninth. Red Sox starter Drew Pomeranz stumbled through a 3-2/3-inning no-decision, allowing four runs on seven hits and two walks with three strikeouts. Tigers 9, Indians 5: Justin Upton and J.D. Martinez hit home runs to lead Detroit over Cleveland. Daniel Norris pitched five innings and gave up four runs (two earned) on five hits to get the win. Francisco Rodriguez pitched the last 1-1/3 innings to pick up his 43rd save. Cleveland starter Trevor Bauer gave up six runs on 10 hits in 5-2/3 innings to take the loss. Bauer struck out five, walked two and hit three batters. Mets 3, Twins 2: Gabriel Ynoa pitched 4-2/3 effective innings and T.J. Rivera homered as New York completed a three-game sweep of Minnesota. Ynoa allowed one run and four hits while throwing 76 pitches. He struck out eight, equaling a season-high set June 23 at Reno for Triple-A Las Vegas. Ynoa was pressed into the role when originally scheduled starter Jacob deGrom was lost for the season due to an elbow injury on Saturday. Reds 7, Pirates 4: Joey Votto had four hits including a home run and Tucker Barnhart tied a career high with four RBIs to help Cincinnati to a victory over Pittsburgh. The loss snapped a four-game winning streak for the Pirates. Pirates shortstop Sean Rodriquez hit his 17th home run of the season in the loss. Marlins 5, Phillies 4: Miami beat Philadelphia at Citizens Bank Park courtesy of an eighth-inning rally. Reliever Hector Neris took the loss after blowing a two-run lead in the bottom of the eighth. Christian Yelich hit the left-field foul pole to tie the game at four befor the Marlins got an unearned run. Mike Dunn picked up the win and A.J. Ramos recorded his 37th save of the season. Orioles 2, Rays 1: Mark Trumbo hit his league-leading 43rd home run in the eighth inning as Baltimore beat Tampa Bay, earning a split in the four-game series. The Orioles hold one of the wild card spots for the playoffs entering the final two weeks of the season. Manny Machado got his career-high 36th home run of the season for the Orioles. Braves 6, Nationals 2: Right-hander Matt Wisler continued his late-season resurgence, throwing 5-2/3 strong innings in Atlanta's rain-shortened win over Washington. The game was called with two outs in the bottom of the seventh inning after heavy rain left the field unplayable, following a 110 minute-delay, the second of the game. Wisler (7-12) allowed two runs and five hits and struck out two. He did not walk a batter and was the beneficiary of two double plays. He threw only 66 pitches but did not return to the mound after a 97-minute rain delay, the first of two lengthy stoppages. In other games it was: Royals 10, White Sox 3; Brewers 3, Cubs 1; Athletics 5, Rangers 2; Angels 4, Blue Jays 0; Cardinals 3, Giants 0; Mariners 7, Astros 3; Diamondbacks 10, Dodgers 9 (12 innings); Rockies 6, Padres 2. — Agencies