What is {work location} of {William Beveridge}, that has {PIN Code} is {SW3 6RS} ?
"Where is {work area} of {William Beveridge}, that has {Stick Code} is {SW3 6RS} ?"
"Where is {work location} of {William Beveridge}, that has {PIN Code} is {SW3 6RS} ?"
SELECT ?q WHERE { ?q property:postal_code ?k . FILTER ( CONTAINS ( ?k , 'SW3 6RS' ) ) . resource:William_Beveridge property:work_location ?q }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q335049> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P937>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P281> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <SW3 6RS> . }
SELECT ?answer WHERE { wd:Q335049 wdt:P937 ?answer . ?answer wdt:P281 ?x FILTER(contains(?x , 'SW3 6RS'))}