what is the {located at street address} for {BP} has {headquarters location} as {London} ?
During what time was the BP headquarters located in London?
When was BP the headquarters location of London?
SELECT ?k WHERE { resource:BP property:headquarters_location ?o . ?o property:P969 ?k . ?o property:headquarters_location resource:London }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q152057> .
?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> <http://wikidata.dbpedia.org/resource/Q84> .
?statement <http://www.wikidata.org/entity/P969> ?value. 
} 

SELECT ?value WHERE { wd:Q152057 p:P159 ?s . ?s ps:P159 wd:Q84 . ?s pq:P969 ?value}