What is {born in} of {Bernard Herrmann}, that has {local calling code} is {917} ?
"Who was once born in Bernard Herrmann, with local calling code 917?"
"Who was born in Bernard Herrmann, with local calling code 917?"
SELECT ?n WHERE { ?n property:local_dialing_code ?o . resource:Bernard_Herrmann property:place_of_birth ?n . FILTER ( CONTAINS ( ?o , '917' ) ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q296804> . ?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/P473> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <917> . }
SELECT ?answer WHERE { wd:Q296804 wdt:P19 ?answer . ?answer wdt:P473 ?x FILTER(contains(?x , '917'))}
New York City