select a,i from
(select ['c','b','a'] arr)
array join arr as a, arrayEnumerate(arr) as i
┌─a─┬─i─┐
│ c │ 1 │
│ b │ 2 │
│ a │ 3 │
└───┴───┘
select (arrayJoin(arrayZip(arr, arrayEnumerate(arr))) as x).1 a, x.2 i
from
(select ['c','b','a'] arr)
┌─a─┬─i─┐
│ c │ 1 │
│ b │ 2 │
│ a │ 3 │
└───┴───┘