How to detect whether an eqs item is selected?

Hi Everyone, I am wondering how to detect whether an eqs item is selected or not. I am using single random item from best 5%, but there are two AIs would sometimes chose the same location, how can I avoid that by what tests in eqs?
By the way, is here anyway to find the item which is in front of the covering object which traced from querier?
Thank you so much everyone