What is {end time} and {start time} of {{Ruhollah Khomeini} has {position held} as {Supreme Leader of Iran}}
When was Ruhollah Khomeini, Preeminent Pioneer of Iran, born, and when did he die?
When was Ruhollah Khomeini, Supreme Leader of Iran, born, and when did he die?
SELECT ?v ?u WHERE { resource:Ruhollah_Khomeini property:position_held ?u . ?u property:start_time ?u . ?u property:position_held resource:Supreme_Leader_of_Iran . ?u property:end_time ?v }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q38823> . ?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> <http://wikidata.dbpedia.org/resource/Q332486>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q38823 p:P39 ?s . ?s ps:P39 wd:Q332486 . ?s pq:P582 ?value1 . ?s pq:P580 ?value2 }