NEW YORK (AP) -- Sonny Gray was chased in the third inning by the team with worst record in the majors, big league-loss leader Alex Cobb ended a nine-start winless streak and the Baltimore Orioles beat the New York Yankees 7-5 on Wednesday.
Despite what appeared to be a midgame lecture in the dugout by third base coach Phil Nevin during a rain delay, New York (68-38) dropped 5 1/2 games behind Boston (75-34) heading into a four-game series at Fenway Park starting Thursday.
Gray (8-8) allowed seven runs, eight hits and two walks in 2 2/3 innings, raising his ERA to 5.56. He was booed as he walked off the mound and was replaced by Lance Lynn.
Cobb (3-14) had been 0-7 since winning at the New York Mets on June 5, losing his last five outings. He breezed against the Yankees with an early 7-1 lead, allowing one run and seven hits in six innings and stopping Baltimore's streak of 11 consecutive road losses.
Gleyber Torres homered twice for New York, a solo drive in the second and a three-run shot in the ninth.
ASTROS 8, MARINERS 3
SEATTLE (AP) -- Marwin Gonzalez hit two of Houston's four home runs, and the Astros knocked Seattle Mariners from the lead for the second wild card in the American League.
After a five-game losing streak, the Astros rebounded to win the final two games of the series. Houston has a five-game cushion over Seattle in the AL West and dropped the Mariners into a tie with surging Oakland for the second AL wild-card spot. Seattle led the A's by 11 games in the middle of June, but has seen the entire lead disappear over the past six weeks.
Gonzalez hit a solo home run off Wade LeBlanc (6-2) with two outs in the second inning and added a two-run shot in the fourth. Jake Marisnick, recalled from the minors before the game, added a two-run shot off LeBlanc and Max Stassi greeted reliever Nick Vincent with a three-run homer in the fifth.
Dallas Keuchel (9-9) improved to 6-1 in his past nine starts, throwing seven innings.
NATIONALS 5, METS 3
WASHINGTON (AP) -- Tommy Milone worked seven strong innings to get his first win in more than a year, Anthony Rendon homered and Washington beat New York to move back above .500.
The Nationals followed their 25-4 blowout of the Mets on Tuesday night by jumping on Noah Syndergaard (6-2) early. Bryce Harper singled in the first inning to drive in Trea Turner, who had stolen second. In the third, Rendon got hold of a hanging curveball for his 16th homer this season, scoring Turner.
Rendon has six RBIs in two games since returning after the birth of his first child.
Filling in for the injured Stephen Strasburg, Milone (1-0) mixed his pitches effectively and faced little stress in the second start of his second stint with Washington. Kelvin Herrera got the save after allowing Wilmer Flores's ninth-inning homer. Jose Reyes homered from both sides of the plate for the Mets, his 11th career multihomer game and his first since Sept. 8.
INDIANS 2, TWINS 0
MINNEAPOLIS (AP) -- Carlos Carrasco struck out 10 in 7 1/3 innings, winning his fourth straight start since returning from the disabled list to carry Cleveland past Minnesota.
Brad Hand got the last five outs for his 26th save of the season and second for Cleveland. The Indians stretched their lead over the Twins in the AL Central to 10 games.
Carrasco (13-5), who missed three weeks with a bruised elbow before his reinstatement July 6, has 63 strikeouts in his last eight starts.
Matt Magill (2-2) was the loser.
ATHLETICS 8, BLUE JAYS 3
OAKLAND, Calif. (AP) -- Sean Manaea pitched effectively into the seventh inning, Jonathan Lucroy drove in four runs and Oakland completed a season sweep of Toronto.
Manaea (10-7) allowed five hits, struck out five and walked two. The A's won all seven games between the two teams for their first season sweep of the Blue Jays.
Franklin Barreto homered and had three RBIs for the Athletics. Lucroy added three hits.
Toronto starter Marcus Stroman (4-8) allowed seven runs and 11 hits in five innings. Russell Martin homered for the Blue Jays.
TIGERS 7, REDS 4
DETROIT (AP) -- Jose Iglesias drove in three runs, Jim Adduci homered and Detroit survived the loss of pitcher Mike Fiers to an early injury to beat Cincinnati.
Fiers left after the second with a bruised left shin, sustained on Mason Williams' comebacker. X-rays on Fiers' shin were negative, and it was unclear whether he will make his next scheduled start.
Drew VerHagen (2-2) followed as the first of six relievers and pitched three scoreless innings. Shane Greene worked the ninth for his 23rd save in 26 chances.
Sal Romano (6-9) allowed four runs and eight hits in 5 1/3 innings.