Brandon Crawford hit a game-ending RBI single, and the San Francisco Giants rallied from an early 3-0 deficit to beat the Arizona Diamondbacks 4-3 on Wednesday. Wilmer Flores tied the game in the eighth with a pinch-hit homer. Brandon Belt started the rally with a solo homer in the seventh as the Giants took two of three from the D-backs and won their first series since June 17-19 at Pittsburgh.