What is {educated at} of {Woodrow Wilson} that is {end time} is {1874-0-0} ?
What is the name of the school that Woodrow Wilson graduate from in 1874?
What school did Woodrow Wilson graduate from in 1874?
SELECT ?p WHERE { ?y property:educated_at ?p . FILTER ( CONTAINS ( YEAR ( ?t ) , '1874' ) ) . resource:Woodrow_Wilson property:educated_at ?y . ?y property:end_time ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34296> .
?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/P582> <1874-0-0>
} 

SELECT ?obj WHERE { wd:Q34296 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1874')) }