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