What is {academic degree} of {Gottfried Wilhelm Leibniz} that is {point in time} is {1665-9-28} ?
On September 28, 1665, what degree did Gottfried Wilhelm Leibniz obtain?
What academic degree did Gottfried Wilhelm Leibniz obtain on September 28, 1665?
SELECT ?v WHERE { FILTER ( CONTAINS ( YEAR ( ?a ) , '1665' ) ) . resource:Gottfried_Wilhelm_Leibniz property:academic_degree ?g . ?g property:point_in_time ?a . ?g property:academic_degree ?v }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9047> .
?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> <1665-9-28>
} 

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