San Francisco Giants' Jarrett Parker runs past third base coach Roberto Kelly, right, after hitting a two-run home run during the fourth inning of a baseball game against the St. Louis Cardinals, Sunday, June 5, 2016 in St. Louis. (AP Photo/Scott Kane)
San Francisco Giants' Jarrett Parker runs past third base coach Roberto Kelly, right, after hitting a two-run home run during the fourth inning of a baseball game against the St. Louis Cardinals, Sunday, June 5, 2016 in St. Louis. (AP Photo/Scott Kane) Credit: Scott Kane

Miami — Jose Fernandez tied a career high with 14 strikeouts in seven scoreless innings to outpitch a resurgent Matt Harvey, and the Miami Marlins averted a series sweep by beating the shorthanded New York Mets, 1-0, Sunday.

Fernandez (9-2) won his eighth consecutive start to tie Chris Hammond’s team record, set in the franchise’s first season in 1993.

Fernandez allowed four hits. The right-hander improved to 23-1 with a 1.53 ERA in 33 career starts at Marlins Park

David Phelps, the losing pitcher Saturday, bounced back with a 1-2-3 eighth. A.J. Ramos pitched a perfect ninth for his 27th consecutive save, including 18 this year.

Orioles 3, Yankees 1

Baltimore — Matt Wieters followed a lengthy rain delay with a tiebreaking two-run, pinch-hit single off Aroldis Chapman in the eighth inning, and the Orioles rallied past New York.

Trailing, 1-0, in the eighth inning, Baltimore had runners at first and second and one out when play was halted by heavy rain. After a delay of 1 hour, 37 minutes, Chapman entered seeking to earn his 10th save in 10 tries.

The hard-throwing closer struck out Jonathan Schoop before Fernando Pena singled to load the bases. Wieters then bounced a single up the middle, and a third run scored on the play when center fielder Jacoby Ellsbury threw wild to the plate.

Rangers 3, Mariners 2

Arlington, Texas — Jurickson Profar hit a tiebreaking single in a three-run fifth inning and Texas beat Seattle, sweeping a three-game series between the top two teams in the AL West.

Profar now has hits in all nine games with a .390 average in the leadoff spot since he was recalled from Triple-A Round Rock.

Derek Holland (5-4) allowed two runs — on former teammate Nelson Cruz’s two-run homer in the fourth — with six strikeouts in seven innings, both season highs for the left-hander.

Diamondbacks 3, Cubs 2

Chicago — Jake Arrieta’s winning streak ended at 20 games when Patrick Corbin and struggling Arizona beat Chicago.

The reigning NL Cy Young Award winner had gone 24 regular-season starts without a loss since Cole Hamels pitched a no-hitter for Philadelphia at Wrigley Field on July 25.

Arrieta (9-1) lasted five innings this time, allowing three runs and nine hits. He threw 108 pitches and struck out a season-high 12 while walking one.

Angels 5, Pirates 4

Pittsburgh — Albert Pujols hit a two-run home run off reliever Tony Watson in the top of the eighth inning to lead Los Angeles over Pittsburgh.

It was Pujols’ 30th career homer at PNC Park, the most of any road ballpark for the 36-year-old slugger.

Watson (1-2), the Pirates usually reliable set-up man, has now allowed seven runs in his last 2 innings. He failed to protect the lead for Pirates starter Gerrit Cole, who allowed three runs over 6 innings.

Tigers 5, White Sox 2

Detroit — Justin Verlander pitched seven strong innings and Justin Upton drove in a pair of runs as Detroit swept Chicago.

Detroit came into the series having lost eight of its last 10 games against left-handed starters, but beat a trio of Chicago lefties: Carlos Rodon, Chris Sale and Jose Quintana.

Verlander (5-5) allowed homers to Jose Abreu and Todd Frazier but got himself out of two major jams in order to win for the third time in four starts.

Dodgers 12, Braves 6

Los Angeles — Yasmani Grandal hit a three-run homer, Corey Seager added two more home runs and Los Angeles beat Atlanta to complete a three-game sweep with its seventh win in a row at home.

Seager went 3-for-5, drove in four runs and scored twice two days after hitting three homers in Friday’s 4-2 win in the series opener.

Scott Kazmir (5-3) overcame a rocky first inning in which he gave up two runs before settling down and allowing three runs and seven hits in five-plus innings.

Nationals 10, Reds 9

Cincinnati — Daniel Murphy homered and drove in three runs, and Jonathan Papelbon pitched out of his own major jam in the ninth inning to preserve Washington’s victory over Cincinnati.

Papelbon entered in the ninth to protect a 10-8 lead and immediately got in trouble. Tyler Holt singled, Joey Votto walked and Brandon Phillips hit an RBI double that made it a one-run game.

Astros 5, Athletics 2

Houston — Evan Gattis homered for the third straight game, Carlos Gomez connected for the first time this season and Carlos Correa delivered a tiebreaking double in the seventh inning, helping Houston beat Oakland for a three-game sweep.

The Astros have won eight of nine.

Indians 7, Royals 0

Cleveland — Francisco Lindor hit one of Cleveland’s four solo homers and drove in three runs, and the Indians completed a four-game sweep of World Series champion Kansas City with a rain-delayed victory.

Corey Kluber (5-6) allowed two hits and was pulled after the sixth inning when the game was delayed by inclement weather for 3 hours, 10 minutes.

Rays 7, Twins 5

Minneapolis — Evan Longoria homered for the fourth consecutive game, connecting twice, and Tampa Bay beat Minnesota.

Logan Morrison also homered twice and Longoria added an RBI single in the ninth for Tampa Bay.

Kevin Jepsen (2-5) allowed two hits and two walks in the ninth.

Phillies 8, Brewers 1

Philadelphia — Aaron Nola pitched six scoreless innings and matched his career high with nine strikeouts and Philadelphia backed him with three home runs in a win over Milwaukee.

Nola (5-4), who turned 23 on Saturday, maneuvered out of several jams. The Brewers stranded 10 runners against him.

Cardinals 6, Giants 3

St. Louis — Aledmys Diaz, Matt Adams and Yadier Molina each had an RBI during a four-run sixth inning and St. Louis came from behind for the second straight game to beat San Francisco.

The tiebreaking run came on an RBI fielder’s choice with the bases loaded by Molina, who entered the at-bat in an 0-for-20 skid. Shortstop Brandon Crawford made an error on the play when he dropped the ball on the exchange trying to flip to second to start a double play.

Carlos Martinez (6-5) allowed three runs in six innings and Matt Carpenter had three hits and an RBI for St. Louis. Trevor Rosenthal earned his 10th save in 11 chances.

Giants manager Bruce Bochy used three relievers in the sixth trying to preserve the lead for Jake Peavy (2-6), who missed a chance at his 150th career victory.