What is the {sovereign state} for {shares border with} of {Austrian Empire}
Which imperial state offers a border with the Austrian Empire?
Which sovereign state shares a border with the Austrian Empire?
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sovereign_state . ?b property:shares_border_with resource:Austrian_Empire }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q131964> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3624078> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q131964 . ?sbj wdt:P31 wd:Q3624078 } 