Sargable bitmask queries