Allow select object to pass on select->join

This will able to achieve derived tables.