What is {educated at} of {John McCarthy} that is {academic degree} is {Doctor of Philosophy} ?
In which university did John McCarthy complete his doctorate degree in philosophy?
Where did John McCarthy do his doctorate degree in philosophy?
SELECT ?h WHERE { ?x property:academic_degree resource:Doctor_of_Philosophy . resource:John_McCarthy property:educated_at ?x . ?x property:educated_at ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q92739> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P512> <http://wikidata.dbpedia.org/resource/Q752297>
} 

SELECT ?obj WHERE { wd:Q92739 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P512 wd:Q752297 }