Title: 2012 New York state elections
Content:  York history. While 33 Democrats prevailed on Election Day, the Democratic Party did not regain control of the Senate. On December 4, 2012, Senate Republicans announced a power-sharing deal with the five-member Independent Democratic Conference, which had defected from the Senate Democratic leadership in 2011. Under that agreement, Republican Leader Dean Skelos and IDC Leader Jeff Klein would alternate every two weeks as Temporary President of the Senate. The agreement allowed the Republicans and the IDC to jointly control the Senate in spite of the Democrats' 33-30 numerical advantage. In addition, Democratic Senator-elect Simcha Felder stated that he would caucus with the Republicans.
Title: 2012 Florida House of Representatives election
Content:  The elections for the Florida House of Representatives was held on Tuesday, November 6, 2012 to elect all the 120 seats in the Florida House of Representatives. The day also coincided with the 2012 United States presidential election, 2012 United States House of Representatives elections, and 2012 United States Senate election in Florida. The result was gain of 8 seats by the Democrats while Republicans maintained their control of the State House. The resulting victors of the election took their seats for the 115th session which began in 2013.
Title: 2012 United States Senate elections
Content:  The 2012 United States Senate elections were held on November 6, 2012, with 33 of the 100 seats in the Senate being contested in regular elections whose winners would serve six-year terms beginning January 3, 2013, with the 113th Congress. Democrats had 21 seats up for election, plus 1 Independent and 1 Independent Democrat, while the Republicans had only 10 seats up for election. The Democrats gained Republican-held seats in Massachusetts and Indiana and one from an Independent Democrat in Connecticut, leaving them with a total of 53 seats. Additionally, they held open seats in Hawaii, New Mexico, North Dakota, Virginia, and Wisconsin. The Republicans, despite losing two of their seats, picked up an open seat in Nebraska and retained open seats in Arizona and Texas, ending with a total 
Title: 2012 United States elections
Content:  The 2012 United States elections took place on November 6, 2012. Democratic President Barack Obama won election to a second term, though the Republican Party retained control of the House of Representatives. As of 2020, this is the most recent election cycle in which neither the presidency nor a chamber of Congress changed partisan control. Obama defeated Republican nominee Mitt Romney to win a second term, taking 51.1 percent of the popular vote and 332 of the 538 electoral votes. Romney defeated Rick Santorum, Newt Gingrich, and several other candidates to win his party's nomination in the 2012 Republican primaries. Democrats won a net gain of two Senate seats, retaining control of the chamber. In the first election held in the House of Representatives since the round of redistricting following the 2010 United States Census, Democrats picked up eight seats but failed to gain a 
Title: 2012 United States elections
Content:  Bold indicates a change in control. Note that not all states held gubernatorial, state legislative, and United States Senate elections in 2012.
Title: United States
Content:  Leadership in the House includes Speaker of the House Nancy Pelosi, Majority Leader Steny Hoyer, and Minority Leader Kevin McCarthy. In the 117th United States Congress, the House of Representatives and the Senate are narrowly controlled by the Democratic Party. The Senate consists of 50 Republicans and 48 Democrats with two Independents who caucus with the Democrats, with Vice President Harris, a Democrat, able to break ties. The House consists of 222 Democrats and 211 Republicans. Of state governors, there are 27 Republicans and 23 Democrats. Among the D.C. mayor and the five territorial governors, there are three Democrats, one Republican, and one New Progressive.
Title: Appalachia
Content:  Party control of the U.S. House of Representatives and six additional U.S. Senate seats (including John Boozman in Arkansas, Mark Kirk in Illinois, and Dan Coats in Indiana). The Arkansas, Illinois, Indiana, Ohio, Tennessee, and West Virginia House delegations flipped from majority Democratic to majority Republican. In the 2012 presidential election, Obama lost West Virginia, Kentucky, Tennessee, Missouri, and Arkansas again, the House delegations of Arkansas and Oklahoma became exclusively Republican, and despite a net loss in House seats nationally, Republicans gained seats in western North Carolina, north Georgia, central Kentucky, and East Texas. In the 2014 midterms, the West 
Title: 2012 United States elections
Content:  Many states across the nation held elections for their state legislatures. Ten chambers shifted party control, with seven turning Democratic while three(not including the de facto only control in the WA senate) turned Republican. Republicans had gained many chambers in the 2010 mid-term elections, and this was seen as a modest rebalancing. The Colorado House, Maine Legislature, Minnesota Legislature and New Hampshire House had all flipped to Republican rule in 2010 elections, only to flip back to Democratic control in 2012. The Oregon House regained the democratic majority that it had lost in 2010 elections, which produced a 30-30 party split. The transition in the Wisconsin Senate was notable since it undid a brief period of Democratic control following contentious recall efforts in 2011 and earlier in 2012. The Arkansas chambers had been under Democratic control since the end of the Reconstruction Era.
Title: 2012 United States Senate election in Rhode Island
Content:  The 2012 United States Senate election in Rhode Island was on November 6, 2012, alongside the presidential election, elections to the United States House of Representatives, and various state and local elections. Incumbent Democratic Senator Sheldon Whitehouse was reelected to a second term in a landslide by a 30% margin of 65% - 35%.
Title: Jeffrey D. Klein
Content:  Democrats' momentous victory, on December 4, 2012, Klein and the Republican Leadership announced a power-sharing agreement between the IDC and the G.O.P. in order to govern the Senate in a bipartisan coalition. Under their power-sharing arrangement, the IDC and the Senate Republicans jointly controlled the Senate legislative calendar (determining what bills would reach the Senate floor), made assignments to Senate committees, decided appointments to government boards, and negotiated the state budget. Sens. Klein and Skelos also agreed that the title of Senate President would shift back and forth between the two of them every two weeks. Klein was a prime sponsor of the 2013 New York Secure Ammunition and Firearms Enforcement Act 

Question: who controlled the house and the senate in 2012?
Answer: Republican.
Democratic.