what is the {end time} for {FIFA} has {chairperson} as {João Havelange} ?
The Year Joao Havelange resigned as FIFA chairperson
When did João Havelange step down as chairperson of FIFA?
SELECT ?i WHERE { ?b property:end_time ?i . ?b property:chairperson resource:João_Havelange . resource:FIFA property:chairperson ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q253414> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P488> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q207358> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q253414 p:P488 ?s . ?s ps:P488 wd:Q207358 . ?s pq:P582 ?value}