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