What is {death place} of {William Dampier}, that has {postal index number} is {N} ?
Where did William Dampier, whose postal index wide variety is N, die?
Where did William Dampier, whose postal index number is N, die?
SELECT ?l WHERE { ?l property:postal_code ?c . resource:William_Dampier property:place_of_death ?l . FILTER ( CONTAINS ( ?c , 'N' ) ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q221125> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P20>. ?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> <N> . }
SELECT ?answer WHERE { wd:Q221125 wdt:P20 ?answer . ?answer wdt:P281 ?x FILTER(contains(?x , 'N'))}
London London London London