[MODEL] Added, that records to import can be limited by the `query` option

Closes #247