BALTIMORE (AP) -Baltimore's Chris Davis singled home the tiebreaking run with two outs in the 13th inning, giving the Orioles an exhausting 5-4 victory over the Boston Red Sox in Thursday's opener of a four-game series between American League East contenders.
Baltimore moved within 2-1/2 games of Boston and up into second spot in the division, above the New York Yankees who were swept by Oakland after a marathon 18-inning game.
Also Thursday, San Francisco pitcher Matt Cain was in command as the Giants routed Pittsburgh, and Washington edged a depleted Colorado lineup.
Baltimore's Danny Valencia homered for the hosts, who escaped with a victory despite leaving 16 on base and going 4 for 14 with runners in scoring position.
With two outs in the 13th, Nick Markakis drew a walk from Alex Wilson (1-1). Adam Jones singled and Davis followed with an opposite-field pop that landed in front of left fielder Daniel Nava.
Oakland's Nate Freiman singled home the winning run in the 18th inning, lifting the Athletics to a 3-2 victory over the Yankees for a three-game sweep.
As a day game after a night game turned into a night game after a day game, John Jaso singled off Preston Claiborne (0-1) to start the decisive rally and went to third on Seth Smith's soft single off Mariano Rivera.
Baseball's career saves leader issued only the 39th intentional walk of his 19-year career before Freiman ended the 5-hour, 35-minute game.
The AL West-leading A's won their 11th in a row at home.
San Francisco's Matt Cain pitched 6 2-3 scoreless innings and the visitors' bats lit up as the Giants trounced Pittsburgh 10-0.
A year to the day after throwing a perfect game, Cain (5-3) was nearly flawless again.
Hunter Pence hit his 11th homer, while Buster Posey, Gregor Blanco and Joaquin Arias had three hits apiece for the Giants, who avoided a sweep.
Washington's Ryan Zimmerman homered, doubled and drove in three runs, while Ian Desmond got four hits as the Nationals beat Colorado 5-4.
The Rockies lost three players to injury during the course of the game and a player plus coach were ejected in the seventh.
Troy Tulowitzki's rib injury in the eighth inning looked the most serious of the day's casualties.
Zimmerman's RBI double in the eighth broke a tie, and he later scored on Desmond's infield single to make it 5-3.
Toronto's Edwin Encarnacion hit a tiebreaking two-run double in the eighth inning as the Blue Jays won 3-1 to hand Texas its third straight loss.
St. Louis' Adam Wainwright became the first 10-game winner in the majors by throwing seven scoreless innings and sent Matt Harvey to his first loss of the season, leading the Cardinals over the New York Mets 2-1 in a classic pitching matchup.
Kansas City's Elliot Johnson had a three three-run homer for his second hit of an eight-run sixth inning, leading the surging Royals to a 10-1 victory over Tampa Bay.
Chicago pinch-hitter Julio Borbon singled home the winning run with two outs in the 14th inning as the Cubs won 6-5 to end Cincinnati's record 12-game winning streak at Wrigley Field.
Philadelphia's Cliff Lee allowed two runs in seven strong innings, while Ben Revere had four hits and scored the go-ahead run, as the Phillies rallied to beat Minnesota 3-2 and snap a five-game losing streak.