PHOENIX Brandon Belt hit a two-run homer with two out in the 10th inning, and the San Francisco Giants beat the Arizona Diamondbacks 4-3 on Wednesday night to stop a four-game slide.