Hector Sanchez singled home the winning run with two outs in the 12th inning, and the San Francisco Giants beat the Los Angeles Dodgers 3-2 on Tuesday night after Brandon Belt's tying double in the ninth.