Madison Bumgarner pitched five innings of near-perfect relief and the San Francisco Giants held off the Kansas City Royals 3-2 on Wednesday night in Game 7 of the World Series for their third championship in five seasons.