What is {student} of {Gustav Kirchhoff} that is {educated at} is {Heidelberg University} ?
What did Gustav Kirchhoff earn a degree in at Heidelberg University?
What degree is achieved by Gustav Kirchhoff at Heidelberg University?
SELECT ?h WHERE { ?r property:educated_at resource:Heidelberg_University . ?r property:student ?h . resource:Gustav_Kirchhoff property:student ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q60052> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P802> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P69> <http://wikidata.dbpedia.org/resource/Q151510>
} 

SELECT ?obj WHERE { wd:Q60052 p:P802 ?s . ?s ps:P802 ?obj . ?s pq:P69 wd:Q151510 }