Question: What city in Latvia was ceded by the treaty that ended the Second Northern War?
Sentence (from "Swedish Livonia"): The minority part of the Wenden Voivodeship retained by the Polish–Lithuanian Commonwealth was renamed the Inflanty Voivodeship (""Livonian Principality""), which today corresponds to the Latgale region of Latvia.
Relevant evidence: No