What is {doctoral advisor} of {Jacob Bernoulli} that is {object has role} is {first doctoral advisor} ?
Who was the primary doctoral counsel of Jacob Bernoulli that played a part?
Who was the first doctoral adviser of Jacob Bernoulli that played a role?
SELECT ?t WHERE { resource:Jacob_Bernoulli property:doctoral_advisor ?i . ?i property:doctoral_advisor ?t . ?i property:object_has_role resource:first_doctoral_advisor }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q122392> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P184> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P3831> <http://wikidata.dbpedia.org/resource/Q26236695>
} 

SELECT ?obj WHERE { wd:Q122392 p:P184 ?s . ?s ps:P184 ?obj . ?s pq:P3831 wd:Q26236695 }