OAKLAND, Calif. — Chris Carter hit a two-run homer to cap a five-run sixth inning and the Oakland Athletics overcame a shaky outing by rookie Dan Straily to beat the Los Angeles Angels 9-8 Wednesday.

George Kottaras also homered and Yoenis Cespedes added a two-run single for the A's, who won the final two games of the series against their division rivals after losing the opener.

Oakland, which began the day a game behind Detroit in the AL wild card race, improved to 17-8 since the All-Star break.

RANGERS 10, RED SOX 9: At Boston, Adrian Beltre had a tiebreaking sacrifice fly in the ninth inning after Texas blew a late four-run lead and the Rangers pulled out their sixth win in eight games.

INDIANS 6, TWINS 2: At Cleveland, Justin Masterson pitched seven strong innings and Shin-Soo Choo went 4-for-4 as Cleveland ended an 11-game losing streak.

The Indians avoided tying the 1931 franchise record for consecutive losses.

RAYS 3, BLUE JAYS 2: At St. Petersburg, Fla., Alex Cobb pitched seven solid innings, helping the Tampa Bay Rays clinch their 16th consecutive home series win over Toronto.

ORIOLES 9, MARINERS 2: At Baltimore, Steve Johnson struck out nine over six innings in his first major league start, Matt Wieters tied a career high with five RBIs and the Orioles earned a three-game sweep.

YANKEES 12, TIGERS 8: At Detroit, Curtis Granderson snapped out of a short slump by hitting his 30th homer and driving in four runs, helping the Yankees snap the Tigers' six-game winning streak.

ROYALS 2, WHITE SOX 1: At Chicago, Jeremy Guthrie picked up his first victory since late May, scattering five hits over eight innings.

National League

GIANTS 15, CARDINALS 0: At St. Louis, Marco Scutaro hit a grand slam and drove in a career-high seven runs.

BREWERS 3, REDS 2: At Milwaukee, Ryan Braun snapped an 0-for-18 slump with an RBI double in the eighth, lifting the Milwaukee Brewers to a three-game sweep.

PADRES 2, CUBS 0: At San Diego, Clayton Richard threw a five-hitter and the Padres swept the Cubs.

BRAVES 12, PHILLIES 6: At Philadelphia, Dan Uggla hit a tiebreaking three-run double in the seventh after Tim Hudson blew a five-run lead.

MARLINS 13, METS 0: At New York, Giancarlo Stanton hit two two-run homers, Jose Reyes also connected against his former team and the Marlins handed the Mets their ninth straight loss at home.

Comment on this story

Reyes extended his hitting streak to a career-high 26 games, the longest in the majors this season.

PIRATES 7, DIAMONDBACKS 6: At Pittsburgh, Neil Walker homered and drove in five runs, Kevin Correia won his seventh straight decision and the Pirates overcame four errors.

NATIONALS 4, ASTROS 3: At Houston, Gio Gonzalez pitched a nine-inning complete game and hit a home run — both career firsts.

DODGERS 6, ROCKIES 4: At Los Angeles, Chad Billingsley shrugged off an inside-the-park home run by Eric Young Jr. on his fourth pitch of the game to win his fourth straight start and Matt Kemp hit a three-run homer.