I'd like to suggest an extension to the Advanced Query parser which would enable expanding column names on aliased entities.
Instead of writting:
SELECT contactlist.*
from {Contact} contactlist
a developer could write:
SELECT {Contact contactlist}.*
from {Contact} contactlist
This would provide the compiler with the information required to expand the columns correctly and would make advanced queries more robust against entity changes.
Cheers,
Davide