CREATE TABLE t0 (
            c0 ,
            c1 
             ,
            c3 
        );
        WITH cte0 AS (
        SELECT                                                            
          END   
        )SELECT                      c17  
         FROM (SELECT      c11  , TRUE  c16,  c10  c17
            FROM (SELECT t59.    c0  , t59.c3  c6, t59.        c0  , t59.c0  c10, t60.c1  c11, t59.c3  , t59.c1  
               FROM t0  t59
                   JOIN t0  t60
               ORDER BY    c6  )  
            WHERE  (
             SELECT t62.            c0  
              FROM t0  
                 JOIN t0  t62
             )
            ORDER BY c16 )  
         WHERE 51       =
          CASE  c16 WHEN    NULL THEN  c16
          END