What is {named after} of {January} that is {start time} is {2002-8-10} ?
Starting in 2002, what is named after January?
What is named after January starting in 2002?
SELECT ?u WHERE { FILTER ( CONTAINS ( YEAR ( ?s ) , '2002' ) ) . resource:January property:named_after ?e . ?e property:named_after ?u . ?e property:start_time ?s }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q108> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <2002-8-10>
} 

SELECT ?obj WHERE { wd:Q108 p:P138 ?s . ?s ps:P138 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'2002')) }