What is {head coach} of {A.C. Milan} that is {end time} is {2016-0-0} ?
When did A.C. Milan retire as head coach?
When was A.C. Milan retired from Head coach post?
SELECT ?e WHERE { FILTER ( CONTAINS ( YEAR ( ?p ) , '2016' ) ) . resource:A.C._Milan property:head_coach ?d . ?d property:end_time ?p . ?d property:head_coach ?e }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1543> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P286> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2016-0-0>
} 

SELECT ?obj WHERE { wd:Q1543 p:P286 ?s . ?s ps:P286 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2016')) }