get_queryset
Also added a little improvement to sql/query.py to get rid of non-necessary IS NOT NULL check.