SAN FRANCISCO -- Gerrit Cole struck out a nine to win his third straight start, Neil Walker hit a tiebreaking two-run double in the fifth after a pair of called strikeouts, and the Pittsburgh Pirates beat the San Francisco Giants 4-3 on Monday night.