Question: Who was president when the state where Julien Dubuque died became a state?

full_context: Document 1: Joe Dubuque: Joe Dubuque (born May 17, 1982) is an American amateur wrestler commonly referred to as "The Champ". He was originally from New Jersey.
Document 2: 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.
Document 3: Detroit: On the shores of the strait, in 1701, the French officer Antoine de la Mothe Cadillac, along with fifty-one French people and French Canadians, founded a settlement called Fort Pontchartrain du Détroit, naming it after Louis Phélypeaux, comte de Pontchartrain, Minister of Marine under Louis XIV. France offered free land to colonists to attract families to Detroit; when it reached a total population of 800 in 1765, it was the largest city between Montreal and New Orleans, both also French settlements. By 1773, the population of Detroit was 1,400. By 1778, its population was up to 2,144 and it was the third-largest city in the Province of Quebec.
Document 4: Montana: Under Territorial Governor Thomas Meagher, Montanans held a constitutional convention in 1866 in a failed bid for statehood. A second constitutional convention was held in Helena in 1884 that produced a constitution ratified 3:1 by Montana citizens in November 1884. For political reasons, Congress did not approve Montana statehood until 1889. Congress approved Montana statehood in February 1889 and President Grover Cleveland signed an omnibus bill granting statehood to Montana, North Dakota, South Dakota and Washington once the appropriate state constitutions were crafted. In July 1889, Montanans convened their third constitutional convention and produced a constitution acceptable by the people and the federal government. On November 8, 1889 President Benjamin Harrison proclaimed Montana the forty-first state in the union. The first state governor was Joseph K. Toole. In the 1880s, Helena (the current state capital) had more millionaires per capita than any other United States city.
Document 5: 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 6: 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 7: Jacques Cartier: Jacques Cartier (French pronunciation: ​ (ʒak kaʁtje); Breton: Jakez Karter; December 31, 1491 -- September 1, 1557) was a Breton explorer who claimed what is now Canada for France. Jacques Cartier was the first European to describe and map the Gulf of Saint Lawrence and the shores of the Saint Lawrence River, which he named ``The Country of Canadas '', after the Iroquois names for the two big settlements he saw at Stadacona (Quebec City) and at Hochelaga (Montreal Island).
Document 8: French colonization of the Americas: Samuel de Champlain founded Quebec (1608) and explored the Great Lakes. In 1634, Jean Nicolet founded La Baye des Puants (present - day Green Bay), which is one of the oldest permanent European settlements in America. In 1634, Sieur de Laviolette founded Trois - Rivières. In 1642, Paul de Chomedey, Sieur de Maisonneuve, founded Fort Ville - Marie which is now known as Montreal. Louis Jolliet and Jacques Marquette founded Sault Sainte Marie (1668) and Saint Ignace (1671) and explored the Mississippi River. At the end of the 17th century, René - Robert Cavelier, Sieur de La Salle established a network of forts going from the Gulf of Mexico to the Great Lakes and the Saint Lawrence River. Fort Saint Louis was established in Texas in 1685, but was gone by 1688. Antoine de la Mothe Cadillac founded Fort Pontchartrain du Détroit (modern - day Detroit) in 1701 and Jean - Baptiste Le Moyne, Sieur de Bienville founded La Nouvelle Orléans (New Orleans) in 1718. Pierre Le Moyne d'Iberville founded Baton Rouge in 1719.
Document 9: Julien Dubuque: Julien Dubuque (January 1762 – 24 March 1810) was a French Canadian of Norman origins from the area of Champlain, Quebec who arrived near what now is known as Dubuque, Iowa – which was named after him. He was one of the first European men to settle in the area. He initially received permission from the Meskwaki Indian tribe to mine the lead in 1788. Subsequently the Spanish confirmed that by giving him a land grant in 1796.
Document 10: 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 11: History of Canada: In 1604, a North American fur trade monopoly was granted to Pierre Du Gua, Sieur de Mons. The fur trade became one of the main economic ventures in North America. Du Gua led his first colonization expedition to an island located near the mouth of the St. Croix River. Among his lieutenants was a geographer named Samuel de Champlain, who promptly carried out a major exploration of the northeastern coastline of what is now the United States. In the spring of 1605, under Samuel de Champlain, the new St. Croix settlement was moved to Port Royal (today's Annapolis Royal, Nova Scotia). Samuel de Champlain also landed at Saint John Harbour on June 24, 1604 (the feast of St. John the Baptist) and is where the city of Saint John, New Brunswick and the Saint John River gets its name.
Document 12: 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 13: 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 14: History of Quebec City: Quebec City was founded by the French explorer and navigator Samuel de Champlain in 1608, commencing a string of French colonies along the St. Lawrence River, creating a region named ``le Canada ''. Prior to the arrival of the French, the location that would become Quebec City was the home of a small Iroquois village called`` Stadacona''. Jacques Cartier, a French explorer, was the first European to ascend the St. Lawrence Gulf, claiming ``le Canada ''for France (and the coming addition of a newly founded`` l'Acadi'' -- known today as the Province of Nova Scotia) to create a dominion known as ``New France ''. Jacques Cartier and his crew spent a harsh winter near Stadacona during his second voyage in 1535. The word`` Kebec'' is an Algonquin word meaning ``where the river narrows. ''By the time Champlain came to this site, the Iroquois population had disappeared and been replaced by Innu and Algonquins. Champlain and his crew built a wooden fort which they called`` l'habitation'' within only a few days of their arrival. This early fort and trading post exists today as a historic site in Old Quebec. Quebec City's maritime position and the presence of cliffs overlooking the St. Lawrence River made it an important location for economic exchanges between the Amerindians and the French In 1620, Champlain built Fort Saint - Louis on the top of Cape Diamond, near the present location of the Chateau Frontenac in the Upper Town. Quebec City's 400th anniversary was celebrated in 2008 and it is the oldest city in North America that has a French - speaking community.
Document 15: 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".
ground_truth: President James K. Polk
sub_queries: In what city did Julien Dubuque die? Answer: Iowa
who was president when Iowa became a state Answer: President James K. Polk