A.Order.objects.filter(id__gt=20,id__lt=100).filter(Q(num<=20)Q.num>=30))
B.Order.objects.filter(id__gt=20,id__lt=100).filter(Q(num__lte=20)Q.num__gte=30))
C.Order.objects.filter(Q(id__gt=20)&Q(id__lt=100)).filter(Q(num__lte=20)Q.num__gte=30))
D.Order.objects.filter(Q(id__gt=20)&&Q(id__lt=100)).filter(Q(num__lte=20)Q.num__gte=30))