CORE-2177 Support NOT(X) syntax for labels