CHICAGO — Pinch-hitter Aramis Ramirez singled in the winning run with two outs in the bottom of the ninth and the Chicago Cubs snapped the San Francisco Giants' seven-game winning streak with a 2-1 victory on Wednesday.

CHICAGO — Pinch-hitter Aramis Ramirez singled in the winning run with two outs in the bottom of the ninth and the Chicago Cubs snapped the San Francisco Giants' seven-game winning streak with a 2-1 victory on Wednesday.

Sergio Romo (3-1) gave up an infield single to leadoff batter Tony Campana, who moved to second on Reed Johnson's sacrifice. After a groundout moved him to third, Ramirez hit an 0-2 pitch into left to win it.

Cubs starter Ryan Dempster shut out the Giants on two hits through eight innings but was lifted in the top of the ninth after giving up a leadoff double to Pat Burrell. Closer Carlos Marmol relieved and struck out Andres Torres, but Burriss singled to center to score pinch-runner Bill Hall with Burriss taking second.

Pablo Sandoval was walked intentionally before Aubrey Huff blooped a ball to center that Campana couldn't catch and it fell for a single. Waiting to see if the ball would be caught, Burriss held and had to stop at third, loading the bases. Cody Ross then grounded into an inning-ending double play.

San Francisco ace Tim Lincecum struck out nine in seven innings, yielding one run and five hits.

Phillies 2, Red Sox 1

At Philadelphia, Raul Ibanez hit a tiebreaking solo homer in the seventh, Vance Worley pitched seven strong innings and the Philadelphia Phillies beat the Boston Red Sox.

Worley (3-1) allowed one run and five hits. The rookie right-hander has filled in nicely for injured starters Roy Oswalt and Joe Blanton. Michael Stutes pitched a perfect eighth and Antonio Bastardo finished for his third save and first filling in for Ryan Madson.

Yankees 5, Brewers 2

At New York, A.J. Burnett pitched neatly into the eighth inning, Russell Martin hit a three-run homer and the Yankees kept rolling right along.

Robinson Cano tripled to start a four-run fourth inning and Jorge Posada rounded the bases twice on his solo shot in the sixth, which was changed to a home run after umpires watched the video replay.

Angels 1, Nationals 0

At Anaheim, Calif., Dan Haren pitched two-hit ball through 71/3 innings and the Angels swept past Davey Johnson's new team.

The 68-year-old Johnson took over the Nationals this week, returning as a major league manager for the first time since 2000. Washington had won 13 of 15 going into the series at Anaheim, with most of the wins coming before manager Jim Riggleman resigned.

Mets 16, Tigers 9

At Detroit, Scott Hairston launched a bases-loaded triple and Ronny Paulino contributed four hits as part of another offensive barrage by New York, which beat Detroit.

White Sox 3, Rockies 2

At Denver, A.J. Pierzynski drove in his second run of the game with a sacrifice fly in the ninth inning and Chicago hung on to beat Colorado.

Reds 4, Rays 3

At St. Petersburg, Fla., Ryan Hanigan hit a three-run homer off James Shields, leading Cincinnati to the victory.

Braves 5, Mariners 3

At Seattle, Freddie Freeman knocked around Felix Hernandez for three hits and two RBIs, and Atlanta completed an impressive three-game sweep that included victories over the Mariners' best starting pitchers.

The Braves won for the eighth time in 10 games and picked up their 25th road victory of the season. They handed losses to Hernandez, rookie star Michael Pineda and Erik Bedard during their rare trip to Seattle.

Derek Lowe (4-6) pitched six crisp innings for Atlanta, yielding one run and four hits to earn his first win since May 6 at Philadelphia. The right-hander was 0-3 with a 5.29 ERA in his previous nine starts.

Cardinals 5, Orioles 1

At Baltimore, Chris Carpenter scattered seven hits for his second complete game of the season and Colby Rasmus homered for St. Louis.

Indians 6, Diamondbacks 2

At Phoenix, Carlos Carrasco pitched seven solid innings to lead Cleveland to the victory in the rubber game of the interleague series.

Rangers 3, Astros 2

At Houston, Ian Kinsler homered twice for the first time in almost two years and Colby Lewis had another solid start for the Rangers.

Twins 1, Dodgers 0

At Minneapolis, Scott Baker struck out nine while pitching neatly into the eighth inning and Ben Revere had two hits to help Minnesota get the win.

Baker (6-5) allowed six hits and walked one in 71/3 innings, dropping his ERA to 3.15 as the Twins bounced back from a 15-0 drubbing on Monday night to take two of three in the series.

Blue Jays 2, Pirates 1

At Toronto, Yunel Escobar doubled home the tiebreaking run in the seventh inning and Brandon Morrow struck out 10 to lead Toronto to the victory.

Padres 4, Royals 1

At San Diego, rookie Anthony Rizzo hit a two-run single, Tim Stauffer won consecutive starts for the first time this year and San Diego completed its first sweep this season.

Marlins 3, Athletics 0

At Oakland, Calif., Ricky Nolasco pitched a five-hitter, Hanley Ramirez and Logan Morrison homered and slumping Florida showed signs of life in a win against Oakland.

Nolasco (4-5) overcame a shaky start for his first win in more than a month, which came the last time the Marlins were in the Bay Area against San Francisco. He struck out three and walked two for his fifth career complete game.