Question: Who is {head of state} of {Umayyad Caliphate} whose is {end time} is {724-0-0} ?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q8575586 p:P35 ?s . ?s ps:P35 ?obj . ?s pq:P582 ?x filter(contains(?x,'724-0-0')) }