Yes.  "!X" is illegal.

FWIW, "!=" is a valid token.  Basically, if Python allows it, we allow it.

[FROM X WHERE X.id != 7 EMIT *];