what is the {start time} for {Cape Town} has {head of government} as {Dan Plato} ?
When was Dan Plato elected for his first term as person in charge of Cape Town
When was Dan Plato elected as the head of government of Cape Town?
SELECT ?b WHERE { resource:Cape_Town property:head_of_government ?u . ?u property:head_of_government resource:Dan_Plato . ?u property:start_time ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5465> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q379122> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q5465 p:P6 ?s . ?s ps:P6 wd:Q379122 . ?s pq:P580 ?value}