What is {educated at} of {Hans Christian Andersen} that is {start time} is {1822-0-0} ?
In 1822, where did Hans Christian Andersen receive schooling?
Where was Hans Christian Andersen taught in 1822?
SELECT ?u WHERE { FILTER ( CONTAINS ( YEAR ( ?e ) , '1822' ) ) . resource:Hans_Christian_Andersen property:educated_at ?c . ?c property:educated_at ?u . ?c property:start_time ?e }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5673> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1822-0-0>
} 

SELECT ?obj WHERE { wd:Q5673 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1822')) }