MINNEAPOLIS -- Carlos Beltran gave the foundering Yankees a jolt with a three-run homer Thursday night, lifting Masahiro Tanaka to his major league-leading 12th win and helping New York end a season-worst five-game skid with a 7-4 victory over the Minnesota Twins.
Zelous Wheeler homered in his big league debut after eight years in the minors. David Robertson notched his 19th save with a hitless ninth inning and the Yankees started an 11-game road trip with a sigh-of-relief performance that put their record back at the .500 mark.
Phil Hughes (8-5) was rolling right along against his former team, leading 2-0 until Beltran's big hit cleared the tall wall above right field following consecutive singles to start the fifth. Wheeler went deep two batters later.
Tanaka (12-3) allowed a season-high four runs.
ATHLETICS 4, BLUE JAYS 1
OAKLAND, Calif. -- Sonny Gray allowed four hits over seven innings to bounce back from his worst start of the season for Oakland.
The Blue Jays scored their only run with the help of an odd replay challenge by manager John Gibbons, who wanted to have his own player called out.
Stephen Vogt scored the winning run on a passed ball in the second inning and the A's made it hold up behind Gray and two relievers.
Gray (8-3) walked three, struck out five and got some help from Oakland's defense, which turned three double plays, including one in the eighth after Josh Thole's leadoff single. Jose Reyes hit a flyout to deep right and Oakland's Brandon Moss made a strong throw back to first baseman Nate Freiman, who tagged out Thole trying to get back to the bag.
TIGERS 8, RAYS 1
DETROIT -- Max Scherzer allowed two hits in eight outstanding innings, and Detroit backed its star right-hander with three early homers.
Ian Kinsler, Victor Martinez and Torii Hunter all went deep as part of a five-run first inning for the AL Central-leading Tigers, who snapped Tampa Bay's five-game winning streak with their 12th victory in 14 games.
Detroit leads second-place Kansas City by five games.
Scherzer (10-3) allowed a first-inning sacrifice fly by Evan Longoria, but that was the first of 10 straight hitters retired by the reigning American League Cy Young Award winner. After allowing a single in the fourth, Scherzer retired another 13 in a row before he was pulled with a pitch count of 106.
Erik Bedard (4-6) allowed six runs and eight hits with two walks in two innings.
ORIOLES 5, RANGERS 2
The Rangers have lost nine consecutive road games -- their longest skid since 2005 when current Orioles manager Buck Showalter was at the helm. Baltimore (46-39) completed its first four-game sweep against Texas since 2004 and improved to a season-high seven games over .500.
Chen (8-3) allowed two runs and six hits with four strikeouts and two walks in six innings. He is 4-0 in four starts against Texas with a 1.67 ERA.
Left-hander Zach Britton earned his 12th save and hasn't allowed a run in 21 consecutive relief appearances.
DODGERS 3, ROCKIES 2
Greinke (11-4) got the win when the Dodgers rallied in the ninth. Matt Kemp worked a leadoff walk off LaTroy Hawkins (2-2), went to second on Scott Van Slyke's groundout and scored when Uribe singled under the glove of second baseman DJ LeMahieu.
Kenley Jansen worked the bottom of the inning to get his NL best 26th save in 29 chances.
Uribe finished with three of the Dodgers' six hits.
Justin Morneau and LeMahieu had two hits each for the Rockies, who have lost four straight and 15 of 17 to move within a half-game of last place in the NL West.
CARDINALS 7, GIANTS 2
Martinez (2-3) also drove in a run for the Cardinals, who won their second straight after losing three in a row. Martinez allowed a run and five hits in five innings. He walked one and struck out six.
Madison Bumgarner (9-6) fell to 0-3 over his past four home starts after allowing five runs -- four earned -- and six hits over five innings.
Bumgarner also drove in a run for the Giants, who have lost 17 of 22 and fell out of first place in the NL West.
DIAMONDBACKS 10, PIRATES 2
PITTSBURGH -- David Peralta had three hits, including a two-run homer, and drove in four runs to help Arizona avoid a series sweep.
Arizona scored three runs in the sixth and seven in the ninth.
The Pirates are 0 for 8 in chances to sweep opposing teams this season. They looked primed to get their first sweep as starter Vance Worley retired the first 12 batters he faced and carried a no-hitter into the sixth inning.
Ender Inciarte broke up Worley's no-hit bid with an RBI single with one out in the sixth. Peralta followed with his third home run of the year which barely cleared the 21-foot-high fence in right field and gave Arizona a 3-2 lead.
PHILLIES 5, MARLINS 4
Tony Gwynn Jr. led off the ninth with a walk and eventually scored the tying run against Miami closer Steve Cishek (4-4). Revere scored easily when Chase Utley hit a grounder and Solano could only get the out at first.
Phillies closer Jonathan Papelbon got his 19th save in 21 chances. Jake Diekman (3-2) got the win despite a shaky eighth, giving up two runs and costing Philadelphia the lead.
Marcell Ozuna had three hits and scored twice for Miami, and Christian Yelich also had a two-hit night for the Marlins. Casey McGehee extended his hit streak to 10 for Miami, reaching base for the 27th straight game.
Copyright 2014 by The Associated Press
This story is from ESPN.com's automated news wire. Wire index
MORE MLB HEADLINES
- Caffeine free: Nats P tweets out comped java
- Braves, reliever Grilli agree to 2-year deal
- MLB average salary makes 12.78 percent jump
- Report: Braves, C Pierzynski agree to deal