my target is to find the highest position in hierarchy. I have provided video below for better explanation.
This is the current query I am running:
SELECT