CREATE TABLE randgen_ykc ( randgen_l2i8lidec INTEGER, randgen_xq82b TEXT, randgen_lfd1o2avn INTEGER, randgen_pnnh INTEGER, randgen_f072 TEXT, randgen_zdoqx5q8 INTEGER, randgen_xt7yef INTEGER, randgen_wpme INTEGER, PRIMARY KEY (randgen_l2i8lidec) ); alter table randgen_ykc rename to randgen_dm2_kr7my; WITH cte_2 AS (select max( cast(subq_1.c0 as SIGNED)) over randgen_cuqn1_44 as c0, subq_1.c0 as c1, subq_1.c0 as c2 from (select (select randgen_lfd1o2avn from randgen_dm2_kr7my order by randgen_lfd1o2avn limit 1 offset 3) as c0, ref_9.randgen_xt7yef as c1 from (randgen_dm2_kr7my as ref_9 inner join randgen_dm2_kr7my as ref_11 on (0<>0)) limit 98) as subq_1 window randgen_cuqn1_44 as ( partition by subq_1.c0 order by subq_1.c0)) select * from ((select ref_15.c0 as c2 from cte_2 as ref_15 ) as subq_2 inner join (select ref_16.c2 as c0 from cte_2 as ref_16 ) as subq_3 on (0<>0)) where EXISTS ( select (select c1 from cte_2 order by c1 limit 1 offset 1) as c0);