With former President George W. Bush watching from a front-row seat, winner Colby Lewis allowed two runs and five hits in 7 2-3 innings. Neftali Feliz pitched the ninth for the save, completing a five-hitter.
Down 4-0, San Francisco came back on solo home runs by Cody Ross in the seventh and Andres Torres in the eighth.
Loser Jonathan Sanchez gave up four runs, six hits and three walks in 4 2-3 innings.
Madison Bumgarner starts for the Giants against Tommy Hunter in Game 4 on Sunday night.