PHILADELPHIA (AP) -- J.T. Realmuto had three hits, including a homer and a triple, Corey Dickerson also went deep and the Philadelphia Phillies got 17 hits in a 12-3 victory over the Pittsburgh Pirates on Wednesday night.
Cesar Hernandez contributed three hits and three RBIs. Rhys Hoskins doubled, tripled and drove in a run to help the Phillies stay close in the NL wild-card race.
Every Phillies starter had at least one hit and RBI.
Starling Marte homered and had three hits for Pittsburgh, and Josh Bell hit a two-run shot.
Pirates rookie Bryan Reynolds, who began the day leading the NL in batting, went 0 for 3 to snap his seven-game hitting streak and drop his average to .330.
Vince Velasquez (6-7) went five innings and allowed two runs on five hits with five strikeouts and no walks.
Mitch Keller (1-3), a 23-year-old rookie making his seventh career start, pitched into the fifth for Pittsburgh and gave up eight runs on 11 hits with eight strikeouts and a walk.
YANKEES 7, MARINERS 3
SEATTLE (AP) -- Aaron Judge hit the 101st homer of his career, Gary Sanchez, DJ LeMahieu and Mike Ford also went deep, and New York completed a three-game sweep of Seattle.
Sanchez hit a towering two-run homer in the first. Ford snapped a 2-2 tie with his sixth home run in the past 14 games, and Judge broke the game open with a two-run shot as part of New York's four-run fifth inning. LeMahieu added his 23rd of the season in the ninth.
James Paxton (11-6) gave up just one hit but was done after five innings due to control problems. Paxton issued a season-high five walks.
Seattle had just one hit until Tom Murphy doubled in the ninth.
Justus Sheffield (0-1) allowed six hits and struck out five.
RED SOX 7, ROCKIES 4
DENVER (AP) -- Xander Bogaerts went deep twice as Boston extended its home run streak to 18 games in a win over Colorado.
It's the third-longest streak in franchise history. Boston's best run was 22 straight games with a homer in 2016.
The heart of the order powered the Red Sox as they finished a two-game sweep of Colorado. Rafael Devers, Bogaerts and J.D. Martinez went a combined 8 for 14 with four home runs. Bogaerts had a two-run homer in the fifth inning and a solo shot in the seventh. Martinez got things rolling with a two-run drive in the third, and Devers went deep in the ninth.
Eduardo Rodriguez (16-5) lasted five innings and allowed three runs.
Brandon Workman struck out the side for his ninth save.
Rockies rookie Peter Lambert (2-5) gave up five runs over 4 1/3 innings. He hasn't won since June 11.
BREWERS 4, CARDINALS 1
MILWAUKEE (AP) -- Keston Hiura homered and drove in three runs, Jordan Lyles turned in another strong start and Milwaukee snapped St. Louis' six-game winning streak.
The NL Central-leading Cardinals had won 15 of 18 and were trying for a three-game sweep. The Brewers ended a three-game skid.
Hiura hit a solo home run in the fourth, sending a 3-0 fastball from Flaherty into the left-field seats. Hiura added an RBI double in the eighth.
Lyles (9-8) struck out five of the first seven Cardinals he faced. He fanned nine in 5 1/3 innings. Josh Hader struck out three in two scoreless innings to earn his 26th save.
Jack Flaherty (8-7) allowed five hits and three runs, two earned, in six innings. He struck out seven, walked one and took the loss.
INDIANS 4, TIGERS 2
DETROIT (AP) -- Jason Kipnis homered twice and Francisco Lindor also went deep to lift Cleveland to another win over Detroit.
Cleveland is 14-1 against the last-place Tigers this year, and that's a big reason the Indians are firmly in the postseason hunt.
Aaron Civale (2-3) allowed two runs and six hits in seven innings, striking out five and walking none. Brad Hand finished for his 32nd save in 37 chances.
Detroit starter Jordan Zimmermann allowed two runs in six innings, but Buck Farmer (5-5) allowed Lindor's one-out solo shot in the eighth, which bounced of the top of the wall and over in center field. That gave the Indians a 3-2 lead.
Dawel Lugo homered for Detroit.
BRAVES 9, BLUE JAYS 4
TORONTO (AP) -- Freddie Freeman hit his 36th home run and drove in a pair of runs, Matt Joyce homered and had two RBIs and Atlanta beat Toronto.
Ronald Acuna Jr. added a two-run double as the NL East-leading Braves snapped a two-game losing streak and won for the ninth time in 11 games.
Atlanta reliever Luke Jackson (8-2) pitched 1 1/3 innings to win his fifth straight decision.
Toronto's Brandon Drury hit an RBI groundout off Braves right-hander Mike Foltynewicz in the fourth and a second run scored on a passed ball. Randal Grichuk hit an RBI double in the fifth and Vladimir Guerrero Jr. made it a one-run game with a two-out RBI single off Jackson in the sixth.
Jacob Waguespack (4-2) lost for the first time since July 26 against Tampa Bay, ending a five-start unbeaten streak. The rookie allowed five runs, three earned, and six hits in three innings, his shortest start of the season.
CUBS 10, METS 7
NEW YORK (AP) -- Kyle Schwarber hit one of Chicago's three homers against a stunned Noah Syndergaard, and the Cubs built an early nine-run lead before closer Craig Kimbrel held off New York in the ninth.
Nicholas Castellanos and Ian Happ also took Syndergaard (9-7) deep in the worst start of the 2016 All-Star's career. Syndergaard allowed 10 runs and three homers -- both his most in the majors -- and was pulled after three miserable innings.
Kimbrel entered with a three-run lead and let his first two batters reach in the ninth. He escaped a dicey 3-0 count against red-hot Amed Rosario with a fielder's choice, struck out Juan Lagares and got Todd Frazier to fly out for his 12th save.
Chicago climbed within two games of the NL Central-leading Cardinals, who lost 4-1 to the Brewers.
New York has dropped five straight, all at home.
Kyle Ryan (4-2) got the win.
ROYALS 6, ATHLETICS 4
KANSAS CITY, Mo. (AP) -- Hunter Dozier homered before driving in the go-ahead run in the seventh inning, Ryan O'Hearn also went deep and Kansas City held on to beat Oakland.
Tim Hill (2-0) tossed two perfect innings in relief of Jakob Junis for the Royals, and Ian Kennedy survived a harrowing ninth inning to pick up his 23rd save.
Blake Treinen (6-5) faced four batters in the seventh inning without recording an out for Oakland. He allowed three hits and a walk, and Jake Diekman allowed one of his inherited runners to score.
Marcus Semien and Mark Canha homered for the A's.
REDS 5, MARLINS 0
MIAMI (AP) -- Aristides Aquino tied a National League rookie mark with his 13th home run this month, powering Anthony DeSclafani and Cincinnati Reds over Miami.
Eugenio Suarez hit his 38th homer, connecting in the fourth straight game for the Reds.
Aquino hit a three-run shot in the first. The 24-year-old outfielder matched the NL homer mark for rookies in a month set by Cody Bellinger of the Dodgers in June 2017.
The major league rookie record for homers in a month is 18 by Rudy York of Detroit in August 1937. Aquino, who got one at-bat in the majors last year, also doubled as the Reds beat Miami for the third straight day.
DeSclafani (9-7) had his longest outing of the season, throwing seven innings of two-hit ball. He struck out eight and walked one.
Sandy Alcantara (4-12) gave up four runs and six hits, struck out eight and walked one in six innings.
NATIONALS 8, ORIOLES 4
WASHINGTON (AP) -- Max Scherzer struck out eight to reach the 200 mark for an eighth straight season, Kurt Suzuki homered and drove in four runs and Washington beat Baltimore.
Scherzer allowed two runs and six hits over 4 1/3 innings. Wander Suero (5-7) followed Scherzer as the National won for the sixth time in seven games.
The Nationals scored five runs on five hits in the first inning against Asher Wojciechowski (2-7).
Chance Sisco and Chris Davis homered for the Orioles, who settled for a split of the four-game season series.
ASTROS 8, RAYS 6
HOUSTON (AP) -- George Springer broke a tie with a bloop RBI single in a three-run seventh inning and Houston rallied to beat Tampa Bay and extend its winning streak to six.
Alex Bregman had three hits and an RBI and Yuli Gurriel hit a two-run homer for Houston.
Gerrit Cole allowed six hits and four runs in 6 1/3 innings, but did not factor into the decision. He struck out 14 to tie a season high. Will Harris (4-1) struck out three in 1 1/3 scoreless innings for the win.
Willy Adames and Ji-Man Choi each had two-run homers for Tampa Bay. Diego Castillo (2-8) took the loss.
TWINS 8, WHITE SOX 2
CHICAGO (AP) -- Jonathan Schoop hit two homers and drove in four runs, Mitch Garver also connected and Minnesota beat Chicago for its fourth straight win.
It was the 13th multihomer game of Schoop's career and fifth this year.
Jose Abreu and Matt Skole each drove a run for Chicago.
Jake Odorizzi (14-6) allowed two runs and five hits in six effective innings. He walked two and struck out eight.
Ross Detwiler (2-4) allowed six hits and five earned runs in four innings, striking out five and walking two in the loss.