Question: What year did the voters of the state that Raleigh is a capital of once again vote for the party that dominated South Carolina's state legislature?

full_context: Document 1: 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 2: Raleigh, North Carolina: Raleigh is located in the northeast central region of North Carolina, where the Piedmont and Atlantic Coastal Plain regions meet. This area is known as the "fall line" because it marks the elevation inland at which waterfalls begin to appear in creeks and rivers. As a result, most of Raleigh features gently rolling hills that slope eastward toward the state's flat coastal plain. Its central Piedmont location situates Raleigh about two hours west of Atlantic Beach, North Carolina, by car and four hours east of the Great Smoky Mountains. The city is 155 miles (249 km) south of Richmond, Virginia, 263 miles (423 km) south of Washington, D.C., and 150 miles (240 km) northeast of Charlotte, North Carolina.
Document 3: 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 4: 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 5: Charleston, South Carolina: Investment in the city continued. The William Enston Home, a planned community for the city's aged and infirm, was built in 1889. An elaborate public building, the United States Post Office and Courthouse, was completed by the federal government in 1896 in the heart of the city. The Democrat-dominated state legislature passed a new constitution in 1895 that disfranchised blacks, effectively excluding them entirely from the political process, a second-class status that was maintained for more than six decades in a state that was majority black until about 1930.
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: Charleston, South Carolina: After the defeat of the Confederacy, federal forces remained in Charleston during the city's reconstruction. The war had shattered the prosperity of the antebellum city. Freed slaves were faced with poverty and discrimination, but a large community of free people of color had been well-established in the city before the war and became the leaders of the postwar Republican Party and its legislators. Men who had been free people of color before the war comprised 26% of those elected to state and federal office in South Carolina from 1868 to 1876.
Document 8: 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 9: Raleigh, North Carolina: Raleigh is an early example in the United States of a planned city, chosen as the site of the state capital in 1788 and incorporated in 1792 as such. The city was originally laid out in a grid pattern with the North Carolina State Capitol in Union Square at the center. In the United States Civil War the city was spared from any significant battle, only falling in the closing days of the war, though it did not escape the economic hardships that plagued the rest of the American South during the Reconstruction Era. The twentieth century saw the opening of the Research Triangle Park in 1959, and with the jobs it created the region and city saw a large influx of population, making it one of the fastest growing communities in the United States by the early 21st century.
Document 10: Charleston, South Carolina: In 1875, blacks made up 57% of the city's population, and 73% of Charleston County. With leadership by members of the antebellum free black community, historian Melinda Meeks Hennessy described the community as "unique" in being able to defend themselves without provoking "massive white retaliation", as occurred in numerous other areas during Reconstruction. In the 1876 election cycle, two major riots between black Republicans and white Democrats occurred in the city, in September and the day after the election in November, as well as a violent incident in Cainhoy at an October joint discussion meeting.
Document 11: Raleigh, North Carolina: Raleigh (/ˈrɑːli/; RAH-lee) is the capital of the state of North Carolina as well as the seat of Wake County in the United States. It is the second most populous city in North Carolina, after Charlotte. Raleigh is known as the "City of Oaks" for its many oak trees, which line the streets in the heart of the city. The city covers a land area of 142.8 square miles (370 km2). The U.S. Census Bureau estimated the city's population to be 439,896 as of July 1, 2014. It is also one of the fastest-growing cities in the country. The city of Raleigh is named after Sir Walter Raleigh, who established the lost Roanoke Colony in present-day Dare County.
Document 12: North Carolina: In 1584, Elizabeth I granted a charter to Sir Walter Raleigh, for whom the state capital is named, for land in present-day North Carolina (then part of the territory of Virginia). It was the second American territory which the English attempted to colonize. Raleigh established two colonies on the coast in the late 1580s, but both failed. The fate of the "Lost Colony" of Roanoke Island remains one of the most widely debated mysteries of American history. Virginia Dare, the first English child to be born in North America, was born on Roanoke Island on August 18, 1587; Dare County is named for her.
Document 13: Raleigh, North Carolina: Raleigh is located in the northeast central region of North Carolina, where the Piedmont and Atlantic Coastal Plain regions meet. This area is known as the ``fall line ''because it marks the elevation inland at which waterfalls begin to appear in creeks and rivers. As a result, most of Raleigh features gently rolling hills that slope eastward toward the state's flat coastal plain. Its central Piedmont location situates Raleigh about two hours west of Atlantic Beach, North Carolina, by car and four hours east of the Great Smoky Mountains. The city is 155 miles (249 km) south of Richmond, Virginia, 263 miles (423 km) south of Washington, D.C., and 150 miles (240 km) northeast of Charlotte, North Carolina.
Document 14: North Carolina: In 1899 the state legislature passed a new constitution, with requirements for poll taxes and literacy tests for voter registration which disfranchised most black Americans in the state. Exclusion from voting had wide effects: it meant that black Americans could not serve on juries or in any local office. After a decade of white supremacy, many people forgot that North Carolina had ever had thriving middle-class black Americans. Black citizens had no political voice in the state until after the federal Civil Rights Act of 1964 and Voting Rights Act of 1965 were passed to enforce their constitutional rights. It was not until 1992 that another African American was elected as a US Representative from North Carolina.
Document 15: Charleston, South Carolina: In Charleston, the African American population increased as freedmen moved from rural areas to the major city: from 17,000 in 1860 to over 27,000 in 1880. Historian Eric Foner noted that blacks were glad to be relieved of the many regulations of slavery and to operate outside of white surveillance. Among other changes, most blacks quickly left the Southern Baptist Church, setting up their own black Baptist congregations or joining new African Methodist Episcopal Church and AME Zion churches, both independent black denominations first established in the North. Freedmen "acquired dogs, guns, and liquor (all barred to them under slavery), and refused to yield the sidewalks to whites".
ground_truth: 2008
sub_queries: What state is Raleigh the capital of? Answer: North Carolina
Which party dominated South Carolina's state legislature? Answer: Democrat
What year did North Carolina voters once again vote for a #2 ? Answer: 2008