ST. PETERSBURG, Fla. -- Derek Jeter drove a single just past the outstretched glove of second baseman Logan Forsythe to score Brett Gardner from second base in the top of the ninth inning and the New York Yankees edged the Tampa Bay Rays 3-2 on Saturday at Tropicana Field.

Jeter's RBI came after Gardner reached second base on a base hit and a throwing error by Forsythe.

The Yankees ended a five-game skid overall, tied for their longest of the season, and a five-game losing streak to the Rays.

Starting pitchers Drew Smyly of the Rays and Shane Greene of the Yankees were both effective, but neither figured in the final decision.

Giants 6, Phillies 5

SAN FRANCISCO -- Rookie Joe Panik tripled and scored on Gregor Blanco's single in the eighth inning, capping a comeback that lifted San Francisco past Philadelphia.

After losing 5-3 in 10 innings in the opener of the three-game series Friday night and falling behind 5-1 Saturday, the Giants used a four-run sixth and Blanco's second of two run-scoring singles to win for just the second time in the past eight games.

The loss was the third in four games for the Phillies on their five-game California swing that concludes Sunday.

Marlins 2, Diamondbacks 1

MIAMI -- Marcell Ozuna scored the tie-breaking run in the seventh inning to lead Miami to a win over Arizona at Marlins Park.

Arizona was charged with five errors on the night, and the winning run was unearned.

Ozuna started the rally with a single and advanced to second on a botched pickoff attempt, with the error going to Arizona first baseman Mark Trumbo. Ozuna took third on a groundout and scored on Jeff Mathis' tapper to Arizona shortstop Cliff Pennington, who threw wildly to home for another error.

Miami took a 2-1 series lead with the finale set for Sunday. Arizona lost for the fourth time in its past six games.

Indians 6, Orioles 0

CLEVELAND -- Carlos Carrasco pitched seven scoreless innings and Carlos Santana and Michael Brantley homered to lead Cleveland to a shutout win over former teammate Ubaldo Jimenez and Baltimore at Progressive Field.

In just his second start since re-entering the rotation after spending three months in the bullpen, Carrasco (5-4) gave up three hits, with five strikeouts and no walks. In his two starts since re-joining the rotation, Carrasco has pitched 12 scoreless innings on five hits, with nine strikeouts and no walks. He combined with three relievers on a four-hit shutout.

The Indians, who beat Jimenez 9-0 earlier in the season in Baltimore, used two three-run innings, the first and the fifth, to send Jimenez to an early shower. In 4 1/3 innings Jimenez gave up six runs on five hits and three walks.

Twins 4, Royals 1

MINNEAPOLIS -- Phil Hughes pitched 7 1/3 innings of one-run ball and received some timely offensive support as Minnesota defeated Kansas City at Target Field.

Hughes and Royals right-hander Yordano Ventura were locked in a duel most of the night. Ventura didn't give up many hits but played with fire, allowing six walks. Each time Ventura was in trouble, he escaped -- until a three-run seventh inning.

Hughes didn't walk a batter all night and struck out six, allowing one run and seven hits, including six singles, in winning his 13th game of the season.

Mets 7, Cubs 3

NEW YORK -- New York scored four runs off just one hit in the sixth inning and right-hander Vic Black masterfully worked out of an inherited bases-loaded, none-out jam in the seventh inning as the Mets beat Chicago at Citi Field.

The Mets have won the first two games of the four-game series. The Cubs have dropped three in a row.

Jonathon Niese (7-8) won his second straight start after allowing three runs on seven hits and