SAN FRANCISCO -- Jake Lamb hit a tying homer with two outs in the ninth inning and doubled home an insurance run in the 11th, rallying the Arizona Diamondbacks past the San Francisco Giants 9-7 on Monday night.