What is {doctoral advisor} of {Johann Bernoulli} that is {object has role} is {first doctoral advisor} ?
What is  doctoral advisor  of Johann Bernoulli  that is  it has a role  is  first doctoral advisor ?
SELECT ?obj WHERE { wd:Q227897 p:P184 ?s . ?s ps:P184 ?obj . ?s pq:P3831 wd:Q26236695 }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q227897> .
?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>
} 

Is the role of Johann Bernoulli that of first doctoral advisor?