Translation of SubSelect, correcting aliases of columns and tables