0 0 --- cross --- 1 1 1 1 1 1 1 2 2 2 2 \N --- cross nullable --- 1 1 1 1 2 2 1 2 --- cross nullable vs not nullable --- 1 1 1 1 2 2 1 2 --- cross self --- 1 1 1 1 2 2 2 2 --- cross one table expr --- 1 1 1 1 1 1 1 2 1 1 2 \N 1 1 3 \N 2 2 1 1 2 2 1 2 2 2 2 \N 2 2 3 \N --- cross multiple ands --- 1 1 1 1 --- cross and inside and --- 1 1 1 1 --- cross split conjunction --- 1 1 1 1 --- and or --- 1 1 1 1 --- arithmetic expr --- 2 2 1 2 --- is null or --- 1 1 1 2 2 2 2 \N --- do not rewrite alias --- 1 1 2 --- comma --- 1 1 1 1 1 1 1 2 2 2 2 \N --- comma nullable --- 1 1 1 1 2 2 1 2 --- comma and or --- 1 1 1 1 2 2 2 \N --- cross --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON a = t2_00826.a WHERE a = t2_00826.a ORDER BY ALL ASC --- cross nullable --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON a = t2_00826.a WHERE a = t2_00826.a ORDER BY ALL ASC --- cross nullable vs not nullable --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON a = t2_00826.b WHERE a = t2_00826.b ORDER BY ALL ASC --- cross self --- SELECT a, b, y.a, y.b FROM t1_00826 AS x ALL INNER JOIN t1_00826 AS y ON (a = y.a) AND (b = y.b) WHERE (a = y.a) AND (b = y.b) ORDER BY ALL ASC --- cross one table expr --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 CROSS JOIN t2_00826 WHERE a = b ORDER BY ALL ASC --- cross multiple ands --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON (a = t2_00826.a) AND (b = t2_00826.b) WHERE (a = t2_00826.a) AND (b = t2_00826.b) ORDER BY ALL ASC --- cross and inside and --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON (a = t2_00826.a) AND (a = t2_00826.a) AND (a = t2_00826.a) AND (b = t2_00826.b) WHERE (a = t2_00826.a) AND ((a = t2_00826.a) AND ((a = t2_00826.a) AND (b = t2_00826.b))) ORDER BY ALL ASC --- cross split conjunction --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON (a = t2_00826.a) AND (b = t2_00826.b) WHERE (a = t2_00826.a) AND (b = t2_00826.b) AND (a >= 1) AND (t2_00826.b > 0) ORDER BY ALL ASC --- and or --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON (a = t2_00826.a) AND (b = t2_00826.b) WHERE (a = t2_00826.a) AND (b = t2_00826.b) AND ((a >= 1) OR (t2_00826.b = 1)) ORDER BY ALL ASC --- arithmetic expr --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON (a + 1) = (t2_00826.a + t2_00826.b) WHERE ((a + 1) = (t2_00826.a + t2_00826.b)) AND ((((a + b) + t2_00826.a) + t2_00826.b) > 5) ORDER BY ALL ASC --- is null or --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON b = t2_00826.a WHERE (b = t2_00826.a) AND ((t2_00826.b IS NULL) OR (t2_00826.b > t2_00826.a)) ORDER BY ALL ASC --- do not rewrite alias --- SELECT a AS b FROM t1_00826 CROSS JOIN t2_00826 WHERE (b = t2_00826.a) AND (b > 0) ORDER BY ALL ASC --- comma --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON a = t2_00826.a WHERE a = t2_00826.a ORDER BY ALL ASC --- comma nullable --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON b = t2_00826.b WHERE b = t2_00826.b ORDER BY ALL ASC --- comma and or --- SELECT a, b, t2_00826.a, t2_00826.b FROM t1_00826 ALL INNER JOIN t2_00826 ON a = t2_00826.a WHERE (a = t2_00826.a) AND ((t2_00826.b IS NULL) OR (t2_00826.b < 2)) ORDER BY ALL ASC