AMERICAN LEAGUE

Yankees 11, Red Sox 6

New York clinched home-field advantage for the American League wild-card game on Friday night, hitting four homers to tie the major-league single-season record and beat host Boston.

Reigning Rookie of the Year Aaron Judge hit his first homer since coming off the disabled list Sept. 14, and Gary Sanchez, Aaron Hicks and Luke Voit also homered to match the mark of 264 set by the 1997 Seattle Mariners.

The win in the opener of the three-game series settled the AL’s last remaining postseason question with two games to go. The Yankees will host the Oakland Athletics on Wednesday for the right to play Boston in the divisional round.

Astros 2, Orioles 1

Gerrit Cole tuned up for the postseason by pitching six sharp innings for Houston, which got a home run from Josh Reddick in a win over host Baltimore.

The Astros close out the regular season at Camden Yards this weekend after clinching the AL West title on Tuesday night. Houston opens the playoffs at home against Cleveland on Oct. 5.

Cole gave up one run, five hits and a walk. His four strikeouts gave him 276 for the season, and he reached 200 innings for the third time in his career.

Cole and the Astros trailed 1-0 in the sixth before Reddick tied it with his 17th home run, a drive off rookie David Hess that sailed over the right-field scoreboard.

Marwin Gonzalez put Houston in front with a bases-loaded single in the eighth off Tanner Scott (3-3).

Twins 2, White Sox 1

Jose Berrios became the first Minnesota pitcher in eight years to reach 200 strikeouts, throwing seven smooth innings against visiting Chicago in the first game of a doubleheader.

Berrios finished his All-Star season with a career-best 3.84 ERA and 202 strikeouts. The last time a Twins pitcher topped that milestone was Francisco Liriano (201) in 2010, with Johan Santana (235) in 2007 the most recent before that.

Berrios (12-11) struck out nine batters, allowing just three hits and one run on Leury Garcia’s RBI single in the third. Berrios walked four, including Avisail Garcia to lead off the sixth, but he followed that by fanning Daniel Palka, Matt Davidson and Omar Narvarez in a 10-pitch span.

Joe Mauer, playing possibly the final games of his career at age 35, had two singles.

NATIONAL LEAGUE

Cubs 8, Cardinals 4

Kyle Hendricks went eight innings in another strong start, Kris Bryant homered and host Chicago beat St. Louis to move closer to the NL Central championship and deal another hit to the Cardinals' playoff hopes.

The Cubs came into the final weekend of the regular season with a franchise-record fourth straight trip to the postseason assured and their third division title in a row in sight. They began the day with a one-game lead over Milwaukee, with the Brewers playing Detroit on Friday night.

St. Louis dropped its fourth in a row after being swept by Milwaukee. The Cardinals came in trailing Los Angeles by a game for the second wild card, with the Dodgers visiting San Francisco.

Hendricks (14-11) gave up two runs and seven hits. He’s 5-1 with a 1.52 ERA in his past seven outings.

Pirates 8, Reds 4

Elias Diaz hit a tiebreaking homer, and Colin Moran also homered and drove in three runs as Pittsburgh beat host Cincinnati.

The Pirates have won seven in a row against the Reds. The Reds lost their 94th game of the season, matching their total for each of the last two years. They’ve dropped at least 90 games in four straight seasons, one shy of the club record from 1930-34.

Corey Dickerson doubled in the first inning off Anthony DeSclafani (7-8), who completed another injury-shortened season. He missed the first two months with a strained oblique. DeSclafani lost each of his last four starts.

Diaz snapped a 2-2 tie in the fourth inning with his 10th homer off DeSclafani, who lasted five innings. Moran added a sacrifice fly, a solo homer and a run-scoring single as the Pirates pulled away.

Marlins 8, Mets 1

David Wright finally made it back into a major-league game, grounding out in his first plate appearance for the Mets in nearly 2½ years as host New York lost to Miami.

Sidelined by neck, back and shoulder injuries since May 27, 2016, the 35-year-old Wright came up as a pinch-hitter leading off the fifth inning and received a warm ovation from the Citi Field crowd. With fans on their feet and his wife and two young daughters in the stands, Wright swung at the first pitch he saw — a 96 mph fastball from Jose Urena.

The seven-time All-Star hit a bouncer to the left of third baseman Brian Anderson, who made a nifty pickup of a short hop and threw across the diamond to retire Wright. The Mets’ captain gave a quick wave to the crowd before returning to the dugout.