Inserting the "NOT" directly in the smart_group_queries table seems to make the query work but leads to errors in UI