Wilmer Flores drew a bases-loaded walk in the eighth from Evan Justice to bring home the go-ahead run after Mike Yastrzemski hit a tying RBI single that inning, and the San Francisco Giants came back twice to beat the Colorado Rockies 9-8 on Friday night.