I wonder if something like this works? 
```lua
if not ((snetregion ~= not queries) ~= not endpoints) then
 ...
end
```