query: Implement GTE and LTE conditionals

Issue #286.
models/search: Implement searching by pI

Issue #286.
Merge branch 'issue/286'