It seems that the beautifier is not working correctly when using functions in the select statement in combination with column aliases.
Please note that the above examples are simplified statements and for showing the problems only.