I messed around with this for awhile and I got nearly the same results as you at 31.9% but if I just run a standard HvR sim I get the same result at 31.4%.. then if I run the original script with the where clause I also get 31.9%...
Maybe this just is not possible? maybe AK93 is not in that 6-15% range? So if change that hand to 7s2hKc3c I get 12.6% equity on HvR, 12.6 on where clause script and same on your script. So in that situation we know the hand is not in the top 15% of hands so its disregarding something for sure.
This seems like a simple thing for PPT..return equity vs any hand with greater then 48% equity vs my perceived range...sigh