how to determine subset of JSONB