Implement query filter to allow retrieve a subset of records