PIM query with ODHMSAS algo