What is {head of state} of {Umayyad Caliphate} that is {end time} is {724-0-0} ?
Who is {head of state} of {Umayyad Caliphate} whose is {conclusion time} is {724-0-0} ?
Who is {head of state} of {Umayyad Caliphate} whose is {end time} is {724-0-0} ?
SELECT ?p WHERE { ?g property:end_time ?v . ?g property:head_of_state ?p . FILTER ( CONTAINS ( ?v , '724-0-0' ) ) . resource:Umayyad_Caliphate property:head_of_state ?g }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8575586> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P35> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <724-0-0>
} 

SELECT ?obj WHERE { wd:Q8575586 p:P35 ?s . ?s ps:P35 ?obj . ?s pq:P582 ?x filter(contains(?x , '724-0-0')) }