Fixed alias handling in SQL builders