Support for Join in select and aliased queries