select  
  ref_1.v2 as c0, 
  ref_1.v2 as c1, 
  ref_0.v48 as c2
from 
  test.table75 as ref_0
    right join test.table15 as ref_1
    on ((EXISTS (
          select  
              ref_1.v0 as c0, 
              ref_1.v2 as c1, 
              ref_1.v1 as c2, 
              ref_1.v0 as c3, 
              ref_2.v23 as c4, 
              ref_1.v1 as c5, 
              ref_0.v10 as c6
            from 
              test.table74 as ref_2
                right join test.table42 as ref_3
                on (((0) 
                      or (ref_2.v97 is not NULL)) 
                    and (0))
            where EXISTS (
              select  
                  ref_1.v1 as c0, 
                  ref_0.v47 as c1, 
                  (select v1 from test.table42)
                     as c2, 
                  ref_0.v47 as c3, 
                  ref_0.v33 as c4, 
                  ref_0.v90 as c5, 
                  ref_1.v3 as c6, 
                  ref_3.v2 as c7, 
                  ref_4.v47 as c8, 
                  ref_1.v0 as c9, 
                  ref_0.v54 as c10, 
                  ref_3.v0 as c11, 
                  ref_3.v1 as c12, 
                  ref_0.v48 as c13, 
                  ref_3.v1 as c14, 
                  ref_4.v68 as c15, 
                  (select v8 from test.table20)
                     as c16
                from 
                  test.table75 as ref_4
                where (0) 
                  or ((1) 
                    or (EXISTS (
                      select  
                          ref_1.v3 as c0, 
                          ref_4.v92 as c1
                        from 
                          test.table52 as ref_5
                        where 1)))))) 
        and (EXISTS (
          select  
              ref_0.v23 as c0, 
              ref_6.v21 as c1, 
              (select v2 from test.table41)
                 as c2, 
              ref_0.v59 as c3, 
              ref_6.v22 as c4, 
              (select v2 from test.table38)
                 as c5, 
              ref_0.v9 as c6, 
              ref_1.v3 as c7, 
              (select v9 from test.table44)
                 as c8, 
              ref_6.v64 as c9, 
              ref_0.v60 as c10, 
              ref_6.v6 as c11, 
              ref_1.v0 as c12, 
              ref_1.v3 as c13, 
              ref_0.v74 as c14, 
              ref_6.v93 as c15, 
              ref_1.v1 as c16, 
              ref_6.v85 as c17, 
              ref_1.v0 as c18, 
              ref_1.v3 as c19, 
              ref_0.v66 as c20, 
              64 as c21, 
              ref_6.v47 as c22, 
              ref_0.v61 as c23, 
              ref_1.v3 as c24, 
              ref_0.v26 as c25, 
              ref_6.v80 as c26, 
              ref_6.v98 as c27, 
              ref_0.v68 as c28, 
              ref_1.v2 as c29, 
              ref_0.v98 as c30
            from 
              test.table57 as ref_6
            where ((0) 
                and (0)) 
              and ((1) 
                or (((ref_0.v58 is NULL) 
                    and (ref_0.v21 is NULL)) 
                  or (1))))))
where (ref_0.v79 is NULL) 
  or (1)