Offline implementation of the Django QuerySet.