What is {doctoral advisor} and {doctoral thesis} of {{Carl Sagan} has {educated at} as {University of Chicago}}
What was Carl Sagan's doctoral proposal at the College of Chicago? Who was his doctoral advisor?
What was Carl Sagan's doctoral thesis at the University of Chicago? Who was his  doctoral advisor?
SELECT ?w ?b WHERE { resource:Carl_Sagan property:educated_at ?x . ?x property:academic_thesis ?b . ?x property:educated_at resource:University_of_Chicago . ?x property:doctoral_advisor ?w }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q410> . ?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/Q131252>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q410 p:P69 ?s . ?s ps:P69 wd:Q131252 . ?s pq:P184 ?value1 . ?s pq:P1026 ?value2 }