What is {educated at} of {Donald Knuth} and {academic major}
What was the scholastic major of Donald Knuth and where was he taught at?
What was the academic major of Donald Knuth and where was he educated at?
SELECT ?d ?t WHERE { resource:Donald_Knuth property:educated_at ?i . ?i property:educated_at ?t . ?i property:academic_major ?d . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q17457> . ?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:Q17457 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P812 ?value1 . }