Joe Panik scored the go-ahead run in the seventh inning on Aaron Barrett's bases-loaded wild pitch, and the Giants edged the Nationals 3-2 Tuesday night to return to the NL Championship Series.

The wild-card Giants won 3-1 in the best-of-five Division Series by also scoring on a walk and a groundout.