Wilmer Flores delivered a go-ahead sacrifice fly in the 11th inning, Evan Longoria had a grand slam among his three hits and the San Francisco Giants averted a series sweep by beating the Colorado Rockies 9-8 on Sunday. Elehuris Montero homered for the third time in three games for Colorado. Randal Grichuk and Brian Serven also homered.