PDIO-461 Support black list and white list, and list of items in query