How to get subquery values

You can’t sessions are stored against a random key. The only way to know inspect a Session is to access it individually.

But I wouldn’t recommend scanning all User Sessions like this, if you need all User Sessions I would register a OnAuthenticated Session or Auth Event and maintain a list of Sessions Ids for each user yourself.