Question: The Territory of Florida was ceded to the United states as part of a treaty between which two countries ?

full_context: Document 1: Mexican Cession: The Mexican Cession of 1848 is a historical name in the United States for the region of the modern day southwestern United States that Mexico ceded to the U.S. in the Treaty of Guadalupe Hidalgo in 1848. It had not been part of the areas east of the Rio Grande which had been claimed by the Republic of Texas, though the Texas annexation resolution two years earlier had not specified the southern and western boundary of Texas. The Mexican Cession (529,000 sq. miles) was the third largest acquisition of territory in US history. The largest was the Louisiana Purchase, with some 827,000 sq. miles, followed by the acquisition of Alaska (about 586,000 sq. miles).
Document 2: Idaho Territory: The Territory of Idaho was an organized incorporated territory of the United States that existed from March 3, 1863, until July 3, 1890, when the final extent of the territory was admitted to the Union as Idaho.
Document 3: Florida Board of Control: The Florida Board of Control (1905-1965) was the statewide governing body for the State University System of Florida, which included all public universities in the state of Florida. It was replaced by the Florida Board of Regents in 1965.
Document 4: Northwest Territory: The post-American Revolutionary War Territory Northwest of the River Ohio, more commonly known as the Northwest Territory encompassing most of the pre-war territory of the Ohio Country, parts of Illinois Country, and parts of old French Canada below the Great Lakes was an organized incorporated territory of the United States spanning most or large parts of six eventual U.S. States. It existed legally from July 13, 1787, until March 1, 1803, when the southeastern portion of the territory was admitted to the Union as the state of Ohio, and the remainder was reorganized by additional legislative actions.
Document 5: Florida Panhandle: The Florida Panhandle, Northwest Florida, or West Florida, an informal, unofficial term for the northwestern part of the U.S. state of Florida, is a strip of land roughly 200 miles long and 50 to 100 miles wide (320 km by 80 to 160 km), lying between Alabama on the north and the west, Georgia also on the north, and the Gulf of Mexico to the south. Its eastern boundary is arbitrarily defined. The terms West Florida and Northwest Florida are today generally synonymous with the Panhandle, although historically West Florida was the name of a British colony (1763–1783), later a Spanish colony (1783–1821), both of which included modern-day Florida west of the Apalachicola River as well as portions of what are now Alabama, Mississippi, and Louisiana.
Document 6: The Floridas: The Floridas was a region of the southeastern United States comprising the historical colonies of East Florida and West Florida. The borders of East and West Florida varied. In 1783, when Spain acquired West Florida and re-acquired East Florida from Great Britain through the Peace of Paris (1783), the eastern British boundary of West Florida was the Apalachicola River, but Spain in 1785 moved it eastward to the Suwannee River. The purpose was to transfer San Marcos and the district of Apalachee from East Florida to West Florida. From 1810 to 1813, the United States extended piecemeal control over the part of West Florida that comprised the modern-day Gulf coasts of Alabama and Mississippi and the Florida Parishes of Louisiana. After the ratification of the Adams-Onis Treaty in 1821 the United States combined East Florida and what had been the remaining Spanish-controlled rump of West Florida into the territory that comprised modern-day Florida.
Document 7: List of counties in Florida: There are 67 counties in the state of Florida. It became a territory of the U.S. in 1821 with two counties complementing the provincial divisions retained as a Spanish territory: Escambia to the west and St. Johns to the east, divided by the Suwannee River. All of the other counties were apportioned from these two original counties. Florida became the 27th U.S. state in 1845, and its last county was created in 1925 with the formation of Gilchrist County from a segment of Alachua County. Florida's counties are subdivisions of the state government. In 1968, counties gained the power to develop their own charters. All but two of Florida's county seats are incorporated municipalities. The exceptions are Crawfordville, county seat of rural Wakulla County, and East Naples, located outside Naples city limits in Collier County.
Document 8: Florida Board of Regents: The Florida Board of Regents was from 1965 to 2001 the governing body for the State University System of Florida, which includes all public universities in the state of Florida, United States. It was created to replace a predecessor body called the Florida Board of Control, which had existed from 1905. Its powers are now held by the Florida Board of Governors.
Document 9: List of battles fought in New Mexico: This list of battles fought in New Mexico is an incomplete list of military and other armed confrontations that have occurred within the boundaries of the modern U.S. State of New Mexico since European contact. The region was part of the Viceroyalty of New Spain from 1535 to 1682, New France from 1682 to 1762, Kingdom of Spain from 1762 to 1800, French First Republic 1800 to 1803, and Mexico from 1803-1848. Portions of New Mexico were under the administrative control of the Republic of Texas from 1836 to 1846. Full administrative control of New Mexico was established on February 2, 1848 with the signing of the Treaty of Guadalupe Hidalgo which ended the Mexican–American War.
Document 10: United States Boundary Commissioner: Article V of the TREATY OF PEACE, FRIENDSHIP, LIMITS, AND SETTLEMENT BETWEEN THE UNITED STATES OF AMERICA AND THE UNITED MEXICAN STATES CONCLUDED AT GUADALUPE HIDALGO (known commonly as the Treaty of Guadalupe Hidalgo ) declared that the new boundary between the two republics of the United States and Mexico would lay "three leagues from land, opposite the mouth of the Rio Grande, otherwise called Rio Bravo del Norte, or Opposite the mouth of its deepest branch, if it should have more than one branch emptying directly into the sea; from thence up the middle of that river, following the deepest channel, where it has more than one, to the point where it strikes the southern boundary of New Mexico; thence, westwardly, along the whole southern boundary of New Mexico (which runs north of the town called Paso) to its western termination; thence, northward, along the western line of New Mexico, until it intersects the first branch of the river Gila; (or if it should not intersect any branch of that river, then to the point on the said line nearest to such branch, and thence in a direct line to the same); thence down the middle of the said branch and of the said river, until it empties into the Rio Colorado; thence across the Rio Colorado, following the division line between Upper and Lower California, to the Pacific Ocean. " It delineated the boundary through its text but wasn't written with much knowledge of the area's actually geography; A commissioner and surveyor from each country were appointed to precisely locate landmarks and accurately map the new border, relying on the treaty as their guide.
Document 11: Florida Territory: The Territory of Florida was an organized incorporated territory of the United States that existed from March 30, 1822, until March 3, 1845, when it was admitted to the Union as the State of Florida. Originally the Spanish territory of "La Florida", and later the provinces of East and West Florida, it was ceded to the United States as part of the 1819 Adams–Onís Treaty. It was governed by the Florida Territorial Council.
Document 12: Conch Republic: The Conch Republic is a micronation declared as a tongue-in-cheek secession of the city of Key West, Florida, from the United States on April 23, 1982. It has been maintained as a tourism booster for the city since. Since then, the term "Conch Republic" has been expanded to refer to "all of the Florida Keys, or, that geographic apportionment of land that falls within the legally defined boundaries of Monroe County, Florida, northward to 'Skeeter's Last Chance Saloon' in Florida City, Dade County, Florida, with Key West as the nation's capital and all territories north of Key West being referred to as 'The Northern Territories'.
Document 13: Adams–Onís Treaty: The Adams–Onís Treaty of 1819, also known as the Transcontinental Treaty, the Florida Purchase Treaty, or the Florida Treaty, was a treaty between the United States and Spain in 1819 that ceded Florida to the U.S. and defined the boundary between the U.S. and New Spain. It settled a standing border dispute between the two countries and was considered a triumph of American diplomacy. It came in the midst of increasing tensions related to Spain's territorial boundaries in North America against the United States and Great Britain in the aftermath of the American Revolution; and also during the Latin American Wars of Independence. Florida had become a burden to Spain, which could not afford to send settlers or garrisons. Madrid decided to cede the territory to the United States through the Adams–Onís Treaty in exchange for settling the boundary dispute along the Sabine River in Spanish Texas. The treaty established the boundary of U.S. territory and claims through the Rocky Mountains and west to the Pacific Ocean, in exchange for the U.S. paying residents' claims against the Spanish government up to a total of $5,000,000 and relinquishing the US claims on parts of Spanish Texas west of the Sabine River and other Spanish areas, under the terms of the Louisiana Purchase.
Document 14: List of battles fought in Colorado: This list of battles fought in Colorado is an incomplete list of military and other armed confrontations that have occurred within the boundaries of the modern US State of Colorado since European contact. The region was part of the Viceroyalty of New Spain from 1535 to 1682, New France from 1682 to 1762, Kingdom of Spain from 1762 to 1800, French First Republic 1800 to 1803, and part of the United States of America 1803–present (boundaries were disputed by Spain). The southern portion of Colorado was considered by Spain as part of its northern territories. Large portions of Colorado were subsequently under the administrative control of Mexico from 1800 to 1835, and the Republic of Texas from 1836 to 1846. Full administrative control of Colorado was established on February 2, 1848 with the signing of the Treaty of Guadalupe Hidalgo which ended the Mexican–American War.
Document 15: Treaty of Guadalupe Hidalgo: The Treaty of Guadalupe Hidalgo ("Tratado de Guadalupe Hidalgo" in Spanish), officially entitled the Treaty of Peace, Friendship, Limits and Settlement between the United States of America and the Mexican Republic, is the peace treaty signed on February 2, 1848, in the Villa de Guadalupe Hidalgo (now a neighborhood of Mexico City) between the United States and Mexico that ended the Mexican–American War (1846–48). The treaty came into force on July 4, 1848.
ground_truth: the United States and Spain