Added exists and isnull query options