What is {start time} and {end time} of {{Mary McAleese} has {position held} as {President of Ireland}}
In what year span did Mary McAleese become the President of Ireland?
Mention the year span in which Mary McAleese became President of Ireland.
SELECT ?e ?l WHERE { resource:Mary_McAleese property:position_held ?y . ?y property:end_time ?l . ?y property:start_time ?e . ?y property:position_held resource:President_of_Ireland }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q174662> . ?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/Q213702>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q174662 p:P39 ?s . ?s ps:P39 wd:Q213702 . ?s pq:P580 ?value1 . ?s pq:P582 ?value2 }