core: Add `filter` option to query model

Allowing to do basic filter operations (=,!=, <, >, <=, >=) on the rsc
table and custom pivot tables. Also update the query model
documentation.