The Giants scored four runs in the ninth inning and had the tying run at the plate, but the late surge wasn't enough to overcome a Nationals team that hit four home runs.