PITTSBURGH (AP) -- Rickie Weeks hit a tying two-run triple and scored the go-ahead run on Aramis Ramirez's single, helping the surging Milwaukee Brewers rally for a 9-7 victory over the Pittsburgh Pirates on Thursday.
The Brewers have won five straight, eight of nine and 15 of 19 to climb into the playoff race. They remained 2 1/2 games back of St. Louis for the second NL wild-card slot.
Milwaukee trailed 7-4 before it rallied for four runs in the eighth inning.
Carlos Gomez and Jean Segura opened the inning with consecutive singles off Chad Qualls. Norichika Aoki doubled in a run with one out and Weeks greeted Chris Resop (1-4) with a triple to the 410-foot mark in left-center.
Ryan Braun was intentionally walked before Ramirez bounced a single into center field to give Milwaukee an 8-7 lead.