what is the {start time} for {São Paulo} has {head of government} as {Marta Suplicy} ?
When did the head of government for Sao Paulo take over?
When did Marta Suplicy become the head of government for São Paulo?
SELECT ?p WHERE { ?d property:start_time ?p . ?d property:head_of_government resource:Marta_Suplicy . resource:São_Paulo property:head_of_government ?d }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q174> .
?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/Q463614> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q174 p:P6 ?s . ?s ps:P6 wd:Q463614 . ?s pq:P580 ?value}