Be more permissive in what can precede select

This allows for expressions like `(SELECT ... ) UNION` to
have explains run on them.

Fixes #114