qnli question: Which Democratic candidate was the first to win 40% of the vote in Alaska since 1964? sentence: In 2008, Republican John McCain defeated Democrat Barack Obama in Alaska, 59.49% to 37.83%.