Question: What year did Bill Clinton lose the state where the candidate who went on to win the 2004 South Carolina democratic primary was a senator?

full_context: Document 1: 2004 United States presidential election: In September 2003, retired four-star general Wesley Clark announced his intention to run in the presidential primary election for the Democratic Party nomination. His campaign focused on themes of leadership and patriotism; early campaign ads relied heavily on biography. His late start left him with relatively few detailed policy proposals. This weakness was apparent in his first few debates, although he soon presented a range of position papers, including a major tax-relief plan. Nevertheless, the Democrats did not flock to support his campaign.
Document 2: 2016 United States presidential election in North Carolina: The 2016 United States presidential election in North Carolina was won by Republican nominee Donald Trump on November 8, 2016, as part of the 2016 general election. North Carolina voters chose 15 electors to represent them in the Electoral College via a popular vote.
Document 3: 2004 United States presidential election: By the January 2004 Iowa caucuses, the field had dwindled down to nine candidates, as Bob Graham had dropped out of the race. Howard Dean was a strong front-runner. However, the Iowa caucuses yielded unexpectedly strong results for Democratic candidates John Kerry, who earned 38% of the state's delegates and John Edwards, who took 32%. Former front-runner Howard Dean slipped to 18% and third place, and Richard Gephardt finished fourth (11%). In the days leading up to the Iowa vote, there was much negative campaigning between the Dean and Gephardt camps.
Document 4: 2004 United States presidential election: On July 6, John Kerry selected John Edwards as his running mate, shortly before the 2004 Democratic National Convention in Boston, held later that month. Days before Kerry announced Edwards as his running mate, Kerry gave a short list of three candidates: Sen John Edwards, Rep Dick Gephardt, and Gov Tom Vilsack. Heading into the convention, the Kerry/Edwards ticket unveiled their new slogan—a promise to make America "stronger at home and more respected in the world." Kerry made his Vietnam War experience the prominent theme of the convention. In accepting the nomination, he began his speech with, "I'm John Kerry and I'm reporting for duty." He later delivered what may have been the speech's most memorable line when he said, "the future doesn't belong to fear, it belongs to freedom", a quote that later appeared in a Kerry/Edwards television advertisement.
Document 5: 2004 United States presidential election: The morning after the election, the major candidates were neck and neck. It was clear that the result in Ohio, along with two other states who had still not declared (New Mexico and Iowa), would decide the winner. Bush had established a lead of around 130,000 votes but the Democrats pointed to provisional ballots that had yet to be counted, initially reported to number as high as 200,000. Bush had preliminary leads of less than 5% of the vote in only four states, but if Iowa, Nevada and New Mexico had all eventually gone to Kerry, a win for Bush in Ohio would have created a 269–269 tie in the Electoral College. The result of an electoral tie would cause the election to be decided in the House of Representatives with each state casting one vote, regardless of population. Such a scenario would almost certainly have resulted in a victory for Bush, as Republicans controlled more House delegations. Therefore, the outcome of the election hinged solely on the result in Ohio, regardless of the final totals elsewhere. In the afternoon Ohio's Secretary of State, Ken Blackwell, announced that it was statistically impossible for the Democrats to make up enough valid votes in the provisional ballots to win. At the time provisional ballots were reported as numbering 140,000 (and later estimated to be only 135,000). Faced with this announcement, John Kerry conceded defeat. Had Kerry won Ohio, he would have won the election despite losing the national popular vote by over 3 million votes, a complete reversal of the 2000 election when Bush won the presidency despite losing the popular vote to Al Gore by over 500,000 votes.
Document 6: North Carolina: As in the rest of the former Confederacy, North Carolina had become a one-party state, dominated by the Democratic Party. Impoverished by the Civil War, the state continued with an economy based on tobacco, cotton and agriculture. Towns and cities remained few in the east. A major industrial base emerged in the late 19th century in the western counties of the Piedmont, based on cotton mills established at the fall line. Railroads were built to connect the new industrializing cities. The state was the site of the first successful controlled, powered and sustained heavier-than-air flight, by the Wright brothers, near Kitty Hawk on December 17, 1903. In the first half of the 20th century, many African Americans left the state to go North for better opportunities, in the Great Migration. Their departure changed the demographic characteristics of many areas.
Document 7: 2004 United States presidential election: Kerry would later state that "the widespread irregularities make it impossible to know for certain that the [Ohio] outcome reflected the will of the voters." In the same article, Democratic National Committee Chairman Howard Dean said "I'm not confident that the election in Ohio was fairly decided... We know that there was substantial voter suppression, and the machines were not reliable. It should not be a surprise that the Republicans are willing to do things that are unethical to manipulate elections. That's what we suspect has happened."
Document 8: 2004 United States presidential election: The following week, John Edwards won the South Carolina primary and finished a strong second in Oklahoma to Clark. Lieberman dropped out of the campaign the following day. Kerry dominated throughout February and his support quickly snowballed as he won caucuses and primaries, taking in a string of wins in Michigan, Washington, Maine, Tennessee, Washington, D.C., Nevada, Wisconsin, Utah, Hawaii, and Idaho. Clark and Dean dropped out during this time, leaving Edwards as the only real threat to Kerry. Kucinich and Sharpton continued to run despite poor results at the polls.
Document 9: 2004 United States presidential election: By summer of 2003, Howard Dean had become the apparent front runner for the Democratic nomination, performing strongly in most polls and leading the pack with the largest campaign war chest. Dean's strength as a fund raiser was attributed mainly to his embrace of the Internet for campaigning. The majority of his donations came from individual supporters, who became known as Deanites, or, more commonly, Deaniacs. Generally regarded as a pragmatic centrist during his time as governor, Dean emerged during his presidential campaign as a left-wing populist, denouncing the policies of the Bush administration (especially the 2003 invasion of Iraq) as well as fellow Democrats, who, in his view, failed to strongly oppose them. Senator Lieberman, a liberal on domestic issues but a hawk on the War on Terror, failed to gain traction with liberal Democratic primary voters.
Document 10: Oklahoma: After the 1948 election, the state turned firmly Republican. Although registered Republicans were a minority in the state until 2015, starting in 1952, Oklahoma has been carried by Republican presidential candidates in all but one election (1964). This is not to say that every election has been a landslide for Republicans: Jimmy Carter lost the state by less than 1.5% in 1976, while Michael Dukakis and Bill Clinton both won 40% or more of the state's popular vote in 1988 and 1996 respectively. Al Gore in 2000, though, was the last Democrat to even win any counties in the state. Oklahoma was the only state where Barack Obama failed to carry any of its counties in both 2008 and 2012.
Document 11: North Carolina: In 2012, the state elected a Republican Governor (Pat McCrory) and Lieutenant Governor (Dan Forest) for the first time in more than two decades, while also giving the Republicans veto-proof majorities in both the State House of Representatives and the State Senate. Several U.S. House of Representatives seats also flipped control, with the Republicans holding nine seats to the Democrats' four. In the 2014 mid-term elections, Republican David Rouzer won the state's Seventh Congressional District seat, increasing the congressional delegation party split to 10-3 in favor of the GOP.
Document 12: 2004 United States presidential election: In sheer numbers, Kerry had fewer endorsements than Howard Dean, who was far ahead in the superdelegate race going into the Iowa caucuses in January 2004, although Kerry led the endorsement race in Iowa, New Hampshire, Arizona, South Carolina, New Mexico and Nevada. Kerry's main perceived weakness was in his neighboring state of New Hampshire and nearly all national polls. Most other states did not have updated polling numbers to give an accurate placing for the Kerry campaign before Iowa. Heading into the primaries, Kerry's campaign was largely seen as in trouble, particularly after he fired campaign manager Jim Jordan. The key factors enabling it to survive were when fellow Massachusetts Senator Ted Kennedy assigned Mary Beth Cahill to be the campaign manager, as well as Kerry's mortgaging his own home to lend the money to his campaign (while his wife was a billionaire, campaign finance rules prohibited using one's personal fortune). He also brought on the "magical" Michael Whouley who would be credited with helping bring home the Iowa victory the same as he did in New Hampshire for Al Gore in 2000 against Bill Bradley.
Document 13: 2004 United States presidential election: In March's Super Tuesday, Kerry won decisive victories in the California, Connecticut, Georgia, Maryland, Massachusetts, New York, Ohio, and Rhode Island primaries and the Minnesota caucuses. Dean, despite having withdrawn from the race two weeks earlier, won his home state of Vermont. Edwards finished only slightly behind Kerry in Georgia, but, failing to win a single state other than South Carolina, chose to withdraw from the presidential race. Sharpton followed suit a couple weeks later. Kuninch did not leave the race officially until July.
Document 14: North Carolina: North Carolina's party loyalties have undergone a series of important shifts in the last few years: While the 2010 midterms saw Tar Heel voters elect a bicameral Republican majority legislature for the first time in over a century, North Carolina has also become a Southern swing state in presidential races. Since Southern Democrat Jimmy Carter's comfortable victory in the state in 1976, the state had consistently leaned Republican in presidential elections until Democrat Barack Obama narrowly won the state in 2008. In the 1990s, Democrat Bill Clinton came within a point of winning the state in 1992 and also only narrowly lost the state in 1996. In the early 2000s, Republican George W. Bush easily won the state by over 12 points, but by 2008, demographic shifts, population growth, and increased liberalization in heavily populated areas such as the Research Triangle, Charlotte, Greensboro, Winston-Salem, Fayetteville, and Asheville, propelled Barack Obama to victory in North Carolina, the first Democrat to win the state since 1976. In 2012, North Carolina was again considered a competitive swing state, with the Democrats even holding their 2012 Democratic National Convention in Charlotte. However, Republican Mitt Romney ultimately eked out a 2-point win in North Carolina, the only 2012 swing state that Obama lost, and one of only two states (along with Indiana) to flip from Obama in 2008 to the GOP in 2012.
Document 15: John Kerry: In the 2004 Democratic presidential primaries, John Kerry defeated several Democratic rivals, including Sen. John Edwards (D-North Carolina.), former Vermont Governor Howard Dean and retired Army General Wesley Clark. His victory in the Iowa caucuses is widely believed to be the tipping point where Kerry revived his sagging campaign in New Hampshire and the February 3, 2004, primary states like Arizona, South Carolina and New Mexico. Kerry then went on to win landslide victories in Nevada and Wisconsin. Kerry thus won the Democratic nomination to run for President of the United States against incumbent George W. Bush. On July 6, 2004, he announced his selection of John Edwards as his running mate. Democratic strategist Bob Shrum, who was Kerry's 2004 campaign adviser, wrote an article in Time magazine claiming that after the election, Kerry had said that he wished he'd never picked Edwards, and that the two have since stopped speaking to each other. In a subsequent appearance on ABC's This Week, Kerry refused to respond to Shrum's allegation, calling it a "ridiculous waste of time."
ground_truth: 1996
sub_queries: Which candidate went on to win the South Carolina primary? Answer: John Edwards
Where was John Edwards a senator? Answer: North Carolina
What year did Bill Clinton lose North Carolina ? Answer: 1996