What is the {building} for {headquarters location} of {Cathay Pacific}
Which is the building for the base camp area of Cathay Pacific?
Which is the building for the headquarters location of Cathay Pacific?
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:building . resource:Cathay_Pacific property:headquarters_location ?d }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q32141> . ?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/Q41176> } 
 select distinct ?obj where { wd:Q32141 wdt:P159 ?obj . ?obj wdt:P31 wd:Q41176 } 