What is {co-founder} of {university attended} of {Scott McCartney} ?
Scott McCartney attended a university co-founded by who?
Who is the co-founder of the university that Scott McCartney attended?
SELECT ?a WHERE { ?x property:founded_by ?a . resource:Scott_McCartney property:educated_at ?x }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7436800> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P112> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q7436800 wdt:P69 ?X . ?X wdt:P112 ?answer}
James Buchanan Duke