Handle some Queryset lookup types (gt, lt, gte, lte, range).