What is {hometown} of {Hello Kitty}, that has {post code} is {N} ?
What is the title of the hometown of Hi Kitty, whose postal code is N?
What is the name of the hometown of Hello Kitty, whose postal code is N?
SELECT ?n WHERE { resource:Hello_Kitty property:residence ?n . ?n property:postal_code ?s . FILTER ( CONTAINS ( ?s , 'N' ) ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q191794> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551>. ?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:Q191794 wdt:P551 ?answer . ?answer wdt:P281 ?x FILTER(contains(?x , 'N'))}
London London London London