What is {academic degree} of {Bernhard Riemann} that is {conferred by} is {University of Göttingen} ?
What degree did Bernhard Riemann earn at Gottingen University?
What is the { academic degree } of { Bernhard Riemann } that is conferred by { Göttingen University }?
SELECT ?p WHERE { resource:Bernhard_Riemann property:academic_degree ?r . ?r property:academic_degree ?p . ?r property:conferred_by resource:University_of_Göttingen }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42299> .
?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/P1027> <http://wikidata.dbpedia.org/resource/Q152838>
} 

SELECT ?obj WHERE { wd:Q42299 p:P512 ?s . ?s ps:P512 ?obj . ?s pq:P1027 wd:Q152838 }