What is {headquarters location} of {University of Vienna} that is {country} is {Austria} ?
Where are the headquarters of the University of Venna
Where in Austria is the University of Vienna headquarters located?
SELECT ?w WHERE { ?f property:headquarters_location ?w . ?f property:country resource:Austria . resource:University_of_Vienna property:headquarters_location ?f }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165980> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P17> <http://wikidata.dbpedia.org/resource/Q40>
} 

SELECT ?obj WHERE { wd:Q165980 p:P159 ?s . ?s ps:P159 ?obj . ?s pq:P17 wd:Q40 }