What is {born at} of {Tim Berners-Lee}, that has {PIN Code} is {UB} ?
"Who is {born at} of {Tim Berners-Lee}, which has {PIN Code} is {UB} ?"
"Who is {born at} of {Tim Berners-Lee}, which has {PIN Code} is {UB} ?"
SELECT ?g WHERE { resource:Tim_Berners-Lee property:place_of_birth ?g . ?g property:postal_code ?x . FILTER ( CONTAINS ( ?x , 'UB' ) ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P19>. ?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> <UB> . }
SELECT ?answer WHERE { wd:Q80 wdt:P19 ?answer . ?answer wdt:P281 ?x FILTER(contains(?x , 'UB'))}
London