What is {academic degree} of {Leopold von Sacher-Masoch} that is {point in time} is {1854-0-0} ?
What degree did Leopold von Sacher-Masoch graduate with in 1854?
What academic degree did Leopold von Sacher-Masoch achieve in 1854?
SELECT ?b WHERE { resource:Leopold_von_Sacher-Masoch property:academic_degree ?j . FILTER ( CONTAINS ( YEAR ( ?l ) , '1854' ) ) . ?j property:point_in_time ?l . ?j property:academic_degree ?b }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q78474> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P512> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P585> <1854-0-0>
} 

SELECT ?obj WHERE { wd:Q78474 p:P512 ?s . ?s ps:P512 ?obj . ?s pq:P585 ?x filter(contains(YEAR(?x),'1854')) }