What is the {university building} for {headquarters location} of {University College London}
Which is the college building for the area of the base camp of College College London?
Which is the university building for the location of the headquarters of University College London?
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:university_building . resource:University_College_London property:headquarters_location ?x }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q193196> . ?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 . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q19844914> } 
 select distinct ?obj where { wd:Q193196 wdt:P159 ?obj . ?obj wdt:P31 wd:Q19844914 } 
UCL Main Building