What is {headquarters location} of {HBO} that is {country} is {United States of America} ?
What city in the United States has the headquarters for HBO?
Where are the headquarters of HBO in the United States?
SELECT ?l WHERE { ?n property:country resource:United_States_of_America . ?n property:headquarters_location ?l . resource:HBO property:headquarters_location ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23633> .
?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/Q30>
} 

SELECT ?obj WHERE { wd:Q23633 p:P159 ?s . ?s ps:P159 ?obj . ?s pq:P17 wd:Q30 }