The rest of the SQL stuff we got done

The rest of the SQL stuff we finished. Someone forgot to provide a link to my git repository in the paper so I figured I'd just issue a pull request.

Support for

- join with select
- renaming to alleviate the issue with name resolution on subqueries
- some more test cases