Allow whitespace following unioned query

Fixes #1575
Merge pull request #1597 from cleishm/multiple-unions

Allow whitespace following unioned query