Question: Who was president when the state where the first caucus is held for each presidential campaign became a state?

full_context: Document 1: United States presidential primary: Delegates to the national convention were usually selected at state conventions whose own delegates were chosen by district conventions. Sometimes they were dominated by intrigue between political bosses who controlled delegates; the national convention was far from democratic or transparent. Progressive Era reformers looked to the primary election as a way to measure popular opinion of candidates, as opposed to the opinion of the bosses. Florida enacted the first presidential primary in 1901. The Wisconsin direct open primary of 1905 was the first to eliminate the caucus and mandate direct selection of national convention delegates. In 1910, Oregon became the first state to establish a presidential preference primary, which requires delegates to the National Convention to support the winner of the primary at the convention. By 1912, twelve states either selected delegates in primaries, used a preferential primary, or both. By 1920 there were 20 states with primaries, but some went back, and from 1936 to 1968, 12 states used them.
Document 2: 2020 United States presidential election: The United States presidential election of 2020, scheduled for Tuesday, November 3, 2020, will be the 59th quadrennial U.S. presidential election. Voters will select presidential electors who in turn will either elect a new president and vice president through the electoral college or reelect the incumbents. The series of presidential primary elections and caucuses are likely to be held during the first six months of 2020. This nominating process is also an indirect election, where voters cast ballots selecting a slate of delegates to a political party's nominating convention, who then in turn elect their party's presidential nominee.
Document 3: 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 4: History of Texas (1845–1860): The Republic of Texas had formed in 1836, after breaking away from Mexico in the Texas Revolution. The following year, an ambassador from Texas approached the United States about the possibility of becoming an American state. Fearing a war with Mexico, which did not recognize Texas independence, the United States declined the offer. In 1844, James K. Polk was elected the United States president after promising to annex Texas. Before he assumed office, the outgoing president, John Tyler, entered negotiations with Texas. On February 26, 1845, six days before Polk took office, the U.S. Congress approved the annexation. The Texas legislature approved annexation in July 1845 and constructed a state constitution. In October, Texas residents approved the annexation and the new constitution, and Texas was officially inducted into the United States on December 29, 1845.
Document 5: Indiana: In order to decrease the threat of Indian raids following the Battle of Tippecanoe, Corydon, a town in the far southern part of Indiana, was named the second capital of the Indiana Territory in May 1813. Two years later, a petition for statehood was approved by the territorial general assembly and sent to Congress. An Enabling Act was passed to provide an election of delegates to write a constitution for Indiana. On June 10, 1816, delegates assembled at Corydon to write the constitution, which was completed in 19 days. President James Madison approved Indiana's admission into the union as the nineteenth state on December 11, 1816. In 1825, the state capital was moved from Corydon to Indianapolis.
Document 6: Minnesota: In 1762 the region became part of Spanish Louisiana until 1802. The portion of the state east of the Mississippi River became part of the United States at the end of the American Revolutionary War, when the Second Treaty of Paris was signed. Land west of the Mississippi River was acquired with the Louisiana Purchase, although a portion of the Red River Valley was disputed until the Treaty of 1818. By the late 1700s, the North West Company had established the post of Fort Charlotte at the Lake Superior end of the Grand Portage, until moving 50 miles northeast to Fort William in 1803. In 1805, Zebulon Pike bargained with Native Americans to acquire land at the confluence of the Minnesota and Mississippi rivers. The construction of Fort Snelling followed between 1819 and 1825. Its soldiers built a grist mill and a sawmill at Saint Anthony Falls, the first of the water-powered industries around which the city of Minneapolis later grew. Meanwhile, squatters, government officials, and tourists had settled near the fort. In 1839, the army forced them to move downriver and they settled in the area that became St. Paul. Minnesota Territory was formed on March 3, 1849. The first territorial legislature (held September 2, 1849) was dominated by men from New England or of New England ancestry. Thousands of people had come to build farms and cut timber, and Minnesota became the 32nd U.S. state on May 11, 1858. The founding population was so overwhelmingly of New England origins that the state was dubbed "the New England of the West".
Document 7: United States presidential primary: February 1: Iowa caucus (both parties) February 9: New Hampshire primary (both parties) February 20: Nevada Democratic caucuses and South Carolina Republican primary February 23: Nevada Republican caucuses February 27: South Carolina Democratic primary March 1: Super Tuesday: Primaries / caucuses for both parties in several states
Document 8: Interregional Primary Plan: The Interregional Primary Plan is a proposed reform to the United States primary calendar supported by Representative Sandy Levin and Senator Bill Nelson, both Democrats. The plan would break the country into six regions. From those regions, one subregion - either a single state or a group of smaller states - would vote on each primary date (e.g., all A states,) with the entire country having held its primaries after the sixth set of primaries votes. Each state would vote first once every twenty-four years, with the first set of primaries determined by lottery and cycled thereafter.
Document 9: Des Moines, Iowa: On September 22, 1851, Des Moines was incorporated as a city; the charter was approved by voters on October 18. In 1857, the name ``Fort Des Moines ''was shortened to`` Des Moines'', and it was designated as the second state capital, previously at Iowa City. Growth was slow during the Civil War period, but the city exploded in size and importance after a railroad link was completed in 1866.
Document 10: 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 11: Iowa: Almost immediately after achieving territorial status, a clamor arose for statehood. On December 28, 1846, Iowa became the 29th state in the Union when President James K. Polk signed Iowa's admission bill into law. Once admitted to the Union, the state's boundary issues resolved, and most of its land purchased from the Indians, Iowa set its direction to development and organized campaigns for settlers and investors, boasting the young frontier state's rich farmlands, fine citizens, free and open society, and good government.
Document 12: 2020 United States presidential election: The United States presidential election of 2020, scheduled for Tuesday, November 3, 2020, will be the 59th quadrennial U.S. presidential election. Voters will select presidential electors who in turn will either elect a new president and vice president through the electoral college or re-elect the incumbents. The series of presidential primary elections and caucuses are likely to be held during the first six months of 2020. This nominating process is also an indirect election, where voters cast ballots selecting a slate of delegates to a political party's nominating convention, who then in turn elect their party's presidential nominee.
Document 13: 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 14: Ohio: On February 19, 1803, U.S. President Thomas Jefferson signed an act of Congress that approved Ohio's boundaries and constitution. However, Congress had never passed a resolution formally admitting Ohio as the 17th state. The current custom of Congress declaring an official date of statehood did not begin until 1812, with Louisiana's admission as the 18th state. Although no formal resolution of admission was required, when the oversight was discovered in 1953, Ohio congressman George H. Bender introduced a bill in Congress to admit Ohio to the Union retroactive to March 1, 1803, the date on which the Ohio General Assembly first convened. At a special session at the old state capital in Chillicothe, the Ohio state legislature approved a new petition for statehood that was delivered to Washington, D.C. on horseback. On August 7, 1953 (the year of Ohio's 150th anniversary), President Eisenhower signed a congressional joint resolution that officially declared March 1, 1803, the date of Ohio's admittance into the Union.
Document 15: History of Idaho: When President Benjamin Harrison signed the law admitting Idaho as a U.S. state on July 3, 1890, the population was 88,548. George L. Shoup became the state's first governor, but resigned after only a few weeks in office to take a seat in the United States Senate.
ground_truth: President James K. Polk
sub_queries: where is the first caucus held for each presidential campaign Answer: Iowa
who was president when Iowa became a state Answer: President James K. Polk