beam
beam copied to clipboard
Fix building queries with WHERE in the absence of FROM.
A WHERE clause in a query is meaningful even if there are no input tables. It makes the difference between there being 0 or 1 results. We therefore should not drop guards when building queries.
See #667.