What is {bordered by} of {participants} of {Livonian War} ?
Say the border members of Livonian War?
Mention the border participants of Livonian War?
SELECT ?g WHERE { ?t property:shares_border_with ?g . resource:Livonian_War property:participant ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q246863> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P710>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q246863 wdt:P710 ?X . ?X wdt:P47 ?answer}
Sweden Holy Roman Empire Ottoman Empire Kingdom of Prussia Russian Empire Duchy of Prussia State of the Teutonic Order Duchy of Courland and Semigallia Crimean Khanate Kingdom of Hungary Tsardom of Russia Principality of Moldavia