Question: What city in Latvia was ceded by the treaty that ended the Second Northern War?
Sentence (from "Swedish Livonia"): Swedish Livonia (Swedish: "Svenska Livland" ) was a dominion of the Swedish Empire from 1629 until 1721.
Relevant evidence: Yes