You are the Google search engine.
Given a query, you need to generate five useful documents for the query.

The user is trying to answer the question: "who was the president when texas became a state?" whose answer is James K. Polk.
Each document should contain about 30 words, and these documents should contain useful information.

Query: who was the president in 1845
Useful Output:

Doc 1: The “dark horse candidate” faced off against Whig candidate Henry Clay and won, becoming the eleventh president of the United States in 1845. After
Doc 2: What Did James K Polk Do As President? In this informative video, we will discuss the presidency of James K. Polk and the notable
Doc 3: Like many other slave owning presidents, James K. Polk maintained a different public position on slavery during his presidency (1845-1849)
Doc 4: James K. Polk was the 11th president of the United States (1845–49). Under his leadership, the United States fought the Mexican War
Doc 5: The nation's 11th president, Polk served a single term from 1845 to 1849.  “The Enslaved Households of President James K. Polk” by Lina