Matt Duffy smacked a two-run triple as part of the Giants' five-run sixth inning to help San Francisco come from behind to beat the Philadelphia Phillies, 8-5, Saturday night at AT&T Park.