Getting the Single Best Item near the querier in EQS?

Hey! I am trying to do stuff with the EQS. I was wondering that is it possible to get the Best hit result near the player? I want the Querier to move only Up,Down,Left,Right. The Querier would just check which direction has a best result and then i would move him there. I can get all the query-locations, but that doesn’t help me much… Also i can get the Item Score, but i cannot find a way to pin point the what grid the Score means. Any ideas? Here is the picture how i would want the character to move, for example


My querier is finding the Player Character and queries towards it.