For example, if I want to find number of hops between Politician (Q82955) and President of the US (Q11696), the answer should be 2.
POTUS (Q11696) – subclassOf -> HeadOfGovernment (Q2285706) – subclassOf -> Politician (Q82955)
How can I write a query for this? I know I need to use count but I don't know how.