PHOENIX-136 Support derived tables