what is the {start time} for {António Guterres} has {position held} as {General Secretary of the Socialist Party (Portugal)} ?
What year did Antonio Guterres first become General Secretary of the Socialist party in portugal?
When did Antonio Guterres first become General Secretary of the Socialist Party in Portugal?
SELECT ?b WHERE { ?m property:position_held resource:General_Secretary_of_the_Socialist_Party_(Portugal) . ?m property:start_time ?b . resource:António_Guterres property:position_held ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q311440> .
?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/Q27134289> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q311440 p:P39 ?s . ?s ps:P39 wd:Q27134289 . ?s pq:P580 ?value}