I have a problem where I need to define a QuerySet where the conditions for including one row depend on evaluating values in one or more other rows in the QuerySet.Is there a way to manually construct a QuerySet by iterating over rows from another QuerySet and individually adding them to the new QuerySet?