Question: What city in Latvia was ceded by the treaty that ended the Second Northern War?
Sentence (from "Russo-Polish War (1654–1667)"): The Commonwealth initially suffered defeats, but regained its ground and won most of the battles.
Relevant evidence: No