Hi,
try this query

select rid, count(rid) as  NumberOfMutualFriends from (select 
$friends.out('isFriendsWith').@rid as rid
from #11:5 let $friends = out('isFriendsWith') UNWIND rid)
where rid <> "11:5"
group by rid
order by  NumberOfMutualFriends desc

Kind regards,
Alessandro

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to