Improve guard clauses
Created by: davecromberge
On further testing group by and where with the all keyword, I discovered that I introduced a regression defect. The guard clause did not match the atom undefined, and also the N value for the interpolated sql was off by one.