properly handle alias in query columns, correct handling of implicit mixin columns