what is the {academic degree} for {Walter Benjamin} has {educated at} as {University of Bern} ?
Give me the name of the degree that Walter Benjamin earned at University of Bern.
What degree did Walter Benjamin earn at University of Bern?
SELECT ?d WHERE { resource:Walter_Benjamin property:educated_at ?p . ?p property:educated_at resource:University_of_Bern . ?p property:academic_degree ?d }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q61078> .
?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> <http://wikidata.dbpedia.org/resource/Q659080> .
?statement <http://www.wikidata.org/entity/P512> ?value. 
} 

SELECT ?value WHERE { wd:Q61078 p:P69 ?s . ?s ps:P69 wd:Q659080 . ?s pq:P512 ?value}