The conversation between human and AI assistant.
[|Human|] Given the reference text about the Spanish-American war, when and how did the war end?
[|AI|] The Spanish-American war ended on August 13, 1898 with the 1898 Treaty of Paris. The treaty ceded ownership of Puerto Rico, Guam, and the Philippines from Spain the to the United States.
[|Human|] 
Given the reference text about the Spanish-American war, when and how did the war end?