with recursive f(x)as(select""union select x+8 from f limit 32)select(select substr(v,x+5-(substr(v,x+2,1)=substr(v,x+3,1))*2,1)from i)from f