Query related metric value for sketch users

I have a use case where in i have a Theta sketch column for users.
There is a dimension called “source” which can have multiple values like (“online”, “offline”, etc).
The metrics i am interested in are unique users in offline & online overlap area and number of visits in the overlap.

Summarizing above: