What is {date of birth} of {Ali al-Hadi} that is {instance of} is {statement with Gregorian date earlier than 1584} ?
In which year was Ali al-Hadi born?
When was Ali al-Hadi born, given that it was before 1584?
SELECT ?l WHERE { ?c property:date_of_birth ?l . resource:Ali_al-Hadi property:date_of_birth ?c . ?c rdf:type ontology:statement_with_Gregorian_date_earlier_than_1584 }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q315377> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q26961029>
} 

SELECT ?obj WHERE { wd:Q315377 p:P569 ?s . ?s ps:P569 ?obj . ?s pq:P31 wd:Q26961029 }