The Associated Press

PITTSBURGH — Joc Pederson went deep twice, Cody Bellinger hit his third home run in as many games and the Los Angeles Dodgers used nine pitchers to hold off the Pittsburgh Pirates 8-7 on Thursday.

Pederson led off the game with a solo blast off Jameson Taillon (3-5) and added a two-run shot in the eighth off Michael Feliz for his second multi-home run game in a week. Bellinger finished 3-for-4, including a shot just over the wall in left field in the sixth to give the Dodgers a three-run advantage.

n Cubs 4, Phillies 3

CHICAGO — Anthony Rizzo hit a solo homer and added a second RBI with a sacrifice fly to lead Chicago past Philadelphia.

The Cubs won for the fifth time in six games to close to a half-game behind idle first-place Milwaukee in the NL Central.

Tommy LaStella and Kris Bryant had RBI singles in Chicago’s three-run fifth inning.

Brian Duensing (2-0), the first of five Cubs relievers, got the win despite allowing two runs over one inning. Phillies starter Nick Pivetta (4-5) lost his third straight.

n Reds 7, Rockies 5, 13 innings

CINCINNATI — Jesse Winker hit a two-run homer in the 13th, completing Cincinnati’s late rally that averted a sweep by Colorado.

One out away from getting their second series sweep at Great American Ball Park, the Rockies blew the lead in the ninth and wound up losing for the fifth time in seven games. They’ve blown leads in all of the five losses.

n Cardinals 4, Marlins 1

ST. LOUIS — Miles Mikolas rebounded from his first loss of the season to pitch three-hit ball over seven innings, and lead St. Louis over Miami.

AMERICAN LEAGUE

n Blue Jays 5, Orioles 4

TORONTO — Aledmys Diaz hit a game-winning single in the 10th inning, and Toronto rallied from a three-run deficit in the ninth to beat Baltimore.

Danny Barnes (2-1) pitched one inning for the win.

n Tigers 7, Red Sox 2

BOSTON — Leonys Martin had a two-run homer to cap a five-run first inning, and Detroit beat Boston.

Detroit’s victory ended a four-game win streak for Boston, which had outscored Detroit 13-1 in the first two games of the series.

n Twins 7, White Sox 2

MINNEAPOLIS — Jose Berrios pitched a six-hitter for his second complete game this season, and Minnesota hit three home runs against James Shields in a victory over Chicago.

Berrios (7-5) retired his first 14 batters before Omar Narvarez’s double. By that time, the 23-year-old right-hander already had a 7-0 lead. He struck out 10 and walked none to win for the fourth time in five starts.

n Astros 5, Rangers 2

ARLINGTON, Texas — Evan Gattis hit a two-run homer and an RBI single, and Gerrit Cole allowed one run over six solid innings as Houston topped Texas.

Alex Bregman also homered for the Astros, and Jose Altuve had three singles after coming in with a big league-leading 85.

Cole (7-1) gave up just three singles — and none after the third inning — had eight strikeouts and walked three while throwing 102 pitches. He entered the game leading the American League in strikeouts (116) and was second in opponents’ batting average (.171).

Cole Hamels (3-6) didn’t allow a hit until Bregman’s one-out double in the fourth.

n Mariners 5, Rays 4

ST. PETERSBURG, Fla. — Mike Leake pitched into the ninth inning, Mitch Haniger homered and drove in three, and AL West-leading Seattle beat Tampa Bay.