SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/doctoralStudents> <http://dbpedia.org/resource/Mary_Ainsworth> . ?uri <http://dbpedia.org/property/doctoralAdvisor> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Scientist>}
Name the scientist whose supervisor also supervised Mary Ainsworth?
SELECT DISTINCT ?b WHERE { ?b property:doctoral_advisor ?d . ?b rdf:type ontology:Scientist . ?d property:doctoral_students resource:Mary_Ainsworth }
Abraham Maslow
The scientist whose doctoral advisor has Mary Ainsworth as a doctoral student is [Abraham Maslow].
The scientist whose scientific director is Mary Ayworth is [Abraham Maslow].
The scientist whose supervisor's doctoral students is her is [Abraham Maslow].
The scientist whose doctoral students she directs is [Abraham Maslov].
The scientist whose supervisor's doctoral students is Mary Ainsworth is [Abraham Maslov].
The scientist whose student is Mary Hitchworth is [Abraham Maslov].