What is {position held} of {Mehmed the Conqueror} and {end time}
When did position held of Mehmed the Champion and conclusion time?
When did position held of Mehmed the Conqueror and end time?
SELECT ?u ?c WHERE { resource:Mehmed_the_Conqueror property:position_held ?u . ?u property:end_time ?u . . ?u property:position_held ?c }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34503> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q34503 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?value1 . }