Query engine: support for in and not in operators