Add in more query tests
Add priority test
Improve query performance
Add in true '>' support