How can I query all the queues to which a user belongs?
Note: Queues also contains public groups, role, role and subordinate and I need to loop through all these to find out if user is associated with these also.
Also I found out in user related list there is something called "queue membership" which contains all the queues that user associated with. Which object do I query for this?