what is the {instance of} for {Zenobia} has {date of birth} as {240-0-0} ?
When was Zenobia born?
What date was Zenobia born?
SELECT ?h WHERE { FILTER ( CONTAINS ( ?y , '240-0-0' ) ) . ?f property:date_of_birth ?y . ?f rdf:type ?h . resource:Zenobia property:date_of_birth ?f }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q189705> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P569> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <240-0-0> .
?statement <http://www.wikidata.org/entity/P31> ?value. 
} 

SELECT ?value WHERE { wd:Q189705 p:P569 ?s . ?s ps:P569 ?x filter(contains(?x , '240-0-0')) . ?s pq:P31 ?value}