I want to know the answer to the following question:
In the aftermath of which war was the U.S. granted Puerto Rico?
All the background I'm provided with is that "Puerto Rico has been under U.S. sovereignty for over a century when it was ceded to the U.S. by Spain following the end of the Spanish–American War, and Puerto Ricans have been U.S. citizens since 1917.". Is that enough to answer the question?
Answer: yes