@andrey1s Please add method to repository to make it reusable and readable. Don't use such complicated queries in controllers.