[WIP] [DDC-3042] SQL Alias collisions in DQL

Verifies DDC-3042

Still WIP, no fixes so far.