What is {headquarters location} of {Secret Intelligence Service} that is {postal code} is {OL9 6AA} ?
The Secret Intelligence Service, postal code OL9 6AA has headquarters located where?
Name the headquarters location of Secret Intelligence Service that is postal code of OL9 6AA?
SELECT ?i WHERE { ?f property:headquarters_location ?i . FILTER ( CONTAINS ( ?r , 'OL9 6AA' ) ) . ?f property:postal_code ?r . resource:Secret_Intelligence_Service 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/Q184560> .
?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/P281> <OL9 6AA>
} 

SELECT ?obj WHERE { wd:Q184560 p:P159 ?s . ?s ps:P159 ?obj . ?s pq:P281 ?x filter(contains(?x , 'OL9 6AA')) }