The following code will fail with a bad error:
because there is a space after "foo " but no alias.
We should be able to trim each column safely. At the very least, a better error message would be nice.