What is the {academy of sciences} for {manager/director} of {Gottfried Wilhelm Leibniz}
Gottfried Wilhelm Leibniz is the director of what Academy of Science?
What Academy of Science is Gottfried Wilhelm Leibniz the director of?
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:academy_of_sciences . ?q property:director_/_manager resource:Gottfried_Wilhelm_Leibniz }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1037> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q9047> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q414147> } 
 select distinct ?sbj where { ?sbj wdt:P1037 wd:Q9047 . ?sbj wdt:P31 wd:Q414147 } 
Royal Prussian Academy of Sciences