Rename over aliased tabled generates correct SQL fragments