The Pittsburgh Pirates stormed back from four runs down in the ninth inning against the San Francisco Giants on Tuesday night and came through with a walk-off win in the 10th.