What is {educated at} of {Janet Yellen} and {academic degree}
Where was Janet Yellen taught and what was her scholarly degree?
Where was Janet Yellen educated and what was her academic degree?
SELECT ?d ?r WHERE { ?y property:academic_degree ?d . . resource:Janet_Yellen property:educated_at ?y . ?y property:educated_at ?r }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q263725> . ?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/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q263725 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P512 ?value1 . }