CLEVELAND — Tyler Naquin hit a game-ending inside-the-park homer, sprinting around the bases to cap a two-run rally in the ninth inning as the Cleveland Indians stunned the Toronto Blue Jays 3-2 on Friday night.

Toronto took a 2-1 lead into the ninth in a matchup of AL division leaders. Closer Roberto Osuna (2-2) retired the first batter, but Jose Ramirez tied it with a home run.

Naquin followed with a drive that hit the top of the right-field wall, above the leap of Michael Saunders. The ball caromed away at an angle and center fielder Melvin Upton Jr. gave chase as Naquin rounded second base.

Upton finally retrieved the ball, but fell down as third-base coach Mike Sarbaugh waved Naquin home. Upton flung it toward the infield, and Naquin stumbled home and scored with a head-first dive way ahead of second baseman Devon Travis’ relay.

ASTROS 15, ORIOLES 8: Jose Altuve homered and had five RBI, and Houston won in Baltimore despite allowing four home runs in the first inning.

George Springer went 4 for 5 with a homer for the Astros, who also got long balls from Evan Gattis and Teoscar Hernandez in ending a five-game losing streak.

The Orioles became the first team in the modern era (since 1900) to open a game with four home runs before making an out, according to STATS. Adam Jones hit Collin McHugh’s first pitch into the seats in left field and Hyun Soo Kim singled before Manny Machado, Chris Davis and Mark Trumbo homered in succession.

RANGER 6, RAYS 2: Adrian Beltre led off consecutive innings with home runs and Cole Hamels didn’t give up a hit until the sixth in Texas’ victory in St. Petersburg, Florida.

ATHLETICS 8, WHITE SOX 0: Kendall Graveman faced one batter over the minimum while throwing a two-hitter, Khris Davis hit his 31st home run and Oakland won in Chicago to hand James Shields his 15th loss.

NATIONAL LEAGUE

Cardinals 4, Phillies 3: Randal Grichuk homered early, then hit an RBI double in the 11th inning that sent St. Louis to a win in Philadelphia.

Jedd Gyorko hit a tying, two-run homer with one out in the St. Louis ninth. The Cardinals tied a major league record with multiple home runs in nine consecutive games.

REDS 9, DODGERS 2: Joey Votto hit a three-run homer, relief pitcher Michael Lorenzen also hit a three-run shot, and Cincinnati beat Los Angeles to snap a nine-game losing streak against the Dodgers, in Cincinnati.

MARLINS 6, PIRATES 5: Robert Andino hit a tiebreaking single in the top of the ninth inning, then Miami got Andrew McCutchen to ground into a game-ending double play with the bases loaded to hold off host Pittsburgh in a matchup of NL wild-card contenders.

NATIONALS 7, BRAVES 6: Clint Robinson hit a tiebreaking single with two outs in the ninth and Washington recovered after giving up a three-run lead at Atlanta.

Robinson’s single to left field off Jim Johnson (2-6) drove in pinch-runner Pedro Severino from second base.

Severino replaced Wilson Ramos, who singled.