Allow using hash for Relation#select to define aliases.

Also allow a subquery as the key