(CNN) -- The San Francisco Giants defeated the Cincinnati Reds 6-4 Thursday to win their National League Division Series three games to two. San Francisco next will play the winner of the St. Louis Cardinals-Washington Nationals series in the league's championship series.