What is {doctoral advisor} and {academic degree} of {{James Heckman} has {educated at} as {Princeton University}}
When did James Heckman receive his doctorate at Princeton University?
When did James Heckman receive his doctorate at Princeton University?
SELECT ?r ?a WHERE { ?v property:academic_degree ?a . ?v property:doctoral_advisor ?r . ?v property:educated_at resource:Princeton_University . resource:James_Heckman property:educated_at ?v }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312561> . ?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> <http://wikidata.dbpedia.org/resource/Q21578>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q312561 p:P69 ?s . ?s ps:P69 wd:Q21578 . ?s pq:P184 ?value1 . ?s pq:P512 ?value2 }