hash-threshold 8 statement ok CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok INSERT INTO tab0 VALUES(89,91,82) statement ok INSERT INTO tab0 VALUES(35,97,1) statement ok INSERT INTO tab0 VALUES(24,86,33) statement ok INSERT INTO tab1 VALUES(64,10,57) statement ok INSERT INTO tab1 VALUES(3,26,54) statement ok INSERT INTO tab1 VALUES(80,13,96) statement ok INSERT INTO tab2 VALUES(7,31,27) statement ok INSERT INTO tab2 VALUES(79,17,38) statement ok INSERT INTO tab2 VALUES(78,59,26) query I rowsort SELECT ALL - + col0 * cor0.col0 + 46 FROM tab2 AS cor0 ---- -3 -6038 -6195 query I rowsort SELECT DISTINCT col0 * col0 - + col1 AS col0 FROM tab2 AS cor0 ---- 18 6025 6224 query I rowsort SELECT DISTINCT + - 63 - - cor0.col1 * 79 AS col1 FROM tab1 AS cor0 ---- 1991 727 964 query I rowsort SELECT ALL - + 2 + - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -12 -15 -28 skipif mysql # not compatible query I rowsort SELECT ALL - 63 + col2 * - CAST ( - col1 AS REAL ) + - col2 FROM tab2 AS cor0 ---- 1445 545 747 onlyif mysql # use DIV operator for integer division query I rowsort label-5 SELECT DISTINCT 97 + - col1 DIV - 75 AS col1 FROM tab2 AS cor0 ---- 97 skipif mysql # not compatible query I rowsort label-5 SELECT DISTINCT 97 + - col1 / - 75 AS col1 FROM tab2 AS cor0 ---- 97 query I rowsort SELECT ALL - ( + cor0.col2 ) + - 42 AS col0 FROM tab1 AS cor0 ---- -138 -96 -99 query I rowsort SELECT ALL + - 7 AS col2 FROM tab1 cor0 ---- -7 -7 -7 query I rowsort SELECT ALL - 81 + + col1 AS col0 FROM tab2 AS cor0 ---- -22 -50 -64 query I rowsort SELECT DISTINCT col0 * col2 + 87 + + col2 FROM tab2 AS cor0 ---- 2141 303 3127 query I rowsort SELECT ALL - - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + cor0.col0 * - col2 + ( cor0.col2 ) FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT col2 * - ( col1 ) + - col2 AS col0 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT ALL - 31 * - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5926faa02517b3bd9450e64a60ee04a2 query I rowsort SELECT cor0.col1 + + 29 * + cor0.col2 FROM tab1 AS cor0 ---- 1592 1663 2797 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-15 SELECT col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-15 SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT - ( col1 ) * ( - col0 ) + col1 FROM tab2 ---- 1360 248 4661 query I rowsort SELECT + ( 65 ) FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1c9d0bf96cd3361942fadad668138b9c query I rowsort SELECT + 89 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 query I rowsort SELECT DISTINCT col2 * 92 AS col0 FROM tab2 AS cor0 ---- 2392 2484 3496 query I rowsort SELECT ALL - col0 + + col2 AS col2 FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT cor0.col1 + 78 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 2992782538af61bfb9ccb3542d018345 query I rowsort SELECT DISTINCT + 37 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 37 query I rowsort SELECT DISTINCT + 38 AS col1 FROM tab0, tab1 AS cor0 ---- 38 query I rowsort SELECT 5 * col0 + tab1.col1 AS col2 FROM tab1 ---- 330 41 413 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab1.col1 * + col1 col1 FROM tab1 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col2 * col0 col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - col1 * 91 + col0 AS col0 FROM tab2 AS cor0 ---- -1468 -2814 -5291 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-28 SELECT + CAST( + col1 AS SIGNED ) * - col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 skipif mysql # not compatible query I rowsort label-28 SELECT + CAST ( + col1 AS INTEGER ) * - col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab1 cor0, tab1 cor1 ---- 54 57 96 query I rowsort SELECT ALL 38 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1 ---- 81 values hashing to 9124b06d33995d82062026964cce3a38 query I rowsort SELECT + 30 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- 1050 2670 720 query I rowsort SELECT DISTINCT + + cor0.col2 * col0 FROM tab0 cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 5 * col1 col1 FROM tab0 ---- -430 -455 -485 query I rowsort SELECT 89 + - cor1.col2 FROM tab1, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to 6bc6a31e95b46bd51aee61e03740e188 query I rowsort SELECT + - col0 + + 7 AS col2 FROM tab2 AS cor0 ---- -71 -72 0 query I rowsort SELECT DISTINCT + 76 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1 ---- 76 onlyif mysql # use DIV operator for integer division query I rowsort label-37 SELECT + col2 DIV - col2 AS col1 FROM tab0 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-37 SELECT + col2 / - col2 AS col1 FROM tab0 cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT - 72 * + cor0.col1 AS col0 FROM tab0 AS cor0 ---- -6192 -6552 -6984 query I rowsort SELECT ALL + + cor0.col0 * cor0.col1 + + cor0.col2 * ( col0 ) AS col2 FROM tab1 cor0 ---- 240 4288 8720 query I rowsort SELECT - 42 * 95 FROM tab2 AS cor0 ---- -3990 -3990 -3990 query I rowsort SELECT ( 34 ) AS col0 FROM tab2 AS cor0 ---- 34 34 34 query I rowsort SELECT 66 * + col0 + + 71 * - 45 FROM tab2 cor0 ---- -2733 1953 2019 query I rowsort SELECT ALL tab0.col0 + cor0.col2 * + 29 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 64b029607d5a5bfbc2405f3afede7475 query I rowsort SELECT - + col1 + ( col0 ) FROM tab2 cor0 ---- -24 19 62 query I rowsort SELECT ALL ( - cor0.col2 ) AS col2 FROM tab2, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT col0 * 95 FROM tab1 AS cor0 ---- 285 6080 7600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - 26 ) col1 FROM tab1 AS cor0 ---- -26 -26 -26 query I rowsort SELECT DISTINCT + col1 + 0 * cor0.col1 FROM tab2 AS cor0 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 93 col0 FROM tab2 AS cor0 ---- -93 query I rowsort SELECT ALL 27 + col1 * col1 AS col1 FROM tab2 AS cor0 ---- 316 3508 988 query I rowsort SELECT ALL + 89 * col2 - - col2 FROM tab1 cor0 ---- 4860 5130 8640 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( col1 ) * + cor0.col0 * - col1 col1 FROM tab0 AS cor0 ---- -177504 -329315 -737009 query I rowsort SELECT col1 + - col2 * + tab1.col2 FROM tab1 ---- -2890 -3239 -9203 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 99 col0 FROM tab0 ---- 99 query I rowsort SELECT 93 + tab0.col2 FROM tab0 ---- 126 175 94 query I rowsort SELECT ( + col1 ) + col2 AS col0 FROM tab2 ---- 55 58 85 query I rowsort SELECT - 4 + tab1.col0 AS col1 FROM tab1 ---- -1 60 76 query I rowsort SELECT DISTINCT ( + 50 ) FROM tab2 ---- 50 query I rowsort SELECT ( - col2 * col1 ) - ( col0 + col0 ) AS col1 FROM tab1 ---- -1408 -1410 -698 query I rowsort SELECT DISTINCT - cor0.col0 * col0 * col1 - 48 AS col0 FROM tab2 AS cor0 ---- -106145 -1567 -359004 query I rowsort SELECT DISTINCT + tab1.col2 - + col1 AS col2 FROM tab1 ---- 28 47 83 query I rowsort SELECT col2 * tab1.col0 + + col2 * col1 + + col0 AS col1 FROM tab1 ---- 1569 4282 9008 onlyif mysql # use DIV operator for integer division query I rowsort label-63 SELECT - col1 DIV col1 + col2 DIV tab0.col1 AS col2 FROM tab0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-63 SELECT - col1 / col1 + col2 / tab0.col1 AS col2 FROM tab0 ---- -1 -1 -1 query I rowsort SELECT ALL 46 - + col2 AS col0 FROM tab0 ---- -36 13 45 onlyif mysql # use DIV operator for integer division query I rowsort label-65 SELECT - tab0.col1 DIV tab0.col1 FROM tab0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-65 SELECT - tab0.col1 / tab0.col1 FROM tab0 ---- -1 -1 -1 query I rowsort SELECT + col2 * + col0 + ( col0 ) FROM tab1 AS cor0 ---- 165 3712 7760 onlyif mysql # use DIV operator for integer division query I rowsort label-67 SELECT - col2 + col0 DIV + CAST( 54 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -81 skipif mysql # not compatible query I rowsort label-67 SELECT - col2 + col0 / + CAST ( 54 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - cor0.col0 * + 7 col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 6fcd58c8f5819cd5317a12d4f81ca501 onlyif mysql # use DIV operator for integer division query I rowsort label-69 SELECT - 69 * col1 + + col2 * - col2 DIV - col2 + - 89 * tab0.col1 DIV - col1 AS col2 FROM tab0 ---- -5812 -6108 -6603 skipif mysql # not compatible query I rowsort label-69 SELECT - 69 * col1 + + col2 * - col2 / - col2 + - 89 * tab0.col1 / - col1 AS col2 FROM tab0 ---- -5812 -6108 -6603 query I rowsort SELECT ALL 98 - col1 AS col2 FROM tab2 ---- 39 67 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + cor0.col1 + col2 col2 FROM tab0 AS cor0 ---- 7429 8363 9410 query I rowsort SELECT - col2 * 13 + col1 FROM tab2 cor0 ---- -279 -320 -477 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * 39 col0 FROM tab2 AS cor0 ---- 1209 2301 663 query I rowsort SELECT - + cor0.col0 * + ( col1 ) + - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-75 SELECT ALL - col1 * 71 DIV col0 FROM tab1 AS cor0 ---- -11 -11 -615 skipif mysql # not compatible query I rowsort label-75 SELECT ALL - col1 * 71 / col0 FROM tab1 AS cor0 ---- -11 -11 -615 query I rowsort SELECT + col2 * col1 + 44 FROM tab0 AS cor0 ---- 141 2882 7506 query I rowsort SELECT DISTINCT + col0 * - ( + col1 ) FROM tab1 AS cor0 ---- -1040 -640 -78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-78 SELECT col1 * + CAST( NULL AS SIGNED ) + - col1 * - cor0.col0 * CAST( ( - col0 ) AS SIGNED ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-78 SELECT col1 * + CAST ( NULL AS INTEGER ) + - col1 * - cor0.col0 * CAST ( ( - col0 ) AS INTEGER ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + - col0 * - ( col2 ) * - col0 + - col0 FROM tab1 AS cor0 ---- -233536 -489 -614480 query I rowsort SELECT DISTINCT + + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL cor0.col0 * col0 + col1 FROM tab1 AS cor0 ---- 35 4106 6413 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 - + ( ( + cor0.col0 ) ) col1 FROM tab1 cor0 ---- -29 -74 -93 query I rowsort SELECT DISTINCT - cor0.col2 * - col2 + col1 FROM tab2 cor0 ---- 1461 735 760 query I rowsort SELECT ALL + col2 * + 37 FROM tab0 AS cor0 ---- 1221 3034 37 query I rowsort SELECT DISTINCT 6 * + col2 AS col2 FROM tab0 ---- 198 492 6 query I rowsort SELECT + + col2 * 10 FROM tab1 cor0 ---- 540 570 960 query I rowsort SELECT col2 * col0 * ( + col0 ) FROM tab2 ---- 1323 158184 237158 query I rowsort SELECT - 36 FROM tab1, tab0 AS cor0 ---- 9 values hashing to afecaf209e79e23b6674a73fffa3e837 query I rowsort SELECT ALL - - col2 * 68 AS col0 FROM tab0 AS cor0 ---- 2244 5576 68 query I rowsort SELECT ALL 80 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6dd5038be71dffa82f5ceba787caab91 query I rowsort SELECT ALL col0 + - ( - cor0.col2 ) FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT ALL + + col2 * 95 FROM tab2 AS cor0 ---- 2470 2565 3610 query I rowsort SELECT ALL 95 FROM tab2, tab2 cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 17 col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 43298e43365fccb5146ea32003753c92 query I rowsort SELECT ALL + ( col0 + col2 ) FROM tab1 ---- 121 176 57 query I rowsort SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 7 78 79 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( + 10 AS REAL ) FROM tab1 AS cor0 ---- 10 query I rowsort SELECT + cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 query I rowsort SELECT - + col2 * - 4 + + col0 AS col1 FROM tab0 AS cor0 ---- 156 39 417 query I rowsort SELECT DISTINCT - ( - col0 ) * col2 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT + ( - col2 ) * - col0 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT ALL - ( - 44 + + col1 ) * + 28 AS col2 FROM tab0 ---- -1176 -1316 -1484 query I rowsort SELECT DISTINCT - - 81 * - 55 + + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -4373 -4422 -4454 query I rowsort SELECT + ( col0 ) + - col1 + col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT + cor0.col2 + - cor0.col1 * - col2 FROM tab1 cor0 ---- 1344 1458 627 query I rowsort SELECT - 90 * - col2 FROM tab2 AS cor0 ---- 2340 2430 3420 query I rowsort SELECT ALL + + col0 + - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 * + col0 + col1 + + 23 FROM tab0 AS cor0 ---- 1345 685 8035 query I rowsort SELECT DISTINCT - - 64 FROM tab1 AS cor0 ---- 64 query I rowsort SELECT DISTINCT - tab0.col0 AS col0 FROM tab0, tab1 cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col1 * col2 col2 FROM tab1 cor0 ---- -36480 -4212 -99840 onlyif mysql # use DIV operator for integer division query I rowsort label-112 SELECT - col2 DIV col0 col2 FROM tab0 AS cor0 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-112 SELECT - col2 / col0 col2 FROM tab0 AS cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-113 SELECT + - 50 DIV col0 + cor0.col1 FROM tab0 AS cor0 ---- 84 91 96 skipif mysql # not compatible query I rowsort label-113 SELECT + - 50 / col0 + cor0.col1 FROM tab0 AS cor0 ---- 84 91 96 query I rowsort SELECT + col0 + + col1 * + 70 FROM tab1 AS cor0 ---- 1823 764 990 query I rowsort SELECT - + col1 + - col2 * + ( col2 + - col0 ) FROM tab2 AS cor0 ---- -571 1293 1541 query I rowsort SELECT + col1 * cor0.col1 + - 78 FROM tab0 AS cor0 ---- 7318 8203 9331 onlyif mysql # use DIV operator for integer division query I rowsort label-117 SELECT - + col2 + cor0.col1 DIV 53 FROM tab1 cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-117 SELECT - + col2 + cor0.col1 / 53 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT col0 + + cor0.col2 * col1 AS col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT 7 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 7 query I rowsort SELECT DISTINCT - tab2.col0 * + tab2.col0 AS col0 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT ALL + - col2 * 64 + + col1 * - col2 FROM tab1 AS cor0 ---- -4218 -4860 -7392 query I rowsort SELECT - col0 * + ( + col1 ) AS col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-123 SELECT DISTINCT col0 DIV 73 FROM tab0 cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-123 SELECT DISTINCT col0 / 73 FROM tab0 cor0 ---- 0 1 query I rowsort SELECT ALL - + cor0.col0 + col1 FROM tab0 cor0 ---- 2 62 62 query I rowsort SELECT DISTINCT - 7 * 55 + col1 AS col1 FROM tab0 AS cor0 ---- -288 -294 -299 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col1 + + col0 col2 FROM tab2 AS cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 69 + - col2 col1 FROM tab2 cor0 ---- 31 42 43 query I rowsort SELECT ALL - col2 + 7 AS col2 FROM tab1 ---- -47 -50 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-129 SELECT ALL col2 + + CAST( col2 AS SIGNED ) FROM tab0 ---- 164 2 66 skipif mysql # not compatible query I rowsort label-129 SELECT ALL col2 + + CAST ( col2 AS INTEGER ) FROM tab0 ---- 164 2 66 query I rowsort SELECT + 53 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to fede6033dee346dbd272085c05724fda query I rowsort SELECT DISTINCT ( - ( - cor0.col1 ) ) * - col0 + + col2 * + col2 AS col2 FROM tab2 AS cor0 ---- -3926 101 512 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-132 SELECT DISTINCT CAST( - col1 + col1 AS SIGNED ) * 82 col2 FROM tab0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-132 SELECT DISTINCT CAST ( - col1 + col1 AS INTEGER ) * 82 col2 FROM tab0 ---- 0 query III rowsort SELECT * FROM tab0 WHERE col2 IN ( - tab0.col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-134 SELECT ALL col0 + col1 DIV col2 AS col0 FROM tab0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-134 SELECT ALL col0 + col1 / col2 AS col0 FROM tab0 ---- 132 26 90 query III rowsort SELECT * FROM tab0 WHERE col0 * col1 = + col2 ---- query I rowsort SELECT ALL col1 + + col0 - col2 FROM tab2 WHERE NOT col0 <> + col2 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-137 SELECT + tab2.col2 DIV col1 AS col1 FROM tab2 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-137 SELECT + tab2.col2 / col1 AS col1 FROM tab2 ---- 0 0 2 onlyif mysql # use DIV operator for integer division query I rowsort label-138 SELECT col0 * col2 DIV + col1 + + col1 + + tab0.col0 DIV col1 FROM tab0 ---- 171 95 97 skipif mysql # not compatible query I rowsort label-138 SELECT col0 * col2 / + col1 + + col1 + + tab0.col0 / col1 FROM tab0 ---- 171 95 97 onlyif mysql # use DIV operator for integer division query I rowsort label-139 SELECT DISTINCT + col2 DIV tab1.col2 + col1 DIV - col1 FROM tab1 ---- 0 skipif mysql # not compatible query I rowsort label-139 SELECT DISTINCT + col2 / tab1.col2 + col1 / - col1 FROM tab1 ---- 0 query I rowsort SELECT ALL tab2.col1 * col0 + - tab2.col1 + + col2 FROM tab2 WHERE NULL IN ( + col2 + + col2 ) ---- query I rowsort SELECT col2 + col0 + + tab2.col1 AS col2 FROM tab2 ---- 134 163 65 onlyif mysql # use DIV operator for integer division query I rowsort label-142 SELECT + col1 + col2 DIV + col0 FROM tab0 ---- 87 91 97 skipif mysql # not compatible query I rowsort label-142 SELECT + col1 + col2 / + col0 FROM tab0 ---- 87 91 97 query I rowsort SELECT + col1 / + col1 FROM tab2 WHERE ( NULL ) <> - col1 * tab2.col2 ---- query I rowsort SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NULL <= col0 * col1 ---- query I rowsort SELECT ALL tab0.col1 - col2 AS col0 FROM tab0 ---- 53 9 96 query I rowsort SELECT + col0 * + col1 AS col2 FROM tab0 WHERE ( col1 * + col0 * + col2 ) <> ( NULL ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col2 + col0 col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT col0 * col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -45 4039 6304 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + cor0.col2 col0 FROM tab0 cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-150 SELECT - col0 DIV col1 + - cor0.col2 * + col2 FROM tab1 AS cor0 ---- -2916 -3255 -9222 skipif mysql # not compatible query I rowsort label-150 SELECT - col0 / col1 + - cor0.col2 * + col2 FROM tab1 AS cor0 ---- -2916 -3255 -9222 query I rowsort SELECT cor0.col1 * + col1 * col0 + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 13533 2054 6410 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) > ( col2 + - col0 ) ---- query I rowsort SELECT col0 * - col1 + col1 AS col2 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE + col1 < + col0 * col0 * col0 ---- 54 57 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-155 SELECT ALL + cor0.col1 * CAST( NULL AS SIGNED ) * 68 + col0 / 54 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-155 SELECT ALL + cor0.col1 * CAST ( NULL AS INTEGER ) * 68 + col0 / 54 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + col2 * ( col1 ) + - col2 AS col1 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT DISTINCT - col2 + - ( cor0.col0 + col0 ) AS col0 FROM tab0 AS cor0 ---- -260 -71 -81 query I rowsort SELECT DISTINCT col0 + - col1 + + col1 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-159 SELECT col0 * - CAST( NULL AS SIGNED ) * 69 AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-159 SELECT col0 * - CAST ( NULL AS INTEGER ) * 69 AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 * 30 FROM tab0 cor0 ---- 1050 2670 720 query I rowsort SELECT ALL + cor0.col1 + - 11 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 126 27 85 query I rowsort SELECT - col0 + - col1 * col0 AS col1 FROM tab1 cor0 ---- -1120 -704 -81 query I rowsort SELECT DISTINCT - cor0.col2 * cor0.col2 * col1 + - col2 * ( col2 ) * + col2 AS col2 FROM tab0 cor0 ---- -1163252 -129591 -98 query I rowsort SELECT ALL - col1 + - col0 * - col2 FROM tab0 AS cor0 ---- -62 706 7207 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-165 SELECT + col0 + + CAST( NULL AS DECIMAL ) + - col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-165 SELECT + col0 + + CAST ( NULL AS REAL ) + - col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-166 SELECT - + col0 - - CAST( ( - col2 ) AS SIGNED ) FROM tab0 AS cor0 ---- -171 -36 -57 skipif mysql # not compatible query I rowsort label-166 SELECT - + col0 - - CAST ( ( - col2 ) AS INTEGER ) FROM tab0 AS cor0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-167 SELECT DISTINCT - col2 * 69 + + cor0.col1 * col2 DIV - cor0.col2 FROM tab0 AS cor0 ---- -166 -2363 -5749 skipif mysql # not compatible query I rowsort label-167 SELECT DISTINCT - col2 * 69 + + cor0.col1 * col2 / - cor0.col2 FROM tab0 AS cor0 ---- -166 -2363 -5749 onlyif mysql # use DIV operator for integer division query I rowsort label-168 SELECT col0 DIV 64 + col0 FROM tab2 AS cor0 ---- 7 79 80 skipif mysql # not compatible query I rowsort label-168 SELECT col0 / 64 + col0 FROM tab2 AS cor0 ---- 7 79 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 - - col0 col0 FROM tab1 cor0 ---- 128 160 6 query I rowsort SELECT ALL col1 * - col2 * + 13 AS col0 FROM tab2 AS cor0 ---- -10881 -19942 -8398 query I rowsort SELECT DISTINCT - - col1 + col2 AS col0 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT + col1 + col1 + + 33 * col0 FROM tab1 AS cor0 ---- 151 2132 2666 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-173 SELECT ALL CAST( NULL AS SIGNED ) * col1 / col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-173 SELECT ALL CAST ( NULL AS INTEGER ) * col1 / col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * - col1 + + cor0.col2 * 6 FROM tab0 AS cor0 ---- -2640 -6970 -91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - ( + col0 ) ) col0 FROM tab0 cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + col2 ) * + col0 col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT + col1 * col2 + 36 FROM tab1 ---- 1284 1440 606 query I rowsort SELECT + col2 + - ( + col0 ) FROM tab1 ---- -7 16 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 99 * + col0 + col0 col1 FROM tab0 AS cor0 ---- -2352 -3430 -8722 query I rowsort SELECT DISTINCT col2 * + col0 + - cor0.col2 * col2 AS col2 FROM tab2 AS cor0 ---- -540 1352 1558 query I rowsort SELECT DISTINCT - 41 * - col0 AS col0 FROM tab0 AS cor0 ---- 1435 3649 984 query I rowsort SELECT DISTINCT + col2 * col1 + 42 * - col2 FROM tab2 AS cor0 ---- -297 -950 442 query I rowsort SELECT + col0 * tab1.col2 FROM tab1 WHERE col0 BETWEEN - col2 * + col0 AND col2 ---- 162 7680 query I rowsort SELECT DISTINCT - ( col1 ) - col2 * col2 * col2 AS col1 FROM tab1 AS cor0 ---- -157490 -185203 -884749 query I rowsort SELECT col1 - col0 * ( tab1.col1 * col0 ) FROM tab1 ---- -208 -40950 -83187 query I rowsort SELECT col1 + + col1 * col0 * tab2.col1 + col2 FROM tab2 ---- 22886 271603 6785 query I rowsort SELECT col1 + + col1 * - 31 - - col2 FROM tab1 ---- -243 -294 -726 onlyif mysql # use DIV operator for integer division query I rowsort label-188 SELECT DISTINCT 13 DIV - col0 - + 26 DIV tab1.col0 FROM tab1 ---- -12 0 skipif mysql # not compatible query I rowsort label-188 SELECT DISTINCT 13 / - col0 - + 26 / tab1.col0 FROM tab1 ---- -12 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-189 SELECT 28 + tab0.col2 * ( col1 ) - - col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 ---- 14952 222 5704 skipif mysql # not compatible query I rowsort label-189 SELECT 28 + tab0.col2 * ( col1 ) - - col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 ---- 14952 222 5704 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 - col1 * + ( - 57 ) col0 FROM tab1 ---- 1508 580 754 query I rowsort SELECT DISTINCT - + ( + 90 ) FROM tab1 cor0 ---- -90 query I rowsort SELECT DISTINCT + 88 AS col2 FROM tab2 AS cor0 ---- 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-193 SELECT - - CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-193 SELECT - - CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 + cor0.col0 * cor0.col2 FROM tab2 AS cor0 ---- 196 2106 3081 skipif mysql # not compatible query I rowsort SELECT DISTINCT - - CAST ( ( col1 ) AS REAL ) AS col2 FROM tab1 AS cor0 ---- 10 13 26 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e query I rowsort SELECT ALL + 45 + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0 ---- 71 72 83 onlyif mysql # use DIV operator for integer division query I rowsort label-198 SELECT ALL 94 DIV - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2 ---- 81 values hashing to 3306502bbf7b9baaf393028679f36112 skipif mysql # not compatible query I rowsort label-198 SELECT ALL 94 / - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2 ---- 81 values hashing to 3306502bbf7b9baaf393028679f36112 query I rowsort SELECT DISTINCT col0 * tab0.col0 + col0 * + col1 AS col0 FROM tab0 ---- 16020 2640 4620 query I rowsort SELECT ALL - ( - col0 ) + + col2 FROM tab1 ---- 121 176 57 query I rowsort SELECT ALL - 54 FROM tab0, tab1 cor0, tab2 cor1 ---- 27 values hashing to 71e27a12767d3a987ce05e4d6edad211 query I rowsort SELECT - + col2 * + col1 * + col1 AS col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT DISTINCT + 23 * col2 + col2 AS col1 FROM tab1 ---- 1296 1368 2304 query I rowsort SELECT DISTINCT - col2 + tab0.col2 * tab0.col2 FROM tab0 ---- 0 1056 6642 query I rowsort SELECT DISTINCT - 41 AS col0 FROM tab2 AS cor0 ---- -41 query I rowsort SELECT ALL col0 * + col0 + 37 * + 29 + col2 * ( col1 + col1 ) AS col2 FROM tab1 ---- 3890 6309 9969 query I rowsort SELECT ALL 12 + - col1 FROM tab1 ---- -1 -14 2 query I rowsort SELECT col2 * - ( 9 ) AS col0 FROM tab1 cor0 ---- -486 -513 -864 query I rowsort SELECT col1 * + 28 + + col1 FROM tab1 AS cor0 ---- 290 377 754 query I rowsort SELECT DISTINCT - - cor0.col0 + col1 AS col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT + col2 * 1 - col0 * + col2 AS col2 FROM tab0 AS cor0 ---- -34 -7216 -759 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + + 65 col2 FROM tab2 AS cor0 ---- 103 91 92 query I rowsort SELECT col1 + - ( ( col2 ) ) FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT DISTINCT - col0 + - 26 * 33 FROM tab2 AS cor0 ---- -865 -936 -937 query I rowsort SELECT + - cor0.col0 + col1 * col1 FROM tab2 AS cor0 ---- 210 3403 954 query I rowsort SELECT DISTINCT col0 * - ( + 63 ) + - col1 * 56 FROM tab0 AS cor0 ---- -10703 -6328 -7637 onlyif mysql # use DIV operator for integer division query I rowsort label-217 SELECT DISTINCT col1 DIV + ( cor0.col0 ) + cor0.col2 DIV 97 + col0 AS col1 FROM tab1 AS cor0 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-217 SELECT DISTINCT col1 / + ( cor0.col0 ) + cor0.col2 / 97 + col0 AS col1 FROM tab1 AS cor0 ---- 11 64 80 query I rowsort SELECT - cor0.col0 + - ( col2 ) FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT + col1 * + 73 AS col0 FROM tab2 AS cor0 ---- 1241 2263 4307 query I rowsort SELECT - cor0.col2 + ( col2 ) * col0 FROM tab1 cor0 ---- 108 3591 7584 query I rowsort SELECT + + cor0.col2 + 5 * - col2 AS col2 FROM tab1 AS cor0 ---- -216 -228 -384 query I rowsort SELECT ALL col1 * col0 * col2 + col1 + col2 * - col1 * - col1 AS col1 FROM tab2 AS cor0 ---- 210217 31837 62033 onlyif mysql # use DIV operator for integer division query I rowsort label-223 SELECT DISTINCT - + col2 * col0 * col2 - col1 DIV 83 FROM tab0 AS cor0 ---- -26137 -36 -598437 skipif mysql # not compatible query I rowsort label-223 SELECT DISTINCT - + col2 * col0 * col2 - col1 / 83 FROM tab0 AS cor0 ---- -26137 -36 -598437 query I rowsort SELECT DISTINCT col2 * col0 * + 61 FROM tab0 ---- 2135 445178 48312 query I rowsort SELECT DISTINCT col0 * - 81 * + 38 AS col1 FROM tab0 ---- -107730 -273942 -73872 query I rowsort SELECT ALL - col0 * 67 AS col0 FROM tab2 ---- -469 -5226 -5293 query I rowsort SELECT DISTINCT 34 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 34 query I rowsort SELECT cor0.col2 * + cor0.col0 + col2 + col1 AS col1 FROM tab1 AS cor0 ---- 242 3715 7789 query I rowsort SELECT - - col1 * + 78 AS col2 FROM tab1 AS cor0 ---- 1014 2028 780 query I rowsort SELECT cor0.col2 + ( + ( col2 ) ) FROM tab1 AS cor0 ---- 108 114 192 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-231 SELECT tab1.col2 * - CAST( NULL AS DECIMAL ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-231 SELECT tab1.col2 * - CAST ( NULL AS REAL ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL + cor0.col0 * ( - 31 ) FROM tab1 cor0 ---- -1984 -2480 -93 query I rowsort SELECT + col1 + - ( col0 ) * 48 * col0 FROM tab2 AS cor0 ---- -2321 -291973 -299551 query I rowsort SELECT ALL cor0.col2 - ( + cor0.col1 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 92ef426526338653e88acd4aba639c47 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-235 SELECT + - CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0 ---- -289 -3481 -961 skipif mysql # not compatible query I rowsort label-235 SELECT + - CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 61 col0 FROM tab1 cor0 ---- -61 -61 -61 query I rowsort SELECT - ( - ( - col1 ) ) * + 73 * + ( col0 ) + - col1 * + col1 AS col2 FROM tab1 AS cor0 ---- -46820 -6370 -76089 query I rowsort SELECT + col1 * 85 FROM tab1 AS cor0 ---- 1105 2210 850 query I rowsort SELECT + 16 + + col2 + col0 AS col1 FROM tab1 cor0 ---- 137 192 73 onlyif mysql # use DIV operator for integer division query I rowsort label-240 SELECT + col2 DIV + cor0.col2 + + col0 * + 0 * col1 AS col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-240 SELECT + col2 / + cor0.col2 + + col0 * + 0 * col1 AS col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + + col1 * + col0 + col1 AS col2 FROM tab0 AS cor0 ---- 2150 3492 8190 onlyif mysql # use DIV operator for integer division query I rowsort label-242 SELECT + col2 * col2 - col1 DIV + col0 AS col1 FROM tab1 AS cor0 ---- 2908 3249 9216 skipif mysql # not compatible query I rowsort label-242 SELECT + col2 * col2 - col1 / + col0 AS col1 FROM tab1 AS cor0 ---- 2908 3249 9216 query I rowsort SELECT ALL + + col0 * col1 * col2 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT + col2 * + col0 - + 2 AS col1 FROM tab1 AS cor0 ---- 160 3646 7678 query I rowsort SELECT ALL - + 39 + col0 AS col2 FROM tab0 AS cor0 ---- -15 -4 50 onlyif mysql # use DIV operator for integer division query I rowsort label-246 SELECT - - 93 DIV col1 + 92 FROM tab0 AS cor0 ---- 92 93 93 skipif mysql # not compatible query I rowsort label-246 SELECT - - 93 / col1 + 92 FROM tab0 AS cor0 ---- 92 93 93 onlyif mysql # use DIV operator for integer division query I rowsort label-247 SELECT - - 66 DIV + col1 + CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0 ---- 164 3654 7685 skipif mysql # not compatible query I rowsort label-247 SELECT - - 66 / + col1 + CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0 ---- 164 3654 7685 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-248 SELECT - - col2 + - col1 * + CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0 ---- -611802 -93621 -96 skipif mysql # not compatible query I rowsort label-248 SELECT - - col2 + - col1 * + CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0 ---- -611802 -93621 -96 query I rowsort SELECT + + col0 - col1 FROM tab2 cor0 ---- -24 19 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-250 SELECT - col2 * + col2 * - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 119808 32490 75816 skipif mysql # not compatible query I rowsort label-250 SELECT - col2 * + col2 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 119808 32490 75816 onlyif mysql # use DIV operator for integer division query I rowsort label-251 SELECT col1 + ( col0 ) DIV + col1 AS col1 FROM tab1 cor0 ---- 16 19 26 skipif mysql # not compatible query I rowsort label-251 SELECT col1 + ( col0 ) / + col1 AS col1 FROM tab1 cor0 ---- 16 19 26 query I rowsort SELECT col1 * col0 + col2 + col1 FROM tab0 AS cor0 ---- 2183 3493 8272 query I rowsort SELECT DISTINCT + col0 * - col1 + + col2 FROM tab2 ---- -1305 -190 -4576 query I rowsort SELECT cor0.col2 * + col1 + ( col2 ) * + col0 * - 81 FROM tab1 AS cor0 ---- -11718 -294918 -620832 query I rowsort SELECT DISTINCT col2 + - col2 * - ( cor0.col0 * + col1 ) AS col2 FROM tab0 AS cor0 ---- 3396 664200 68145 query I rowsort SELECT DISTINCT - ( cor0.col2 ) - ( - 52 ) AS col1 FROM tab1 AS cor0 ---- -2 -44 -5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 + + col0 col2 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT cor0.col2 + - col1 * cor0.col2 FROM tab1 cor0 ---- -1152 -1350 -513 query I rowsort SELECT ALL - - 77 AS col2 FROM tab2 cor0 ---- 77 77 77 skipif mysql # not compatible query I rowsort SELECT + ( + col2 ) * - CAST ( col2 AS REAL ) + + col1 FROM tab1 AS cor0 ---- -2890 -3239 -9203 onlyif mysql # use DIV operator for integer division query I rowsort label-261 SELECT + 71 + + col2 DIV col0 FROM tab2 AS cor0 ---- 71 71 74 skipif mysql # not compatible query I rowsort label-261 SELECT + 71 + + col2 / col0 FROM tab2 AS cor0 ---- 71 71 74 query I rowsort SELECT DISTINCT - ( - 19 ) - tab0.col1 AS col1 FROM tab0 ---- -67 -72 -78 query I rowsort SELECT - 71 * - col0 FROM tab2 ---- 497 5538 5609 query I rowsort SELECT ALL col0 * 38 FROM tab0 ---- 1330 3382 912 query I rowsort SELECT DISTINCT + ( 98 ) AS col1 FROM tab0 ---- 98 query I rowsort SELECT col1 * + col1 + - 22 FROM tab2 AS cor0 ---- 267 3459 939 query I rowsort SELECT - 60 + col1 AS col0 FROM tab2 AS cor0 ---- -1 -29 -43 query I rowsort SELECT ALL 37 - col2 AS col2 FROM tab1 ---- -17 -20 -59 query I rowsort SELECT + ( tab0.col1 ) + + col1 - - 44 FROM tab0 ---- 216 226 238 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-270 SELECT CAST( NULL AS SIGNED ) * 50 + - col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-270 SELECT CAST ( NULL AS INTEGER ) * 50 + - col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 4 AS col1 FROM tab0, tab0 cor0 ---- 9 values hashing to 6fec965b60b9885c4af73e85422cfd9b query I rowsort SELECT DISTINCT ( - 22 ) + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -104 -23 -55 query I rowsort SELECT 43 - 48 * col0 AS col2 FROM tab0 AS cor0 ---- -1109 -1637 -4229 onlyif mysql # use DIV operator for integer division query I rowsort label-274 SELECT ALL + col1 DIV col1 + + col0 AS col2 FROM tab1 AS cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-274 SELECT ALL + col1 / col1 + + col0 AS col2 FROM tab1 AS cor0 ---- 4 65 81 query I rowsort SELECT ALL - col2 + + col1 - col1 * col0 FROM tab1 AS cor0 ---- -106 -1123 -687 onlyif mysql # use DIV operator for integer division query I rowsort label-276 SELECT - + col0 + ( col2 ) DIV + 77 AS col2 FROM tab2 cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-276 SELECT - + col0 + ( col2 ) / + 77 AS col2 FROM tab2 cor0 ---- -7 -78 -79 query I rowsort SELECT ALL 83 * ( - tab1.col2 ) - + tab1.col2 * 3 AS col1 FROM tab1 ---- -4644 -4902 -8256 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2 ---- 3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa query I rowsort SELECT col0 + - 70 FROM tab1 AS cor0 ---- -6 -67 10 query I rowsort SELECT ALL - ( col1 ) + col0 AS col0 FROM tab0 AS cor0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( + cor0.col1 ) col1 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT cor0.col0 + cor0.col2 * - col1 FROM tab0 cor0 ---- -2814 -62 -7373 query I rowsort SELECT 56 AS col0 FROM tab1 cor0 ---- 56 56 56 query I rowsort SELECT ALL - + col0 + - 59 * - cor0.col0 * col2 FROM tab0 AS cor0 ---- 2030 430493 46704 query I rowsort SELECT DISTINCT - ( + 98 ) AS col1 FROM tab0 AS cor0 ---- -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 * ( col2 ) * col2 col2 FROM tab1 AS cor0 ---- 157464 185193 884736 query I rowsort SELECT + ( - col2 ) * - col1 AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + - col1 * + col0 * col0 AS col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT 68 * + col1 AS col1 FROM tab1 cor0 ---- 1768 680 884 query I rowsort SELECT DISTINCT - - 49 * + col1 AS col2 FROM tab0 AS cor0 ---- 4214 4459 4753 query I rowsort SELECT + 8 + col2 * + ( + col2 ) AS col1 FROM tab1 AS cor0 ---- 2924 3257 9224 query I rowsort SELECT DISTINCT 94 * col2 FROM tab1 AS cor0 ---- 5076 5358 9024 query I rowsort SELECT - + ( - col1 ) * - col2 + + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1456 -567 -830 onlyif mysql # use DIV operator for integer division query I rowsort label-294 SELECT ALL col0 DIV col1 - - tab1.col1 AS col1 FROM tab1 ---- 16 19 26 skipif mysql # not compatible query I rowsort label-294 SELECT ALL col0 / col1 - - tab1.col1 AS col1 FROM tab1 ---- 16 19 26 query I rowsort SELECT ALL + 24 + cor0.col0 AS col1 FROM tab2 cor0 ---- 102 103 31 query I rowsort SELECT + + col2 * cor0.col0 * 40 + - 62 * col0 FROM tab1 AS cor0 ---- 141952 302240 6294 query I rowsort SELECT + col1 + - 45 FROM tab0 AS cor0 ---- 41 46 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 - + ( 33 ) col0 FROM tab0 AS cor0 ---- 53 58 64 query I rowsort SELECT DISTINCT col0 * ( + 89 ) AS col2 FROM tab1 ---- 267 5696 7120 onlyif mysql # use DIV operator for integer division query I rowsort label-300 SELECT - - cor0.col0 DIV 21 FROM tab0 AS cor0 ---- 1 1 4 skipif mysql # not compatible query I rowsort label-300 SELECT - - cor0.col0 / 21 FROM tab0 AS cor0 ---- 1 1 4 query I rowsort SELECT ALL - - cor0.col2 * 62 AS col0 FROM tab0 AS cor0 ---- 2046 5084 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-302 SELECT - CAST( NULL AS SIGNED ) * + 82 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-302 SELECT - CAST ( NULL AS INTEGER ) * + 82 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT - col0 * col1 * - 40 FROM tab0 AS cor0 ---- 135800 323960 82560 query I rowsort SELECT ALL 42 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e query I rowsort SELECT - cor0.col2 * 97 + + cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- 81 values hashing to a126b4013d456931286d4c4048c22013 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-306 SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 + - col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-306 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + - col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL + + ( - 27 ) FROM tab1 AS cor0 ---- -27 -27 -27 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-308 SELECT DISTINCT - col1 * - 93 * + col0 + CAST( NULL AS SIGNED ) * col1 * - col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-308 SELECT DISTINCT - col1 * - 93 * + col0 + CAST ( NULL AS INTEGER ) * col1 * - col2 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + col1 * - col1 col2 FROM tab1 ---- -156 -650 -90 query I rowsort SELECT DISTINCT - col2 * + tab1.col1 * ( col2 + - col1 ) AS col1 FROM tab1 ---- -103584 -26790 -39312 query I rowsort SELECT - col0 * - col0 + col2 * cor0.col0 * col1 + + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 125814 57354 5915 query I rowsort SELECT ALL - + 97 * - col0 FROM tab1 AS cor0 ---- 291 6208 7760 query I rowsort SELECT 96 * + col1 + + col1 * 11 AS col0 FROM tab1 AS cor0 ---- 1070 1391 2782 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-314 SELECT - col0 + col0 * CAST( NULL AS DECIMAL ) + col2 * - col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-314 SELECT - col0 + col0 * CAST ( NULL AS REAL ) + col2 * - col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 + - col1 * - 3 + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 104 107 132 query I rowsort SELECT DISTINCT - col2 * + col1 + col0 * col2 + col2 FROM tab2 AS cor0 ---- -621 2394 520 query I rowsort SELECT + col0 + + col2 + + ( 86 ) FROM tab1 cor0 ---- 143 207 262 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-318 SELECT ALL + - ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-318 SELECT ALL + - ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-319 SELECT DISTINCT - col1 * cor0.col0 + - 87 * 39 * - cor0.col2 + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 109991 270218 95 skipif mysql # not compatible query I rowsort label-319 SELECT DISTINCT - col1 * cor0.col0 + - 87 * 39 * - cor0.col2 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 109991 270218 95 query I rowsort SELECT col2 * col1 + 7 * + col0 AS col0 FROM tab2 cor0 ---- 1199 2080 886 query I rowsort SELECT DISTINCT - ( col2 ) + + 84 FROM tab2 AS cor0 ---- 46 57 58 query I rowsort SELECT - + col2 * col0 * col2 AS col0 FROM tab1 cor0 ---- -207936 -737280 -8748 query I rowsort SELECT col1 * + 94 FROM tab0 AS cor0 ---- 8084 8554 9118 query I rowsort SELECT - col0 + + col0 * col1 + + col2 * col1 FROM tab1 cor0 ---- 1146 1479 2208 query I rowsort SELECT DISTINCT + 39 + - cor1.col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab1 AS cor2 ---- -43 38 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 50 + - col2 col2 FROM tab0 AS cor0 ---- -32 17 49 query I rowsort SELECT ALL - ( - 61 ) * col0 + col0 AS col1 FROM tab1 AS cor0 ---- 186 3968 4960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - ( cor0.col0 ) ) * 21 col1 FROM tab1 cor0 ---- -1344 -1680 -63 query I rowsort SELECT + - col1 - + cor0.col0 * col1 AS col0 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT DISTINCT ( col1 ) + + col2 * ( - col2 ) FROM tab0 AS cor0 ---- -1003 -6633 96 query I rowsort SELECT + + 70 * 62 + col0 + 89 FROM tab1 AS cor0 ---- 4432 4493 4509 onlyif mysql # use DIV operator for integer division query I rowsort label-332 SELECT DISTINCT - + 67 DIV + 70 AS col2 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-332 SELECT DISTINCT - + 67 / + 70 AS col2 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL tab2.col1 + + col1 - + 9 FROM tab2 ---- 109 25 53 query I rowsort SELECT ALL - col2 + + ( + 78 ) - + col2 FROM tab1 ---- -114 -30 -36 query I rowsort SELECT + col2 + cor0.col1 * - col0 FROM tab2 AS cor0 ---- -1305 -190 -4576 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * 45 + col2 + col0 col1 FROM tab2 ---- -281 -3406 -3438 query I rowsort SELECT - - 4 * - col1 FROM tab1 AS cor0 ---- -104 -40 -52 query I rowsort SELECT + - col2 + col0 + 32 * 22 FROM tab1 AS cor0 ---- 653 688 711 onlyif mysql # use DIV operator for integer division query I rowsort label-339 SELECT - ( col2 ) + - col2 DIV ( col1 * cor0.col0 ) + ( col1 ) AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 skipif mysql # not compatible query I rowsort label-339 SELECT - ( col2 ) + - col2 / ( col1 * cor0.col0 ) + ( col1 ) AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-340 SELECT ALL col0 + - tab1.col1 DIV col0 FROM tab1 ---- -5 64 80 skipif mysql # not compatible query I rowsort label-340 SELECT ALL col0 + - tab1.col1 / col0 FROM tab1 ---- -5 64 80 query I rowsort SELECT ALL + ( col1 ) + - col1 * col1 FROM tab1 ---- -156 -650 -90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-342 SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-342 SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT - - 22 * col2 - ( col0 ) FROM tab0 AS cor0 ---- -13 1715 702 onlyif mysql # use DIV operator for integer division query I rowsort label-344 SELECT col2 + col2 DIV + ( col0 ) AS col1 FROM tab2 AS cor0 ---- 26 30 38 skipif mysql # not compatible query I rowsort label-344 SELECT col2 + col2 / + ( col0 ) AS col1 FROM tab2 AS cor0 ---- 26 30 38 query I rowsort SELECT + ( - col1 ) * + col1 - col0 FROM tab2 AS cor0 ---- -3559 -368 -968 query I rowsort SELECT ALL ( ( + tab0.col2 ) * + 30 ) FROM tab0 ---- 2460 30 990 query I rowsort SELECT + col2 * col1 * + 0 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL tab2.col0 * + ( tab2.col1 * tab2.col2 ) FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT + 34 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT DISTINCT + + col0 * + 28 - + 99 AS col0 FROM tab2 cor0 ---- 2085 2113 97 query I rowsort SELECT + - 37 * 48 FROM tab1 AS cor0 ---- -1776 -1776 -1776 query I rowsort SELECT + - ( 70 ) * + col0 FROM tab1 AS cor0 ---- -210 -4480 -5600 query I rowsort SELECT DISTINCT col1 + 7 FROM tab0 ---- 104 93 98 onlyif mysql # use DIV operator for integer division query I rowsort label-354 SELECT DISTINCT + cor0.col2 DIV + 42 AS col2 FROM tab1, tab2 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-354 SELECT DISTINCT + cor0.col2 / + 42 AS col2 FROM tab1, tab2 cor0 ---- 0 query I rowsort SELECT - - cor0.col2 * 75 + + col1 FROM tab2 AS cor0 ---- 2009 2056 2867 query I rowsort SELECT + col2 * + 86 AS col2 FROM tab2 AS cor0 ---- 2236 2322 3268 query I rowsort SELECT ALL col2 * + cor0.col1 + + 71 FROM tab1 AS cor0 ---- 1319 1475 641 query I rowsort SELECT + col0 + - ( col1 ) * + cor0.col1 AS col1 FROM tab1 AS cor0 ---- -36 -673 -89 query I rowsort SELECT - 28 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-360 SELECT + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-360 SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - + 52 + cor0.col0 * col0 FROM tab2 AS cor0 ---- -3 6032 6189 query I rowsort SELECT - 7 * ( col1 ) FROM tab0 AS cor0 ---- -602 -637 -679 query I rowsort SELECT DISTINCT - cor0.col0 + - 24 * col1 FROM tab1 AS cor0 ---- -304 -392 -627 query I rowsort SELECT ALL + 20 * col2 * + col1 FROM tab1 AS cor0 ---- 11400 24960 28080 query I rowsort SELECT + + 4 * col1 + + col0 FROM tab1 AS cor0 ---- 104 107 132 query I rowsort SELECT DISTINCT - + col0 * 44 AS col0 FROM tab2 AS cor0 ---- -308 -3432 -3476 query I rowsort SELECT DISTINCT + col1 * 25 AS col2 FROM tab2 AS cor0 ---- 1475 425 775 query I rowsort SELECT DISTINCT + col1 - + 83 FROM tab2 ---- -24 -52 -66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col2 - 79 * col2 col0 FROM tab1 ---- -4212 -4446 -7488 query I rowsort SELECT + tab2.col0 + + col2 AS col2 FROM tab2 ---- 104 117 34 query I rowsort SELECT DISTINCT - - 32 + - col2 + + col1 * col2 FROM tab0 AS cor0 ---- 128 2837 7412 query I rowsort SELECT ALL cor0.col2 + col0 * - 59 AS col2 FROM tab0 AS cor0 ---- -1383 -2064 -5169 query I rowsort SELECT - - 85 AS col1 FROM tab0 cor0 ---- 85 85 85 query I rowsort SELECT ALL + - cor0.col2 * + cor0.col2 - col0 FROM tab2 AS cor0 ---- -1523 -736 -754 query I rowsort SELECT ALL + 41 + col2 FROM tab0 AS cor0 ---- 123 42 74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 43 * - cor0.col0 col2 FROM tab0 AS cor0 ---- -1032 -1505 -3827 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 1 col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b query I rowsort SELECT - 51 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 08d3853e39924d3c636260a6dd856837 query I rowsort SELECT DISTINCT - - col1 * - col1 * ( cor0.col0 ) FROM tab1 cor0 ---- -13520 -2028 -6400 query I rowsort SELECT ALL col0 * cor0.col0 + - col1 + - col2 FROM tab2 AS cor0 ---- -9 5999 6186 query I rowsort SELECT ALL ( - col0 ) * - col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT + tab2.col0 * ( - 85 * cor1.col1 ) FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 3cb4ab9eb62fa987536bcce5d0e84e37 query I rowsort SELECT - col2 * + col0 * - cor0.col1 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT - - col1 * 80 + col0 * col1 FROM tab0 AS cor0 ---- 11155 15379 8944 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-385 SELECT ALL col1 + - CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-385 SELECT ALL col1 + - CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col1 * + 27 * 61 + col0 + ( cor0.col0 * + col1 ) FROM tab1 AS cor0 ---- -15766 -20291 -42741 query I rowsort SELECT + 3 * - tab0.col0 + col2 FROM tab0 ---- -104 -185 -39 query I rowsort SELECT col0 * - tab1.col1 + tab1.col1 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT - col0 + - col0 * 82 FROM tab0 ---- -1992 -2905 -7387 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 77 col1 FROM tab1 ---- 77 query I rowsort SELECT col2 * ( - tab0.col1 ) + + col1 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT col2 * col1 + - col2 + - col0 FROM tab2 AS cor0 ---- 1430 529 803 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-393 SELECT DISTINCT + - col0 + - 92 + 11 * col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-393 SELECT DISTINCT + - col0 + - 92 + 11 * col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL - col0 + + 54 FROM tab0 AS cor0 ---- -35 19 30 query I rowsort SELECT ALL - - col0 * - 11 FROM tab0 AS cor0 ---- -264 -385 -979 query I rowsort SELECT DISTINCT col0 * col0 * - 41 + col0 FROM tab0 AS cor0 ---- -23592 -324672 -50190 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-397 SELECT DISTINCT col2 - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 ---- -34 -7 9 skipif mysql # not compatible query I rowsort label-397 SELECT DISTINCT col2 - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 ---- -34 -7 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 * col0 + - col0 - - col0 * 43 col0 FROM tab2 AS cor0 ---- -2808 -2923 245 onlyif mysql # use DIV operator for integer division query I rowsort label-399 SELECT ALL col0 + cor0.col1 DIV 21 AS col0 FROM tab1 AS cor0 ---- 4 64 80 skipif mysql # not compatible query I rowsort label-399 SELECT ALL col0 + cor0.col1 / 21 AS col0 FROM tab1 AS cor0 ---- 4 64 80 query I rowsort SELECT DISTINCT - col2 * col1 + ( + cor0.col2 ) FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT - 74 * + col1 + tab2.col2 AS col1 FROM tab2 ---- -1220 -2267 -4340 query I rowsort SELECT ( 13 * col2 ) - col1 * - col0 AS col2 FROM tab2 ---- 1837 4940 568 query I rowsort SELECT ( col0 ) * col0 - + 6 FROM tab2 ---- 43 6078 6235 query I rowsort SELECT 32 * - col2 FROM tab0 AS cor0 ---- -1056 -2624 -32 query I rowsort SELECT 99 + - col0 FROM tab1 cor0 ---- 19 35 96 query I rowsort SELECT DISTINCT ( + col1 ) + col2 * + cor0.col2 + - col0 AS col2 FROM tab2 AS cor0 ---- 1382 657 753 query I rowsort SELECT DISTINCT + ( - col0 ) * + col0 - col2 FROM tab2 AS cor0 ---- -6110 -6279 -76 query I rowsort SELECT - ( - cor0.col0 ) * + col0 + + col0 + + col1 AS col0 FROM tab2 AS cor0 ---- 6221 6337 87 onlyif mysql # use DIV operator for integer division query I rowsort label-409 SELECT ALL col0 DIV - col0 + + col2 + col1 * + col0 FROM tab2 AS cor0 ---- 1380 243 4627 skipif mysql # not compatible query I rowsort label-409 SELECT ALL col0 / - col0 + + col2 + col1 * + col0 FROM tab2 AS cor0 ---- 1380 243 4627 onlyif mysql # use DIV operator for integer division query I rowsort label-410 SELECT + col0 DIV cor0.col0 + + cor0.col2 + - 54 * col1 AS col1 FROM tab0 cor0 ---- -4610 -4831 -5236 skipif mysql # not compatible query I rowsort label-410 SELECT + col0 / cor0.col0 + + cor0.col2 + - 54 * col1 AS col1 FROM tab0 cor0 ---- -4610 -4831 -5236 query I rowsort SELECT DISTINCT + - col1 * col0 * + col1 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT ALL cor0.col0 * + col1 - col0 FROM tab0 AS cor0 ---- 2040 3360 8010 query I rowsort SELECT + col2 * + 39 + - col2 * col0 FROM tab1 ---- -1425 -3936 1944 query I rowsort SELECT DISTINCT col1 * ( - col2 ) + col1 AS col0 FROM tab0 ---- -2752 -7371 0 onlyif mysql # use DIV operator for integer division query I rowsort label-415 SELECT DISTINCT col2 DIV - col0 + col2 * + col1 AS col2 FROM tab1 AS cor0 ---- 1247 1386 570 skipif mysql # not compatible query I rowsort label-415 SELECT DISTINCT col2 / - col0 + col2 * + col1 AS col2 FROM tab1 AS cor0 ---- 1247 1386 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-416 SELECT ALL - col1 - CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-416 SELECT ALL - col1 - CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-417 SELECT ALL + col2 DIV + col0 FROM tab2 cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-417 SELECT ALL + col2 / + col0 FROM tab2 cor0 ---- 0 0 3 query I rowsort SELECT ALL - cor0.col1 * - col2 * col0 AS col0 FROM tab2 AS cor0 ---- 119652 51034 5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * + col2 col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + + col2 - 65 FROM tab2 AS cor0 ---- -27 -38 -39 query I rowsort SELECT DISTINCT - - cor0.col2 * - 10 - + col1 * cor0.col0 FROM tab1 AS cor0 ---- -1210 -2000 -618 query I rowsort SELECT + col0 + - 99 FROM tab0 cor0 ---- -10 -64 -75 query I rowsort SELECT - ( cor0.col1 ) + + col2 AS col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT 94 * + tab2.col0 AS col0 FROM tab2 ---- 658 7332 7426 query I rowsort SELECT ALL - 60 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 067a4b5daf8747042e3b07ca8459859f skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * 38 col2 FROM tab0 ---- 1330 3382 912 query I rowsort SELECT - + 67 + col1 AS col0 FROM tab2 AS cor0 ---- -36 -50 -8 query I rowsort SELECT ALL - col2 + - 82 + - col2 AS col1 FROM tab0 AS cor0 ---- -148 -246 -84 query I rowsort SELECT ALL - - 43 * - col0 FROM tab0 AS cor0 ---- -1032 -1505 -3827 query I rowsort SELECT ALL 3 * - col2 FROM tab0 ---- -246 -3 -99 query I rowsort SELECT DISTINCT + 45 * - col0 FROM tab2 AS cor0 ---- -315 -3510 -3555 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + ( + cor0.col0 ) + col0 * + col0 col2 FROM tab1 cor0 ---- 12 4160 6480 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 92 col2 FROM tab1 AS cor0 ---- -92 query I rowsort SELECT DISTINCT 63 * + col1 FROM tab2 AS cor0 ---- 1071 1953 3717 query I rowsort SELECT - + col1 + + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT DISTINCT cor0.col1 * + 19 AS col2 FROM tab2 cor0 ---- 1121 323 589 query I rowsort SELECT + col2 * 47 + col0 AS col2 FROM tab1 cor0 ---- 2541 2743 4592 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * - col0 * + 18 + col2 col2 FROM tab2 ---- -24136 -3879 -82810 query I rowsort SELECT DISTINCT - 30 + + tab0.col0 * - col1 - 12 AS col1 FROM tab0 ---- -2106 -3437 -8141 skipif mysql # not compatible query I rowsort SELECT + col0 * CAST ( cor0.col0 AS REAL ) + col0 * col1 * - col1 - col1 AS col1 FROM tab2 AS cor0 ---- -16607 -265493 -6709 query I rowsort SELECT - col0 * - col1 - tab1.col0 AS col1 FROM tab1 ---- 576 75 960 query I rowsort SELECT ALL + cor1.col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 onlyif mysql # use DIV operator for integer division query I rowsort label-443 SELECT cor0.col1 DIV + col0 AS col2 FROM tab1 cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-443 SELECT cor0.col1 / + col0 AS col2 FROM tab1 cor0 ---- 0 0 8 onlyif mysql # use DIV operator for integer division query I rowsort label-444 SELECT col2 * col2 DIV + cor0.col1 FROM tab0 AS cor0 ---- 0 12 73 skipif mysql # not compatible query I rowsort label-444 SELECT col2 * col2 / + cor0.col1 FROM tab0 AS cor0 ---- 0 12 73 query I rowsort SELECT DISTINCT + col2 + + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT ALL cor0.col2 + - col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT tab0.col2 * - cor0.col1 * - tab0.col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 555bd9411a9581b4db6de4632cee9b5a query I rowsort SELECT - + 83 + col2 * + col0 AS col1 FROM tab2 AS cor0 ---- 106 1945 2919 query I rowsort SELECT - - cor0.col0 * - col1 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- -26 -27 -38 query I rowsort SELECT 30 + + ( col2 ) FROM tab1 ---- 126 84 87 query I rowsort SELECT ALL - 48 FROM tab1, tab1 cor0 ---- 9 values hashing to 31c94943c073954e4ca20b170ab61f8c query I rowsort SELECT DISTINCT 72 * - col1 AS col2 FROM tab0 ---- -6192 -6552 -6984 onlyif mysql # use DIV operator for integer division query I rowsort label-454 SELECT ALL + col1 DIV col1 - col0 * col0 col0 FROM tab0 AS cor0 ---- -1224 -575 -7920 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-454 SELECT ALL + col1 / col1 - col0 * col0 col0 FROM tab0 AS cor0 ---- -1224 -575 -7920 query I rowsort SELECT DISTINCT + 60 + - cor0.col0 * + col2 FROM tab0 AS cor0 ---- -7238 -732 25 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-456 SELECT + CAST( - col2 AS SIGNED ) + col1 * - 23 AS col1 FROM tab2 ---- -1383 -429 -740 skipif mysql # not compatible query I rowsort label-456 SELECT + CAST ( - col2 AS INTEGER ) + col1 * - 23 AS col1 FROM tab2 ---- -1383 -429 -740 query I rowsort SELECT 31 + + col0 * + col1 * col1 FROM tab1 ---- 13551 2059 6431 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - 26 ) col0 FROM tab1 ---- -26 -26 -26 query I rowsort SELECT ALL 65 * tab1.col0 FROM tab1 ---- 195 4160 5200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-460 SELECT ALL + CAST( NULL AS SIGNED ) * + col0 * + col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-460 SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 * + col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - 9 + 96 * + col1 * col2 FROM tab1 cor0 ---- 119799 134775 54711 query I rowsort SELECT DISTINCT ( - col1 ) * col1 AS col1 FROM tab0 ---- -7396 -8281 -9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( tab1.col0 ) + col1 * - col1 * col0 col0 FROM tab1 ---- -13440 -2025 -6336 query I rowsort SELECT + - cor0.col0 * ( col0 * + 38 ) AS col2 FROM tab2 AS cor0 ---- -1862 -231192 -237158 query I rowsort SELECT - col2 + - col2 * 63 FROM tab0 AS cor0 ---- -2112 -5248 -64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col1 * col1 * 26 col2 FROM tab2 AS cor0 ---- 24986 7514 90506 query I rowsort SELECT ALL + 5 * col0 AS col2 FROM tab2 cor0 ---- 35 390 395 query I rowsort SELECT - cor0.col0 + - col0 * - 45 AS col2 FROM tab2 AS cor0 ---- 308 3432 3476 query I rowsort SELECT DISTINCT + 9 * - col0 FROM tab1 AS cor0 ---- -27 -576 -720 query I rowsort SELECT ALL - 48 AS col1 FROM tab2 AS cor0 ---- -48 -48 -48 query I rowsort SELECT - 43 + - cor0.col2 * + cor0.col2 FROM tab0 AS cor0 ---- -1132 -44 -6767 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * cor0.col1 - col0 col1 FROM tab0 AS cor0 ---- 2040 3360 8010 query I rowsort SELECT - + col2 * - col2 + col0 * - 19 FROM tab2 AS cor0 ---- -57 -806 596 query I rowsort SELECT 52 * + col2 - col1 AS col0 FROM tab2 AS cor0 ---- 1293 1373 1959 query I rowsort SELECT ALL 24 * - col2 FROM tab2 ---- -624 -648 -912 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-476 SELECT ALL + CAST( - tab2.col0 AS SIGNED ) FROM tab2 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-476 SELECT ALL + CAST ( - tab2.col0 AS INTEGER ) FROM tab2 ---- -7 -78 -79 query I rowsort SELECT col2 * - col0 * - ( - ( col2 ) ) FROM tab2 AS cor0 ---- -114076 -5103 -52728 query I rowsort SELECT DISTINCT - cor0.col2 * col1 + + 31 FROM tab1 AS cor0 ---- -1217 -1373 -539 onlyif mysql # use DIV operator for integer division query I rowsort label-479 SELECT ALL 36 DIV col0 AS col2 FROM tab2 cor0 ---- 0 0 5 skipif mysql # not compatible query I rowsort label-479 SELECT ALL 36 / col0 AS col2 FROM tab2 cor0 ---- 0 0 5 query I rowsort SELECT 19 * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 133 1482 1501 query I rowsort SELECT ALL - cor0.col1 * - cor0.col1 * + 34 FROM tab1 AS cor0 ---- 22984 3400 5746 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 11 + col1 col2 FROM tab2 AS cor0 ---- 28 42 70 query I rowsort SELECT - 6 AS col2 FROM tab1 cor0 ---- -6 -6 -6 query I rowsort SELECT DISTINCT + - col2 + - 67 AS col2 FROM tab0 AS cor0 ---- -100 -149 -68 query I rowsort SELECT col0 * ( - 86 * col1 ) + - col2 + cor0.col2 AS col2 FROM tab1 cor0 ---- -55040 -6708 -89440 onlyif mysql # use DIV operator for integer division query I rowsort label-486 SELECT - - col2 + col0 DIV - 53 col2 FROM tab2 AS cor0 ---- 25 27 37 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-486 SELECT - - col2 + col0 / - 53 col2 FROM tab2 AS cor0 ---- 25 27 37 query I rowsort SELECT ALL col2 * + ( - ( col2 ) ) AS col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 onlyif mysql # use DIV operator for integer division query I rowsort label-488 SELECT DISTINCT - col2 DIV + ( + col1 ) FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-488 SELECT DISTINCT - col2 / + ( + col1 ) FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT - + col1 * col0 + + col0 * col1 + 81 * + 46 FROM tab0 AS cor0 ---- 3726 3726 3726 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + 23 col0 FROM tab0 AS cor0 ---- 112 47 58 query I rowsort SELECT DISTINCT - + col2 + col0 - - col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT - + cor0.col1 * + cor0.col1 + col1 * - col2 FROM tab1 AS cor0 ---- -1417 -2080 -670 query I rowsort SELECT - cor1.col0 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT DISTINCT + 6 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1 ---- 6 query I rowsort SELECT + cor0.col1 + + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 1a063bfb694f348122cd0739295ca641 query I rowsort SELECT ALL - + col2 * ( - col1 + - 33 ) * + col1 FROM tab2 AS cor0 ---- 141128 32300 53568 query I rowsort SELECT ALL 80 * + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 22b9425e09ee8bd0a2a63c6f914fa897 query I rowsort SELECT DISTINCT ( col0 ) * - col2 + + ( + col2 ) * + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL - 49 + 20 * col1 AS col2 FROM tab0 AS cor0 ---- 1671 1771 1891 query I rowsort SELECT - + col0 + col1 * col1 FROM tab2 cor0 ---- 210 3403 954 query I rowsort SELECT DISTINCT + 52 * col1 FROM tab2 AS cor0 ---- 1612 3068 884 query I rowsort SELECT DISTINCT + col2 + cor0.col2 * - col0 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT ALL - col0 + + col1 * - cor0.col2 * ( col2 * + col2 ) FROM tab0 AS cor0 ---- -132 -3090606 -50174577 query I rowsort SELECT ( - col2 ) * col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT + 13 + col1 * - col1 AS col1 FROM tab0 AS cor0 ---- -7383 -8268 -9396 query I rowsort SELECT ALL col2 + + col1 * - col0 AS col2 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT DISTINCT col0 * col2 * - cor0.col2 + 52 * - 52 AS col2 FROM tab1 AS cor0 ---- -11452 -210640 -739984 query I rowsort SELECT ALL - - 79 * ( col2 * - 17 ) FROM tab2 AS cor0 ---- -34918 -36261 -51034 query I rowsort SELECT 76 + + col2 * - col2 FROM tab0 cor0 ---- -1013 -6648 75 query I rowsort SELECT ALL + col1 + - col1 * - ( + col0 ) FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT ALL + col2 - - cor0.col1 FROM tab2 AS cor0 ---- 55 58 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col0 * col0 + col1 col0 FROM tab2 ---- 6143 6258 80 query I rowsort SELECT - col1 * 67 + col2 FROM tab1 ---- -1688 -613 -775 query I rowsort SELECT DISTINCT 17 * 84 AS col1 FROM tab2 AS cor0 ---- 1428 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-515 SELECT DISTINCT CAST( - ( - col2 ) AS SIGNED ) * + col2 FROM tab0 cor0 ---- 1 1089 6724 skipif mysql # not compatible query I rowsort label-515 SELECT DISTINCT CAST ( - ( - col2 ) AS INTEGER ) * + col2 FROM tab0 cor0 ---- 1 1089 6724 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-516 SELECT ALL + CAST( NULL AS SIGNED ) / - cor0.col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-516 SELECT ALL + CAST ( NULL AS INTEGER ) / - cor0.col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - 94 * + 77 + - col2 FROM tab0 AS cor0 ---- -7239 -7271 -7320 query I rowsort SELECT DISTINCT + cor1.col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 54 57 96 query I rowsort SELECT 91 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT - col1 + - col1 * col0 AS col0 FROM tab2 ---- -1360 -248 -4661 query I rowsort SELECT ALL - col1 + + ( 31 * - tab2.col2 ) FROM tab2 ---- -1195 -865 -868 query I rowsort SELECT ALL col1 + ( 76 ) * - tab1.col0 * - ( ( + col0 ) ) AS col2 FROM tab1 ---- 311306 486413 710 onlyif mysql # use DIV operator for integer division query I rowsort label-523 SELECT ALL - tab0.col1 DIV tab0.col1 + + ( + col0 ) FROM tab0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-523 SELECT ALL - tab0.col1 / tab0.col1 + + ( + col0 ) FROM tab0 ---- 23 34 88 onlyif mysql # use DIV operator for integer division query I rowsort label-524 SELECT DISTINCT + col1 * + ( 99 ) + + col0 DIV + 36 AS col0 FROM tab0 ---- 8514 9011 9603 skipif mysql # not compatible query I rowsort label-524 SELECT DISTINCT + col1 * + ( 99 ) + + col0 / + 36 AS col0 FROM tab0 ---- 8514 9011 9603 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab1.col1 + ( col2 ) col1 FROM tab1 ---- 28 47 83 query I rowsort SELECT col1 * col0 + col0 * col2 AS col1 FROM tab2 AS cor0 ---- 406 4345 6630 onlyif mysql # use DIV operator for integer division query I rowsort label-527 SELECT ALL col1 + + col1 DIV col0 col0 FROM tab0 ---- 89 92 99 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-527 SELECT ALL col1 + + col1 / col0 col0 FROM tab0 ---- 89 92 99 query I rowsort SELECT ALL - - col0 * 24 + - cor0.col2 FROM tab1 AS cor0 ---- 1479 18 1824 query I rowsort SELECT - col1 + ( col2 * col1 ) FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT ALL + col0 + - 49 AS col0 FROM tab2 AS cor0 ---- -42 29 30 onlyif mysql # use DIV operator for integer division query I rowsort label-531 SELECT ALL - cor0.col0 DIV - col2 + + cor0.col2 * + col0 * + 91 + - 55 * cor0.col2 FROM tab1 AS cor0 ---- 11772 328834 693600 skipif mysql # not compatible query I rowsort label-531 SELECT ALL - cor0.col0 / - col2 + + cor0.col2 * + col0 * + 91 + - 55 * cor0.col2 FROM tab1 AS cor0 ---- 11772 328834 693600 query I rowsort SELECT ALL - col0 + - 62 FROM tab1 AS cor0 ---- -126 -142 -65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * - 10 col1 FROM tab2 AS cor0 ---- -170 -310 -590 query I rowsort SELECT + + col1 * ( - col0 ) + - col0 + col0 FROM tab1 AS cor0 ---- -1040 -640 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-535 SELECT cor0.col0 + 21 DIV - cor0.col0 AS col1 FROM tab2 AS cor0 ---- 4 78 79 skipif mysql # not compatible query I rowsort label-535 SELECT cor0.col0 + 21 / - cor0.col0 AS col1 FROM tab2 AS cor0 ---- 4 78 79 query I rowsort SELECT tab1.col0 + + col2 * 72 FROM tab1 ---- 3891 4168 6992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 87 * + cor0.col0 col0 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 9d873f06803db59446f2acbc78f42997 query I rowsort SELECT DISTINCT col1 * + col0 + - col0 + - col0 FROM tab1 ---- 512 72 880 query I rowsort SELECT 69 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 query I rowsort SELECT ALL + col2 * 28 + col0 AS col0 FROM tab0 AS cor0 ---- 2385 63 948 query I rowsort SELECT DISTINCT + col0 * 92 AS col1 FROM tab2 AS cor0 ---- 644 7176 7268 query I rowsort SELECT - col0 + - ( 80 ) AS col0 FROM tab2 AS cor0 ---- -158 -159 -87 query I rowsort SELECT - col1 + + cor0.col0 * col0 FROM tab1 cor0 ---- -17 4086 6387 query I rowsort SELECT ALL + 68 * - col0 FROM tab0 AS cor0 ---- -1632 -2380 -6052 query I rowsort SELECT ALL - 70 + col1 * cor0.col2 FROM tab1 AS cor0 ---- 1178 1334 500 query I rowsort SELECT DISTINCT - 59 * + 92 * + col1 + + cor0.col2 FROM tab0 AS cor0 ---- -466775 -493866 -526515 query I rowsort SELECT DISTINCT 80 AS col1 FROM tab1, tab0 cor0 ---- 80 query I rowsort SELECT DISTINCT - - cor0.col0 - - col0 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT + 89 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to 860d55eb6785972467218a9c3badb5ad query I rowsort SELECT ALL + 50 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 314aace40e704c20a6be06204a329f80 query I rowsort SELECT DISTINCT + 93 * col1 FROM tab2 ---- 1581 2883 5487 query I rowsort SELECT - + col2 + - col2 AS col2 FROM tab0 cor0 ---- -164 -2 -66 query I rowsort SELECT DISTINCT - col0 + col1 + - ( - col0 ) * + col0 AS col1 FROM tab0 ---- 1287 638 7923 query I rowsort SELECT DISTINCT col0 + - tab1.col2 * - 59 + col1 AS col1 FROM tab1 ---- 3215 3437 5757 query I rowsort SELECT - 97 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 12bd12d33f03250bee508c5641e140d5 onlyif mysql # use DIV operator for integer division query I rowsort label-556 SELECT ALL + col2 DIV ( - col1 ) AS col2 FROM tab2 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-556 SELECT ALL + col2 / ( - col1 ) AS col2 FROM tab2 AS cor0 ---- -2 0 0 query I rowsort SELECT col0 + + 29 AS col2 FROM tab2 AS cor0 ---- 107 108 36 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-558 SELECT + col2 * col1 * cor0.col2 + - CAST( - ( - col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- 119795 32480 75790 skipif mysql # not compatible query I rowsort label-558 SELECT + col2 * col1 * cor0.col2 + - CAST ( - ( - col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- 119795 32480 75790 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + 72 ) * + col0 * col1 col0 FROM tab2 ---- 15624 331344 96696 query I rowsort SELECT - ( 70 ) + - col1 * col0 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -36550 -4282 -99910 onlyif mysql # use DIV operator for integer division query I rowsort label-561 SELECT - col2 DIV - ( 57 ) FROM tab1 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-561 SELECT - col2 / - ( 57 ) FROM tab1 ---- 0 1 1 query I rowsort SELECT + - col2 + 39 + col2 FROM tab2 AS cor0 ---- 39 39 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 72 * col2 col2 FROM tab1 ---- 3888 4104 6912 query I rowsort SELECT + 59 * + col2 * col1 AS col2 FROM tab2 ---- 38114 49383 90506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col2 * - ( col2 + + 73 ) col2 FROM tab2 ---- -2574 -2700 -4218 onlyif mysql # use DIV operator for integer division query I rowsort label-566 SELECT DISTINCT 36 * + col1 DIV col1 AS col0 FROM tab1 ---- 36 skipif mysql # not compatible query I rowsort label-566 SELECT DISTINCT 36 * + col1 / col1 AS col0 FROM tab1 ---- 36 query I rowsort SELECT + 13 * col1 AS col2 FROM tab2 ---- 221 403 767 query I rowsort SELECT + + 52 + + 31 FROM tab2 AS cor0 ---- 83 83 83 onlyif mysql # use DIV operator for integer division query I rowsort label-569 SELECT + tab1.col1 DIV tab1.col1 + + col2 * col0 AS col1 FROM tab1 ---- 163 3649 7681 skipif mysql # not compatible query I rowsort label-569 SELECT + tab1.col1 / tab1.col1 + + col2 * col0 AS col1 FROM tab1 ---- 163 3649 7681 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-570 SELECT ALL + CAST( + 40 AS SIGNED ) AS col1 FROM tab2 ---- 40 40 40 skipif mysql # not compatible query I rowsort label-570 SELECT ALL + CAST ( + 40 AS INTEGER ) AS col1 FROM tab2 ---- 40 40 40 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-571 SELECT CAST( - 64 AS SIGNED ) * + col1 + col2 AS col0 FROM tab0 ---- -5471 -5742 -6207 skipif mysql # not compatible query I rowsort label-571 SELECT CAST ( - 64 AS INTEGER ) * + col1 + col2 AS col0 FROM tab0 ---- -5471 -5742 -6207 query I rowsort SELECT ALL ( + col1 ) * - col0 * - 90 AS col2 FROM tab0 ---- 185760 305550 728910 query I rowsort SELECT DISTINCT 13 FROM tab0, tab1 AS cor0 ---- 13 query I rowsort SELECT + col1 * - tab0.col2 + - col1 FROM tab0 ---- -194 -2924 -7553 query I rowsort SELECT DISTINCT - - cor0.col2 - + 54 AS col0 FROM tab1 AS cor0 ---- 0 3 42 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 49 * 29 col2 FROM tab1 AS cor0 ---- 1421 1421 1421 skipif mysql # not compatible query I rowsort SELECT CAST ( 27 AS REAL ) AS col2 FROM tab0 AS cor0 ---- 27 27 27 query I rowsort SELECT DISTINCT + 19 - - col1 AS col0 FROM tab2 ---- 36 50 78 query I rowsort SELECT - 91 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6ec4feac5c635ab8e5da71006896acab query I rowsort SELECT + + 32 AS col2 FROM tab0, tab2, tab2 cor0 ---- 27 values hashing to cf4f01ac97eb83445b1721f3ae28961a query I rowsort SELECT - 93 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to ea79c61f7a02d25805171f5e85229fba query I rowsort SELECT 10 + + col2 AS col1 FROM tab1 ---- 106 64 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col2 + 20 col0 FROM tab0 ---- 55 7318 812 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 33 + col1 * col1 col2 FROM tab0 ---- 7429 8314 9442 query I rowsort SELECT + col2 * 25 + col0 FROM tab1 AS cor0 ---- 1353 1489 2480 query I rowsort SELECT DISTINCT - col2 * - 45 * + col2 + col2 FROM tab0 AS cor0 ---- 302662 46 49038 query I rowsort SELECT ALL col0 * col1 - - col1 * + col0 AS col1 FROM tab0 AS cor0 ---- 16198 4128 6790 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + - 25 * 52 col2 FROM tab2 ---- -1241 -1269 -1283 onlyif mysql # use DIV operator for integer division query I rowsort label-589 SELECT cor3.col1 DIV - cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2, tab2 cor3 ---- 243 values hashing to 3ccb3f659f7a1b5653fb0e5cfa40b7c3 skipif mysql # not compatible query I rowsort label-589 SELECT cor3.col1 / - cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2, tab2 cor3 ---- 243 values hashing to 3ccb3f659f7a1b5653fb0e5cfa40b7c3 query I rowsort SELECT - cor0.col1 + + 34 * ( + col1 ) AS col1 FROM tab0 AS cor0 ---- 2838 3003 3201 onlyif mysql # use DIV operator for integer division query I rowsort label-591 SELECT col1 + col2 DIV - col2 AS col2 FROM tab1 cor0 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-591 SELECT col1 + col2 / - col2 AS col2 FROM tab1 cor0 ---- 12 25 9 onlyif mysql # use DIV operator for integer division query I rowsort label-592 SELECT DISTINCT + col0 DIV - 11 AS col2 FROM tab1 cor0 ---- -5 -7 0 skipif mysql # not compatible query I rowsort label-592 SELECT DISTINCT + col0 / - 11 AS col2 FROM tab1 cor0 ---- -5 -7 0 query I rowsort SELECT DISTINCT tab1.col2 + - col0 AS col1 FROM tab1 ---- -7 16 51 query I rowsort SELECT ALL + cor0.col1 * - 61 FROM tab0 AS cor0 ---- -5246 -5551 -5917 query I rowsort SELECT - col2 + 89 AS col0 FROM tab2 cor0 ---- 51 62 63 query I rowsort SELECT - - col0 + ( 1 ) * col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT + col0 + ( col1 + - col2 ) * 27 FROM tab2 cor0 ---- -488 115 969 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-598 SELECT - + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-598 SELECT - + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + ( col1 ) + col1 * - col1 AS col2 FROM tab1 cor0 ---- -156 -650 -90 query I rowsort SELECT - + 10 * col2 + col1 AS col1 FROM tab0 cor0 ---- -244 -729 87 query I rowsort SELECT col0 + + col2 + col1 FROM tab2 AS cor0 ---- 134 163 65 query I rowsort SELECT + 99 + - 22 FROM tab0 AS cor0 ---- 77 77 77 query I rowsort SELECT DISTINCT + + 20 + col1 FROM tab2 cor0 ---- 37 51 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-604 SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-604 SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-605 SELECT ALL - CAST( col1 AS SIGNED ) + cor0.col2 DIV ( + col2 * cor0.col0 ) + + ( col0 * col2 ) FROM tab0 AS cor0 ---- -62 706 7207 skipif mysql # not compatible query I rowsort label-605 SELECT ALL - CAST ( col1 AS INTEGER ) + cor0.col2 / ( + col2 * cor0.col0 ) + + ( col0 * col2 ) FROM tab0 AS cor0 ---- -62 706 7207 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - ( - col1 ) - - col1 col0 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT - + 4 AS col2 FROM tab0 cor0 ---- -4 -4 -4 query I rowsort SELECT DISTINCT - - 30 - + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -24 -27 -66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 6 col2 FROM tab2 AS cor0 ---- 6 query I rowsort SELECT DISTINCT col0 * - ( - col0 ) * + col0 + 68 FROM tab1 ---- 262212 512068 95 query I rowsort SELECT DISTINCT tab2.col1 + + col0 * - col0 FROM tab2 ---- -18 -6025 -6224 query I rowsort SELECT + 2 * - ( col1 + col2 ) * col2 AS col2 FROM tab0 AS cor0 ---- -196 -28372 -7854 query I rowsort SELECT + 91 + - col2 AS col2 FROM tab0 AS cor0 ---- 58 9 90 skipif mysql # not compatible query I rowsort SELECT ALL - col1 + CAST ( col2 AS REAL ) + + col2 FROM tab0 ---- -20 -95 73 query I rowsort SELECT - ( - col1 ) + ( 64 ) * + col2 FROM tab2 AS cor0 ---- 1723 1759 2449 query I rowsort SELECT ALL + + 25 * col0 FROM tab2 AS cor0 ---- 175 1950 1975 query I rowsort SELECT DISTINCT 38 * + cor0.col0 + 62 * - cor0.col0 + col2 FROM tab2 AS cor0 ---- -141 -1846 -1858 query I rowsort SELECT DISTINCT col1 + - col1 * - 4 FROM tab2 AS cor0 ---- 155 295 85 query I rowsort SELECT + - cor0.col2 + + col1 * 14 * 44 AS col1 FROM tab1 AS cor0 ---- 15962 6103 7912 query I rowsort SELECT ALL col1 + col1 * col1 * + 74 AS col2 FROM tab1 cor0 ---- 12519 50050 7410 query I rowsort SELECT ALL + 46 * + col1 AS col0 FROM tab0 cor0 ---- 3956 4186 4462 query I rowsort SELECT DISTINCT + 50 + col2 FROM tab2 AS cor0 ---- 76 77 88 onlyif mysql # use DIV operator for integer division query I rowsort label-623 SELECT ALL - col0 + - col0 DIV + col2 + - cor0.col0 FROM tab0 cor0 ---- -105 -179 -48 skipif mysql # not compatible query I rowsort label-623 SELECT ALL - col0 + - col0 / + col2 + - cor0.col0 FROM tab0 cor0 ---- -105 -179 -48 onlyif mysql # use DIV operator for integer division query I rowsort label-624 SELECT ALL + col0 DIV + col2 + 66 + + col1 FROM tab1 cor0 ---- 77 79 92 skipif mysql # not compatible query I rowsort label-624 SELECT ALL + col0 / + col2 + 66 + + col1 FROM tab1 cor0 ---- 77 79 92 query I rowsort SELECT + + 90 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 96f7a90428db93f472e0d219bab64853 query I rowsort SELECT ALL - + cor0.col1 + + col1 * col0 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT cor0.col0 - 5 * - col1 FROM tab2 AS cor0 ---- 162 164 373 query I rowsort SELECT ALL - col2 * col0 - + 74 FROM tab2 ---- -2102 -263 -3076 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( col1 AS REAL ) * - col0 * col0 + - col1 * + col1 FROM tab2 AS cor0 ---- 105808 355475 558 query I rowsort SELECT + 76 + + ( + col2 ) FROM tab2 cor0 ---- 102 103 114 query I rowsort SELECT col2 * - 47 FROM tab0 AS cor0 ---- -1551 -3854 -47 query I rowsort SELECT 59 + - col2 * col1 AS col1 FROM tab1 AS cor0 ---- -1189 -1345 -511 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-633 SELECT ALL CAST( - cor0.col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-633 SELECT ALL CAST ( - cor0.col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-634 SELECT DISTINCT - ( + col1 ) + col1 * CAST( 15 AS SIGNED ) FROM tab1 AS cor0 ---- 140 182 364 skipif mysql # not compatible query I rowsort label-634 SELECT DISTINCT - ( + col1 ) + col1 * CAST ( 15 AS INTEGER ) FROM tab1 AS cor0 ---- 140 182 364 query I rowsort SELECT - ( + col1 ) + + col0 AS col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT + 13 * + col0 AS col1 FROM tab0 AS cor0 ---- 1157 312 455 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-637 SELECT ALL - col2 * CAST( NULL AS DECIMAL ) * + tab2.col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-637 SELECT ALL - col2 * CAST ( NULL AS REAL ) * + tab2.col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + + 81 FROM tab2 cor0 ---- 81 81 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-639 SELECT DISTINCT + CAST( + col0 AS SIGNED ) * col1 FROM tab0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-639 SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * col1 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT ALL + 12 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6 onlyif mysql # use DIV operator for integer division query I rowsort label-641 SELECT tab1.col1 DIV 23 + + col0 FROM tab1 ---- 4 64 80 skipif mysql # not compatible query I rowsort label-641 SELECT tab1.col1 / 23 + + col0 FROM tab1 ---- 4 64 80 query I rowsort SELECT DISTINCT + col0 + - col2 + col0 FROM tab2 AS cor0 ---- -13 120 130 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col2 + - ( - col1 ) col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - tab0.col0 col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT - ( + cor0.col2 * cor0.col2 ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to cf0cd186a6868ff3748fd2b2555743a1 query I rowsort SELECT DISTINCT - + col1 * col1 + - col1 FROM tab2 AS cor0 ---- -306 -3540 -992 query I rowsort SELECT ALL col1 + col1 * col2 AS col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT ALL col0 * 57 + 92 AS col1 FROM tab1 cor0 ---- 263 3740 4652 query I rowsort SELECT DISTINCT - col1 * 19 - + col0 * + col1 AS col1 FROM tab1 AS cor0 ---- -1287 -572 -830 query I rowsort SELECT DISTINCT - 98 * - 97 AS col2 FROM tab0 AS cor0 ---- 9506 query I rowsort SELECT + - 47 + + col2 FROM tab1 AS cor0 ---- 10 49 7 query I rowsort SELECT - ( + 58 ) FROM tab0 AS cor0 ---- -58 -58 -58 query I rowsort SELECT + cor1.col1 + 98 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 93353a08055f5d9fda266a854f605619 query I rowsort SELECT - cor1.col0 * + 98 * + 93 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to f0f05a877ac2f4937e7da076d85bad39 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-655 SELECT + ( + cor0.col2 ) * CAST( - 83 AS SIGNED ) FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to 203e68984547d13f6c0f6b2f4827e7fc skipif mysql # not compatible query I rowsort label-655 SELECT + ( + cor0.col2 ) * CAST ( - 83 AS INTEGER ) FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to 203e68984547d13f6c0f6b2f4827e7fc query I rowsort SELECT - - col1 * - col2 - - ( + col0 ) FROM tab2 AS cor0 ---- -1456 -567 -830 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-657 SELECT col1 + - CAST( NULL AS SIGNED ) * col0 * col1 col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-657 SELECT col1 + - CAST ( NULL AS INTEGER ) * col0 * col1 col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 - - ( - col0 ) FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT - cor0.col2 * - 1 * col2 + - col2 AS col1 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT col1 * col2 + cor0.col1 * - col0 AS col1 FROM tab2 AS cor0 ---- -3068 -697 620 query I rowsort SELECT cor0.col2 + + 41 FROM tab0 AS cor0 ---- 123 42 74 onlyif mysql # use DIV operator for integer division query I rowsort label-662 SELECT + - col0 * col2 * - col2 + col0 DIV 20 - + col2 FROM tab2 AS cor0 ---- 114041 5076 52705 skipif mysql # not compatible query I rowsort label-662 SELECT + - col0 * col2 * - col2 + col0 / 20 - + col2 FROM tab2 AS cor0 ---- 114041 5076 52705 query I rowsort SELECT ALL col2 * col0 + ( col0 ) + col1 FROM tab2 AS cor0 ---- 2165 227 3098 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + col0 + + col2 col2 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT ALL + 42 + col1 * cor0.col1 FROM tab2 AS cor0 ---- 1003 331 3523 query I rowsort SELECT col1 * + col2 + - col0 * col2 + cor0.col2 FROM tab0 AS cor0 ---- 2079 246 63 onlyif mysql # use DIV operator for integer division query I rowsort label-667 SELECT - ( - col1 ) DIV 61 + cor0.col0 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-667 SELECT - ( - col1 ) / 61 + cor0.col0 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-668 SELECT - + col0 DIV + col2 + 59 * col0 + - cor0.col2 DIV - 58 FROM tab0 cor0 ---- 1416 2030 5251 skipif mysql # not compatible query I rowsort label-668 SELECT - + col0 / + col2 + 59 * col0 + - cor0.col2 / - 58 FROM tab0 cor0 ---- 1416 2030 5251 onlyif mysql # use DIV operator for integer division query I rowsort label-669 SELECT + 66 + cor0.col2 DIV ( + 45 ) FROM tab0 AS cor0 ---- 66 66 67 skipif mysql # not compatible query I rowsort label-669 SELECT + 66 + cor0.col2 / ( + 45 ) FROM tab0 AS cor0 ---- 66 66 67 onlyif mysql # use DIV operator for integer division query I rowsort label-670 SELECT ALL + col1 + col2 + + cor0.col1 DIV col2 FROM tab1 AS cor0 ---- 109 67 80 skipif mysql # not compatible query I rowsort label-670 SELECT ALL + col1 + col2 + + cor0.col1 / col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + 84 * col1 + col2 * col2 AS col2 FROM tab0 AS cor0 ---- 14368 8149 8313 query I rowsort SELECT 75 + col0 * col2 * - col2 FROM tab1 AS cor0 ---- -207861 -737205 -8673 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-673 SELECT + ( col1 ) - - CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-673 SELECT + ( col1 ) - - CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col1 * col1 + col1 AS col1 FROM tab2 ---- 306 3540 992 onlyif mysql # use DIV operator for integer division query I rowsort label-675 SELECT ALL - col2 DIV + ( + cor0.col1 ) FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-675 SELECT ALL - col2 / + ( + cor0.col1 ) FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT DISTINCT - - col0 + - 13 * - ( col2 ) FROM tab1 AS cor0 ---- 1328 705 805 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-677 SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-677 SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL query I rowsort SELECT ALL 44 + col1 * + col0 * + col2 FROM tab1 ---- 36524 4256 99884 query I rowsort SELECT ALL + col1 * - col0 + + col1 AS col2 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT + ( + col0 ) * col0 + 65 FROM tab0 AS cor0 ---- 1290 641 7986 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 17 col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 43298e43365fccb5146ea32003753c92 query I rowsort SELECT ALL - 73 + 35 AS col2 FROM tab2, tab0, tab0 AS cor0, tab0 cor1 ---- 81 values hashing to dc3731b6ce8b1f8ecf6042af8e1c4df1 query I rowsort SELECT 17 - + 36 * col2 AS col1 FROM tab1 AS cor0 ---- -1927 -2035 -3439 query I rowsort SELECT ALL - + col2 * - cor0.col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT col0 * - 66 + col1 * col1 + col1 * col1 * + 21 FROM tab2 AS cor0 ---- 1144 20680 71434 query I rowsort SELECT DISTINCT + - col1 * - 99 + - col0 FROM tab1 AS cor0 ---- 1207 2571 926 query I rowsort SELECT + col0 + 77 AS col0 FROM tab0 cor0 ---- 101 112 166 query I rowsort SELECT - 22 + - col1 * col0 * col0 AS col0 FROM tab1 AS cor0 ---- -256 -40982 -83222 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * 34 col1 FROM tab2 ---- -1054 -2006 -578 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col2 * + 30 col2 FROM tab1 ---- 1674 1767 2976 query I rowsort SELECT ALL ( col1 * - col2 ) - col2 * col1 FROM tab2 ---- -1292 -1674 -3068 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab1, tab1 AS cor1 ---- 972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 41 col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( col1 AS REAL ) AS col2 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT - col1 * - col0 + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT DISTINCT + + col0 * cor0.col1 + + col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT DISTINCT - ( col2 ) * col0 + - 63 FROM tab2 cor0 ---- -2091 -252 -3065 skipif mysql # not compatible query I rowsort SELECT - + col2 - col0 * - col0 * + CAST ( col1 AS REAL ) FROM tab0 AS cor0 ---- 118824 49503 720729 query I rowsort SELECT - 95 + ( col2 ) AS col1 FROM tab0 cor0 ---- -13 -62 -94 query I rowsort SELECT DISTINCT + 88 AS col1 FROM tab1, tab2, tab1 AS cor0, tab1 AS cor1 ---- 88 query I rowsort SELECT DISTINCT + col2 + tab2.col2 + + col1 AS col2 FROM tab2 ---- 111 85 93 onlyif mysql # use DIV operator for integer division query I rowsort label-702 SELECT - CAST( + 42 AS SIGNED ) * + col1 - - col1 DIV - col2 AS col0 FROM tab0 ---- -3614 -3823 -4171 skipif mysql # not compatible query I rowsort label-702 SELECT - CAST ( + 42 AS INTEGER ) * + col1 - - col1 / - col2 AS col0 FROM tab0 ---- -3614 -3823 -4171 query I rowsort SELECT 61 + + 0 * col2 * - tab2.col2 FROM tab2 ---- 61 61 61 query I rowsort SELECT ALL ( tab0.col2 ) * col0 - + col0 FROM tab0 ---- 0 7209 768 query I rowsort SELECT DISTINCT - ( 43 * col2 ) - col1 FROM tab1 ---- -2348 -2461 -4141 query I rowsort SELECT col0 + ( - col0 ) + + 66 * + col2 AS col0 FROM tab0 ---- 2178 5412 66 query I rowsort SELECT DISTINCT + 93 - col1 * col1 AS col2 FROM tab2 ---- -196 -3388 -868 query I rowsort SELECT DISTINCT cor0.col0 + ( - col0 ) * 92 FROM tab2 AS cor0 ---- -637 -7098 -7189 query I rowsort SELECT DISTINCT - + 96 * 58 * - col2 FROM tab0 AS cor0 ---- 183744 456576 5568 query I rowsort SELECT DISTINCT - - 66 - - col2 FROM tab0 AS cor0 ---- 148 67 99 query I rowsort SELECT DISTINCT + col0 * tab1.col1 * col0 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT - + col2 * - col0 + col2 * col2 AS col1 FROM tab0 cor0 ---- 14022 1881 36 onlyif mysql # use DIV operator for integer division query I rowsort label-713 SELECT DISTINCT - cor0.col0 * col0 + + col2 DIV + col0 FROM tab1 AS cor0 ---- -4096 -6399 9 skipif mysql # not compatible query I rowsort label-713 SELECT DISTINCT - cor0.col0 * col0 + + col2 / + col0 FROM tab1 AS cor0 ---- -4096 -6399 9 onlyif mysql # use DIV operator for integer division query I rowsort label-714 SELECT ALL col2 + + col1 DIV ( - col1 ) FROM tab2 AS cor0 ---- 25 26 37 skipif mysql # not compatible query I rowsort label-714 SELECT ALL col2 + + col1 / ( - col1 ) FROM tab2 AS cor0 ---- 25 26 37 query I rowsort SELECT DISTINCT 49 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 49 query I rowsort SELECT - + cor0.col1 * col1 - + col1 AS col2 FROM tab1 AS cor0 ---- -110 -182 -702 onlyif mysql # use DIV operator for integer division query I rowsort label-717 SELECT ALL - - col0 DIV - col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-717 SELECT ALL - - col0 / - col1 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col0 ) col2 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT - col2 + + col1 - - 41 AS col0 FROM tab2 AS cor0 ---- 20 45 74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 * col1 col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT + + col2 + + 79 FROM tab1 AS cor0 ---- 133 136 175 query I rowsort SELECT + col1 * 23 * + col1 AS col1 FROM tab2 AS cor0 ---- 22103 6647 80063 query I rowsort SELECT + - cor0.col0 * - ( 56 ) + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 423 4427 4441 query I rowsort SELECT + + col2 * col0 * col2 AS col1 FROM tab1 AS cor0 ---- 207936 737280 8748 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-725 SELECT ALL + + col1 * + CAST( + col2 AS SIGNED ) FROM tab1 cor0 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-725 SELECT ALL + + col1 * + CAST ( + col2 AS INTEGER ) FROM tab1 cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-726 SELECT DISTINCT + - col2 + CAST( col2 * - col2 + 60 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -2910 -3246 -9252 skipif mysql # not compatible query I rowsort label-726 SELECT DISTINCT + - col2 + CAST ( col2 * - col2 + 60 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -2910 -3246 -9252 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-727 SELECT DISTINCT + col1 * - CAST( col0 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0 ---- -118825 -49536 -720811 skipif mysql # not compatible query I rowsort label-727 SELECT DISTINCT + col1 * - CAST ( col0 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT - col1 + col2 * + col2 + col1 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT + 38 * col0 * - col0 AS col2 FROM tab2 AS cor0 ---- -1862 -231192 -237158 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-730 SELECT DISTINCT CAST( ( col2 ) AS SIGNED ) FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-730 SELECT DISTINCT CAST ( ( col2 ) AS INTEGER ) FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT + + col0 + cor0.col2 * - col1 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT - 60 * col0 AS col0 FROM tab1 AS cor0 ---- -180 -3840 -4800 query I rowsort SELECT + col0 * - 66 FROM tab2 AS cor0 ---- -462 -5148 -5214 query I rowsort SELECT ALL - + 45 AS col1 FROM tab0 AS cor0 ---- -45 -45 -45 query I rowsort SELECT - ( - 14 ) AS col1 FROM tab0 AS cor0 ---- 14 14 14 query I rowsort SELECT ALL - + col1 * + col0 + col2 + + col1 AS col2 FROM tab0 AS cor0 ---- -1945 -3297 -7926 query I rowsort SELECT DISTINCT + 81 * + col0 AS col0 FROM tab2 ---- 567 6318 6399 query I rowsort SELECT 86 AS col1 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4 query I rowsort SELECT - ( col2 ) * + col2 FROM tab1 ---- -2916 -3249 -9216 query I rowsort SELECT ALL - 60 AS col1 FROM tab0 ---- -60 -60 -60 query I rowsort SELECT col0 * + 79 AS col2 FROM tab0 AS cor0 ---- 1896 2765 7031 query I rowsort SELECT + col2 * 10 AS col1 FROM tab1 AS cor0 ---- 540 570 960 query I rowsort SELECT + col2 * col1 + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT col1 + + 17 FROM tab0 AS cor0 ---- 103 108 114 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * col1 col2 FROM tab2 cor0 ---- -1534 -646 -837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-746 SELECT DISTINCT CAST( NULL AS SIGNED ) * - 47 col0 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-746 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 47 col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-747 SELECT ALL - 85 * col0 DIV col2 AS col1 FROM tab1 AS cor0 ---- -4 -70 -95 skipif mysql # not compatible query I rowsort label-747 SELECT ALL - 85 * col0 / col2 AS col1 FROM tab1 AS cor0 ---- -4 -70 -95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-748 SELECT + CAST( + col0 AS SIGNED ) - + col1 FROM tab0 AS cor0 ---- -2 -62 -62 skipif mysql # not compatible query I rowsort label-748 SELECT + CAST ( + col0 AS INTEGER ) - + col1 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT cor0.col0 * + col2 + - col1 AS col2 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT + 61 - - col2 FROM tab2 AS cor0 ---- 87 88 99 query I rowsort SELECT + - col1 * 48 - - col2 AS col0 FROM tab0 AS cor0 ---- -4095 -4286 -4655 query I rowsort SELECT - col1 + + 34 AS col2 FROM tab0 AS cor0 ---- -52 -57 -63 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-753 SELECT - CAST( NULL AS DECIMAL ) + + col2 * col0 / - col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-753 SELECT - CAST ( NULL AS REAL ) + + col2 * col0 / - col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-754 SELECT - - col2 + + cor0.col1 DIV col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-754 SELECT - - col2 + + cor0.col1 / col2 FROM tab1 AS cor0 ---- 54 57 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-755 SELECT ( col0 ) * col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-755 SELECT ( col0 ) * col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT cor2.col1 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2 ---- 243 values hashing to c6425afc100dd55de8d45dec18c469ea query I rowsort SELECT + col1 + + col0 * col0 FROM tab1 ---- 35 4106 6413 query I rowsort SELECT DISTINCT 11 * - col1 * - col0 + 59 AS col1 FROM tab2 ---- 14832 2446 50681 query I rowsort SELECT DISTINCT + tab1.col0 * - tab1.col0 + col0 * ( + col1 ) * col1 FROM tab1 ---- 2019 2304 7120 query I rowsort SELECT cor0.col1 * - col1 * + col2 AS col1 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT - ( - col2 ) + cor0.col0 * - col2 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT DISTINCT - col0 + + col0 * - col1 * col0 AS col0 FROM tab1 cor0 ---- -237 -41024 -83280 query I rowsort SELECT - ( + col2 ) * cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT col2 - col0 AS col2 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT col2 + - col0 + - col1 * col0 FROM tab0 AS cor0 ---- -2055 -3429 -8106 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 97 * + col2 col2 FROM tab2 AS cor0 ---- 2522 2619 3686 query I rowsort SELECT ALL + ( + col0 * - col2 + + col2 ) FROM tab0 ---- -34 -7216 -759 onlyif mysql # use DIV operator for integer division query I rowsort label-768 SELECT - 25 DIV cor0.col0 - + col0 FROM tab2 cor0 ---- -10 -78 -79 skipif mysql # not compatible query I rowsort label-768 SELECT - 25 / cor0.col0 - + col0 FROM tab2 cor0 ---- -10 -78 -79 query I rowsort SELECT ALL - - col0 + - col1 * + cor0.col0 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT + + col1 + cor0.col1 * col2 * + col0 FROM tab2 AS cor0 ---- 119711 51051 5890 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 13 col1 FROM tab1 AS cor0 ---- 13 13 13 query I rowsort SELECT ALL col2 + col2 * - col0 AS col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + col0 + col0 col1 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT DISTINCT - - 38 * col2 * col0 AS col1 FROM tab2 AS cor0 ---- 114076 7182 77064 query I rowsort SELECT DISTINCT - + cor0.col1 * cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- -1003 -1829 -289 -3481 -527 -961 query I rowsort SELECT ALL 21 - - col2 FROM tab2 ---- 47 48 59 query I rowsort SELECT ALL col2 * - 53 + col2 * col0 FROM tab2 AS cor0 ---- -1242 650 988 query I rowsort SELECT col1 + 25 FROM tab1 AS cor0 ---- 35 38 51 query I rowsort SELECT ALL + 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 onlyif mysql # use DIV operator for integer division query I rowsort label-780 SELECT DISTINCT - 11 DIV col1 AS col1 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-780 SELECT DISTINCT - 11 / col1 AS col1 FROM tab0 ---- 0 query I rowsort SELECT col2 + + col1 * col0 * col1 AS col2 FROM tab2 ---- 22869 271544 6754 query I rowsort SELECT col0 * tab1.col0 * tab1.col1 + + tab1.col2 FROM tab1 ---- 288 41017 83296 onlyif mysql # use DIV operator for integer division query I rowsort label-783 SELECT DISTINCT - col1 DIV - 54 FROM tab2 ---- 0 1 skipif mysql # not compatible query I rowsort label-783 SELECT DISTINCT - col1 / - 54 FROM tab2 ---- 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 53 col2 FROM tab2 AS cor0 ---- 53 53 53 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-785 SELECT DISTINCT - + col2 / + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-785 SELECT DISTINCT - + col2 / + CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-786 SELECT DISTINCT - - cor0.col2 + - CAST( - ( col2 ) AS SIGNED ) FROM tab1 AS cor0 ---- 108 114 192 skipif mysql # not compatible query I rowsort label-786 SELECT DISTINCT - - cor0.col2 + - CAST ( - ( col2 ) AS INTEGER ) FROM tab1 AS cor0 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-787 SELECT + - col1 DIV col0 AS col1 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-787 SELECT + - col1 / col0 AS col1 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT ALL - + col1 + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0 ---- 1326 186 4543 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + + col0 * - 80 * col1 col0 FROM tab1 AS cor0 ---- -51210 -6266 -83213 query I rowsort SELECT ALL cor0.col0 * - 90 FROM tab1 AS cor0 ---- -270 -5760 -7200 query I rowsort SELECT + col0 + + ( cor0.col2 * + col2 ) - + col2 * col0 FROM tab0 AS cor0 ---- -485 1 321 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-792 SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - ( col2 ) + - ( + col1 ) AS col1 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-792 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - ( col2 ) + - ( + col1 ) AS col1 FROM tab1 cor0 ---- NULL query I rowsort SELECT + 92 + + col2 AS col2 FROM tab0 AS cor0 ---- 125 174 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-794 SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 93 * cor0.col0 + 21 AS col2 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-794 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 93 * cor0.col0 + 21 AS col2 FROM tab0 cor0 ---- NULL query I rowsort SELECT ALL + + col2 * 52 - col1 AS col2 FROM tab2 AS cor0 ---- 1293 1373 1959 query I rowsort SELECT + 42 + 19 FROM tab1 AS cor0 ---- 61 61 61 query I rowsort SELECT ALL col0 - - col0 * + col0 * ( col1 ) AS col1 FROM tab1 AS cor0 ---- 237 41024 83280 query I rowsort SELECT - + col1 + + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 0 2752 7371 onlyif mysql # use DIV operator for integer division query I rowsort label-799 SELECT DISTINCT - ( col0 ) DIV - col1 + + 86 AS col0 FROM tab1 cor0 ---- 86 92 skipif mysql # not compatible query I rowsort label-799 SELECT DISTINCT - ( col0 ) / - col1 + + 86 AS col0 FROM tab1 cor0 ---- 86 92 query I rowsort SELECT ALL ( ( + col0 ) ) FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL - - col2 + + 64 FROM tab1 AS cor0 ---- 118 121 160 query I rowsort SELECT + col1 * + 29 + col0 FROM tab1 AS cor0 ---- 354 457 757 onlyif mysql # use DIV operator for integer division query I rowsort label-803 SELECT col2 * + ( col0 ) DIV col0 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-803 SELECT col2 * + ( col0 ) / col0 FROM tab2 ---- 26 27 38 query I rowsort SELECT ALL + col1 * + col1 * col1 - cor0.col1 AS col1 FROM tab2 AS cor0 ---- 205320 29760 4896 onlyif mysql # use DIV operator for integer division query I rowsort label-805 SELECT DISTINCT - - 81 DIV 97 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-805 SELECT DISTINCT - - 81 / 97 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL - 56 FROM tab0, tab1 cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to 34348c65780193c8d601ab14b29af6e7 onlyif mysql # use DIV operator for integer division query I rowsort label-807 SELECT + - col2 DIV + col1 AS col2 FROM tab2 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-807 SELECT + - col2 / + col1 AS col2 FROM tab2 AS cor0 ---- -2 0 0 query I rowsort SELECT + col2 * col1 + + col2 AS col0 FROM tab1 ---- 1344 1458 627 query I rowsort SELECT - 49 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae query I rowsort SELECT - ( + col0 ) * + 96 * + col1 AS col2 FROM tab0 AS cor0 ---- -198144 -325920 -777504 query I rowsort SELECT ALL tab1.col0 * - col1 * - 2 FROM tab1 ---- 1280 156 2080 query I rowsort SELECT ALL - - col2 * ( cor0.col1 ) + col2 AS col0 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT DISTINCT - col2 - + ( + col2 ) AS col2 FROM tab2 AS cor0 ---- -52 -54 -76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + - 38 * + 20 * col0 col2 FROM tab1 cor0 ---- -2277 -48576 -60720 query I rowsort SELECT DISTINCT cor0.col0 * ( 10 ) + - col1 FROM tab1 AS cor0 ---- 4 630 787 query I rowsort SELECT - 65 AS col0 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57 query I rowsort SELECT tab1.col1 * - 10 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to c8903fc410b37020598a40d280b7ca8a onlyif mysql # use DIV operator for integer division query I rowsort label-818 SELECT DISTINCT 38 DIV col1 AS col0 FROM tab2 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-818 SELECT DISTINCT 38 / col1 AS col0 FROM tab2 ---- 0 1 2 query I rowsort SELECT ALL col0 * col0 * tab0.col0 FROM tab0 ---- 13824 42875 704969 query I rowsort SELECT + 4 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 730dff78e83112374961ea711f98ebaa onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-821 SELECT DISTINCT col1 * CAST( - col2 + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -1292 -1674 -3068 skipif mysql # not compatible query I rowsort label-821 SELECT DISTINCT col1 * CAST ( - col2 + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -1292 -1674 -3068 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + 50 col0 FROM tab2 AS cor0 ---- 350 3900 3950 query I rowsort SELECT ( col2 * - col0 + + 90 ) AS col1 FROM tab2 ---- -1938 -2912 -99 query I rowsort SELECT ALL - col0 * + ( ( col0 ) ) AS col1 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT tab2.col2 * 97 AS col2 FROM tab2 ---- 2522 2619 3686 query I rowsort SELECT DISTINCT col1 * - 11 * col0 FROM tab0 ---- -22704 -37345 -89089 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col1 * tab1.col0 col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT DISTINCT 43 + + col2 FROM tab1 ---- 100 139 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-829 SELECT CAST( NULL AS DECIMAL ) + - col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-829 SELECT CAST ( NULL AS REAL ) + - col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT 34 + tab2.col1 AS col0 FROM tab2, tab1, tab2 cor0 ---- 27 values hashing to dd6bc9b1cf1a71371c0e056e4ec69b8e query I rowsort SELECT ALL + 67 + col1 * col2 FROM tab1 ---- 1315 1471 637 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-832 SELECT + - col1 * - col2 + CAST( + col1 + - col1 AS SIGNED ) * - col1 * cor0.col0 FROM tab2 AS cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-832 SELECT + - col1 * - col2 + CAST ( + col1 + - col1 AS INTEGER ) * - col1 * cor0.col0 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-833 SELECT - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-833 SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-834 SELECT + CAST( - 26 AS SIGNED ) + col2 FROM tab1 AS cor0 ---- 28 31 70 skipif mysql # not compatible query I rowsort label-834 SELECT + CAST ( - 26 AS INTEGER ) + col2 FROM tab1 AS cor0 ---- 28 31 70 query I rowsort SELECT ALL + 66 * - col1 FROM tab1 ---- -1716 -660 -858 query I rowsort SELECT ALL col2 * 42 + col2 AS col1 FROM tab2 ---- 1118 1161 1634 query I rowsort SELECT ALL 32 + + col1 * col2 AS col0 FROM tab2 ---- 1566 678 869 query I rowsort SELECT ALL + 3 * col2 AS col0 FROM tab1 AS cor0 ---- 162 171 288 query I rowsort SELECT ALL + col2 * col0 + 54 FROM tab2 AS cor0 ---- 2082 243 3056 onlyif mysql # use DIV operator for integer division query I rowsort label-840 SELECT DISTINCT + col0 DIV - cor0.col0 + col2 AS col0 FROM tab2 cor0 ---- 25 26 37 skipif mysql # not compatible query I rowsort label-840 SELECT DISTINCT + col0 / - cor0.col0 + col2 AS col0 FROM tab2 cor0 ---- 25 26 37 query I rowsort SELECT DISTINCT - - col2 * - col1 - 42 * col1 FROM tab1 AS cor0 ---- -1794 -2496 -990 query I rowsort SELECT + + 70 + col0 AS col2 FROM tab2 AS cor0 ---- 148 149 77 query I rowsort SELECT ALL col0 * col2 * - col2 + 36 + col2 AS col1 FROM tab1 AS cor0 ---- -207843 -737148 -8658 query I rowsort SELECT + - ( col0 ) * col2 + cor0.col2 * cor0.col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col1 + + col2 * - 96 AS col2 FROM tab0 AS cor0 ---- -3082 -7781 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col1 + - 81 col1 FROM tab2 AS cor0 ---- -1615 -727 -918 query I rowsort SELECT col2 * col0 + + 23 FROM tab2 AS cor0 ---- 2051 212 3025 query I rowsort SELECT ( cor0.col0 ) + 42 FROM tab2 AS cor0 ---- 120 121 49 query I rowsort SELECT - 57 + 11 AS col0 FROM tab1 ---- -46 -46 -46 query I rowsort SELECT - + col2 * cor0.col2 + col2 AS col2 FROM tab1 AS cor0 ---- -2862 -3192 -9120 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 23 col1 FROM tab0 ---- -23 -23 -23 query I rowsort SELECT 51 + + col1 AS col2 FROM tab0 ---- 137 142 148 query I rowsort SELECT ALL 20 + + 5 AS col0 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 2c77240b60ac01c717a5ed5d0165f450 query I rowsort SELECT col0 * + col1 + - ( ( - col2 ) * 36 + cor0.col2 ) AS col0 FROM tab1 AS cor0 ---- 1968 2635 4400 onlyif mysql # use DIV operator for integer division query I rowsort label-855 SELECT cor0.col0 * col2 + col1 DIV - col0 AS col2 FROM tab1 cor0 ---- 154 3648 7680 skipif mysql # not compatible query I rowsort label-855 SELECT cor0.col0 * col2 + col1 / - col0 AS col2 FROM tab1 cor0 ---- 154 3648 7680 query I rowsort SELECT cor0.col1 - - col1 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT - - col2 * - col2 + 74 FROM tab1 AS cor0 ---- -2842 -3175 -9142 onlyif mysql # use DIV operator for integer division query I rowsort label-858 SELECT 32 + - col1 DIV - col1 FROM tab2 cor0 ---- 33 33 33 skipif mysql # not compatible query I rowsort label-858 SELECT 32 + - col1 / - col1 FROM tab2 cor0 ---- 33 33 33 query I rowsort SELECT DISTINCT 65 + - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- -17 32 64 query I rowsort SELECT DISTINCT - cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- -24 -35 -89 query I rowsort SELECT + 71 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to c1aace5d5fe27721cc925552513c85c0 query I rowsort SELECT DISTINCT col2 + - ( + col2 ) * col0 AS col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT ALL + col1 * - 72 + - 36 AS col0 FROM tab2 AS cor0 ---- -1260 -2268 -4284 onlyif mysql # use DIV operator for integer division query I rowsort label-864 SELECT ALL - col1 DIV + col1 AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-864 SELECT ALL - col1 / + col1 AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT cor0.col0 * + 86 FROM tab0 AS cor0 ---- 2064 3010 7654 query I rowsort SELECT DISTINCT col0 * + 46 FROM tab2 AS cor0 ---- 322 3588 3634 query I rowsort SELECT + cor0.col1 + - col0 * + col0 AS col2 FROM tab0 cor0 ---- -1128 -490 -7830 query I rowsort SELECT ALL - col0 * - col2 AS col2 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT + 92 + + col0 AS col1 FROM tab0 cor0 ---- 116 127 181 query I rowsort SELECT ALL 66 + - 12 * - col1 FROM tab2 cor0 ---- 270 438 774 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col1 + - col0 + col0 col0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + + col2 * - col1 * - col0 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT + ( - 21 ) - col2 AS col1 FROM tab0 ---- -103 -22 -54 query I rowsort SELECT ALL 95 * + col0 FROM tab1 cor0 ---- 285 6080 7600 query I rowsort SELECT ALL - ( col1 ) * - col0 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + ( col1 ) + + col1 AS col2 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT DISTINCT - + 72 * - 38 FROM tab0 AS cor0 ---- 2736 query I rowsort SELECT ALL + - col0 * 19 AS col1 FROM tab1 AS cor0 ---- -1216 -1520 -57 query I rowsort SELECT 69 * cor0.col2 FROM tab2 AS cor0 ---- 1794 1863 2622 query I rowsort SELECT + ( + col2 ) - ( col0 ) AS col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT + + col2 * col0 + ( + col2 ) FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-883 SELECT ALL - ( col2 ) * col2 DIV col1 FROM tab1 ---- -112 -324 -708 skipif mysql # not compatible query I rowsort label-883 SELECT ALL - ( col2 ) * col2 / col1 FROM tab1 ---- -112 -324 -708 onlyif mysql # use DIV operator for integer division query I rowsort label-884 SELECT ( col1 ) DIV + tab0.col0 AS col0 FROM tab0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-884 SELECT ( col1 ) / + tab0.col0 AS col0 FROM tab0 ---- 1 2 3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-885 SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-885 SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - col2 * + 50 FROM tab1 AS cor0 ---- -2700 -2850 -4800 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * + col1 col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT ALL - 31 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1829 -527 -961 query I rowsort SELECT - col1 * ( + 1 ) + + cor0.col2 AS col2 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT col0 * + col0 + - col2 AS col0 FROM tab2 ---- 22 6058 6203 query I rowsort SELECT - col1 + + cor0.col1 * - col0 AS col1 FROM tab0 AS cor0 ---- -2150 -3492 -8190 query I rowsort SELECT DISTINCT cor0.col0 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 ---- 24 35 89 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0 / + col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col1 * - col2 col1 FROM tab1 ---- -1248 -1404 -570 query III rowsort SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - col1 + col0 * - tab1.col2 ) ---- query I rowsort SELECT DISTINCT col0 + + col1 + col1 AS col0 FROM tab0 ---- 196 229 271 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * + col1 + + col1 + col1 col2 FROM tab0 ---- 7568 8463 9603 onlyif mysql # use DIV operator for integer division query I rowsort label-898 SELECT + col0 DIV col2 + col2 AS col0 FROM tab1 ---- 54 58 96 skipif mysql # not compatible query I rowsort label-898 SELECT + col0 / col2 + col2 AS col0 FROM tab1 ---- 54 58 96 query I rowsort SELECT col2 + cor0.col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < col0 * + col0 ---- query I rowsort SELECT DISTINCT cor0.col0 * col1 + col0 * - col0 AS col2 FROM tab1 AS cor0 ---- -3456 -5360 69 query I rowsort SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL >= col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-902 SELECT ALL col0 + tab0.col0 DIV - col0 AS col1 FROM tab0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-902 SELECT ALL col0 + tab0.col0 / - col0 AS col1 FROM tab0 ---- 23 34 88 onlyif mysql # use DIV operator for integer division query I rowsort label-903 SELECT ALL + col0 * col0 + col2 DIV tab0.col2 FROM tab0 ---- 1226 577 7922 skipif mysql # not compatible query I rowsort label-903 SELECT ALL + col0 * col0 + col2 / tab0.col2 FROM tab0 ---- 1226 577 7922 query I rowsort SELECT ALL col0 * + col1 + col2 AS col2 FROM tab0 cor0 ---- 2097 3396 8181 query I rowsort SELECT + col2 * col1 + + col0 * cor0.col0 + - col0 * - cor0.col2 FROM tab1 cor0 ---- 15328 1575 8314 query I rowsort SELECT ALL + col2 * cor0.col0 + col0 * + col0 FROM tab0 AS cor0 ---- 1260 1368 15219 query I rowsort SELECT col0 + col2 * col2 + cor0.col2 * col2 AS col1 FROM tab1 AS cor0 ---- 18512 5835 6562 query I rowsort SELECT + col1 + - col0 * - cor0.col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT ALL + col2 * + col2 - - col1 FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT DISTINCT col0 + + col1 AS col2 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT ALL + + col2 * col0 * col0 AS col0 FROM tab0 AS cor0 ---- 1225 19008 649522 query I rowsort SELECT - + col1 * col1 * - col1 FROM tab0 AS cor0 ---- 636056 753571 912673 onlyif mysql # use DIV operator for integer division query I rowsort label-913 SELECT ALL cor0.col1 + - col0 DIV col2 FROM tab0 AS cor0 ---- 62 86 90 skipif mysql # not compatible query I rowsort label-913 SELECT ALL cor0.col1 + - col0 / col2 FROM tab0 AS cor0 ---- 62 86 90 query I rowsort SELECT DISTINCT + + col0 * - col2 + - col2 AS col1 FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT ALL + + col0 * col0 * col2 - + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 233462 460 614387 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 + cor0.col0 col2 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT ALL cor0.col1 - + col2 * - col2 AS col1 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT + col2 - + col2 * col1 FROM tab0 ---- -2805 -7380 -96 query I rowsort SELECT ALL col0 + col1 + - col1 AS col1 FROM tab1 ---- 3 64 80 query I rowsort SELECT DISTINCT - cor0.col2 + + cor0.col0 * col1 AS col1 FROM tab0 cor0 ---- 2031 3394 8017 query I rowsort SELECT ALL - col0 + + col1 * + 7 FROM tab2 AS cor0 ---- 210 335 40 query I rowsort SELECT DISTINCT 55 * col0 FROM tab1 ---- 165 3520 4400 query I rowsort SELECT DISTINCT + + col0 + col1 AS col2 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT + - col1 * - col0 + col1 + 60 AS col0 FROM tab2 cor0 ---- 1420 308 4721 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-925 SELECT DISTINCT + col2 * col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-925 SELECT DISTINCT + col2 * col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + col0 + col2 + + 87 FROM tab0 AS cor0 ---- 123 144 258 query I rowsort SELECT + cor0.col2 * 66 FROM tab2 AS cor0 ---- 1716 1782 2508 query I rowsort SELECT - + col0 * + 26 AS col0 FROM tab2 AS cor0 ---- -182 -2028 -2054 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( col1 * - 53 ) col1 FROM tab1 ---- -1378 -530 -689 query I rowsort SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT col2 + col1 * + ( col2 ) * col1 AS col1 FROM tab0 ---- 244101 679124 9410 query I rowsort SELECT + 66 * + col1 AS col0 FROM tab0 ---- 5676 6006 6402 onlyif mysql # use DIV operator for integer division query I rowsort label-933 SELECT ALL - col1 DIV - col2 AS col2 FROM tab0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-933 SELECT ALL - col1 / - col2 AS col2 FROM tab0 ---- 1 2 97 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col0 / - col2 AND + col0 * + col0 ---- query I rowsort SELECT - col2 * + col2 * + col0 + + col1 AS col1 FROM tab2 ---- -114059 -5072 -52669 query I rowsort SELECT ALL col1 + col2 + - col1 * col0 AS col0 FROM tab0 ---- -1945 -3297 -7926 query I rowsort SELECT + col2 * col1 + col0 * col2 * col0 + col0 AS col2 FROM tab0 ---- 1357 21870 657073 query I rowsort SELECT DISTINCT + col0 * + col0 * + col1 FROM tab1 ---- 234 40960 83200 query III rowsort SELECT * FROM tab1 WHERE NOT + col2 - col2 BETWEEN col0 / col0 AND NULL ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d onlyif mysql # use DIV operator for integer division query I rowsort label-940 SELECT - col0 * col2 DIV - tab0.col2 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-940 SELECT - col0 * col2 / - tab0.col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT col0 + col0 - tab0.col1 FROM tab0 ---- -27 -38 87 query I rowsort SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) IN ( - col2 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * + col2 * + col0 col0 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT DISTINCT col1 * + col2 - col1 FROM tab0 ---- 0 2752 7371 query I rowsort SELECT ALL + col0 + col0 * col0 FROM tab2 WHERE NULL BETWEEN ( col2 ) AND NULL ---- query I rowsort SELECT + col2 * + col2 * - tab0.col2 FROM tab0 ---- -1 -35937 -551368 query I rowsort SELECT ALL + col1 * tab1.col2 * - col1 FROM tab1 ---- -16224 -36504 -5700 query I rowsort SELECT col2 * col0 * + col1 + + col1 FROM tab0 ---- 3492 664209 68198 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab1.col1 * - col0 * - col2 col0 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT tab0.col1 * col1 * - col1 - - col1 AS col0 FROM tab0 ---- -635970 -753480 -912576 query III rowsort SELECT ALL * FROM tab1 WHERE + col2 / col1 > NULL ---- query III rowsort SELECT * FROM tab0 WHERE NOT - col2 + + col2 * + col2 = NULL ---- query I rowsort SELECT DISTINCT + col1 * - col1 * - tab0.col1 + + col2 * tab0.col1 FROM tab0 ---- 638894 761033 912770 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-954 SELECT + + col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-954 SELECT + + col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 20 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4 query I rowsort SELECT + - col1 * col2 * - 61 AS col0 FROM tab0 AS cor0 ---- 173118 455182 5917 onlyif mysql # use DIV operator for integer division query I rowsort label-957 SELECT col2 * 11 - col1 DIV ( 65 ) FROM tab1 AS cor0 ---- 1056 594 627 skipif mysql # not compatible query I rowsort label-957 SELECT col2 * 11 - col1 / ( 65 ) FROM tab1 AS cor0 ---- 1056 594 627 query I rowsort SELECT ALL col0 * tab1.col1 + - col1 * - col1 AS col2 FROM tab1 ---- 1209 740 754 query I rowsort SELECT ALL + 34 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT + tab1.col0 * 0 + - tab1.col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT + - col2 + cor0.col1 - + col2 AS col1 FROM tab1 AS cor0 ---- -104 -179 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-962 SELECT 21 * col2 DIV + col0 - 30 AS col2 FROM tab1 AS cor0 ---- -12 -5 348 skipif mysql # not compatible query I rowsort label-962 SELECT 21 * col2 / + col0 - 30 AS col2 FROM tab1 AS cor0 ---- -12 -5 348 query I rowsort SELECT ALL cor0.col0 * + 87 + col0 AS col2 FROM tab2 AS cor0 ---- 616 6864 6952 onlyif mysql # use DIV operator for integer division query I rowsort label-964 SELECT ALL - 5 DIV 48 + cor0.col1 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-964 SELECT ALL - 5 / 48 + cor0.col1 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-965 SELECT + CAST( NULL AS SIGNED ) + col2 * col1 col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-965 SELECT + CAST ( NULL AS INTEGER ) + col2 * col1 col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 - col1 * + col2 AS col2 FROM tab1 AS cor0 ---- -1168 -1401 -506 onlyif mysql # use DIV operator for integer division query I rowsort label-967 SELECT ALL - col2 DIV 61 AS col1 FROM tab1 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-967 SELECT ALL - col2 / 61 AS col1 FROM tab1 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-968 SELECT DISTINCT + col2 - CAST( NULL AS SIGNED ) * col1 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-968 SELECT DISTINCT + col2 - CAST ( NULL AS INTEGER ) * col1 FROM tab1 ---- NULL query I rowsort SELECT + + 14 FROM tab1 AS cor0 ---- 14 14 14 query I rowsort SELECT - col1 * - col1 + - 79 AS col0 FROM tab1 AS cor0 ---- 21 597 90 query I rowsort SELECT - - 20 AS col2 FROM tab2 AS cor0 ---- 20 20 20 query I rowsort SELECT + col0 * - col2 * + col1 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT ( - 46 ) + - col0 * col0 * 85 AS col2 FROM tab2 ---- -4211 -517186 -530531 query I rowsort SELECT ALL + ( + col1 + col1 ) AS col1 FROM tab2 ---- 118 34 62 onlyif mysql # use DIV operator for integer division query I rowsort label-975 SELECT ALL - col1 DIV cor0.col0 FROM tab1 AS cor0 ---- -8 0 0 skipif mysql # not compatible query I rowsort label-975 SELECT ALL - col1 / cor0.col0 FROM tab1 AS cor0 ---- -8 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + cor0.col0 col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT - + cor0.col0 + - ( + col1 ) * col0 AS col1 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT ALL col1 + + col0 * - col0 * col2 AS col0 FROM tab1 AS cor0 ---- -233462 -460 -614387 onlyif mysql # use DIV operator for integer division query I rowsort label-979 SELECT DISTINCT - - col2 DIV - col0 - ( + col1 ) FROM tab0 AS cor0 ---- -87 -91 -97 skipif mysql # not compatible query I rowsort label-979 SELECT DISTINCT - - col2 / - col0 - ( + col1 ) FROM tab0 AS cor0 ---- -87 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-980 SELECT + - 45 + col1 * col2 DIV col1 FROM tab1 AS cor0 ---- 12 51 9 skipif mysql # not compatible query I rowsort label-980 SELECT + - 45 + col1 * col2 / col1 FROM tab1 AS cor0 ---- 12 51 9 query I rowsort SELECT - - col0 + + col2 * col2 AS col2 FROM tab2 AS cor0 ---- 1523 736 754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 51 col0 FROM tab2 ---- -51 -51 -51 query I rowsort SELECT ALL + + 89 FROM tab2, tab1, tab1 cor0 ---- 27 values hashing to 860d55eb6785972467218a9c3badb5ad query I rowsort SELECT ALL ( + col0 ) + 42 FROM tab2 ---- 120 121 49 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col1 * tab1.col0 + col2 col2 FROM tab1 ---- 1136 132 697 query I rowsort SELECT ALL - col2 * col2 + + cor0.col0 * + cor0.col1 * col0 AS col1 FROM tab2 cor0 ---- 104653 358280 790 query I rowsort SELECT ALL col2 - col2 * + col2 AS col0 FROM tab2 cor0 ---- -1406 -650 -702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * + ( col0 ) * + col0 - + col1 * ( cor0.col2 ) col2 FROM tab0 AS cor0 ---- 118728 46698 713349 query I rowsort SELECT ALL + - cor0.col0 + + ( col1 ) * + col1 AS col2 FROM tab2 cor0 ---- 210 3403 954 query I rowsort SELECT DISTINCT col1 + - col0 * col1 * + col0 FROM tab2 cor0 ---- -106080 -1488 -358897 query I rowsort SELECT DISTINCT + + col2 + + 72 AS col1 FROM tab1 AS cor0 ---- 126 129 168 query I rowsort SELECT DISTINCT ( + 1 * + col1 ) + + 65 * col0 FROM tab2 ---- 486 5129 5152 query I rowsort SELECT cor1.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 ---- 81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9 query I rowsort SELECT ALL - tab0.col2 - col0 AS col0 FROM tab0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-995 SELECT + col2 DIV + cor0.col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-995 SELECT + col2 / + cor0.col0 FROM tab0 AS cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col2 * col0 + col1 * col2 col0 FROM tab0 AS cor0 ---- 132 28974 605898 query I rowsort SELECT - + col1 + - col2 AS col0 FROM tab1 cor0 ---- -109 -67 -80 query I rowsort SELECT - ( 44 ) FROM tab0 AS cor0 ---- -44 -44 -44 query I rowsort SELECT + col1 * + col1 - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 7363 8199 9408 query I rowsort SELECT + 38 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb query I rowsort SELECT ALL - col0 * col1 * 47 - col0 FROM tab0 AS cor0 ---- -159600 -380742 -97032 query I rowsort SELECT DISTINCT cor0.col1 + - cor0.col1 * col0 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT ALL 19 * col2 - col2 * 79 FROM tab0 AS cor0 ---- -1980 -4920 -60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1004 SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1004 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT DISTINCT col2 + + cor0.col0 * col2 FROM tab0 cor0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-1006 SELECT 17 DIV col1 AS col2 FROM tab1 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-1006 SELECT 17 / col1 AS col2 FROM tab1 AS cor0 ---- 0 1 1 query I rowsort SELECT ALL + col0 * ( col0 ) * col1 FROM tab0 cor0 ---- 118825 49536 720811 query I rowsort SELECT + + ( + col2 ) * cor0.col2 AS col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT ALL - col1 + col1 * - col0 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT DISTINCT + 42 * col2 AS col2 FROM tab1 AS cor0 ---- 2268 2394 4032 query I rowsort SELECT DISTINCT - - 61 + col1 AS col0 FROM tab2 cor0 ---- 120 78 92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1012 SELECT DISTINCT - - CAST( - col2 AS SIGNED ) * col1 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif mysql # not compatible query I rowsort label-1012 SELECT DISTINCT - - CAST ( - col2 AS INTEGER ) * col1 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1013 SELECT ALL 5 + + col1 * col0 + CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1013 SELECT ALL 5 + + col1 * col0 + CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * 2 col0 FROM tab0 AS cor0 ---- -172 -182 -194 onlyif mysql # use DIV operator for integer division query I rowsort label-1015 SELECT ALL CAST( col2 AS SIGNED ) + col1 DIV 12 FROM tab0 AS cor0 ---- 40 89 9 skipif mysql # not compatible query I rowsort label-1015 SELECT ALL CAST ( col2 AS INTEGER ) + col1 / 12 FROM tab0 AS cor0 ---- 40 89 9 query I rowsort SELECT - tab0.col0 * 39 AS col0 FROM tab0 ---- -1365 -3471 -936 query I rowsort SELECT ALL - col2 * - 56 * - 91 + + col1 FROM tab0 ---- -168082 -417781 -4999 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1018 SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-1018 SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1019 SELECT + + ( ( - col1 ) ) + col0 DIV - col0 FROM tab1 AS cor0 ---- -11 -14 -27 skipif mysql # not compatible query I rowsort label-1019 SELECT + + ( ( - col1 ) ) + col0 / - col0 FROM tab1 AS cor0 ---- -11 -14 -27 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1020 SELECT ALL - col0 * cor0.col1 + + cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1020 SELECT ALL - col0 * cor0.col1 + + cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT - - ( + col0 ) + col2 + col2 * col2 AS col0 FROM tab0 AS cor0 ---- 1146 37 6895 query I rowsort SELECT + col0 - - tab0.col1 AS col2 FROM tab0 ---- 110 132 180 query I rowsort SELECT - ( - 19 ) AS col2 FROM tab2 ---- 19 19 19 onlyif mysql # use DIV operator for integer division query I rowsort label-1024 SELECT + + col2 + cor0.col1 DIV + 32 AS col2 FROM tab2 AS cor0 ---- 27 27 38 skipif mysql # not compatible query I rowsort label-1024 SELECT + + col2 + cor0.col1 / + 32 AS col2 FROM tab2 AS cor0 ---- 27 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-1025 SELECT ALL - 30 DIV 69 + col2 AS col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-1025 SELECT ALL - 30 / 69 + col2 AS col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT + 3 + 41 FROM tab1 ---- 44 44 44 query I rowsort SELECT ALL - col0 * - col1 + col2 * - col1 * - col0 FROM tab0 cor0 ---- 672217 6790 70176 query I rowsort SELECT ALL - cor0.col2 * 54 FROM tab2 AS cor0 ---- -1404 -1458 -2052 query I rowsort SELECT - cor0.col0 * col1 + col1 + + col2 FROM tab0 AS cor0 ---- -1945 -3297 -7926 query I rowsort SELECT DISTINCT col0 + - 13 + ( col1 + col1 * col0 ) FROM tab1 ---- 1120 701 94 query I rowsort SELECT ALL tab0.col2 * col2 + col1 * - col2 + col2 * col0 * + col2 AS col0 FROM tab0 ---- -61 24387 597698 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col2 + 87 col2 FROM tab2 ---- 113 114 125 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1033 SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-1033 SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 ---- NULL query I rowsort SELECT col0 * col1 - + col0 AS col1 FROM tab0 ---- 2040 3360 8010 query I rowsort SELECT col0 * ( col0 ) + + col1 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT DISTINCT + col1 + ( + 85 ) FROM tab2 cor0 ---- 102 116 144 query I rowsort SELECT DISTINCT - cor0.col0 * ( + col1 ) + col1 AS col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT ALL - col1 * - 27 FROM tab1 AS cor0 ---- 270 351 702 query I rowsort SELECT - - col2 + 37 FROM tab1 cor0 ---- 133 91 94 query I rowsort SELECT - col1 + + 13 AS col2 FROM tab1 AS cor0 ---- -13 0 3 onlyif mysql # use DIV operator for integer division query I rowsort label-1041 SELECT DISTINCT cor0.col2 * col2 + col1 * - col0 * col0 + col0 DIV + col0 FROM tab0 AS cor0 ---- -118823 -48446 -714086 skipif mysql # not compatible query I rowsort label-1041 SELECT DISTINCT cor0.col2 * col2 + col1 * - col0 * col0 + col0 / + col0 FROM tab0 AS cor0 ---- -118823 -48446 -714086 query I rowsort SELECT + col0 * cor0.col2 + cor0.col0 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT + - 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 8035c665a75d22be5922be1a4e574e03 query I rowsort SELECT DISTINCT + - 20 + + col2 FROM tab0 AS cor0 ---- -19 13 62 query I rowsort SELECT ALL + cor0.col1 + - ( col0 ) * - col0 AS col0 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT + + 26 + - col0 FROM tab0 AS cor0 ---- -63 -9 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 11 * + col1 col2 FROM tab2 ---- 187 341 649 query I rowsort SELECT - col1 + 93 * + col2 FROM tab0 AS cor0 ---- -4 2983 7535 query I rowsort SELECT 74 * - 66 FROM tab2 AS cor0 ---- -4884 -4884 -4884 query I rowsort SELECT - col0 * 51 + - col0 * 1 AS col0 FROM tab1 AS cor0 ---- -156 -3328 -4160 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 77 col1 FROM tab0 AS cor0 ---- -77 -77 -77 query I rowsort SELECT DISTINCT - 81 AS col0 FROM tab0 cor0 ---- -81 query I rowsort SELECT + col0 + - col2 * 50 FROM tab1 AS cor0 ---- -2697 -2786 -4720 query I rowsort SELECT + 62 + col0 * col2 FROM tab1 cor0 ---- 224 3710 7742 query I rowsort SELECT ALL cor0.col2 + + col0 * + ( - col2 ) FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT col2 + ( col1 + cor0.col2 ) FROM tab0 AS cor0 ---- 152 255 99 query I rowsort SELECT - + col2 - 57 FROM tab1 AS cor0 ---- -111 -114 -153 onlyif mysql # use DIV operator for integer division query I rowsort label-1058 SELECT col2 * col0 + col1 * + col0 DIV - cor0.col0 FROM tab2 AS cor0 ---- 158 1969 2985 skipif mysql # not compatible query I rowsort label-1058 SELECT col2 * col0 + col1 * + col0 / - cor0.col0 FROM tab2 AS cor0 ---- 158 1969 2985 onlyif mysql # use DIV operator for integer division query I rowsort label-1059 SELECT DISTINCT - 64 DIV - col2 + col0 DIV col1 AS col2 FROM tab0 ---- 0 1 64 skipif mysql # not compatible query I rowsort label-1059 SELECT DISTINCT - 64 / - col2 + col0 / col1 AS col2 FROM tab0 ---- 0 1 64 query I rowsort SELECT DISTINCT 55 - - col1 FROM tab0 ---- 141 146 152 onlyif mysql # use DIV operator for integer division query I rowsort label-1061 SELECT col0 * col0 DIV 19 col1 FROM tab1 ---- 0 215 336 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1061 SELECT col0 * col0 / 19 col1 FROM tab1 ---- 0 215 336 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 14 + tab2.col1 * + col1 col2 FROM tab2 ---- 275 3467 947 query I rowsort SELECT + 30 * ( col1 ) FROM tab2 AS cor0 ---- 1770 510 930 query I rowsort SELECT cor0.col1 * + 30 AS col0 FROM tab2 AS cor0 ---- 1770 510 930 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + ( - col1 ) * col2 col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT + ( col1 ) * tab0.col2 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT - 66 * + col2 FROM tab0 AS cor0 ---- -2178 -5412 -66 query I rowsort SELECT + ( col0 ) + ( - 30 ) FROM tab1 AS cor0 ---- -27 34 50 query I rowsort SELECT + cor0.col1 * col2 * - ( - 52 ) AS col0 FROM tab1 AS cor0 ---- 29640 64896 73008 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1070 SELECT CAST( + 47 AS SIGNED ) FROM tab1 ---- 47 47 47 skipif mysql # not compatible query I rowsort label-1070 SELECT CAST ( + 47 AS INTEGER ) FROM tab1 ---- 47 47 47 query I rowsort SELECT - col1 * - 94 * 49 AS col0 FROM tab0 AS cor0 ---- 396116 419146 446782 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + + 53 * col2 col2 FROM tab0 AS cor0 ---- 1725 18 4257 query I rowsort SELECT ALL + col1 + 27 FROM tab0 AS cor0 ---- 113 118 124 query I rowsort SELECT - col2 * 6 + - col0 FROM tab1 cor0 ---- -327 -406 -656 query I rowsort SELECT DISTINCT - col2 + - 40 * - col2 AS col1 FROM tab0 AS cor0 ---- 1287 3198 39 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1076 SELECT DISTINCT - col0 * - CAST( col2 AS SIGNED ) FROM tab0 cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-1076 SELECT DISTINCT - col0 * - CAST ( col2 AS INTEGER ) FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT - col2 + + 68 * 14 AS col1 FROM tab1 cor0 ---- 856 895 898 query I rowsort SELECT - 62 AS col1 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to d2579f9395350eda865ff3a2d38a74f6 query I rowsort SELECT ALL - col2 + + tab2.col2 * - col2 FROM tab2 ---- -1482 -702 -756 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1080 SELECT - + cor0.col2 + - CAST( col2 + col1 * - ( 49 ) AS SIGNED ) col0 FROM tab0 AS cor0 ---- 4148 4295 4751 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1080 SELECT - + cor0.col2 + - CAST ( col2 + col1 * - ( 49 ) AS INTEGER ) col0 FROM tab0 AS cor0 ---- 4148 4295 4751 query I rowsort SELECT + + col2 * - ( - col1 ) + col2 + + ( - col0 ) AS col2 FROM tab2 AS cor0 ---- 1482 605 857 query I rowsort SELECT col2 + - col1 * - col1 AS col2 FROM tab0 AS cor0 ---- 7429 8363 9410 query I rowsort SELECT DISTINCT cor0.col2 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col1 + + 66 * cor0.col2 + col0 * + col0 col1 FROM tab0 AS cor0 ---- 13424 1388 2840 query I rowsort SELECT ALL + col1 * col1 + + col2 FROM tab0 cor0 ---- 7429 8363 9410 query I rowsort SELECT ALL col0 * - ( + 55 + col0 ) AS col0 FROM tab0 ---- -12816 -1896 -3150 query I rowsort SELECT ALL + col2 * col1 + - cor0.col0 + 7 AS col0 FROM tab2 AS cor0 ---- 1463 574 837 query I rowsort SELECT DISTINCT - - 0 FROM tab0 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1089 SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1089 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1090 SELECT ALL ( - col2 ) + cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0 ---- -54 -56 -96 skipif mysql # not compatible query I rowsort label-1090 SELECT ALL ( - col2 ) + cor0.col0 / col2 AS col1 FROM tab1 AS cor0 ---- -54 -56 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-1091 SELECT ALL + CAST( + col2 AS SIGNED ) DIV + col1 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-1091 SELECT ALL + CAST ( + col2 AS INTEGER ) / + col1 FROM tab1 AS cor0 ---- 2 5 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 19 col2 FROM tab2 AS cor0 ---- 19 query I rowsort SELECT DISTINCT + cor0.col0 + + col1 * + cor0.col2 FROM tab2 AS cor0 ---- 1612 725 844 onlyif mysql # use DIV operator for integer division query I rowsort label-1094 SELECT + col2 * col2 DIV col2 AS col1 FROM tab1 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-1094 SELECT + col2 * col2 / col2 AS col1 FROM tab1 ---- 54 57 96 query I rowsort SELECT ALL - 20 + 88 + + col0 AS col2 FROM tab0 ---- 103 157 92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 38 col2 FROM tab2 AS cor0 ---- -38 -38 -38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1097 SELECT - CAST( NULL AS SIGNED ) * 40 + + col2 col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1097 SELECT - CAST ( NULL AS INTEGER ) * 40 + + col2 col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1098 SELECT + CAST( col1 AS SIGNED ) * col0 + ( - col1 ) AS col2 FROM tab0 AS cor0 ---- 1978 3298 8008 skipif mysql # not compatible query I rowsort label-1098 SELECT + CAST ( col1 AS INTEGER ) * col0 + ( - col1 ) AS col2 FROM tab0 AS cor0 ---- 1978 3298 8008 onlyif mysql # use DIV operator for integer division query I rowsort label-1099 SELECT + 49 DIV - col2 AS col1 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1099 SELECT + 49 / - col2 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT - col1 * + col1 + - col2 * + col1 FROM tab1 AS cor0 ---- -1417 -2080 -670 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1101 SELECT ALL - col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1101 SELECT ALL - col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL col1 + col1 + 38 AS col1 FROM tab1 ---- 58 64 90 query I rowsort SELECT DISTINCT tab0.col0 + - 84 AS col0 FROM tab0 ---- -49 -60 5 query I rowsort SELECT DISTINCT + col0 + + 20 * + cor0.col0 - - col1 * 81 AS col2 FROM tab2 cor0 ---- 2658 3036 6417 query I rowsort SELECT - + col0 + col0 * col2 * - col0 FROM tab1 AS cor0 ---- -233536 -489 -614480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1106 SELECT DISTINCT col1 * - ( - 84 ) / col1 + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1106 SELECT DISTINCT col1 * - ( - 84 ) / col1 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT 24 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to aeeac431d22528188e8a5a2a60d2d080 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * - 35 * - col0 col2 FROM tab2 cor0 ---- -1715 -212940 -218435 query I rowsort SELECT cor0.col1 + - col0 * 59 * col0 FROM tab2 cor0 ---- -2860 -358897 -368202 onlyif mysql # use DIV operator for integer division query I rowsort label-1110 SELECT ALL + 31 DIV + col1 AS col2 FROM tab1 AS cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-1110 SELECT ALL + 31 / + col1 AS col2 FROM tab1 AS cor0 ---- 1 2 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 39 col2 FROM tab1 cor0 ---- -39 -39 -39 query I rowsort SELECT DISTINCT + 7 FROM tab1 cor0 CROSS JOIN tab1 cor1 ---- 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col1 ) * + col2 col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT - + 66 + - col1 * col0 + col0 * + col0 * col1 FROM tab2 AS cor0 ---- 104688 1236 354288 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col1 + - col2 * - col2 col1 FROM tab2 cor0 ---- 1427 617 698 onlyif mysql # use DIV operator for integer division query I rowsort label-1116 SELECT ALL - + 29 DIV col1 col0 FROM tab1 AS cor0 ---- -1 -2 -2 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1116 SELECT ALL - + 29 / col1 col0 FROM tab1 AS cor0 ---- -1 -2 -2 query I rowsort SELECT + - 35 * 61 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 3a8c12f7364f0244a061330f3ffde9f2 query I rowsort SELECT + 91 - col1 AS col2 FROM tab1 cor0 ---- 65 78 81 query I rowsort SELECT - cor0.col2 * col2 + col1 * col1 FROM tab0 AS cor0 ---- 1557 6307 9408 onlyif mysql # use DIV operator for integer division query I rowsort label-1120 SELECT DISTINCT + - col1 DIV col2 AS col0 FROM tab0 cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-1120 SELECT DISTINCT + - col1 / col2 AS col0 FROM tab0 cor0 ---- -1 -2 -97 query I rowsort SELECT ALL + cor0.col2 + col0 * cor0.col2 FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1122 SELECT ALL + col1 + CAST( + col1 AS SIGNED ) * col1 * + ( col1 ) - col1 AS col2 FROM tab0 AS cor0 ---- 636056 753571 912673 skipif mysql # not compatible query I rowsort label-1122 SELECT ALL + col1 + CAST ( + col1 AS INTEGER ) * col1 * + ( col1 ) - col1 AS col2 FROM tab0 AS cor0 ---- 636056 753571 912673 query I rowsort SELECT DISTINCT col1 + + 39 AS col1 FROM tab1 AS cor0 ---- 49 52 65 query I rowsort SELECT tab0.col2 * - tab0.col2 * col2 FROM tab0 ---- -1 -35937 -551368 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * + col0 + + col1 * 5 col0 FROM tab2 ---- 1428 372 4897 query I rowsort SELECT DISTINCT - 4 * 45 FROM tab1 AS cor0 ---- -180 query I rowsort SELECT DISTINCT + - col2 + + 50 FROM tab1 AS cor0 ---- -4 -46 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 47 * + col0 + cor0.col2 col2 FROM tab1 AS cor0 ---- 195 3065 3856 query I rowsort SELECT 29 + col2 AS col2 FROM tab1 AS cor0 ---- 125 83 86 query I rowsort SELECT 17 * col2 - col0 FROM tab1 ---- 1552 905 915 query I rowsort SELECT - ( - tab1.col0 * col1 ) - 74 AS col0 FROM tab1 ---- 4 566 966 onlyif mysql # use DIV operator for integer division query I rowsort label-1132 SELECT 35 DIV - 26 + + tab0.col1 * 19 AS col0 FROM tab0 ---- 1633 1728 1842 skipif mysql # not compatible query I rowsort label-1132 SELECT 35 / - 26 + + tab0.col1 * 19 AS col0 FROM tab0 ---- 1633 1728 1842 query I rowsort SELECT DISTINCT + 96 + ( - tab2.col1 + + col0 ) AS col2 FROM tab2 ---- 115 158 72 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1134 SELECT 49 * col2 * + col0 + CAST( NULL AS SIGNED ) * 88 - col1 * - col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1134 SELECT 49 * col2 * + col0 + CAST ( NULL AS INTEGER ) * 88 - col1 * - col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + col0 - - 66 FROM tab0 ---- 101 155 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 35 col1 FROM tab2, tab1 AS cor0 ---- 35 query I rowsort SELECT DISTINCT - 44 + col2 AS col1 FROM tab1 ---- 10 13 52 query I rowsort SELECT ( - 26 * col0 ) AS col2 FROM tab0 ---- -2314 -624 -910 onlyif mysql # use DIV operator for integer division query I rowsort label-1139 SELECT col1 DIV + 2 FROM tab1 ---- 13 5 6 skipif mysql # not compatible query I rowsort label-1139 SELECT col1 / + 2 FROM tab1 ---- 13 5 6 query I rowsort SELECT + ( 31 ) * tab0.col1 FROM tab0 ---- 2666 2821 3007 query I rowsort SELECT 70 AS col2 FROM tab0, tab2, tab2 cor0 ---- 27 values hashing to c76157a7a7ec18de56823b2058b49f32 query I rowsort SELECT - 53 + col1 AS col0 FROM tab0 AS cor0 ---- 33 38 44 query I rowsort SELECT + col0 * - col1 + col1 + - col2 AS col1 FROM tab2 AS cor0 ---- -1364 -213 -4569 query I rowsort SELECT ALL + 86 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 81 values hashing to e219687f6f4ab6f7ee442792edcebca9 onlyif mysql # use DIV operator for integer division query I rowsort label-1145 SELECT ALL 32 DIV + col0 col0 FROM tab0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1145 SELECT ALL 32 / + col0 col0 FROM tab0 ---- 0 0 1 query I rowsort SELECT ALL 19 + - col0 FROM tab0 ---- -16 -5 -70 query I rowsort SELECT 40 * - 49 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0908ad3777a7c0b2dda101418c4d3300 query I rowsort SELECT - - col0 * col1 + - ( col1 + - col2 ) FROM tab0 AS cor0 ---- 2011 3299 8090 query I rowsort SELECT DISTINCT - col2 + cor0.col1 * + col0 FROM tab2 cor0 ---- 1305 190 4576 query I rowsort SELECT ALL cor0.col1 * col2 * col2 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT DISTINCT col0 * - cor0.col0 + - col0 + - 45 FROM tab2 cor0 ---- -101 -6207 -6365 query I rowsort SELECT - 2 * - col1 + 84 AS col2 FROM tab2 AS cor0 ---- 118 146 202 query I rowsort SELECT ALL - col0 * ( - tab2.col2 ) AS col1 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT ALL cor0.col2 + + 30 AS col0 FROM tab1 AS cor0 ---- 126 84 87 query I rowsort SELECT - col2 + col2 * - 96 FROM tab1 AS cor0 ---- -5238 -5529 -9312 query I rowsort SELECT DISTINCT col0 * - col2 * col0 FROM tab0 cor0 ---- -1225 -19008 -649522 onlyif mysql # use DIV operator for integer division query I rowsort label-1157 SELECT ALL col2 + - col0 DIV + col2 AS col1 FROM tab1 AS cor0 ---- 54 56 96 skipif mysql # not compatible query I rowsort label-1157 SELECT ALL col2 + - col0 / + col2 AS col1 FROM tab1 AS cor0 ---- 54 56 96 query I rowsort SELECT DISTINCT + - ( col1 ) * col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL - - col2 + 79 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- 580 6188 6279 query I rowsort SELECT DISTINCT + ( + col1 ) * - col0 - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT DISTINCT cor0.col1 + 37 * col1 AS col2 FROM tab1 AS cor0 ---- 380 494 988 query I rowsort SELECT DISTINCT - cor0.col1 * - 21 * + col0 AS col0 FROM tab1 AS cor0 ---- 13440 1638 21840 query I rowsort SELECT ALL - 78 * col1 AS col1 FROM tab1 cor0 ---- -1014 -2028 -780 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 * col0 + col2 col1 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT + ( + 47 ) AS col1 FROM tab2 AS cor0 ---- 47 47 47 query I rowsort SELECT DISTINCT cor0.col0 * cor0.col0 * - col0 FROM tab2 AS cor0 ---- -343 -474552 -493039 query I rowsort SELECT ALL + ( 90 ) + + col1 FROM tab2 AS cor0 ---- 107 121 149 query I rowsort SELECT ALL - 39 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1 ---- 27 values hashing to a08a82dc9276c0173448e9a1c89dba93 query I rowsort SELECT DISTINCT + - cor0.col0 * + 49 AS col0 FROM tab0 AS cor0 ---- -1176 -1715 -4361 query I rowsort SELECT ALL cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to b9fc7433316cc7891b52d2a23a135419 query I rowsort SELECT DISTINCT + - 57 * + tab0.col1 FROM tab0, tab2, tab0 cor0 ---- -4902 -5187 -5529 query I rowsort SELECT ALL tab0.col1 * 47 + + col2 FROM tab0 ---- 4075 4359 4560 query I rowsort SELECT + col2 + + 2 FROM tab0 AS cor0 ---- 3 35 84 query I rowsort SELECT ALL - ( col1 ) * - ( ( - col1 ) * ( - 15 ) ) AS col0 FROM tab0 ---- 110940 124215 141135 query I rowsort SELECT 62 * col1 FROM tab0 cor0 ---- 5332 5642 6014 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1177 SELECT col0 + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -23 54 67 skipif mysql # not compatible query I rowsort label-1177 SELECT col0 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT - + col0 * ( - col1 ) + - col0 AS col1 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT + - cor0.col0 + - 38 FROM tab2 AS cor0 ---- -116 -117 -45 query I rowsort SELECT col1 * - col1 - - cor0.col0 FROM tab0 cor0 ---- -7372 -8192 -9374 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 + + col2 col2 FROM tab0 AS cor0 ---- -53 -9 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col0 col2 FROM tab2, tab0 cor0 ---- -7 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-1183 SELECT DISTINCT + tab0.col0 DIV col1 + + col1 * + col0 + col0 * + 53 AS col2 FROM tab0 ---- 12816 3336 5250 skipif mysql # not compatible query I rowsort label-1183 SELECT DISTINCT + tab0.col0 / col1 + + col1 * + col0 + col0 * + 53 AS col2 FROM tab0 ---- 12816 3336 5250 onlyif mysql # use DIV operator for integer division query I rowsort label-1184 SELECT DISTINCT 43 DIV cor0.col0 - col1 FROM tab2 cor0 ---- -17 -25 -59 skipif mysql # not compatible query I rowsort label-1184 SELECT DISTINCT 43 / cor0.col0 - col1 FROM tab2 cor0 ---- -17 -25 -59 query I rowsort SELECT ALL - + 4 * 55 FROM tab2 AS cor0 ---- -220 -220 -220 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1186 SELECT ALL + ( + ( + col0 / - col0 ) ) + 95 * - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1186 SELECT ALL + ( + ( + col0 / - col0 ) ) + 95 * - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + 87 * col0 AS col1 FROM tab0 AS cor0 ---- 2088 3045 7743 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 14 - col0 * - cor0.col0 col0 FROM tab2 cor0 ---- 6098 6255 63 query I rowsort SELECT + 78 * - col0 * cor0.col0 + col2 AS col0 FROM tab1 AS cor0 ---- -319431 -499104 -648 query I rowsort SELECT col0 + 9 AS col1 FROM tab2 AS cor0 ---- 16 87 88 query I rowsort SELECT DISTINCT - - ( - col2 ) * col0 + - cor0.col1 FROM tab1 AS cor0 ---- -188 -3658 -7693 query I rowsort SELECT - ( ( - col2 ) ) + 55 AS col1 FROM tab0 AS cor0 ---- 137 56 88 query I rowsort SELECT - ( - col2 ) * + col0 + ( + 13 * col1 ) AS col2 FROM tab0 AS cor0 ---- 1296 1910 8481 query I rowsort SELECT cor0.col2 * ( col1 * - col2 ) + - 28 * - col2 FROM tab2 AS cor0 ---- -21843 -23484 -39156 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1195 SELECT DISTINCT - col0 - CAST( + col0 AS SIGNED ) FROM tab0 ---- -178 -48 -70 skipif mysql # not compatible query I rowsort label-1195 SELECT DISTINCT - col0 - CAST ( + col0 AS INTEGER ) FROM tab0 ---- -178 -48 -70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1196 SELECT - col0 + + CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1196 SELECT - col0 + + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT tab2.col1 + ( - col0 * + col1 ) + ( - col1 ) AS col1 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT + ( + col0 ) * - col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT ALL + col2 * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT + col1 + col2 * ( col2 + - col1 ) AS col2 FROM tab1 AS cor0 ---- 1538 2689 7981 query I rowsort SELECT col2 * + col2 * + col1 AS col2 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT DISTINCT tab2.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 26 27 38 query I rowsort SELECT + col2 * col2 + + col0 + + col2 FROM tab0 cor0 ---- 1146 37 6895 query I rowsort SELECT - 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 38 col1 FROM tab0 ---- 38 query I rowsort SELECT + col0 * col2 + col1 + col2 FROM tab0 ---- 133 7471 911 query I rowsort SELECT + col0 * + col1 * + col1 AS col2 FROM tab2 ---- 22831 271518 6727 query I rowsort SELECT ALL col1 * col2 + tab0.col0 * col1 FROM tab0 ---- 15561 3492 4902 query I rowsort SELECT tab0.col0 + - col2 - + tab0.col0 FROM tab0 ---- -1 -33 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-1210 SELECT DISTINCT col1 DIV col0 - + col1 * tab1.col1 FROM tab1 ---- -100 -169 -668 skipif mysql # not compatible query I rowsort label-1210 SELECT DISTINCT col1 / col0 - + col1 * tab1.col1 FROM tab1 ---- -100 -169 -668 onlyif mysql # use DIV operator for integer division query I rowsort label-1211 SELECT DISTINCT - tab2.col1 DIV col0 - + col2 * + col1 AS col0 FROM tab2 ---- -1534 -646 -841 skipif mysql # not compatible query I rowsort label-1211 SELECT DISTINCT - tab2.col1 / col0 - + col2 * + col1 AS col0 FROM tab2 ---- -1534 -646 -841 query I rowsort SELECT - col0 * - tab0.col2 + col0 AS col2 FROM tab0 ---- 70 7387 816 query I rowsort SELECT col2 * + col1 * - col2 + - col1 FROM tab2 ---- -22630 -24565 -39943 query I rowsort SELECT ALL - col1 * - col2 AS col2 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT col2 + + col0 + tab0.col2 FROM tab0 ---- 253 37 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + + col1 * tab2.col1 + - col2 col2 FROM tab2 ---- 172 3377 927 query I rowsort SELECT ALL + col1 + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 104 1053 650 onlyif mysql # use DIV operator for integer division query I rowsort label-1218 SELECT + col1 * + cor0.col1 * - col0 + - col1 DIV col0 + - col1 DIV col0 FROM tab0 AS cor0 ---- -177510 -329319 -737011 skipif mysql # not compatible query I rowsort label-1218 SELECT + col1 * + cor0.col1 * - col0 + - col1 / col0 + - col1 / col0 FROM tab0 AS cor0 ---- -177510 -329319 -737011 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * cor0.col2 col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * col0 + - cor0.col2 col1 FROM tab0 cor0 ---- -2097 -3396 -8181 query I rowsort SELECT ALL - cor0.col2 * - col0 + cor0.col0 + + col2 FROM tab1 AS cor0 ---- 219 3769 7856 query I rowsort SELECT col0 + col2 * + cor0.col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT + col2 FROM tab0 WHERE NOT ( NULL ) <= NULL ---- query I rowsort SELECT col1 * col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * - cor0.col1 ) OR NOT ( col2 ) = ( col2 * - col0 ) ---- 1040 640 78 query I rowsort SELECT DISTINCT + col2 + col2 + col0 * + col2 FROM tab0 AS cor0 ---- 37 7462 858 query I rowsort SELECT DISTINCT col0 * cor0.col1 * col1 FROM tab2 cor0 ---- 22831 271518 6727 onlyif mysql # use DIV operator for integer division query I rowsort label-1227 SELECT ALL - col1 + col0 DIV + col0 AS col2 FROM tab0 AS cor0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-1227 SELECT ALL - col1 + col0 / + col0 AS col2 FROM tab0 AS cor0 ---- -85 -90 -96 query I rowsort SELECT ALL - 52 AS col2 FROM tab2 AS cor0 ---- -52 -52 -52 onlyif mysql # use DIV operator for integer division query I rowsort label-1229 SELECT ALL + col1 DIV - cor0.col1 AS col1 FROM tab2 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1229 SELECT ALL + col1 / - cor0.col1 AS col1 FROM tab2 cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - ( + col1 ) * + col0 + - col2 col0 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT DISTINCT + - col1 * col0 - col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT ALL col2 * col2 + col1 * col2 AS col0 FROM tab2 cor0 ---- 1566 2090 2210 query I rowsort SELECT DISTINCT + col1 * col0 * col1 + + col2 AS col0 FROM tab2 AS cor0 ---- 22869 271544 6754 query I rowsort SELECT DISTINCT + - col2 + - col0 * - col1 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT 93 - col0 FROM tab2 ---- 14 15 86 query I rowsort SELECT DISTINCT + col0 FROM tab0 WHERE ( col1 * + col2 ) <> ( - col2 ) ---- 24 35 89 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN col1 AND ( col0 ) ---- 78 59 26 79 17 38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + + col0 * col0 * - tab0.col2 col0 FROM tab0 ---- -1260 -19032 -649611 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - col0 / col2 NOT BETWEEN ( + col2 * col2 ) AND - col0 * - col0 ---- query I rowsort SELECT + col0 + col0 + - tab2.col0 AS col2 FROM tab2 ---- 7 78 79 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col1 * col1 ) ---- query I rowsort SELECT DISTINCT + col2 + + tab2.col0 * - col1 AS col2 FROM tab2 ---- -1305 -190 -4576 query I rowsort SELECT + col0 + - col1 * col2 FROM tab1 ---- -1168 -1401 -506 query III rowsort SELECT * FROM tab0 WHERE col0 * col2 <> ( NULL ) ---- query I rowsort SELECT ALL - col0 AS col1 FROM tab2 WHERE col1 NOT IN ( + col2 ) ---- -7 -78 -79 query I rowsort SELECT ALL + 14 FROM tab1, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to 409c1790b702540dd9dc067c1965b7c0 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + col2 * col0 * col0 BETWEEN col1 * - col0 + + col0 AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-1248 SELECT ALL + col1 + col0 DIV + col0 FROM tab2 ---- 18 32 60 skipif mysql # not compatible query I rowsort label-1248 SELECT ALL + col1 + col0 / + col0 FROM tab2 ---- 18 32 60 query I rowsort SELECT col1 AS col0 FROM tab2 WHERE ( NULL ) < - tab2.col1 * + col0 ---- query I rowsort SELECT DISTINCT - tab2.col1 * - col2 * col2 + - col2 * + col0 * col2 AS col2 FROM tab2 ---- -12844 -89528 17496 query III rowsort SELECT * FROM tab2 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT ALL col0 + + tab0.col0 * col0 AS col2 FROM tab0 ---- 1260 600 8010 query I rowsort SELECT ALL - tab1.col1 FROM tab1 WHERE NOT + col2 <= NULL ---- query I rowsort SELECT col2 AS col0 FROM tab2 WHERE ( NULL ) > NULL ---- query I rowsort SELECT - tab0.col2 - - col1 AS col0 FROM tab0 ---- 53 9 96 query I rowsort SELECT ALL tab1.col2 * + col1 * tab1.col0 - + col0 * + col0 AS col2 FROM tab1 ---- 32384 4203 93440 query I rowsort SELECT ALL + tab2.col2 FROM tab2 WHERE ( + tab2.col1 ) <= ( NULL ) ---- query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + col0 + col0 * col2 * col1 NOT IN ( + col1 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT ALL - col1 * col0 * + col2 AS col2 FROM tab1 cor0 ---- -36480 -4212 -99840 query I rowsort SELECT cor0.col0 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # use DIV operator for integer division query I rowsort label-1261 SELECT ALL cor0.col2 DIV col1 + + col2 AS col0 FROM tab1 cor0 ---- 103 56 62 skipif mysql # not compatible query I rowsort label-1261 SELECT ALL cor0.col2 / col1 + + col2 AS col0 FROM tab1 cor0 ---- 103 56 62 query I rowsort SELECT col0 + col2 * - tab0.col1 AS col1 FROM tab0 ---- -2814 -62 -7373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 * col0 + col1 + col1 col1 FROM tab2 AS cor0 ---- 1377 279 4720 onlyif mysql # use DIV operator for integer division query I rowsort label-1264 SELECT DISTINCT ( col1 ) DIV col1 + + col0 AS col2 FROM tab2 AS cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-1264 SELECT DISTINCT ( col1 ) / col1 + + col0 AS col2 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT - col0 - col2 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT col2 + col1 + - col0 AS col1 FROM tab2 cor0 ---- -24 51 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 46 * - col0 col2 FROM tab2 ---- -322 -3588 -3634 query I rowsort SELECT DISTINCT - col0 * + col0 * + 80 FROM tab2 ---- -3920 -486720 -499280 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 58 * - col0 col0 FROM tab1 ---- -174 -3712 -4640 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col1 ) * - 80 + + col0 col0 FROM tab1 ---- -2077 -736 -960 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1271 SELECT ALL + col2 + + tab0.col0 * ( tab0.col1 * - col1 + CAST( NULL AS SIGNED ) * col0 ) AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1271 SELECT ALL + col2 + + tab0.col0 * ( tab0.col1 * - col1 + CAST ( NULL AS INTEGER ) * col0 ) AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + ( - cor0.col2 ) FROM tab2, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT DISTINCT 60 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 60 query I rowsort SELECT 55 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3 query I rowsort SELECT - + col0 * 81 FROM tab2 AS cor0 ---- -567 -6318 -6399 query I rowsort SELECT ALL - col2 * 59 AS col2 FROM tab1 AS cor0 ---- -3186 -3363 -5664 query I rowsort SELECT + cor0.col1 * col1 + col2 * 68 - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 13768 9442 9616 query I rowsort SELECT col0 - - cor0.col2 AS col1 FROM tab1 AS cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-1279 SELECT 93 DIV + 60 + col1 AS col2 FROM tab2 ---- 18 32 60 skipif mysql # not compatible query I rowsort label-1279 SELECT 93 / + 60 + col1 AS col2 FROM tab2 ---- 18 32 60 query I rowsort SELECT ALL tab2.col2 * ( col1 ) AS col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT DISTINCT + 68 * + col2 FROM tab1 AS cor0 ---- 3672 3876 6528 query I rowsort SELECT + cor0.col1 * col0 * col0 FROM tab2 AS cor0 ---- 106097 1519 358956 onlyif mysql # use DIV operator for integer division query I rowsort label-1283 SELECT - 24 DIV col1 col1 FROM tab1 AS cor0 ---- -1 -2 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1283 SELECT - 24 / col1 col1 FROM tab1 AS cor0 ---- -1 -2 0 query I rowsort SELECT DISTINCT 87 + cor0.col1 * 79 AS col2 FROM tab1 AS cor0 ---- 1114 2141 877 query I rowsort SELECT DISTINCT - 9 AS col1 FROM tab2 cor0 ---- -9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 + + col1 col1 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT + col1 + col1 * ( col2 + col1 ) * - ( + cor0.col0 ) FROM tab0 AS cor0 ---- -1401036 -245530 -332613 query I rowsort SELECT ALL 38 + - col1 * cor0.col0 FROM tab2 AS cor0 ---- -1305 -179 -4564 query I rowsort SELECT ALL cor0.col1 + - cor0.col2 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL col2 + - cor0.col1 * + 53 + col0 * + col2 FROM tab2 AS cor0 ---- -1073 -1427 2139 query I rowsort SELECT + 58 + col2 AS col2 FROM tab1 AS cor0 ---- 112 115 154 query I rowsort SELECT - 43 + + col1 AS col2 FROM tab0 AS cor0 ---- 43 48 54 onlyif mysql # use DIV operator for integer division query I rowsort label-1293 SELECT ALL - - 26 + + col2 DIV + ( - 34 + col2 ) AS col2 FROM tab0 AS cor0 ---- -7 26 27 skipif mysql # not compatible query I rowsort label-1293 SELECT ALL - - 26 + + col2 / + ( - 34 + col2 ) AS col2 FROM tab0 AS cor0 ---- -7 26 27 query I rowsort SELECT ALL - 37 + + cor0.col0 * 31 FROM tab1 AS cor0 ---- 1947 2443 56 query I rowsort SELECT DISTINCT - col0 * col1 * col2 - - col1 AS col1 FROM tab1 AS cor0 ---- -36470 -4186 -99827 query I rowsort SELECT DISTINCT + + 63 - + col2 AS col0 FROM tab2 AS cor0 ---- 25 36 37 query I rowsort SELECT DISTINCT - + col1 + cor0.col1 * 44 FROM tab2 cor0 ---- 1333 2537 731 query I rowsort SELECT ALL + 71 * + col1 AS col1 FROM tab1 AS cor0 ---- 1846 710 923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 54 - + cor0.col0 col2 FROM tab2 AS cor0 ---- -24 -25 47 query I rowsort SELECT + col2 + + col1 * - col1 + col2 FROM tab1 AS cor0 ---- -568 14 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * 11 * - 25 col1 FROM tab0 AS cor0 ---- -24475 -6600 -9625 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * 45 + + 79 + - col2 col0 FROM tab2 ---- 1447 2708 806 query I rowsort SELECT + - cor0.col2 + col0 * 50 FROM tab2 AS cor0 ---- 323 3874 3912 query I rowsort SELECT DISTINCT - col0 * 16 FROM tab0 AS cor0 ---- -1424 -384 -560 query I rowsort SELECT + col0 + + 45 + col1 * col2 FROM tab0 AS cor0 ---- 177 2907 7596 query I rowsort SELECT ALL cor0.col0 * 86 + 74 AS col2 FROM tab2 AS cor0 ---- 676 6782 6868 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col1 * + ( + col0 ) * - col2 col2 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT - 85 * col2 * col0 AS col0 FROM tab1 cor0 ---- -13770 -310080 -652800 query I rowsort SELECT ALL + col1 + - col0 * col2 * 3 FROM tab0 AS cor0 ---- -21803 -2290 -8 query I rowsort SELECT DISTINCT ( + 1 ) + - col1 AS col0 FROM tab1 AS cor0 ---- -12 -25 -9 query I rowsort SELECT 47 * 93 FROM tab2 AS cor0 ---- 4371 4371 4371 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1312 SELECT CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1312 SELECT CAST ( NULL AS REAL ) + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1313 SELECT ALL + 27 DIV 49 col2 FROM tab1 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1313 SELECT ALL + 27 / 49 col2 FROM tab1 cor0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2 ---- 3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c query I rowsort SELECT DISTINCT 13 AS col0 FROM tab2, tab0 AS cor0 ---- 13 onlyif mysql # use DIV operator for integer division query I rowsort label-1316 SELECT col0 DIV - ( + col0 ) FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1316 SELECT col0 / - ( + col0 ) FROM tab1 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-1317 SELECT ALL 21 * col0 DIV - CAST( col2 + - col0 AS SIGNED ) FROM tab1 ---- -1 -105 192 skipif mysql # not compatible query I rowsort label-1317 SELECT ALL 21 * col0 / - CAST ( col2 + - col0 AS INTEGER ) FROM tab1 ---- -1 -105 192 onlyif mysql # use DIV operator for integer division query I rowsort label-1318 SELECT DISTINCT col2 + + col0 DIV col0 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-1318 SELECT DISTINCT col2 + + col0 / col0 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT DISTINCT - col2 * - ( col0 ) + + col2 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT DISTINCT - - col0 * cor0.col2 + col1 AS col1 FROM tab1 cor0 ---- 188 3658 7693 query I rowsort SELECT + 43 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 query I rowsort SELECT + col1 * - col0 + - col0 FROM tab0 ---- -2088 -3430 -8188 query I rowsort SELECT + ( - tab2.col2 ) FROM tab2, tab1 cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 query I rowsort SELECT DISTINCT - col2 * col0 + + 20 FROM tab2 ---- -169 -2008 -2982 query I rowsort SELECT ALL + - col0 * - col2 + col2 AS col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT col1 * - ( 1 ) FROM tab1 AS cor0 ---- -10 -13 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-1327 SELECT DISTINCT col2 * - col2 + + col0 DIV - col2 + + ( cor0.col1 * + col1 ) AS col2 FROM tab1 AS cor0 ---- -2240 -3150 -9047 skipif mysql # not compatible query I rowsort label-1327 SELECT DISTINCT col2 * - col2 + + col0 / - col2 + + ( cor0.col1 * + col1 ) AS col2 FROM tab1 AS cor0 ---- -2240 -3150 -9047 query I rowsort SELECT ALL + - cor0.col0 * col2 + 24 * - cor0.col1 FROM tab2 AS cor0 ---- -3410 -3444 -933 query I rowsort SELECT ALL - + col1 * + col0 + - col0 + - col1 * + col0 AS col1 FROM tab2 AS cor0 ---- -2765 -441 -9282 query I rowsort SELECT + + col2 + col1 * + cor0.col1 FROM tab1 AS cor0 ---- 157 265 730 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col2 + CAST ( col0 AS REAL ) AS col1 FROM tab0 cor0 ---- -9 34 7 query I rowsort SELECT ALL col1 + ( ( col2 ) ) + + 76 * col1 AS col1 FROM tab0 AS cor0 ---- 6655 7089 7470 query I rowsort SELECT ALL + col2 * col1 + 48 FROM tab1 AS cor0 ---- 1296 1452 618 query I rowsort SELECT + col0 + 42 * - col2 FROM tab2 AS cor0 ---- -1014 -1127 -1517 query I rowsort SELECT - col2 + + 41 * + col1 AS col2 FROM tab2 ---- 1244 2393 659 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1336 SELECT ALL CAST( col2 AS SIGNED ) + col0 FROM tab2 cor0 ---- 104 117 34 skipif mysql # not compatible query I rowsort label-1336 SELECT ALL CAST ( col2 AS INTEGER ) + col0 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT ALL - col2 * 3 FROM tab0 AS cor0 ---- -246 -3 -99 query I rowsort SELECT 69 + col2 AS col0 FROM tab2 AS cor0 ---- 107 95 96 query I rowsort SELECT + - col2 + 45 * col2 FROM tab0 AS cor0 ---- 1452 3608 44 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1340 SELECT + CAST( col0 AS SIGNED ) * + col0 col1 FROM tab1 AS cor0 ---- 4096 6400 9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1340 SELECT + CAST ( col0 AS INTEGER ) * + col0 col1 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT - col2 * 55 FROM tab2 ---- -1430 -1485 -2090 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1342 SELECT + CAST( - cor0.col1 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0 ---- -289 -3481 -961 skipif mysql # not compatible query I rowsort label-1342 SELECT + CAST ( - cor0.col1 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e query I rowsort SELECT ALL col0 + + cor0.col0 FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT - + col0 * + cor0.col0 + + col2 AS col1 FROM tab2 AS cor0 ---- -22 -6058 -6203 query I rowsort SELECT ALL + ( + col2 ) * col0 AS col1 FROM tab2 cor0 ---- 189 2028 3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1347 SELECT - col0 * col0 * CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1347 SELECT - col0 * col0 * CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL col2 - col1 * + col1 FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT - cor0.col1 + + cor0.col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 92ef426526338653e88acd4aba639c47 query I rowsort SELECT DISTINCT 88 * - col2 * cor0.col1 FROM tab0 AS cor0 ---- -249744 -656656 -8536 query I rowsort SELECT + - 88 + - col2 * col0 * ( + cor0.col0 ) AS col1 FROM tab1 AS cor0 ---- -233560 -574 -614488 query I rowsort SELECT ALL - col2 * col2 * 14 AS col2 FROM tab1 ---- -129024 -40824 -45486 query I rowsort SELECT + col0 * col2 * + 94 + - 69 AS col0 FROM tab2 AS cor0 ---- 17697 190563 282119 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * cor0.col0 col0 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT + ( + col2 ) + 2 AS col1 FROM tab1 AS cor0 ---- 56 59 98 query I rowsort SELECT ALL - 41 * + col2 AS col2 FROM tab1 AS cor0 ---- -2214 -2337 -3936 query I rowsort SELECT + 16 * col1 + col0 AS col1 FROM tab0 AS cor0 ---- 1400 1545 1587 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * + col1 - + col2 * col0 col2 FROM tab1 AS cor0 ---- -3548 -7511 514 query I rowsort SELECT ( - col0 ) * + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1360 SELECT + + 10 * + col1 + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 ---- 110 143 286 skipif mysql # not compatible query I rowsort label-1360 SELECT + + 10 * + col1 + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 ---- 110 143 286 query I rowsort SELECT - ( + col1 ) + 45 * + cor0.col1 + + col1 FROM tab1 AS cor0 ---- 1170 450 585 query I rowsort SELECT + - col0 + cor0.col0 * col0 FROM tab2 AS cor0 ---- 42 6006 6162 query I rowsort SELECT + col1 * - 23 AS col0 FROM tab1 AS cor0 ---- -230 -299 -598 query I rowsort SELECT - - cor0.col0 + 70 FROM tab1 AS cor0 ---- 134 150 73 query I rowsort SELECT DISTINCT ( 99 ) FROM tab0 AS cor0 ---- 99 query I rowsort SELECT + cor0.col2 * - 45 - - col0 FROM tab0 AS cor0 ---- -10 -1461 -3601 query IIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL <= NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-1368 SELECT ALL ( col1 ) + - col2 DIV CAST( - cor0.col0 AS SIGNED ) col0 FROM tab1 cor0 ---- 10 14 44 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1368 SELECT ALL ( col1 ) + - col2 / CAST ( - cor0.col0 AS INTEGER ) col0 FROM tab1 cor0 ---- 10 14 44 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - ( 34 ) * col0 + col0 col2 FROM tab1 AS cor0 ---- -2112 -2640 -99 query I rowsort SELECT DISTINCT + 30 * col2 + - cor0.col1 FROM tab2 AS cor0 ---- 1123 721 779 query IIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2 ---- 972 values hashing to ea0f747588ddf5869ee18a5e22d9f237 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 94 col1 FROM tab0, tab0 AS cor0 ---- 94 query I rowsort SELECT - 40 + - col0 AS col2 FROM tab0 AS cor0 ---- -129 -64 -75 onlyif mysql # use DIV operator for integer division query I rowsort label-1374 SELECT + tab2.col0 * + 47 + + col0 DIV - col0 col2 FROM tab2 ---- 328 3665 3712 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1374 SELECT + tab2.col0 * + 47 + + col0 / - col0 col2 FROM tab2 ---- 328 3665 3712 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( 62 ) + col0 col2 FROM tab1 ---- 126 142 65 query I rowsort SELECT - 74 + + cor0.col0 FROM tab2 AS cor0 ---- -67 4 5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1377 SELECT - col1 * col1 * CAST( NULL AS SIGNED ) + col2 / col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1377 SELECT - col1 * col1 * CAST ( NULL AS INTEGER ) + col2 / col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 82 * - 87 * col1 AS col0 FROM tab2 ---- -121278 -221154 -420906 query I rowsort SELECT ALL - 62 + + tab0.col0 AS col2 FROM tab0 ---- -27 -38 27 query I rowsort SELECT - - cor0.col1 * 11 * ( - col1 + - col2 ) AS col0 FROM tab1 AS cor0 ---- -15587 -22880 -7370 query I rowsort SELECT DISTINCT - - col0 + col2 * col1 FROM tab0 cor0 ---- 132 2862 7551 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1382 SELECT + + col0 * CAST( NULL AS SIGNED ) / - ( col1 ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1382 SELECT + + col0 * CAST ( NULL AS INTEGER ) / - ( col1 ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + - cor0.col1 + - cor0.col2 * - 57 FROM tab2 AS cor0 ---- 1423 1508 2149 query I rowsort SELECT - + col2 + + 50 FROM tab2 AS cor0 ---- 12 23 24 query I rowsort SELECT ALL + 50 * + 58 + col2 FROM tab2 cor0 ---- 2926 2927 2938 onlyif mysql # use DIV operator for integer division query I rowsort label-1386 SELECT ALL - + col1 + col1 DIV + col1 FROM tab0 cor0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-1386 SELECT ALL - + col1 + col1 / + col1 FROM tab0 cor0 ---- -85 -90 -96 query I rowsort SELECT - - ( - col2 ) * - cor0.col2 AS col1 FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT - 90 * col1 AS col1 FROM tab0 AS cor0 ---- -7740 -8190 -8730 query I rowsort SELECT 36 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to e09b197365a04fabbaaf0718d2ae88c5 query I rowsort SELECT + + 81 * col0 + + 38 + + col2 * - cor0.col1 FROM tab0 AS cor0 ---- -215 -856 2776 query I rowsort SELECT ALL - 99 FROM tab2, tab2 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 761f5f1a166a00db99360141565a85da query I rowsort SELECT + col0 * col1 * + ( + col0 ) FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT - 70 + col2 * col0 * col2 FROM tab0 AS cor0 ---- -35 26066 598366 query I rowsort SELECT ALL - + 13 * - col1 FROM tab0 AS cor0 ---- 1118 1183 1261 query I rowsort SELECT DISTINCT - 64 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- -64 query I rowsort SELECT col1 + + 49 * - 6 FROM tab1 AS cor0 ---- -268 -281 -284 query I rowsort SELECT cor0.col2 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + col0 * - col1 col1 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT ALL 15 + 44 FROM tab0, tab0 cor0 ---- 9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc query I rowsort SELECT ALL + col2 * 72 AS col1 FROM tab2 AS cor0 ---- 1872 1944 2736 query I rowsort SELECT DISTINCT - 1 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- -1 query I rowsort SELECT col0 + col1 * - col1 AS col2 FROM tab0 ---- -7372 -8192 -9374 query I rowsort SELECT 77 * 77 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to a21b7ddc9e5f0d8f76add23c063db9b8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + 25 col1 FROM tab0 ---- 114 49 60 query I rowsort SELECT + col1 + - 73 FROM tab1 AS cor0 ---- -47 -60 -63 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1406 SELECT DISTINCT CAST( 24 * tab2.col1 AS SIGNED ) + + 25 FROM tab2, tab0 AS cor0 ---- 1441 433 769 skipif mysql # not compatible query I rowsort label-1406 SELECT DISTINCT CAST ( 24 * tab2.col1 AS INTEGER ) + + 25 FROM tab2, tab0 AS cor0 ---- 1441 433 769 onlyif mysql # use DIV operator for integer division query I rowsort label-1407 SELECT - col0 DIV ( 18 ) + col2 AS col2 FROM tab2 ---- 22 27 34 skipif mysql # not compatible query I rowsort label-1407 SELECT - col0 / ( 18 ) + col2 AS col2 FROM tab2 ---- 22 27 34 query I rowsort SELECT DISTINCT col2 * ( col2 ) AS col2 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT - cor0.col0 + - 87 * col1 FROM tab0 cor0 ---- -7506 -8006 -8474 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1410 SELECT DISTINCT cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1410 SELECT DISTINCT cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL query I rowsort SELECT - col0 * - tab0.col0 + col0 * + tab0.col1 * 78 + col0 AS col1 FROM tab0 ---- 161592 266070 639732 query I rowsort SELECT DISTINCT + ( + col2 * col0 ) - - 22 AS col1 FROM tab2 ---- 2050 211 3024 query I rowsort SELECT DISTINCT + 38 * col2 * col1 AS col1 FROM tab2 ---- 24548 31806 58292 query I rowsort SELECT 53 * 29 AS col0 FROM tab0 ---- 1537 1537 1537 query I rowsort SELECT col1 + 34 * - tab0.col1 * - col2 + col0 * col0 FROM tab0 ---- 261720 4620 97154 query I rowsort SELECT - col0 * - ( col2 ) FROM tab1 ---- 162 3648 7680 query I rowsort SELECT - ( col2 ) + col2 * col1 FROM tab0 ---- 2805 7380 96 query I rowsort SELECT 96 + + cor0.col0 FROM tab1 AS cor0 ---- 160 176 99 onlyif mysql # use DIV operator for integer division query I rowsort label-1419 SELECT 2 DIV - col1 + - col0 * 57 AS col1 FROM tab1 AS cor0 ---- -171 -3648 -4560 skipif mysql # not compatible query I rowsort label-1419 SELECT 2 / - col1 + - col0 * 57 AS col1 FROM tab1 AS cor0 ---- -171 -3648 -4560 onlyif mysql # use DIV operator for integer division query I rowsort label-1420 SELECT DISTINCT - col0 DIV col0 AS col1 FROM tab1 cor0 ---- -1 skipif mysql # not compatible query I rowsort label-1420 SELECT DISTINCT - col0 / col0 AS col1 FROM tab1 cor0 ---- -1 query I rowsort SELECT ALL + + 62 + col0 + 75 AS col0 FROM tab1 cor0 ---- 140 201 217 query I rowsort SELECT + - col1 + - col0 * + 4 AS col1 FROM tab0 AS cor0 ---- -182 -237 -447 query I rowsort SELECT DISTINCT + + col1 + col2 * col1 AS col0 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT - - col0 * + col1 + + col0 AS col2 FROM tab1 AS cor0 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + col2 * 97 col2 FROM tab0 AS cor0 ---- 194 3287 8045 query I rowsort SELECT DISTINCT - - 67 + - col2 * ( col0 + + col2 ) FROM tab1 AS cor0 ---- -16829 -3011 -6830 query I rowsort SELECT + col0 * 76 * col1 FROM tab2 ---- 102068 16492 349752 query I rowsort SELECT - - 10 + - col1 AS col2 FROM tab1 AS cor0 ---- -16 -3 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1429 SELECT DISTINCT - + col1 DIV cor0.col2 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-1429 SELECT DISTINCT - + col1 / cor0.col2 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT ALL + cor0.col1 + - col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + 19 * 75 FROM tab1 AS cor0 ---- -1425 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 1 - - col0 col1 FROM tab2 AS cor0 ---- 6 77 78 query I rowsort SELECT - ( - col2 ) * + col1 + col1 AS col0 FROM tab0 AS cor0 ---- 194 2924 7553 onlyif mysql # use DIV operator for integer division query I rowsort label-1434 SELECT + col1 DIV col0 + + cor0.col2 + 64 DIV - col0 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-1434 SELECT + col1 / col0 + + cor0.col2 + 64 / - col0 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT - col2 + + col0 * - col2 * - ( - col1 ) AS col1 FROM tab2 AS cor0 ---- -119678 -51072 -5886 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1436 SELECT DISTINCT + - CAST( + col0 AS SIGNED ) + - col0 * - 64 - col2 FROM tab1 AS cor0 ---- 135 3975 4944 skipif mysql # not compatible query I rowsort label-1436 SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) + - col0 * - 64 - col2 FROM tab1 AS cor0 ---- 135 3975 4944 query I rowsort SELECT ( col0 ) + col0 * - cor0.col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT 1 + col1 * + ( 34 ) FROM tab0 AS cor0 ---- 2925 3095 3299 query I rowsort SELECT DISTINCT - 63 * col2 AS col2 FROM tab1 ---- -3402 -3591 -6048 query I rowsort SELECT - 99 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to 64d06513850a26495bc6c2fddeb254b7 query I rowsort SELECT - col0 + 73 AS col1 FROM tab0 ---- -16 38 49 query I rowsort SELECT DISTINCT + col1 + + ( col0 ) * col0 + + col0 FROM tab2 AS cor0 ---- 6221 6337 87 query I rowsort SELECT + col0 * - 20 AS col0 FROM tab2 AS cor0 ---- -140 -1560 -1580 query I rowsort SELECT DISTINCT + col1 + 96 AS col2 FROM tab1 AS cor0 ---- 106 109 122 onlyif mysql # use DIV operator for integer division query I rowsort label-1445 SELECT + col0 + + 34 DIV col1 AS col2 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-1445 SELECT + col0 + + 34 / col1 AS col2 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-1446 SELECT + col2 DIV col0 + + col0 * - col1 * - col2 FROM tab2 AS cor0 ---- 119652 51034 5862 skipif mysql # not compatible query I rowsort label-1446 SELECT + col2 / col0 + + col0 * - col1 * - col2 FROM tab2 AS cor0 ---- 119652 51034 5862 query I rowsort SELECT ( col2 ) + col0 AS col2 FROM tab1 ---- 121 176 57 query I rowsort SELECT + ( col2 ) + + 65 * - col1 + col1 * - col1 FROM tab2 ---- -1356 -2949 -7290 query I rowsort SELECT ALL - 50 * - col2 + - 17 * - col0 * col2 - + col1 FROM tab2 ---- 35717 4532 52917 query I rowsort SELECT - 11 * + col0 + + tab2.col2 AS col1 FROM tab2 ---- -50 -831 -832 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1451 SELECT + col0 * - CAST( + tab2.col0 * col2 AS SIGNED ) + + 14 FROM tab2 ---- -1309 -158170 -237144 skipif mysql # not compatible query I rowsort label-1451 SELECT + col0 * - CAST ( + tab2.col0 * col2 AS INTEGER ) + + 14 FROM tab2 ---- -1309 -158170 -237144 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab0.col2 col1 FROM tab0, tab1 cor0, tab1 AS cor1 ---- 1 33 82 query I rowsort SELECT tab1.col1 * + tab1.col0 * col2 - tab1.col2 AS col0 FROM tab1 ---- 36423 4158 99744 query I rowsort SELECT DISTINCT - cor0.col0 + + ( - col2 ) * col2 FROM tab2 AS cor0 ---- -1523 -736 -754 onlyif mysql # use DIV operator for integer division query I rowsort label-1455 SELECT DISTINCT - col2 * col1 DIV cor0.col0 FROM tab2 AS cor0 ---- -119 -19 -8 skipif mysql # not compatible query I rowsort label-1455 SELECT DISTINCT - col2 * col1 / cor0.col0 FROM tab2 AS cor0 ---- -119 -19 -8 query I rowsort SELECT + col1 + - 98 * + 80 FROM tab2 AS cor0 ---- -7781 -7809 -7823 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col1 + + col2 col2 FROM tab1 cor0 ---- 109 67 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - 44 * - 50 col2 FROM tab2 AS cor0 ---- 2207 2278 2279 query I rowsort SELECT col0 * col2 * - 80 AS col1 FROM tab2 ---- -15120 -162240 -240160 query I rowsort SELECT DISTINCT col1 * + 59 * + col0 AS col2 FROM tab1 ---- 37760 4602 61360 query I rowsort SELECT + col2 * - tab2.col0 + col0 FROM tab2 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-1462 SELECT ALL - tab0.col2 DIV - col1 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1462 SELECT ALL - tab0.col2 / - col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT tab1.col0 * + col2 * + 97 FROM tab1 ---- 15714 353856 744960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col1 * + 13 col1 FROM tab0 ---- 1118 1183 1261 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1465 SELECT ALL - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-1465 SELECT ALL - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 ---- 3 64 80 query I rowsort SELECT + col0 * - col1 + - col0 + col1 FROM tab1 AS cor0 ---- -1107 -55 -694 query I rowsort SELECT + - ( 18 ) * + col2 AS col1 FROM tab2 AS cor0 ---- -468 -486 -684 query I rowsort SELECT + - 18 * 25 + + col2 AS col1 FROM tab1 AS cor0 ---- -354 -393 -396 query I rowsort SELECT + + col1 * 87 AS col0 FROM tab0 AS cor0 ---- 7482 7917 8439 onlyif mysql # use DIV operator for integer division query I rowsort label-1470 SELECT - 33 DIV 22 + cor0.col1 * + col2 + + col1 AS col0 FROM tab1 AS cor0 ---- 1260 1429 579 skipif mysql # not compatible query I rowsort label-1470 SELECT - 33 / 22 + cor0.col1 * + col2 + + col1 AS col0 FROM tab1 AS cor0 ---- 1260 1429 579 query I rowsort SELECT - col0 + + col0 + + col1 FROM tab2 AS cor0 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-1472 SELECT + col1 + + cor0.col2 DIV col2 + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 195 2925 7554 skipif mysql # not compatible query I rowsort label-1472 SELECT + col1 + + cor0.col2 / col2 + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 195 2925 7554 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + cor0.col2 col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col0 * + col0 + + col0 AS col1 FROM tab0 cor0 ---- -1190 -552 -7832 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 - + col1 * - col1 col2 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT - + 98 * + col2 AS col1 FROM tab2 cor0 ---- -2548 -2646 -3724 onlyif mysql # use DIV operator for integer division query I rowsort label-1477 SELECT DISTINCT - 89 DIV col0 + - col0 FROM tab2 cor0 ---- -19 -79 -80 skipif mysql # not compatible query I rowsort label-1477 SELECT DISTINCT - 89 / col0 + - col0 FROM tab2 cor0 ---- -19 -79 -80 query I rowsort SELECT ALL - ( + col1 ) * - ( + col2 ) FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1479 SELECT DISTINCT + col0 * + ( ( col2 ) + CAST( NULL AS SIGNED ) * + ( - col0 ) ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1479 SELECT DISTINCT + col0 * + ( ( col2 ) + CAST ( NULL AS INTEGER ) * + ( - col0 ) ) FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1480 SELECT ALL + col1 * CAST( NULL AS SIGNED ) + + cor0.col1 + col1 AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1480 SELECT ALL + col1 * CAST ( NULL AS INTEGER ) + + cor0.col1 + col1 AS col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 - + col2 * col1 AS col2 FROM tab0 cor0 ---- -2814 -62 -7373 query I rowsort SELECT + + ( + 8 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to ffc5b4c98b57ae546521175995c49c57 query I rowsort SELECT - - col0 - + col0 AS col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT + col2 * + col1 + + col0 * col2 FROM tab1 AS cor0 ---- 1566 4218 8928 query I rowsort SELECT - + 4 + + ( col1 ) FROM tab1 AS cor0 ---- 22 6 9 onlyif mysql # use DIV operator for integer division query I rowsort label-1486 SELECT - 9 DIV cor0.col1 + col1 * + col1 + - cor0.col2 * col0 * + col1 FROM tab1 AS cor0 ---- -3536 -36380 -99671 skipif mysql # not compatible query I rowsort label-1486 SELECT - 9 / cor0.col1 + col1 * + col1 + - cor0.col2 * col0 * + col1 FROM tab1 AS cor0 ---- -3536 -36380 -99671 query I rowsort SELECT DISTINCT + + col2 * + col1 + 15 FROM tab1 AS cor0 ---- 1263 1419 585 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1488 SELECT ALL - cor0.col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1488 SELECT ALL - cor0.col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + col0 * + col2 + 49 AS col2 FROM tab0 AS cor0 ---- 7347 84 841 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * + tab0.col2 col1 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT ALL col1 + col1 + - col1 AS col2 FROM tab2 ---- 17 31 59 query I rowsort SELECT + col1 * ( - 8 * col0 ) AS col2 FROM tab1 AS cor0 ---- -5120 -624 -8320 query I rowsort SELECT - - cor0.col1 + col0 FROM tab2 cor0 ---- 137 38 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1494 SELECT - cor0.col1 + + CAST( col0 * col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- -62 706 7207 skipif mysql # not compatible query I rowsort label-1494 SELECT - cor0.col1 + + CAST ( col0 * col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT DISTINCT + - col2 + col1 * cor0.col0 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT DISTINCT + 23 - + cor0.col0 AS col1 FROM tab2 cor0 ---- -55 -56 16 query I rowsort SELECT ( col1 ) * - col1 AS col1 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT DISTINCT + - col0 * + col1 + + col1 * col2 + - cor0.col0 AS col2 FROM tab2 cor0 ---- -3146 -776 613 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * cor0.col1 * + col0 col2 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT + - ( col2 ) * + col0 AS col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL - + 16 * col2 AS col0 FROM tab2 cor0 ---- -416 -432 -608 query I rowsort SELECT DISTINCT + - ( + 11 ) + col2 FROM tab2 cor0 ---- 15 16 27 query I rowsort SELECT - 95 + + col2 + col0 FROM tab1 cor0 ---- -38 26 81 query I rowsort SELECT - col1 + - col1 + + col2 AS col0 FROM tab1 AS cor0 ---- 2 37 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( col1 ) + col0 * col2 col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT ( col2 ) * cor0.col2 + cor0.col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT ALL + + 50 * + 91 FROM tab1 AS cor0 ---- 4550 4550 4550 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 65 + + 30 col0 FROM tab0 ---- -35 -35 -35 query I rowsort SELECT col0 * - ( - col2 ) + col1 * - col0 FROM tab2 ---- -2574 -28 1659 query I rowsort SELECT col0 * col1 + - col1 FROM tab2 ---- 1326 186 4543 query I rowsort SELECT DISTINCT 57 + 50 FROM tab0 ---- 107 query I rowsort SELECT ALL ( col1 ) * - col1 AS col0 FROM tab1 cor0 ---- -100 -169 -676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 * - col2 * + col1 col1 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT - 44 * + col2 FROM tab1 AS cor0 ---- -2376 -2508 -4224 query I rowsort SELECT DISTINCT ( + col2 ) + col2 FROM tab2 ---- 52 54 76 query I rowsort SELECT ALL - ( - col2 ) + - col2 * - tab0.col2 FROM tab0 ---- 1122 2 6806 query I rowsort SELECT - + tab0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT ALL 65 * 33 AS col2 FROM tab2 ---- 2145 2145 2145 query I rowsort SELECT DISTINCT + 66 * - 65 + - tab1.col0 AS col1 FROM tab1 ---- -4293 -4354 -4370 query I rowsort SELECT ALL + 51 + 71 AS col1 FROM tab2 ---- 122 122 122 query I rowsort SELECT cor0.col2 - col2 AS col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL - col2 + - ( col1 ) FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT DISTINCT + col1 * ( col2 * col2 ) + - col1 * + col2 * col2 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - col0 * - cor0.col0 - - col1 * + col2 FROM tab0 AS cor0 ---- 1322 15383 3414 query I rowsort SELECT + - col2 - ( - col1 ) FROM tab1 AS cor0 ---- -28 -47 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * + col0 + + col2 * col0 col2 FROM tab0 AS cor0 ---- 14596 1584 70 query I rowsort SELECT - + col2 - + 40 * col2 AS col1 FROM tab0 AS cor0 ---- -1353 -3362 -41 onlyif mysql # use DIV operator for integer division query I rowsort label-1528 SELECT col1 + + ( - col1 ) + + col1 DIV col0 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-1528 SELECT col1 + + ( - col1 ) + + col1 / col0 FROM tab1 AS cor0 ---- 0 0 8 query I rowsort SELECT DISTINCT + col2 * col1 * + col2 AS col1 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT + 69 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 2810c3097fe4771e273cfff903357b40 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1531 SELECT ALL - col1 * - CAST( ( col2 ) AS SIGNED ) - col0 FROM tab1 ---- 1168 1401 506 skipif mysql # not compatible query I rowsort label-1531 SELECT ALL - col1 * - CAST ( ( col2 ) AS INTEGER ) - col0 FROM tab1 ---- 1168 1401 506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor1.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 onlyif mysql # use DIV operator for integer division query I rowsort label-1533 SELECT ALL col0 DIV 24 + - 83 FROM tab0 AS cor0 ---- -80 -82 -82 skipif mysql # not compatible query I rowsort label-1533 SELECT ALL col0 / 24 + - 83 FROM tab0 AS cor0 ---- -80 -82 -82 query I rowsort SELECT DISTINCT + - cor0.col1 * 79 AS col2 FROM tab1 cor0 ---- -1027 -2054 -790 query I rowsort SELECT ALL - + col0 + ( col1 ) FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT - col1 + 38 FROM tab0 cor0 ---- -48 -53 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-1537 SELECT DISTINCT - col0 * 52 DIV col1 + + col1 FROM tab2 ---- -224 -9 20 skipif mysql # not compatible query I rowsort label-1537 SELECT DISTINCT - col0 * 52 / col1 + + col1 FROM tab2 ---- -224 -9 20 query I rowsort SELECT + - cor0.col0 * col2 - + col1 AS col0 FROM tab2 AS cor0 ---- -2087 -220 -3019 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1539 SELECT + col0 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 14 156 158 skipif mysql # not compatible query I rowsort label-1539 SELECT + col0 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT col0 + col0 + col2 AS col0 FROM tab0 AS cor0 ---- 260 71 81 query I rowsort SELECT col2 * + 12 + 19 FROM tab2 AS cor0 ---- 331 343 475 query I rowsort SELECT - cor1.col1 FROM tab1, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT ALL 59 + - col0 * + tab0.col1 FROM tab0 ---- -2005 -3336 -8040 query I rowsort SELECT - col0 * + col1 + + 6 AS col0 FROM tab1 AS cor0 ---- -1034 -634 -72 onlyif mysql # use DIV operator for integer division query I rowsort label-1545 SELECT + 84 * col1 - ( col2 + col2 ) DIV + cor0.col2 FROM tab0 AS cor0 ---- 7222 7642 8146 skipif mysql # not compatible query I rowsort label-1545 SELECT + 84 * col1 - ( col2 + col2 ) / + cor0.col2 FROM tab0 AS cor0 ---- 7222 7642 8146 query I rowsort SELECT DISTINCT col0 + col2 * + col0 FROM tab0 cor0 ---- 70 7387 816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1547 SELECT DISTINCT col2 * - cor0.col0 * CAST( col1 AS SIGNED ) + col1 FROM tab1 AS cor0 ---- -36470 -4186 -99827 skipif mysql # not compatible query I rowsort label-1547 SELECT DISTINCT col2 * - cor0.col0 * CAST ( col1 AS INTEGER ) + col1 FROM tab1 AS cor0 ---- -36470 -4186 -99827 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1548 SELECT col0 * col1 + CAST( col1 + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 2117 3491 8108 skipif mysql # not compatible query I rowsort label-1548 SELECT col0 * col1 + CAST ( col1 + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 2117 3491 8108 query I rowsort SELECT ALL + ( + cor0.col1 ) - + 32 * - col0 AS col1 FROM tab2 cor0 ---- 2545 255 2555 query I rowsort SELECT ALL + col2 * + 94 FROM tab2 cor0 ---- 2444 2538 3572 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1551 SELECT cor0.col2 * cor0.col1 + col1 * + col0 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 ---- 23477 273052 7564 skipif mysql # not compatible query I rowsort label-1551 SELECT cor0.col2 * cor0.col1 + col1 * + col0 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 ---- 23477 273052 7564 query I rowsort SELECT DISTINCT - col0 * - 44 + col2 AS col1 FROM tab0 AS cor0 ---- 1089 1541 3998 query I rowsort SELECT DISTINCT + cor0.col1 * col2 + 45 + - col2 * col1 AS col0 FROM tab0 AS cor0 ---- 45 query I rowsort SELECT DISTINCT col2 * ( + col2 ) - - col1 AS col2 FROM tab0 cor0 ---- 1175 6815 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1555 SELECT DISTINCT col2 * + CAST( col1 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0 ---- 1560 684 864 skipif mysql # not compatible query I rowsort label-1555 SELECT DISTINCT col2 * + CAST ( col1 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0 ---- 1560 684 864 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1556 SELECT ALL - + col0 * CAST( NULL AS DECIMAL ) * + col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1556 SELECT ALL - + col0 * CAST ( NULL AS REAL ) * + col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 1 + col0 AS col0 FROM tab0 ---- 25 36 90 query I rowsort SELECT ALL tab2.col1 * - tab2.col0 + col0 AS col1 FROM tab2 ---- -1264 -210 -4524 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1559 SELECT + - col0 + CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0 ---- -19 -62 24 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1559 SELECT + - col0 + CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT + + cor0.col2 + + col1 AS col2 FROM tab2 AS cor0 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-1561 SELECT DISTINCT col0 DIV + col0 + CAST( col2 AS SIGNED ) FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-1561 SELECT DISTINCT col0 / + col0 + CAST ( col2 AS INTEGER ) FROM tab2 ---- 27 28 39 query I rowsort SELECT 7 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 4e72e9e33dacac757f48d0ce46094607 query I rowsort SELECT DISTINCT - + 35 + - col0 * col2 - + col2 FROM tab2 cor0 ---- -2089 -251 -3075 query I rowsort SELECT DISTINCT + + ( + col1 ) + - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -19 -62 24 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1565 SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-1565 SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT - ( - 4 ) * col2 FROM tab2 AS cor0 ---- 104 108 152 query I rowsort SELECT DISTINCT col1 + + col1 * col2 AS col0 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT ALL - 99 + - col2 FROM tab2 AS cor0 ---- -125 -126 -137 query I rowsort SELECT DISTINCT + col0 + - 78 AS col1 FROM tab2 AS cor0 ---- -71 0 1 query I rowsort SELECT DISTINCT - - col0 * col1 * col1 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT ALL - - cor0.col2 * cor0.col2 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT ALL 97 * 84 FROM tab1 cor0 ---- 8148 8148 8148 query I rowsort SELECT ALL - col1 * col1 * + col0 FROM tab0 AS cor0 ---- -177504 -329315 -737009 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1574 SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1574 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL 3 - col0 * - col2 FROM tab1 ---- 165 3651 7683 query I rowsort SELECT + - cor1.col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT + - col1 * col1 + - 61 FROM tab2 AS cor0 ---- -1022 -350 -3542 query I rowsort SELECT ALL + 77 + col0 FROM tab2 ---- 155 156 84 query I rowsort SELECT DISTINCT + 39 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 39 query I rowsort SELECT DISTINCT - tab2.col1 * - cor0.col2 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 24458b87d784ecaf9184f99bd12fb51a query I rowsort SELECT + 8 - col1 FROM tab2 AS cor0 ---- -23 -51 -9 query I rowsort SELECT - 90 * + col1 - 95 * col0 FROM tab2 AS cor0 ---- -12720 -3455 -9035 query I rowsort SELECT 80 + - col2 * - col2 FROM tab2 ---- 1524 756 809 onlyif mysql # use DIV operator for integer division query I rowsort label-1584 SELECT ALL col1 DIV + col0 + ( col1 + col2 ) * - tab0.col1 AS col0 FROM tab0 ---- -10231 -15742 -9504 skipif mysql # not compatible query I rowsort label-1584 SELECT ALL col1 / + col0 + ( col1 + col2 ) * - tab0.col1 AS col0 FROM tab0 ---- -10231 -15742 -9504 query I rowsort SELECT ALL + 90 FROM tab0 cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 96f7a90428db93f472e0d219bab64853 query I rowsort SELECT DISTINCT + + 57 + - 77 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- -20 query I rowsort SELECT col2 * - ( + 73 ) + col0 AS col2 FROM tab0 ---- -2385 -38 -5897 query I rowsort SELECT ALL - - col1 + + ( + cor0.col0 + col0 * col0 ) AS col0 FROM tab1 AS cor0 ---- 38 4170 6493 query I rowsort SELECT DISTINCT col1 * - col1 * tab2.col1 FROM tab2 ---- -205379 -29791 -4913 query I rowsort SELECT ALL - - 22 AS col2 FROM tab2 AS cor0 ---- 22 22 22 onlyif mysql # use DIV operator for integer division query I rowsort label-1591 SELECT - col1 DIV col1 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1591 SELECT - col1 / col1 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL + 1 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 query I rowsort SELECT + ( 1 ) * + col1 FROM tab0 cor0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1594 SELECT ALL - CAST( NULL AS SIGNED ) + 1 * col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1594 SELECT ALL - CAST ( NULL AS INTEGER ) + 1 * col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 81 * + col1 + col0 AS col0 FROM tab2 AS cor0 ---- 1456 2518 4857 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1596 SELECT DISTINCT - + 80 * + 17 + - col2 * - CAST( 42 * + col2 AS SIGNED ) + 38 FROM tab0 AS cor0 ---- -1280 281086 44416 skipif mysql # not compatible query I rowsort label-1596 SELECT DISTINCT - + 80 * + 17 + - col2 * - CAST ( 42 * + col2 AS INTEGER ) + 38 FROM tab0 AS cor0 ---- -1280 281086 44416 query I rowsort SELECT - col1 + col1 + + col2 * - cor0.col1 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT col0 + + 51 FROM tab2 AS cor0 ---- 129 130 58 query I rowsort SELECT + col1 + + cor0.col0 * col0 + - 40 FROM tab1 AS cor0 ---- -5 4066 6373 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1600 SELECT ALL + ( - ( col0 ) ) + + CAST( NULL AS SIGNED ) + - 75 * col2 * + 38 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1600 SELECT ALL + ( - ( col0 ) ) + + CAST ( NULL AS INTEGER ) + - 75 * col2 * + 38 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 - - 75 col0 FROM tab2 ---- 101 102 113 query I rowsort SELECT DISTINCT col0 + - col1 * col2 + col0 * col1 FROM tab0 ---- -750 3333 726 query I rowsort SELECT tab2.col1 * 71 AS col0 FROM tab2 ---- 1207 2201 4189 query I rowsort SELECT ALL col1 * + col1 * - col1 AS col2 FROM tab2 ---- -205379 -29791 -4913 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 41 col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 41 query I rowsort SELECT DISTINCT tab1.col0 FROM tab1, tab0, tab1 cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT - col1 * col0 * col1 + + 96 FROM tab1 ---- -13424 -1932 -6304 query I rowsort SELECT - 69 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9 query I rowsort SELECT + - col0 * 14 FROM tab0 AS cor0 ---- -1246 -336 -490 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor1.col2 col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2 ---- 243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8 query I rowsort SELECT + col1 + col0 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 2150 3492 8190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 + - 52 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to 7576e1af4ae1ac68527a1f4df13d63dc query I rowsort SELECT ALL + - col0 + - cor0.col1 * col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT 82 - + col2 AS col2 FROM tab1 ---- -14 25 28 query I rowsort SELECT + cor0.col1 * - cor0.col1 + - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -3559 -368 -968 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + - 39 col0 FROM tab1 AS cor0 ---- 15 18 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col2 + tab1.col0 * + 69 col2 FROM tab1 ---- 261 4473 5616 query I rowsort SELECT DISTINCT - col0 + + 96 FROM tab0 ---- 61 7 72 onlyif mysql # use DIV operator for integer division query I rowsort label-1619 SELECT - tab2.col2 DIV col0 + - col2 + - col0 * + col0 FROM tab2 ---- -6110 -6279 -79 skipif mysql # not compatible query I rowsort label-1619 SELECT - tab2.col2 / col0 + - col2 + - col0 * + col0 FROM tab2 ---- -6110 -6279 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-1620 SELECT DISTINCT col1 + - 6 DIV col0 AS col0 FROM tab1 ---- 10 13 24 skipif mysql # not compatible query I rowsort label-1620 SELECT DISTINCT col1 + - 6 / col0 AS col0 FROM tab1 ---- 10 13 24 onlyif mysql # use DIV operator for integer division query I rowsort label-1621 SELECT col2 + + ( + 30 ) DIV - col0 - + col1 FROM tab2 ---- -33 -8 21 skipif mysql # not compatible query I rowsort label-1621 SELECT col2 + + ( + 30 ) / - col0 - + col1 FROM tab2 ---- -33 -8 21 query I rowsort SELECT ALL + col0 + - 95 * - col1 + + col0 AS col2 FROM tab1 AS cor0 ---- 1078 1395 2476 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 + - ( + col1 ) * cor0.col0 col1 FROM tab0 cor0 ---- -2097 -3396 -8181 query I rowsort SELECT + + col2 * col1 * - ( + col2 ) + + col2 + ( col1 ) FROM tab1 AS cor0 ---- -119699 -32423 -75736 query I rowsort SELECT col0 * - 79 + + 64 AS col0 FROM tab2 AS cor0 ---- -489 -6098 -6177 query I rowsort SELECT - 16 AS col1 FROM tab0, tab0 cor0 ---- 9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34 query I rowsort SELECT - col2 - ( - col2 ) AS col2 FROM tab1 ---- 0 0 0 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2 ---- 972 values hashing to 09b120a8ff13ebafea7af10c2152241b query I rowsort SELECT DISTINCT - col2 + cor0.col0 + col0 AS col2 FROM tab0 AS cor0 ---- 15 69 96 query I rowsort SELECT - - cor0.col0 * cor0.col2 + - 96 FROM tab2 AS cor0 ---- 1932 2906 93 query I rowsort SELECT + + col0 * + cor0.col2 - - col0 FROM tab2 cor0 ---- 196 2106 3081 query I rowsort SELECT ALL + col0 + ( col2 ) AS col2 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - col1 + 13 AS col2 FROM tab0 AS cor0 ---- -73 -78 -84 query I rowsort SELECT DISTINCT + col0 * col1 - + 22 AS col2 FROM tab1 AS cor0 ---- 1018 56 618 query I rowsort SELECT - + col1 + + 44 * col2 FROM tab0 AS cor0 ---- -53 1366 3517 query I rowsort SELECT ALL col1 * 26 FROM tab2 AS cor0 ---- 1534 442 806 onlyif mysql # use DIV operator for integer division query I rowsort label-1637 SELECT ALL + ( + col1 ) DIV + col0 + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -70 skipif mysql # not compatible query I rowsort label-1637 SELECT ALL + ( + col1 ) / + col0 + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor1.col1 col1 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT + - ( - 78 ) + col2 * - col2 FROM tab1 AS cor0 ---- -2838 -3171 -9138 onlyif mysql # use DIV operator for integer division query I rowsort label-1640 SELECT ALL + 33 + + col1 + col2 DIV ( - ( cor0.col1 ) ) AS col0 FROM tab0 AS cor0 ---- 119 124 130 skipif mysql # not compatible query I rowsort label-1640 SELECT ALL + 33 + + col1 + col2 / ( - ( cor0.col1 ) ) AS col0 FROM tab0 AS cor0 ---- 119 124 130 query I rowsort SELECT ALL ( col2 ) * - col2 + - col2 * col2 FROM tab0 cor0 ---- -13448 -2 -2178 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( + col1 AS REAL ) + - col1 + - col2 FROM tab1 AS cor0 ---- -54 -57 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1643 SELECT ALL + + CAST( col2 AS SIGNED ) + + col2 * + col1 AS col2 FROM tab0 cor0 ---- 2871 7544 98 skipif mysql # not compatible query I rowsort label-1643 SELECT ALL + + CAST ( col2 AS INTEGER ) + + col2 * + col1 AS col2 FROM tab0 cor0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT - ( 96 ) AS col2 FROM tab1 AS cor0 ---- -96 onlyif mysql # use DIV operator for integer division query I rowsort label-1645 SELECT - col2 - - col1 DIV - col1 AS col2 FROM tab2 cor0 ---- -27 -28 -39 skipif mysql # not compatible query I rowsort label-1645 SELECT - col2 - - col1 / - col1 AS col2 FROM tab2 cor0 ---- -27 -28 -39 query I rowsort SELECT ALL 4 + 63 + + cor0.col2 FROM tab1 AS cor0 ---- 121 124 163 query I rowsort SELECT DISTINCT - 37 + col0 AS col0 FROM tab0 AS cor0 ---- -13 -2 52 query I rowsort SELECT - + 94 * col0 * + col0 + 44 FROM tab1 AS cor0 ---- -384980 -601556 -802 query I rowsort SELECT 47 + + ( col2 ) * col2 AS col1 FROM tab2 cor0 ---- 1491 723 776 query I rowsort SELECT ALL - ( - col0 ) - + col1 AS col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT + col0 + + tab2.col0 AS col1 FROM tab2 ---- 14 156 158 query I rowsort SELECT + 20 + col0 * + 93 FROM tab0 AS cor0 ---- 2252 3275 8297 query I rowsort SELECT DISTINCT + 90 * col1 AS col0 FROM tab0 AS cor0 ---- 7740 8190 8730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + ( col0 ) * + ( - ( col1 ) ) + col1 * col0 col0 FROM tab0 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 94 + col1 col1 FROM tab2 AS cor0 ---- -35 -63 -77 query I rowsort SELECT ALL col1 * ( - col0 ) + col0 FROM tab0 cor0 ---- -2040 -3360 -8010 query I rowsort SELECT ALL + col1 + col0 * + cor0.col2 * col0 FROM tab0 AS cor0 ---- 1322 19094 649613 query I rowsort SELECT ALL - col1 + 56 * + 95 FROM tab2 AS cor0 ---- 5261 5289 5303 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1659 SELECT DISTINCT + - col0 + - CAST( NULL AS SIGNED ) * 20 + + col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1659 SELECT DISTINCT + - col0 + - CAST ( NULL AS INTEGER ) * 20 + + col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL + col1 * 87 - col1 AS col2 FROM tab1 AS cor0 ---- 1118 2236 860 query I rowsort SELECT - cor0.col0 + - ( - col1 * col2 ) FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT ALL - - col1 * - ( ( - col2 ) ) AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL - 89 * - tab0.col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 3b3756a7145c462806168d884978f86c query I rowsort SELECT + col2 + + col0 * cor0.col0 FROM tab1 cor0 ---- 4153 63 6496 query I rowsort SELECT cor0.col1 + + col1 * + col2 AS col2 FROM tab1 cor0 ---- 1261 1430 580 query I rowsort SELECT ALL 56 + - col2 * col0 + ( col0 ) * col0 * ( - col1 ) FROM tab2 ---- -109043 -1652 -360928 query I rowsort SELECT DISTINCT 44 + + cor0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 70 71 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 56 col1 FROM tab2 ---- 56 56 56 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 3 col0 FROM tab2, tab1, tab2 AS cor0 ---- 3 query I rowsort SELECT ALL + cor0.col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL tab1.col0 * - cor0.col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 6e956995b57dab53690e9e5feefd0b3a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1672 SELECT - + col2 + - col1 + - CAST( + 35 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -120 -90 -93 skipif mysql # not compatible query I rowsort label-1672 SELECT - + col2 + - col1 + - CAST ( + 35 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -120 -90 -93 query I rowsort SELECT + col1 * + cor0.col1 + ( - col2 * col0 + ( col1 ) * - col1 ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT 36 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 query I rowsort SELECT ALL - col0 + ( col2 ) * col0 FROM tab0 AS cor0 ---- 0 7209 768 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1676 SELECT DISTINCT - col1 * col0 - - ( + col1 * CAST( NULL AS SIGNED ) + col1 ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1676 SELECT DISTINCT - col1 * col0 - - ( + col1 * CAST ( NULL AS INTEGER ) + col1 ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - 96 FROM tab1, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to a7b3e5dd01c8929180b7ffda67f79798 query I rowsort SELECT ALL + - col0 + ( + col2 ) + - col0 * col0 FROM tab1 AS cor0 ---- -4103 -6384 42 query I rowsort SELECT DISTINCT 46 + col0 * - col2 * - 1 AS col2 FROM tab0 AS cor0 ---- 7344 81 838 query I rowsort SELECT ALL + col2 * ( - col0 ) AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT 36 + - col2 FROM tab2 AS cor0 ---- -2 10 9 query I rowsort SELECT ALL + col2 * - col2 + cor0.col2 + col0 * + 70 AS col2 FROM tab2 cor0 ---- -212 4124 4810 query I rowsort SELECT + 82 * - 63 + col1 FROM tab1 AS cor0 ---- -5140 -5153 -5156 skipif mysql # not compatible query I rowsort SELECT DISTINCT - + CAST ( 48 AS REAL ) * - col2 + col0 AS col1 FROM tab2 AS cor0 ---- 1303 1326 1903 query I rowsort SELECT - + ( 75 ) + - col2 * + col0 AS col2 FROM tab0 AS cor0 ---- -110 -7373 -867 onlyif mysql # use DIV operator for integer division query I rowsort label-1686 SELECT + 7 DIV - col0 FROM tab1 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-1686 SELECT + 7 / - col0 FROM tab1 AS cor0 ---- -2 0 0 query I rowsort SELECT DISTINCT + ( - 96 ) * col0 AS col0 FROM tab2 AS cor0 ---- -672 -7488 -7584 query I rowsort SELECT DISTINCT - - ( col1 ) + + col0 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1689 SELECT ALL + + CAST( + cor0.col2 AS SIGNED ) + + col0 * col0 AS col0 FROM tab2 AS cor0 ---- 6110 6279 76 skipif mysql # not compatible query I rowsort label-1689 SELECT ALL + + CAST ( + cor0.col2 AS INTEGER ) + + col0 * col0 AS col0 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT + col0 * + 96 FROM tab0 AS cor0 ---- 2304 3360 8544 query I rowsort SELECT col2 * 30 FROM tab0 AS cor0 ---- 2460 30 990 query I rowsort SELECT - 99 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 64d06513850a26495bc6c2fddeb254b7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - col2 ) col0 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT - + 83 * - col0 * col0 FROM tab1 AS cor0 ---- 339968 531200 747 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1695 SELECT ALL col1 * - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1695 SELECT ALL col1 * - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + col2 ) + col2 col1 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT - + 66 * cor0.col0 + col0 + + col0 FROM tab0 AS cor0 ---- -1536 -2240 -5696 query I rowsort SELECT - tab2.col1 + + 16 FROM tab2 ---- -1 -15 -43 query I rowsort SELECT col1 + - col1 + - 69 * col2 AS col2 FROM tab1 AS cor0 ---- -3726 -3933 -6624 query I rowsort SELECT col1 + col2 * + col0 * + col0 FROM tab2 AS cor0 ---- 1354 158243 237175 query I rowsort SELECT + + col1 * + 12 + - cor0.col0 AS col2 FROM tab2 AS cor0 ---- 125 365 630 query I rowsort SELECT - - col0 * ( 81 ) AS col2 FROM tab1 cor0 ---- 243 5184 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-1703 SELECT - + col1 * + col1 + + col2 * col2 DIV ( cor0.col0 ) + col2 AS col2 FROM tab0 AS cor0 ---- -7318 -8124 -9408 skipif mysql # not compatible query I rowsort label-1703 SELECT - + col1 * + col1 + + col2 * col2 / ( cor0.col0 ) + col2 AS col2 FROM tab0 AS cor0 ---- -7318 -8124 -9408 query I rowsort SELECT col0 + + col0 + col0 AS col2 FROM tab2 AS cor0 ---- 21 234 237 query I rowsort SELECT col2 * col1 + - col2 * - col1 AS col2 FROM tab0 AS cor0 ---- 14924 194 5676 query I rowsort SELECT + + col0 * 49 FROM tab2 cor0 ---- 343 3822 3871 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 + - col1 col2 FROM tab2 AS cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + col2 + 13 * - col2 col2 FROM tab0 AS cor0 ---- -310 -893 85 query I rowsort SELECT ALL + 69 FROM tab2, tab0 cor0 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 query I rowsort SELECT DISTINCT 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-1711 SELECT + - col2 * + col1 + + 49 DIV - 8 FROM tab0 AS cor0 ---- -103 -2844 -7468 skipif mysql # not compatible query I rowsort label-1711 SELECT + - col2 * + col1 + + 49 / - 8 FROM tab0 AS cor0 ---- -103 -2844 -7468 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * col2 - + cor0.col1 col1 FROM tab0 AS cor0 ---- -96 1003 6633 query I rowsort SELECT DISTINCT - + ( col0 ) + - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT - + col1 * - col1 + col1 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT ALL - cor0.col2 * - col1 * cor0.col2 - col2 FROM tab2 AS cor0 ---- 22572 24510 39858 query I rowsort SELECT + col0 * col1 * col0 + - 15 FROM tab1 AS cor0 ---- 219 40945 83185 query I rowsort SELECT col2 * + cor0.col1 + col2 * ( + col0 + col0 ) * - col0 FROM tab2 AS cor0 ---- -1809 -314834 -473670 query I rowsort SELECT - - col0 - col0 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT + cor0.col1 + col2 * + col1 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT col1 * - cor0.col2 + - 50 * col1 AS col1 FROM tab2 AS cor0 ---- -1496 -2387 -4484 query I rowsort SELECT ALL ( 10 ) AS col1 FROM tab1 ---- 10 10 10 query I rowsort SELECT ALL 96 * + cor0.col1 FROM tab1 AS cor0 ---- 1248 2496 960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * col1 col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT + col0 + - col0 * - col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT ALL - col0 * + col1 * - ( col0 * col0 ) AS col2 FROM tab2 AS cor0 ---- 10633 27998568 8381663 query I rowsort SELECT 45 * col1 * + col2 AS col1 FROM tab2 cor0 ---- 29070 37665 69030 query I rowsort SELECT DISTINCT - cor0.col2 + + ( + 75 ) AS col0 FROM tab0, tab1 AS cor0 ---- -21 18 21 query I rowsort SELECT ALL tab1.col1 + - tab1.col0 FROM tab1 ---- -54 -67 23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1729 SELECT ALL - CAST( NULL AS DECIMAL ) + - 88 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1729 SELECT ALL - CAST ( NULL AS REAL ) + - 88 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab2 cor1, tab2, tab1 AS cor2 ---- 3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3 query I rowsort SELECT DISTINCT col0 * 13 * col1 AS col1 FROM tab2 ---- 17459 2821 59826 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 14 col2 FROM tab1 ---- 14 14 14 onlyif mysql # use DIV operator for integer division query I rowsort label-1733 SELECT ALL - 24 DIV + 90 AS col1 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1733 SELECT ALL - 24 / + 90 AS col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT + col2 + 81 FROM tab2 AS cor0 ---- 107 108 119 query I rowsort SELECT DISTINCT + 17 + col2 * - col1 FROM tab1 ---- -1231 -1387 -553 query I rowsort SELECT DISTINCT 82 * + col2 AS col2 FROM tab2 AS cor0 ---- 2132 2214 3116 query I rowsort SELECT 48 * col2 AS col0 FROM tab2 ---- 1248 1296 1824 query I rowsort SELECT DISTINCT 56 + col0 + - col0 AS col0 FROM tab1 AS cor0 ---- 56 query I rowsort SELECT ALL - col1 * col2 * - 14 AS col2 FROM tab0 AS cor0 ---- 104468 1358 39732 query I rowsort SELECT col2 + 20 FROM tab0 AS cor0 ---- 102 21 53 query I rowsort SELECT + cor0.col2 + cor0.col1 * - 61 AS col1 FROM tab2 AS cor0 ---- -1864 -3573 -999 query I rowsort SELECT + cor0.col2 + + col1 * - col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT ALL ( col1 ) * col0 AS col2 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT - cor0.col0 * + 55 + col2 * ( + col1 ) FROM tab0 AS cor0 ---- -1828 1518 2567 query I rowsort SELECT DISTINCT - - col1 * - 28 + + cor0.col2 FROM tab2 AS cor0 ---- -1626 -438 -841 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 57 col0 FROM tab1 AS cor0 ---- 57 57 57 query I rowsort SELECT ALL ( cor0.col2 ) + + col0 * + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT DISTINCT 82 + + ( - col0 ) * ( - col1 * col2 ) + 45 FROM tab2 AS cor0 ---- 119779 51161 5986 query I rowsort SELECT DISTINCT - col0 - + col0 * - cor0.col1 FROM tab0 AS cor0 ---- 2040 3360 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-1750 SELECT DISTINCT + col0 + 64 * col2 DIV - col0 AS col2 FROM tab2 ---- -239 49 57 skipif mysql # not compatible query I rowsort label-1750 SELECT DISTINCT + col0 + 64 * col2 / - col0 AS col2 FROM tab2 ---- -239 49 57 query I rowsort SELECT - tab1.col1 - col2 * - col0 * - col1 FROM tab1 ---- -36490 -4238 -99853 onlyif mysql # use DIV operator for integer division query I rowsort label-1752 SELECT col0 DIV - col1 - + col0 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-1752 SELECT col0 / - col1 - + col0 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT DISTINCT - 23 + - col2 + + col0 FROM tab2 AS cor0 ---- -43 18 29 query I rowsort SELECT ALL ( 34 ) * col0 * ( col0 ) + col0 AS col2 FROM tab1 AS cor0 ---- 139328 217680 309 query I rowsort SELECT + - 85 + + 43 * col0 AS col1 FROM tab1 AS cor0 ---- 2667 3355 44 query I rowsort SELECT ALL col1 * + col1 + - col2 FROM tab0 AS cor0 ---- 7363 8199 9408 query I rowsort SELECT - ( 0 ) AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT col0 * 25 AS col2 FROM tab1 AS cor0 ---- 1600 2000 75 query I rowsort SELECT - col2 * ( ( col1 ) * col2 + col0 ) FROM tab2 AS cor0 ---- -22788 -27550 -41912 query I rowsort SELECT - cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT - cor0.col0 * + cor0.col1 FROM tab2 cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col0 * col1 col1 FROM tab1 AS cor0 ---- -13520 -2028 -6400 query I rowsort SELECT + col2 * + 24 AS col2 FROM tab2 cor0 ---- 624 648 912 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1764 SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 ---- NULL skipif mysql # not compatible query I rowsort label-1764 SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 ---- NULL query I rowsort SELECT + col1 * col1 * 27 FROM tab1 AS cor0 ---- 18252 2700 4563 query I rowsort SELECT - col1 * col0 + - col0 * + tab0.col2 FROM tab0 ---- -15397 -2856 -3430 query I rowsort SELECT + col2 * + 86 * - col1 + col2 AS col0 FROM tab2 ---- -131898 -55518 -71955 query I rowsort SELECT ALL + ( + 13 * - tab1.col1 ) FROM tab1, tab0 AS cor0 ---- 9 values hashing to fd0c7315f293f2d6c709fca8259a9b7d query I rowsort SELECT - col1 + - col0 * + col0 + tab2.col1 AS col1 FROM tab2 ---- -49 -6084 -6241 onlyif mysql # use DIV operator for integer division query I rowsort label-1770 SELECT col1 DIV 87 AS col1 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1770 SELECT col1 / 87 AS col1 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1771 SELECT + col2 * - 69 * col2 + tab0.col0 DIV 8 + + col0 FROM tab0 ---- -30 -463856 -75114 skipif mysql # not compatible query I rowsort label-1771 SELECT + col2 * - 69 * col2 + tab0.col0 / 8 + + col0 FROM tab0 ---- -30 -463856 -75114 query I rowsort SELECT - 74 FROM tab2, tab0 cor0 ---- 9 values hashing to 5a567947d14593676e3825756f8e6130 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1773 SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1773 SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0 AS cor0 ---- NULL query I rowsort SELECT + col1 + - tab2.col0 * + col2 AS col1 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT 83 + - 86 AS col2 FROM tab2, tab1, tab2 cor0 ---- 27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166 query I rowsort SELECT + ( + tab2.col1 ) * - col2 + col0 AS col2 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT ALL - ( 78 * col1 + + tab1.col1 ) FROM tab1 ---- -1027 -2054 -790 query I rowsort SELECT - col2 * col2 + - col1 AS col1 FROM tab1 AS cor0 ---- -2942 -3259 -9229 query I rowsort SELECT - ( col0 + col2 ) * + 60 * + 65 FROM tab2 ---- -132600 -405600 -456300 query I rowsort SELECT 64 * + 81 FROM tab0, tab2, tab1 cor0 ---- 27 values hashing to d2944b04e4855815007c3c66da4978a4 query I rowsort SELECT DISTINCT + + 31 * - col1 FROM tab1 cor0 ---- -310 -403 -806 query I rowsort SELECT - col1 * cor0.col2 * - 59 FROM tab2 cor0 ---- 38114 49383 90506 query I rowsort SELECT DISTINCT + - 95 * + col1 FROM tab1 cor0 ---- -1235 -2470 -950 onlyif mysql # use DIV operator for integer division query I rowsort label-1784 SELECT DISTINCT col0 + col0 * 91 DIV col1 FROM tab2 AS cor0 ---- 198 27 501 skipif mysql # not compatible query I rowsort label-1784 SELECT DISTINCT col0 + col0 * 91 / col1 FROM tab2 AS cor0 ---- 198 27 501 query I rowsort SELECT DISTINCT - + 58 * + col2 FROM tab2 AS cor0 ---- -1508 -1566 -2204 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * + col2 * - col0 col0 FROM tab1 AS cor0 ---- -36480 -4212 -99840 onlyif mysql # use DIV operator for integer division query I rowsort label-1787 SELECT - col1 * - col2 + ( col2 + col1 ) DIV col2 AS col1 FROM tab1 AS cor0 ---- 1249 1405 571 skipif mysql # not compatible query I rowsort label-1787 SELECT - col1 * - col2 + ( col2 + col1 ) / col2 AS col1 FROM tab1 AS cor0 ---- 1249 1405 571 query I rowsort SELECT col0 * cor0.col2 + col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT + 12 * - col1 FROM tab2 ---- -204 -372 -708 onlyif mysql # use DIV operator for integer division query I rowsort label-1790 SELECT + - col1 DIV + 86 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1790 SELECT + - col1 / + 86 FROM tab1 AS cor0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab0 AS cor2 WHERE NOT NULL = ( NULL ) ---- onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1792 SELECT - col0 * + CAST( - cor0.col2 AS SIGNED ) FROM tab2 AS cor0 ---- 189 2028 3002 skipif mysql # not compatible query I rowsort label-1792 SELECT - col0 * + CAST ( - cor0.col2 AS INTEGER ) FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT - - ( - 57 ) AS col2 FROM tab1 cor0 ---- -57 -57 -57 query I rowsort SELECT DISTINCT + ( - col1 ) + + cor0.col1 FROM tab0 cor0 ---- 0 query I rowsort SELECT + 15 * - col1 + cor0.col1 * - col2 FROM tab1 AS cor0 ---- -1443 -1794 -720 query I rowsort SELECT ALL - col1 * ( col2 ) AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1797 SELECT DISTINCT + CAST( 95 AS SIGNED ) * cor0.col1 + + 84 * + col0 FROM tab0 AS cor0 ---- 10186 12155 16121 skipif mysql # not compatible query I rowsort label-1797 SELECT DISTINCT + CAST ( 95 AS INTEGER ) * cor0.col1 + + 84 * + col0 FROM tab0 AS cor0 ---- 10186 12155 16121 query I rowsort SELECT ALL 88 * col0 FROM tab1 cor0 ---- 264 5632 7040 query I rowsort SELECT 87 * 14 AS col0 FROM tab1 ---- 1218 1218 1218 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 2 * cor0.col0 col2 FROM tab2, tab2 cor0 ---- 9 values hashing to 10977325261681ddca962e0a5d2b348b query I rowsort SELECT cor1.col2 * 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 44bc5334d6e7adab2bd9631469888c1e query I rowsort SELECT 5 * + ( + col2 ) + col0 - - cor0.col0 AS col2 FROM tab0 AS cor0 ---- 213 588 75 query I rowsort SELECT ( col2 ) * cor0.col0 + + 79 FROM tab2 cor0 ---- 2107 268 3081 query I rowsort SELECT + ( cor0.col2 ) + + col0 - col1 AS col0 FROM tab0 AS cor0 ---- -29 -61 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1805 SELECT + col1 + ( col1 ) * + CAST( + col0 + col2 * + cor0.col2 AS SIGNED ) FROM tab0 AS cor0 ---- 3589 620074 95804 skipif mysql # not compatible query I rowsort label-1805 SELECT + col1 + ( col1 ) * + CAST ( + col0 + col2 * + cor0.col2 AS INTEGER ) FROM tab0 AS cor0 ---- 3589 620074 95804 query I rowsort SELECT + + ( + 0 ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + 78 + - col2 FROM tab0 AS cor0 ---- -4 45 77 query I rowsort SELECT 37 * - col0 AS col1 FROM tab0 AS cor0 ---- -1295 -3293 -888 query I rowsort SELECT - 61 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1 ---- 243 values hashing to 47d88b3e792902bb9c8082a3c5f5bb43 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2, tab0 AS cor1 ---- 3645 values hashing to 93ed44f621cc970f32b0cc9543b45262 onlyif mysql # use DIV operator for integer division query I rowsort label-1811 SELECT + 53 DIV tab0.col0 + col1 AS col2 FROM tab0 ---- 88 91 98 skipif mysql # not compatible query I rowsort label-1811 SELECT + 53 / tab0.col0 + col1 AS col2 FROM tab0 ---- 88 91 98 query I rowsort SELECT + col1 * col2 + - 63 * - col1 FROM tab2 ---- 1717 2790 5251 query I rowsort SELECT - cor0.col2 * - 58 AS col0 FROM tab2 AS cor0 ---- 1508 1566 2204 query I rowsort SELECT DISTINCT - col1 * 27 * col1 FROM tab0 cor0 ---- -199692 -223587 -254043 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + 11 col0 FROM tab1 ---- -53 -69 8 query I rowsort SELECT ALL + + 45 * 64 FROM tab2 AS cor0 ---- 2880 2880 2880 query I rowsort SELECT - ( - col1 ) + + cor0.col1 * 41 AS col1 FROM tab2 AS cor0 ---- 1302 2478 714 query I rowsort SELECT DISTINCT ( - cor0.col2 ) * col0 + - 96 * - ( + col1 ) AS col1 FROM tab2 AS cor0 ---- -1370 2787 3636 query I rowsort SELECT ALL + - ( ( col0 ) ) + + col1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT - col1 * col0 - cor0.col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT DISTINCT - col1 * + col0 + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -24 -583 -944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + + 75 col0 FROM tab0 AS cor0 ---- -14 40 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1823 SELECT + - CAST( NULL AS SIGNED ) * cor0.col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1823 SELECT + - CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 + + ( + col2 ) * ( 56 ) FROM tab1 AS cor0 ---- 3050 3202 5389 query I rowsort SELECT DISTINCT - col0 + + 51 * - col1 FROM tab1 AS cor0 ---- -1329 -574 -743 query I rowsort SELECT ALL 26 AS col2 FROM tab0 AS cor0 ---- 26 26 26 onlyif mysql # use DIV operator for integer division query I rowsort label-1827 SELECT - col1 DIV + cor0.col0 - col0 FROM tab2 AS cor0 ---- -11 -78 -79 skipif mysql # not compatible query I rowsort label-1827 SELECT - col1 / + cor0.col0 - col0 FROM tab2 AS cor0 ---- -11 -78 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + 81 col1 FROM tab0 AS cor0 ---- 114 163 82 query I rowsort SELECT 54 - col1 AS col0 FROM tab0 AS cor0 ---- -32 -37 -43 query I rowsort SELECT DISTINCT + ( - 93 ) * col0 * col1 + - col0 * + col1 FROM tab2 AS cor0 ---- -126242 -20398 -432588 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1831 SELECT + CAST( NULL AS SIGNED ) * 71 + + col0 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1831 SELECT + CAST ( NULL AS INTEGER ) * 71 + + col0 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - ( cor0.col0 ) * - col2 + col1 + - col1 AS col0 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT ALL + col2 * 12 AS col2 FROM tab0 AS cor0 ---- 12 396 984 query I rowsort SELECT ALL + 62 * + col0 + col0 * - col1 AS col1 FROM tab2 AS cor0 ---- 217 234 3555 query I rowsort SELECT + - 75 * - col1 AS col2 FROM tab1 AS cor0 ---- 1950 750 975 query I rowsort SELECT - + 8 FROM tab0 cor0 ---- -8 -8 -8 onlyif mysql # use DIV operator for integer division query I rowsort label-1837 SELECT + col0 DIV + col0 + tab1.col0 AS col2 FROM tab1 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-1837 SELECT + col0 / + col0 + tab1.col0 AS col2 FROM tab1 ---- 4 65 81 query I rowsort SELECT cor0.col1 + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT ALL + + col0 + col1 + - col1 FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT - 25 * col2 FROM tab1 AS cor0 ---- -1350 -1425 -2400 query I rowsort SELECT 94 + + col0 FROM tab2 AS cor0 ---- 101 172 173 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 60 col2 FROM tab1 AS cor0 ---- 60 query I rowsort SELECT + col1 * - col0 + col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 45 col1 FROM tab0 cor0 ---- 45 45 45 query I rowsort SELECT ( col0 ) + col1 AS col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT - cor0.col1 + col2 * 13 AS col0 FROM tab0 AS cor0 ---- -84 343 975 onlyif mysql # use DIV operator for integer division query I rowsort label-1847 SELECT ALL col0 * col1 DIV 79 AS col2 FROM tab1 AS cor0 ---- 0 13 8 skipif mysql # not compatible query I rowsort label-1847 SELECT ALL col0 * col1 / 79 AS col2 FROM tab1 AS cor0 ---- 0 13 8 onlyif mysql # use DIV operator for integer division query I rowsort label-1848 SELECT ALL + - cor0.col0 * - col2 + col0 DIV col0 FROM tab1 AS cor0 ---- 163 3649 7681 skipif mysql # not compatible query I rowsort label-1848 SELECT ALL + - cor0.col0 * - col2 + col0 / col0 FROM tab1 AS cor0 ---- 163 3649 7681 query I rowsort SELECT col2 * 50 AS col0 FROM tab2 AS cor0 ---- 1300 1350 1900 query I rowsort SELECT DISTINCT - col0 + ( 20 ) * col2 AS col2 FROM tab2 cor0 ---- 442 533 681 query I rowsort SELECT ALL - col2 + 66 AS col1 FROM tab2 AS cor0 ---- 28 39 40 query I rowsort SELECT - + col1 * - 21 FROM tab0 cor0 ---- 1806 1911 2037 query I rowsort SELECT + col2 * + ( 37 ) + + col0 + col0 AS col1 FROM tab2 AS cor0 ---- 1013 1118 1564 query I rowsort SELECT col2 * + cor0.col0 * - col1 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT ALL + + col2 + - ( col2 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL cor0.col2 + - 6 * col2 FROM tab1 AS cor0 ---- -270 -285 -480 query I rowsort SELECT col2 * - col1 + - col2 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT col1 * 89 AS col2 FROM tab2 AS cor0 ---- 1513 2759 5251 onlyif mysql # use DIV operator for integer division query I rowsort label-1859 SELECT ALL - col2 DIV + 67 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-1859 SELECT ALL - col2 / + 67 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT col0 * col0 - ( + col2 ) FROM tab0 ---- 1224 543 7839 query I rowsort SELECT DISTINCT - col2 + col0 + - ( - 26 * + col2 ) FROM tab1 ---- 1353 1489 2480 query I rowsort SELECT DISTINCT 58 + col1 * col2 + 56 FROM tab2 ---- 1648 760 951 query I rowsort SELECT ALL + col1 * + 60 * + col1 + col2 AS col2 FROM tab1 AS cor0 ---- 10236 40614 6057 query I rowsort SELECT DISTINCT - cor0.col0 * + col0 - col1 AS col0 FROM tab2 AS cor0 ---- -6143 -6258 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1865 SELECT DISTINCT + col0 * col2 * - CAST( - col2 * + col2 AS SIGNED ) + - col2 col2 FROM tab1 ---- 11852295 472338 70778784 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1865 SELECT DISTINCT + col0 * col2 * - CAST ( - col2 * + col2 AS INTEGER ) + - col2 col2 FROM tab1 ---- 11852295 472338 70778784 query I rowsort SELECT DISTINCT + col1 * + ( - col1 + - col0 ) AS col0 FROM tab1 ---- -1209 -740 -754 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1867 SELECT DISTINCT col0 * CAST( + col2 * col2 AS SIGNED ) FROM tab0 ---- 26136 35 598436 skipif mysql # not compatible query I rowsort label-1867 SELECT DISTINCT col0 * CAST ( + col2 * col2 AS INTEGER ) FROM tab0 ---- 26136 35 598436 onlyif mysql # use DIV operator for integer division query I rowsort label-1868 SELECT DISTINCT col2 DIV - CAST( 58 + - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-1868 SELECT DISTINCT col2 / - CAST ( 58 + - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 0 1 2 query I rowsort SELECT ALL - 78 * tab0.col0 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 9438d0df016bd9e06d27edea073c2995 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + col2 col2 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT ALL + col2 + + col1 * col0 FROM tab1 ---- 1136 132 697 query I rowsort SELECT cor0.col1 + + 98 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 93353a08055f5d9fda266a854f605619 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col2 + - tab1.col1 col0 FROM tab1 ---- 2890 3239 9203 query I rowsort SELECT ALL - col1 + col2 * 32 + - tab0.col0 * col0 FROM tab0 ---- -1290 -5388 394 query I rowsort SELECT DISTINCT - 61 * + col2 FROM tab2 AS cor0 ---- -1586 -1647 -2318 query I rowsort SELECT ALL - + col2 * col1 + ( - col0 ) AS col0 FROM tab0 AS cor0 ---- -132 -2862 -7551 onlyif mysql # use DIV operator for integer division query I rowsort label-1877 SELECT + cor0.col1 DIV col0 + - CAST( - 29 AS SIGNED ) + cor0.col0 * col1 AS col1 FROM tab0 AS cor0 ---- 2096 3426 8129 skipif mysql # not compatible query I rowsort label-1877 SELECT + cor0.col1 / col0 + - CAST ( - 29 AS INTEGER ) + cor0.col0 * col1 AS col1 FROM tab0 AS cor0 ---- 2096 3426 8129 query I rowsort SELECT ALL - ( + ( + col1 ) + - tab2.col0 ) FROM tab2 ---- -24 19 62 query I rowsort SELECT ALL ( + tab1.col2 + col1 ) * + col1 FROM tab1 ---- 1417 2080 670 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1880 SELECT - - CAST( + 17 AS SIGNED ) FROM tab1 cor0 ---- 17 17 17 skipif mysql # not compatible query I rowsort label-1880 SELECT - - CAST ( + 17 AS INTEGER ) FROM tab1 cor0 ---- 17 17 17 query I rowsort SELECT - 57 + col0 * - col2 AS col0 FROM tab1 AS cor0 ---- -219 -3705 -7737 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1882 SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col2 + + col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1882 SELECT DISTINCT CAST ( NULL AS REAL ) * + col2 + + col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL - cor0.col0 + - 81 AS col2 FROM tab1 AS cor0 ---- -145 -161 -84 query I rowsort SELECT - ( + col2 ) * - col0 + - cor0.col0 AS col1 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT tab0.col0 * 62 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 11ce761d54f7eefadd70e45c264ed839 query I rowsort SELECT col1 + - ( col0 ) AS col2 FROM tab0 cor0 ---- 2 62 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + + 96 col0 FROM tab0 AS cor0 ---- 14 63 95 query I rowsort SELECT + - cor0.col1 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f query I rowsort SELECT - col1 * - col2 - + col0 * cor0.col0 * col1 FROM tab1 AS cor0 ---- -40390 -81952 1170 query I rowsort SELECT DISTINCT + + col1 * - ( ( - col2 ) * - col1 ) FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT col0 + 99 AS col0 FROM tab2 ---- 106 177 178 query I rowsort SELECT DISTINCT col1 + ( tab0.col2 + col0 ) AS col1 FROM tab0 ---- 133 143 262 query I rowsort SELECT + - 66 * col2 + - col1 AS col2 FROM tab2 AS cor0 ---- -1775 -1813 -2525 query I rowsort SELECT 98 + + col0 * col0 * 3 FROM tab1 AS cor0 ---- 12386 125 19298 query I rowsort SELECT - col2 * 99 AS col1 FROM tab1 ---- -5346 -5643 -9504 query I rowsort SELECT 26 * 11 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 737d2a2cc6d98c79fd44a6be31492465 query I rowsort SELECT ALL - col0 * - ( - col0 ) + + col0 AS col2 FROM tab0 AS cor0 ---- -1190 -552 -7832 onlyif mysql # use DIV operator for integer division query I rowsort label-1898 SELECT col1 * + col0 + col0 DIV - col0 FROM tab2 AS cor0 ---- 1342 216 4601 skipif mysql # not compatible query I rowsort label-1898 SELECT col1 * + col0 + col0 / - col0 FROM tab2 AS cor0 ---- 1342 216 4601 query I rowsort SELECT ( - col2 ) + col0 AS col1 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT 33 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 33 query I rowsort SELECT 30 * col0 FROM tab1 ---- 1920 2400 90 query I rowsort SELECT + 59 * + col1 AS col2 FROM tab0 ---- 5074 5369 5723 onlyif mysql # use DIV operator for integer division query I rowsort label-1903 SELECT ALL + CAST( + col2 + col1 AS SIGNED ) DIV + tab1.col1 FROM tab1 ---- 3 6 8 skipif mysql # not compatible query I rowsort label-1903 SELECT ALL + CAST ( + col2 + col1 AS INTEGER ) / + tab1.col1 FROM tab1 ---- 3 6 8 query I rowsort SELECT 86 + col0 FROM tab0 ---- 110 121 175 query I rowsort SELECT + 18 * + col1 AS col2 FROM tab1 ---- 180 234 468 query I rowsort SELECT DISTINCT + ( - col0 ) * + tab2.col0 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT + col0 * + 76 AS col2 FROM tab1 cor0 ---- 228 4864 6080 query I rowsort SELECT + 74 AS col0 FROM tab0, tab2, tab1 cor0 ---- 27 values hashing to dc22979e6d261795bd3ce2990fdbbf82 query I rowsort SELECT DISTINCT + 36 * + col0 FROM tab2 AS cor0 ---- 252 2808 2844 query I rowsort SELECT + col1 + - 70 * col0 FROM tab0 AS cor0 ---- -1594 -2353 -6139 query I rowsort SELECT + - col1 * col1 + 0 AS col0 FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT col1 + 79 FROM tab0 AS cor0 ---- 165 170 176 onlyif mysql # use DIV operator for integer division query I rowsort label-1913 SELECT - col1 DIV - col2 AS col2 FROM tab0 cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-1913 SELECT - col1 / - col2 AS col2 FROM tab0 cor0 ---- 1 2 97 query I rowsort SELECT col2 + 42 FROM tab0 AS cor0 ---- 124 43 75 query I rowsort SELECT + 40 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0 query I rowsort SELECT + col1 * - col1 + 12 AS col0 FROM tab1 AS cor0 ---- -157 -664 -88 query I rowsort SELECT ALL col1 + col2 * - tab2.col0 * - col0 + col0 * ( - col2 ) FROM tab2 ---- 1165 156215 234173 query I rowsort SELECT + col2 * col1 * + col2 AS col0 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT ALL + col1 * + ( - col0 ) AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-1920 SELECT + col0 + - col2 DIV - 22 AS col1 FROM tab2 AS cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-1920 SELECT + col0 + - col2 / - 22 AS col1 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT DISTINCT col0 + - 88 * - col1 FROM tab2 AS cor0 ---- 1575 2735 5270 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1922 SELECT - col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-1922 SELECT - col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col1 col2 FROM tab2 cor0 ---- -17 -31 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-1924 SELECT DISTINCT col2 DIV col2 + col0 - + tab0.col1 FROM tab0 ---- -1 -61 skipif mysql # not compatible query I rowsort label-1924 SELECT DISTINCT col2 / col2 + col0 - + tab0.col1 FROM tab0 ---- -1 -61 query I rowsort SELECT ALL + col1 * + col2 * col2 FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT ALL col0 FROM tab2 WHERE NOT NULL NOT IN ( + col0 ) ---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col2 ) ---- query I rowsort SELECT DISTINCT col1 + + tab2.col0 + col2 FROM tab2 ---- 134 163 65 onlyif mysql # use DIV operator for integer division query I rowsort label-1929 SELECT tab2.col2 * col0 + + col0 DIV - col0 AS col2 FROM tab2 ---- 188 2027 3001 skipif mysql # not compatible query I rowsort label-1929 SELECT tab2.col2 * col0 + + col0 / - col0 AS col2 FROM tab2 ---- 188 2027 3001 query I rowsort SELECT tab0.col2 * col2 * - col2 FROM tab0 ---- -1 -35937 -551368 query I rowsort SELECT - col2 FROM tab0 WHERE NULL IN ( - col0 + col2 ) ---- query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + tab1.col0 * col2 * - tab1.col2 ) ---- query I rowsort SELECT DISTINCT tab1.col1 * + col1 * tab1.col2 FROM tab1 ---- 16224 36504 5700 query I rowsort SELECT col0 * col0 * - col1 + - col0 + col2 * tab0.col2 * + col0 AS col1 FROM tab0 ---- -118825 -122464 -23424 query I rowsort SELECT DISTINCT - + col2 * - col0 * - 3 - cor0.col2 * + col2 FROM tab2 AS cor0 ---- -10450 -1296 -6760 query I rowsort SELECT DISTINCT - col0 + col0 * - col0 AS col2 FROM tab1 AS cor0 ---- -12 -4160 -6480 onlyif mysql # use DIV operator for integer division query I rowsort label-1937 SELECT - 16 DIV + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -16 0 0 skipif mysql # not compatible query I rowsort label-1937 SELECT - 16 / + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -16 0 0 query I rowsort SELECT DISTINCT + col0 * + col2 * 78 AS col0 FROM tab1 AS cor0 ---- 12636 284544 599040 query I rowsort SELECT - 98 * + col0 AS col2 FROM tab0 cor0 ---- -2352 -3430 -8722 query I rowsort SELECT - 38 + col2 * col2 FROM tab0 AS cor0 ---- -37 1051 6686 query I rowsort SELECT ALL + - 48 AS col0 FROM tab2 AS cor0 ---- -48 -48 -48 query I rowsort SELECT col2 * col0 + - col0 * - 77 AS col2 FROM tab0 AS cor0 ---- 14151 2640 2730 query I rowsort SELECT + col2 + + col1 * - 61 FROM tab1 AS cor0 ---- -1532 -553 -697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 11 + + col1 + + col2 col1 FROM tab0 AS cor0 ---- 109 130 184 query I rowsort SELECT DISTINCT + + cor0.col1 + - col1 AS col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - 1 * + col2 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT + col1 + - col2 + + col0 AS col1 FROM tab1 AS cor0 ---- -25 -3 17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1948 SELECT col1 + + col0 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1948 SELECT col1 + + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 25 * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- 1350 1425 2400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 49 * - col1 - col1 col0 FROM tab0 AS cor0 ---- 4128 4368 4656 query I rowsort SELECT ALL + 85 * col0 - 91 FROM tab1 AS cor0 ---- 164 5349 6709 query I rowsort SELECT ALL + 7 * col2 + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0 ---- -2607 -6888 -90 query I rowsort SELECT DISTINCT - + col1 + 44 FROM tab1 AS cor0 ---- 18 31 34 query I rowsort SELECT - - cor0.col1 * - 34 + col1 FROM tab0 AS cor0 ---- -2838 -3003 -3201 query I rowsort SELECT ALL + col0 * 63 - - col1 FROM tab1 AS cor0 ---- 215 4042 5053 query I rowsort SELECT ALL col1 + 95 * cor0.col1 AS col1 FROM tab1 AS cor0 ---- 1248 2496 960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + col2 + col2 * - col1 * - ( + col0 ) col0 FROM tab0 AS cor0 ---- 3396 670842 69201 onlyif mysql # use DIV operator for integer division query I rowsort label-1958 SELECT - col1 * 4 - col1 DIV - col0 col0 FROM tab2 cor0 ---- -120 -236 -68 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1958 SELECT - col1 * 4 - col1 / - col0 col0 FROM tab2 cor0 ---- -120 -236 -68 query I rowsort SELECT + 72 * - col1 * + cor0.col1 + + col1 AS col2 FROM tab1 AS cor0 ---- -12155 -48646 -7190 onlyif mysql # use DIV operator for integer division query I rowsort label-1960 SELECT + cor0.col2 DIV + cor0.col0 + + col0 FROM tab2 AS cor0 ---- 10 78 79 skipif mysql # not compatible query I rowsort label-1960 SELECT + cor0.col2 / + cor0.col0 + + col0 FROM tab2 AS cor0 ---- 10 78 79 query I rowsort SELECT + 76 * col0 + + col0 FROM tab1 AS cor0 ---- 231 4928 6160 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2 ---- 972 values hashing to ea0f747588ddf5869ee18a5e22d9f237 onlyif mysql # use DIV operator for integer division query I rowsort label-1963 SELECT DISTINCT col0 DIV 68 FROM tab1 ---- 0 1 skipif mysql # not compatible query I rowsort label-1963 SELECT DISTINCT col0 / 68 FROM tab1 ---- 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 51 col2 FROM tab0 cor0 ---- -51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 97 * cor1.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to a8d3645ec2657ff9a78533fb1d348f7a query I rowsort SELECT + 68 AS col1 FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1 ---- 81 values hashing to 7ff6433dda3248dce73040b2c590f3da onlyif mysql # use DIV operator for integer division query I rowsort label-1967 SELECT col2 DIV 18 FROM tab0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-1967 SELECT col2 / 18 FROM tab0 ---- 0 1 4 query I rowsort SELECT + col1 + 75 AS col2 FROM tab0 ---- 161 166 172 onlyif mysql # use DIV operator for integer division query I rowsort label-1969 SELECT - col1 + + col0 DIV col0 AS col2 FROM tab1 AS cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-1969 SELECT - col1 + + col0 / col0 AS col2 FROM tab1 AS cor0 ---- -12 -25 -9 query I rowsort SELECT DISTINCT + tab2.col2 + - tab2.col2 * + col2 - - 18 FROM tab2 ---- -1388 -632 -684 query I rowsort SELECT col0 * + 75 + + col2 - 92 * - col2 AS col1 FROM tab1 ---- 10101 14928 5247 query I rowsort SELECT cor0.col0 + 14 + - 91 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 28899d80467fe81b50e24d2684077652 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 + + tab0.col0 col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 727cf91885da1564b9eb8c57fe9a5d27 query I rowsort SELECT - tab0.col0 + col0 + + col2 * + 30 FROM tab0 ---- 2460 30 990 query I rowsort SELECT + 92 + tab2.col1 AS col1 FROM tab2 ---- 109 123 151 query I rowsort SELECT ALL + + col2 + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + + col1 + col2 * cor0.col2 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT ALL - - col1 + - col0 * + col2 AS col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT DISTINCT + col0 + + col1 + + col2 AS col1 FROM tab2 AS cor0 ---- 134 163 65 query I rowsort SELECT - + ( col1 ) * col2 + + col1 AS col1 FROM tab1 cor0 ---- -1235 -1378 -560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + + col1 col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT ALL + + col2 * col1 + col1 * + col0 * col0 FROM tab2 AS cor0 ---- 106743 2356 360490 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * cor0.col1 + col2 col0 FROM tab0 cor0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + col1 * col2 col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT - col1 * - col2 * cor0.col0 + - col2 AS col0 FROM tab2 AS cor0 ---- 119626 50996 5832 query I rowsort SELECT - cor0.col1 + col0 + + col1 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- 3500 351 937 query I rowsort SELECT - col1 + + col1 + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + + ( 55 ) + + col0 * + col2 FROM tab2 AS cor0 ---- 2083 244 3057 query I rowsort SELECT DISTINCT - ( + 78 ) FROM tab2 ---- -78 query I rowsort SELECT DISTINCT - col2 + col1 + - col0 AS col0 FROM tab1 AS cor0 ---- -111 -163 -31 query I rowsort SELECT DISTINCT - 52 + - cor0.col0 AS col2 FROM tab0, tab2 AS cor0 ---- -130 -131 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1992 SELECT ALL + + CAST( - col2 AS SIGNED ) * + col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-1992 SELECT ALL + + CAST ( - col2 AS INTEGER ) * + col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT col0 - col0 * col1 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT + + col2 - col0 AS col2 FROM tab1 AS cor0 ---- -7 16 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 63 + - col0 col0 FROM tab1 AS cor0 ---- -1 -17 60 query I rowsort SELECT ALL col2 + + col2 * + col2 AS col2 FROM tab2 cor0 ---- 1482 702 756 query I rowsort SELECT - 87 + - col1 + col2 FROM tab1 ---- -4 -40 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1998 SELECT DISTINCT + CAST( NULL AS SIGNED ) + 59 AS col2 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-1998 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 59 AS col2 FROM tab0 ---- NULL query I rowsort SELECT DISTINCT - 43 + + tab0.col0 FROM tab0 ---- -19 -8 46 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2000 SELECT CAST( NULL AS SIGNED ) * - 24 + col1 * col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2000 SELECT CAST ( NULL AS INTEGER ) * - 24 + col1 * col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - 61 FROM tab1 cor0 ---- -61 -61 -61 onlyif mysql # use DIV operator for integer division query I rowsort label-2002 SELECT + 60 DIV col2 FROM tab0 ---- 0 1 60 skipif mysql # not compatible query I rowsort label-2002 SELECT + 60 / col2 FROM tab0 ---- 0 1 60 query I rowsort SELECT + col2 + col1 + tab2.col0 * col2 FROM tab2 ---- 2113 247 3057 query I rowsort SELECT + ( + col0 + tab1.col0 ) * col1 FROM tab1 ---- 1280 156 2080 query I rowsort SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 IN ( col0 * col2 ) ---- query I rowsort SELECT + col1 + cor0.col0 * col0 AS col0 FROM tab0 AS cor0 ---- 1322 662 8012 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab0.col0 + + col0 * - col1 col1 FROM tab0 WHERE NOT col1 IN ( col0 ) ---- -2040 -3360 -8010 query I rowsort SELECT col2 * - col2 * + col2 + - col2 AS col0 FROM tab1 ---- -157518 -185250 -884832 query I rowsort SELECT DISTINCT col2 - col1 AS col1 FROM tab2 WHERE ( - col2 * + col2 ) <= NULL ---- query I rowsort SELECT tab2.col0 + + col2 + col0 AS col2 FROM tab2 ---- 182 196 41 query III rowsort SELECT * FROM tab0 WHERE NOT - col2 BETWEEN col0 AND + col2 * col1 + col0 - - col2 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query III rowsort SELECT ALL * FROM tab2 WHERE NOT col2 IN ( col1 * col0 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 onlyif mysql # use DIV operator for integer division query I rowsort label-2013 SELECT - col2 + col0 DIV + col2 FROM tab0 cor0 ---- -33 -81 34 skipif mysql # not compatible query I rowsort label-2013 SELECT - col2 + col0 / + col2 FROM tab0 cor0 ---- -33 -81 34 onlyif mysql # use DIV operator for integer division query I rowsort label-2014 SELECT ALL col2 DIV - col2 col2 FROM tab0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2014 SELECT ALL col2 / - col2 col2 FROM tab0 ---- -1 -1 -1 query I rowsort SELECT ALL - col1 FROM tab0 WHERE NOT col0 = NULL ---- query I rowsort SELECT - col1 + - col0 * + col2 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT ALL - ( + col1 ) + - col0 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT + - 75 * + cor0.col1 + - col1 FROM tab1 cor0 ---- -1976 -760 -988 query I rowsort SELECT + - col2 + ( - col1 ) AS col2 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT DISTINCT + ( ( col0 ) ) + col0 * + ( + col1 ) AS col2 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-2021 SELECT + col2 * - col1 + col2 DIV cor0.col0 FROM tab2 cor0 ---- -1534 -646 -834 skipif mysql # not compatible query I rowsort label-2021 SELECT + col2 * - col1 + col2 / cor0.col0 FROM tab2 cor0 ---- -1534 -646 -834 query I rowsort SELECT - + ( 66 ) * col0 FROM tab2 cor0 ---- -462 -5148 -5214 query I rowsort SELECT ALL - cor0.col1 + + cor0.col2 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 92ef426526338653e88acd4aba639c47 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2024 SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2024 SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col2 - 64 * - col0 * - col1 AS col2 FROM tab2 cor0 ---- -13915 -294554 -85990 query I rowsort SELECT 31 + col1 * - col1 FROM tab0 ---- -7365 -8250 -9378 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2027 SELECT + CAST( 54 + col0 AS SIGNED ) FROM tab2 ---- 132 133 61 skipif mysql # not compatible query I rowsort label-2027 SELECT + CAST ( 54 + col0 AS INTEGER ) FROM tab2 ---- 132 133 61 query I rowsort SELECT - ( tab2.col1 * - col1 ) + col2 * + col1 FROM tab2 ---- 1798 5015 935 query I rowsort SELECT ALL + col1 * col1 + - ( + col0 ) FROM tab1 AS cor0 ---- 36 673 89 query I rowsort SELECT DISTINCT + 4 - + col2 * col2 FROM tab2 cor0 ---- -1440 -672 -725 query I rowsort SELECT + + 48 * + col0 * col1 FROM tab1 AS cor0 ---- 30720 3744 49920 query I rowsort SELECT col0 * + col2 - + tab0.col0 FROM tab0 ---- 0 7209 768 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( + col1 ) + - col1 + + col1 * col2 col0 FROM tab1 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2034 SELECT - CAST( col1 + + col2 AS SIGNED ) AS col2 FROM tab1 ---- -109 -67 -80 skipif mysql # not compatible query I rowsort label-2034 SELECT - CAST ( col1 + + col2 AS INTEGER ) AS col2 FROM tab1 ---- -109 -67 -80 query I rowsort SELECT tab2.col2 * - tab2.col1 AS col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT ALL + col2 + + col1 * 64 AS col2 FROM tab1 cor0 ---- 1718 697 928 onlyif mysql # use DIV operator for integer division query I rowsort label-2037 SELECT ( + col0 ) DIV 57 AS col0 FROM tab1 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-2037 SELECT ( + col0 ) / 57 AS col0 FROM tab1 ---- 0 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2038 SELECT - - col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2038 SELECT - - col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2039 SELECT ALL - - col1 DIV + col2 FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2039 SELECT ALL - - col1 / + col2 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT col0 * 42 * - col1 - cor0.col0 * 80 AS col0 FROM tab0 AS cor0 ---- -145390 -347278 -88608 query I rowsort SELECT DISTINCT + col1 * 47 AS col0 FROM tab1 AS cor0 ---- 1222 470 611 onlyif mysql # use DIV operator for integer division query I rowsort label-2042 SELECT + col1 DIV - ( + col1 ) + cor0.col2 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-2042 SELECT + col1 / - ( + col1 ) + cor0.col2 FROM tab1 AS cor0 ---- 53 56 95 onlyif mysql # use DIV operator for integer division query I rowsort label-2043 SELECT ALL 82 DIV + col1 + 7 DIV - col1 - col0 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-2043 SELECT ALL 82 / + col1 + 7 / - col1 - col0 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort SELECT CAST ( 73 + - cor0.col0 AS REAL ) FROM tab1, tab1 cor0 ---- 9 values hashing to 35e95ab9c175780851504aadfca1b697 query I rowsort SELECT ALL col1 + col0 * - cor0.col1 AS col0 FROM tab1 cor0 ---- -1027 -52 -630 onlyif mysql # use DIV operator for integer division query I rowsort label-2046 SELECT DISTINCT + + col0 DIV - cor0.col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-2046 SELECT DISTINCT + + col0 / - cor0.col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - col2 + col1 * col1 * + col0 FROM tab0 AS cor0 ---- 177471 329314 736927 query I rowsort SELECT ALL + + col0 * 67 + + col0 AS col0 FROM tab1 AS cor0 ---- 204 4352 5440 query I rowsort SELECT cor0.col1 * col1 + - col2 * - col1 FROM tab1 AS cor0 ---- 1417 2080 670 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2050 SELECT + col2 + + CAST( NULL AS SIGNED ) * tab1.col0 + col1 * 11 col1 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2050 SELECT + col2 + + CAST ( NULL AS INTEGER ) * tab1.col0 + col1 * 11 col1 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2051 SELECT + col0 DIV tab0.col2 - + 93 FROM tab0 ---- -58 -92 -93 skipif mysql # not compatible query I rowsort label-2051 SELECT + col0 / tab0.col2 - + 93 FROM tab0 ---- -58 -92 -93 query I rowsort SELECT + col1 + - tab0.col0 * - col0 FROM tab0 ---- 1322 662 8012 onlyif mysql # use DIV operator for integer division query I rowsort label-2053 SELECT ALL col2 + ( col2 ) DIV col2 + 21 AS col2 FROM tab1 ---- 118 76 79 skipif mysql # not compatible query I rowsort label-2053 SELECT ALL col2 + ( col2 ) / col2 + 21 AS col2 FROM tab1 ---- 118 76 79 onlyif mysql # use DIV operator for integer division query I rowsort label-2054 SELECT col2 DIV ( cor0.col1 + + col2 ) AS col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2054 SELECT col2 / ( cor0.col1 + + col2 ) AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col2 * - 37 FROM tab1 AS cor0 ---- -1998 -2109 -3552 query I rowsort SELECT + 62 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 51dd2771d516ceb935483eded78a5fa0 query I rowsort SELECT + + col0 * - cor0.col0 * + 34 + col0 FROM tab2 AS cor0 ---- -1659 -206778 -212115 onlyif mysql # use DIV operator for integer division query I rowsort label-2058 SELECT + tab0.col0 DIV 14 FROM tab0 ---- 1 2 6 skipif mysql # not compatible query I rowsort label-2058 SELECT + tab0.col0 / 14 FROM tab0 ---- 1 2 6 onlyif mysql # use DIV operator for integer division query I rowsort label-2059 SELECT DISTINCT col2 DIV col1 + col1 FROM tab1 ---- 15 20 28 skipif mysql # not compatible query I rowsort label-2059 SELECT DISTINCT col2 / col1 + col1 FROM tab1 ---- 15 20 28 query I rowsort SELECT - + col1 + col2 + - col0 AS col2 FROM tab0 cor0 ---- -131 -77 -98 query I rowsort SELECT - + col0 + col1 + cor0.col2 * ( col1 ) AS col1 FROM tab1 AS cor0 ---- 1181 1427 516 query I rowsort SELECT ALL + 69 * + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 5934 6279 6693 query I rowsort SELECT DISTINCT - ( - col2 ) * col2 AS col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT + + cor0.col2 + - col2 + - col1 AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT + 6 FROM tab0 cor0 ---- 6 6 6 query I rowsort SELECT - - 22 + col2 FROM tab0 AS cor0 ---- 104 23 55 query I rowsort SELECT DISTINCT + col0 * 10 FROM tab1 cor0 ---- 30 640 800 query I rowsort SELECT DISTINCT - 73 * + 25 FROM tab2 ---- -1825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2069 SELECT + CAST( - 5 AS SIGNED ) * col2 AS col1 FROM tab0 cor0 ---- -165 -410 -5 skipif mysql # not compatible query I rowsort label-2069 SELECT + CAST ( - 5 AS INTEGER ) * col2 AS col1 FROM tab0 cor0 ---- -165 -410 -5 query I rowsort SELECT - - ( - cor0.col2 ) * - col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL - 76 * - col2 FROM tab0 AS cor0 ---- 2508 6232 76 query I rowsort SELECT - + 26 + - col1 AS col0 FROM tab2 AS cor0 ---- -43 -57 -85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2073 SELECT ALL - CAST( col0 AS SIGNED ) * + cor0.col1 + + 19 FROM tab0 AS cor0 ---- -2045 -3376 -8080 skipif mysql # not compatible query I rowsort label-2073 SELECT ALL - CAST ( col0 AS INTEGER ) * + cor0.col1 + + 19 FROM tab0 AS cor0 ---- -2045 -3376 -8080 query I rowsort SELECT col1 * - 35 - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -1092 -2143 -674 query I rowsort SELECT - ( col0 ) + col2 * 10 + - col1 * col1 FROM tab0 AS cor0 ---- -7090 -7550 -9434 query I rowsort SELECT DISTINCT + - col2 * - col1 + - 15 AS col0 FROM tab0 AS cor0 ---- 2823 7447 82 query I rowsort SELECT ALL + + col1 - col2 * col1 AS col0 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT + 90 AS col1 FROM tab1 cor0 ---- 90 90 90 query I rowsort SELECT ALL - ( col0 ) * 49 + + 40 * col0 AS col2 FROM tab1 AS cor0 ---- -27 -576 -720 query I rowsort SELECT DISTINCT - col2 - col1 AS col2 FROM tab2 cor0 ---- -55 -58 -85 query I rowsort SELECT ALL + + 13 + + col1 FROM tab2 AS cor0 ---- 30 44 72 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 53 * col0 * + col0 + - col0 col2 FROM tab2 cor0 ---- -2604 -322530 -330852 onlyif mysql # use DIV operator for integer division query I rowsort label-2083 SELECT ALL - cor0.col1 DIV + col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2083 SELECT ALL - cor0.col1 / + col1 FROM tab0 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-2084 SELECT DISTINCT + col0 DIV cor0.col1 + col0 AS col1 FROM tab2 AS cor0 ---- 7 79 83 skipif mysql # not compatible query I rowsort label-2084 SELECT DISTINCT + col0 / cor0.col1 + col0 AS col1 FROM tab2 AS cor0 ---- 7 79 83 query I rowsort SELECT DISTINCT + - col1 + - ( + 75 ) * col1 AS col1 FROM tab2 AS cor0 ---- -1292 -2356 -4484 query I rowsort SELECT ALL + col0 * - ( cor0.col2 ) FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-2087 SELECT - + col1 * - cor0.col1 + col1 DIV - 2 AS col1 FROM tab2 AS cor0 ---- 281 3452 946 skipif mysql # not compatible query I rowsort label-2087 SELECT - + col1 * - cor0.col1 + col1 / - 2 AS col1 FROM tab2 AS cor0 ---- 281 3452 946 query I rowsort SELECT - cor0.col1 + col0 - + col1 FROM tab1 AS cor0 ---- -49 44 54 query I rowsort SELECT + - col2 * + col2 + col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT col0 * col2 + - col1 * col1 AS col2 FROM tab1 AS cor0 ---- -514 3548 7511 query I rowsort SELECT - ( - col1 ) - 59 * - col2 AS col1 FROM tab1 AS cor0 ---- 3212 3373 5677 query I rowsort SELECT col1 * cor0.col1 + 42 FROM tab2 AS cor0 ---- 1003 331 3523 query I rowsort SELECT DISTINCT + 32 * - col0 * - tab0.col0 FROM tab0 ---- 18432 253472 39200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2094 SELECT DISTINCT CAST( + col1 * - col1 + + col2 AS SIGNED ) col2 FROM tab2 ---- -251 -3455 -934 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2094 SELECT DISTINCT CAST ( + col1 * - col1 + + col2 AS INTEGER ) col2 FROM tab2 ---- -251 -3455 -934 query I rowsort SELECT DISTINCT 30 AS col2 FROM tab0 ---- 30 query I rowsort SELECT DISTINCT - col2 - col1 AS col0 FROM tab1 AS cor0 ---- -109 -67 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-2097 SELECT ALL + cor0.col0 * - col2 DIV col2 col0 FROM tab1 AS cor0 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2097 SELECT ALL + cor0.col0 * - col2 / col2 col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT + col0 + - 99 FROM tab2 AS cor0 ---- -20 -21 -92 query I rowsort SELECT - + ( cor0.col0 ) * + 27 FROM tab0 AS cor0 ---- -2403 -648 -945 query I rowsort SELECT - - col1 - + col2 AS col1 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT 17 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to e0dd9155e4d67132637a04c18ef46b2a query I rowsort SELECT ALL - 59 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 1e6537c922fa953e0fd2f59430803703 query I rowsort SELECT ALL + - 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 35707a5d99c98b2657c084a50ff1b073 onlyif mysql # use DIV operator for integer division query I rowsort label-2104 SELECT cor0.col0 * col0 DIV 36 FROM tab2 AS cor0 ---- 1 169 173 skipif mysql # not compatible query I rowsort label-2104 SELECT cor0.col0 * col0 / 36 FROM tab2 AS cor0 ---- 1 169 173 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor1.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT 43 + - cor0.col0 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 65434e04a986fab1a66c063d9abc556d query I rowsort SELECT 34 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 102 2176 2720 query I rowsort SELECT ALL + - ( col2 ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT - + 64 + cor0.col0 FROM tab0 cor0 ---- -29 -40 25 query I rowsort SELECT + col0 * 54 * - cor0.col0 FROM tab2 AS cor0 ---- -2646 -328536 -337014 query I rowsort SELECT ALL + 80 * col2 AS col1 FROM tab0 ---- 2640 6560 80 query I rowsort SELECT DISTINCT 99 + + col0 FROM tab0 AS cor0 ---- 123 134 188 query I rowsort SELECT DISTINCT + - col2 * col0 + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT - 27 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 0259a67676b131a4843853be4811b775 query I rowsort SELECT col2 + - 20 AS col0 FROM tab0 AS cor0 ---- -19 13 62 query I rowsort SELECT DISTINCT - tab1.col0 * ( - tab1.col0 ) + - col0 AS col1 FROM tab1 ---- 4032 6 6320 query I rowsort SELECT ALL + col1 + + 72 AS col0 FROM tab2 ---- 103 131 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + col2 * 8 col2 FROM tab1 AS cor0 ---- 435 520 848 onlyif mysql # use DIV operator for integer division query I rowsort label-2119 SELECT + - col0 DIV col2 + - col2 * col1 FROM tab1 AS cor0 ---- -1248 -1404 -571 skipif mysql # not compatible query I rowsort label-2119 SELECT + - col0 / col2 + - col2 * col1 FROM tab1 AS cor0 ---- -1248 -1404 -571 query I rowsort SELECT + col1 + + 46 AS col0 FROM tab2 cor0 ---- 105 63 77 query I rowsort SELECT DISTINCT - - 28 * + col0 + - col1 FROM tab0 AS cor0 ---- 2401 586 883 onlyif mysql # use DIV operator for integer division query I rowsort label-2122 SELECT ALL + col2 * + col2 - col1 DIV + col1 FROM tab1 AS cor0 ---- 2915 3248 9215 skipif mysql # not compatible query I rowsort label-2122 SELECT ALL + col2 * + col2 - col1 / + col1 FROM tab1 AS cor0 ---- 2915 3248 9215 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + 10 + + col1 col0 FROM tab2 AS cor0 ---- 106 147 48 query I rowsort SELECT col1 + col0 - col1 FROM tab1 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2125 SELECT DISTINCT 46 + + col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-2125 SELECT DISTINCT 46 + + col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2126 SELECT col1 * col0 DIV - 52 AS col0 FROM tab0 ---- -155 -39 -65 skipif mysql # not compatible query I rowsort label-2126 SELECT col1 * col0 / - 52 AS col0 FROM tab0 ---- -155 -39 -65 query I rowsort SELECT ( - col1 + col2 ) * col0 FROM tab2 ---- -2574 -28 1659 onlyif mysql # use DIV operator for integer division query I rowsort label-2128 SELECT DISTINCT + col0 + - tab1.col0 DIV col0 FROM tab1 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-2128 SELECT DISTINCT + col0 + - tab1.col0 / col0 FROM tab1 ---- 2 63 79 query I rowsort SELECT DISTINCT - + 96 * - col0 + - col1 + - col0 AS col2 FROM tab2 AS cor0 ---- 634 7351 7488 query I rowsort SELECT + - col2 * - cor0.col1 + col2 AS col2 FROM tab1 cor0 ---- 1344 1458 627 query I rowsort SELECT + col1 * + col2 - + col0 * col1 AS col2 FROM tab2 AS cor0 ---- -3068 -697 620 query I rowsort SELECT DISTINCT + col0 - + col2 * + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT - 71 * col2 * 79 + col1 FROM tab0 AS cor0 ---- -185011 -459847 -5512 onlyif mysql # use DIV operator for integer division query I rowsort label-2134 SELECT ALL 81 - col1 DIV col0 FROM tab0 AS cor0 ---- 78 79 80 skipif mysql # not compatible query I rowsort label-2134 SELECT ALL 81 - col1 / col0 FROM tab0 AS cor0 ---- 78 79 80 query I rowsort SELECT DISTINCT + col1 * col1 AS col0 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT ALL + 84 + col2 FROM tab2 AS cor0 ---- 110 111 122 onlyif mysql # use DIV operator for integer division query I rowsort label-2137 SELECT DISTINCT col2 * 30 DIV 42 - col0 * - col2 FROM tab0 AS cor0 ---- 35 7356 815 skipif mysql # not compatible query I rowsort label-2137 SELECT DISTINCT col2 * 30 / 42 - col0 * - col2 FROM tab0 AS cor0 ---- 35 7356 815 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2138 SELECT + cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2138 SELECT + cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2139 SELECT + cor0.col2 DIV ( - 79 ) + cor0.col2 AS col2 FROM tab0 cor0 ---- 1 33 81 skipif mysql # not compatible query I rowsort label-2139 SELECT + cor0.col2 / ( - 79 ) + cor0.col2 AS col2 FROM tab0 cor0 ---- 1 33 81 query I rowsort SELECT ALL + + col2 + - 85 FROM tab0 AS cor0 ---- -3 -52 -84 onlyif mysql # use DIV operator for integer division query I rowsort label-2141 SELECT DISTINCT col0 DIV + CAST( + col1 * col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-2141 SELECT DISTINCT col0 / + CAST ( + col1 * col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - col2 + - 66 AS col1 FROM tab1 AS cor0 ---- -120 -123 -162 onlyif mysql # use DIV operator for integer division query I rowsort label-2143 SELECT ALL - - col0 + 70 DIV col0 AS col0 FROM tab2 AS cor0 ---- 17 78 79 skipif mysql # not compatible query I rowsort label-2143 SELECT ALL - - col0 + 70 / col0 AS col0 FROM tab2 AS cor0 ---- 17 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-2144 SELECT ALL + col1 + - col1 DIV col1 FROM tab0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-2144 SELECT ALL + col1 + - col1 / col1 FROM tab0 ---- 85 90 96 query I rowsort SELECT + tab1.col1 AS col2 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT DISTINCT + + col0 + 55 AS col0 FROM tab1 AS cor0 ---- 119 135 58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 - - col0 * - col2 col0 FROM tab0 ---- -7209 -768 0 query I rowsort SELECT + 2 * - col1 FROM tab1 ---- -20 -26 -52 query I rowsort SELECT 83 * - 92 FROM tab1 AS cor0 ---- -7636 -7636 -7636 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2150 SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2150 SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 * - 79 AS col0 FROM tab0 AS cor0 ---- 6794 7189 7663 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( - cor0.col0 AS REAL ) * col2 AS col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + 54 * - col1 AS col2 FROM tab0 AS cor0 ---- -4644 -4914 -5238 query I rowsort SELECT ALL col2 + + col0 + - col2 AS col1 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2155 SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-2155 SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 ---- NULL query I rowsort SELECT 17 + col2 FROM tab2 AS cor0 ---- 43 44 55 query I rowsort SELECT ALL - + 41 * col1 + cor0.col1 - 95 * - col0 * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -16430 -346960 -730120 query I rowsort SELECT 31 + - col2 * col0 FROM tab1 AS cor0 ---- -131 -3617 -7649 onlyif mysql # use DIV operator for integer division query I rowsort label-2159 SELECT + 22 DIV cor0.col2 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2159 SELECT + 22 / cor0.col2 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT - + 22 * col1 FROM tab2 AS cor0 ---- -1298 -374 -682 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + col1 * + col2 * col1 col0 FROM tab0 cor0 ---- 244154 679133 9506 onlyif mysql # use DIV operator for integer division query I rowsort label-2162 SELECT DISTINCT - 33 DIV + col2 FROM tab1 ---- 0 skipif mysql # not compatible query I rowsort label-2162 SELECT DISTINCT - 33 / + col2 FROM tab1 ---- 0 query I rowsort SELECT ( - col1 * - col2 + col1 ) AS col2 FROM tab2 ---- 1593 663 868 query I rowsort SELECT ( col2 ) + + 44 AS col0 FROM tab0 ---- 126 45 77 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2165 SELECT ALL + col1 + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2165 SELECT ALL + col1 + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL + ( col0 ) * + col2 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2167 SELECT + col0 * col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2167 SELECT + col0 * col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - 66 * + col0 FROM tab0 AS cor0 ---- -1584 -2310 -5874 query I rowsort SELECT DISTINCT col2 * col1 + - col0 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT DISTINCT + - ( col1 ) * ( cor0.col1 ) AS col2 FROM tab1 AS cor0 ---- -100 -169 -676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 17 col0 FROM tab0 AS cor0 ---- -17 query I rowsort SELECT col1 + col1 * 66 FROM tab2 AS cor0 ---- 1139 2077 3953 query I rowsort SELECT DISTINCT + + cor0.col1 + cor0.col0 * + col2 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT col1 * - col2 * + 95 + + tab1.col1 AS col2 FROM tab1 ---- -118547 -133354 -54140 query I rowsort SELECT DISTINCT col0 * - ( - ( + col0 ) * + col0 ) + + col2 * col0 FROM tab1 AS cor0 ---- 189 265792 519680 query I rowsort SELECT + - col1 + 90 * 67 FROM tab2 AS cor0 ---- 5971 5999 6013 query I rowsort SELECT ALL - col1 * + ( - col2 ) FROM tab2 cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2178 SELECT - col0 + CAST( 42 AS SIGNED ) FROM tab0 cor0 ---- -47 18 7 skipif mysql # not compatible query I rowsort label-2178 SELECT - col0 + CAST ( 42 AS INTEGER ) FROM tab0 cor0 ---- -47 18 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * ( 35 ) + col0 col2 FROM tab1 AS cor0 ---- 1893 2059 3440 query I rowsort SELECT ALL - - cor0.col0 + 65 * col0 FROM tab0 AS cor0 ---- 1584 2310 5874 query I rowsort SELECT DISTINCT cor0.col2 * 89 AS col2 FROM tab2 AS cor0 ---- 2314 2403 3382 query I rowsort SELECT 50 + col1 FROM tab0 cor0 ---- 136 141 147 query I rowsort SELECT + - ( ( col2 ) ) * cor0.col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL - + 99 + 26 AS col1 FROM tab0 AS cor0 ---- -73 -73 -73 query I rowsort SELECT DISTINCT + 69 * - 59 FROM tab0 AS cor0 ---- -4071 query I rowsort SELECT - - col0 * col1 + col2 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT - ( - col2 ) * col0 + - 88 * col0 FROM tab2 AS cor0 ---- -3950 -427 -4836 query I rowsort SELECT ALL - cor0.col2 + col2 * col1 FROM tab2 AS cor0 ---- 1508 608 810 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * col0 + - col0 * col2 col0 FROM tab0 AS cor0 ---- 1272 3360 801 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + tab2.col1 col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT + + cor0.col2 * - ( col2 ) FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT + - col2 * - col1 * col0 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT - - col0 + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT ALL + col0 + col1 * 68 FROM tab2 AS cor0 ---- 1235 2115 4090 query I rowsort SELECT ALL + col0 * - 82 AS col1 FROM tab1 AS cor0 ---- -246 -5248 -6560 onlyif mysql # use DIV operator for integer division query I rowsort label-2196 SELECT DISTINCT + + 98 DIV cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 3 7 9 skipif mysql # not compatible query I rowsort label-2196 SELECT DISTINCT + + 98 / cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 3 7 9 query I rowsort SELECT - col1 * col2 + + col2 * cor0.col2 + + col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 315 3299 7361 query I rowsort SELECT + col1 * + col0 + + 61 * 66 + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 4130 4676 5079 query I rowsort SELECT DISTINCT ( + col0 ) + + col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT ALL 47 * + col1 FROM tab2 ---- 1457 2773 799 query I rowsort SELECT ALL 92 AS col2 FROM tab2, tab1 cor0, tab1 cor1 ---- 27 values hashing to c64cb7a81da51f4be0b6906a223e8817 query I rowsort SELECT 17 + - tab1.col2 FROM tab1 ---- -37 -40 -79 query I rowsort SELECT ALL + col1 * + col0 + col1 - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2117 3491 8108 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * col0 * + 2 col1 FROM tab0 AS cor0 ---- -16198 -4128 -6790 onlyif mysql # use DIV operator for integer division query I rowsort label-2205 SELECT ALL col0 * + col0 DIV col0 AS col2 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-2205 SELECT ALL col0 * + col0 / col0 AS col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT ALL - 9 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to caf28657beb43049740febe1fa9ded5a query I rowsort SELECT col2 - - ( 87 + - col0 ) FROM tab2 ---- 107 35 46 query I rowsort SELECT col1 * col1 + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 7310 8190 9312 query I rowsort SELECT DISTINCT - 43 FROM tab1, tab0 AS cor0, tab0 cor1 ---- -43 onlyif mysql # use DIV operator for integer division query I rowsort label-2210 SELECT + col1 DIV 2 FROM tab1 ---- 13 5 6 skipif mysql # not compatible query I rowsort label-2210 SELECT + col1 / 2 FROM tab1 ---- 13 5 6 query I rowsort SELECT cor0.col2 + 42 AS col1 FROM tab0 AS cor0 ---- 124 43 75 query I rowsort SELECT + 8 + + 42 * - col1 AS col0 FROM tab2 AS cor0 ---- -1294 -2470 -706 query I rowsort SELECT 63 * col2 + - col2 FROM tab0 AS cor0 ---- 2046 5084 62 query I rowsort SELECT DISTINCT - col1 - 41 FROM tab0 ---- -127 -132 -138 query I rowsort SELECT 46 + cor0.col2 FROM tab2 AS cor0 ---- 72 73 84 onlyif mysql # use DIV operator for integer division query I rowsort label-2216 SELECT + col1 DIV col2 + + col0 * - cor0.col1 * - col1 FROM tab1 AS cor0 ---- 13520 2028 6400 skipif mysql # not compatible query I rowsort label-2216 SELECT + col1 / col2 + + col0 * - cor0.col1 * - col1 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT DISTINCT col2 * + col0 + - 9 + - col0 FROM tab0 AS cor0 ---- -9 7200 759 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 44 + + col0 col2 FROM tab0 AS cor0 ---- 133 68 79 query I rowsort SELECT DISTINCT - ( - col0 + - col0 ) AS col0 FROM tab2 ---- 14 156 158 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 63 + col1 col0 FROM tab2 AS cor0 ---- 122 80 94 query I rowsort SELECT - - 63 - - col2 * + col0 FROM tab2 AS cor0 ---- 2091 252 3065 query I rowsort SELECT DISTINCT - 16 + + col0 AS col0 FROM tab2 AS cor0 ---- -9 62 63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab2.col2 - tab2.col1 * col1 col0 FROM tab2 ---- -251 -3455 -934 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 + col2 * col1 * tab0.col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col2 - col2 * - tab1.col2 col0 FROM tab1 WHERE NULL IN ( col0 ) ---- query I rowsort SELECT DISTINCT + cor0.col2 AS col0 FROM tab2, tab0 cor0 ---- 1 33 82 query III rowsort SELECT ALL * FROM tab2 WHERE NOT col2 NOT IN ( tab2.col2 / + col1 ) ---- query I rowsort SELECT ALL col1 * + tab1.col0 FROM tab1 WHERE NULL IN ( col2 * col1 ) ---- query I rowsort SELECT col0 + + col1 * col1 * + col0 FROM tab1 ---- 13600 2031 6464 query I rowsort SELECT col0 + col0 + + col1 * col1 FROM tab2 ---- 3637 447 975 query I rowsort SELECT + col0 * col2 + 28 FROM tab1 AS cor0 ---- 190 3676 7708 onlyif mysql # use DIV operator for integer division query I rowsort label-2232 SELECT - col0 DIV + cor0.col0 FROM tab0 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2232 SELECT - col0 / + cor0.col0 FROM tab0 cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT + 98 + + col1 FROM tab2 ---- 115 129 157 query I rowsort SELECT DISTINCT 37 + col1 + + tab0.col1 FROM tab0 ---- 209 219 231 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2235 SELECT DISTINCT - cor0.col2 * CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2235 SELECT DISTINCT - cor0.col2 * CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0 ---- NULL query I rowsort SELECT + col0 * - tab1.col2 + col1 AS col2 FROM tab1 ---- -136 -3638 -7667 onlyif mysql # use DIV operator for integer division query I rowsort label-2237 SELECT - tab1.col2 + + col0 DIV CAST( col1 AS SIGNED ) AS col2 FROM tab1 ---- -51 -54 -90 skipif mysql # not compatible query I rowsort label-2237 SELECT - tab1.col2 + + col0 / CAST ( col1 AS INTEGER ) AS col2 FROM tab1 ---- -51 -54 -90 query I rowsort SELECT DISTINCT + - 38 FROM tab0 AS cor0 ---- -38 query I rowsort SELECT ALL + 82 * - col1 + + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -2078 -763 -970 query I rowsort SELECT ALL - + 33 * cor0.col1 FROM tab0 AS cor0 ---- -2838 -3003 -3201 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2241 SELECT ALL - + col2 + col0 * - CAST( col0 AS SIGNED ) FROM tab2 AS cor0 ---- -6110 -6279 -76 skipif mysql # not compatible query I rowsort label-2241 SELECT ALL - + col2 + col0 * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 ---- -6110 -6279 -76 query I rowsort SELECT + col0 + col0 + + col1 FROM tab1 ---- 138 173 32 query I rowsort SELECT ALL tab2.col2 * + col0 + + col1 AS col1 FROM tab2 ---- 2087 220 3019 query III rowsort SELECT * FROM tab0 WHERE NOT NULL <> + col1 * + col0 ---- query I rowsort SELECT tab1.col0 FROM tab1 WHERE - col1 NOT IN ( col1 / col0 + + col0 ) ---- 3 64 80 query I rowsort SELECT col2 * col0 * col1 + col2 FROM tab2 AS cor0 ---- 119678 51072 5886 query I rowsort SELECT - cor0.col2 + col0 * - col1 AS col2 FROM tab0 cor0 ---- -2097 -3396 -8181 query I rowsort SELECT DISTINCT - cor0.col0 * + col2 * col1 + cor0.col2 FROM tab0 AS cor0 ---- -3394 -664036 -68079 query I rowsort SELECT DISTINCT - col1 * - col2 + col2 * - col0 * col1 FROM tab1 AS cor0 ---- -2808 -35910 -98592 query I rowsort SELECT ALL col0 - col1 * - col2 FROM tab2 ---- 1612 725 844 query I rowsort SELECT col1 + + tab0.col0 * tab0.col2 * - col0 AS col1 FROM tab0 ---- -1128 -18922 -649431 query III rowsort SELECT * FROM tab1 WHERE NOT + col1 >= ( NULL ) ---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN + col0 + - col1 AND col2 * col1 * col0 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + tab0.col2 + + col0 + col2 col0 FROM tab0 ---- 71 7469 849 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 - + col2 col0 FROM tab1 WHERE NULL BETWEEN col2 / col2 AND + col1 + + col2 ---- query I rowsort SELECT ALL - + col2 - - col0 AS col2 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL - 97 - + col2 AS col1 FROM tab2 AS cor0 ---- -123 -124 -135 query I rowsort SELECT col0 + - col1 * col1 AS col0 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT ALL - ( + 97 ) * col0 FROM tab0 cor0 ---- -2328 -3395 -8633 query I rowsort SELECT 88 * + col2 FROM tab0 AS cor0 ---- 2904 7216 88 query I rowsort SELECT col0 + 97 FROM tab2 cor0 ---- 104 175 176 onlyif mysql # use DIV operator for integer division query I rowsort label-2262 SELECT ALL - col2 DIV 76 AS col1 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-2262 SELECT ALL - col2 / 76 AS col1 FROM tab1 AS cor0 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2263 SELECT cor0.col1 / - CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2263 SELECT cor0.col1 / - CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * - ( - col0 + col1 ) * col0 AS col2 FROM tab1 AS cor0 ---- -3726 196992 514560 query I rowsort SELECT DISTINCT col2 * - col0 - ( col1 ) * 58 * + col0 AS col0 FROM tab2 AS cor0 ---- -12775 -268944 -80896 query I rowsort SELECT col1 * 72 * + 43 + - col1 FROM tab2 AS cor0 ---- 182605 52615 95945 query I rowsort SELECT ALL + col1 * - col0 * - col0 FROM tab2 AS cor0 ---- 106097 1519 358956 onlyif mysql # use DIV operator for integer division query I rowsort label-2268 SELECT col0 + col2 DIV col1 FROM tab1 AS cor0 ---- 5 69 87 skipif mysql # not compatible query I rowsort label-2268 SELECT col0 + col2 / col1 FROM tab1 AS cor0 ---- 5 69 87 query I rowsort SELECT DISTINCT - - col1 * + 19 FROM tab2 AS cor0 ---- 1121 323 589 query I rowsort SELECT + col1 + + col1 * + ( - col0 ) FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT DISTINCT + col0 * - col0 * col2 + col1 * col1 AS col2 FROM tab0 ---- -11612 -641241 8184 query I rowsort SELECT ALL + col0 + + col2 * - tab2.col2 + - col2 FROM tab2 ---- -1403 -624 -749 query I rowsort SELECT DISTINCT col2 * - col0 + 35 AS col1 FROM tab0 ---- -7263 -757 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab0.col1 * + col0 + ( col2 ) col1 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT DISTINCT col2 * + tab1.col2 * + col2 FROM tab1 ---- 157464 185193 884736 query I rowsort SELECT ALL cor0.col0 * - cor0.col1 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8 query I rowsort SELECT DISTINCT + 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 32 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2278 SELECT ALL + + cor0.col0 - CAST( ( col0 ) AS SIGNED ) * 10 AS col0 FROM tab1 AS cor0 ---- -27 -576 -720 skipif mysql # not compatible query I rowsort label-2278 SELECT ALL + + cor0.col0 - CAST ( ( col0 ) AS INTEGER ) * 10 AS col0 FROM tab1 AS cor0 ---- -27 -576 -720 query I rowsort SELECT ALL col1 * 57 + col1 * + col0 FROM tab2 AS cor0 ---- 1984 2312 7965 query I rowsort SELECT + col1 + 44 AS col1 FROM tab2 AS cor0 ---- 103 61 75 query I rowsort SELECT ALL + col0 * + col2 + - 63 + + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 125 3595 7630 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 - col0 col2 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT DISTINCT + col1 * ( 11 ) * col1 AS col2 FROM tab0 AS cor0 ---- 103499 81356 91091 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * - col0 col2 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + ( 53 ) AS col2 FROM tab2 ---- 53 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2286 SELECT CAST( + ( col0 ) AS SIGNED ) * - col1 FROM tab1 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-2286 SELECT CAST ( + ( col0 ) AS INTEGER ) * - col1 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT - 43 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a query I rowsort SELECT 49 * 27 + + col1 FROM tab2 AS cor0 ---- 1340 1354 1382 query I rowsort SELECT + 86 * col1 FROM tab1 ---- 1118 2236 860 query I rowsort SELECT DISTINCT col1 + 44 AS col2 FROM tab2 ---- 103 61 75 onlyif mysql # use DIV operator for integer division query I rowsort label-2291 SELECT - ( 22 ) DIV - col1 + + col2 FROM tab2 cor0 ---- 26 27 39 skipif mysql # not compatible query I rowsort label-2291 SELECT - ( 22 ) / - col1 + + col2 FROM tab2 cor0 ---- 26 27 39 query I rowsort SELECT - 72 * cor0.col2 * col2 AS col2 FROM tab0 AS cor0 ---- -484128 -72 -78408 query I rowsort SELECT + ( col0 ) + + col0 * - col1 AS col0 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT + + 48 AS col2 FROM tab0 AS cor0 ---- 48 48 48 query I rowsort SELECT ALL - col0 + 21 * + col1 FROM tab0 AS cor0 ---- 1782 1822 2002 query I rowsort SELECT DISTINCT col0 + col2 + 67 FROM tab0 cor0 ---- 103 124 238 skipif mysql # not compatible query I rowsort SELECT ALL - cor0.col1 * CAST ( col0 AS REAL ) + col1 * col1 FROM tab1 AS cor0 ---- -540 -871 598 query I rowsort SELECT DISTINCT - col0 * ( col1 ) - + col1 * + cor0.col1 AS col1 FROM tab2 AS cor0 ---- -1178 -1632 -8083 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1 cor0, tab0, tab2 cor1 ---- 972 values hashing to 9600bdf5bac0caec3229e87170cc40b3 query I rowsort SELECT + col1 + - 15 AS col1 FROM tab2 AS cor0 ---- 16 2 44 query I rowsort SELECT + - col0 + + 59 FROM tab2 cor0 ---- -19 -20 52 query I rowsort SELECT + col0 - + cor0.col0 * 75 AS col1 FROM tab1 AS cor0 ---- -222 -4736 -5920 query I rowsort SELECT cor0.col0 + - col2 * - col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT col2 + + 20 FROM tab1 cor0 ---- 116 74 77 query I rowsort SELECT col1 - + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT - - cor0.col2 + col1 AS col2 FROM tab0 cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-2307 SELECT col2 DIV col2 + col0 * - col2 FROM tab0 AS cor0 ---- -34 -7297 -791 skipif mysql # not compatible query I rowsort label-2307 SELECT col2 / col2 + col0 * - col2 FROM tab0 AS cor0 ---- -34 -7297 -791 query I rowsort SELECT ALL col1 * col0 + + col2 * cor0.col2 FROM tab1 AS cor0 ---- 10256 2994 3889 query I rowsort SELECT ALL col1 * - col2 * + col0 AS col1 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT + - col2 + col1 - - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT + col2 * + col0 * - col2 AS col1 FROM tab0 AS cor0 ---- -26136 -35 -598436 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 - + col0 col1 FROM tab2 AS cor0 ---- -14 -156 -158 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 - + col1 col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL tab2.col1 + col2 * - tab2.col1 FROM tab2 ---- -1475 -629 -806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + cor0.col2 * + col0 col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - col1 + - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1593 -663 -868 query I rowsort SELECT col1 + + tab1.col0 + col0 FROM tab1 ---- 138 173 32 query I rowsort SELECT ALL - tab2.col1 - col0 * + col0 FROM tab2 ---- -6143 -6258 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + col0 - col2 col1 FROM tab0 ---- -42 -75 33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 - col0 * - col2 col2 FROM tab0 ---- -62 706 7207 query I rowsort SELECT ALL col2 * - col1 - + tab1.col0 FROM tab1 ---- -1328 -1407 -634 query I rowsort SELECT DISTINCT + col0 + col1 - + col0 AS col1 FROM tab2 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-2323 SELECT DISTINCT col2 + col2 DIV - col2 AS col1 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-2323 SELECT DISTINCT col2 + col2 / - col2 AS col1 FROM tab1 AS cor0 ---- 53 56 95 query I rowsort SELECT - col1 + cor0.col2 * ( + cor0.col1 ) FROM tab2 AS cor0 ---- 1475 629 806 onlyif mysql # use DIV operator for integer division query I rowsort label-2325 SELECT DISTINCT - col0 DIV - col2 AS col2 FROM tab0 AS cor0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-2325 SELECT DISTINCT - col0 / - col2 AS col2 FROM tab0 AS cor0 ---- 0 1 35 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2326 SELECT col2 + CAST( NULL AS SIGNED ) * 59 col0 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2326 SELECT col2 + CAST ( NULL AS INTEGER ) * 59 col0 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT - col0 * 22 * + ( - col0 ) FROM tab1 AS cor0 ---- 140800 198 90112 query I rowsort SELECT DISTINCT - + col1 + - col0 * + 63 AS col2 FROM tab0 AS cor0 ---- -1598 -2302 -5698 query I rowsort SELECT ALL col0 + - tab1.col0 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT + 63 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 query I rowsort SELECT DISTINCT col0 * - 27 FROM tab2 ---- -189 -2106 -2133 query I rowsort SELECT + ( 80 ) AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 878f012d707aab113cedaf56e6c52e94 query I rowsort SELECT ALL - col1 + col0 * + col2 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT ALL + + col0 + + ( - 71 ) * - col2 AS col0 FROM tab1 AS cor0 ---- 3837 4111 6896 query I rowsort SELECT col0 * col2 + + col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT DISTINCT - - col1 * ( - col2 ) AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2337 SELECT DISTINCT col2 * + CAST( - 20 * - col2 AS SIGNED ) AS col2 FROM tab2 ---- 13520 14580 28880 skipif mysql # not compatible query I rowsort label-2337 SELECT DISTINCT col2 * + CAST ( - 20 * - col2 AS INTEGER ) AS col2 FROM tab2 ---- 13520 14580 28880 onlyif mysql # use DIV operator for integer division query I rowsort label-2338 SELECT DISTINCT + - col2 DIV ( 9 ) - col0 FROM tab1 AS cor0 ---- -70 -9 -90 skipif mysql # not compatible query I rowsort label-2338 SELECT DISTINCT + - col2 / ( 9 ) - col0 FROM tab1 AS cor0 ---- -70 -9 -90 query I rowsort SELECT col0 + - 41 AS col0 FROM tab0 ---- -17 -6 48 query I rowsort SELECT - ( + 24 ) * col1 AS col2 FROM tab2 ---- -1416 -408 -744 query I rowsort SELECT + tab1.col1 * ( col1 ) + 49 + + col0 AS col0 FROM tab1 ---- 213 298 728 query I rowsort SELECT 91 - - 47 * col0 AS col2 FROM tab0 ---- 1219 1736 4274 query I rowsort SELECT DISTINCT ( + col2 ) + col1 FROM tab1 ---- 109 67 80 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0, tab0 cor0 WHERE NULL <= NULL ---- query I rowsort SELECT ALL - col2 * - tab1.col0 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT + col1 * col2 + + col1 * col1 + col0 FROM tab0 cor0 ---- 10258 15832 9541 onlyif mysql # use DIV operator for integer division query I rowsort label-2347 SELECT col0 DIV + 68 + col0 + - 42 FROM tab1 AS cor0 ---- -39 22 39 skipif mysql # not compatible query I rowsort label-2347 SELECT col0 / + 68 + col0 + - 42 FROM tab1 AS cor0 ---- -39 22 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor1.col0 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT - - col2 + col2 + + 97 * col2 FROM tab0 AS cor0 ---- 3267 8118 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2350 SELECT + 96 * cor0.col2 + CAST( NULL AS SIGNED ) * - col0 * col1 + col2 * - col2 * - col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2350 SELECT + 96 * cor0.col2 + CAST ( NULL AS INTEGER ) * - col0 * col1 + col2 * - col2 * - col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 50 + col2 FROM tab1 AS cor0 ---- 104 107 146 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * - col0 + col2 + cor0.col1 * - col0 col2 FROM tab1 AS cor0 ---- -186 -4231 -8624 onlyif mysql # use DIV operator for integer division query I rowsort label-2353 SELECT 28 + - col1 DIV 6 FROM tab0 AS cor0 ---- 12 13 14 skipif mysql # not compatible query I rowsort label-2353 SELECT 28 + - col1 / 6 FROM tab0 AS cor0 ---- 12 13 14 query I rowsort SELECT ALL 26 * cor0.col2 FROM tab1 cor0 ---- 1404 1482 2496 query I rowsort SELECT ALL + cor0.col1 + + col1 + 36 AS col2 FROM tab0 AS cor0 ---- 208 218 230 query I rowsort SELECT - 95 + col2 AS col2 FROM tab1 AS cor0 ---- -38 -41 1 query I rowsort SELECT 16 * col0 + cor0.col2 FROM tab0 AS cor0 ---- 1506 417 561 query I rowsort SELECT DISTINCT 80 + cor0.col1 FROM tab1 AS cor0 ---- 106 90 93 query I rowsort SELECT - - 69 + - cor0.col1 * + ( - 39 ) AS col2 FROM tab0 AS cor0 ---- 3423 3618 3852 query I rowsort SELECT DISTINCT - 21 + + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 17 5 6 query I rowsort SELECT DISTINCT - + 19 AS col1 FROM tab2, tab1, tab1 AS cor0 ---- -19 query I rowsort SELECT DISTINCT - + col2 * - col0 + + col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL 17 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e0dd9155e4d67132637a04c18ef46b2a query I rowsort SELECT DISTINCT - 51 + - col2 + + col0 FROM tab0 AS cor0 ---- -17 -44 -60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 97 + + col1 * col2 col2 FROM tab2 AS cor0 ---- 1631 743 934 query I rowsort SELECT DISTINCT col1 + col0 + + col2 FROM tab2 AS cor0 ---- 134 163 65 query I rowsort SELECT DISTINCT + cor0.col2 * col0 + + col2 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT ALL - col1 * + col2 + 49 + cor0.col1 FROM tab0 AS cor0 ---- -2703 -7322 49 query I rowsort SELECT - cor0.col1 * 63 FROM tab2 AS cor0 ---- -1071 -1953 -3717 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * + col2 + - cor0.col1 * col2 col2 FROM tab2 cor0 ---- -1026 -3562 -3648 onlyif mysql # use DIV operator for integer division query I rowsort label-2371 SELECT ALL - col0 DIV 18 + 53 DIV col1 FROM tab2 AS cor0 ---- -1 -4 1 skipif mysql # not compatible query I rowsort label-2371 SELECT ALL - col0 / 18 + 53 / col1 FROM tab2 AS cor0 ---- -1 -4 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2372 SELECT cor0.col2 DIV + 80 AS col2 FROM tab0 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-2372 SELECT cor0.col2 / + 80 AS col2 FROM tab0 cor0 ---- 0 0 1 query I rowsort SELECT ALL - - cor0.col1 + - ( - col1 ) * + col1 AS col0 FROM tab1 cor0 ---- 110 182 702 query I rowsort SELECT ALL cor0.col1 * - col0 + - col1 * col1 FROM tab2 AS cor0 ---- -1178 -1632 -8083 query I rowsort SELECT - + cor0.col0 + 8 AS col1 FROM tab0 cor0 ---- -16 -27 -81 query I rowsort SELECT DISTINCT - tab1.col0 FROM tab1, tab2, tab0 cor0 ---- -3 -64 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-2377 SELECT col2 + + col2 * tab0.col0 + - col2 DIV + col2 AS col1 FROM tab0 ---- 35 7379 824 skipif mysql # not compatible query I rowsort label-2377 SELECT col2 + + col2 * tab0.col0 + - col2 / + col2 AS col1 FROM tab0 ---- 35 7379 824 query I rowsort SELECT - - col1 + + col2 + col1 AS col2 FROM tab1 AS cor0 ---- 106 122 77 query I rowsort SELECT - 27 * 74 - - cor0.col1 FROM tab0 AS cor0 ---- -1901 -1907 -1912 query I rowsort SELECT ALL ( 54 ) * col1 + + col1 * + cor0.col0 FROM tab2 AS cor0 ---- 1891 2261 7788 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2381 SELECT - CAST( NULL AS SIGNED ) * ( + col0 ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2381 SELECT - CAST ( NULL AS INTEGER ) * ( + col0 ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + + col0 * + col1 - - col2 AS col0 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT col1 - + col0 * col0 AS col1 FROM tab2 AS cor0 ---- -18 -6025 -6224 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2384 SELECT ALL + - CAST( col2 AS SIGNED ) FROM tab0 cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-2384 SELECT ALL + - CAST ( col2 AS INTEGER ) FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT + + cor0.col2 * - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL - ( + 92 ) * + col0 FROM tab2 AS cor0 ---- -644 -7176 -7268 query I rowsort SELECT ALL - + col2 * col0 + col2 + 90 FROM tab2 AS cor0 ---- -1912 -2874 -72 onlyif mysql # use DIV operator for integer division query I rowsort label-2388 SELECT ALL - + 96 + + col2 DIV + col1 - 92 * cor0.col0 * + col1 FROM tab1 AS cor0 ---- -58971 -7270 -95769 skipif mysql # not compatible query I rowsort label-2388 SELECT ALL - + 96 + + col2 / + col1 - 92 * cor0.col0 * + col1 FROM tab1 AS cor0 ---- -58971 -7270 -95769 query I rowsort SELECT DISTINCT + + col2 * - 65 FROM tab2 cor0 ---- -1690 -1755 -2470 query I rowsort SELECT DISTINCT - + 13 * - col2 FROM tab1 AS cor0 ---- 1248 702 741 query I rowsort SELECT DISTINCT - ( col1 ) * + col1 AS col1 FROM tab1 cor0 ---- -100 -169 -676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( - ( - col0 ) ) * 39 * col2 col2 FROM tab2 AS cor0 ---- 117078 7371 79092 query I rowsort SELECT DISTINCT + 85 AS col2 FROM tab1 AS cor0 ---- 85 query I rowsort SELECT - ( cor0.col1 ) * + cor0.col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT ALL - col0 * + ( col0 ) AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT ALL ( + col0 ) + col1 * - col0 FROM tab2 AS cor0 ---- -1264 -210 -4524 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2397 SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col0 * CAST( - col0 AS SIGNED ) + + col1 col2 FROM tab2 cor0 ---- -1292 -158125 -237141 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2397 SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col0 * CAST ( - col0 AS INTEGER ) + + col1 col2 FROM tab2 cor0 ---- -1292 -158125 -237141 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 61 col0 FROM tab2 AS cor0 ---- -61 onlyif mysql # use DIV operator for integer division query I rowsort label-2399 SELECT ALL + col0 + - col2 DIV + col0 FROM tab0 ---- 23 35 89 skipif mysql # not compatible query I rowsort label-2399 SELECT ALL + col0 + - col2 / + col0 FROM tab0 ---- 23 35 89 skipif mysql # not compatible query I rowsort SELECT - + col0 - col0 * CAST ( 62 AS REAL ) AS col1 FROM tab2 AS cor0 ---- -441 -4914 -4977 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2401 SELECT DISTINCT col2 + - CAST( NULL AS DECIMAL ) / 3 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-2401 SELECT DISTINCT col2 + - CAST ( NULL AS REAL ) / 3 FROM tab0 ---- NULL query I rowsort SELECT col0 + - 78 + col1 AS col1 FROM tab0 AS cor0 ---- 102 32 54 query I rowsort SELECT ALL col2 * 10 * col1 AS col2 FROM tab0 ---- 28380 74620 970 query I rowsort SELECT 24 * ( + col2 ) AS col1 FROM tab2 AS cor0 ---- 624 648 912 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 53 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6 query I rowsort SELECT DISTINCT - col1 * + ( 98 + col1 ) FROM tab2 ---- -1955 -3999 -9263 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - 7 ) col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ba940cd66e21e94e95aada5f28e1faf5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2408 SELECT ALL col2 * CAST( - col1 AS SIGNED ) AS col1 FROM tab0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-2408 SELECT ALL col2 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT ALL col1 + + col2 * col2 + col0 * col1 * + col0 AS col1 FROM tab2 ---- 107558 2279 359691 query I rowsort SELECT + 93 + - col0 * col1 FROM tab1 AS cor0 ---- -547 -947 15 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2411 SELECT - + CAST( NULL AS DECIMAL ) + - col0 * + col2 * - cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2411 SELECT - + CAST ( NULL AS REAL ) + - col0 * + col2 * - cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col1 + col2 * col1 FROM tab1 AS cor0 ---- 1261 1430 580 skipif mysql # not compatible query I rowsort SELECT CAST ( - col1 AS REAL ) * - col2 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2414 SELECT - CAST( + cor0.col0 AS SIGNED ) * + col0 + col1 AS col0 FROM tab0 cor0 ---- -1128 -490 -7830 skipif mysql # not compatible query I rowsort label-2414 SELECT - CAST ( + cor0.col0 AS INTEGER ) * + col0 + col1 AS col0 FROM tab0 cor0 ---- -1128 -490 -7830 query I rowsort SELECT ALL cor0.col0 + - tab1.col0 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to f8c8144a1e750f938e34a2795af6b4c2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 85 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + 54 col1 FROM tab1 AS cor0 ---- -54 query I rowsort SELECT ALL - col1 * - cor0.col1 * 28 + col1 + col1 FROM tab0 AS cor0 ---- 207260 232050 263646 query I rowsort SELECT DISTINCT - col0 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -110 -132 -180 onlyif mysql # use DIV operator for integer division query I rowsort label-2420 SELECT + 78 + col2 DIV col0 AS col2 FROM tab2 AS cor0 ---- 78 78 81 skipif mysql # not compatible query I rowsort label-2420 SELECT + 78 + col2 / col0 AS col2 FROM tab2 AS cor0 ---- 78 78 81 query I rowsort SELECT ALL - + ( - cor0.col1 ) + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - - col1 * + col2 * - col1 + col0 FROM tab1 AS cor0 ---- -16144 -36501 -5636 query I rowsort SELECT - - col2 * + col1 + col2 AS col2 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT col2 + + 51 * col0 FROM tab1 AS cor0 ---- 207 3321 4176 query I rowsort SELECT ALL - col2 * 9 FROM tab0 AS cor0 ---- -297 -738 -9 query I rowsort SELECT - + col2 * cor0.col1 * col1 + - col0 AS col0 FROM tab1 AS cor0 ---- -16304 -36507 -5764 query I rowsort SELECT + cor0.col2 * + ( 75 ) AS col1 FROM tab2 cor0 ---- 1950 2025 2850 query I rowsort SELECT + col2 * - col1 + - col2 AS col1 FROM tab2 ---- -1560 -684 -864 query I rowsort SELECT DISTINCT - cor0.col2 * - col2 * col0 + - col2 FROM tab0 AS cor0 ---- 26103 34 598354 query I rowsort SELECT DISTINCT + + col2 * cor0.col1 + + col1 AS col1 FROM tab2 AS cor0 ---- 1593 663 868 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2431 SELECT ALL col0 * CAST( NULL AS SIGNED ) + - cor0.col2 * col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2431 SELECT ALL col0 * CAST ( NULL AS INTEGER ) + - cor0.col2 * col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - cor0.col2 * - 72 AS col2 FROM tab0 AS cor0 ---- 2376 5904 72 query I rowsort SELECT + 62 - cor0.col2 * col2 AS col2 FROM tab2 AS cor0 ---- -1382 -614 -667 query I rowsort SELECT ALL + col2 * - col0 + col2 AS col1 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT cor0.col1 * + col2 + col1 AS col0 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT - - 23 * col2 + + col0 * 82 AS col0 FROM tab0 AS cor0 ---- 2727 2893 9184 query I rowsort SELECT ALL col1 + col0 + col2 AS col1 FROM tab0 AS cor0 ---- 133 143 262 query I rowsort SELECT ALL col2 * + col0 * - col1 + ( col0 + col1 ) FROM tab1 AS cor0 ---- -36406 -4183 -99747 query I rowsort SELECT DISTINCT cor0.col0 * - col1 + col1 AS col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 86 col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * col1 col0 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT cor0.col2 + - cor0.col2 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL + + col2 + + ( col1 ) FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL - + col2 + + 36 - col0 FROM tab1 cor0 ---- -140 -21 -85 query I rowsort SELECT DISTINCT + ( + 31 ) * col0 FROM tab0 AS cor0 ---- 1085 2759 744 onlyif mysql # use DIV operator for integer division query I rowsort label-2446 SELECT ALL - + 18 DIV + col1 + - col2 AS col2 FROM tab0 cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-2446 SELECT ALL - + 18 / + col1 + - col2 AS col2 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT + ( col0 ) * col0 - ( - cor0.col2 ) * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 15616 2925 7345 query I rowsort SELECT DISTINCT + ( ( col2 ) ) AS col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + 82 + - 77 FROM tab1 AS cor0 ---- 5 5 5 query I rowsort SELECT ALL + 95 + + 81 * cor0.col0 FROM tab0 cor0 ---- 2039 2930 7304 query I rowsort SELECT ALL - 94 + col2 AS col2 FROM tab0 cor0 ---- -12 -61 -93 query I rowsort SELECT + col1 * + col2 + - cor0.col1 AS col2 FROM tab0 AS cor0 ---- 0 2752 7371 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2453 SELECT DISTINCT - CAST( - 8 AS SIGNED ) + - col2 FROM tab2 AS cor0 ---- -18 -19 -30 skipif mysql # not compatible query I rowsort label-2453 SELECT DISTINCT - CAST ( - 8 AS INTEGER ) + - col2 FROM tab2 AS cor0 ---- -18 -19 -30 query I rowsort SELECT + - ( + 20 ) + + col2 * col2 FROM tab1 AS cor0 ---- 2896 3229 9196 query I rowsort SELECT DISTINCT - + col1 * - cor0.col2 - cor0.col1 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT DISTINCT - col2 * col2 * - col2 + ( col2 ) * + col0 AS col1 FROM tab0 AS cor0 ---- 36 36729 558666 onlyif mysql # use DIV operator for integer division query I rowsort label-2457 SELECT ALL + ( col0 ) * + col0 + 86 DIV + ( + col1 ) FROM tab2 AS cor0 ---- 51 6085 6246 skipif mysql # not compatible query I rowsort label-2457 SELECT ALL + ( col0 ) * + col0 + 86 / + ( + col1 ) FROM tab2 AS cor0 ---- 51 6085 6246 query I rowsort SELECT DISTINCT - col1 * col1 - cor0.col2 FROM tab0 AS cor0 ---- -7429 -8363 -9410 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col1 col1 FROM tab0, tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT ALL - 94 * + col2 FROM tab1 AS cor0 ---- -5076 -5358 -9024 query I rowsort SELECT DISTINCT - + 33 * col0 AS col0 FROM tab0 cor0 ---- -1155 -2937 -792 query I rowsort SELECT ALL + + col0 * 82 AS col0 FROM tab0 AS cor0 ---- 1968 2870 7298 query I rowsort SELECT - + col0 - ( - col0 + col0 ) AS col1 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-2464 SELECT DISTINCT cor0.col1 DIV ( col1 * + cor0.col1 ) + cor0.col0 FROM tab0 cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-2464 SELECT DISTINCT cor0.col1 / ( col1 * + cor0.col1 ) + cor0.col0 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT + - col1 + + 92 AS col2 FROM tab0 AS cor0 ---- -5 1 6 query I rowsort SELECT ALL + col1 * ( - 38 ) + cor0.col2 FROM tab2 AS cor0 ---- -1151 -2216 -608 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2467 SELECT ALL - col0 + + CAST( NULL AS SIGNED ) - col1 * + col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2467 SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) - col1 * + col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2468 SELECT DISTINCT + col1 + + CAST( 87 AS SIGNED ) DIV cor0.col2 FROM tab0 cor0 ---- 184 88 92 skipif mysql # not compatible query I rowsort label-2468 SELECT DISTINCT + col1 + + CAST ( 87 AS INTEGER ) / cor0.col2 FROM tab0 cor0 ---- 184 88 92 query I rowsort SELECT + 13 - - col0 * 94 AS col2 FROM tab2 ---- 671 7345 7439 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + - col0 * col2 col1 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT DISTINCT ( col2 ) * 73 * - col1 FROM tab0 ---- -207174 -544726 -7081 onlyif mysql # use DIV operator for integer division query I rowsort label-2472 SELECT + col1 * col0 + + col2 - - cor0.col2 DIV - col1 FROM tab2 AS cor0 ---- 1379 244 4628 skipif mysql # not compatible query I rowsort label-2472 SELECT + col1 * col0 + + col2 - - cor0.col2 / - col1 FROM tab2 AS cor0 ---- 1379 244 4628 query I rowsort SELECT - col1 + + col0 * col2 FROM tab0 ---- -62 706 7207 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + - col2 * + col2 col2 FROM tab1 ---- -2919 -3313 -9296 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2475 SELECT DISTINCT CAST( NULL AS SIGNED ) + - 47 FROM tab2, tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2475 SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 47 FROM tab2, tab0 AS cor0 ---- NULL query I rowsort SELECT - tab2.col0 + - tab2.col2 FROM tab2 ---- -104 -117 -34 query I rowsort SELECT DISTINCT 43 AS col0 FROM tab0, tab1 AS cor0 ---- 43 query I rowsort SELECT + - col1 + 69 AS col0 FROM tab1 AS cor0 ---- 43 56 59 query I rowsort SELECT DISTINCT col0 + ( + ( col1 ) ) * 85 * - col2 AS col1 FROM tab2 AS cor0 ---- -130312 -54831 -71138 query I rowsort SELECT + 10 * col0 + col2 FROM tab1 AS cor0 ---- 697 84 896 query I rowsort SELECT DISTINCT col1 + - col2 + col2 AS col1 FROM tab1 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2482 SELECT - CAST( NULL AS SIGNED ) * + col1 - - col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2482 SELECT - CAST ( NULL AS INTEGER ) * + col1 - - col2 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + tab0.col0 col2 FROM tab0 ---- 178 48 70 query I rowsort SELECT tab0.col0 * - 83 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 70a841dbad913fcc778b24eb8f29ba6a query I rowsort SELECT ALL + 73 * col1 FROM tab0 ---- 6278 6643 7081 query I rowsort SELECT - - 1 * 57 AS col1 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query I rowsort SELECT ALL + 69 + + 38 FROM tab0 AS cor0 ---- 107 107 107 query I rowsort SELECT - 13 + - col1 AS col0 FROM tab2 ---- -30 -44 -72 query I rowsort SELECT - - col0 * col2 + col1 FROM tab0 AS cor0 ---- 132 7389 878 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 * - cor0.col1 + 11 col1 FROM tab2 cor0 ---- -1523 -635 -826 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 + col2 col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT + - cor0.col1 + 9 AS col2 FROM tab1 AS cor0 ---- -1 -17 -4 query I rowsort SELECT cor1.col2 + 13 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1 ---- 27 values hashing to f660dc265a5ea2f6abc9b02aadaf598f skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * 29 col0 FROM tab1 AS cor0 ---- 1856 2320 87 query I rowsort SELECT - col2 * ( cor0.col1 ) FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL col1 * + col0 * - col1 AS col0 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT + + col0 + 39 FROM tab2 AS cor0 ---- 117 118 46 query I rowsort SELECT - 27 + - col2 + col2 AS col1 FROM tab1 ---- -27 -27 -27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 75 col2 FROM tab1 AS cor0 ---- 75 75 75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + col1 * ( + 71 ) col0 FROM tab0 AS cor0 ---- 6139 6543 6888 query I rowsort SELECT ALL cor0.col0 + ( 41 ) FROM tab2 cor0 ---- 119 120 48 query I rowsort SELECT ALL + col0 + + ( 97 + + col0 ) FROM tab1 AS cor0 ---- 103 225 257 onlyif mysql # use DIV operator for integer division query I rowsort label-2503 SELECT col0 * col0 + col0 * col0 DIV - col2 + + col0 AS col2 FROM tab0 AS cor0 ---- 35 583 7914 skipif mysql # not compatible query I rowsort label-2503 SELECT col0 * col0 + col0 * col0 / - col2 + + col0 AS col2 FROM tab0 AS cor0 ---- 35 583 7914 query I rowsort SELECT ALL ( col1 ) - + col0 AS col0 FROM tab1 ---- -54 -67 23 query I rowsort SELECT DISTINCT col2 - + tab2.col2 AS col0 FROM tab2 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2506 SELECT - CAST( - 62 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 62 62 62 skipif mysql # not compatible query I rowsort label-2506 SELECT - CAST ( - 62 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 62 62 62 query I rowsort SELECT 24 * + ( + col0 ) FROM tab2 AS cor0 ---- 168 1872 1896 onlyif mysql # use DIV operator for integer division query I rowsort label-2508 SELECT DISTINCT col2 DIV col0 col2 FROM tab0 ---- 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2508 SELECT DISTINCT col2 / col0 col2 FROM tab0 ---- 0 1 query I rowsort SELECT ALL + col2 * - ( col2 ) FROM tab0 ---- -1 -1089 -6724 onlyif mysql # use DIV operator for integer division query I rowsort label-2510 SELECT 54 DIV + 86 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-2510 SELECT 54 / + 86 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * ( + 93 ) col2 FROM tab2 ---- -1581 -2883 -5487 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2512 SELECT + - CAST( NULL AS SIGNED ) * + 76 col2 FROM tab0 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2512 SELECT + - CAST ( NULL AS INTEGER ) * + 76 col2 FROM tab0 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 col2 FROM tab2, tab1 cor0 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2514 SELECT col0 - - col2 * col1 * CAST( 41 AS SIGNED ) col0 FROM tab2 ---- 26565 34324 62972 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2514 SELECT col0 - - col2 * col1 * CAST ( 41 AS INTEGER ) col0 FROM tab2 ---- 26565 34324 62972 onlyif mysql # use DIV operator for integer division query I rowsort label-2515 SELECT ( - col0 ) DIV - col0 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2515 SELECT ( - col0 ) / - col0 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT 65 * cor0.col1 FROM tab1 AS cor0 ---- 1690 650 845 query I rowsort SELECT + + 73 * - col0 FROM tab1 AS cor0 ---- -219 -4672 -5840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 80 * col2 col0 FROM tab0 AS cor0 ---- 2640 6560 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2519 SELECT + CAST( col1 * - col0 AS SIGNED ) AS col0 FROM tab1 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-2519 SELECT + CAST ( col1 * - col0 AS INTEGER ) AS col0 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT ALL ( 6 ) FROM tab1 ---- 6 6 6 query I rowsort SELECT ALL 24 + cor0.col2 FROM tab2 AS cor0 ---- 50 51 62 onlyif mysql # use DIV operator for integer division query I rowsort label-2522 SELECT - col0 + - col0 DIV ( + col1 ) col0 FROM tab0 cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2522 SELECT - col0 + - col0 / ( + col1 ) col0 FROM tab0 cor0 ---- -24 -35 -89 query I rowsort SELECT ALL - ( col1 ) * + cor0.col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT + + col2 * - col0 * - col2 AS col0 FROM tab2 AS cor0 ---- 114076 5103 52728 onlyif mysql # use DIV operator for integer division query I rowsort label-2525 SELECT DISTINCT - col1 DIV col0 AS col1 FROM tab1 AS cor0 ---- -8 0 skipif mysql # not compatible query I rowsort label-2525 SELECT DISTINCT - col1 / col0 AS col1 FROM tab1 AS cor0 ---- -8 0 query I rowsort SELECT ALL col1 + + col1 * 80 FROM tab1 ---- 1053 2106 810 query I rowsort SELECT + col2 * col2 + cor0.col2 + col1 FROM tab0 AS cor0 ---- 1208 6897 99 query I rowsort SELECT - + col1 * ( 7 ) + + col0 FROM tab1 AS cor0 ---- -11 -179 -6 query I rowsort SELECT col0 * + 62 FROM tab1 ---- 186 3968 4960 query I rowsort SELECT - col0 + ( + 30 ) AS col2 FROM tab1 AS cor0 ---- -34 -50 27 query I rowsort SELECT DISTINCT - col0 + 7 + col1 FROM tab1 AS cor0 ---- -47 -60 30 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab2 cor0, tab0 AS cor1, tab2, tab0 AS cor2 ---- 3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6 query I rowsort SELECT DISTINCT col2 * 97 + col2 FROM tab0 AS cor0 ---- 3234 8036 98 query I rowsort SELECT + 29 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 query I rowsort SELECT ALL - - 99 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 4b77467dd5f346109d29f6364a7bb8db onlyif mysql # use DIV operator for integer division query I rowsort label-2536 SELECT ALL - - col2 + 57 DIV cor0.col2 + - col2 AS col2 FROM tab0 AS cor0 ---- 0 1 57 skipif mysql # not compatible query I rowsort label-2536 SELECT ALL - - col2 + 57 / cor0.col2 + - col2 AS col2 FROM tab0 AS cor0 ---- 0 1 57 query I rowsort SELECT + + ( + col0 ) + + col0 * col0 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT DISTINCT + - 22 * col0 FROM tab1 AS cor0 ---- -1408 -1760 -66 query I rowsort SELECT - - 79 * col1 AS col2 FROM tab0 AS cor0 ---- 6794 7189 7663 query I rowsort SELECT ALL + 30 * cor0.col1 FROM tab1 AS cor0 ---- 300 390 780 query I rowsort SELECT DISTINCT + 32 * + col2 AS col1 FROM tab2 AS cor0 ---- 1216 832 864 query I rowsort SELECT ALL col0 + + tab1.col1 * + 71 AS col1 FROM tab1 ---- 1003 1849 774 query I rowsort SELECT - 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to ad521144c976ff25e77cdf10a84d1dc6 query I rowsort SELECT DISTINCT - + ( cor0.col2 ) + + col0 * cor0.col2 * - col0 FROM tab0 AS cor0 ---- -1226 -19041 -649604 onlyif mysql # use DIV operator for integer division query I rowsort label-2545 SELECT - 3 * + col1 + cor0.col2 DIV - 80 + + col1 AS col1 FROM tab1 AS cor0 ---- -20 -27 -52 skipif mysql # not compatible query I rowsort label-2545 SELECT - 3 * + col1 + cor0.col2 / - 80 + + col1 AS col1 FROM tab1 AS cor0 ---- -20 -27 -52 query I rowsort SELECT ALL + ( col0 ) * - ( + col1 ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - - 8 + col2 FROM tab1 AS cor0 ---- 104 62 65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - col1 + cor0.col0 col2 FROM tab0 cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT - ( - col2 ) * + ( col2 ) AS col1 FROM tab1 AS cor0 ---- 2916 3249 9216 onlyif mysql # use DIV operator for integer division query I rowsort label-2550 SELECT DISTINCT col2 + - col0 DIV CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 102 54 63 skipif mysql # not compatible query I rowsort label-2550 SELECT DISTINCT col2 + - col0 / CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 102 54 63 query I rowsort SELECT DISTINCT - 89 + - cor0.col1 FROM tab0 AS cor0 ---- -175 -180 -186 query I rowsort SELECT ALL + cor0.col2 * col2 + col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT - + 40 + col2 FROM tab1 AS cor0 ---- 14 17 56 onlyif mysql # use DIV operator for integer division query I rowsort label-2554 SELECT ALL + col0 DIV - col0 - + col0 AS col0 FROM tab1 AS cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-2554 SELECT ALL + col0 / - col0 - + col0 AS col0 FROM tab1 AS cor0 ---- -4 -65 -81 query I rowsort SELECT ALL - ( - col2 ) + + 63 FROM tab2 AS cor0 ---- 101 89 90 query I rowsort SELECT col1 + ( - col2 * col0 ) + + col1 FROM tab2 AS cor0 ---- -127 -1910 -2968 query I rowsort SELECT + cor0.col2 * col1 + col1 AS col2 FROM tab1 cor0 ---- 1261 1430 580 query I rowsort SELECT - - cor0.col1 + 42 AS col0 FROM tab2 AS cor0 ---- 101 59 73 query I rowsort SELECT ALL - 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to caf28657beb43049740febe1fa9ded5a query I rowsort SELECT DISTINCT cor0.col0 + + 94 * - 7 + + col2 FROM tab1 AS cor0 ---- -482 -537 -601 query I rowsort SELECT ALL col1 * col0 + - col2 * col0 + + col0 FROM tab2 AS cor0 ---- -1580 2652 35 query I rowsort SELECT DISTINCT - + 26 * col0 + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -2396 -657 -911 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * - col2 + col2 col2 FROM tab2 ---- -1406 -650 -702 query I rowsort SELECT DISTINCT ( col2 ) * col2 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT - + 30 * + 5 + + col1 FROM tab0 AS cor0 ---- -53 -59 -64 query I rowsort SELECT cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2567 SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 32 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2567 SELECT DISTINCT CAST ( NULL AS REAL ) * - 32 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2568 SELECT DISTINCT CAST( NULL AS SIGNED ) * 51 + col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2568 SELECT DISTINCT CAST ( NULL AS INTEGER ) * 51 + col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - - 46 * + 80 AS col0 FROM tab0 AS cor0 ---- 3680 3680 3680 query I rowsort SELECT DISTINCT - col0 + + 64 FROM tab0 AS cor0 ---- -25 29 40 query I rowsort SELECT ALL - col1 * 31 FROM tab0 cor0 ---- -2666 -2821 -3007 query I rowsort SELECT DISTINCT - - col1 * col0 + - 39 AS col2 FROM tab0 AS cor0 ---- 2025 3356 8060 query I rowsort SELECT ALL + - col2 * + col2 AS col2 FROM tab0 cor0 ---- -1 -1089 -6724 query I rowsort SELECT ALL + + 18 * col0 AS col0 FROM tab1 cor0 ---- 1152 1440 54 query I rowsort SELECT ALL col2 + col2 * + col0 AS col1 FROM tab0 cor0 ---- 36 7380 825 query I rowsort SELECT DISTINCT ( + col0 ) + + col2 * + col2 FROM tab0 AS cor0 ---- 1113 36 6813 skipif mysql # not compatible query I rowsort SELECT col1 - + col2 * CAST ( col1 AS REAL ) FROM tab1 AS cor0 ---- -1235 -1378 -560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 30 col2 FROM tab1 AS cor0 ---- 30 30 30 onlyif mysql # use DIV operator for integer division query I rowsort label-2579 SELECT + - col1 - + col1 DIV col2 AS col2 FROM tab0 AS cor0 ---- -194 -88 -92 skipif mysql # not compatible query I rowsort label-2579 SELECT + - col1 - + col1 / col2 AS col2 FROM tab0 AS cor0 ---- -194 -88 -92 query I rowsort SELECT 77 * col2 - + tab0.col0 * + 20 FROM tab0 ---- -623 2061 4534 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 34 col0 FROM tab0 ---- -34 -34 -34 onlyif mysql # use DIV operator for integer division query I rowsort label-2582 SELECT DISTINCT + 6 DIV - col0 + cor0.col1 col2 FROM tab1 AS cor0 ---- 10 13 24 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2582 SELECT DISTINCT + 6 / - col0 + cor0.col1 col2 FROM tab1 AS cor0 ---- 10 13 24 query I rowsort SELECT 91 + col1 * + col2 AS col2 FROM tab2 ---- 1625 737 928 query I rowsort SELECT + 61 + + 5 AS col2 FROM tab1 ---- 66 66 66 query I rowsort SELECT + col2 * col0 * + col1 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT + col2 + col2 * - col2 AS col2 FROM tab2 AS cor0 ---- -1406 -650 -702 onlyif mysql # use DIV operator for integer division query I rowsort label-2587 SELECT DISTINCT col1 + tab1.col0 DIV - 32 FROM tab1 ---- 11 26 8 skipif mysql # not compatible query I rowsort label-2587 SELECT DISTINCT col1 + tab1.col0 / - 32 FROM tab1 ---- 11 26 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2588 SELECT col1 * tab0.col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2588 SELECT col1 * tab0.col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT tab2.col1 + + col1 * 9 + col2 FROM tab2 ---- 208 337 616 onlyif mysql # use DIV operator for integer division query I rowsort label-2590 SELECT - col1 * - col1 + col0 DIV - ( + col1 + + col2 ) AS col1 FROM tab0 ---- 7396 8281 9409 skipif mysql # not compatible query I rowsort label-2590 SELECT - col1 * - col1 + col0 / - ( + col1 + + col2 ) AS col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT + 96 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e query I rowsort SELECT - - 11 * + cor0.col2 FROM tab0 AS cor0 ---- 11 363 902 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 + - cor0.col2 col1 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT + col0 * col1 + + 57 FROM tab1 ---- 1097 135 697 query I rowsort SELECT - col2 + col1 * tab2.col0 FROM tab2 ---- 1305 190 4576 query I rowsort SELECT DISTINCT + col2 + + col2 + - col0 * - col0 * 81 AS col0 FROM tab1 ---- 331890 518592 837 query I rowsort SELECT DISTINCT - col0 + - ( + 53 ) + tab0.col0 * - ( + tab0.col1 + + col2 ) FROM tab0 ---- -15539 -2933 -3518 query I rowsort SELECT DISTINCT - col0 + ( - ( - col1 ) ) * + ( col1 ) FROM tab1 ---- 36 673 89 query I rowsort SELECT 31 * + ( - col2 ) FROM tab1 AS cor0 ---- -1674 -1767 -2976 onlyif mysql # use DIV operator for integer division query I rowsort label-2600 SELECT - ( + col2 ) + cor0.col0 DIV + 80 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-2600 SELECT - ( + col2 ) + cor0.col0 / + 80 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT - - ( 27 ) FROM tab2 AS cor0 ---- 27 query I rowsort SELECT ALL - + 62 AS col2 FROM tab2 AS cor0 ---- -62 -62 -62 query I rowsort SELECT ALL tab1.col2 * - 3 FROM tab1 ---- -162 -171 -288 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2604 SELECT CAST( 31 AS SIGNED ) FROM tab2 AS cor0 ---- 31 31 31 skipif mysql # not compatible query I rowsort label-2604 SELECT CAST ( 31 AS INTEGER ) FROM tab2 AS cor0 ---- 31 31 31 query I rowsort SELECT ALL - col1 + + 55 * - col1 AS col1 FROM tab0 cor0 ---- -4816 -5096 -5432 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2606 SELECT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2606 SELECT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 72 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49 query I rowsort SELECT - - col1 * + cor0.col0 + 35 AS col2 FROM tab1 AS cor0 ---- 1075 113 675 query I rowsort SELECT + + cor0.col1 * - col0 + - 65 FROM tab1 cor0 ---- -1105 -143 -705 query I rowsort SELECT - 86 + - 10 * + col1 - ( col2 + + col0 ) AS col2 FROM tab1 AS cor0 ---- -307 -392 -403 query I rowsort SELECT + ( ( - col2 ) ) * + 51 * cor0.col1 FROM tab1 AS cor0 ---- -29070 -63648 -71604 query I rowsort SELECT ALL + - 68 + col2 FROM tab2 cor0 ---- -30 -41 -42 query I rowsort SELECT ALL + 26 + - col1 * + col1 FROM tab0 cor0 ---- -7370 -8255 -9383 query I rowsort SELECT DISTINCT col2 + 73 - + cor0.col2 FROM tab1 AS cor0 ---- 73 query I rowsort SELECT ( col0 ) * + col2 AS col1 FROM tab1 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2616 SELECT DISTINCT + CAST( + col0 AS SIGNED ) FROM tab2 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-2616 SELECT DISTINCT + CAST ( + col0 AS INTEGER ) FROM tab2 ---- 7 78 79 query I rowsort SELECT DISTINCT - ( + ( - col2 ) * col1 ) AS col0 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT - ( - col1 ) * - col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT - col2 * cor0.col2 + 49 AS col0 FROM tab0 AS cor0 ---- -1040 -6675 48 query I rowsort SELECT - + 37 + + col0 * + ( + 85 * + col1 ) FROM tab0 AS cor0 ---- 175403 288538 688378 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2621 SELECT DISTINCT CAST( + 73 AS SIGNED ) FROM tab1, tab1 AS cor0 ---- 73 skipif mysql # not compatible query I rowsort label-2621 SELECT DISTINCT CAST ( + 73 AS INTEGER ) FROM tab1, tab1 AS cor0 ---- 73 query I rowsort SELECT + - 4 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5784540a5af6ca2be84399d314acd2fd query I rowsort SELECT DISTINCT - + col0 * cor0.col0 + cor0.col1 FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT ALL 69 * - col1 AS col1 FROM tab0 ---- -5934 -6279 -6693 query I rowsort SELECT col2 * - col0 * col0 AS col2 FROM tab1 AS cor0 ---- -233472 -486 -614400 query I rowsort SELECT ALL - + col0 + ( - col1 ) AS col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT - col0 * col2 * col1 FROM tab2 AS cor0 ---- -119652 -51034 -5859 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2628 SELECT ALL col1 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 ---- 289 3481 961 skipif mysql # not compatible query I rowsort label-2628 SELECT ALL col1 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col0 * ( cor0.col2 ) + + col2 * ( col1 ) col0 FROM tab2 AS cor0 ---- -2356 -494 648 query I rowsort SELECT - col2 * col2 + col1 FROM tab2 cor0 ---- -1427 -617 -698 query I rowsort SELECT DISTINCT - - col2 - cor0.col0 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT - - col1 * - col1 + + col2 AS col0 FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT ALL - + col1 * + ( - 70 ) + col1 AS col0 FROM tab2 AS cor0 ---- 1207 2201 4189 query I rowsort SELECT - col0 * - 98 + - col1 FROM tab2 cor0 ---- 655 7585 7725 query I rowsort SELECT DISTINCT + + col2 - ( ( + cor0.col1 ) * - 41 ) AS col1 FROM tab2 AS cor0 ---- 1298 2445 735 query I rowsort SELECT DISTINCT + cor0.col1 + 47 * 5 AS col2 FROM tab0 cor0 ---- 321 326 332 query I rowsort SELECT tab2.col1 + col1 * + tab2.col2 * - col1 FROM tab2 ---- -10965 -25916 -90447 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 78 * + col1 * col1 - col1 col1 FROM tab2 ---- 22525 271459 74927 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2639 SELECT tab1.col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2639 SELECT tab1.col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( - cor0.col1 ) FROM tab0, tab0 AS cor0 CROSS JOIN tab1 ---- -86 -91 -97 query I rowsort SELECT DISTINCT - tab1.col2 - 78 AS col0 FROM tab1 ---- -132 -135 -174 query I rowsort SELECT - + col1 * col1 + + col0 AS col1 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT col2 * - col1 + - 73 * 81 + - col0 AS col0 FROM tab1 AS cor0 ---- -6547 -7241 -7320 query I rowsort SELECT + 77 AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to d7b027bca5d37c67e29013904def8125 query I rowsort SELECT cor0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1 ---- 81 values hashing to 9d355f1f2edc347a359dad00d2d3f886 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 69 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d query I rowsort SELECT - col1 - + col1 AS col1 FROM tab1 AS cor0 ---- -20 -26 -52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col0 * + ( - col2 ) col2 FROM tab0 AS cor0 ---- -132 -7389 -878 onlyif mysql # use DIV operator for integer division query I rowsort label-2649 SELECT + - col2 DIV col0 - ( + col0 + - col0 ) AS col0 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-2649 SELECT + - col2 / col0 - ( + col0 + - col0 ) AS col0 FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT + + ( col1 ) * ( col0 ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL - col2 - - col1 AS col2 FROM tab2 AS cor0 ---- -21 33 4 onlyif mysql # use DIV operator for integer division query I rowsort label-2652 SELECT DISTINCT - col0 DIV + col0 + col0 AS col0 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-2652 SELECT DISTINCT - col0 / + col0 + col0 AS col0 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT 28 + col2 FROM tab0 AS cor0 ---- 110 29 61 query I rowsort SELECT 23 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2 query I rowsort SELECT ALL + - col1 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * col0 + col2 * + col1 * col2 + + col1 col1 FROM tab0 AS cor0 ---- 3589 620074 95804 query I rowsort SELECT DISTINCT - - 23 * col2 AS col1 FROM tab1 cor0 ---- 1242 1311 2208 query I rowsort SELECT DISTINCT + col1 - col1 * col1 FROM tab0 cor0 ---- -7310 -8190 -9312 query I rowsort SELECT + col1 + + col2 * ( col0 ) FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ( + 54 ) AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09 query I rowsort SELECT DISTINCT - col2 * + 58 FROM tab1 ---- -3132 -3306 -5568 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3 ---- 3645 values hashing to 85ee76cb25486c31b8f0abeb3f8683dc query I rowsort SELECT ALL - col1 * - col1 + 68 AS col0 FROM tab2 AS cor0 ---- 1029 3549 357 query I rowsort SELECT ALL - - col0 * 25 AS col2 FROM tab2 AS cor0 ---- 175 1950 1975 query I rowsort SELECT + col0 * col2 + - 49 FROM tab2 AS cor0 ---- 140 1979 2953 query I rowsort SELECT - + 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 744531575c1b6461ed2916d4940e4d23 query I rowsort SELECT + col1 * 12 AS col2 FROM tab0 AS cor0 ---- 1032 1092 1164 query I rowsort SELECT DISTINCT + col0 * - 53 FROM tab0 AS cor0 ---- -1272 -1855 -4717 query I rowsort SELECT DISTINCT 61 * - cor0.col0 FROM tab1, tab1 AS cor0 ---- -183 -3904 -4880 onlyif mysql # use DIV operator for integer division query I rowsort label-2670 SELECT 88 * col0 DIV - col0 FROM tab2 AS cor0 ---- -88 -88 -88 skipif mysql # not compatible query I rowsort label-2670 SELECT 88 * col0 / - col0 FROM tab2 AS cor0 ---- -88 -88 -88 query I rowsort SELECT - + 87 AS col0 FROM tab0 AS cor0 ---- -87 -87 -87 query I rowsort SELECT ALL - ( 40 ) FROM tab2 cor0 ---- -40 -40 -40 query I rowsort SELECT ALL + 34 * + col2 FROM tab1 AS cor0 ---- 1836 1938 3264 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2674 SELECT - CAST( NULL AS SIGNED ) / + col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2674 SELECT - CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col0 * - col2 + + col2 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT 50 * + col2 + col1 FROM tab2 AS cor0 ---- 1359 1381 1917 onlyif mysql # use DIV operator for integer division query I rowsort label-2677 SELECT DISTINCT - + col2 + - col2 DIV - col2 AS col0 FROM tab1 AS cor0 ---- -53 -56 -95 skipif mysql # not compatible query I rowsort label-2677 SELECT DISTINCT - + col2 + - col2 / - col2 AS col0 FROM tab1 AS cor0 ---- -53 -56 -95 query I rowsort SELECT DISTINCT - 2 + 14 AS col1 FROM tab2 AS cor0 ---- 12 onlyif mysql # use DIV operator for integer division query I rowsort label-2679 SELECT + - 94 DIV + 22 + - col2 FROM tab1 AS cor0 ---- -100 -58 -61 skipif mysql # not compatible query I rowsort label-2679 SELECT + - 94 / + 22 + - col2 FROM tab1 AS cor0 ---- -100 -58 -61 query I rowsort SELECT - col2 * col2 * col1 AS col0 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT + 78 * + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -221364 -582036 -7566 query I rowsort SELECT - + col2 + col1 * col2 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT ALL cor0.col1 + 53 FROM tab1 AS cor0 ---- 63 66 79 query I rowsort SELECT - + col1 + + col2 * + col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT ALL - + col1 * 4 + col1 + col2 FROM tab1 AS cor0 ---- -24 27 57 query I rowsort SELECT + col2 * col0 + + 59 AS col0 FROM tab1 cor0 ---- 221 3707 7739 query I rowsort SELECT - 95 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to 1c7934db0632c123332c43f17b661d6c query I rowsort SELECT + col1 - 33 FROM tab1 AS cor0 ---- -20 -23 -7 query I rowsort SELECT - col2 + + 79 AS col2 FROM tab0 AS cor0 ---- -3 46 78 query I rowsort SELECT DISTINCT col0 + col2 * tab1.col2 AS col0 FROM tab1 ---- 2919 3313 9296 query I rowsort SELECT + col2 + 28 AS col0 FROM tab2 ---- 54 55 66 query I rowsort SELECT + ( - col2 ) + cor0.col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL - col1 * + 61 * + 17 AS col0 FROM tab0 ---- -100589 -89182 -94367 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 51 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5 query I rowsort SELECT + col2 * - 89 * 88 FROM tab1 ---- -422928 -446424 -751872 onlyif mysql # use DIV operator for integer division query I rowsort label-2696 SELECT + col1 DIV 37 + + 5 * col1 AS col0 FROM tab1 ---- 130 50 65 skipif mysql # not compatible query I rowsort label-2696 SELECT + col1 / 37 + + 5 * col1 AS col0 FROM tab1 ---- 130 50 65 query I rowsort SELECT col1 + - cor0.col0 + - 37 FROM tab2 AS cor0 ---- -13 -56 -99 onlyif mysql # use DIV operator for integer division query I rowsort label-2698 SELECT + + col2 DIV + col1 AS col0 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2698 SELECT + + col2 / + col1 AS col0 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2699 SELECT DISTINCT + col0 DIV + 46 AS col2 FROM tab1 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-2699 SELECT DISTINCT + col0 / + 46 AS col2 FROM tab1 AS cor0 ---- 0 1 query I rowsort SELECT DISTINCT - col2 + col2 * 83 FROM tab1 AS cor0 ---- 4428 4674 7872 skipif mysql # not compatible query I rowsort SELECT - + col1 * + CAST ( - col2 * col2 AS REAL ) AS col1 FROM tab0 AS cor0 ---- 611884 93654 97 onlyif mysql # use DIV operator for integer division query I rowsort label-2702 SELECT + col1 DIV ( - 94 ) FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-2702 SELECT + col1 / ( - 94 ) FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT ALL + 34 * ( + col0 ) FROM tab2 ---- 238 2652 2686 query I rowsort SELECT 70 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 query I rowsort SELECT - col1 * col0 * - tab1.col1 AS col0 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT ALL + ( col1 ) * col0 FROM tab1 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-2707 SELECT DISTINCT + tab0.col1 DIV + col0 - + col1 FROM tab0 ---- -83 -90 -95 skipif mysql # not compatible query I rowsort label-2707 SELECT DISTINCT + tab0.col1 / + col0 - + col1 FROM tab0 ---- -83 -90 -95 query I rowsort SELECT - col0 + 28 * + cor0.col0 FROM tab1 AS cor0 ---- 1728 2160 81 query I rowsort SELECT ALL cor0.col0 + - cor0.col2 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 1c0f12b2ac8c8b522b92205460500f94 query I rowsort SELECT DISTINCT + cor0.col2 FROM tab0, tab1 AS cor0, tab2 cor1 ---- 54 57 96 query I rowsort SELECT - col1 + col2 * col1 + col0 FROM tab1 cor0 ---- 1315 1381 624 query I rowsort SELECT + - 60 * col2 AS col0 FROM tab2 AS cor0 ---- -1560 -1620 -2280 query I rowsort SELECT + col1 * col0 * + 73 + col0 AS col2 FROM tab1 AS cor0 ---- 46784 5697 76000 query I rowsort SELECT + col0 * + col0 + 0 + + col2 * col1 * + ( col2 ) FROM tab1 cor0 ---- 126208 36586 75825 query I rowsort SELECT - - ( - col1 ) * col2 + col2 + - col0 * col0 AS col2 FROM tab1 AS cor0 ---- -1359 -4609 -7552 query I rowsort SELECT - + 23 * col2 * - col0 AS col1 FROM tab0 AS cor0 ---- 167854 18216 805 query I rowsort SELECT DISTINCT - - cor0.col2 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col1 * + col2 + col2 + col2 col0 FROM tab1 ---- 1440 1512 684 query I rowsort SELECT + 13 + + col2 FROM tab1 AS cor0 ---- 109 67 70 query I rowsort SELECT DISTINCT + col2 + col0 + cor0.col2 * 60 FROM tab1 AS cor0 ---- 3297 3541 5936 query I rowsort SELECT DISTINCT - col1 + col0 + ( - 33 ) FROM tab2 ---- -14 -57 29 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2722 SELECT DISTINCT col0 * col2 + CAST( NULL AS SIGNED ) FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-2722 SELECT DISTINCT col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL query I rowsort SELECT ALL - 97 - + cor0.col1 FROM tab1 AS cor0 ---- -107 -110 -123 query I rowsort SELECT DISTINCT 34 * + col1 * 40 FROM tab1 AS cor0 ---- 13600 17680 35360 query I rowsort SELECT ALL + + ( + col1 ) + - 18 FROM tab2 AS cor0 ---- -1 13 41 query I rowsort SELECT - col2 * col2 + + ( + cor0.col2 ) * col1 AS col0 FROM tab1 AS cor0 ---- -1512 -2679 -7968 query I rowsort SELECT DISTINCT + 14 * col1 * - 56 + - col0 AS col0 FROM tab0 AS cor0 ---- -67448 -71433 -76083 query I rowsort SELECT DISTINCT + cor0.col1 * - col1 FROM tab2 cor0 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT - + col1 * + 67 * - col0 AS col0 FROM tab0 AS cor0 ---- 138288 227465 542633 query I rowsort SELECT ALL + cor0.col0 * + 97 FROM tab2 cor0 ---- 679 7566 7663 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2731 SELECT col1 + CAST( + col0 * + col1 + col1 AS SIGNED ) FROM tab1 cor0 ---- 1066 130 660 skipif mysql # not compatible query I rowsort label-2731 SELECT col1 + CAST ( + col0 * + col1 + col1 AS INTEGER ) FROM tab1 cor0 ---- 1066 130 660 query I rowsort SELECT ALL + col1 * cor0.col1 + col1 FROM tab2 AS cor0 ---- 306 3540 992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - 67 col1 FROM tab1 AS cor0 ---- -41 -54 -57 query I rowsort SELECT ALL - + col2 * - ( + col2 + cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0 ---- 10206 105456 228152 query I rowsort SELECT col0 + col2 + - 14 FROM tab2 AS cor0 ---- 103 20 90 query I rowsort SELECT - 49 * col0 * - ( + col1 ) FROM tab2 ---- 10633 225498 65807 onlyif mysql # use DIV operator for integer division query I rowsort label-2737 SELECT DISTINCT col1 + col1 DIV - 86 + 62 FROM tab1 ---- 72 75 88 skipif mysql # not compatible query I rowsort label-2737 SELECT DISTINCT col1 + col1 / - 86 + 62 FROM tab1 ---- 72 75 88 query I rowsort SELECT DISTINCT col1 + + 49 FROM tab0 AS cor0 ---- 135 140 146 query I rowsort SELECT - cor0.col1 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT DISTINCT 28 + - col1 FROM tab0 ---- -58 -63 -69 query I rowsort SELECT DISTINCT col1 + col1 * col1 AS col1 FROM tab1 AS cor0 ---- 110 182 702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + 10 * - col2 col0 FROM tab2 cor0 ---- -260 -270 -380 query I rowsort SELECT ALL + - 71 + cor0.col1 FROM tab0 AS cor0 ---- 15 20 26 onlyif mysql # use DIV operator for integer division query I rowsort label-2744 SELECT ALL - col1 DIV 96 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2744 SELECT ALL - col1 / 96 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 55 + - col1 AS col0 FROM tab1 AS cor0 ---- 29 42 45 query I rowsort SELECT DISTINCT + + col1 * col0 - col0 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT DISTINCT - 47 + col1 AS col0 FROM tab1 AS cor0 ---- -21 -34 -37 onlyif mysql # use DIV operator for integer division query I rowsort label-2748 SELECT DISTINCT 2 DIV 41 - - col0 DIV cor0.col0 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-2748 SELECT DISTINCT 2 / 41 - - col0 / cor0.col0 FROM tab0 AS cor0 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( cor0.col1 ) col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT ALL + 34 * col0 * col1 AS col1 FROM tab2 AS cor0 ---- 156468 45662 7378 query I rowsort SELECT DISTINCT + col1 * - 15 FROM tab2 ---- -255 -465 -885 onlyif mysql # use DIV operator for integer division query I rowsort label-2752 SELECT col1 + + 84 * tab2.col1 DIV col1 AS col2 FROM tab2 ---- 101 115 143 skipif mysql # not compatible query I rowsort label-2752 SELECT col1 + + 84 * tab2.col1 / col1 AS col2 FROM tab2 ---- 101 115 143 query I rowsort SELECT DISTINCT + col0 + - col1 * + ( col0 ) FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT ( col0 ) * col1 - - col2 * col2 FROM tab0 ---- 14823 3153 3396 query I rowsort SELECT DISTINCT - col2 + 52 * cor0.col0 FROM tab0 AS cor0 ---- 1215 1819 4546 onlyif mysql # use DIV operator for integer division query I rowsort label-2756 SELECT ALL + col0 DIV ( 88 ) FROM tab0 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-2756 SELECT ALL + col0 / ( 88 ) FROM tab0 cor0 ---- 0 0 1 query I rowsort SELECT ALL col2 * 76 - + col1 FROM tab1 AS cor0 ---- 4078 4322 7283 query I rowsort SELECT ALL - + col1 + - 32 AS col0 FROM tab2 cor0 ---- -49 -63 -91 query I rowsort SELECT - col1 - col1 * + col0 AS col1 FROM tab0 ---- -2150 -3492 -8190 onlyif mysql # use DIV operator for integer division query I rowsort label-2760 SELECT + col2 + col2 DIV - col0 + col2 * 27 AS col2 FROM tab0 AS cor0 ---- 2296 28 923 skipif mysql # not compatible query I rowsort label-2760 SELECT + col2 + col2 / - col0 + col2 * 27 AS col2 FROM tab0 AS cor0 ---- 2296 28 923 query I rowsort SELECT ALL + col0 + + col2 * + 31 AS col1 FROM tab1 AS cor0 ---- 1677 1831 3056 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8 query I rowsort SELECT DISTINCT col0 + 84 AS col1 FROM tab2 ---- 162 163 91 query I rowsort SELECT - + 61 * - cor0.col0 + 60 AS col1 FROM tab0 AS cor0 ---- 1524 2195 5489 query I rowsort SELECT DISTINCT ( cor0.col0 ) - col1 * col2 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT cor0.col2 * 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 1bef3b3725360b6cb7970d1b611ca310 query I rowsort SELECT cor0.col0 + cor0.col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 10977325261681ddca962e0a5d2b348b onlyif mysql # use DIV operator for integer division query I rowsort label-2768 SELECT col0 * col2 DIV ( - 74 ) + - tab1.col1 AS col0 FROM tab1 ---- -116 -28 -59 skipif mysql # not compatible query I rowsort label-2768 SELECT col0 * col2 / ( - 74 ) + - tab1.col1 AS col0 FROM tab1 ---- -116 -28 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2769 SELECT 53 + + tab0.col0 * + CAST( col0 AS SIGNED ) FROM tab0 ---- 1278 629 7974 skipif mysql # not compatible query I rowsort label-2769 SELECT 53 + + tab0.col0 * + CAST ( col0 AS INTEGER ) FROM tab0 ---- 1278 629 7974 query I rowsort SELECT + + col0 + - col2 + ( + col1 ) AS col2 FROM tab0 AS cor0 ---- 131 77 98 query I rowsort SELECT ALL 30 + + col2 AS col1 FROM tab2 AS cor0 ---- 56 57 68 query I rowsort SELECT DISTINCT - col1 + + col0 AS col0 FROM tab0 cor0 ---- -2 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-2773 SELECT ALL col0 DIV - col0 FROM tab1 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2773 SELECT ALL col0 / - col0 FROM tab1 cor0 ---- -1 -1 -1 query I rowsort SELECT 44 FROM tab2, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 0cc3e52e781e46962291c3060c6ae73b query I rowsort SELECT - cor0.col1 * - col0 + - col0 FROM tab2 AS cor0 ---- 1264 210 4524 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * cor0.col0 + cor0.col0 col2 FROM tab1 AS cor0 ---- 12 4160 6480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2777 SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-2777 SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT col2 + + col2 * ( - col2 ) * cor0.col0 AS col2 FROM tab2 cor0 ---- -114038 -5076 -52702 query I rowsort SELECT - + 86 + col0 + + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -29 35 90 query I rowsort SELECT + col0 * ( + 93 ) + + col1 + 35 AS col0 FROM tab2 AS cor0 ---- 717 7348 7399 onlyif mysql # use DIV operator for integer division query I rowsort label-2781 SELECT - - col2 + col1 * - col2 + col1 DIV ( col1 * cor0.col2 + - 50 * - cor0.col0 ) FROM tab2 AS cor0 ---- -1508 -608 -810 skipif mysql # not compatible query I rowsort label-2781 SELECT - - col2 + col1 * - col2 + col1 / ( col1 * cor0.col2 + - 50 * - cor0.col0 ) FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT DISTINCT + tab1.col0 * + tab1.col1 * + tab1.col1 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT DISTINCT col2 + - 11 FROM tab2 AS cor0 ---- 15 16 27 query I rowsort SELECT DISTINCT 97 FROM tab1, tab1 AS cor0, tab2 cor1 ---- 97 query I rowsort SELECT col1 * 86 FROM tab1 AS cor0 ---- 1118 2236 860 skipif mysql # not compatible query I rowsort SELECT CAST ( - col2 * + col2 AS REAL ) + col2 * col0 + col2 AS col2 FROM tab1 ---- -1440 -2700 456 query I rowsort SELECT + ( tab1.col1 ) AS col0 FROM tab1 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-2788 SELECT - CAST( col1 AS SIGNED ) DIV + col1 AS col1 FROM tab1 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2788 SELECT - CAST ( col1 AS INTEGER ) / + col1 AS col1 FROM tab1 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-2789 SELECT - col1 + - col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0 ---- -10 -14 -44 skipif mysql # not compatible query I rowsort label-2789 SELECT - col1 + - col2 / cor0.col0 AS col1 FROM tab1 AS cor0 ---- -10 -14 -44 query I rowsort SELECT ( - 4 ) FROM tab0 AS cor0 ---- -4 -4 -4 query I rowsort SELECT DISTINCT - 98 + col0 AS col2 FROM tab1 AS cor0 ---- -18 -34 -95 onlyif mysql # use DIV operator for integer division query I rowsort label-2792 SELECT + + col2 - col0 DIV 3 col2 FROM tab1 cor0 ---- 36 53 70 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2792 SELECT + + col2 - col0 / 3 col2 FROM tab1 cor0 ---- 36 53 70 onlyif mysql # use DIV operator for integer division query I rowsort label-2793 SELECT + 31 DIV col0 + col0 * + col0 + col2 AS col0 FROM tab1 AS cor0 ---- 4153 6496 73 skipif mysql # not compatible query I rowsort label-2793 SELECT + 31 / col0 + col0 * + col0 + col2 AS col0 FROM tab1 AS cor0 ---- 4153 6496 73 query I rowsort SELECT - col0 + - col0 * + 40 AS col0 FROM tab1 cor0 ---- -123 -2624 -3280 query I rowsort SELECT ALL - 95 * - col0 AS col2 FROM tab1 AS cor0 ---- 285 6080 7600 query I rowsort SELECT - 93 - + col2 * cor0.col0 FROM tab1 AS cor0 ---- -255 -3741 -7773 query I rowsort SELECT - + col0 * - col2 * col0 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT + 43 + cor0.col2 * + col2 FROM tab2 AS cor0 ---- 1487 719 772 query I rowsort SELECT 90 * col0 AS col1 FROM tab1 ---- 270 5760 7200 query I rowsort SELECT DISTINCT 37 * 25 * - col2 + col2 AS col1 FROM tab0 ---- -30492 -75768 -924 query I rowsort SELECT col1 * + 17 * - col1 FROM tab2 ---- -16337 -4913 -59177 skipif mysql # not compatible query I rowsort SELECT - CAST ( - 49 AS REAL ) * col0 * ( - col0 ) FROM tab1 AS cor0 ---- -200704 -313600 -441 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2803 SELECT CAST( - ( + col1 ) AS SIGNED ) + 85 * - col0 AS col1 FROM tab2 cor0 ---- -626 -6689 -6732 skipif mysql # not compatible query I rowsort label-2803 SELECT CAST ( - ( + col1 ) AS INTEGER ) + 85 * - col0 AS col1 FROM tab2 cor0 ---- -626 -6689 -6732 query I rowsort SELECT - + 93 + col0 FROM tab2 AS cor0 ---- -14 -15 -86 query I rowsort SELECT cor0.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT + - col0 * col0 - col1 * col2 FROM tab1 cor0 ---- -1413 -4666 -7648 query I rowsort SELECT - col1 * col2 - - col0 AS col0 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT ( - col1 * col1 ) AS col2 FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT col0 + col1 * - col0 AS col1 FROM tab2 ---- -1264 -210 -4524 onlyif mysql # use DIV operator for integer division query I rowsort label-2810 SELECT tab0.col0 * + col0 - + tab0.col0 DIV - col2 AS col2 FROM tab0 ---- 1260 576 7922 skipif mysql # not compatible query I rowsort label-2810 SELECT tab0.col0 * + col0 - + tab0.col0 / - col2 AS col2 FROM tab0 ---- 1260 576 7922 query I rowsort SELECT - 17 AS col2 FROM tab0 ---- -17 -17 -17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2812 SELECT col1 * CAST( - 28 * col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -226772 -57792 -95060 skipif mysql # not compatible query I rowsort label-2812 SELECT col1 * CAST ( - 28 * col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -226772 -57792 -95060 query I rowsort SELECT - col2 * ( col2 ) AS col0 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT col0 * 44 AS col1 FROM tab1 AS cor0 ---- 132 2816 3520 query I rowsort SELECT DISTINCT + - col1 * + 35 FROM tab0 AS cor0 ---- -3010 -3185 -3395 query I rowsort SELECT DISTINCT col1 * - col1 * + tab0.col2 AS col1 FROM tab0 ---- -244068 -679042 -9409 query I rowsort SELECT DISTINCT + col1 * - col0 * + 53 FROM tab1 ---- -33920 -4134 -55120 query I rowsort SELECT ALL - 9 AS col0 FROM tab2 ---- -9 -9 -9 query I rowsort SELECT + 30 AS col2 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to 6c98840ed134c765d56389f4150075f0 query I rowsort SELECT + 34 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + tab0.col2 ) col1 FROM tab0 ---- -1 -33 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-2822 SELECT - - col0 DIV + 7 + 68 - - col2 * - col0 FROM tab0 AS cor0 ---- -721 -7218 38 skipif mysql # not compatible query I rowsort label-2822 SELECT - - col0 / + 7 + 68 - - col2 * - col0 FROM tab0 AS cor0 ---- -721 -7218 38 query I rowsort SELECT + col0 * - 18 * ( + col0 * ( col2 ) ) - col1 FROM tab2 AS cor0 ---- -23845 -2847371 -4268861 query I rowsort SELECT + col1 + - 51 * + col1 AS col0 FROM tab1 AS cor0 ---- -1300 -500 -650 query I rowsort SELECT cor0.col1 * - col0 * + 51 - - col2 AS col2 FROM tab2 AS cor0 ---- -11040 -234676 -68455 onlyif mysql # use DIV operator for integer division query I rowsort label-2826 SELECT - col1 + col2 DIV - cor0.col1 - - col0 FROM tab0 AS cor0 ---- -2 -62 -62 skipif mysql # not compatible query I rowsort label-2826 SELECT - col1 + col2 / - cor0.col1 - - col0 FROM tab0 AS cor0 ---- -2 -62 -62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2827 SELECT - cor0.col1 + + 18 * col2 / + cor0.col2 - - ( + 26 ) * col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2827 SELECT - cor0.col1 + + 18 * col2 / + cor0.col2 - - ( + 26 ) * col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2828 SELECT - col2 * + ( + col2 * - col1 ) + CAST( - col0 AS SIGNED ) col2 FROM tab0 cor0 ---- 611795 62 93630 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2828 SELECT - col2 * + ( + col2 * - col1 ) + CAST ( - col0 AS INTEGER ) col2 FROM tab0 cor0 ---- 611795 62 93630 onlyif mysql # use DIV operator for integer division query I rowsort label-2829 SELECT cor0.col2 DIV 78 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 skipif mysql # not compatible query I rowsort label-2829 SELECT cor0.col2 / 78 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT DISTINCT - col2 * + 43 + 29 AS col0 FROM tab2 cor0 ---- -1089 -1132 -1605 onlyif mysql # use DIV operator for integer division query I rowsort label-2831 SELECT ALL 40 DIV cor0.col0 FROM tab0 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-2831 SELECT ALL 40 / cor0.col0 FROM tab0 AS cor0 ---- 0 1 1 query I rowsort SELECT - - cor0.col2 + - col0 AS col2 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT + ( - 7 ) * - col0 FROM tab0 AS cor0 ---- 168 245 623 query I rowsort SELECT DISTINCT 1 * 1 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT + - 8 * - col2 * col0 + col0 AS col0 FROM tab2 AS cor0 ---- 1519 16302 24095 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 + - ( - col1 ) * 49 col0 FROM tab0 AS cor0 ---- 4128 4368 4656 query I rowsort SELECT + + cor0.col2 - col1 * - col2 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 onlyif mysql # use DIV operator for integer division query I rowsort label-2838 SELECT DISTINCT + 1 * + ( + col0 ) DIV col1 + - 56 + col1 * + col1 AS col1 FROM tab0 AS cor0 ---- 7340 8225 9353 skipif mysql # not compatible query I rowsort label-2838 SELECT DISTINCT + 1 * + ( + col0 ) / col1 + - 56 + col1 * + col1 AS col1 FROM tab0 AS cor0 ---- 7340 8225 9353 onlyif mysql # use DIV operator for integer division query I rowsort label-2839 SELECT 1 + - ( col0 + + col1 ) DIV col0 FROM tab2 AS cor0 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-2839 SELECT 1 + - ( col0 + + col1 ) / col0 FROM tab2 AS cor0 ---- -4 0 0 query I rowsort SELECT + 34 * - 36 - col0 AS col1 FROM tab2 AS cor0 ---- -1231 -1302 -1303 query I rowsort SELECT + col0 + + col0 - col2 AS col2 FROM tab1 AS cor0 ---- -48 64 71 query I rowsort SELECT ALL + + ( 49 ) FROM tab2 AS cor0 ---- 49 49 49 onlyif mysql # use DIV operator for integer division query I rowsort label-2843 SELECT + ( + col2 ) + cor0.col0 DIV - col0 FROM tab0 cor0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-2843 SELECT + ( + col2 ) + cor0.col0 / - col0 FROM tab0 cor0 ---- 0 32 81 query I rowsort SELECT DISTINCT + 33 + + col0 AS col2 FROM tab2 AS cor0 ---- 111 112 40 query I rowsort SELECT DISTINCT 82 * col0 FROM tab2 AS cor0 ---- 574 6396 6478 query I rowsort SELECT - col2 - + ( - col0 ) FROM tab1 cor0 ---- -16 -51 7 query I rowsort SELECT DISTINCT + ( + col1 ) * ( + 62 ) + col1 + - col1 AS col1 FROM tab0 AS cor0 ---- 5332 5642 6014 query I rowsort SELECT col1 + col1 * + col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT ALL + 96 * + col1 + ( - col1 ) FROM tab1 AS cor0 ---- 1235 2470 950 query I rowsort SELECT DISTINCT col2 * col0 + 83 * - col1 AS col1 FROM tab1 AS cor0 ---- -1996 2818 6601 query I rowsort SELECT ALL - col1 + col1 * 14 AS col2 FROM tab1 AS cor0 ---- 130 169 338 query I rowsort SELECT + 12 * col2 AS col0 FROM tab1 AS cor0 ---- 1152 648 684 query I rowsort SELECT ALL + col2 * - col1 + 15 + + 73 * - col1 AS col0 FROM tab0 AS cor0 ---- -14090 -7163 -9101 onlyif mysql # use DIV operator for integer division query I rowsort label-2854 SELECT + col0 + col2 DIV - 47 FROM tab0 AS cor0 ---- 24 35 88 skipif mysql # not compatible query I rowsort label-2854 SELECT + col0 + col2 / - 47 FROM tab0 AS cor0 ---- 24 35 88 query I rowsort SELECT ALL - + 56 + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0 ---- -4152 -6456 -65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2856 SELECT DISTINCT - + cor0.col1 * + col2 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2856 SELECT DISTINCT - + cor0.col1 * + col2 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - col2 * + col0 * 0 - 21 FROM tab1 AS cor0 ---- -21 query I rowsort SELECT ALL - + col0 + + col0 + + col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + col1 * col1 - col2 * + col1 * + col2 FROM tab1 ---- -119639 -32390 -75140 query I rowsort SELECT - col2 * col0 + + col1 AS col0 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT - cor1.col1 * - 28 + - 56 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to b9fded04cd80ef12cbb2a2d445893852 query I rowsort SELECT + 17 + col2 AS col0 FROM tab2 AS cor0 ---- 43 44 55 query I rowsort SELECT DISTINCT - + 2 FROM tab2 AS cor0 ---- -2 query I rowsort SELECT ALL - - ( col1 ) + col0 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # use DIV operator for integer division query I rowsort label-2865 SELECT DISTINCT - + col2 + col1 DIV + col1 AS col1 FROM tab1 AS cor0 ---- -53 -56 -95 skipif mysql # not compatible query I rowsort label-2865 SELECT DISTINCT - + col2 + col1 / + col1 AS col1 FROM tab1 AS cor0 ---- -53 -56 -95 query I rowsort SELECT col2 + col0 * col1 AS col1 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT - + col2 * - col1 + + 24 AS col1 FROM tab2 AS cor0 ---- 1558 670 861 query I rowsort SELECT + 85 + + col0 * cor0.col2 + col0 * + col0 AS col0 FROM tab0 AS cor0 ---- 1345 1453 15304 query I rowsort SELECT DISTINCT 57 + + col0 * col2 FROM tab0 AS cor0 ---- 7355 849 92 query I rowsort SELECT ALL + + cor0.col0 * col0 FROM tab1 cor0 ---- 4096 6400 9 onlyif mysql # use DIV operator for integer division query I rowsort label-2871 SELECT - col0 DIV - 5 + col2 FROM tab0 ---- 37 8 99 skipif mysql # not compatible query I rowsort label-2871 SELECT - col0 / - 5 + col2 FROM tab0 ---- 37 8 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2872 SELECT DISTINCT - CAST( NULL AS SIGNED ) + 49 AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-2872 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 49 AS col0 FROM tab1 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2873 SELECT DISTINCT - col0 * - col2 + col2 * col0 DIV - col2 AS col1 FROM tab1 ---- 159 3584 7600 skipif mysql # not compatible query I rowsort label-2873 SELECT DISTINCT - col0 * - col2 + col2 * col0 / - col2 AS col1 FROM tab1 ---- 159 3584 7600 query I rowsort SELECT 76 * 44 + col0 AS col2 FROM tab0 ---- 3368 3379 3433 query I rowsort SELECT - cor0.col0 * + col1 + + 55 AS col1 FROM tab2 AS cor0 ---- -1288 -162 -4547 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( + col2 ) col1 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT + - col1 * + col1 - col1 AS col0 FROM tab1 AS cor0 ---- -110 -182 -702 query I rowsort SELECT DISTINCT col1 * - ( col2 ) + col2 AS col2 FROM tab1 cor0 ---- -1152 -1350 -513 query I rowsort SELECT - col0 * + ( 10 ) + col2 AS col2 FROM tab2 AS cor0 ---- -43 -752 -754 query I rowsort SELECT col0 + col0 * col2 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT ALL + col0 + - 81 FROM tab2 AS cor0 ---- -2 -3 -74 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2882 SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2882 SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT col2 - 36 AS col2 FROM tab2 AS cor0 ---- -10 -9 2 query I rowsort SELECT ALL + col0 + - 99 * + col1 * cor0.col2 FROM tab1 AS cor0 ---- -123472 -138993 -56366 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * + 93 + + ( - cor0.col0 ) col0 FROM tab1 AS cor0 ---- 1129 2415 866 query I rowsort SELECT DISTINCT + - 70 FROM tab1, tab0, tab0 AS cor0 ---- -70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2887 SELECT - - col0 * CAST( + col2 AS SIGNED ) + col0 * ( 59 ) FROM tab2 AS cor0 ---- 602 6630 7663 skipif mysql # not compatible query I rowsort label-2887 SELECT - - col0 * CAST ( + col2 AS INTEGER ) + col0 * ( 59 ) FROM tab2 AS cor0 ---- 602 6630 7663 query I rowsort SELECT DISTINCT + col0 * ( 10 ) * + col0 + 35 * - col0 AS col1 FROM tab1 cor0 ---- -15 38720 61200 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 + - col1 * - col0 col2 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT ALL col2 - ( 82 ) AS col1 FROM tab2 AS cor0 ---- -44 -55 -56 query I rowsort SELECT col0 - + col0 * col0 AS col2 FROM tab0 cor0 ---- -1190 -552 -7832 query I rowsort SELECT ALL - col2 * col0 + - tab2.col1 AS col0 FROM tab2 ---- -2087 -220 -3019 query I rowsort SELECT + 41 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e query I rowsort SELECT DISTINCT + col1 + 90 FROM tab1 ---- 100 103 116 query I rowsort SELECT + col2 * + 39 + - col1 AS col0 FROM tab1 AS cor0 ---- 2080 2213 3731 query I rowsort SELECT + col1 * col2 + + col2 AS col1 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT ALL col0 * - 82 FROM tab2 ---- -574 -6396 -6478 query I rowsort SELECT 97 * col0 + col0 FROM tab0 cor0 ---- 2352 3430 8722 skipif mysql # not compatible query I rowsort SELECT col1 * - CAST ( ( col0 ) AS REAL ) FROM tab1 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + - col2 col0 FROM tab2 ---- -52 -54 -76 query I rowsort SELECT col2 + col1 - cor0.col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT col0 * 32 AS col0 FROM tab1 ---- 2048 2560 96 query I rowsort SELECT ALL 63 AS col1 FROM tab0, tab0 cor0 CROSS JOIN tab2, tab2 AS cor1 ---- 81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd query I rowsort SELECT - 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 1b7b0b34fe3431fb409719624d12791f query I rowsort SELECT - col0 + 99 * 63 FROM tab1 AS cor0 ---- 6157 6173 6234 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2906 SELECT + col1 + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2906 SELECT + col1 + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL + cor0.col0 * 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 8b1fcb6f28f7a795bf23d40c34081488 query I rowsort SELECT - col0 * col1 * 54 FROM tab0 cor0 ---- -111456 -183330 -437346 onlyif mysql # use DIV operator for integer division query I rowsort label-2909 SELECT - 40 DIV + col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2909 SELECT - 40 / + col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * - col2 + + tab1.col2 FROM tab1 ---- -1152 -1350 -513 query I rowsort SELECT DISTINCT col2 * - 49 AS col0 FROM tab0 ---- -1617 -4018 -49 query I rowsort SELECT DISTINCT col2 * + 46 - + 54 AS col1 FROM tab0 AS cor0 ---- -8 1464 3718 query I rowsort SELECT + - cor0.col0 * ( col0 ) AS col2 FROM tab0 cor0 ---- -1225 -576 -7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2914 SELECT - - col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2914 SELECT - - col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2915 SELECT - + 21 DIV col1 AS col0 FROM tab2 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-2915 SELECT - + 21 / col1 AS col0 FROM tab2 AS cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2916 SELECT DISTINCT 39 DIV - col0 - - col1 FROM tab2 ---- 17 26 59 skipif mysql # not compatible query I rowsort label-2916 SELECT DISTINCT 39 / - col0 - - col1 FROM tab2 ---- 17 26 59 onlyif mysql # use DIV operator for integer division query I rowsort label-2917 SELECT 4 DIV col2 - CAST( - ( col2 ) AS SIGNED ) FROM tab0 ---- 33 5 82 skipif mysql # not compatible query I rowsort label-2917 SELECT 4 / col2 - CAST ( - ( col2 ) AS INTEGER ) FROM tab0 ---- 33 5 82 onlyif mysql # use DIV operator for integer division query I rowsort label-2918 SELECT DISTINCT - - col2 * - col2 DIV - col2 + + ( + col2 * 31 ) AS col2 FROM tab0 AS cor0 ---- 1056 2624 32 skipif mysql # not compatible query I rowsort label-2918 SELECT DISTINCT - - col2 * - col2 / - col2 + + ( + col2 * 31 ) AS col2 FROM tab0 AS cor0 ---- 1056 2624 32 query I rowsort SELECT DISTINCT - 90 * col0 + + ( col1 ) FROM tab2 AS cor0 ---- -599 -6961 -7093 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 68 * col2 + col2 * - col2 col2 FROM tab0 cor0 ---- -1148 1155 67 query I rowsort SELECT ALL + col0 * cor0.col1 - col1 AS col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT - col2 * 63 + - col1 FROM tab0 AS cor0 ---- -160 -2165 -5257 query I rowsort SELECT ALL cor0.col1 + ( col1 ) AS col0 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT + col1 * + col0 + 97 AS col2 FROM tab1 AS cor0 ---- 1137 175 737 query I rowsort SELECT DISTINCT - col2 + + 1 FROM tab0 AS cor0 ---- -32 -81 0 query I rowsort SELECT ALL - - col2 * 78 FROM tab0 AS cor0 ---- 2574 6396 78 query I rowsort SELECT ALL ( + col2 ) * + col2 + - col2 AS col1 FROM tab2 AS cor0 ---- 1406 650 702 query I rowsort SELECT ALL - + 60 * + 53 FROM tab1 cor0 ---- -3180 -3180 -3180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2929 SELECT ALL CAST( col0 + + col1 AS SIGNED ) FROM tab0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-2929 SELECT ALL CAST ( col0 + + col1 AS INTEGER ) FROM tab0 ---- 110 132 180 query I rowsort SELECT DISTINCT ( col1 + col0 ) AS col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL + + 34 FROM tab0 AS cor0 ---- 34 34 34 onlyif mysql # use DIV operator for integer division query I rowsort label-2932 SELECT DISTINCT col0 + col1 DIV col1 FROM tab1 AS cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-2932 SELECT DISTINCT col0 + col1 / col1 FROM tab1 AS cor0 ---- 4 65 81 query I rowsort SELECT ALL + 18 * + col1 AS col0 FROM tab1 AS cor0 ---- 180 234 468 query I rowsort SELECT DISTINCT ( 99 ) FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2935 SELECT CAST( 5 AS SIGNED ) AS col1 FROM tab0 ---- 5 5 5 skipif mysql # not compatible query I rowsort label-2935 SELECT CAST ( 5 AS INTEGER ) AS col1 FROM tab0 ---- 5 5 5 query I rowsort SELECT ALL + tab2.col1 * 87 FROM tab2 ---- 1479 2697 5133 query I rowsort SELECT 80 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 6dd5038be71dffa82f5ceba787caab91 query I rowsort SELECT ALL 78 * - col0 AS col0 FROM tab1 AS cor0 ---- -234 -4992 -6240 query I rowsort SELECT ALL + - 27 - - cor0.col2 AS col2 FROM tab1 cor0 ---- 27 30 69 query I rowsort SELECT DISTINCT - col0 * cor0.col0 * cor0.col1 FROM tab1 cor0 ---- -234 -40960 -83200 query I rowsort SELECT tab0.col1 * + 8 * + 93 FROM tab0 ---- 63984 67704 72168 query I rowsort SELECT col0 * - 89 AS col2 FROM tab1 ---- -267 -5696 -7120 query I rowsort SELECT DISTINCT + col0 * + ( - col1 ) + + col2 AS col2 FROM tab2 ---- -1305 -190 -4576 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + tab1.col1 * + col0 + - col2 col0 FROM tab1 ---- -2 573 931 onlyif mysql # use DIV operator for integer division query I rowsort label-2945 SELECT DISTINCT + col0 DIV 25 + - tab2.col0 FROM tab2 ---- -7 -75 -76 skipif mysql # not compatible query I rowsort label-2945 SELECT DISTINCT + col0 / 25 + - tab2.col0 FROM tab2 ---- -7 -75 -76 query I rowsort SELECT - cor0.col1 * cor0.col1 + 25 FROM tab1 AS cor0 ---- -144 -651 -75 query I rowsort SELECT + 88 * - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -1496 -2728 -5192 query I rowsort SELECT DISTINCT ( - 88 ) FROM tab2 AS cor0 ---- -88 query I rowsort SELECT DISTINCT + col2 * + col2 * col1 AS col0 FROM tab2 ---- 22599 24548 39884 onlyif mysql # use DIV operator for integer division query I rowsort label-2950 SELECT - - col2 DIV + col2 + cor0.col1 FROM tab0 AS cor0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-2950 SELECT - - col2 / + col2 + cor0.col1 FROM tab0 AS cor0 ---- 87 92 98 query I rowsort SELECT DISTINCT - col2 + + ( - col0 ) FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT DISTINCT - ( col2 ) * - col0 AS col1 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT + + col0 + col1 * + col1 + + ( col2 ) AS col0 FROM tab1 AS cor0 ---- 221 345 733 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2954 SELECT CAST( 99 AS SIGNED ) * - col1 + - col1 + + 91 AS col2 FROM tab0 AS cor0 ---- -8509 -9009 -9609 skipif mysql # not compatible query I rowsort label-2954 SELECT CAST ( 99 AS INTEGER ) * - col1 + - col1 + + 91 AS col2 FROM tab0 AS cor0 ---- -8509 -9009 -9609 query I rowsort SELECT ALL + + ( 40 ) FROM tab0 AS cor0 ---- 40 40 40 query I rowsort SELECT ALL - col0 + + cor0.col1 * col1 AS col1 FROM tab1 AS cor0 ---- 36 673 89 query I rowsort SELECT + + cor0.col1 * - 90 FROM tab0 AS cor0 ---- -7740 -8190 -8730 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2958 SELECT ALL - + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-2958 SELECT ALL - + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT col0 * col2 + + col0 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ALL + col1 * tab2.col1 * - col1 FROM tab2 ---- -205379 -29791 -4913 query I rowsort SELECT ALL col0 AS col2 FROM tab1 WHERE NOT - col1 + col0 >= col1 + - col1 * col0 ---- query III rowsort SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col2 * col0 ) ---- query I rowsort SELECT ALL - tab1.col1 * col0 FROM tab1 WHERE NULL IN ( + col1 / + col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col2 + + col0 col1 FROM tab2 ---- 196 2106 3081 query III rowsort SELECT * FROM tab2 WHERE NOT col1 + + col2 * - col2 BETWEEN ( NULL ) AND ( NULL ) ---- query I rowsort SELECT DISTINCT col1 - tab1.col2 AS col0 FROM tab1 ---- -28 -47 -83 query IIIIII rowsort SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL IN ( - cor0.col2 * cor0.col1 ) ---- query I rowsort SELECT ALL + col1 * - tab0.col0 * col1 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT ALL col0 * + col2 + col1 AS col1 FROM tab0 ---- 132 7389 878 query I rowsort SELECT tab1.col2 * tab1.col0 + + col0 AS col2 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT col0 AS col0 FROM tab2 WHERE NOT - col0 >= - col2 - col1 ---- 79 query III rowsort SELECT * FROM tab2 WHERE NOT ( col0 * col1 ) < NULL ---- query I rowsort SELECT DISTINCT col0 + + col2 - - tab0.col0 * col2 * + col1 AS col1 FROM tab0 ---- 3431 664289 68169 query I rowsort SELECT col2 + - col1 * - col0 + - col2 AS col1 FROM tab1 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-2975 SELECT ALL tab1.col1 DIV col2 col1 FROM tab1 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2975 SELECT ALL tab1.col1 / col2 col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT - tab0.col2 * col2 AS col1 FROM tab0 WHERE col1 + - col1 * + col1 = NULL ---- query I rowsort SELECT + col2 * col2 + + tab2.col1 AS col1 FROM tab2 ---- 1461 735 760 query III rowsort SELECT * FROM tab1 WHERE NOT - col1 BETWEEN col0 + col0 + tab1.col1 * + col0 AND + col2 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT tab1.col0 + col0 * col2 AS col2 FROM tab1 ---- 165 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + col1 - + col2 col1 FROM tab2 ---- 11 111 58 onlyif mysql # use DIV operator for integer division query I rowsort label-2981 SELECT DISTINCT - col1 * col0 DIV - col0 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-2981 SELECT DISTINCT - col1 * col0 / - col0 FROM tab1 ---- 10 13 26 query I rowsort SELECT ALL + col2 - col1 AS col2 FROM tab1 cor0 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-2983 SELECT DISTINCT col2 DIV - col1 + col2 * + col2 * - cor0.col0 FROM tab1 AS cor0 ---- -207941 -737287 -8750 skipif mysql # not compatible query I rowsort label-2983 SELECT DISTINCT col2 / - col1 + col2 * + col2 * - cor0.col0 FROM tab1 AS cor0 ---- -207941 -737287 -8750 query I rowsort SELECT DISTINCT + col0 * - cor0.col2 + cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -2713 1453 772 query I rowsort SELECT DISTINCT col1 * col2 + + col0 FROM tab2 cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT cor0.col2 * + col0 + - col2 * col0 FROM tab2 cor0 ---- 0 query I rowsort SELECT DISTINCT + col1 * - col1 * col1 + col1 * col1 * - col2 FROM tab1 AS cor0 ---- -18421 -54080 -6700 query I rowsort SELECT DISTINCT + cor0.col0 + col1 * col1 AS col2 FROM tab1 cor0 ---- 164 249 679 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 = NULL OR NOT NULL IN ( + cor0.col1 ) ---- query I rowsort SELECT col1 + col0 * - cor0.col1 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT col1 - - col0 * tab0.col2 AS col2 FROM tab0 ---- 132 7389 878 query I rowsort SELECT cor0.col1 * tab2.col2 + + tab2.col0 FROM tab1 AS cor0 CROSS JOIN tab2 ---- 9 values hashing to 6d7e07b2d67597bb8d2b1dcd0ce6c77b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * cor0.col1 + col2 * col2 col0 FROM tab2 cor0 ---- -108 -858 798 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2994 SELECT + - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2994 SELECT + - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT cor0.col0 * tab1.col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to eb103eabe531563e672e54874d056f9f query I rowsort SELECT col0 + - 99 FROM tab2 AS cor0 ---- -20 -21 -92 query I rowsort SELECT - col1 - - col1 * - col1 AS col2 FROM tab2 AS cor0 ---- -306 -3540 -992 query I rowsort SELECT col2 * + col0 - col1 * col1 FROM tab1 AS cor0 ---- -514 3548 7511 query I rowsort SELECT ALL - 36 * - 77 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to c1d519f0a3631b295b4b843342b2e378 query I rowsort SELECT + col2 + col2 * 26 AS col1 FROM tab0 AS cor0 ---- 2214 27 891 query I rowsort SELECT ALL col2 + col0 AS col1 FROM tab1 WHERE NOT ( NULL ) >= col1 ---- query I rowsort SELECT col0 + - col0 * col0 + col1 AS col2 FROM tab0 ---- -1093 -466 -7741 query I rowsort SELECT DISTINCT col2 - - col1 AS col1 FROM tab2 ---- 55 58 85 query I rowsort SELECT col1 + col2 * - col2 FROM tab1 ---- -2890 -3239 -9203 query I rowsort SELECT col1 - - tab0.col2 * col1 * col0 AS col2 FROM tab0 WHERE NOT ( NULL ) >= col2 ---- query I rowsort SELECT + col1 * + col0 * tab2.col2 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT col1 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( col2 ) ---- query I rowsort SELECT - col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2 * - col2 * - col1 ) ---- query I rowsort SELECT DISTINCT 22 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 22 query I rowsort SELECT DISTINCT cor1.col2 FROM tab0, tab1, tab0 AS cor0, tab2 AS cor1 ---- 26 27 38 query I rowsort SELECT DISTINCT - col2 + col0 * + col1 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 13424 1974 6343 query I rowsort SELECT + 82 * col2 FROM tab0 AS cor0 ---- 2706 6724 82 query I rowsort SELECT ALL - 20 AS col0 FROM tab0 AS cor0 ---- -20 -20 -20 query I rowsort SELECT - 65 * col0 + col2 + col1 AS col2 FROM tab1 AS cor0 ---- -115 -4093 -5091 query I rowsort SELECT ALL - col0 * + cor0.col2 + - 72 * col2 FROM tab1 cor0 ---- -14592 -4050 -7752 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 48 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2558735eaa258a08592aef9d33020c18 query I rowsort SELECT ALL - col1 * + 36 FROM tab0 ---- -3096 -3276 -3492 query I rowsort SELECT DISTINCT + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 24 35 89 query I rowsort SELECT DISTINCT + col2 * - 85 AS col1 FROM tab0 AS cor0 ---- -2805 -6970 -85 query I rowsort SELECT ALL + ( + cor0.col2 ) * col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL - 18 + 78 AS col0 FROM tab0 AS cor0 ---- 60 60 60 query I rowsort SELECT DISTINCT cor0.col2 + col1 * cor0.col0 FROM tab1 cor0 ---- 1136 132 697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col1 col2 FROM tab2 ---- -289 -3481 -961 onlyif mysql # use DIV operator for integer division query I rowsort label-3024 SELECT 97 DIV + col0 + 48 * col2 * - col2 AS col0 FROM tab2 ---- -32447 -34979 -69311 skipif mysql # not compatible query I rowsort label-3024 SELECT 97 / + col0 + 48 * col2 * - col2 AS col0 FROM tab2 ---- -32447 -34979 -69311 query I rowsort SELECT col2 * + col0 - col0 * col2 FROM tab2 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3026 SELECT DISTINCT 28 * col0 / + CAST( NULL AS SIGNED ) + tab0.col0 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-3026 SELECT DISTINCT 28 * col0 / + CAST ( NULL AS INTEGER ) + tab0.col0 FROM tab0 ---- NULL query I rowsort SELECT + + 23 + + col2 FROM tab0 AS cor0 ---- 105 24 56 query I rowsort SELECT DISTINCT col1 * - col2 * 7 AS col2 FROM tab0 AS cor0 ---- -19866 -52234 -679 query I rowsort SELECT DISTINCT + + col1 * 40 FROM tab2 AS cor0 ---- 1240 2360 680 query I rowsort SELECT ALL + col1 + 91 * + col2 AS col2 FROM tab2 AS cor0 ---- 2425 2488 3475 query I rowsort SELECT - - col2 * + ( col1 * + col2 ) AS col2 FROM tab0 cor0 ---- 611884 93654 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 * + ( ( cor0.col2 ) ) col0 FROM tab2 cor0 ---- -1444 -676 -729 query I rowsort SELECT + tab1.col0 + cor0.col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to af3a539c18b07c0d2d3147e1b73e81ac query I rowsort SELECT - + col2 * col2 * col1 AS col2 FROM tab0 cor0 ---- -611884 -93654 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + + col0 col2 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT col1 * + col2 + - col0 AS col2 FROM tab0 ---- 2814 62 7373 query I rowsort SELECT DISTINCT - cor0.col1 - + col1 FROM tab1 cor0 ---- -20 -26 -52 query I rowsort SELECT - col2 + - cor0.col0 AS col1 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT DISTINCT - + col2 * col1 - col0 * + col2 AS col2 FROM tab0 AS cor0 ---- -132 -14760 -3630 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + col1 col2 FROM tab1 cor0 ---- 20 26 52 query I rowsort SELECT - col1 - - col0 * tab2.col1 FROM tab2 ---- 1326 186 4543 onlyif mysql # use DIV operator for integer division query I rowsort label-3042 SELECT col2 + + tab2.col2 DIV + col1 AS col2 FROM tab2 ---- 26 27 40 skipif mysql # not compatible query I rowsort label-3042 SELECT col2 + + tab2.col2 / + col1 AS col2 FROM tab2 ---- 26 27 40 onlyif mysql # use DIV operator for integer division query I rowsort label-3043 SELECT - col1 - col0 DIV - col0 AS col2 FROM tab2 ---- -16 -30 -58 skipif mysql # not compatible query I rowsort label-3043 SELECT - col1 - col0 / - col0 AS col2 FROM tab2 ---- -16 -30 -58 query I rowsort SELECT + col2 * col2 + + col1 * + col0 FROM tab2 ---- 2787 5278 946 query I rowsort SELECT DISTINCT col0 * col2 + col1 * col2 AS col2 FROM tab0 AS cor0 ---- 132 14760 3630 query I rowsort SELECT ALL + - col2 * col1 * cor0.col2 - + col2 FROM tab1 AS cor0 ---- -119904 -32547 -75870 query I rowsort SELECT DISTINCT + cor0.col1 * col0 - - col0 FROM tab2 cor0 ---- 1422 224 4680 query I rowsort SELECT + 59 * + col1 + col2 AS col0 FROM tab1 AS cor0 ---- 1588 647 863 query I rowsort SELECT DISTINCT col1 + col2 * cor0.col1 AS col1 FROM tab0 cor0 ---- 194 2924 7553 query I rowsort SELECT + + cor0.col0 * - col2 + - col1 AS col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT + - 72 * - col2 + col2 FROM tab2 AS cor0 ---- 1898 1971 2774 query I rowsort SELECT ALL - - col2 - + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-3053 SELECT ALL + col1 DIV + col0 - - col0 FROM tab2 AS cor0 ---- 11 78 79 skipif mysql # not compatible query I rowsort label-3053 SELECT ALL + col1 / + col0 - - col0 FROM tab2 AS cor0 ---- 11 78 79 query I rowsort SELECT - 8 + col2 AS col1 FROM tab1 cor0 ---- 46 49 88 onlyif mysql # use DIV operator for integer division query I rowsort label-3055 SELECT col1 * - col2 * col0 + - col1 DIV col0 - col0 FROM tab0 ---- -3432 -664208 -68139 skipif mysql # not compatible query I rowsort label-3055 SELECT col1 * - col2 * col0 + - col1 / col0 - col0 FROM tab0 ---- -3432 -664208 -68139 query I rowsort SELECT + ( - col0 ) + col1 FROM tab0 ---- 2 62 62 query I rowsort SELECT 20 * 5 AS col0 FROM tab0 ---- 100 100 100 query I rowsort SELECT ALL + col1 * + ( col1 ) - - col1 AS col2 FROM tab0 ---- 7482 8372 9506 query I rowsort SELECT ALL + ( + col0 ) + tab1.col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT ALL + 54 + - tab0.col1 FROM tab0 ---- -32 -37 -43 query I rowsort SELECT ALL - ( col2 ) * + col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-3062 SELECT - + col0 + col0 * cor0.col1 DIV cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3062 SELECT - + col0 + col0 * cor0.col1 / cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL 77 + col0 FROM tab1 AS cor0 ---- 141 157 80 onlyif mysql # use DIV operator for integer division query I rowsort label-3064 SELECT ALL ( - col1 ) DIV - col1 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3064 SELECT ALL ( - col1 ) / - col1 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT - col2 * col1 + - col2 AS col2 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT ALL - - col2 * - col1 FROM tab1 cor0 ---- -1248 -1404 -570 onlyif mysql # use DIV operator for integer division query I rowsort label-3067 SELECT ALL col2 DIV col0 + - col2 AS col2 FROM tab0 AS cor0 ---- -1 -32 -82 skipif mysql # not compatible query I rowsort label-3067 SELECT ALL col2 / col0 + - col2 AS col2 FROM tab0 AS cor0 ---- -1 -32 -82 query I rowsort SELECT DISTINCT - ( tab1.col0 ) * col0 AS col0 FROM tab1 ---- -4096 -6400 -9 query I rowsort SELECT - 12 * - col1 FROM tab2 cor0 ---- 204 372 708 query I rowsort SELECT DISTINCT 53 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 53 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 6 * + tab2.col2 * + 77 col1 FROM tab2 ---- 12012 12474 17556 query I rowsort SELECT DISTINCT - col2 * - col0 + 24 + ( col1 * 70 ) FROM tab1 ---- 2006 4372 8614 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 col1 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT + col1 - + 75 AS col2 FROM tab0 AS cor0 ---- 11 16 22 query I rowsort SELECT ALL - tab0.col1 + col1 * + ( tab0.col1 ) + + col2 * - 8 FROM tab0 ---- 7046 7534 9304 query I rowsort SELECT DISTINCT - col2 * 26 * col1 + col0 FROM tab0 ---- -193923 -2487 -73764 query I rowsort SELECT - cor0.col2 + - ( - col2 ) AS col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3078 SELECT col1 * - CAST( + col1 AS SIGNED ) + + col1 AS col1 FROM tab2 ---- -272 -3422 -930 skipif mysql # not compatible query I rowsort label-3078 SELECT col1 * - CAST ( + col1 AS INTEGER ) + + col1 AS col1 FROM tab2 ---- -272 -3422 -930 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * col2 * - col1 col2 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT ALL 63 AS col1 FROM tab0, tab2 cor0 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 query I rowsort SELECT ALL + - 15 * - col1 FROM tab0 AS cor0 ---- 1290 1365 1455 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3082 SELECT - - CAST( + ( + col1 ) AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0 ---- 7396 8281 9409 skipif mysql # not compatible query I rowsort label-3082 SELECT - - CAST ( + ( + col1 ) AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0 ---- 7396 8281 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-3083 SELECT DISTINCT - col0 DIV - 2 FROM tab1 AS cor0 ---- 1 32 40 skipif mysql # not compatible query I rowsort label-3083 SELECT DISTINCT - col0 / - 2 FROM tab1 AS cor0 ---- 1 32 40 query I rowsort SELECT - - ( + col1 ) + col1 * + col0 * col2 AS col2 FROM tab0 AS cor0 ---- 3492 664209 68198 query I rowsort SELECT ALL + - 28 * + col0 + - col2 AS col0 FROM tab2 AS cor0 ---- -2210 -223 -2250 query I rowsort SELECT DISTINCT + 24 + col0 AS col2 FROM tab0 AS cor0 ---- 113 48 59 query I rowsort SELECT DISTINCT + 27 - - 69 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- 510 5409 5478 query I rowsort SELECT DISTINCT ( tab1.col2 ) AS col2 FROM tab2, tab0, tab2 AS cor0, tab1 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-3089 SELECT ALL 94 DIV + col2 AS col2 FROM tab1 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-3089 SELECT ALL 94 / + col2 AS col2 FROM tab1 ---- 0 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-3090 SELECT col1 DIV - col2 AS col2 FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3090 SELECT col1 / - col2 AS col2 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3091 SELECT + ( - col1 ) DIV - cor0.col0 + - col1 + col2 DIV col0 FROM tab0 AS cor0 ---- -82 -90 -95 skipif mysql # not compatible query I rowsort label-3091 SELECT + ( - col1 ) / - cor0.col0 + - col1 + col2 / col0 FROM tab0 AS cor0 ---- -82 -90 -95 query I rowsort SELECT ALL - 26 + - 42 * - col1 FROM tab2 ---- 1276 2452 688 query I rowsort SELECT + - 94 FROM tab2 cor0 ---- -94 -94 -94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 * + col0 col1 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT DISTINCT + 26 FROM tab2, tab0 cor0 ---- 26 query I rowsort SELECT + + 61 * col2 FROM tab1 AS cor0 ---- 3294 3477 5856 query I rowsort SELECT - col1 * - col2 * col2 AS col0 FROM tab2 AS cor0 ---- 22599 24548 39884 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * col0 + - col1 * col0 + - col2 col2 FROM tab2 cor0 ---- -195 1456 4860 query I rowsort SELECT - col0 + - 61 + + col2 * col0 FROM tab0 AS cor0 ---- -61 707 7148 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3100 SELECT col1 * - CAST( 71 AS SIGNED ) AS col1 FROM tab0 ---- -6106 -6461 -6887 skipif mysql # not compatible query I rowsort label-3100 SELECT col1 * - CAST ( 71 AS INTEGER ) AS col1 FROM tab0 ---- -6106 -6461 -6887 query I rowsort SELECT + col2 * ( ( col2 ) ) FROM tab0 ---- 1 1089 6724 query I rowsort SELECT + cor0.col0 * - col2 + + cor0.col1 FROM tab2 cor0 ---- -158 -1969 -2985 query I rowsort SELECT - col0 * col1 + + col2 + col2 FROM tab1 AS cor0 ---- -526 -848 30 query I rowsort SELECT - + cor0.col2 * ( col0 * - col0 ) + col1 + col2 * col2 FROM tab1 cor0 ---- 236731 3428 623629 query I rowsort SELECT 39 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf query I rowsort SELECT - col0 + 75 + - col1 AS col1 FROM tab1 AS cor0 ---- -18 1 46 query I rowsort SELECT ALL col1 + - 77 FROM tab1 AS cor0 ---- -51 -64 -67 query I rowsort SELECT ALL + col2 * - col1 * cor0.col0 + + col0 FROM tab2 AS cor0 ---- -119574 -50955 -5852 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3109 SELECT DISTINCT col0 * - CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3109 SELECT DISTINCT col0 * - CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + col0 * ( col1 ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-3111 SELECT ALL - col2 * + col1 * 91 + col2 DIV - col1 + - col2 AS col1 FROM tab0 AS cor0 ---- -258291 -679124 -8828 skipif mysql # not compatible query I rowsort label-3111 SELECT ALL - col2 * + col1 * 91 + col2 / - col1 + - col2 AS col1 FROM tab0 AS cor0 ---- -258291 -679124 -8828 query I rowsort SELECT DISTINCT + + col1 + + ( - col1 ) * cor0.col1 + cor0.col1 * col2 FROM tab1 AS cor0 ---- 1092 480 754 query I rowsort SELECT DISTINCT - col2 + col1 + col0 FROM tab2 AS cor0 ---- 11 111 58 query I rowsort SELECT col0 + - col0 - - ( - col1 ) AS col0 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT + + 30 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1 ---- 81 values hashing to 1ae25494a21836bac07879aa19fd4615 onlyif mysql # use DIV operator for integer division query I rowsort label-3116 SELECT ALL col0 - col2 * ( + col1 ) DIV cor0.col0 FROM tab0 AS cor0 ---- -94 33 6 skipif mysql # not compatible query I rowsort label-3116 SELECT ALL col0 - col2 * ( + col1 ) / cor0.col0 FROM tab0 AS cor0 ---- -94 33 6 query I rowsort SELECT DISTINCT col1 + - 48 - - col0 FROM tab2 AS cor0 ---- -10 48 89 query I rowsort SELECT ALL + col2 + col2 * 45 FROM tab2 cor0 ---- 1196 1242 1748 query I rowsort SELECT + - col1 + - col1 AS col0 FROM tab0 AS cor0 ---- -172 -182 -194 query I rowsort SELECT + 70 - + 90 AS col1 FROM tab2 cor0 ---- -20 -20 -20 query I rowsort SELECT ALL cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT DISTINCT col2 + + col2 + - col1 FROM tab0 ---- -20 -95 73 query I rowsort SELECT col1 + col1 * + ( + col0 * - col1 + - 67 ) FROM tab0 ---- -183180 -335717 -743015 query I rowsort SELECT + 78 + col1 AS col0 FROM tab2 ---- 109 137 95 query I rowsort SELECT - 76 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0 skipif mysql # not compatible query I rowsort SELECT col1 / col0 + - CAST ( - col2 AS REAL ) - col0 AS col2 FROM tab2 ---- -41 -52 24 query I rowsort SELECT ALL col2 + - col2 * - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT ( + col2 ) - col2 * 90 FROM tab2 AS cor0 ---- -2314 -2403 -3382 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 * col2 + col1 * + col1 col2 FROM tab2 AS cor0 ---- -1155 232 2805 query I rowsort SELECT + 49 + 36 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + tab0.col1 col1 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1 ---- -86 -91 -97 query I rowsort SELECT + 51 * - col0 + col1 * col2 FROM tab2 ---- -2444 -3383 480 onlyif mysql # use DIV operator for integer division query I rowsort label-3133 SELECT + col1 DIV cor0.col2 - cor0.col2 DIV col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3133 SELECT + col1 / cor0.col2 - cor0.col2 / col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 + + col0 col1 FROM tab1 AS cor0 ---- 128 160 6 onlyif mysql # use DIV operator for integer division query I rowsort label-3135 SELECT col2 * col1 + - cor0.col2 DIV col0 FROM tab0 AS cor0 ---- 2837 7462 97 skipif mysql # not compatible query I rowsort label-3135 SELECT col2 * col1 + - cor0.col2 / col0 FROM tab0 AS cor0 ---- 2837 7462 97 query I rowsort SELECT ALL 61 * - col1 * - ( cor0.col2 ) AS col2 FROM tab1 AS cor0 ---- 34770 76128 85644 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * - col2 col2 FROM tab1 AS cor0 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col1 - - 26 col0 FROM tab0 AS cor0 ---- 2090 3421 8125 query I rowsort SELECT ALL col2 + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT col1 * cor0.col2 + - col2 AS col1 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT DISTINCT + 81 * col1 FROM tab0 AS cor0 ---- 6966 7371 7857 query I rowsort SELECT - cor0.col0 * cor0.col2 - - cor0.col2 * - col1 AS col1 FROM tab1 AS cor0 ---- -1566 -4218 -8928 onlyif mysql # use DIV operator for integer division query I rowsort label-3143 SELECT ALL - - cor0.col0 DIV - col1 AS col0 FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-3143 SELECT ALL - - cor0.col0 / - col1 AS col0 FROM tab1 AS cor0 ---- -6 -6 0 query I rowsort SELECT - col2 * col0 + 6 AS col2 FROM tab1 AS cor0 ---- -156 -3642 -7674 onlyif mysql # use DIV operator for integer division query I rowsort label-3145 SELECT ALL col1 + 99 DIV col0 AS col0 FROM tab0 AS cor0 ---- 90 92 99 skipif mysql # not compatible query I rowsort label-3145 SELECT ALL col1 + 99 / col0 AS col0 FROM tab0 AS cor0 ---- 90 92 99 query I rowsort SELECT + - col1 + + 14 * col0 * col2 FROM tab0 AS cor0 ---- 102081 11002 393 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * - cor0.col2 - cor0.col1 col0 FROM tab1 AS cor0 ---- -2942 -3259 -9229 query I rowsort SELECT - ( col1 ) * tab2.col2 * - 43 - col1 AS col0 FROM tab2 ---- 27761 35960 65903 query I rowsort SELECT + - col2 + - ( cor0.col2 ) * + col1 FROM tab2 AS cor0 ---- -1560 -684 -864 skipif mysql # not compatible query I rowsort SELECT - - CAST ( - cor0.col1 AS REAL ) FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT - + 61 + col1 * + col0 AS col2 FROM tab2 AS cor0 ---- 1282 156 4541 query I rowsort SELECT DISTINCT 47 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2 ---- 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 11 col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 query I rowsort SELECT DISTINCT 41 + cor0.col2 FROM tab0 AS cor0 ---- 123 42 74 onlyif mysql # use DIV operator for integer division query I rowsort label-3155 SELECT ALL - col2 + - col0 DIV - col0 FROM tab2 AS cor0 ---- -25 -26 -37 skipif mysql # not compatible query I rowsort label-3155 SELECT ALL - col2 + - col0 / - col0 FROM tab2 AS cor0 ---- -25 -26 -37 query I rowsort SELECT - 95 * cor0.col2 FROM tab0 AS cor0 ---- -3135 -7790 -95 query I rowsort SELECT cor0.col0 AS col0 FROM tab1, tab2 cor0, tab0 cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT ALL + - col0 + - ( col1 * - 88 ) FROM tab0 AS cor0 ---- 7544 7919 8501 query I rowsort SELECT 67 - col2 AS col2 FROM tab0 cor0 ---- -15 34 66 query I rowsort SELECT DISTINCT + col2 * col1 + col1 AS col2 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT - col0 * - cor0.col1 + col2 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT - ( + 10 ) * col2 + col2 - 45 * tab1.col2 FROM tab1 ---- -2916 -3078 -5184 onlyif mysql # use DIV operator for integer division query I rowsort label-3163 SELECT DISTINCT col0 DIV col0 - - tab0.col0 DIV + col0 FROM tab0 ---- 2 skipif mysql # not compatible query I rowsort label-3163 SELECT DISTINCT col0 / col0 - - tab0.col0 / + col0 FROM tab0 ---- 2 query I rowsort SELECT ALL - ( col1 ) * + col2 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT + - 71 + col0 AS col0 FROM tab1 AS cor0 ---- -68 -7 9 query I rowsort SELECT DISTINCT 14 * + cor0.col2 FROM tab2 AS cor0 ---- 364 378 532 query I rowsort SELECT + + col1 - - cor0.col1 AS col1 FROM tab0 cor0 ---- 172 182 194 query I rowsort SELECT DISTINCT - + 34 * + cor0.col2 FROM tab0 AS cor0 ---- -1122 -2788 -34 onlyif mysql # use DIV operator for integer division query I rowsort label-3169 SELECT + col1 DIV + col2 - cor0.col1 * 21 AS col1 FROM tab1 AS cor0 ---- -210 -273 -546 skipif mysql # not compatible query I rowsort label-3169 SELECT + col1 / + col2 - cor0.col1 * 21 AS col1 FROM tab1 AS cor0 ---- -210 -273 -546 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 5 col0 FROM tab1 ---- -5 query I rowsort SELECT DISTINCT + 79 AS col0 FROM tab0, tab1, tab0 AS cor0 ---- 79 query I rowsort SELECT ALL 54 * 0 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3173 SELECT ALL - 15 DIV - col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3173 SELECT ALL - 15 / - col0 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3174 SELECT ALL col1 DIV - 77 + 95 * + col1 * 89 AS col0 FROM tab2 AS cor0 ---- 143735 262105 498845 skipif mysql # not compatible query I rowsort label-3174 SELECT ALL col1 / - 77 + 95 * + col1 * 89 AS col0 FROM tab2 AS cor0 ---- 143735 262105 498845 query I rowsort SELECT - + col2 * 57 FROM tab1 AS cor0 ---- -3078 -3249 -5472 query I rowsort SELECT col0 * cor0.col0 + + col2 AS col1 FROM tab0 cor0 ---- 1226 609 8003 query I rowsort SELECT DISTINCT - col2 + 88 FROM tab2 AS cor0 ---- 50 61 62 query I rowsort SELECT DISTINCT col1 + 36 * - col2 FROM tab2 AS cor0 ---- -1351 -877 -941 query I rowsort SELECT - col1 + - 52 AS col0 FROM tab1 AS cor0 ---- -62 -65 -78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3180 SELECT - - col2 * - CAST( NULL AS SIGNED ) + cor0.col0 * col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3180 SELECT - - col2 * - CAST ( NULL AS INTEGER ) + cor0.col0 * col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 13 * cor0.col1 * + col1 col2 FROM tab0 AS cor0 ---- 107653 122317 96148 query I rowsort SELECT DISTINCT 45 FROM tab2, tab0 cor0 ---- 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 16 * col0 col0 FROM tab2 cor0 ---- -112 -1248 -1264 query I rowsort SELECT 49 + - col1 * + 32 FROM tab2 AS cor0 ---- -1839 -495 -943 query I rowsort SELECT DISTINCT + - ( - col0 ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-3186 SELECT - - 56 * + col0 + 57 DIV + 79 FROM tab0 AS cor0 ---- 1344 1960 4984 skipif mysql # not compatible query I rowsort label-3186 SELECT - - 56 * + col0 + 57 / + 79 FROM tab0 AS cor0 ---- 1344 1960 4984 query I rowsort SELECT ALL - 22 + - col2 * - 29 FROM tab2 AS cor0 ---- 1080 732 761 onlyif mysql # use DIV operator for integer division query I rowsort label-3188 SELECT + ( 48 ) DIV col0 FROM tab2 ---- 0 0 6 skipif mysql # not compatible query I rowsort label-3188 SELECT + ( 48 ) / col0 FROM tab2 ---- 0 0 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col0 - col0 * col2 col0 FROM tab0 ---- -70 -7387 -816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3190 SELECT ALL CAST( + 24 AS SIGNED ) * - col1 + - 25 * - col2 FROM tab0 ---- -1239 -134 -2303 skipif mysql # not compatible query I rowsort label-3190 SELECT ALL CAST ( + 24 AS INTEGER ) * - col1 + - 25 * - col2 FROM tab0 ---- -1239 -134 -2303 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3191 SELECT - tab0.col0 + CAST( NULL AS SIGNED ) * 19 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-3191 SELECT - tab0.col0 + CAST ( NULL AS INTEGER ) * 19 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT ( - col1 ) + + col1 AS col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL 29 * - col1 AS col0 FROM tab2 AS cor0 ---- -1711 -493 -899 query I rowsort SELECT ( - cor0.col1 ) * - col2 + 4 FROM tab1 AS cor0 ---- 1252 1408 574 query I rowsort SELECT DISTINCT cor0.col1 + - 46 - - cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- -17 28 47 query I rowsort SELECT DISTINCT - 95 * - col1 + - col0 FROM tab0 AS cor0 ---- 8146 8556 9180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3197 SELECT DISTINCT - + col0 * + col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3197 SELECT DISTINCT - + col0 * + col2 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL + - 91 - + col1 * + col2 FROM tab2 AS cor0 ---- -1625 -737 -928 query I rowsort SELECT DISTINCT - - col2 + col0 * - col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT DISTINCT + col1 + - cor0.col0 FROM tab1 cor0 ---- -54 -67 23 query I rowsort SELECT + cor0.col1 + ( col0 ) FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-3202 SELECT DISTINCT - - col0 DIV + col0 AS col0 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-3202 SELECT DISTINCT - - col0 / + col0 AS col0 FROM tab1 AS cor0 ---- 1 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1, tab1 cor0 WHERE NOT NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT + - cor0.col0 * + cor0.col0 * - col1 FROM tab2 AS cor0 ---- 106097 1519 358956 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 * + col0 * cor0.col1 + - col0 col1 FROM tab2 AS cor0 ---- 22752 271440 6720 onlyif mysql # use DIV operator for integer division query I rowsort label-3206 SELECT + 57 DIV - col1 FROM tab1 ---- -2 -4 -5 skipif mysql # not compatible query I rowsort label-3206 SELECT + 57 / - col1 FROM tab1 ---- -2 -4 -5 onlyif mysql # use DIV operator for integer division query I rowsort label-3207 SELECT ALL + 33 DIV col2 AS col1 FROM tab0 ---- 0 1 33 skipif mysql # not compatible query I rowsort label-3207 SELECT ALL + 33 / col2 AS col1 FROM tab0 ---- 0 1 33 query I rowsort SELECT + col0 * + col1 + - cor0.col1 AS col2 FROM tab0 cor0 ---- 1978 3298 8008 query I rowsort SELECT - col0 + ( + col0 ) * col2 + ( + 9 ) FROM tab1 AS cor0 ---- 168 3593 7609 query I rowsort SELECT ALL tab1.col0 * + col1 * - col1 FROM tab1 ---- -13520 -2028 -6400 query I rowsort SELECT cor0.col2 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT - 27 * col2 * - col0 FROM tab0 AS cor0 ---- 197046 21384 945 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col0 * col1 + col1 * col2 col0 FROM tab0 AS cor0 ---- 118922 52374 728273 query I rowsort SELECT col2 * + col0 + col2 * + col1 * col2 FROM tab2 AS cor0 ---- 22788 27550 41912 query I rowsort SELECT + col1 * + col1 + + col2 AS col0 FROM tab0 cor0 ---- 7429 8363 9410 query I rowsort SELECT + col1 * col1 - + col1 AS col1 FROM tab0 AS cor0 ---- 7310 8190 9312 query I rowsort SELECT - 20 + col2 * 48 - + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 2569 2652 4508 query I rowsort SELECT DISTINCT col0 * + col0 + + col1 * + tab2.col2 + - 19 AS col2 FROM tab2 ---- 6868 7599 867 onlyif mysql # use DIV operator for integer division query I rowsort label-3219 SELECT - + 65 DIV col2 - col1 AS col0 FROM tab0 cor0 ---- -162 -87 -91 skipif mysql # not compatible query I rowsort label-3219 SELECT - + 65 / col2 - col1 AS col0 FROM tab0 cor0 ---- -162 -87 -91 onlyif mysql # use DIV operator for integer division query I rowsort label-3220 SELECT + cor0.col2 DIV - col2 + - col1 - + cor0.col1 col0 FROM tab1 AS cor0 ---- -21 -27 -53 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3220 SELECT + cor0.col2 / - col2 + - col1 - + cor0.col1 col0 FROM tab1 AS cor0 ---- -21 -27 -53 onlyif mysql # use DIV operator for integer division query I rowsort label-3221 SELECT DISTINCT + cor0.col2 + + col2 DIV col1 + + 8 * - 0 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-3221 SELECT DISTINCT + cor0.col2 + + col2 / col1 + + 8 * - 0 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT 77 * - col1 * col1 + + col1 * col1 AS col1 FROM tab2 AS cor0 ---- -21964 -264556 -73036 query I rowsort SELECT col0 * - cor0.col2 + + col2 AS col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT ALL - cor0.col2 * - ( - col1 ) + - col2 FROM tab2 AS cor0 ---- -1560 -684 -864 query I rowsort SELECT - col2 + - col1 * - col2 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT DISTINCT + 60 * - col2 + + cor0.col2 * + col1 FROM tab0 AS cor0 ---- 2542 37 858 query I rowsort SELECT DISTINCT + ( - col0 ) + + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL ( - 72 ) + + cor0.col2 * col2 + col2 FROM tab2 AS cor0 ---- 1410 630 684 query I rowsort SELECT - - 2 + + col1 * col2 * cor0.col0 FROM tab1 AS cor0 ---- 36482 4214 99842 query I rowsort SELECT DISTINCT + 41 * - col2 * - col0 + - cor0.col2 * col1 * + col1 AS col0 FROM tab0 AS cor0 ---- -211596 -379824 -7974 query I rowsort SELECT + - ( - col0 ) FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT ALL ( col0 ) * col1 - col2 AS col1 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL - tab0.col1 + - col0 * + col0 FROM tab0 ---- -1322 -662 -8012 query I rowsort SELECT DISTINCT + - 89 AS col1 FROM tab0 AS cor0 ---- -89 query I rowsort SELECT cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT DISTINCT + col0 * + 53 - 84 FROM tab2 AS cor0 ---- 287 4050 4103 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 + 67 col2 FROM tab1 AS cor0 ---- -13 3 64 query I rowsort SELECT ALL col1 * + 88 - col0 FROM tab2 ---- 1417 2721 5114 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3239 SELECT ALL col1 - - CAST( - col1 AS SIGNED ) FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3239 SELECT ALL col1 - - CAST ( - col1 AS INTEGER ) FROM tab2 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3240 SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-3240 SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL query I rowsort SELECT DISTINCT 35 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 35 query I rowsort SELECT + cor0.col0 * cor0.col2 + col2 AS col0 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT - ( 10 ) AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to f68f33032846e21ee6b2c668fc10355e query I rowsort SELECT ALL col0 - ( col2 + + col0 ) * col1 AS col1 FROM tab0 ---- -15472 -3457 -4878 query I rowsort SELECT + col0 + 68 FROM tab2 AS cor0 ---- 146 147 75 skipif mysql # not compatible query I rowsort SELECT ALL + col1 + - CAST ( col2 AS REAL ) FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT + 63 FROM tab0, tab0 cor0 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 * - col0 col0 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT 77 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 051bf10c50e061d74ad0a4d205a1c622 query I rowsort SELECT ALL cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT DISTINCT + 86 + col2 FROM tab0 ---- 119 168 87 query I rowsort SELECT ALL + + col0 * + 2 * cor0.col2 + - col0 AS col0 FROM tab0 AS cor0 ---- 14507 1560 35 query I rowsort SELECT ALL col1 + - col1 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT 61 FROM tab1, tab1 cor0 ---- 9 values hashing to 07149905a72bd87553381f34d19ed290 query I rowsort SELECT DISTINCT ( col0 ) * tab0.col2 + 53 FROM tab0 ---- 7351 845 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3256 SELECT + CAST( NULL AS SIGNED ) + - col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3256 SELECT + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL cor1.col0 * - ( + cor1.col0 ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to bfa29ac72730a1b8452f6f2702fbe6b9 query I rowsort SELECT + 82 * + col1 AS col0 FROM tab1 ---- 1066 2132 820 query I rowsort SELECT DISTINCT ( - col1 ) + - col1 FROM tab0 ---- -172 -182 -194 query I rowsort SELECT DISTINCT + cor0.col0 + ( + col1 ) * - col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT + 30 * 51 * col0 AS col0 FROM tab1 AS cor0 ---- 122400 4590 97920 query I rowsort SELECT ALL - - col1 * 50 AS col1 FROM tab1 cor0 ---- 1300 500 650 query I rowsort SELECT - ( - col2 ) * col0 + 76 AS col1 FROM tab1 AS cor0 ---- 238 3724 7756 query I rowsort SELECT + 45 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 14cec871edc37b5056cda01c8331fdca query I rowsort SELECT ( tab1.col0 ) + col2 FROM tab1 ---- 121 176 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3266 SELECT ALL + + ( + col2 ) * - CAST( + col1 * + col2 AS SIGNED ) + - col0 FROM tab2 AS cor0 ---- -22606 -24627 -39962 skipif mysql # not compatible query I rowsort label-3266 SELECT ALL + + ( + col2 ) * - CAST ( + col1 * + col2 AS INTEGER ) + - col0 FROM tab2 AS cor0 ---- -22606 -24627 -39962 query I rowsort SELECT - 9 * - col0 + + ( col0 ) FROM tab2 cor0 ---- 70 780 790 query I rowsort SELECT ( col1 ) + - ( - col0 ) AS col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL - 85 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 91e44ead5e72fa22f87a57243e232ede skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * col1 + 39 col2 FROM tab1 AS cor0 ---- 1287 1443 609 query I rowsort SELECT ALL - col1 + col1 + ( - ( col1 ) ) * col1 AS col0 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT cor0.col1 + + 14 * col2 AS col1 FROM tab1 AS cor0 ---- 1357 782 808 query I rowsort SELECT ALL + cor0.col2 * - col1 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT col1 + 44 * cor0.col0 FROM tab0 AS cor0 ---- 1142 1637 4007 query I rowsort SELECT - col2 + + col0 * - col0 * - col1 AS col0 FROM tab1 AS cor0 ---- 180 40903 83104 query I rowsort SELECT ALL + col0 * - ( 50 ) AS col2 FROM tab1 cor0 ---- -150 -3200 -4000 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col1 + 42 col2 FROM tab1 ---- 1082 120 682 query I rowsort SELECT - 9 + - tab0.col2 FROM tab0 ---- -10 -42 -91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 * - ( 25 ) col0 FROM tab1 AS cor0 ---- -1350 -1425 -2400 query I rowsort SELECT DISTINCT col1 * col2 / + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + cor0.col1 ) ---- query I rowsort SELECT - tab1.col0 * + col1 * col1 FROM tab1 ---- -13520 -2028 -6400 query I rowsort SELECT ALL + - cor0.col2 * + cor0.col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query III rowsort SELECT ALL * FROM tab2 WHERE NOT col1 <> ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-3284 SELECT DISTINCT + col1 * - cor0.col2 + col1 DIV + col1 col1 FROM tab2 AS cor0 ---- -1533 -645 -836 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3284 SELECT DISTINCT + col1 * - cor0.col2 + col1 / + col1 col1 FROM tab2 AS cor0 ---- -1533 -645 -836 query I rowsort SELECT col1 + cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT col1 - + col0 * col1 AS col0 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT col0 + cor0.col0 FROM tab0 cor0 WHERE ( col2 * col2 ) IN ( col2 + col2 ) ---- query I rowsort SELECT - col2 + col0 AS col0 FROM tab1 cor0 WHERE NOT ( col2 ) <> NULL ---- query I rowsort SELECT + - col2 + - cor0.col1 * cor0.col2 * cor0.col2 FROM tab1 AS cor0 ---- -119904 -32547 -75870 query I rowsort SELECT cor0.col0 * - col2 + + col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT + col0 + + col0 * tab1.col1 + - col2 FROM tab1 ---- 1024 27 647 query III rowsort SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * - col0 ) AND + tab1.col0 <= NULL ---- query I rowsort SELECT ALL - col2 + col0 * - col0 AS col1 FROM tab0 AS cor0 ---- -1226 -609 -8003 query I rowsort SELECT - + col0 * col1 + col2 AS col0 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT + col1 + - col2 * col0 + - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -165 -2047 -3064 onlyif mysql # use DIV operator for integer division query I rowsort label-3296 SELECT - cor0.col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3296 SELECT - cor0.col1 / cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT col1 * - col1 + - col1 AS col1 FROM tab0 ---- -7482 -8372 -9506 query I rowsort SELECT DISTINCT + col1 + - col0 * col0 + + col2 FROM tab2 ---- -5999 -6186 9 query I rowsort SELECT col2 + + tab0.col2 + + col1 AS col2 FROM tab0 ---- 152 255 99 query I rowsort SELECT DISTINCT col1 * + col0 + + col1 * col1 FROM tab2 ---- 1178 1632 8083 query I rowsort SELECT ALL - col2 + col1 * + tab2.col1 AS col1 FROM tab2 ---- 251 3455 934 query I rowsort SELECT - + ( + col1 ) + 15 + 41 * - col0 FROM tab0 AS cor0 ---- -1055 -1517 -3725 query I rowsort SELECT + 45 + col1 * + col1 AS col0 FROM tab2 AS cor0 ---- 1006 334 3526 query I rowsort SELECT + + 80 * + col1 - + ( ( + col1 ) * col0 ) AS col0 FROM tab0 AS cor0 ---- -819 4365 4816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( cor0.col1 ) + col0 col2 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL - col0 + + 16 * - col0 FROM tab1 AS cor0 ---- -1088 -1360 -51 query I rowsort SELECT ALL col2 * + 30 FROM tab2 AS cor0 ---- 1140 780 810 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3308 SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3308 SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + cor0.col0 * - cor0.col2 + + col2 AS col1 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT ALL cor0.col0 + + col1 * - col1 AS col1 FROM tab1 AS cor0 ---- -36 -673 -89 query I rowsort SELECT ALL + col2 * - ( + ( cor0.col1 ) ) FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL + 71 - - col2 AS col0 FROM tab2 ---- 109 97 98 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col0 * col2 ) ---- query I rowsort SELECT DISTINCT + tab0.col0 * col2 - + col2 * - col0 AS col0 FROM tab0 ---- 14596 1584 70 query I rowsort SELECT + col1 - + col0 * col2 AS col1 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT DISTINCT tab1.col2 * col1 AS col0 FROM tab1 WHERE + col2 < NULL ---- query I rowsort SELECT DISTINCT col1 * - col1 + - col1 FROM tab1 ---- -110 -182 -702 onlyif mysql # use DIV operator for integer division query I rowsort label-3318 SELECT DISTINCT col2 + col1 DIV - col0 FROM tab0 ---- -1 30 81 skipif mysql # not compatible query I rowsort label-3318 SELECT DISTINCT col2 + col1 / - col0 FROM tab0 ---- -1 30 81 query I rowsort SELECT ALL col0 * col1 - - col0 FROM tab1 ---- 1120 704 81 onlyif mysql # use DIV operator for integer division query I rowsort label-3320 SELECT DISTINCT - col2 * + col2 + col1 DIV col0 AS col0 FROM tab2 ---- -1444 -676 -725 skipif mysql # not compatible query I rowsort label-3320 SELECT DISTINCT - col2 * + col2 + col1 / col0 AS col0 FROM tab2 ---- -1444 -676 -725 query I rowsort SELECT DISTINCT + tab0.col2 * col1 * - col0 - + col2 AS col1 FROM tab0 ---- -3396 -664200 -68145 query I rowsort SELECT + col2 * - tab0.col2 + + col0 + + col2 * col1 FROM tab0 ---- 131 1773 827 query I rowsort SELECT ALL - col2 * col2 - - col0 FROM tab0 ---- -1065 -6635 34 onlyif mysql # use DIV operator for integer division query I rowsort label-3324 SELECT - col0 + col2 DIV - tab2.col1 AS col1 FROM tab2 ---- -7 -78 -81 skipif mysql # not compatible query I rowsort label-3324 SELECT - col0 + col2 / - tab2.col1 AS col1 FROM tab2 ---- -7 -78 -81 query I rowsort SELECT ALL 6 - + col1 FROM tab2 ---- -11 -25 -53 query I rowsort SELECT ( + 37 ) FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to c023509f63faa044d654943e6df55ca2 onlyif mysql # use DIV operator for integer division query I rowsort label-3327 SELECT ALL col0 * + col0 + col0 DIV col1 - - col1 DIV + col0 FROM tab1 ---- 17 4102 6406 skipif mysql # not compatible query I rowsort label-3327 SELECT ALL col0 * + col0 + col0 / col1 - - col1 / + col0 FROM tab1 ---- 17 4102 6406 query I rowsort SELECT ALL col2 - tab2.col0 * + col1 * - col1 FROM tab2 ---- 22869 271544 6754 query I rowsort SELECT DISTINCT + col0 + - col0 - col1 FROM tab1 ---- -10 -13 -26 query I rowsort SELECT ALL + tab2.col0 - + col1 * + col2 AS col0 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT - - col2 * col1 * 47 FROM tab2 AS cor0 ---- 30362 39339 72098 onlyif mysql # use DIV operator for integer division query I rowsort label-3332 SELECT DISTINCT - - cor0.col0 DIV - ( + col0 * col0 ) AS col2 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-3332 SELECT DISTINCT - - cor0.col0 / - ( + col0 * col0 ) AS col2 FROM tab2 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3333 SELECT ALL col1 DIV 78 + col1 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-3333 SELECT ALL col1 / 78 + col1 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT ALL + + col0 - - col1 * 27 FROM tab2 AS cor0 ---- 1671 538 844 query I rowsort SELECT ALL cor0.col2 + + col1 AS col0 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT - col1 * - col2 - - col2 FROM tab0 AS cor0 ---- 2871 7544 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 - 67 * - col0 col0 FROM tab2 AS cor0 ---- 496 5252 5331 query I rowsort SELECT + col1 * ( 65 ) + + cor0.col0 * + col0 FROM tab1 cor0 ---- 1699 4746 7245 query I rowsort SELECT ALL - + col1 + ( + col1 ) * - col2 AS col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT - col1 + + 48 AS col2 FROM tab2 AS cor0 ---- -11 17 31 query I rowsort SELECT + 54 + col1 * col1 - - tab2.col1 FROM tab2 ---- 1046 3594 360 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3342 SELECT DISTINCT + col0 * CAST( 52 AS SIGNED ) FROM tab1 AS cor0 ---- 156 3328 4160 skipif mysql # not compatible query I rowsort label-3342 SELECT DISTINCT + col0 * CAST ( 52 AS INTEGER ) FROM tab1 AS cor0 ---- 156 3328 4160 query I rowsort SELECT + cor0.col1 * 18 - col1 FROM tab2 AS cor0 ---- 1003 289 527 query I rowsort SELECT ALL - - col0 + ( - col2 ) AS col0 FROM tab2 AS cor0 ---- -20 41 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col1 * 57 col1 FROM tab2 AS cor0 ---- 1767 3363 969 onlyif mysql # use DIV operator for integer division query I rowsort label-3346 SELECT - col1 DIV - cor0.col1 + col0 col2 FROM tab1 cor0 ---- 4 65 81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3346 SELECT - col1 / - cor0.col1 + col0 col2 FROM tab1 cor0 ---- 4 65 81 onlyif mysql # use DIV operator for integer division query I rowsort label-3347 SELECT ALL + col0 * col1 DIV col1 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-3347 SELECT ALL + col0 * col1 / col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT col1 - 77 AS col2 FROM tab2 AS cor0 ---- -18 -46 -60 query I rowsort SELECT - + cor0.col2 + - 68 * col2 * + 7 FROM tab1 AS cor0 ---- -25758 -27189 -45792 query I rowsort SELECT 84 * cor0.col1 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- 238392 626808 8148 query I rowsort SELECT ALL + col1 * 72 FROM tab2 AS cor0 ---- 1224 2232 4248 query I rowsort SELECT DISTINCT - - 77 * col1 AS col0 FROM tab1 AS cor0 ---- 1001 2002 770 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3353 SELECT ALL + CAST( - col1 AS SIGNED ) + - col2 * - 98 AS col1 FROM tab1 AS cor0 ---- 5266 5576 9395 skipif mysql # not compatible query I rowsort label-3353 SELECT ALL + CAST ( - col1 AS INTEGER ) + - col2 * - 98 AS col1 FROM tab1 AS cor0 ---- 5266 5576 9395 query I rowsort SELECT ALL 72 + cor0.col0 FROM tab2 AS cor0 ---- 150 151 79 query I rowsort SELECT DISTINCT + col1 + 19 * col0 * col2 FROM tab0 cor0 ---- 138753 15134 762 query I rowsort SELECT DISTINCT - - col0 * - cor0.col1 + - col0 AS col1 FROM tab2 cor0 ---- -1422 -224 -4680 query I rowsort SELECT - + 90 * col1 FROM tab0 AS cor0 ---- -7740 -8190 -8730 query I rowsort SELECT ALL + - col0 * + col2 * col2 FROM tab1 AS cor0 ---- -207936 -737280 -8748 query I rowsort SELECT DISTINCT + - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT + col2 * + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT ALL + ( - tab1.col0 ) * - col0 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT col2 * + col1 * + col0 AS col1 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT ALL col2 * 9 * + col0 AS col2 FROM tab1 ---- 1458 32832 69120 query I rowsort SELECT - 13 * - cor0.col0 AS col0 FROM tab2 cor0 ---- 1014 1027 91 query I rowsort SELECT col2 + + col1 * + col2 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT ALL - + col1 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT - 67 * col1 AS col0 FROM tab2 AS cor0 ---- -1139 -2077 -3953 query I rowsort SELECT ALL + col1 - - col1 AS col2 FROM tab1 AS cor0 ---- 20 26 52 onlyif mysql # use DIV operator for integer division query I rowsort label-3369 SELECT ALL - + col1 + col1 DIV col0 - + col2 AS col2 FROM tab0 AS cor0 ---- -116 -172 -96 skipif mysql # not compatible query I rowsort label-3369 SELECT ALL - + col1 + col1 / col0 - + col2 AS col2 FROM tab0 AS cor0 ---- -116 -172 -96 query I rowsort SELECT + col2 + - col0 * col1 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT ( - col1 ) * tab1.col2 + + col0 FROM tab1 ---- -1168 -1401 -506 query I rowsort SELECT ( + ( col1 ) ) AS col2 FROM tab1 ---- 10 13 26 query I rowsort SELECT + + 36 AS col0 FROM tab0 AS cor0 ---- 36 36 36 query I rowsort SELECT ( col2 ) * + tab2.col0 + col2 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT + 94 * col1 + tab0.col0 * col0 FROM tab0 ---- 10343 16475 8660 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * - col1 col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 onlyif mysql # use DIV operator for integer division query I rowsort label-3378 SELECT DISTINCT col0 * ( 47 ) + + tab1.col0 DIV + col2 col2 FROM tab1 ---- 141 3009 3760 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3378 SELECT DISTINCT col0 * ( 47 ) + + tab1.col0 / + col2 col2 FROM tab1 ---- 141 3009 3760 query I rowsort SELECT col2 * 65 FROM tab0 AS cor0 ---- 2145 5330 65 query I rowsort SELECT ALL col1 + 38 AS col1 FROM tab2 AS cor0 ---- 55 69 97 query I rowsort SELECT DISTINCT 50 + 57 AS col0 FROM tab1 AS cor0 ---- 107 query I rowsort SELECT - + 83 * - ( - col0 ) FROM tab0 AS cor0 ---- -1992 -2905 -7387 query I rowsort SELECT ALL - - cor0.col1 AS col1 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 42 col1 FROM tab2 ---- 42 42 42 query I rowsort SELECT tab0.col0 * tab0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 3fb27a91711469131edbffaad90e6035 query I rowsort SELECT 87 * 24 FROM tab0 ---- 2088 2088 2088 query I rowsort SELECT ALL - tab2.col2 AS col2 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT col0 * col2 + col1 AS col0 FROM tab0 ---- 132 7389 878 query I rowsort SELECT DISTINCT col1 * + cor0.col0 * - col1 - col0 FROM tab0 AS cor0 ---- -177528 -329350 -737098 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 + + col0 * col0 col0 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT ALL 90 * + 17 - - col1 * - col1 AS col2 FROM tab0 AS cor0 ---- -5866 -6751 -7879 onlyif mysql # use DIV operator for integer division query I rowsort label-3392 SELECT - 4 + + col1 DIV col1 AS col2 FROM tab1 AS cor0 ---- -3 -3 -3 skipif mysql # not compatible query I rowsort label-3392 SELECT - 4 + + col1 / col1 AS col2 FROM tab1 AS cor0 ---- -3 -3 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * col2 + + col0 col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ( col2 ) + - col0 AS col2 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT + - 50 * 37 AS col0 FROM tab0 AS cor0 ---- -1850 -1850 -1850 query I rowsort SELECT - col2 + col0 * - col1 AS col1 FROM tab0 ---- -2097 -3396 -8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 72 col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to 95a1a68628dd064d94b4fe1543a3419f query I rowsort SELECT ALL tab2.col2 * 35 FROM tab2 ---- 1330 910 945 onlyif mysql # use DIV operator for integer division query I rowsort label-3399 SELECT 22 DIV + 41 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 skipif mysql # not compatible query I rowsort label-3399 SELECT 22 / + 41 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT + ( - 55 ) * col2 FROM tab0 ---- -1815 -4510 -55 query IIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT col0 * + col0 - + col1 FROM tab2 AS cor0 ---- 18 6025 6224 query I rowsort SELECT cor1.col2 AS col2 FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1 ---- 81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - col0 + col2 col0 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT ALL 67 * 4 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7a40f8c13d7640efcca10e7e00d63d43 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 46 col0 FROM tab1 ---- 46 46 46 onlyif mysql # use DIV operator for integer division query I rowsort label-3407 SELECT ALL 64 DIV + col0 AS col0 FROM tab1 ---- 0 1 21 skipif mysql # not compatible query I rowsort label-3407 SELECT ALL 64 / + col0 AS col0 FROM tab1 ---- 0 1 21 query I rowsort SELECT - - col2 * col1 AS col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + + col2 - - col1 AS col2 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL col2 * + 76 + - col2 FROM tab1 AS cor0 ---- 4050 4275 7200 query I rowsort SELECT DISTINCT - cor0.col0 - + 84 FROM tab1 cor0 ---- -148 -164 -87 query I rowsort SELECT ALL - + col0 + col0 * col2 FROM tab2 AS cor0 ---- 182 1950 2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col1 * 78 col1 FROM tab0 cor0 ---- 6708 7098 7566 skipif mysql # not compatible query I rowsort SELECT ALL - col1 + + CAST ( + col2 + + col2 AS REAL ) * + col2 AS col2 FROM tab1 AS cor0 ---- 18419 5806 6488 query I rowsort SELECT + col0 * + 37 AS col0 FROM tab2 AS cor0 ---- 259 2886 2923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3416 SELECT + col2 + CAST( NULL AS SIGNED ) * - col0 * + col0 col2 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3416 SELECT + col2 + CAST ( NULL AS INTEGER ) * - col0 * + col0 col2 FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3417 SELECT col1 DIV - col0 + col1 * col2 AS col0 FROM tab1 ---- 1248 1396 570 skipif mysql # not compatible query I rowsort label-3417 SELECT col1 / - col0 + col1 * col2 AS col0 FROM tab1 ---- 1248 1396 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3418 SELECT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3418 SELECT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - col0 * - col1 * cor0.col1 FROM tab2 cor0 ---- 22831 271518 6727 query I rowsort SELECT + col1 * ( + col0 ) AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT 95 FROM tab1, tab1 AS cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 query I rowsort SELECT ALL + col1 * col1 * - tab0.col1 AS col0 FROM tab0 ---- -636056 -753571 -912673 query I rowsort SELECT DISTINCT col0 * 33 FROM tab0 ---- 1155 2937 792 query I rowsort SELECT DISTINCT + col1 * 84 AS col2 FROM tab0 AS cor0 ---- 7224 7644 8148 query I rowsort SELECT - - col1 * + cor0.col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT 64 + col2 FROM tab2 cor0 ---- 102 90 91 query I rowsort SELECT ALL ( col0 ) * - cor0.col0 + 98 AS col2 FROM tab0 AS cor0 ---- -1127 -478 -7823 query I rowsort SELECT col1 + 46 FROM tab1 cor0 ---- 56 59 72 query I rowsort SELECT + 76 - - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 162 167 173 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3430 SELECT + CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3430 SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT - - 18 + ( + col1 ) AS col1 FROM tab1 AS cor0 ---- 28 31 44 query I rowsort SELECT ALL - cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3433 SELECT DISTINCT + CAST( + col2 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-3433 SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL - ( + col0 ) * + col2 FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT + col0 * ( col2 + cor0.col2 ) FROM tab1 AS cor0 ---- 15360 324 7296 query I rowsort SELECT - - 78 * col0 AS col0 FROM tab2 AS cor0 ---- 546 6084 6162 query I rowsort SELECT col0 * - col0 + - cor0.col2 * col0 FROM tab0 AS cor0 ---- -1260 -1368 -15219 onlyif mysql # use DIV operator for integer division query I rowsort label-3438 SELECT - col0 + col0 DIV 59 col0 FROM tab0 AS cor0 ---- -24 -35 -88 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3438 SELECT - col0 + col0 / 59 col0 FROM tab0 AS cor0 ---- -24 -35 -88 query I rowsort SELECT + ( cor0.col2 + + 76 ) AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 7a01fd694603c3de31c58584b208fd18 query I rowsort SELECT + ( + col2 ) * + col1 AS col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT - + cor0.col1 * 13 AS col1 FROM tab1 AS cor0 ---- -130 -169 -338 query I rowsort SELECT - ( tab2.col0 + + tab2.col1 * + col0 ) FROM tab2 ---- -1422 -224 -4680 query I rowsort SELECT DISTINCT + col0 * - col1 * col1 FROM tab0 ---- -177504 -329315 -737009 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3444 SELECT DISTINCT col2 + - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3444 SELECT DISTINCT col2 + - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + 74 FROM tab0, tab0 cor0 ---- 9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31 query I rowsort SELECT - + col1 * - col1 + col2 * + cor0.col0 + - col0 AS col0 FROM tab1 AS cor0 ---- 3684 7769 835 query I rowsort SELECT ALL + - cor0.col2 * col0 + 61 * cor0.col0 FROM tab1 AS cor0 ---- -2800 21 256 query I rowsort SELECT DISTINCT - 19 * - col2 FROM tab2 AS cor0 ---- 494 513 722 query I rowsort SELECT DISTINCT + - col1 + col2 * 8 * + col2 FROM tab0 AS cor0 ---- -89 53701 8626 query I rowsort SELECT - + ( col0 ) * col1 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT - - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 cor2 ---- 3 64 80 query I rowsort SELECT - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT + col0 * 26 FROM tab0 AS cor0 ---- 2314 624 910 query I rowsort SELECT - + col2 + - col2 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL + + col1 * - ( - col1 + - col1 ) FROM tab1 AS cor0 ---- 1352 200 338 query I rowsort SELECT + col1 * 58 * col2 + - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 164571 432714 5625 query I rowsort SELECT + - col2 * + col1 * - ( + col1 ) FROM tab1 cor0 ---- 16224 36504 5700 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3458 SELECT + col1 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-3458 SELECT + col1 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT - 70 - col2 AS col1 FROM tab2 AS cor0 ---- -108 -96 -97 query I rowsort SELECT - 8 * col0 FROM tab2 cor0 ---- -56 -624 -632 query I rowsort SELECT ALL - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL + cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2, tab1 cor1 ---- 81 values hashing to e28bf7f922650ca423ade3642ce0285b query I rowsort SELECT DISTINCT - col2 * ( 50 ) FROM tab1 ---- -2700 -2850 -4800 query I rowsort SELECT + ( + col1 ) * + col0 AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - - 5 * + 97 FROM tab0 cor0 ---- 485 485 485 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3466 SELECT + CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3466 SELECT + CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 0 * col2 AS col2 FROM tab1 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3468 SELECT - + col1 + + col1 DIV + col2 FROM tab0 AS cor0 ---- -84 -90 0 skipif mysql # not compatible query I rowsort label-3468 SELECT - + col1 + + col1 / + col2 FROM tab0 AS cor0 ---- -84 -90 0 query I rowsort SELECT + 4 * - col1 FROM tab1 ---- -104 -40 -52 query I rowsort SELECT ALL + col1 * col2 + + col1 + 87 AS col1 FROM tab1 AS cor0 ---- 1348 1517 667 query I rowsort SELECT ALL 12 + col1 * - col1 AS col2 FROM tab0 cor0 ---- -7384 -8269 -9397 query I rowsort SELECT DISTINCT - - 15 * + cor0.col1 FROM tab0 AS cor0 ---- 1290 1365 1455 onlyif mysql # use DIV operator for integer division query I rowsort label-3473 SELECT ALL + 22 * - col2 DIV col2 AS col0 FROM tab0 cor0 ---- -22 -22 -22 skipif mysql # not compatible query I rowsort label-3473 SELECT ALL + 22 * - col2 / col2 AS col0 FROM tab0 cor0 ---- -22 -22 -22 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3474 SELECT DISTINCT + ( + 36 ) * col0 + CAST( NULL AS SIGNED ) * col0 / - col2 AS col0 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3474 SELECT DISTINCT + ( + 36 ) * col0 + CAST ( NULL AS INTEGER ) * col0 / - col2 AS col0 FROM tab0 cor0 ---- NULL query I rowsort SELECT + - 6 * + col1 AS col0 FROM tab2 AS cor0 ---- -102 -186 -354 query I rowsort SELECT + + col1 * col0 * - col1 FROM tab1 AS cor0 ---- -13520 -2028 -6400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3477 SELECT + col1 * + col1 * - CAST( + cor0.col2 AS SIGNED ) FROM tab0 AS cor0 ---- -244068 -679042 -9409 skipif mysql # not compatible query I rowsort label-3477 SELECT + col1 * + col1 * - CAST ( + cor0.col2 AS INTEGER ) FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT DISTINCT 59 * - cor0.col1 + 39 AS col2 FROM tab1 AS cor0 ---- -1495 -551 -728 query I rowsort SELECT - 35 + + col0 * ( - col2 ) * col2 AS col0 FROM tab1 AS cor0 ---- -207971 -737315 -8783 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3480 SELECT DISTINCT ( - col0 + col1 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-3480 SELECT DISTINCT ( - col0 + col1 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 ---- NULL query I rowsort SELECT - cor0.col2 * - 69 - col0 FROM tab2 cor0 ---- 1716 1856 2543 query I rowsort SELECT DISTINCT + col0 + + col2 + cor0.col0 * - col0 AS col0 FROM tab0 cor0 ---- -1189 -519 -7750 query I rowsort SELECT - col1 * col0 + cor0.col1 FROM tab2 cor0 ---- -1326 -186 -4543 query I rowsort SELECT DISTINCT - col1 * - col0 * col2 + - col1 * col2 AS col2 FROM tab1 AS cor0 ---- 2808 35910 98592 query I rowsort SELECT ALL col0 * + 95 + - 51 AS col2 FROM tab0 AS cor0 ---- 2229 3274 8404 query I rowsort SELECT col0 + col2 * ( - col0 ) * col1 AS col0 FROM tab0 ---- -3360 -664029 -68088 query I rowsort SELECT col0 * 95 - - 55 FROM tab0 AS cor0 ---- 2335 3380 8510 query I rowsort SELECT DISTINCT - - col0 * - col2 + - 45 * col1 FROM tab1 AS cor0 ---- -1332 -4098 -8265 query I rowsort SELECT ALL + - col0 * ( + 35 ) + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1224 -3033 -807 query I rowsort SELECT + cor0.col1 - 58 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 25bf7b0098ad3f443f5d991ea4370298 query I rowsort SELECT + col2 + - col1 * - col0 + col1 AS col0 FROM tab0 ---- 2183 3493 8272 query I rowsort SELECT ALL col2 + + 90 * col0 FROM tab1 ---- 324 5817 7296 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + + ( col2 ) col1 FROM tab1 AS cor0 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-3494 SELECT + tab0.col0 + 15 DIV col1 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3494 SELECT + tab0.col0 + 15 / col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT 68 + - 9 FROM tab2, tab0 AS cor0 ---- 9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc query I rowsort SELECT ALL + col2 + 17 + col2 AS col0 FROM tab0 AS cor0 ---- 181 19 83 query I rowsort SELECT col2 + + 71 + - ( + col0 + + col2 ) * - col0 FROM tab1 ---- 14247 296 7872 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 48 - tab1.col1 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- -58 -61 -74 query I rowsort SELECT - + 44 FROM tab1 cor0 ---- -44 -44 -44 query I rowsort SELECT - 33 + + col0 * + col0 AS col1 FROM tab1 AS cor0 ---- -24 4063 6367 query I rowsort SELECT + - 35 AS col1 FROM tab2 AS cor0 ---- -35 -35 -35 query I rowsort SELECT DISTINCT tab0.col1 * + col0 + col2 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT + col2 * 75 + - col0 * col0 AS col1 FROM tab0 AS cor0 ---- -1150 -1771 1899 query I rowsort SELECT - + 54 * - cor0.col2 AS col2 FROM tab0, tab0 cor0 ---- 9 values hashing to 8e01e857aac480b2a9b183066100700d query I rowsort SELECT DISTINCT - - 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 32 onlyif mysql # use DIV operator for integer division query I rowsort label-3506 SELECT col1 DIV + ( col1 ) AS col0 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3506 SELECT col1 / + ( col1 ) AS col0 FROM tab1 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-3507 SELECT ( + 30 ) + col0 DIV 41 AS col1 FROM tab1 AS cor0 ---- 30 31 31 skipif mysql # not compatible query I rowsort label-3507 SELECT ( + 30 ) + col0 / 41 AS col1 FROM tab1 AS cor0 ---- 30 31 31 query I rowsort SELECT - 77 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to a4b782d7c3e9c22c8343c69c156c0bdd query I rowsort SELECT cor0.col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3510 SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col2 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-3510 SELECT DISTINCT CAST ( NULL AS REAL ) * - col2 FROM tab2 ---- NULL query I rowsort SELECT DISTINCT tab1.col1 * cor0.col0 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to c7e3d87815c66f5a8360e4fe15424a79 query I rowsort SELECT 94 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24 query I rowsort SELECT DISTINCT col1 * - cor0.col2 + 92 FROM tab0 AS cor0 ---- -2746 -5 -7370 query I rowsort SELECT ALL 23 + col1 AS col1 FROM tab0 ---- 109 114 120 query I rowsort SELECT DISTINCT 45 FROM tab0, tab1 AS cor0 CROSS JOIN tab2 ---- 45 query I rowsort SELECT 31 + - 82 AS col0 FROM tab0 ---- -51 -51 -51 query I rowsort SELECT DISTINCT ( tab0.col0 * ( - col2 ) ) AS col0 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT 46 + tab1.col0 * - col0 AS col0 FROM tab1 ---- -4050 -6354 37 query I rowsort SELECT DISTINCT + - col1 * col0 - col2 * 44 FROM tab0 AS cor0 ---- -11707 -3439 -3516 query I rowsort SELECT DISTINCT + + col0 + col0 * - col1 AS col0 FROM tab2 cor0 ---- -1264 -210 -4524 query I rowsort SELECT - - 54 * col0 AS col1 FROM tab2 AS cor0 ---- 378 4212 4266 onlyif mysql # use DIV operator for integer division query I rowsort label-3522 SELECT - col0 + ( - 74 ) DIV cor0.col2 FROM tab0 AS cor0 ---- -109 -26 -89 skipif mysql # not compatible query I rowsort label-3522 SELECT - col0 + ( - 74 ) / cor0.col2 FROM tab0 AS cor0 ---- -109 -26 -89 query I rowsort SELECT + col2 - - cor0.col2 * - col1 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT - 74 * + cor0.col0 + col2 AS col2 FROM tab0 AS cor0 ---- -1743 -2589 -6504 query I rowsort SELECT + - ( + cor0.col2 ) + col2 * cor0.col2 FROM tab0 cor0 ---- 0 1056 6642 query I rowsort SELECT + 24 * - col2 FROM tab2 AS cor0 ---- -624 -648 -912 query I rowsort SELECT - col1 * + col0 * col1 + - ( - col2 * col2 ) FROM tab2 AS cor0 ---- -21387 -270842 -5998 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3528 SELECT ALL - CAST( - ( + col1 ) AS SIGNED ) * + ( 55 ) + + col1 FROM tab0 AS cor0 ---- 4816 5096 5432 skipif mysql # not compatible query I rowsort label-3528 SELECT ALL - CAST ( - ( + col1 ) AS INTEGER ) * + ( 55 ) + + col1 FROM tab0 AS cor0 ---- 4816 5096 5432 query I rowsort SELECT + - 58 AS col0 FROM tab0 AS cor0 ---- -58 -58 -58 query I rowsort SELECT DISTINCT - ( + 63 ) * - col0 FROM tab0 AS cor0 ---- 1512 2205 5607 query I rowsort SELECT col0 + + cor0.col1 * col2 * - ( + ( + col1 ) ) FROM tab2 AS cor0 ---- -10903 -25940 -90428 query I rowsort SELECT ALL - col1 * + 74 * col0 + ( + col0 * col0 ) FROM tab0 AS cor0 ---- -152160 -250005 -591405 query I rowsort SELECT DISTINCT + ( - ( + col2 ) ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ( + 37 ) FROM tab0 AS cor0 ---- 37 37 37 query I rowsort SELECT ALL cor0.col1 + - 33 FROM tab2 AS cor0 ---- -16 -2 26 query I rowsort SELECT DISTINCT + col1 + + 20 FROM tab2 AS cor0 ---- 37 51 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * + col2 col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + col2 * ( col1 * col0 ) FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-3539 SELECT cor1.col0 DIV + cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 761c0bac61c63fe58b14c5c95c76ae09 skipif mysql # not compatible query I rowsort label-3539 SELECT cor1.col0 / + cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 761c0bac61c63fe58b14c5c95c76ae09 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - cor0.col1 + 90 * col0 col0 FROM tab2 cor0 ---- 2418 413 5767 query I rowsort SELECT ALL col0 * 7 * + 61 + col1 FROM tab0 AS cor0 ---- 10334 15042 38094 query I rowsort SELECT DISTINCT + col0 * + 6 FROM tab1 AS cor0 ---- 18 384 480 query I rowsort SELECT - - col2 + - col2 AS col1 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 * tab0.col1 + 97 FROM tab0 ---- 2161 3492 8196 query I rowsort SELECT ALL cor0.col0 + cor1.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 8ccec472ba030beef859f936b43eb646 query I rowsort SELECT + col2 + - col0 + + col2 AS col2 FROM tab2 AS cor0 ---- -26 -3 47 query I rowsort SELECT DISTINCT ( - 89 ) AS col1 FROM tab0, tab0 AS cor0 ---- -89 query I rowsort SELECT DISTINCT + col2 + 11 * col2 FROM tab2 AS cor0 ---- 312 324 456 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col1 - tab1.col0 col1 FROM tab1 ---- -54 -67 23 query I rowsort SELECT DISTINCT - tab0.col2 * 71 AS col2 FROM tab0 ---- -2343 -5822 -71 query I rowsort SELECT ALL + 73 * ( col2 ) + ( col2 * col1 ) FROM tab0 AS cor0 ---- 13448 170 5247 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 * cor0.col2 * - col2 col1 FROM tab2 cor0 ---- -114076 -5103 -52728 query I rowsort SELECT ALL ( 72 ) AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49 query I rowsort SELECT 3 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3e22859a313d85a6146c6df5f23d77cf query I rowsort SELECT - col0 * col1 - + ( 56 ) FROM tab0 cor0 ---- -2120 -3451 -8155 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( col0 ) col0 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT DISTINCT + col0 + - col1 - + col0 * col1 * col0 AS col0 FROM tab0 AS cor0 ---- -118887 -49598 -720813 query I rowsort SELECT + 96 - col0 AS col1 FROM tab1 AS cor0 ---- 16 32 93 query I rowsort SELECT 94 - col0 * 38 * - 42 FROM tab0 AS cor0 ---- 142138 38398 55954 query I rowsort SELECT DISTINCT + col2 * + col1 - + 24 AS col1 FROM tab2 cor0 ---- 1510 622 813 query I rowsort SELECT DISTINCT - col1 * cor0.col0 - 32 FROM tab0 AS cor0 ---- -2096 -3427 -8131 query I rowsort SELECT ALL + 31 * + col0 - - col1 FROM tab0 ---- 1182 2850 830 query I rowsort SELECT ALL col1 - 51 AS col1 FROM tab1 ---- -25 -38 -41 query I rowsort SELECT 3 * - 8 AS col2 FROM tab1 ---- -24 -24 -24 query I rowsort SELECT ALL 51 - col2 * col2 FROM tab0 ---- -1038 -6673 50 query I rowsort SELECT ALL col0 * - col2 + - cor0.col2 + - 77 AS col1 FROM tab1 AS cor0 ---- -293 -3782 -7853 query I rowsort SELECT + - 71 * cor0.col1 + 72 FROM tab0 cor0 ---- -6034 -6389 -6815 query I rowsort SELECT DISTINCT + - col1 * col2 + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + - col0 col2 FROM tab1 AS cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-3570 SELECT - col0 DIV - col1 + 4 FROM tab0 AS cor0 ---- 4 4 4 skipif mysql # not compatible query I rowsort label-3570 SELECT - col0 / - col1 + 4 FROM tab0 AS cor0 ---- 4 4 4 query I rowsort SELECT + 29 + - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 3503f707bea924acff38ab6a091443a1 query I rowsort SELECT DISTINCT 9 * col1 + + ( col0 + col1 ) FROM tab2 ---- 249 317 668 onlyif mysql # use DIV operator for integer division query I rowsort label-3573 SELECT - col2 DIV + col0 + - col0 AS col0 FROM tab1 cor0 ---- -21 -64 -81 skipif mysql # not compatible query I rowsort label-3573 SELECT - col2 / + col0 + - col0 AS col0 FROM tab1 cor0 ---- -21 -64 -81 query I rowsort SELECT + + 55 + col0 AS col2 FROM tab1 AS cor0 ---- 119 135 58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 17 col1 FROM tab0 ---- 17 17 17 query I rowsort SELECT DISTINCT 18 + - col2 FROM tab2 ---- -20 -8 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + - tab2.col2 col1 FROM tab2 ---- 0 query I rowsort SELECT - 7 * - col1 FROM tab0 ---- 602 637 679 query I rowsort SELECT ( cor0.col2 ) * - col2 + col0 FROM tab2 AS cor0 ---- -1365 -598 -722 onlyif mysql # use DIV operator for integer division query I rowsort label-3580 SELECT DISTINCT tab0.col0 DIV + col1 + - tab0.col0 AS col0 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-3580 SELECT DISTINCT tab0.col0 / + col1 + - tab0.col0 AS col0 FROM tab0 ---- -24 -35 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3581 SELECT ALL + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3581 SELECT ALL + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 * cor0.col2 + col1 col0 FROM tab1 AS cor0 ---- -1235 -1378 -560 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3583 SELECT DISTINCT + col0 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-3583 SELECT DISTINCT + col0 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-3584 SELECT ALL + cor0.col0 + + col1 DIV col0 FROM tab0 AS cor0 ---- 27 37 90 skipif mysql # not compatible query I rowsort label-3584 SELECT ALL + cor0.col0 + + col1 / col0 FROM tab0 AS cor0 ---- 27 37 90 query I rowsort SELECT - col2 * + 11 FROM tab1 ---- -1056 -594 -627 query I rowsort SELECT DISTINCT col0 * + 96 AS col2 FROM tab1 ---- 288 6144 7680 skipif mysql # not compatible query I rowsort SELECT + col2 + CAST ( + col1 AS REAL ) FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT - col1 + + ( + col0 ) * - col1 AS col2 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT + + col2 + col2 * - 23 FROM tab0 AS cor0 ---- -1804 -22 -726 query I rowsort SELECT DISTINCT col0 * + 12 + - 13 AS col0 FROM tab1 AS cor0 ---- 23 755 947 query I rowsort SELECT DISTINCT + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL col1 + 82 AS col0 FROM tab2 cor0 ---- 113 141 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 5 col2 FROM tab2 ---- 5 5 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 43 + - col0 col2 FROM tab2 cor0 ---- -35 -36 36 query I rowsort SELECT + col0 * + col2 * - col0 FROM tab0 cor0 ---- -1225 -19008 -649522 query I rowsort SELECT ALL + - 87 * - col1 FROM tab2 cor0 ---- 1479 2697 5133 query I rowsort SELECT - + col0 * + ( col2 * - col2 ) AS col2 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT DISTINCT + col0 * 60 AS col1 FROM tab1 AS cor0 ---- 180 3840 4800 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3599 SELECT ALL - CAST( 22 AS SIGNED ) * cor0.col2 AS col1 FROM tab1 AS cor0 ---- -1188 -1254 -2112 skipif mysql # not compatible query I rowsort label-3599 SELECT ALL - CAST ( 22 AS INTEGER ) * cor0.col2 AS col1 FROM tab1 AS cor0 ---- -1188 -1254 -2112 query I rowsort SELECT DISTINCT - ( 64 ) AS col2 FROM tab1 AS cor0 ---- -64 query I rowsort SELECT + 78 * + col0 AS col2 FROM tab0 cor0 ---- 1872 2730 6942 query I rowsort SELECT ALL - 45 * col2 FROM tab2 AS cor0 ---- -1170 -1215 -1710 query I rowsort SELECT DISTINCT 77 + 39 * cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1091 1130 1559 query I rowsort SELECT DISTINCT + + cor0.col2 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL + - col0 - + cor0.col2 * - 91 AS col2 FROM tab2 AS cor0 ---- 2288 2450 3379 query I rowsort SELECT DISTINCT + ( ( + col2 ) + + col1 ) * col0 AS col0 FROM tab1 ---- 240 4288 8720 onlyif mysql # use DIV operator for integer division query I rowsort label-3607 SELECT + col0 DIV + 29 AS col2 FROM tab2 AS cor0 ---- 0 2 2 skipif mysql # not compatible query I rowsort label-3607 SELECT + col0 / + 29 AS col2 FROM tab2 AS cor0 ---- 0 2 2 query I rowsort SELECT col0 * col1 + 1 AS col2 FROM tab1 AS cor0 ---- 1041 641 79 query I rowsort SELECT ALL col2 + - col1 * 1 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT - col1 + 74 * col1 FROM tab1 cor0 ---- 1898 730 949 query I rowsort SELECT + - col1 * - col2 + - col0 FROM tab2 cor0 ---- 1456 567 830 query I rowsort SELECT ALL + 66 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 29794915b585eea848ad670075452c88 query I rowsort SELECT + - 22 + 14 * col1 FROM tab2 AS cor0 ---- 216 412 804 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * + cor0.col0 col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-3615 SELECT - col1 DIV col1 + col1 FROM tab0 cor0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-3615 SELECT - col1 / col1 + col1 FROM tab0 cor0 ---- 85 90 96 query I rowsort SELECT 0 * cor0.col2 + 61 * col0 + col2 FROM tab1 AS cor0 ---- 237 3961 4976 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3617 SELECT + col1 * + col2 + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 cor0 ---- 194 2924 7553 skipif mysql # not compatible query I rowsort label-3617 SELECT + col1 * + col2 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 cor0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT + col0 * col2 + - col0 + 48 * + col0 FROM tab2 AS cor0 ---- 518 5694 6715 query I rowsort SELECT col0 + col0 * - col1 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT col2 * + cor0.col2 + - ( - col2 ) FROM tab1 AS cor0 ---- 2970 3306 9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col0 + - col0 col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT + col1 + cor0.col1 - + 34 FROM tab0 AS cor0 ---- 138 148 160 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1, tab2 cor2 ---- 972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859 onlyif mysql # use DIV operator for integer division query I rowsort label-3624 SELECT + + col0 DIV + col1 + - 36 * col2 + + col2 AS col2 FROM tab1 AS cor0 ---- -1890 -1989 -3354 skipif mysql # not compatible query I rowsort label-3624 SELECT + + col0 / + col1 + - 36 * col2 + + col2 AS col2 FROM tab1 AS cor0 ---- -1890 -1989 -3354 query I rowsort SELECT - col2 * - col0 * + 9 FROM tab0 ---- 315 65682 7128 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col2 + 92 + cor0.col0 col1 FROM tab0 AS cor0 ---- 128 149 263 query I rowsort SELECT DISTINCT 97 * - col0 * col0 FROM tab2 ---- -4753 -590148 -605377 onlyif mysql # use DIV operator for integer division query I rowsort label-3628 SELECT + col2 DIV ( + cor0.col2 ) FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3628 SELECT + col2 / ( + cor0.col2 ) FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL - col2 + - col0 * 32 AS col2 FROM tab1 AS cor0 ---- -150 -2105 -2656 query I rowsort SELECT + col2 + ( + col0 ) FROM tab1 cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-3631 SELECT DISTINCT col2 DIV col0 + 97 AS col1 FROM tab2 AS cor0 ---- 100 97 skipif mysql # not compatible query I rowsort label-3631 SELECT DISTINCT col2 / col0 + 97 AS col1 FROM tab2 AS cor0 ---- 100 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * - col2 + col0 col0 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT - + col2 * - ( - col1 ) FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL 13 + 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ebfbd032a0a7b9ce9f54a2516c43134d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3635 SELECT CAST( - col0 AS SIGNED ) + - col1 col0 FROM tab1 AS cor0 ---- -29 -74 -93 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3635 SELECT CAST ( - col0 AS INTEGER ) + - col1 col0 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT col1 + 62 * tab0.col0 FROM tab0 ---- 1574 2267 5609 skipif mysql # not compatible query I rowsort SELECT + + col0 / + ( - ( col0 ) ) + CAST ( 23 AS REAL ) FROM tab0 AS cor0 ---- 22 22 22 query I rowsort SELECT + col0 * + ( col1 * - col0 + col1 ) FROM tab0 ---- -115430 -47472 -712712 onlyif mysql # use DIV operator for integer division query I rowsort label-3639 SELECT DISTINCT + col0 DIV col0 + - tab1.col1 AS col0 FROM tab1 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-3639 SELECT DISTINCT + col0 / col0 + - tab1.col1 AS col0 FROM tab1 ---- -12 -25 -9 query I rowsort SELECT DISTINCT - col0 + - col1 * + 20 FROM tab2 ---- -1258 -419 -627 query I rowsort SELECT ALL 41 + 26 FROM tab2, tab0, tab1 cor0 ---- 27 values hashing to eea8a0738728ea55e4e7ba1506c9905a query I rowsort SELECT + 2 AS col0 FROM tab0 ---- 2 2 2 query I rowsort SELECT col2 - - col2 * + 17 * - col2 FROM tab0 ---- -114226 -16 -18480 query I rowsort SELECT DISTINCT tab1.col1 - - col2 FROM tab1 ---- 109 67 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3645 SELECT + ( cor0.col0 ) + CAST( col1 AS SIGNED ) FROM tab1 AS cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-3645 SELECT + ( cor0.col0 ) + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-3646 SELECT - + col2 - col2 DIV col2 FROM tab1 AS cor0 ---- -55 -58 -97 skipif mysql # not compatible query I rowsort label-3646 SELECT - + col2 - col2 / col2 FROM tab1 AS cor0 ---- -55 -58 -97 query I rowsort SELECT - col2 * + col0 - - 79 FROM tab0 AS cor0 ---- -713 -7219 44 query I rowsort SELECT ALL - 0 + 17 + + col2 FROM tab1 ---- 113 71 74 query I rowsort SELECT - col1 + - tab2.col2 + col1 * col1 * - 33 FROM tab2 ---- -114958 -31771 -9592 onlyif mysql # use DIV operator for integer division query I rowsort label-3650 SELECT DISTINCT + + 97 DIV - ( col0 ) FROM tab2 AS cor0 ---- -1 -13 skipif mysql # not compatible query I rowsort label-3650 SELECT DISTINCT + + 97 / - ( col0 ) FROM tab2 AS cor0 ---- -1 -13 query I rowsort SELECT + - ( col0 ) * col1 AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + tab1.col2 * col0 + + col2 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT tab2.col2 + col1 + - col2 AS col2 FROM tab2 ---- 17 31 59 query I rowsort SELECT - col0 * - 85 + col1 AS col2 FROM tab1 ---- 281 5450 6813 query I rowsort SELECT DISTINCT - col1 * tab0.col2 * col1 + col1 * col0 AS col2 FROM tab0 ---- -242004 -6014 -670943 query I rowsort SELECT DISTINCT + 4 + 11 FROM tab0 ---- 15 query I rowsort SELECT - 13 FROM tab2, tab1 cor0 ---- 9 values hashing to e95f5f4bd0f480397cced5f5e8a23792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 - col1 col0 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT 65 * - col0 + col0 FROM tab1 AS cor0 ---- -192 -4096 -5120 query I rowsort SELECT ALL - - col1 + 55 FROM tab0 AS cor0 ---- 141 146 152 query I rowsort SELECT + 93 + col2 + col1 FROM tab2 AS cor0 ---- 148 151 178 query I rowsort SELECT ALL - 24 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 797d0f7c145f8ac623924448c714bbcc query I rowsort SELECT ALL + 33 + col0 * cor0.col1 AS col0 FROM tab2 cor0 ---- 1376 250 4635 query I rowsort SELECT ALL + 44 * col2 AS col2 FROM tab2 AS cor0 ---- 1144 1188 1672 query I rowsort SELECT ALL - col0 * col1 + ( col0 ) FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT + col2 * col1 * + 44 FROM tab1 AS cor0 ---- 25080 54912 61776 query I rowsort SELECT DISTINCT + col1 - col0 AS col1 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT DISTINCT - col2 * - cor0.col0 AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 3 col1 FROM tab0 AS cor0 ---- 3 query I rowsort SELECT col1 * + col0 + col0 + + col2 AS col1 FROM tab0 cor0 ---- 2121 3431 8270 query I rowsort SELECT DISTINCT + 91 * col2 AS col1 FROM tab1 AS cor0 ---- 4914 5187 8736 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3672 SELECT - col0 / + col0 + + CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3672 SELECT - col0 / + col0 + + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 94 * col2 FROM tab2 cor0 ---- -2444 -2538 -3572 query I rowsort SELECT ALL - ( tab2.col0 ) * - col0 + - col2 + - col0 AS col2 FROM tab2 ---- 15 5980 6124 query I rowsort SELECT DISTINCT - 55 * - col2 * col1 + col2 AS col0 FROM tab2 ---- 35568 46062 84396 query I rowsort SELECT DISTINCT - 15 AS col1 FROM tab1, tab1 cor0 ---- -15 query I rowsort SELECT + col0 * + col2 + + 99 AS col1 FROM tab1 AS cor0 ---- 261 3747 7779 query I rowsort SELECT ALL - col2 * col1 * + col2 + col0 + col2 FROM tab0 ---- -61 -611713 -93597 query I rowsort SELECT ( + 60 ) - col1 FROM tab2 ---- 1 29 43 query I rowsort SELECT DISTINCT 48 FROM tab0, tab0 cor0 ---- 48 query I rowsort SELECT ALL + - col1 + + 34 + + col1 AS col1 FROM tab2 AS cor0 ---- 34 34 34 query I rowsort SELECT ALL col1 * + 78 AS col1 FROM tab0 AS cor0 ---- 6708 7098 7566 query I rowsort SELECT ALL - - col2 - - ( 22 ) FROM tab0 AS cor0 ---- 104 23 55 query I rowsort SELECT + col2 + ( col0 ) AS col1 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT + col1 * ( cor0.col0 ) FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL col1 * 53 + + 77 AS col1 FROM tab1 cor0 ---- 1455 607 766 query I rowsort SELECT DISTINCT 31 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 31 query I rowsort SELECT DISTINCT 64 AS col0 FROM tab2 ---- 64 query I rowsort SELECT ALL + - col2 + ( col2 ) + col0 AS col0 FROM tab1 AS cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 - - col1 col1 FROM tab1 ---- 20 26 52 query I rowsort SELECT cor0.col1 + - 48 * col0 AS col2 FROM tab1 AS cor0 ---- -118 -3062 -3827 query I rowsort SELECT DISTINCT 84 + cor0.col0 FROM tab1 AS cor0 ---- 148 164 87 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3693 SELECT col0 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3693 SELECT col0 - + CAST ( NULL AS REAL ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - tab0.col0 * 42 - col0 * - col2 AS col1 FROM tab0 ---- -1435 -216 3560 query I rowsort SELECT + + col0 * - 77 FROM tab1 AS cor0 ---- -231 -4928 -6160 query I rowsort SELECT + - ( - 64 ) AS col1 FROM tab1 AS cor0 ---- 64 64 64 query I rowsort SELECT ALL - ( + 47 ) * col2 FROM tab1 cor0 ---- -2538 -2679 -4512 onlyif mysql # use DIV operator for integer division query I rowsort label-3698 SELECT DISTINCT + col0 DIV - col0 + + col2 + + col1 * - col0 col1 FROM tab2 AS cor0 ---- -1306 -191 -4577 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3698 SELECT DISTINCT + col0 / - col0 + + col2 + + col1 * - col0 col1 FROM tab2 AS cor0 ---- -1306 -191 -4577 query I rowsort SELECT DISTINCT - 64 * - col2 + + col0 * col2 FROM tab0 AS cor0 ---- 12546 2904 99 query I rowsort SELECT + 85 * + 2 * col1 AS col2 FROM tab0 AS cor0 ---- 14620 15470 16490 query I rowsort SELECT 41 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 query I rowsort SELECT ALL ( + 96 ) + col2 * - ( - 76 ) AS col2 FROM tab2 ---- 2072 2148 2984 query I rowsort SELECT tab2.col0 + ( col2 ) AS col1 FROM tab2 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-3704 SELECT cor0.col1 * - 56 + + col0 DIV - col1 FROM tab0 AS cor0 ---- -4816 -5096 -5432 skipif mysql # not compatible query I rowsort label-3704 SELECT cor0.col1 * - 56 + + col0 / - col1 FROM tab0 AS cor0 ---- -4816 -5096 -5432 query I rowsort SELECT ALL + + 31 * 46 + cor0.col2 + col0 FROM tab0 AS cor0 ---- 1462 1483 1597 query I rowsort SELECT ( ( col1 ) ) * cor0.col2 - 35 * col0 AS col1 FROM tab1 AS cor0 ---- -1552 -1670 1299 query I rowsort SELECT ALL col1 + + ( - col2 ) * col1 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT + ( ( col0 ) ) - + ( 66 ) AS col2 FROM tab1 AS cor0 ---- -2 -63 14 onlyif mysql # use DIV operator for integer division query I rowsort label-3709 SELECT ALL + col2 DIV - col1 + col1 DIV - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3709 SELECT ALL + col2 / - col1 + col1 / - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT + col1 * + 52 AS col2 FROM tab0 AS cor0 ---- 4472 4732 5044 query I rowsort SELECT ALL + + col2 * - col0 + + col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT - - col0 + col0 + cor0.col1 * col0 * - col2 FROM tab0 cor0 ---- -3325 -663940 -68064 onlyif mysql # use DIV operator for integer division query I rowsort label-3713 SELECT - + ( col2 ) DIV + 83 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3713 SELECT - + ( col2 ) / + 83 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - 51 * + col0 * ( 70 ) + - cor0.col0 FROM tab2 AS cor0 ---- -24997 -278538 -282109 query I rowsort SELECT ALL - 22 * + col0 AS col1 FROM tab0 ---- -1958 -528 -770 onlyif mysql # use DIV operator for integer division query I rowsort label-3716 SELECT DISTINCT - - col2 + 52 DIV col0 AS col0 FROM tab0 AS cor0 ---- 2 35 82 skipif mysql # not compatible query I rowsort label-3716 SELECT DISTINCT - - col2 + 52 / col0 AS col0 FROM tab0 AS cor0 ---- 2 35 82 query I rowsort SELECT 98 FROM tab1, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3718 SELECT ALL - + col1 * CAST( col2 AS SIGNED ) - col1 AS col0 FROM tab0 AS cor0 ---- -194 -2924 -7553 skipif mysql # not compatible query I rowsort label-3718 SELECT ALL - + col1 * CAST ( col2 AS INTEGER ) - col1 AS col0 FROM tab0 AS cor0 ---- -194 -2924 -7553 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3719 SELECT DISTINCT + + col0 * + CAST( + col1 AS SIGNED ) + cor0.col2 * col0 FROM tab0 AS cor0 ---- 15397 2856 3430 skipif mysql # not compatible query I rowsort label-3719 SELECT DISTINCT + + col0 * + CAST ( + col1 AS INTEGER ) + cor0.col2 * col0 FROM tab0 AS cor0 ---- 15397 2856 3430 onlyif mysql # use DIV operator for integer division query I rowsort label-3720 SELECT DISTINCT - - col0 DIV col1 col2 FROM tab0 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3720 SELECT DISTINCT - - col0 / col1 col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - col0 + - ( + 79 ) * col1 FROM tab0 AS cor0 ---- -6818 -7278 -7698 query I rowsort SELECT ALL + col2 + + 68 * col2 + + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 3729 3997 6704 query I rowsort SELECT ALL - col1 * 30 + col1 AS col1 FROM tab2 AS cor0 ---- -1711 -493 -899 query I rowsort SELECT col1 + col1 * col1 AS col1 FROM tab1 ---- 110 182 702 query I rowsort SELECT - 83 * - col1 FROM tab2 ---- 1411 2573 4897 query I rowsort SELECT ALL - - 6 AS col2 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3727 SELECT cor0.col0 * CAST( NULL AS SIGNED ) * + 5 + col1 * col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3727 SELECT cor0.col0 * CAST ( NULL AS INTEGER ) * + 5 + col1 * col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 + 71 AS col1 FROM tab1 AS cor0 ---- -9 68 7 query I rowsort SELECT + 24 * - tab1.col0 FROM tab1 ---- -1536 -1920 -72 query I rowsort SELECT ALL + 13 AS col0 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed query I rowsort SELECT ALL - col0 + ( + col0 * - col1 ) + ( + col1 * col0 ) FROM tab1 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 + col2 col1 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * col1 + + col1 col1 FROM tab2 cor0 ---- 306 3540 992 query I rowsort SELECT 93 AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde query I rowsort SELECT DISTINCT - ( col2 ) * - col2 * + 13 FROM tab2 AS cor0 ---- 18772 8788 9477 query I rowsort SELECT + ( 52 ) AS col0 FROM tab0 AS cor0 ---- 52 52 52 query I rowsort SELECT + cor0.col2 * - 64 + col0 FROM tab0 AS cor0 ---- -2088 -29 -5159 onlyif mysql # use DIV operator for integer division query I rowsort label-3738 SELECT DISTINCT + - ( col0 ) - col1 DIV - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 ---- -21 -33 -88 skipif mysql # not compatible query I rowsort label-3738 SELECT DISTINCT + - ( col0 ) - col1 / - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 ---- -21 -33 -88 query I rowsort SELECT + - col0 * + col0 - + col2 AS col0 FROM tab1 cor0 ---- -4153 -63 -6496 query I rowsort SELECT DISTINCT col0 * col1 - + col0 AS col2 FROM tab1 ---- 576 75 960 query I rowsort SELECT - cor0.col0 + cor0.col2 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 5b9ded363f55d1d4bbc85491d2b84046 query I rowsort SELECT - + 48 + - col1 AS col1 FROM tab0 AS cor0 ---- -134 -139 -145 query I rowsort SELECT + + col0 - - col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT - - col1 + cor0.col0 * - ( - col2 ) AS col1 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT + col2 * cor0.col0 + + col1 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT 37 + cor0.col1 * + 25 FROM tab2 AS cor0 ---- 1512 462 812 query I rowsort SELECT DISTINCT col1 - - col0 * + col0 AS col0 FROM tab1 ---- 35 4106 6413 query I rowsort SELECT ALL + + col2 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT + 30 * - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -1920 -2400 -90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3750 SELECT - + col0 - col1 * CAST( + col0 AS SIGNED ) * cor0.col1 FROM tab1 AS cor0 ---- -13600 -2031 -6464 skipif mysql # not compatible query I rowsort label-3750 SELECT - + col0 - col1 * CAST ( + col0 AS INTEGER ) * cor0.col1 FROM tab1 AS cor0 ---- -13600 -2031 -6464 query I rowsort SELECT + - 63 * col2 * col1 FROM tab0 AS cor0 ---- -178794 -470106 -6111 query I rowsort SELECT cor0.col2 * - ( + col2 + col0 ) AS col1 FROM tab0 AS cor0 ---- -14022 -1881 -36 query I rowsort SELECT DISTINCT cor0.col2 * 43 FROM tab1 AS cor0 ---- 2322 2451 4128 query I rowsort SELECT + cor0.col1 * 85 AS col1 FROM tab0 cor0 ---- 7310 7735 8245 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * col2 - 58 * + col2 col0 FROM tab2 cor0 ---- -1377 520 798 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 64 col2 FROM tab2, tab0 AS cor0 ---- -64 query I rowsort SELECT DISTINCT + col2 + - 71 AS col2 FROM tab2 AS cor0 ---- -33 -44 -45 query I rowsort SELECT + + col2 * + 30 AS col1 FROM tab0 AS cor0 ---- 2460 30 990 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 34 col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT + ( 63 * - col1 ) FROM tab2 ---- -1071 -1953 -3717 onlyif mysql # use DIV operator for integer division query I rowsort label-3761 SELECT ALL - 33 DIV - col2 + col1 AS col0 FROM tab1 cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-3761 SELECT ALL - 33 / - col2 + col1 AS col0 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT ALL + 38 * col0 AS col0 FROM tab1 ---- 114 2432 3040 query I rowsort SELECT DISTINCT - 74 * + cor0.col1 - 93 FROM tab2, tab0 AS cor0 ---- -6457 -6827 -7271 query I rowsort SELECT col1 * 63 * col2 + ( tab0.col0 ) AS col2 FROM tab0 ---- 178818 470195 6146 query I rowsort SELECT ( + col0 ) - col1 * - ( col0 ) AS col2 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT + col0 * col0 - col0 FROM tab1 AS cor0 ---- 4032 6 6320 query I rowsort SELECT col2 * 8 + + col2 * col2 FROM tab1 ---- 3348 3705 9984 query I rowsort SELECT col1 * - 48 FROM tab1 ---- -1248 -480 -624 query I rowsort SELECT DISTINCT - col2 * + cor0.col0 * col1 FROM tab1 AS cor0 ---- -36480 -4212 -99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col1 ) * col0 + col1 * + 81 col0 FROM tab2 ---- 177 2294 34 onlyif mysql # use DIV operator for integer division query I rowsort label-3771 SELECT ALL - col0 DIV + col1 + tab2.col2 DIV - 80 col2 FROM tab2 ---- -1 -4 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3771 SELECT ALL - col0 / + col1 + tab2.col2 / - 80 col2 FROM tab2 ---- -1 -4 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3772 SELECT + CAST( NULL AS SIGNED ) * col0 * col2 + tab2.col1 col2 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3772 SELECT + CAST ( NULL AS INTEGER ) * col0 * col2 + tab2.col1 col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col0 * + col0 * col2 + col0 AS col2 FROM tab2 ---- -1316 -158106 -237079 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + col2 * col1 * col2 col1 FROM tab2 ---- 22626 24586 39910 query I rowsort SELECT DISTINCT + 68 * col2 * col0 + + ( col0 ) FROM tab2 cor0 ---- 12859 137982 204215 query I rowsort SELECT ALL + cor0.col0 + ( - col0 ) + + col0 AS col2 FROM tab1 cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 + cor0.col0 col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT col0 * cor0.col2 - col2 AS col1 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT 56 + cor0.col0 FROM tab2 AS cor0 ---- 134 135 63 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3780 SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) + + col1 + cor0.col1 FROM tab2 AS cor0 ---- 144 72 89 skipif mysql # not compatible query I rowsort label-3780 SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) + + col1 + cor0.col1 FROM tab2 AS cor0 ---- 144 72 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3781 SELECT + CAST( col0 AS SIGNED ) + col1 * col1 FROM tab1 AS cor0 ---- 164 249 679 skipif mysql # not compatible query I rowsort label-3781 SELECT + CAST ( col0 AS INTEGER ) + col1 * col1 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT ALL ( 61 ) + + col0 FROM tab1 cor0 ---- 125 141 64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( col0 ) + + col2 col2 FROM tab2 AS cor0 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 54 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a query I rowsort SELECT 79 - col1 * col1 AS col1 FROM tab1 ---- -21 -597 -90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 36 * - col0 * 71 col2 FROM tab0 cor0 ---- -227484 -61344 -89460 query I rowsort SELECT - 81 * - col1 FROM tab2 AS cor0 ---- 1377 2511 4779 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 42 * col0 col2 FROM tab0 AS cor0 ---- 1008 1470 3738 onlyif mysql # use DIV operator for integer division query I rowsort label-3789 SELECT DISTINCT + cor0.col2 DIV cor0.col2 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-3789 SELECT DISTINCT + cor0.col2 / cor0.col2 FROM tab1 AS cor0 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 * cor0.col1 + + 9 + cor0.col1 * 53 col2 FROM tab1 AS cor0 ---- 1179 1465 1738 query I rowsort SELECT DISTINCT - cor0.col0 + - cor0.col1 FROM tab2 AS cor0 ---- -137 -38 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-3792 SELECT col1 DIV col2 - ( 10 ) AS col2 FROM tab1 ---- -10 -10 -10 skipif mysql # not compatible query I rowsort label-3792 SELECT col1 / col2 - ( 10 ) AS col2 FROM tab1 ---- -10 -10 -10 onlyif mysql # use DIV operator for integer division query I rowsort label-3793 SELECT DISTINCT + + col1 + - col0 DIV col2 FROM tab0 AS cor0 ---- 62 86 90 skipif mysql # not compatible query I rowsort label-3793 SELECT DISTINCT + + col1 + - col0 / col2 FROM tab0 AS cor0 ---- 62 86 90 onlyif mysql # use DIV operator for integer division query I rowsort label-3794 SELECT DISTINCT + - col0 DIV col1 - col1 AS col0 FROM tab2 AS cor0 ---- -21 -31 -60 skipif mysql # not compatible query I rowsort label-3794 SELECT DISTINCT + - col0 / col1 - col1 AS col0 FROM tab2 AS cor0 ---- -21 -31 -60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + - 48 + col2 col2 FROM tab1 cor0 ---- 128 73 9 query I rowsort SELECT DISTINCT - - col1 + - ( col0 ) FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT ALL - + col2 * cor0.col1 * col2 AS col1 FROM tab0 cor0 ---- -611884 -93654 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + cor0.col1 col0 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-3799 SELECT - col2 DIV - 34 AS col0 FROM tab1 AS cor0 ---- 1 1 2 skipif mysql # not compatible query I rowsort label-3799 SELECT - col2 / - 34 AS col0 FROM tab1 AS cor0 ---- 1 1 2 onlyif mysql # use DIV operator for integer division query I rowsort label-3800 SELECT - 43 DIV col2 AS col0 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3800 SELECT - 43 / col2 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 29 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 query I rowsort SELECT ALL col2 * ( col0 ) * tab0.col1 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT ALL 61 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col1 + + col0 * col2 * - col1 + 99 col0 FROM tab1 AS cor0 ---- -3437 -36281 -99572 query I rowsort SELECT DISTINCT + - 30 * col2 + + ( col1 ) FROM tab1 cor0 ---- -1594 -1700 -2867 query I rowsort SELECT + cor0.col2 + - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3807 SELECT DISTINCT col2 * col1 + CAST( NULL AS SIGNED ) + + 82 * col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3807 SELECT DISTINCT col2 * col1 + CAST ( NULL AS INTEGER ) + + 82 * col0 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 49 + 54 * + col2 col1 FROM tab1 ---- 2867 3029 5135 query I rowsort SELECT DISTINCT col1 * + 40 + + tab0.col2 AS col2 FROM tab0 ---- 3473 3722 3881 query I rowsort SELECT + - cor0.col1 + + col2 + + col2 FROM tab0 AS cor0 ---- -20 -95 73 query I rowsort SELECT 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 query I rowsort SELECT ALL + - col0 * col0 + col2 AS col1 FROM tab2 AS cor0 ---- -22 -6058 -6203 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 14 * + col0 col1 FROM tab2 AS cor0 ---- -1092 -1106 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-3814 SELECT - 97 DIV + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3814 SELECT - 97 / + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT col2 + cor0.col1 AS col1 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT ALL + - col1 * cor0.col1 + - col2 * col1 + - col2 AS col0 FROM tab1 cor0 ---- -1513 -2134 -727 query I rowsort SELECT DISTINCT - 45 * + tab2.col1 FROM tab2 ---- -1395 -2655 -765 query I rowsort SELECT - ( col2 ) + cor0.col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT - + cor0.col2 + col2 + col1 * col2 * col1 AS col1 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT - + 12 + col0 + - col2 FROM tab0 AS cor0 ---- -21 -5 22 onlyif mysql # use DIV operator for integer division query I rowsort label-3821 SELECT + 17 DIV + col1 + col1 * - col2 FROM tab1 AS cor0 ---- -1247 -1404 -569 skipif mysql # not compatible query I rowsort label-3821 SELECT + 17 / + col1 + col1 * - col2 FROM tab1 AS cor0 ---- -1247 -1404 -569 query I rowsort SELECT + ( 42 ) + col2 * - ( 74 * + col0 ) AS col2 FROM tab2 AS cor0 ---- -13944 -150030 -222106 query I rowsort SELECT + ( 95 ) FROM tab1 AS cor0 ---- 95 95 95 query I rowsort SELECT - + ( 69 ) * + cor0.col0 * col2 + - col2 AS col1 FROM tab1 AS cor0 ---- -11232 -251769 -530016 onlyif mysql # use DIV operator for integer division query I rowsort label-3825 SELECT - col1 DIV ( col0 ) FROM tab0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-3825 SELECT - col1 / ( col0 ) FROM tab0 ---- -1 -2 -3 onlyif mysql # use DIV operator for integer division query I rowsort label-3826 SELECT + col1 DIV 56 FROM tab2 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3826 SELECT + col1 / 56 FROM tab2 ---- 0 0 1 query I rowsort SELECT col2 * - col1 * col2 AS col1 FROM tab1 ---- -119808 -32490 -75816 query I rowsort SELECT DISTINCT + tab1.col1 * col2 + - 15 FROM tab1 ---- 1233 1389 555 query I rowsort SELECT - cor0.col0 + col2 * - col1 AS col2 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT DISTINCT 69 + + col1 + + col1 FROM tab0 AS cor0 ---- 241 251 263 query I rowsort SELECT ( - col1 ) - + col0 AS col2 FROM tab1 cor0 ---- -29 -74 -93 query I rowsort SELECT + col1 + 12 * col1 FROM tab2 AS cor0 ---- 221 403 767 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 93 col0 FROM tab0 cor0 ---- 93 93 93 query I rowsort SELECT DISTINCT + 3 * tab0.col2 AS col1 FROM tab0 ---- 246 3 99 query I rowsort SELECT DISTINCT + cor0.col2 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1 ---- 54 57 96 query I rowsort SELECT ALL - + cor0.col0 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * + col2 col0 FROM tab2 ---- -1534 -646 -837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 74 col0 FROM tab2, tab0 AS cor0 ---- 74 query I rowsort SELECT ALL - col0 * ( col0 ) AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT cor0.col0 * - 55 AS col0 FROM tab1, tab0 AS cor0 ---- -1320 -1925 -4895 query I rowsort SELECT cor1.col2 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab0 cor0, tab2 AS cor1, tab0 cor2 ---- 972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28 query I rowsort SELECT ALL - col1 * ( 13 ) AS col0 FROM tab1 ---- -130 -169 -338 query I rowsort SELECT col0 * 58 FROM tab0 cor0 ---- 1392 2030 5162 query I rowsort SELECT + + col2 * - 87 AS col0 FROM tab1 AS cor0 ---- -4698 -4959 -8352 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3846 SELECT ALL + CAST( - col2 AS SIGNED ) + col0 FROM tab0 AS cor0 ---- -9 34 7 skipif mysql # not compatible query I rowsort label-3846 SELECT ALL + CAST ( - col2 AS INTEGER ) + col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT ALL col0 - + col2 * col1 AS col0 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT + cor0.col0 + - 67 FROM tab2 AS cor0 ---- -60 11 12 query I rowsort SELECT DISTINCT - + col0 * 31 + - col0 FROM tab0 AS cor0 ---- -1120 -2848 -768 query I rowsort SELECT ALL + 57 * col0 * + col1 + + 38 + - cor0.col0 FROM tab1 AS cor0 ---- 36454 4481 59238 query I rowsort SELECT DISTINCT + 42 + - 65 * col0 * 9 + col1 AS col2 FROM tab0 AS cor0 ---- -13912 -20336 -51932 query I rowsort SELECT DISTINCT - - 65 * + col0 FROM tab0 AS cor0 ---- 1560 2275 5785 onlyif mysql # use DIV operator for integer division query I rowsort label-3853 SELECT 25 DIV + cor0.col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 83c163442931d28e4160369d40047ea7 skipif mysql # not compatible query I rowsort label-3853 SELECT 25 / + cor0.col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 83c163442931d28e4160369d40047ea7 query I rowsort SELECT ALL - 77 - + col2 FROM tab1 AS cor0 ---- -131 -134 -173 query I rowsort SELECT + + col1 * - col2 AS col0 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT - col0 - + col1 * + col1 FROM tab1 ---- -164 -249 -679 query I rowsort SELECT + cor0.col1 + - col2 AS col1 FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT DISTINCT - tab0.col0 * - col2 + ( - tab0.col0 ) + + col2 FROM tab0 ---- 1 7291 801 query I rowsort SELECT 78 + - tab2.col1 * 36 FROM tab2 ---- -1038 -2046 -534 query I rowsort SELECT DISTINCT col0 + tab1.col1 + col0 FROM tab1 ---- 138 173 32 query I rowsort SELECT 6 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04 query I rowsort SELECT - - ( - col2 ) * col1 + + col0 FROM tab0 cor0 ---- -2814 -62 -7373 query I rowsort SELECT + col0 + 84 AS col2 FROM tab2 cor0 ---- 162 163 91 query I rowsort SELECT ALL + - col0 + - 94 AS col0 FROM tab0 AS cor0 ---- -118 -129 -183 query I rowsort SELECT cor0.col2 + + cor0.col2 FROM tab0 AS cor0 ---- 164 2 66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * + 1 col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT ALL - + col2 + + 10 AS col2 FROM tab1 cor0 ---- -44 -47 -86 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( + 28 AS REAL ) + cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 854cd0783f6eb75c7d821236b8d623f1 query I rowsort SELECT DISTINCT + cor0.col2 + - col2 * + col0 * + col2 FROM tab1 AS cor0 ---- -207879 -737184 -8694 query I rowsort SELECT DISTINCT col2 * col1 * + cor0.col2 + + 82 AS col1 FROM tab0 AS cor0 ---- 179 611966 93736 query I rowsort SELECT + 0 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 onlyif mysql # use DIV operator for integer division query I rowsort label-3872 SELECT 47 + - col1 DIV + col2 FROM tab0 ---- -50 45 46 skipif mysql # not compatible query I rowsort label-3872 SELECT 47 + - col1 / + col2 FROM tab0 ---- -50 45 46 query I rowsort SELECT ALL - 9 * + col2 AS col0 FROM tab1 AS cor0 ---- -486 -513 -864 query I rowsort SELECT + + 59 + col1 AS col0 FROM tab2 AS cor0 ---- 118 76 90 onlyif mysql # use DIV operator for integer division query I rowsort label-3875 SELECT ALL + col0 + + col1 DIV - col2 AS col2 FROM tab1 cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-3875 SELECT ALL + col0 + + col1 / - col2 AS col2 FROM tab1 cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-3876 SELECT ALL 30 DIV col1 FROM tab1 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-3876 SELECT ALL 30 / col1 FROM tab1 ---- 1 2 3 query I rowsort SELECT ALL + + col1 - + col1 * col2 * - ( ( - cor0.col2 ) ) AS col0 FROM tab1 cor0 ---- -119795 -32480 -75790 query I rowsort SELECT col1 * - col2 * col0 AS col1 FROM tab0 cor0 ---- -3395 -664118 -68112 query I rowsort SELECT ALL col2 * - 85 FROM tab1 ---- -4590 -4845 -8160 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor1.col1 col1 FROM tab0, tab0 AS cor0, tab1 cor1, tab1 AS cor2 ---- -10 -13 -26 query I rowsort SELECT + col2 + - 67 + ( col2 ) FROM tab1 AS cor0 ---- 125 41 47 onlyif mysql # use DIV operator for integer division query I rowsort label-3882 SELECT DISTINCT col2 + - ( + col1 + col0 ) DIV 57 FROM tab1 ---- 54 56 95 skipif mysql # not compatible query I rowsort label-3882 SELECT DISTINCT col2 + - ( + col1 + col0 ) / 57 FROM tab1 ---- 54 56 95 query I rowsort SELECT + tab0.col0 * 26 AS col0 FROM tab0 ---- 2314 624 910 query I rowsort SELECT - tab1.col2 * ( 82 ) * + tab1.col2 AS col1 FROM tab1 ---- -239112 -266418 -755712 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 63 * cor0.col2 col0 FROM tab0 AS cor0 ---- -2079 -5166 -63 query I rowsort SELECT ALL + col2 + - cor0.col0 * col1 AS col0 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT DISTINCT + - ( 97 ) * cor0.col1 FROM tab0 AS cor0 ---- -8342 -8827 -9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3888 SELECT ALL + + CAST( + col2 AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-3888 SELECT ALL + + CAST ( + col2 AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT - - tab1.col0 FROM tab1, tab2 AS cor0, tab0, tab1 cor1 ---- 81 values hashing to e28bf7f922650ca423ade3642ce0285b query I rowsort SELECT + col1 * col1 + col2 * col2 AS col0 FROM tab0 ---- 15005 8485 9410 query I rowsort SELECT ALL - 81 + col1 * col0 AS col2 FROM tab0 AS cor0 ---- 1983 3314 8018 query I rowsort SELECT + + 31 + col2 * col1 FROM tab1 AS cor0 ---- 1279 1435 601 query I rowsort SELECT DISTINCT + - 79 AS col1 FROM tab1 cor0 ---- -79 onlyif mysql # use DIV operator for integer division query I rowsort label-3894 SELECT + - 34 + - col1 DIV - col0 FROM tab0 cor0 ---- -31 -32 -33 skipif mysql # not compatible query I rowsort label-3894 SELECT + - 34 + - col1 / - col0 FROM tab0 cor0 ---- -31 -32 -33 query I rowsort SELECT + ( + 15 ) AS col0 FROM tab1 AS cor0 ---- 15 15 15 query I rowsort SELECT DISTINCT + ( - col1 ) * + cor0.col2 + 11 + col2 AS col2 FROM tab1 cor0 ---- -1141 -1339 -502 query I rowsort SELECT ALL + 87 * 25 FROM tab0 AS cor0 ---- 2175 2175 2175 query I rowsort SELECT DISTINCT cor0.col2 + col0 * col2 AS col1 FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3899 SELECT ALL - CAST( col2 AS SIGNED ) + - col0 col1 FROM tab1 AS cor0 ---- -121 -176 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3899 SELECT ALL - CAST ( col2 AS INTEGER ) + - col0 col1 FROM tab1 AS cor0 ---- -121 -176 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3900 SELECT CAST( + col1 AS SIGNED ) col1 FROM tab0 cor0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3900 SELECT CAST ( + col1 AS INTEGER ) col1 FROM tab0 cor0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3901 SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col0 * col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3901 SELECT DISTINCT + CAST ( NULL AS REAL ) * - col0 * col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL - - cor0.col2 * col0 + col0 + 29 AS col1 FROM tab0 AS cor0 ---- 7416 845 99 query I rowsort SELECT DISTINCT + ( - cor0.col0 ) * cor0.col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL ( + col1 ) + col2 * - 42 FROM tab1 AS cor0 ---- -2242 -2384 -4019 query I rowsort SELECT ALL + ( 79 ) AS col0 FROM tab0 ---- 79 79 79 query I rowsort SELECT ALL + col1 * col0 * col0 AS col2 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT + col0 * - col2 * - col0 FROM tab2 ---- 1323 158184 237158 query I rowsort SELECT col2 * 23 * tab1.col1 FROM tab1 ---- 13110 28704 32292 onlyif mysql # use DIV operator for integer division query I rowsort label-3909 SELECT cor0.col1 DIV + cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 5979b2821cb63346a31b3dbd040c329c skipif mysql # not compatible query I rowsort label-3909 SELECT cor0.col1 / + cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 5979b2821cb63346a31b3dbd040c329c query I rowsort SELECT ALL 26 * cor1.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- 81 values hashing to 299f80378546423a801a6e7852a3c1cf query I rowsort SELECT ( cor0.col1 ) + + col1 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT + col1 + 53 * - cor0.col1 * ( + col1 ) + - col1 FROM tab2 AS cor0 ---- -15317 -184493 -50933 query I rowsort SELECT ALL - + 5 * - cor0.col0 AS col1 FROM tab1 AS cor0 ---- 15 320 400 query I rowsort SELECT + + col0 + + col0 * cor0.col1 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT + cor0.col0 + col0 * + ( col2 ) FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT DISTINCT - - 5 + - cor0.col2 FROM tab1 AS cor0 ---- -49 -52 -91 query I rowsort SELECT + + 43 * col0 AS col1 FROM tab2 AS cor0 ---- 301 3354 3397 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 69 col2 FROM tab1 AS cor0 ---- 69 query I rowsort SELECT DISTINCT col2 * col0 * + col2 AS col0 FROM tab0 ---- 26136 35 598436 query I rowsort SELECT DISTINCT - 13 * col2 * - col2 FROM tab0 ---- 13 14157 87412 query I rowsort SELECT - col0 + 71 AS col1 FROM tab0 ---- -18 36 47 query I rowsort SELECT DISTINCT - 55 * 43 AS col1 FROM tab2 ---- -2365 query I rowsort SELECT ALL + col1 * col1 + + col2 * - col1 AS col2 FROM tab2 AS cor0 ---- -357 124 1947 query I rowsort SELECT + - col2 + ( 40 ) AS col0 FROM tab0 AS cor0 ---- -42 39 7 query I rowsort SELECT DISTINCT - col1 * ( + cor0.col1 ) FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT + + col0 - col0 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT ALL + col2 + + 16 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 1409 1538 1553 query I rowsort SELECT DISTINCT + cor0.col2 * - 77 + + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -1924 -2072 -2847 onlyif mysql # use DIV operator for integer division query I rowsort label-3929 SELECT DISTINCT + col2 DIV - col0 col1 FROM tab1 AS cor0 ---- -1 -18 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3929 SELECT DISTINCT + col2 / - col0 col1 FROM tab1 AS cor0 ---- -1 -18 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * + 97 col0 FROM tab2 ---- 1649 3007 5723 query I rowsort SELECT + - col0 * + col0 + 92 AS col2 FROM tab2 cor0 ---- -5992 -6149 43 onlyif mysql # use DIV operator for integer division query I rowsort label-3932 SELECT + - col0 DIV + ( col0 ) FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3932 SELECT + - col0 / + ( col0 ) FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + col2 * 96 - - col1 FROM tab2 AS cor0 ---- 2555 2623 3665 onlyif mysql # use DIV operator for integer division query I rowsort label-3934 SELECT DISTINCT - col2 DIV + 2 AS col1 FROM tab2 AS cor0 ---- -13 -19 skipif mysql # not compatible query I rowsort label-3934 SELECT DISTINCT - col2 / + 2 AS col1 FROM tab2 AS cor0 ---- -13 -19 query I rowsort SELECT ALL + col2 * - ( + col0 + col2 ) FROM tab2 cor0 ---- -2704 -4446 -918 query I rowsort SELECT - 62 * col2 FROM tab0 AS cor0 ---- -2046 -5084 -62 query I rowsort SELECT DISTINCT - col0 * - 65 + tab1.col1 AS col2 FROM tab1 ---- 221 4170 5213 query I rowsort SELECT + cor0.col0 * col1 + col2 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT + tab1.col0 - col2 AS col2 FROM tab1 ---- -16 -51 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 96 + col2 * col2 * 2 col0 FROM tab1 AS cor0 ---- 18528 5928 6594 query I rowsort SELECT cor0.col0 + + ( 22 ) FROM tab2 AS cor0 ---- 100 101 29 query I rowsort SELECT + col1 + col0 * + 55 - col1 FROM tab0 AS cor0 ---- 1320 1925 4895 query I rowsort SELECT - col2 * col2 + - 5 * col1 - + cor0.col0 FROM tab1 cor0 ---- -3049 -3363 -9361 query I rowsort SELECT - col0 - + 38 AS col1 FROM tab1 AS cor0 ---- -102 -118 -41 query I rowsort SELECT - - col2 * + ( + col0 ) - - col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT DISTINCT - col1 - col1 * + col1 * col2 AS col2 FROM tab1 AS cor0 ---- -16237 -36530 -5710 query I rowsort SELECT + col1 * 31 AS col0 FROM tab0 cor0 ---- 2666 2821 3007 query I rowsort SELECT ALL - + col2 + cor0.col1 * - col0 AS col1 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT 84 + - 48 * col0 AS col1 FROM tab0 AS cor0 ---- -1068 -1596 -4188 query I rowsort SELECT + 21 + col0 FROM tab0 AS cor0 ---- 110 45 56 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 81 col0 FROM tab2 AS cor0 ---- 81 81 81 query I rowsort SELECT + col2 + - ( cor0.col2 ) AS col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3953 SELECT - 41 DIV + col1 FROM tab1 AS cor0 ---- -1 -3 -4 skipif mysql # not compatible query I rowsort label-3953 SELECT - 41 / + col1 FROM tab1 AS cor0 ---- -1 -3 -4 query I rowsort SELECT + ( col2 ) * - col0 * + 26 + + 99 FROM tab0 AS cor0 ---- -189649 -20493 -811 query I rowsort SELECT + col1 * - col0 + + col0 AS col1 FROM tab2 AS cor0 ---- -1264 -210 -4524 onlyif mysql # use DIV operator for integer division query I rowsort label-3956 SELECT 44 DIV + 54 + + col0 AS col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3956 SELECT 44 / + 54 + + col0 AS col1 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-3957 SELECT DISTINCT + ( 47 + - col2 ) DIV col1 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-3957 SELECT DISTINCT + ( 47 + - col2 ) / col1 FROM tab0 ---- 0 query I rowsort SELECT + ( - col1 ) + col0 * col2 * cor0.col1 FROM tab0 AS cor0 ---- 3298 664027 68026 query I rowsort SELECT ALL + col0 + + col0 * 44 FROM tab0 AS cor0 ---- 1080 1575 4005 query I rowsort SELECT - col0 * 12 AS col1 FROM tab0 ---- -1068 -288 -420 query I rowsort SELECT DISTINCT + - col0 * col0 + + col2 * col0 FROM tab2 AS cor0 ---- -3239 -4056 140 query I rowsort SELECT 68 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1156 2108 4012 query I rowsort SELECT DISTINCT - col2 * col2 + + 51 FROM tab0 AS cor0 ---- -1038 -6673 50 query I rowsort SELECT DISTINCT + col1 + col2 * ( col0 ) FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL + - 46 * + col1 + + 21 AS col2 FROM tab0 cor0 ---- -3935 -4165 -4441 query I rowsort SELECT + 49 * - col1 AS col2 FROM tab1 AS cor0 ---- -1274 -490 -637 query I rowsort SELECT ALL - col2 + cor0.col1 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT + 89 + - col1 AS col1 FROM tab0 AS cor0 ---- -2 -8 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 12 + - col2 col1 FROM tab2 AS cor0 ---- -14 -15 -26 query I rowsort SELECT DISTINCT col1 * + col2 + col2 AS col1 FROM tab0 cor0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT ( + col1 ) + + tab1.col0 AS col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT - 84 + - col1 AS col0 FROM tab1 ---- -110 -94 -97 query I rowsort SELECT ALL - col0 * + col0 * + col1 AS col1 FROM tab0 ---- -118825 -49536 -720811 onlyif mysql # use DIV operator for integer division query I rowsort label-3974 SELECT col0 * cor0.col2 DIV + col1 FROM tab0 AS cor0 ---- 0 80 9 skipif mysql # not compatible query I rowsort label-3974 SELECT col0 * cor0.col2 / + col1 FROM tab0 AS cor0 ---- 0 80 9 query I rowsort SELECT ALL 93 + col0 FROM tab2 cor0 ---- 100 171 172 onlyif mysql # use DIV operator for integer division query I rowsort label-3976 SELECT ALL col2 - - col2 DIV col0 AS col1 FROM tab2 AS cor0 ---- 26 30 38 skipif mysql # not compatible query I rowsort label-3976 SELECT ALL col2 - - col2 / col0 AS col1 FROM tab2 AS cor0 ---- 26 30 38 query I rowsort SELECT col2 * 3 + col2 AS col2 FROM tab1 AS cor0 ---- 216 228 384 query I rowsort SELECT + col0 + - ( cor0.col2 ) FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT + 99 + col1 FROM tab0 ---- 185 190 196 query I rowsort SELECT + 70 + + col2 + + col1 AS col1 FROM tab2 ---- 125 128 155 query I rowsort SELECT - col0 * cor0.col1 + cor0.col2 AS col1 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT DISTINCT - cor1.col1 FROM tab2, tab2 AS cor0, tab2 cor1 ---- -17 -31 -59 query I rowsort SELECT DISTINCT 32 + 69 FROM tab0 ---- 101 query I rowsort SELECT DISTINCT 50 + col2 * col0 AS col2 FROM tab1 ---- 212 3698 7730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col1 + 32 col1 FROM tab2 ---- -27 1 15 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col0 * col0 + col2 col2 FROM tab1 ---- 4153 63 6496 query I rowsort SELECT + 25 * col2 AS col2 FROM tab2 ---- 650 675 950 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( col2 AS REAL ) - col2 * + cor0.col1 * - cor0.col1 FROM tab2 AS cor0 ---- 10944 25920 90480 query I rowsort SELECT DISTINCT + + ( + 33 ) * - col2 FROM tab1 AS cor0 ---- -1782 -1881 -3168 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3990 SELECT + CAST( col1 AS SIGNED ) * col2 FROM tab2 AS cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-3990 SELECT + CAST ( col1 AS INTEGER ) * col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT 12 + + 9 + cor0.col1 FROM tab1 AS cor0 ---- 31 34 47 query I rowsort SELECT - + 15 + - col1 AS col1 FROM tab2 AS cor0 ---- -32 -46 -74 query I rowsort SELECT DISTINCT ( col2 ) + col0 * - col0 AS col1 FROM tab1 cor0 ---- -4039 -6304 45 query I rowsort SELECT ALL - 68 * 25 AS col0 FROM tab2 AS cor0 ---- -1700 -1700 -1700 query I rowsort SELECT 70 + - ( col2 + col2 ) FROM tab1 AS cor0 ---- -122 -38 -44 query I rowsort SELECT ALL - + col1 * - 88 FROM tab2 AS cor0 ---- 1496 2728 5192 onlyif mysql # use DIV operator for integer division query I rowsort label-3997 SELECT - col0 * ( + ( col0 ) ) DIV - col1 FROM tab0 AS cor0 ---- 12 6 87 skipif mysql # not compatible query I rowsort label-3997 SELECT - col0 * ( + ( col0 ) ) / - col1 FROM tab0 AS cor0 ---- 12 6 87 query I rowsort SELECT DISTINCT col2 + 6 AS col1 FROM tab0 AS cor0 ---- 39 7 88 query I rowsort SELECT ALL - cor0.col2 + + col1 * - col1 FROM tab2 cor0 ---- -327 -3507 -988 query I rowsort SELECT ALL + tab2.col2 * col1 AS col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT + - col1 * + col1 + col0 FROM tab2 cor0 ---- -210 -3403 -954 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + col1 * - cor0.col2 + col0 + ( + cor0.col0 ) col0 FROM tab0 AS cor0 ---- -27 -611706 -93606 query I rowsort SELECT DISTINCT + col2 * 19 FROM tab1 cor0 ---- 1026 1083 1824 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4004 SELECT ALL + - col1 + ( col1 ) * + col2 * CAST( 1 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 1235 1378 560 skipif mysql # not compatible query I rowsort label-4004 SELECT ALL + - col1 + ( col1 ) * + col2 * CAST ( 1 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT + + col0 * col2 + - ( + col0 ) FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT 15 * - cor0.col0 FROM tab1 AS cor0 ---- -1200 -45 -960 query I rowsort SELECT ALL tab0.col2 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1 ---- 81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05 query I rowsort SELECT ALL 48 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1 ---- 81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108 query I rowsort SELECT + col2 + 99 * - col2 FROM tab1 AS cor0 ---- -5292 -5586 -9408 query I rowsort SELECT 78 * col1 AS col1 FROM tab2 AS cor0 ---- 1326 2418 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + cor0.col0 + + col2 * - col2 col1 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT - - col1 * - col0 + - col2 + + col0 FROM tab2 cor0 ---- -1302 -237 -4550 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col0 + col0 * - cor0.col1 * col2 col2 FROM tab2 AS cor0 ---- -119730 -51113 -5866 query I rowsort SELECT ALL + 17 + + col2 AS col2 FROM tab0 AS cor0 ---- 18 50 99 onlyif mysql # use DIV operator for integer division query I rowsort label-4015 SELECT DISTINCT cor0.col2 DIV col0 + col1 * col1 DIV col0 AS col2 FROM tab2 AS cor0 ---- 140 3 44 skipif mysql # not compatible query I rowsort label-4015 SELECT DISTINCT cor0.col2 / col0 + col1 * col1 / col0 AS col2 FROM tab2 AS cor0 ---- 140 3 44 query I rowsort SELECT ALL - cor0.col2 + + col1 * col2 AS col1 FROM tab2 cor0 ---- 1508 608 810 query I rowsort SELECT ALL 68 * + col0 + col2 FROM tab0 ---- 1665 2381 6134 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + + col0 col2 FROM tab1 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-4019 SELECT DISTINCT + - col1 DIV col0 col2 FROM tab0 cor0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4019 SELECT DISTINCT + - col1 / col0 col2 FROM tab0 cor0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 32 * col0 + col0 * ( - col0 * + col2 ) col2 FROM tab0 AS cor0 ---- -19776 -2345 -652370 query I rowsort SELECT ALL col2 * tab0.col1 + + col0 FROM tab0 ---- 132 2862 7551 query I rowsort SELECT ALL 69 + - 40 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 4c56285992bcb76e1aac22e6d23d1318 query I rowsort SELECT DISTINCT - 99 + - col2 + tab2.col1 AS col0 FROM tab2 ---- -120 -66 -95 onlyif mysql # use DIV operator for integer division query I rowsort label-4024 SELECT + col0 * + 7 + - col1 * - col0 DIV col0 AS col2 FROM tab1 AS cor0 ---- 458 47 573 skipif mysql # not compatible query I rowsort label-4024 SELECT + col0 * + 7 + - col1 * - col0 / col0 AS col2 FROM tab1 AS cor0 ---- 458 47 573 query I rowsort SELECT col1 - + cor0.col0 * col2 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT DISTINCT ( - tab2.col1 + - ( + tab2.col0 ) ) FROM tab2 ---- -137 -38 -96 query I rowsort SELECT DISTINCT + 48 + + col2 FROM tab1 ---- 102 105 144 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4028 SELECT DISTINCT - col1 * - CAST( + col2 * + col1 AS SIGNED ) AS col0 FROM tab1 ---- 16224 36504 5700 skipif mysql # not compatible query I rowsort label-4028 SELECT DISTINCT - col1 * - CAST ( + col2 * + col1 AS INTEGER ) AS col0 FROM tab1 ---- 16224 36504 5700 query I rowsort SELECT col2 * 14 AS col1 FROM tab2 ---- 364 378 532 query I rowsort SELECT - col0 - - 96 FROM tab1 AS cor0 ---- 16 32 93 onlyif mysql # use DIV operator for integer division query I rowsort label-4031 SELECT ALL + col2 * col2 DIV + col1 FROM tab0 ---- 0 12 73 skipif mysql # not compatible query I rowsort label-4031 SELECT ALL + col2 * col2 / + col1 FROM tab0 ---- 0 12 73 query I rowsort SELECT DISTINCT - 64 AS col1 FROM tab1 ---- -64 query I rowsort SELECT - col2 + - 23 * + col2 FROM tab0 ---- -1968 -24 -792 query I rowsort SELECT ALL - col0 * - ( col1 + 41 ) FROM tab2 ---- 4582 504 7800 query I rowsort SELECT - 63 * + col2 AS col2 FROM tab0 AS cor0 ---- -2079 -5166 -63 query I rowsort SELECT DISTINCT 48 * - col2 AS col2 FROM tab2 AS cor0 ---- -1248 -1296 -1824 query I rowsort SELECT ( + ( - cor0.col2 ) ) FROM tab0 AS cor0 ---- -1 -33 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-4038 SELECT DISTINCT - cor0.col1 DIV + col2 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -62 22 88 skipif mysql # not compatible query I rowsort label-4038 SELECT DISTINCT - cor0.col1 / + col2 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -62 22 88 query I rowsort SELECT - col1 * col2 - 11 * 63 * col0 AS col0 FROM tab1 cor0 ---- -3483 -44922 -56688 query I rowsort SELECT DISTINCT - col0 * - cor0.col0 + + 20 FROM tab2 cor0 ---- 6104 6261 69 query I rowsort SELECT ALL - ( col0 ) + + col2 + col0 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL + 69 * col1 * 81 FROM tab1 AS cor0 ---- 145314 55890 72657 query I rowsort SELECT DISTINCT + - ( + col0 ) + 80 AS col1 FROM tab2 AS cor0 ---- 1 2 73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 * + col0 col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT + col1 * + col1 + - col0 AS col0 FROM tab0 AS cor0 ---- 7372 8192 9374 query I rowsort SELECT ALL col1 + - col1 * + tab1.col1 AS col2 FROM tab1 ---- -156 -650 -90 query I rowsort SELECT + col0 * + col0 * + col0 AS col0 FROM tab0 ---- 13824 42875 704969 query I rowsort SELECT + col1 - - col0 AS col0 FROM tab1 ---- 29 74 93 query I rowsort SELECT tab0.col0 - + col2 * tab0.col0 FROM tab0 ---- -7209 -768 0 query I rowsort SELECT tab1.col0 * + col2 + col2 * + col1 * tab1.col0 FROM tab1 ---- 107520 40128 4374 query I rowsort SELECT - tab0.col2 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT ALL + col0 * - cor0.col1 + - cor0.col0 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT DISTINCT + col1 - + cor0.col2 FROM tab1 cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-4054 SELECT ALL + col2 + + cor0.col2 DIV col1 AS col0 FROM tab2 AS cor0 ---- 26 27 40 skipif mysql # not compatible query I rowsort label-4054 SELECT ALL + col2 + + cor0.col2 / col1 AS col0 FROM tab2 AS cor0 ---- 26 27 40 query I rowsort SELECT + - 82 * col2 - - col2 FROM tab2 AS cor0 ---- -2106 -2187 -3078 query I rowsort SELECT ( - col1 ) + col2 + + col0 AS col1 FROM tab1 AS cor0 ---- 111 163 31 query I rowsort SELECT 46 * + col0 FROM tab1 AS cor0 ---- 138 2944 3680 query I rowsort SELECT - ( col0 ) * cor0.col1 AS col2 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT col2 * col0 + col0 AS col2 FROM tab1 cor0 ---- 165 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + col2 + col1 col1 FROM tab1 AS cor0 ---- 29 3 77 query I rowsort SELECT 91 * - col2 * col2 AS col0 FROM tab0 ---- -611884 -91 -99099 query I rowsort SELECT DISTINCT - cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- -17 -31 -59 query I rowsort SELECT ALL - col1 / - col2 FROM tab1 WHERE NULL IN ( col0 * col1 ) ---- query I rowsort SELECT DISTINCT tab1.col0 - col1 * col0 FROM tab1 ---- -576 -75 -960 query I rowsort SELECT - col0 * - col2 + col2 AS col0 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT DISTINCT - col2 * tab2.col1 * col2 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT DISTINCT - col0 + col0 * col1 FROM tab1 ---- 576 75 960 onlyif mysql # use DIV operator for integer division query I rowsort label-4068 SELECT + tab0.col2 * col0 + col1 DIV - col2 col1 FROM tab0 ---- -62 7297 790 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4068 SELECT + tab0.col2 * col0 + col1 / - col2 col1 FROM tab0 ---- -62 7297 790 query I rowsort SELECT ALL - col0 + + tab2.col2 / col1 FROM tab2 WHERE ( + col0 * col2 ) IN ( col2 * tab2.col2 ) ---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= col1 * - col0 ---- query I rowsort SELECT col1 * + tab0.col1 + - col1 FROM tab0 ---- 7310 8190 9312 query I rowsort SELECT - cor0.col0 * + col1 * + col2 AS col2 FROM tab2 cor0 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT + col2 * col0 * - col2 AS col2 FROM tab2 ---- -114076 -5103 -52728 query I rowsort SELECT ALL + col1 * + col0 * col0 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT tab1.col1 + + tab1.col0 + + col2 AS col2 FROM tab1 ---- 131 189 83 query I rowsort SELECT DISTINCT + col2 * + tab1.col0 FROM tab1 WHERE NOT NULL IN ( col0 ) ---- query I rowsort SELECT ALL - cor0.col0 * col1 + col0 FROM tab1 cor0 ---- -576 -75 -960 query I rowsort SELECT + tab0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT col1 * - col1 * - col1 - col0 AS col2 FROM tab0 ---- 636032 753482 912638 onlyif mysql # use DIV operator for integer division query I rowsort label-4080 SELECT ALL + col0 * col0 DIV tab1.col0 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-4080 SELECT ALL + col0 * col0 / tab1.col0 FROM tab1 ---- 3 64 80 query I rowsort SELECT - col2 - + tab2.col1 * + col2 FROM tab2 ---- -1560 -684 -864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col0 + - tab1.col1 col1 FROM tab1 ---- 1027 52 630 query I rowsort SELECT + col0 * tab0.col2 * col1 + - col1 + col0 FROM tab0 ---- 3333 664116 68050 onlyif mysql # use DIV operator for integer division query I rowsort label-4084 SELECT ALL col0 DIV col1 col1 FROM tab0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4084 SELECT ALL col0 / col1 col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT col2 + + col0 + + col1 * + col0 AS col0 FROM tab1 ---- 1216 135 761 query I rowsort SELECT - 10 * col1 + col1 * - 63 AS col0 FROM tab0 cor0 ---- -6278 -6643 -7081 query I rowsort SELECT DISTINCT 17 * 64 FROM tab0 AS cor0 ---- 1088 query I rowsort SELECT - 82 + 41 FROM tab1 AS cor0 ---- -41 -41 -41 onlyif mysql # use DIV operator for integer division query I rowsort label-4089 SELECT ALL 45 + col0 DIV col1 AS col0 FROM tab0 AS cor0 ---- 45 45 45 skipif mysql # not compatible query I rowsort label-4089 SELECT ALL 45 + col0 / col1 AS col0 FROM tab0 AS cor0 ---- 45 45 45 onlyif mysql # use DIV operator for integer division query I rowsort label-4090 SELECT + ( 31 ) + col0 DIV col2 AS col2 FROM tab0 AS cor0 ---- 31 32 66 skipif mysql # not compatible query I rowsort label-4090 SELECT + ( 31 ) + col0 / col2 AS col2 FROM tab0 AS cor0 ---- 31 32 66 query I rowsort SELECT DISTINCT 34 AS col2 FROM tab1 cor0 ---- 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4092 SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-4092 SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + cor0.col0 - + 6 * + col1 AS col1 FROM tab1 AS cor0 ---- -153 2 4 query I rowsort SELECT ALL ( - col0 ) + - cor0.col0 * ( - col1 ) * col2 AS col2 FROM tab1 AS cor0 ---- 36416 4209 99760 query I rowsort SELECT ALL - ( col1 ) * col1 + - col0 FROM tab0 cor0 ---- -7420 -8370 -9444 query I rowsort SELECT + 60 * - cor0.col0 + + col0 * 29 * + col2 AS col2 FROM tab2 AS cor0 ---- 5061 54132 82318 query I rowsort SELECT ALL - + 14 - + col1 AS col2 FROM tab0 AS cor0 ---- -100 -105 -111 query I rowsort SELECT DISTINCT - + col2 * + col2 - - col2 * + col1 AS col0 FROM tab1 AS cor0 ---- -1512 -2679 -7968 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 51 col2 FROM tab2 AS cor0 ---- 51 query I rowsort SELECT - + col1 * col1 + - col2 FROM tab2 cor0 ---- -327 -3507 -988 query I rowsort SELECT DISTINCT 33 * + 24 + + col2 FROM tab0 ---- 793 825 874 query I rowsort SELECT - cor0.col2 * + col0 + + col0 AS col2 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT + 92 + - col1 AS col2 FROM tab1 AS cor0 ---- 66 79 82 query I rowsort SELECT DISTINCT - + col2 + ( - cor0.col0 ) FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT + col1 + - 33 AS col1 FROM tab2 ---- -16 -2 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - cor0.col0 + col0 col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + cor0.col1 + - col1 * col2 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT + col0 + ( 74 ) * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1337 2301 4444 query I rowsort SELECT ALL col1 * col2 * - ( col1 ) AS col2 FROM tab0 cor0 ---- -244068 -679042 -9409 query I rowsort SELECT ALL - 18 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 09afafec657a5e9f082beb6a16ec85de onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4111 SELECT - + cor0.col0 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 ---- 189 2028 3002 skipif mysql # not compatible query I rowsort label-4111 SELECT - + cor0.col0 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-4112 SELECT DISTINCT + - col2 + - cor0.col0 DIV - 95 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-4112 SELECT DISTINCT + - col2 + - cor0.col0 / - 95 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT - cor0.col1 * col0 * col2 FROM tab0 AS cor0 ---- -3395 -664118 -68112 onlyif mysql # use DIV operator for integer division query I rowsort label-4114 SELECT ( - col0 ) DIV col1 AS col2 FROM tab1 cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-4114 SELECT ( - col0 ) / col1 AS col2 FROM tab1 cor0 ---- -6 -6 0 query I rowsort SELECT + 44 - col1 AS col1 FROM tab1 AS cor0 ---- 18 31 34 onlyif mysql # use DIV operator for integer division query I rowsort label-4116 SELECT - tab0.col0 * col2 DIV + col1 FROM tab0 ---- -80 -9 0 skipif mysql # not compatible query I rowsort label-4116 SELECT - tab0.col0 * col2 / + col1 FROM tab0 ---- -80 -9 0 query I rowsort SELECT col0 + 15 * - col0 * col1 - 33 * 18 FROM tab1 ---- -10130 -16114 -1761 query I rowsort SELECT DISTINCT - col2 + col0 - col0 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT cor0.col2 * + 58 + col2 * + col1 * + ( col1 ) FROM tab1 AS cor0 ---- 21792 39636 9006 query I rowsort SELECT ALL 77 * - 58 FROM tab0 AS cor0 ---- -4466 -4466 -4466 query I rowsort SELECT 25 + + 87 FROM tab0 AS cor0 ---- 112 112 112 query I rowsort SELECT ALL + 52 * ( col0 ) FROM tab1 AS cor0 ---- 156 3328 4160 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4123 SELECT ALL - CAST( + 33 AS SIGNED ) FROM tab1 AS cor0 ---- -33 -33 -33 skipif mysql # not compatible query I rowsort label-4123 SELECT ALL - CAST ( + 33 AS INTEGER ) FROM tab1 AS cor0 ---- -33 -33 -33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4124 SELECT ALL col2 * - CAST( ( - col0 ) AS SIGNED ) - tab0.col2 * col1 FROM tab0 ---- -164 -2046 -62 skipif mysql # not compatible query I rowsort label-4124 SELECT ALL col2 * - CAST ( ( - col0 ) AS INTEGER ) - tab0.col2 * col1 FROM tab0 ---- -164 -2046 -62 query I rowsort SELECT - col1 * ( - ( + col0 ) ) AS col2 FROM tab1 ---- 1040 640 78 query I rowsort SELECT ALL col0 * - col2 - ( col2 ) FROM tab0 ---- -36 -7380 -825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4127 SELECT + CAST( NULL AS SIGNED ) + 38 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4127 SELECT + CAST ( NULL AS INTEGER ) + 38 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 92 * col2 + col0 * tab1.col1 + + tab1.col0 * tab1.col0 * + col1 FROM tab1 ---- -4656 36356 75408 query I rowsort SELECT ALL + 45 * + 95 + - col2 FROM tab1 ---- 4179 4218 4221 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4130 SELECT - CAST( NULL AS SIGNED ) / + col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4130 SELECT - CAST ( NULL AS INTEGER ) / + col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 + col2 * + col2 col1 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT ALL + tab0.col1 * + tab0.col2 + col2 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT 74 * + col1 FROM tab0 ---- 6364 6734 7178 query I rowsort SELECT + ( tab2.col0 ) AS col1 FROM tab2 ---- 7 78 79 query I rowsort SELECT - ( - 98 ) * + col1 + + col1 AS col2 FROM tab2 AS cor0 ---- 1683 3069 5841 onlyif mysql # use DIV operator for integer division query I rowsort label-4136 SELECT ALL - col1 * cor0.col2 DIV - col2 AS col2 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-4136 SELECT ALL - col1 * cor0.col2 / - col2 AS col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT ( ( - col0 ) ) * - col2 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + 85 * - col1 AS col1 FROM tab2 ---- -1445 -2635 -5015 query I rowsort SELECT col2 * col2 * - col0 + col2 AS col1 FROM tab2 ---- -114038 -5076 -52702 query I rowsort SELECT DISTINCT - 28 * tab0.col0 * tab0.col2 AS col2 FROM tab0 ---- -204344 -22176 -980 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + col0 * - col2 col1 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT + - cor0.col2 * col0 + - 42 AS col1 FROM tab1 AS cor0 ---- -204 -3690 -7722 query I rowsort SELECT + 55 * - col2 FROM tab2 ---- -1430 -1485 -2090 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4144 SELECT tab1.col0 * - col0 + CAST( - col0 AS SIGNED ) col2 FROM tab1 ---- -12 -4160 -6480 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4144 SELECT tab1.col0 * - col0 + CAST ( - col0 AS INTEGER ) col2 FROM tab1 ---- -12 -4160 -6480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4145 SELECT DISTINCT + + cor0.col2 + + CAST( NULL AS SIGNED ) + cor0.col2 * col0 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4145 SELECT DISTINCT + + cor0.col2 + + CAST ( NULL AS INTEGER ) + cor0.col2 * col0 AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + col1 + 75 AS col2 FROM tab2 cor0 ---- 106 134 92 query I rowsort SELECT col0 * - ( + col0 + - col2 * - col1 ) AS col1 FROM tab2 AS cor0 ---- -125736 -57275 -5908 query I rowsort SELECT ALL - - cor0.col2 + - cor0.col0 FROM tab2 AS cor0 ---- -41 -52 20 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * + col2 + - 46 col2 FROM tab1 AS cor0 ---- -208 -3694 -7726 query I rowsort SELECT DISTINCT - col2 * + ( - col0 ) AS col2 FROM tab0 AS cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col0 * + 8 + col1 + cor0.col1 col2 FROM tab1 AS cor0 ---- 532 666 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4152 SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) * col1 * cor0.col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4152 SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) * col1 * cor0.col0 FROM tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4153 SELECT - - col1 DIV - 93 + - col2 FROM tab0 AS cor0 ---- -2 -33 -82 skipif mysql # not compatible query I rowsort label-4153 SELECT - - col1 / - 93 + - col2 FROM tab0 AS cor0 ---- -2 -33 -82 query I rowsort SELECT ALL - col2 + - 50 * cor0.col1 FROM tab0 AS cor0 ---- -4333 -4632 -4851 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4155 SELECT ALL - col0 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4155 SELECT ALL - col0 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4156 SELECT ALL col2 * - col1 + + col1 DIV col1 + - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0 ---- -1151 -1349 -512 skipif mysql # not compatible query I rowsort label-4156 SELECT ALL col2 * - col1 + + col1 / col1 + - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0 ---- -1151 -1349 -512 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4157 SELECT - col0 + - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4157 SELECT - col0 + - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col2 * - 17 + - col1 * + col1 * cor0.col0 + - 93 FROM tab0 AS cor0 ---- -178158 -329425 -738496 query I rowsort SELECT - cor0.col0 + 82 FROM tab2, tab0 AS cor0 ---- 9 values hashing to fd0746e2fa3169b7ec3cc03b7adc470b query I rowsort SELECT - + col0 + - col1 * + col1 FROM tab1 AS cor0 ---- -164 -249 -679 query I rowsort SELECT - 78 * 42 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cb3523109b2174a71294bf141e0d170d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4162 SELECT col2 + - CAST( NULL AS SIGNED ) * tab1.col0 * col1 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4162 SELECT col2 + - CAST ( NULL AS INTEGER ) * tab1.col0 * col1 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT tab0.col0 * 31 - + 3 FROM tab0 ---- 1082 2756 741 query I rowsort SELECT DISTINCT col1 + - col1 + col0 AS col0 FROM tab2 ---- 7 78 79 query I rowsort SELECT DISTINCT + + col2 + cor0.col0 * 49 FROM tab2 AS cor0 ---- 370 3848 3909 query I rowsort SELECT - 27 - + col2 AS col0 FROM tab2 AS cor0 ---- -53 -54 -65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 9 * - col0 - - col0 * + col0 col1 FROM tab0 ---- 360 7120 910 query I rowsort SELECT + 3 * col1 + - col2 FROM tab0 ---- 191 225 290 query I rowsort SELECT + ( 37 ) AS col0 FROM tab0 ---- 37 37 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4170 SELECT DISTINCT col1 * col1 - + CAST( NULL AS DECIMAL ) * + col1 * + col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-4170 SELECT DISTINCT col1 * col1 - + CAST ( NULL AS REAL ) * + col1 * + col2 FROM tab1 ---- NULL query I rowsort SELECT - - 12 * - cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1068 -288 -420 query I rowsort SELECT - 1 - + col1 AS col0 FROM tab0 AS cor0 ---- -87 -92 -98 query I rowsort SELECT ALL 18 AS col0 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 903ac227935c1532300db45a8537c595 query I rowsort SELECT ALL - col0 + tab2.col1 - - tab2.col2 AS col2 FROM tab2 ---- -24 51 7 query I rowsort SELECT ALL tab2.col2 - - col0 AS col0 FROM tab2 ---- 104 117 34 query I rowsort SELECT tab1.col1 FROM tab0, tab2, tab2 AS cor0, tab1 ---- 81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4177 SELECT DISTINCT + col2 - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-4177 SELECT DISTINCT + col2 - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 ---- NULL query I rowsort SELECT ALL col0 - - col0 * + col0 AS col2 FROM tab2 ---- 56 6162 6320 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 26 col1 FROM tab2 AS cor0 ---- 26 26 26 query I rowsort SELECT DISTINCT - 34 + col0 AS col1 FROM tab1 AS cor0 ---- -31 30 46 onlyif mysql # use DIV operator for integer division query I rowsort label-4181 SELECT DISTINCT - - 83 + + col0 * + col1 DIV ( - col1 ) + - 84 * col2 FROM tab0 cor0 ---- -2713 -36 -6894 skipif mysql # not compatible query I rowsort label-4181 SELECT DISTINCT - - 83 + + col0 * + col1 / ( - col1 ) + - 84 * col2 FROM tab0 cor0 ---- -2713 -36 -6894 query I rowsort SELECT ALL + col0 * + col2 + col0 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT - + col1 * + 34 + - col1 AS col1 FROM tab0 AS cor0 ---- -3010 -3185 -3395 query I rowsort SELECT + + col0 * - 10 + col2 AS col2 FROM tab2 AS cor0 ---- -43 -752 -754 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col2 * col0 * + col0 + - col0 * - CAST ( + 78 AS REAL ) FROM tab1 AS cor0 ---- -228480 -252 -608160 query I rowsort SELECT DISTINCT cor0.col2 * col0 + 63 FROM tab1 AS cor0 ---- 225 3711 7743 query I rowsort SELECT ALL - col0 * - col1 + col0 * col0 FROM tab2 cor0 ---- 10686 266 7584 onlyif mysql # use DIV operator for integer division query I rowsort label-4188 SELECT DISTINCT - col1 DIV col0 + - col1 - + col0 * col1 FROM tab2 AS cor0 ---- -1360 -252 -4661 skipif mysql # not compatible query I rowsort label-4188 SELECT DISTINCT - col1 / col0 + - col1 - + col0 * col1 FROM tab2 AS cor0 ---- -1360 -252 -4661 query I rowsort SELECT ALL col2 + 11 - ( - col2 ) AS col2 FROM tab2 AS cor0 ---- 63 65 87 query I rowsort SELECT ALL - col2 + - col2 * col1 + + col1 FROM tab1 AS cor0 ---- -1331 -1432 -617 onlyif mysql # use DIV operator for integer division query I rowsort label-4191 SELECT DISTINCT + cor0.col2 DIV col1 + - ( - col1 ) * + ( - 74 ) + col2 FROM tab2 AS cor0 ---- -1218 -2267 -4340 skipif mysql # not compatible query I rowsort label-4191 SELECT DISTINCT + cor0.col2 / col1 + - ( - col1 ) * + ( - 74 ) + col2 FROM tab2 AS cor0 ---- -1218 -2267 -4340 query I rowsort SELECT + col2 * - 33 + col1 * col0 FROM tab1 AS cor0 ---- -1241 -1704 -2128 query I rowsort SELECT ALL - + col2 + - 23 AS col2 FROM tab1 cor0 ---- -119 -77 -80 query I rowsort SELECT col0 * - 82 + col0 * - col1 * ( - col0 ) FROM tab2 AS cor0 ---- 352560 945 99619 query I rowsort SELECT ALL - col2 * + 36 AS col0 FROM tab1 AS cor0 ---- -1944 -2052 -3456 query I rowsort SELECT - - col2 - - col1 FROM tab2 cor0 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-4197 SELECT + 33 DIV - 14 FROM tab1 AS cor0 ---- -2 -2 -2 skipif mysql # not compatible query I rowsort label-4197 SELECT + 33 / - 14 FROM tab1 AS cor0 ---- -2 -2 -2 query I rowsort SELECT DISTINCT + 3 * - col2 FROM tab1 AS cor0 ---- -162 -171 -288 query I rowsort SELECT 52 * col2 * col1 FROM tab2 AS cor0 ---- 33592 43524 79768 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + 24 * - cor0.col2 col0 FROM tab1 AS cor0 ---- -1270 -1358 -2291 query I rowsort SELECT DISTINCT - col1 * - 33 AS col0 FROM tab0 cor0 ---- 2838 3003 3201 query I rowsort SELECT + 51 + + col2 * + col2 AS col2 FROM tab0 AS cor0 ---- 1140 52 6775 query I rowsort SELECT DISTINCT + - cor0.col2 + cor0.col2 * - col0 FROM tab1 AS cor0 ---- -216 -3705 -7776 onlyif mysql # use DIV operator for integer division query I rowsort label-4204 SELECT DISTINCT - - ( col1 ) + - col1 DIV col0 FROM tab1 AS cor0 ---- 10 13 18 skipif mysql # not compatible query I rowsort label-4204 SELECT DISTINCT - - ( col1 ) + - col1 / col0 FROM tab1 AS cor0 ---- 10 13 18 query I rowsort SELECT + + cor0.col1 * + 53 AS col1 FROM tab2 AS cor0 ---- 1643 3127 901 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4206 SELECT ALL + CAST( NULL AS SIGNED ) * - col2 col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4206 SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4207 SELECT DISTINCT + col1 + - col2 * + col0 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0 ---- -207926 -737267 -8722 skipif mysql # not compatible query I rowsort label-4207 SELECT DISTINCT + col1 + - col2 * + col0 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 ---- -207926 -737267 -8722 query I rowsort SELECT ALL + ( col1 ) * + cor0.col2 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4209 SELECT CAST( NULL AS SIGNED ) + + 89 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4209 SELECT CAST ( NULL AS INTEGER ) + + 89 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4210 SELECT DISTINCT + + 63 + - col0 DIV col2 FROM tab0 cor0 ---- 28 62 63 skipif mysql # not compatible query I rowsort label-4210 SELECT DISTINCT + + 63 + - col0 / col2 FROM tab0 cor0 ---- 28 62 63 query I rowsort SELECT DISTINCT + 49 * col1 FROM tab2 AS cor0 ---- 1519 2891 833 onlyif mysql # use DIV operator for integer division query I rowsort label-4212 SELECT DISTINCT col0 + col0 DIV CAST( col1 * col2 + 77 AS SIGNED ) FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-4212 SELECT DISTINCT col0 + col0 / CAST ( col1 * col2 + 77 AS INTEGER ) FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT ALL col0 + + col0 - - ( + col2 ) AS col0 FROM tab1 AS cor0 ---- 185 256 60 query I rowsort SELECT ALL 9 * cor0.col1 FROM tab2 cor0 ---- 153 279 531 query I rowsort SELECT ( - col1 ) * cor0.col2 * col1 FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT - 79 + col1 FROM tab0 AS cor0 ---- 12 18 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + + col2 col0 FROM tab1 AS cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-4218 SELECT - col0 DIV ( - tab0.col2 ) + col0 * + 79 AS col0 FROM tab0 ---- 1896 2800 7032 skipif mysql # not compatible query I rowsort label-4218 SELECT - col0 / ( - tab0.col2 ) + col0 * + 79 AS col0 FROM tab0 ---- 1896 2800 7032 query I rowsort SELECT - ( + tab2.col2 ) AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab2 cor1 ---- 972 values hashing to a698694a7dac245e42212ff0316bdf45 query I rowsort SELECT + ( col2 + col1 ) * + col0 AS col2 FROM tab1 ---- 240 4288 8720 query I rowsort SELECT ALL 56 AS col1 FROM tab0 AS cor0 ---- 56 56 56 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col2 * col1 * + col2 col2 FROM tab2 cor0 ---- 22572 24510 39858 query I rowsort SELECT ALL - + 73 AS col2 FROM tab0 AS cor0 ---- -73 -73 -73 query I rowsort SELECT + - 28 - cor0.col0 FROM tab0 AS cor0 ---- -117 -52 -63 query I rowsort SELECT ALL + col1 + col1 * + col1 AS col0 FROM tab2 AS cor0 ---- 306 3540 992 onlyif mysql # use DIV operator for integer division query I rowsort label-4227 SELECT ALL cor0.col0 DIV ( col0 * ( cor0.col0 ) ) FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4227 SELECT ALL cor0.col0 / ( col0 * ( cor0.col0 ) ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + - col1 * col0 - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT DISTINCT - ( + col1 ) * col0 + - 59 * - col1 FROM tab0 cor0 ---- -2730 2328 3010 onlyif mysql # use DIV operator for integer division query I rowsort label-4230 SELECT DISTINCT - 72 DIV - col0 AS col0 FROM tab1 AS cor0 ---- 0 1 24 skipif mysql # not compatible query I rowsort label-4230 SELECT DISTINCT - 72 / - col0 AS col0 FROM tab1 AS cor0 ---- 0 1 24 query I rowsort SELECT - col0 - + 92 AS col0 FROM tab0 AS cor0 ---- -116 -127 -181 query I rowsort SELECT 21 * col1 * + col1 + col0 FROM tab1 ---- 14199 2164 3629 query I rowsort SELECT - col1 * col1 * col2 + tab2.col1 FROM tab2 ---- -10965 -25916 -90447 query I rowsort SELECT + - 84 + col2 AS col1 FROM tab2 AS cor0 ---- -46 -57 -58 query I rowsort SELECT ALL - + cor0.col2 + + col0 * + ( + col2 ) AS col2 FROM tab1 AS cor0 ---- 108 3591 7584 onlyif mysql # use DIV operator for integer division query I rowsort label-4236 SELECT DISTINCT + - col0 * col1 - col2 * 8 DIV + col1 col2 FROM tab2 AS cor0 ---- -1360 -223 -4605 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4236 SELECT DISTINCT + - col0 * col1 - col2 * 8 / + col1 col2 FROM tab2 AS cor0 ---- -1360 -223 -4605 query I rowsort SELECT DISTINCT col2 * + 86 AS col1 FROM tab2 cor0 ---- 2236 2322 3268 query I rowsort SELECT col1 + 43 AS col2 FROM tab2 ---- 102 60 74 query I rowsort SELECT ALL - + col1 + col0 * ( + col1 ) FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT + col1 * + col0 * 61 + - col0 * 67 AS col1 FROM tab2 AS cor0 ---- 12768 275496 76630 query I rowsort SELECT ALL col1 * - col2 + + col2 * col0 AS col2 FROM tab1 AS cor0 ---- -1242 3078 6432 query I rowsort SELECT + col1 + + ( - 10 ) FROM tab1 AS cor0 ---- 0 16 3 query I rowsort SELECT 38 * - 12 FROM tab1 AS cor0 ---- -456 -456 -456 query I rowsort SELECT col0 * + 58 FROM tab2 AS cor0 ---- 406 4524 4582 query I rowsort SELECT ( + col1 ) * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT ALL ( cor0.col0 ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * col0 + + 5 + col2 col0 FROM tab2 AS cor0 ---- 2059 221 3045 query I rowsort SELECT - + ( + cor0.col1 ) * ( + col1 ) AS col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT + col2 * cor0.col1 + col2 + + col2 FROM tab1 AS cor0 ---- 1440 1512 684 query I rowsort SELECT DISTINCT + 18 * col2 FROM tab2 AS cor0 ---- 468 486 684 query I rowsort SELECT + col2 + - col1 * col0 * 49 FROM tab1 cor0 ---- -31303 -3768 -50864 onlyif mysql # use DIV operator for integer division query I rowsort label-4252 SELECT DISTINCT + tab0.col1 * col2 DIV - col1 AS col2 FROM tab0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-4252 SELECT DISTINCT + tab0.col1 * col2 / - col1 AS col2 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab2, tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT ( col1 ) * col0 + col0 * col2 FROM tab2 ---- 406 4345 6630 query I rowsort SELECT + 16 * + 83 - col0 * col1 AS col1 FROM tab0 AS cor0 ---- -2067 -6771 -736 query I rowsort SELECT DISTINCT + 1 * col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT + - col2 - col0 * col1 AS col0 FROM tab1 AS cor0 ---- -1136 -132 -697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * ( col1 ) + - ( col2 * col1 ) col0 FROM tab0 AS cor0 ---- -10234 -15743 -9506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4259 SELECT ALL + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4259 SELECT ALL + - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4260 SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( col1 + - col2 ) * + cor0.col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4260 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( col1 + - col2 ) * + cor0.col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + col0 * col0 * col1 col0 FROM tab1 cor0 ---- 231 40896 83120 query I rowsort SELECT DISTINCT + 48 * - col1 FROM tab0 cor0 ---- -4128 -4368 -4656 query I rowsort SELECT 40 * - col1 AS col0 FROM tab0 ---- -3440 -3640 -3880 onlyif mysql # use DIV operator for integer division query I rowsort label-4264 SELECT DISTINCT + 50 + col1 DIV - 38 AS col0 FROM tab0 cor0 ---- 48 skipif mysql # not compatible query I rowsort label-4264 SELECT DISTINCT + 50 + col1 / - 38 AS col0 FROM tab0 cor0 ---- 48 query I rowsort SELECT + ( - col0 ) + col2 * col1 FROM tab2 cor0 ---- 1456 567 830 query I rowsort SELECT - col0 + col2 + col2 * col0 AS col0 FROM tab2 AS cor0 ---- 1976 209 2961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4267 SELECT DISTINCT - CAST( 73 AS SIGNED ) - col2 AS col2 FROM tab0 ---- -106 -155 -74 skipif mysql # not compatible query I rowsort label-4267 SELECT DISTINCT - CAST ( 73 AS INTEGER ) - col2 AS col2 FROM tab0 ---- -106 -155 -74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab0.col2 * - col2 * col0 - - tab0.col1 * - col1 col2 FROM tab0 ---- -33532 -606717 -9444 query I rowsort SELECT ALL col0 - 46 * col0 FROM tab1 ---- -135 -2880 -3600 query I rowsort SELECT DISTINCT col0 * col2 * + col1 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT ALL - tab1.col1 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT DISTINCT ( - 10 ) AS col1 FROM tab2 ---- -10 query I rowsort SELECT DISTINCT - col2 + + ( + col0 ) FROM tab2 cor0 ---- -20 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-4274 SELECT ALL 13 DIV - tab2.col0 FROM tab2 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-4274 SELECT ALL 13 / - tab2.col0 FROM tab2 ---- -1 0 0 query I rowsort SELECT + 19 FROM tab1, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 86c53e8567a17c8d91fc5aff119e0498 query I rowsort SELECT ALL + tab0.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT tab1.col0 AS col1 FROM tab0, tab2, tab0 cor0, tab1 ---- 81 values hashing to e28bf7f922650ca423ade3642ce0285b query I rowsort SELECT DISTINCT + 40 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab0 cor3 ---- 40 query I rowsort SELECT + col1 * 79 FROM tab1 cor0 ---- 1027 2054 790 query I rowsort SELECT ALL - 42 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 9894093f29c0defae91347934f060329 query I rowsort SELECT - col1 * - col0 * 86 AS col1 FROM tab0 AS cor0 ---- 177504 291970 696514 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4282 SELECT col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4282 SELECT col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + tab0.col2 + col1 * - col2 AS col2 FROM tab0 ---- -2805 -7380 -96 query I rowsort SELECT ALL - - col2 * + 7 + col1 + col2 FROM tab2 AS cor0 ---- 247 267 321 onlyif mysql # use DIV operator for integer division query I rowsort label-4285 SELECT DISTINCT 1 DIV col1 + - col1 col0 FROM tab0 AS cor0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4285 SELECT DISTINCT 1 / col1 + - col1 col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT cor0.col1 + - tab0.col2 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to be991a59f14759117ef2f271c2d2216f query I rowsort SELECT DISTINCT ( 39 ) AS col0 FROM tab2, tab1 AS cor0 ---- 39 query I rowsort SELECT ALL 12 FROM tab2, tab0 AS cor0 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 query I rowsort SELECT tab2.col0 + + col0 AS col1 FROM tab2 ---- 14 156 158 query I rowsort SELECT tab2.col2 - + ( 21 ) FROM tab2 ---- 17 5 6 query I rowsort SELECT col2 + + col1 * col1 FROM tab1 ---- 157 265 730 query I rowsort SELECT + + col1 * 53 AS col2 FROM tab0 AS cor0 ---- 4558 4823 5141 query I rowsort SELECT ALL 47 AS col2 FROM tab0 cor0 ---- 47 47 47 query I rowsort SELECT DISTINCT ( col2 ) + cor0.col0 * ( col2 ) * col1 + 93 FROM tab0 AS cor0 ---- 3489 664293 68238 onlyif mysql # use DIV operator for integer division query I rowsort label-4295 SELECT DISTINCT + ( + col1 ) DIV + col1 + 88 DIV - 46 AS col0 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4295 SELECT DISTINCT + ( + col1 ) / + col1 + 88 / - 46 AS col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL col2 * - 91 AS col1 FROM tab1 cor0 ---- -4914 -5187 -8736 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 27 col2 FROM tab0 cor0 ---- 27 27 27 query I rowsort SELECT ALL col1 * 43 * - cor0.col1 + cor0.col0 FROM tab0 AS cor0 ---- -318004 -355994 -404552 query I rowsort SELECT DISTINCT - 64 * + col0 AS col1 FROM tab2 AS cor0 ---- -448 -4992 -5056 query I rowsort SELECT ALL - - col2 * 62 AS col0 FROM tab0 AS cor0 ---- 2046 5084 62 onlyif mysql # use DIV operator for integer division query I rowsort label-4301 SELECT + - cor0.col0 + + col2 DIV + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -23 -34 -88 skipif mysql # not compatible query I rowsort label-4301 SELECT + - cor0.col0 + + col2 / + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -23 -34 -88 query I rowsort SELECT ALL - + 99 * 7 + col2 * col0 AS col1 FROM tab2 AS cor0 ---- -504 1335 2309 query I rowsort SELECT - 69 + col1 * - col0 AS col0 FROM tab2 ---- -1412 -286 -4671 query I rowsort SELECT - - cor0.col1 * - col1 + 89 AS col2 FROM tab1 AS cor0 ---- -11 -587 -80 query I rowsort SELECT cor0.col0 * - col0 + col0 * - 55 AS col1 FROM tab1 AS cor0 ---- -10800 -174 -7616 query I rowsort SELECT DISTINCT ( - cor0.col2 ) FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT + col2 * + col2 + - col0 * - cor0.col1 FROM tab0 cor0 ---- 14823 3153 3396 query I rowsort SELECT DISTINCT cor0.col2 - + ( col0 ) FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT DISTINCT col2 * 99 + + ( col2 ) FROM tab1 AS cor0 ---- 5400 5700 9600 query I rowsort SELECT - cor0.col2 FROM tab0, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT DISTINCT - col0 * - 30 * + 61 FROM tab2 AS cor0 ---- 12810 142740 144570 query I rowsort SELECT ALL + col2 * ( 94 ) + col2 AS col2 FROM tab1 AS cor0 ---- 5130 5415 9120 onlyif mysql # use DIV operator for integer division query I rowsort label-4313 SELECT ( + cor0.col2 ) DIV + col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-4313 SELECT ( + cor0.col2 ) / + col0 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT ALL col0 + col0 * + 6 AS col1 FROM tab0 AS cor0 ---- 168 245 623 query I rowsort SELECT ALL - cor0.col1 * col2 * + col1 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT DISTINCT + 17 * col0 AS col0 FROM tab0 cor0 ---- 1513 408 595 query I rowsort SELECT - + 14 + col2 * + 11 AS col2 FROM tab1 cor0 ---- 1042 580 613 query I rowsort SELECT DISTINCT col2 + col2 * col2 AS col1 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT DISTINCT ( col2 ) * col0 AS col1 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT - 98 - 42 * col0 FROM tab0 ---- -1106 -1568 -3836 query I rowsort SELECT + ( col2 ) + + col2 * + 90 * - 29 AS col0 FROM tab0 ---- -213938 -2609 -86097 query I rowsort SELECT - ( + col2 ) + 79 AS col0 FROM tab1 AS cor0 ---- -17 22 25 onlyif mysql # use DIV operator for integer division query I rowsort label-4323 SELECT + col2 DIV + col2 col1 FROM tab1 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4323 SELECT + col2 / + col2 col1 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + 76 FROM tab2, tab1 AS cor0 ---- 76 query I rowsort SELECT DISTINCT 94 AS col1 FROM tab0 ---- 94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4326 SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - 74 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-4326 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - 74 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- NULL query I rowsort SELECT + cor1.col2 * cor1.col0 + cor1.col1 * 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to f3a86faa3924e7ac23cabd27ab690ed0 query I rowsort SELECT 60 + - 87 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a onlyif mysql # use DIV operator for integer division query I rowsort label-4329 SELECT DISTINCT + + col0 DIV col1 + - col2 * 1 FROM tab1 AS cor0 ---- -51 -54 -90 skipif mysql # not compatible query I rowsort label-4329 SELECT DISTINCT + + col0 / col1 + - col2 * 1 FROM tab1 AS cor0 ---- -51 -54 -90 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab2 cor3 ---- 3645 values hashing to e3f81e329d34d83e4528a9ef7b933946 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + 45 col0 FROM tab2 ---- -33 -34 38 query I rowsort SELECT ALL - col1 + col2 + - col1 FROM tab2 ---- -35 -92 4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4333 SELECT + CAST( + ( col2 ) AS SIGNED ) AS col2 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-4333 SELECT + CAST ( + ( col2 ) AS INTEGER ) AS col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT + 38 + 90 * - col2 * col2 FROM tab1 ---- -262402 -292372 -829402 query I rowsort SELECT ALL cor0.col0 + - col0 AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col1 + - col2 AS col2 FROM tab0 cor0 ---- 53 9 96 onlyif mysql # use DIV operator for integer division query I rowsort label-4337 SELECT + + col2 DIV + 35 + col2 AS col1 FROM tab1 AS cor0 ---- 55 58 98 skipif mysql # not compatible query I rowsort label-4337 SELECT + + col2 / + 35 + col2 AS col1 FROM tab1 AS cor0 ---- 55 58 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT - col0 + 14 FROM tab0 AS cor0 ---- -10 -21 -75 skipif mysql # not compatible query I rowsort SELECT - CAST ( col2 AS REAL ) * col0 AS col0 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT - 63 AS col2 FROM tab1 AS cor0 ---- -63 -63 -63 query I rowsort SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-4343 SELECT + + col0 * col0 + col2 DIV col1 FROM tab2 AS cor0 ---- 49 6084 6243 skipif mysql # not compatible query I rowsort label-4343 SELECT + + col0 * col0 + col2 / col1 FROM tab2 AS cor0 ---- 49 6084 6243 query I rowsort SELECT DISTINCT - + ( + col0 ) + col0 FROM tab0 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4345 SELECT - CAST( col1 AS SIGNED ) * col1 + 43 FROM tab2 AS cor0 ---- -246 -3438 -918 skipif mysql # not compatible query I rowsort label-4345 SELECT - CAST ( col1 AS INTEGER ) * col1 + 43 FROM tab2 AS cor0 ---- -246 -3438 -918 query I rowsort SELECT ALL + col1 * - 92 FROM tab1 AS cor0 ---- -1196 -2392 -920 query I rowsort SELECT ALL + ( col1 ) * + col0 - cor0.col0 * + col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4348 SELECT DISTINCT - col1 + col2 + cor0.col0 / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4348 SELECT DISTINCT - col1 + col2 + cor0.col0 / CAST ( NULL AS REAL ) FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 25 col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 525a55d5ed224a62da65df36731881a7 query I rowsort SELECT - ( + col2 ) * 82 FROM tab2 cor0 ---- -2132 -2214 -3116 onlyif mysql # use DIV operator for integer division query I rowsort label-4351 SELECT + 84 DIV 89 FROM tab2, tab1, tab2 AS cor0, tab0 ---- 81 values hashing to 1f117f467f45d8c6b7553e2e3c842942 skipif mysql # not compatible query I rowsort label-4351 SELECT + 84 / 89 FROM tab2, tab1, tab2 AS cor0, tab0 ---- 81 values hashing to 1f117f467f45d8c6b7553e2e3c842942 query I rowsort SELECT - 0 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c onlyif mysql # use DIV operator for integer division query I rowsort label-4353 SELECT + col0 + + 7 DIV col1 AS col0 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-4353 SELECT + col0 + + 7 / col1 AS col0 FROM tab1 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-4354 SELECT col0 DIV - 74 col1 FROM tab0 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4354 SELECT col0 / - 74 col1 FROM tab0 ---- -1 0 0 query I rowsort SELECT DISTINCT + 82 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1 ---- 82 query I rowsort SELECT - col2 - 58 FROM tab2 AS cor0 ---- -84 -85 -96 query I rowsort SELECT + col0 + cor0.col0 * - col2 AS col2 FROM tab0 cor0 ---- -7209 -768 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4358 SELECT - col2 * col2 - cor0.col0 DIV - col1 AS col2 FROM tab2 AS cor0 ---- -1440 -675 -729 skipif mysql # not compatible query I rowsort label-4358 SELECT - col2 * col2 - cor0.col0 / - col1 AS col2 FROM tab2 AS cor0 ---- -1440 -675 -729 query I rowsort SELECT col1 * col1 + col2 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 15005 8485 9410 query I rowsort SELECT - ( + col1 ) * - col1 AS col2 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT + - 8 * - 98 FROM tab1 AS cor0 ---- 784 784 784 query I rowsort SELECT + - cor0.col0 * + col0 - col1 FROM tab0 AS cor0 ---- -1322 -662 -8012 query I rowsort SELECT - - col0 + cor0.col0 * - col2 AS col1 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT + col0 + ( + col0 ) * + col0 AS col1 FROM tab1 ---- 12 4160 6480 query I rowsort SELECT ALL col0 + + ( col2 ) FROM tab2 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-4366 SELECT ALL col0 DIV 82 + + 85 FROM tab2 ---- 85 85 85 skipif mysql # not compatible query I rowsort label-4366 SELECT ALL col0 / 82 + + 85 FROM tab2 ---- 85 85 85 query I rowsort SELECT + 71 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col2 + CAST ( ( col2 ) AS REAL ) FROM tab0 ---- 0 query I rowsort SELECT + ( + 17 ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to 43298e43365fccb5146ea32003753c92 query I rowsort SELECT 3 + + col2 FROM tab1 cor0 ---- 57 60 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4371 SELECT + + CAST( 23 AS SIGNED ) - col1 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- -1225 -1381 -547 skipif mysql # not compatible query I rowsort label-4371 SELECT + + CAST ( 23 AS INTEGER ) - col1 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- -1225 -1381 -547 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 33 col2 FROM tab2 AS cor0 ---- -33 -33 -33 query I rowsort SELECT ALL - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 onlyif mysql # use DIV operator for integer division query I rowsort label-4374 SELECT cor0.col0 * col0 DIV + col1 + - col1 AS col0 FROM tab0 AS cor0 ---- -4 -80 -85 skipif mysql # not compatible query I rowsort label-4374 SELECT cor0.col0 * col0 / + col1 + - col1 AS col0 FROM tab0 AS cor0 ---- -4 -80 -85 onlyif mysql # use DIV operator for integer division query I rowsort label-4375 SELECT + col2 + + col1 DIV - col0 FROM tab1 AS cor0 ---- 46 57 96 skipif mysql # not compatible query I rowsort label-4375 SELECT + col2 + + col1 / - col0 FROM tab1 AS cor0 ---- 46 57 96 query I rowsort SELECT DISTINCT cor0.col1 + col0 + + col2 * col0 * col0 FROM tab0 AS cor0 ---- 1357 19118 649702 onlyif mysql # use DIV operator for integer division query I rowsort label-4377 SELECT ALL col0 DIV - col2 + col1 FROM tab1 ---- 13 26 9 skipif mysql # not compatible query I rowsort label-4377 SELECT ALL col0 / - col2 + col1 FROM tab1 ---- 13 26 9 query I rowsort SELECT ALL col0 * - col1 * - col2 + + col1 FROM tab1 ---- 36490 4238 99853 query I rowsort SELECT ALL col0 * + col0 + - col2 AS col2 FROM tab0 AS cor0 ---- 1224 543 7839 query I rowsort SELECT ALL - col2 * - col1 + + col2 + col0 FROM tab2 AS cor0 ---- 1638 763 871 query I rowsort SELECT DISTINCT + col1 * + col1 * cor0.col0 - col2 FROM tab2 AS cor0 ---- 22793 271492 6700 onlyif mysql # use DIV operator for integer division query I rowsort label-4382 SELECT col0 - - tab1.col1 DIV col2 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-4382 SELECT col0 - - tab1.col1 / col2 FROM tab1 ---- 3 64 80 query I rowsort SELECT + 80 + - 70 * - col1 * col1 + - col0 FROM tab2 AS cor0 ---- 20231 243672 67343 query I rowsort SELECT ALL + col1 + - col1 + col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT ( + 90 ) AS col2 FROM tab2 AS cor0 ---- 90 90 90 query I rowsort SELECT - cor0.col2 * - 6 * + col2 + - col0 + + col0 * col0 FROM tab2 AS cor0 ---- 10062 14826 4416 query I rowsort SELECT + - ( col2 ) * + col1 + + col1 + + col2 FROM tab0 AS cor0 ---- -2719 -7289 1 query I rowsort SELECT ALL + - ( col0 ) * - col0 + col1 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT + - 19 + col0 * + col1 * col2 FROM tab0 AS cor0 ---- 3376 664099 68093 query I rowsort SELECT - 29 + - col1 * col0 AS col0 FROM tab2 AS cor0 ---- -1372 -246 -4631 query I rowsort SELECT DISTINCT 51 - col1 FROM tab0 AS cor0 ---- -35 -40 -46 query I rowsort SELECT + 53 + col1 * col0 AS col1 FROM tab0 AS cor0 ---- 2117 3448 8152 query I rowsort SELECT ALL 60 * - cor0.col2 * col2 - + col0 * cor0.col1 AS col1 FROM tab2 cor0 ---- -43957 -45162 -87983 query I rowsort SELECT DISTINCT 50 + col1 FROM tab0 ---- 136 141 147 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 * col2 col0 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - col1 * - col1 + col0 NOT IN ( col1 + + col2 + + col1 ) ---- query I rowsort SELECT col1 + + col2 * col2 AS col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN col1 AND ( col2 * + col1 + - col2 - + col0 ) ---- 1175 6815 query I rowsort SELECT ALL cor0.col0 FROM tab0, tab0 cor0 CROSS JOIN tab2 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query III rowsort SELECT ALL * FROM tab2 cor0 WHERE col2 IN ( - col1 * col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4400 SELECT col1 + - col0 DIV - tab0.col2 FROM tab0 ---- 132 86 92 skipif mysql # not compatible query I rowsort label-4400 SELECT col1 + - col0 / - tab0.col2 FROM tab0 ---- 132 86 92 query I rowsort SELECT col1 + col0 * - col2 AS col0 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT - col1 + col1 * col2 + col1 * + col0 FROM tab1 ---- 1200 1456 2275 query I rowsort SELECT DISTINCT + col2 * + col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 + + col1 AND col2 ---- query I rowsort SELECT DISTINCT + cor0.col2 * - col1 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT col2 * - col1 + - col1 AS col2 FROM tab1 cor0 ---- -1261 -1430 -580 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + + col0 col1 FROM tab0 cor0 ---- -2 -62 -62 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1, tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT col0 + col0 + + col1 FROM tab1 cor0 ---- 138 173 32 onlyif mysql # use DIV operator for integer division query I rowsort label-4409 SELECT + + col0 DIV col2 - cor0.col2 * col2 * col2 FROM tab1 AS cor0 ---- -157464 -185192 -884736 skipif mysql # not compatible query I rowsort label-4409 SELECT + + col0 / col2 - cor0.col2 * col2 * col2 FROM tab1 AS cor0 ---- -157464 -185192 -884736 query I rowsort SELECT - - col1 + + cor0.col0 + col2 * - col1 FROM tab0 AS cor0 ---- -2728 -7282 35 query I rowsort SELECT ALL col1 * col0 * col2 FROM tab1 AS cor0 ---- 36480 4212 99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col0 * col0 * + col0 col2 FROM tab1 cor0 ---- -27 262087 511904 onlyif mysql # use DIV operator for integer division query I rowsort label-4413 SELECT DISTINCT + col1 * + col1 + + col1 + + cor0.col2 DIV + col2 FROM tab1 cor0 ---- 111 183 703 skipif mysql # not compatible query I rowsort label-4413 SELECT DISTINCT + col1 * + col1 + + col1 + + cor0.col2 / + col2 FROM tab1 cor0 ---- 111 183 703 query I rowsort SELECT ALL col0 - + tab0.col2 * - col1 AS col2 FROM tab0 ---- 132 2862 7551 query I rowsort SELECT - tab2.col2 + - col0 AS col0 FROM tab2 ---- -104 -117 -34 query I rowsort SELECT ALL + col1 * - tab0.col1 - - col1 AS col2 FROM tab0 ---- -7310 -8190 -9312 query I rowsort SELECT col2 + + col2 - col1 * col1 AS col0 FROM tab2 ---- -213 -3429 -907 onlyif mysql # use DIV operator for integer division query I rowsort label-4418 SELECT DISTINCT col1 DIV col0 - + tab2.col2 AS col0 FROM tab2 ---- -23 -26 -38 skipif mysql # not compatible query I rowsort label-4418 SELECT DISTINCT col1 / col0 - + tab2.col2 AS col0 FROM tab2 ---- -23 -26 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + - col2 - col2 col1 FROM tab2 ---- -47 26 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + - col0 * col2 + col0 col0 FROM tab1 ---- -213 -3641 -7696 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 / + tab1.col1 + + tab1.col1 col1 FROM tab1 WHERE ( NULL ) > NULL ---- query I rowsort SELECT DISTINCT - col2 * col2 + - col0 AS col1 FROM tab2 ---- -1523 -736 -754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col2 + - col0 col1 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT - + col0 - + col2 AS col2 FROM tab0 AS cor0 ---- -171 -36 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * col0 * - cor0.col0 col0 FROM tab0 cor0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT + - col0 + col1 * col0 AS col0 FROM tab2 cor0 ---- 1264 210 4524 query I rowsort SELECT - col0 * + cor0.col0 + - col0 * - col2 + col2 FROM tab0 AS cor0 ---- -1189 -541 249 query I rowsort SELECT + - col2 + + col1 AS col2 FROM tab1 cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-4429 SELECT DISTINCT + col0 DIV 96 + col2 AS col1 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-4429 SELECT DISTINCT + col0 / 96 + col2 AS col1 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-4430 SELECT - + cor0.col1 + + CAST( - 66 AS SIGNED ) DIV - col0 FROM tab0 AS cor0 ---- -84 -91 -96 skipif mysql # not compatible query I rowsort label-4430 SELECT - + cor0.col1 + + CAST ( - 66 AS INTEGER ) / - col0 FROM tab0 AS cor0 ---- -84 -91 -96 query I rowsort SELECT - col1 * col0 + + 92 AS col2 FROM tab1 AS cor0 ---- -548 -948 14 query I rowsort SELECT ALL col1 * tab0.col1 * + 93 AS col2 FROM tab0 ---- 687828 770133 875037 query I rowsort SELECT ALL ( + col1 ) + - col2 AS col0 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL - 45 + + cor0.col0 FROM tab1 AS cor0 ---- -42 19 35 query I rowsort SELECT + + cor0.col0 + - 45 FROM tab0 AS cor0 ---- -10 -21 44 query I rowsort SELECT + + cor0.col0 + - col1 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT + + ( col2 ) * col0 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4438 SELECT ALL - cor0.col1 * - col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4438 SELECT ALL - cor0.col1 * - col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - cor0.col1 - cor0.col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT 56 * cor0.col2 * - col2 AS col2 FROM tab0 AS cor0 ---- -376544 -56 -60984 query I rowsort SELECT DISTINCT + col2 * - col1 * - 73 AS col2 FROM tab0 AS cor0 ---- 207174 544726 7081 query I rowsort SELECT col0 * cor0.col0 - + ( col0 ) FROM tab1 AS cor0 ---- 4032 6 6320 query I rowsort SELECT DISTINCT tab1.col1 - col0 * col0 AS col0 FROM tab1 ---- -4086 -6387 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + col0 * col2 col1 FROM tab2 AS cor0 ---- 182 1950 2923 query I rowsort SELECT - - ( col1 ) + + 84 * col2 AS col1 FROM tab1 AS cor0 ---- 4562 4798 8077 query I rowsort SELECT DISTINCT - 22 + cor0.col2 FROM tab1 cor0 ---- 32 35 74 query I rowsort SELECT - + ( col0 ) * col1 + col0 FROM tab2 AS cor0 ---- -1264 -210 -4524 onlyif mysql # use DIV operator for integer division query I rowsort label-4448 SELECT ALL + col1 * col1 DIV - col2 AS col2 FROM tab0 AS cor0 ---- -100 -224 -9409 skipif mysql # not compatible query I rowsort label-4448 SELECT ALL + col1 * col1 / - col2 AS col2 FROM tab0 AS cor0 ---- -100 -224 -9409 query I rowsort SELECT 74 * + col1 + 99 AS col0 FROM tab0 AS cor0 ---- 6463 6833 7277 onlyif mysql # use DIV operator for integer division query I rowsort label-4450 SELECT cor0.col1 DIV cor0.col2 + + ( - 81 + col2 ) FROM tab1 AS cor0 ---- -24 -27 15 skipif mysql # not compatible query I rowsort label-4450 SELECT cor0.col1 / cor0.col2 + + ( - 81 + col2 ) FROM tab1 AS cor0 ---- -24 -27 15 onlyif mysql # use DIV operator for integer division query I rowsort label-4451 SELECT ALL + col0 * tab2.col2 + - tab2.col0 DIV ( - col1 ) col0 FROM tab2 ---- 189 2029 3006 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4451 SELECT ALL + col0 * tab2.col2 + - tab2.col0 / ( - col1 ) col0 FROM tab2 ---- 189 2029 3006 query I rowsort SELECT + col2 + - 73 FROM tab0 cor0 ---- -40 -72 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 40 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4454 SELECT 40 * + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4454 SELECT 40 * + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL + 15 * col0 + - tab1.col2 AS col2 FROM tab1 ---- -9 1104 903 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 - - ( - col0 ) col0 FROM tab0 cor0 ---- 2 62 62 query I rowsort SELECT + col1 * col1 + + col1 + - cor0.col2 AS col2 FROM tab1 AS cor0 ---- 53 648 86 query I rowsort SELECT + - col1 * - 39 * col2 AS col1 FROM tab2 AS cor0 ---- 25194 32643 59826 query I rowsort SELECT ALL - 98 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f query I rowsort SELECT ALL col0 * + ( col0 ) FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT + col2 + + cor0.col1 * 47 AS col2 FROM tab1 AS cor0 ---- 1276 527 707 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 44 * col2 + 40 col0 FROM tab2 ---- 1184 1228 1712 onlyif mysql # use DIV operator for integer division query I rowsort label-4463 SELECT ALL + tab2.col2 + col2 DIV ( col2 + + col0 ) FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-4463 SELECT ALL + tab2.col2 + col2 / ( col2 + + col0 ) FROM tab2 ---- 26 27 38 query I rowsort SELECT + - col2 + 3 + + 71 FROM tab1 AS cor0 ---- -22 17 20 query I rowsort SELECT col2 * - col0 * col1 AS col2 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT + col2 - ( + col0 ) * col0 FROM tab0 ---- -1224 -543 -7839 query I rowsort SELECT DISTINCT 17 * col0 AS col1 FROM tab2 ---- 119 1326 1343 query I rowsort SELECT ALL - + col2 + col2 * - col0 FROM tab0 AS cor0 ---- -36 -7380 -825 onlyif mysql # use DIV operator for integer division query I rowsort label-4469 SELECT + 15 DIV + col0 AS col1 FROM tab2 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-4469 SELECT + 15 / + col0 AS col1 FROM tab2 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col0 ) col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT DISTINCT 93 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 93 query I rowsort SELECT 44 + cor2.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to e8009c9cdbcd4be2fe31ee3ac129e095 query I rowsort SELECT ALL - + col1 * col0 * ( + col2 ) FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT 13 - col1 FROM tab1 ---- -13 0 3 onlyif mysql # use DIV operator for integer division query I rowsort label-4475 SELECT 36 + + tab1.col1 DIV cor0.col1 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 skipif mysql # not compatible query I rowsort label-4475 SELECT 36 + + tab1.col1 / cor0.col1 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 query I rowsort SELECT ALL - 75 FROM tab0, tab0 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59 query I rowsort SELECT col1 - + col2 * - 31 * col2 AS col1 FROM tab0 ---- 128 208535 33845 query I rowsort SELECT DISTINCT 47 * col0 AS col2 FROM tab2 ---- 329 3666 3713 query I rowsort SELECT + + 16 * col1 AS col1 FROM tab1 AS cor0 ---- 160 208 416 query I rowsort SELECT DISTINCT - cor0.col2 + col0 * 14 * - col2 AS col2 FROM tab1 AS cor0 ---- -107616 -2322 -51129 query I rowsort SELECT DISTINCT 93 * - col2 AS col2 FROM tab0 AS cor0 ---- -3069 -7626 -93 query I rowsort SELECT DISTINCT col0 + col1 - col1 FROM tab1 ---- 3 64 80 query I rowsort SELECT ALL col0 - - tab1.col0 AS col0 FROM tab1 ---- 128 160 6 onlyif mysql # use DIV operator for integer division query I rowsort label-4484 SELECT tab0.col0 * col2 DIV 99 FROM tab0 ---- 0 73 8 skipif mysql # not compatible query I rowsort label-4484 SELECT tab0.col0 * col2 / 99 FROM tab0 ---- 0 73 8 query I rowsort SELECT - 65 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 + - 68 col0 FROM tab2 AS cor0 ---- -37 -51 -9 query I rowsort SELECT ALL - col1 * col0 - + 97 AS col0 FROM tab2 ---- -1440 -314 -4699 query I rowsort SELECT + 40 * - cor0.col1 + col2 FROM tab0 AS cor0 ---- -3407 -3558 -3879 query I rowsort SELECT ALL + + 76 * - col1 FROM tab0 AS cor0 ---- -6536 -6916 -7372 onlyif mysql # use DIV operator for integer division query I rowsort label-4490 SELECT ALL + col2 * 58 + col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0 ---- 1914 4756 58 skipif mysql # not compatible query I rowsort label-4490 SELECT ALL + col2 * 58 + col0 / cor0.col1 AS col1 FROM tab0 AS cor0 ---- 1914 4756 58 query I rowsort SELECT col2 + + col1 * col2 AS col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT tab0.col2 AS col2 FROM tab0, tab1, tab2 AS cor0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4493 SELECT - - CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4493 SELECT - - CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 + ( col0 ) * + col2 * ( col1 ) FROM tab2 AS cor0 ---- 119711 51051 5890 query I rowsort SELECT ALL - ( + ( col1 ) ) * + col0 + col1 * col2 FROM tab0 AS cor0 ---- -3298 -637 774 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( col0 AS REAL ) * col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT + cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4498 SELECT col0 * col1 + col0 * CAST( NULL AS SIGNED ) + tab1.col0 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4498 SELECT col0 * col1 + col0 * CAST ( NULL AS INTEGER ) + tab1.col0 AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT 55 + + 29 * - col0 FROM tab2 ---- -148 -2207 -2236 query I rowsort SELECT DISTINCT - 78 + - 83 FROM tab0 ---- -161 onlyif mysql # use DIV operator for integer division query I rowsort label-4501 SELECT ( + ( col0 ) ) DIV col0 + + col0 * - col1 AS col0 FROM tab2 AS cor0 ---- -1342 -216 -4601 skipif mysql # not compatible query I rowsort label-4501 SELECT ( + ( col0 ) ) / col0 + + col0 * - col1 AS col0 FROM tab2 AS cor0 ---- -1342 -216 -4601 query I rowsort SELECT - - 56 + col1 AS col2 FROM tab1 AS cor0 ---- 66 69 82 onlyif mysql # use DIV operator for integer division query I rowsort label-4503 SELECT cor1.col1 DIV - 96 col2 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to a46f44f30b2183508f32c16a79479cd9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4503 SELECT cor1.col1 / - 96 col2 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to a46f44f30b2183508f32c16a79479cd9 query I rowsort SELECT + - col1 + col0 * - col1 AS col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT DISTINCT 8 AS col1 FROM tab0 AS cor0 ---- 8 query I rowsort SELECT - cor0.col0 * + col0 - col0 AS col2 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT ALL + col2 * 22 + col0 * 97 FROM tab2 AS cor0 ---- 1273 8138 8499 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 56 * cor0.col1 * col0 col1 FROM tab2 AS cor0 ---- -12152 -257712 -75208 query I rowsort SELECT - col0 * cor0.col2 + col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT DISTINCT - col1 + col0 * 31 + - col0 * col0 FROM tab1 AS cor0 ---- -2122 -3933 58 query I rowsort SELECT DISTINCT + - col0 * + col0 + col2 FROM tab2 AS cor0 ---- -22 -6058 -6203 query I rowsort SELECT ALL + cor0.col1 * - col0 - col1 * 85 * col0 AS col1 FROM tab0 AS cor0 ---- -177504 -291970 -696514 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4513 SELECT ALL col1 * - cor0.col2 + CAST( + col0 AS SIGNED ) * - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1566 -4218 -8928 skipif mysql # not compatible query I rowsort label-4513 SELECT ALL col1 * - cor0.col2 + CAST ( + col0 AS INTEGER ) * - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1566 -4218 -8928 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + 86 * col2 col2 FROM tab2 ---- 2295 2353 3285 query I rowsort SELECT DISTINCT - 63 + col1 AS col0 FROM tab2 ---- -32 -4 -46 query I rowsort SELECT + - col1 + col2 * 73 + - col0 AS col0 FROM tab2 AS cor0 ---- 1761 1933 2678 onlyif mysql # use DIV operator for integer division query I rowsort label-4517 SELECT col0 + col2 * col0 DIV col0 FROM tab0 AS cor0 ---- 171 36 57 skipif mysql # not compatible query I rowsort label-4517 SELECT col0 + col2 * col0 / col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT ALL + col0 * + cor0.col2 + + col2 * + col1 FROM tab0 AS cor0 ---- 132 14760 3630 query I rowsort SELECT DISTINCT col0 + col0 + - col1 AS col1 FROM tab0 AS cor0 ---- -27 -38 87 query I rowsort SELECT - - cor0.col2 * ( col2 ) FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4521 SELECT ALL + + col0 * - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-4521 SELECT ALL + + col0 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-4522 SELECT - + col1 DIV - CAST( col2 AS SIGNED ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4522 SELECT - + col1 / - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + + 46 col0 FROM tab1 AS cor0 ---- 100 103 142 query I rowsort SELECT DISTINCT 27 * + col0 FROM tab1 ---- 1728 2160 81 query I rowsort SELECT + tab1.col1 + col1 * col2 * col1 FROM tab1 ---- 16237 36530 5710 onlyif mysql # use DIV operator for integer division query I rowsort label-4526 SELECT ALL col2 * col2 + col0 DIV col0 + col2 AS col2 FROM tab1 AS cor0 ---- 2971 3307 9313 skipif mysql # not compatible query I rowsort label-4526 SELECT ALL col2 * col2 + col0 / col0 + col2 AS col2 FROM tab1 AS cor0 ---- 2971 3307 9313 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * - 15 col1 FROM tab1 AS cor0 ---- -1440 -810 -855 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col1 - CAST ( col2 AS REAL ) FROM tab2 ---- -55 -58 -85 query I rowsort SELECT - ( col0 ) * col2 + 95 AS col1 FROM tab1 cor0 ---- -3553 -67 -7585 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4530 SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4530 SELECT DISTINCT + CAST ( NULL AS REAL ) * + col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - ( - col1 ) * col0 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT col0 + + 12 * - col2 AS col1 FROM tab1 ---- -1072 -620 -645 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab2.col1 + - col1 col1 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4534 SELECT ALL - col1 DIV col2 + col0 FROM tab0 ---- -62 22 88 skipif mysql # not compatible query I rowsort label-4534 SELECT ALL - col1 / col2 + col0 FROM tab0 ---- -62 22 88 query I rowsort SELECT ALL - ( col0 ) + - ( col1 ) FROM tab0 ---- -110 -132 -180 query I rowsort SELECT + 82 * - col0 AS col0 FROM tab2 ---- -574 -6396 -6478 query I rowsort SELECT ALL col2 + - col1 * + col1 AS col2 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT ALL - 41 * + col2 AS col1 FROM tab0 AS cor0 ---- -1353 -3362 -41 query I rowsort SELECT DISTINCT + 21 + + col0 * tab1.col0 FROM tab1 ---- 30 4117 6421 onlyif mysql # use DIV operator for integer division query I rowsort label-4540 SELECT + tab0.col2 DIV tab0.col2 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 skipif mysql # not compatible query I rowsort label-4540 SELECT + tab0.col2 / tab0.col2 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 query I rowsort SELECT DISTINCT - col0 * + col0 + - col1 FROM tab1 AS cor0 ---- -35 -4106 -6413 query I rowsort SELECT ALL + col0 + 83 + + cor0.col0 FROM tab2 cor0 ---- 239 241 97 query I rowsort SELECT ALL + + col2 * col2 * + col1 FROM tab1 AS cor0 ---- 119808 32490 75816 query I rowsort SELECT DISTINCT + cor0.col1 + - ( col0 ) FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT DISTINCT - col1 + + cor0.col2 * + 52 AS col2 FROM tab0 AS cor0 ---- -45 1630 4173 onlyif mysql # use DIV operator for integer division query I rowsort label-4546 SELECT cor0.col2 DIV ( - 61 ) AS col1 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-4546 SELECT cor0.col2 / ( - 61 ) AS col1 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT col1 * + col1 + 80 FROM tab2 AS cor0 ---- 1041 3561 369 onlyif mysql # use DIV operator for integer division query I rowsort label-4548 SELECT ALL + + col0 * - col0 + 30 DIV col0 AS col1 FROM tab2 cor0 ---- -45 -6084 -6241 skipif mysql # not compatible query I rowsort label-4548 SELECT ALL + + col0 * - col0 + 30 / col0 AS col1 FROM tab2 cor0 ---- -45 -6084 -6241 onlyif mysql # use DIV operator for integer division query I rowsort label-4549 SELECT DISTINCT + col2 DIV + 39 AS col1 FROM tab0 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-4549 SELECT DISTINCT + col2 / + 39 AS col1 FROM tab0 AS cor0 ---- 0 2 query I rowsort SELECT + cor0.col2 + - col1 * 13 FROM tab2 AS cor0 ---- -183 -376 -741 query I rowsort SELECT + col2 + - col0 * col2 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT col1 / + tab2.col1 FROM tab2 WHERE col2 * + col1 IN ( col0 * + col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4553 SELECT ALL + col1 DIV col1 + col1 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-4553 SELECT ALL + col1 / col1 + col1 FROM tab0 ---- 87 92 98 query I rowsort SELECT DISTINCT tab0.col2 - + col1 * - tab0.col1 AS col0 FROM tab0 ---- 7429 8363 9410 query I rowsort SELECT ALL + + col1 * col0 + - col0 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT DISTINCT - 12 + col2 + ( col1 ) FROM tab2 cor0 ---- 43 46 73 query I rowsort SELECT - col1 * col1 + - 78 AS col1 FROM tab2 AS cor0 ---- -1039 -3559 -367 query I rowsort SELECT col1 * col1 + ( - col1 ) FROM tab2 AS cor0 ---- 272 3422 930 query I rowsort SELECT + col0 + col0 * + col0 FROM tab1 ---- 12 4160 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-4560 SELECT ALL - col1 DIV col2 + col0 col0 FROM tab0 ---- -62 22 88 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4560 SELECT ALL - col1 / col2 + col0 col0 FROM tab0 ---- -62 22 88 onlyif mysql # use DIV operator for integer division query I rowsort label-4561 SELECT - ( - col2 ) + col2 DIV col2 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-4561 SELECT - ( - col2 ) + col2 / col2 FROM tab1 AS cor0 ---- 55 58 97 query I rowsort SELECT + ( cor0.col1 ) * ( 0 ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b query I rowsort SELECT - 1 * col1 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT - - cor0.col2 * + col2 AS col1 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT - 63 + + col2 * 68 FROM tab2 cor0 ---- 1705 1773 2521 query I rowsort SELECT + cor0.col1 - + col2 AS col2 FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT cor0.col2 * 7 + col1 - + col1 * 62 AS col1 FROM tab2 AS cor0 ---- -1702 -3417 -771 onlyif mysql # use DIV operator for integer division query I rowsort label-4569 SELECT col2 - col1 DIV + 63 AS col1 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-4569 SELECT col2 - col1 / + 63 AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ( + 31 ) * cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to bc851363a3b6fbdfd4e10a029a26af8a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4571 SELECT + + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4571 SELECT + + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL ( - 42 ) AS col0 FROM tab0 ---- -42 -42 -42 query I rowsort SELECT DISTINCT tab2.col1 AS col2 FROM tab2, tab1 cor0 ---- 17 31 59 query I rowsort SELECT tab2.col2 * + col0 * + col2 + - col0 FROM tab2 ---- 113997 5096 52650 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 70 col0 FROM tab1 ---- -70 query I rowsort SELECT ALL ( + col1 ) * col0 AS col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL - col1 * + 87 FROM tab2 AS cor0 ---- -1479 -2697 -5133 query I rowsort SELECT col1 * + cor0.col2 + cor0.col2 * col0 FROM tab2 AS cor0 ---- 1026 3562 3648 query I rowsort SELECT ALL - + col0 * 61 FROM tab2 AS cor0 ---- -427 -4758 -4819 query I rowsort SELECT + col1 + - cor0.col1 * + col1 FROM tab0 AS cor0 ---- -7310 -8190 -9312 onlyif mysql # use DIV operator for integer division query I rowsort label-4581 SELECT + cor0.col1 + col0 DIV col2 AS col1 FROM tab0 AS cor0 ---- 132 86 92 skipif mysql # not compatible query I rowsort label-4581 SELECT + cor0.col1 + col0 / col2 AS col1 FROM tab0 AS cor0 ---- 132 86 92 query I rowsort SELECT DISTINCT col2 * - col0 - + col0 * + col1 AS col1 FROM tab1 AS cor0 ---- -240 -4288 -8720 onlyif mysql # use DIV operator for integer division query I rowsort label-4583 SELECT - 31 DIV - col1 AS col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4583 SELECT - 31 / - col1 AS col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT + - col0 + + col0 * - 28 AS col1 FROM tab2 AS cor0 ---- -203 -2262 -2291 query I rowsort SELECT + col1 + col1 + - col0 AS col2 FROM tab0 AS cor0 ---- 148 159 93 query I rowsort SELECT + - col2 * col2 + col1 * col1 AS col1 FROM tab1 AS cor0 ---- -2240 -3149 -9047 query I rowsort SELECT - cor0.col0 + + col1 + col1 AS col1 FROM tab2 AS cor0 ---- -45 40 55 query I rowsort SELECT DISTINCT - col1 * + 17 AS col0 FROM tab1 AS cor0 ---- -170 -221 -442 query I rowsort SELECT ALL - + col0 + cor0.col2 AS col1 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT ( - 42 ) AS col2 FROM tab0 AS cor0 ---- -42 query I rowsort SELECT + col0 + - col2 * 35 AS col1 FROM tab2 ---- -1251 -832 -938 query I rowsort SELECT col0 * tab2.col1 + + col2 AS col1 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT DISTINCT + 98 * col1 * col1 + - col1 FROM tab2 AS cor0 ---- 28305 341079 94147 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4594 SELECT 24 + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4594 SELECT 24 + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 74 + cor0.col2 FROM tab2 AS cor0 ---- 100 101 112 query I rowsort SELECT - col2 * col2 - 7 FROM tab1 AS cor0 ---- -2923 -3256 -9223 query I rowsort SELECT DISTINCT 76 FROM tab1 cor0 ---- 76 query I rowsort SELECT DISTINCT - col2 * tab1.col2 - + 77 * + col0 FROM tab1 ---- -15376 -3147 -8177 onlyif mysql # use DIV operator for integer division query I rowsort label-4599 SELECT ALL 19 * - col2 - - 15 DIV col0 AS col0 FROM tab2 ---- -494 -511 -722 skipif mysql # not compatible query I rowsort label-4599 SELECT ALL 19 * - col2 - - 15 / col0 AS col0 FROM tab2 ---- -494 -511 -722 query I rowsort SELECT ALL ( - col1 * + ( - col1 ) ) - + col1 * + col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT - 91 * + col2 * + 15 FROM tab2 ---- -35490 -36855 -51870 query I rowsort SELECT col1 * - col2 + - 90 * + col2 AS col0 FROM tab0 ---- -14842 -187 -5808 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4603 SELECT + col2 * + col1 + + CAST( col1 AS SIGNED ) * + col1 col1 FROM tab2 AS cor0 ---- 1798 5015 935 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4603 SELECT + col2 * + col1 + + CAST ( col1 AS INTEGER ) * + col1 col1 FROM tab2 AS cor0 ---- 1798 5015 935 onlyif mysql # use DIV operator for integer division query I rowsort label-4604 SELECT - cor0.col1 + - CAST( - ( + col0 ) AS SIGNED ) + 3 DIV + 6 FROM tab1 AS cor0 ---- -23 54 67 skipif mysql # not compatible query I rowsort label-4604 SELECT - cor0.col1 + - CAST ( - ( + col0 ) AS INTEGER ) + 3 / + 6 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT col2 + 90 FROM tab0 cor0 ---- 123 172 91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * cor0.col1 col2 FROM tab1, tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT + cor0.col0 * 6 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to db0e4131803545a8cb9d5124a84d835a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - cor0.col2 + col1 col2 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT - col2 * - col0 + tab2.col0 * col1 FROM tab2 ---- 406 4345 6630 query I rowsort SELECT DISTINCT col2 + col0 + + 47 FROM tab0 ---- 104 218 83 query I rowsort SELECT + ( 14 ) FROM tab1, tab1 cor0 ---- 9 values hashing to 83e5779d2487d12495e7d816c797264f query I rowsort SELECT col2 - + 65 AS col0 FROM tab1 cor0 ---- -11 -8 31 query I rowsort SELECT ALL col0 + - ( - ( - col2 ) ) * + col1 + + col0 AS col1 FROM tab0 AS cor0 ---- -27 -2790 -7284 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4614 SELECT col0 / CAST( NULL AS DECIMAL ) - - ( - col2 ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4614 SELECT col0 / CAST ( NULL AS REAL ) - - ( - col2 ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col2 + 74 FROM tab0 AS cor0 ---- 107 156 75 query I rowsort SELECT ALL + ( col0 * col0 ) FROM tab2 ---- 49 6084 6241 query I rowsort SELECT - col1 + + 70 FROM tab0 ---- -16 -21 -27 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4618 SELECT + CAST( NULL AS SIGNED ) - + col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4618 SELECT + CAST ( NULL AS INTEGER ) - + col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + + ( + col0 ) * - cor0.col2 + 9 AS col0 FROM tab0 AS cor0 ---- -26 -7289 -783 onlyif mysql # use DIV operator for integer division query I rowsort label-4620 SELECT ALL - col1 * col0 + 28 * ( col1 ) DIV + 72 AS col0 FROM tab0 AS cor0 ---- -2031 -3358 -8064 skipif mysql # not compatible query I rowsort label-4620 SELECT ALL - col1 * col0 + 28 * ( col1 ) / + 72 AS col0 FROM tab0 AS cor0 ---- -2031 -3358 -8064 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 24 col1 FROM tab1 AS cor0 ---- -24 -24 -24 query I rowsort SELECT ALL - 45 + col0 AS col1 FROM tab1 AS cor0 ---- -42 19 35 query I rowsort SELECT ALL - + cor0.col2 + + cor0.col0 FROM tab0 AS cor0 ---- -9 34 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4624 SELECT DISTINCT + - col1 * + col0 + CAST( NULL AS SIGNED ) - 2 * col0 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4624 SELECT DISTINCT + - col1 * + col0 + CAST ( NULL AS INTEGER ) - 2 * col0 AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + + col1 + col1 * ( + col1 + - col1 ) FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT ALL + col1 + col0 * 55 FROM tab1 AS cor0 ---- 191 3530 4413 query I rowsort SELECT - 88 + + col2 * 93 AS col1 FROM tab1 AS cor0 ---- 4934 5213 8840 query I rowsort SELECT ALL + col1 * + col2 + 78 FROM tab0 AS cor0 ---- 175 2916 7540 onlyif mysql # use DIV operator for integer division query I rowsort label-4629 SELECT ALL + col0 + col2 DIV + col2 + col0 FROM tab1 AS cor0 ---- 129 161 7 skipif mysql # not compatible query I rowsort label-4629 SELECT ALL + col0 + col2 / + col2 + col0 FROM tab1 AS cor0 ---- 129 161 7 onlyif mysql # use DIV operator for integer division query I rowsort label-4630 SELECT DISTINCT - 55 * col0 DIV ( - col1 + col2 ) FROM tab1 AS cor0 ---- -5 -53 -74 skipif mysql # not compatible query I rowsort label-4630 SELECT DISTINCT - 55 * col0 / ( - col1 + col2 ) FROM tab1 AS cor0 ---- -5 -53 -74 query I rowsort SELECT DISTINCT 46 * - col0 * ( + 30 ) + col1 FROM tab1 cor0 ---- -110387 -4114 -88310 query I rowsort SELECT tab1.col2 * + tab1.col2 - + col2 FROM tab1 ---- 2862 3192 9120 query I rowsort SELECT 29 + + 53 AS col2 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944 query I rowsort SELECT DISTINCT + col1 + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0 ---- -4086 -6387 17 onlyif mysql # use DIV operator for integer division query I rowsort label-4635 SELECT DISTINCT col0 - + col1 DIV col0 AS col1 FROM tab0 AS cor0 ---- 21 33 88 skipif mysql # not compatible query I rowsort label-4635 SELECT DISTINCT col0 - + col1 / col0 AS col1 FROM tab0 AS cor0 ---- 21 33 88 query I rowsort SELECT - - 37 * + 46 FROM tab2 cor0 ---- 1702 1702 1702 query I rowsort SELECT + - 13 * - col1 * + col1 FROM tab1 AS cor0 ---- 1300 2197 8788 query I rowsort SELECT - 56 + cor0.col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 35cc378245a47b31145fb2cd87e9f35a query I rowsort SELECT - col0 * + 71 FROM tab1 AS cor0 ---- -213 -4544 -5680 query I rowsort SELECT ALL 26 FROM tab1, tab1 cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4641 SELECT 77 * - tab1.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-4641 SELECT 77 * - tab1.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # use DIV operator for integer division query I rowsort label-4642 SELECT ALL - col0 * col0 DIV + col0 + - CAST( tab0.col0 AS SIGNED ) AS col0 FROM tab0 ---- -178 -48 -70 skipif mysql # not compatible query I rowsort label-4642 SELECT ALL - col0 * col0 / + col0 + - CAST ( tab0.col0 AS INTEGER ) AS col0 FROM tab0 ---- -178 -48 -70 query I rowsort SELECT DISTINCT + 61 FROM tab1, tab1 cor0 ---- 61 query I rowsort SELECT + - col1 * - col1 + ( col1 ) AS col1 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT col2 + - col2 * 47 AS col2 FROM tab0 cor0 ---- -1518 -3772 -46 onlyif mysql # use DIV operator for integer division query I rowsort label-4646 SELECT + 6 DIV - col0 AS col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4646 SELECT + 6 / - col0 AS col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT + + col0 + + col0 * - col2 * + ( - 42 ) AS col0 FROM tab2 AS cor0 ---- 126163 7945 85254 query I rowsort SELECT DISTINCT + cor0.col1 + + col0 * - cor0.col2 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT - 63 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 5a7845ef6e239561caf9a17a28e274b5 onlyif mysql # use DIV operator for integer division query I rowsort label-4650 SELECT DISTINCT + 25 DIV - col1 FROM tab1 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-4650 SELECT DISTINCT + 25 / - col1 FROM tab1 ---- -1 -2 0 query I rowsort SELECT col0 + - col0 * + ( + col0 ) AS col2 FROM tab2 ---- -42 -6006 -6162 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4652 SELECT - col1 * + CAST( col0 AS SIGNED ) + col0 FROM tab2 AS cor0 ---- -1264 -210 -4524 skipif mysql # not compatible query I rowsort label-4652 SELECT - col1 * + CAST ( col0 AS INTEGER ) + col0 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT col0 * - 79 FROM tab1 AS cor0 ---- -237 -5056 -6320 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4654 SELECT + col0 + + CAST( + 14 AS SIGNED ) * col2 FROM tab2 AS cor0 ---- 385 442 611 skipif mysql # not compatible query I rowsort label-4654 SELECT + col0 + + CAST ( + 14 AS INTEGER ) * col2 FROM tab2 AS cor0 ---- 385 442 611 query I rowsort SELECT - 78 * + col1 + + ( + col0 ) FROM tab0 ---- -6684 -7009 -7531 query I rowsort SELECT ALL - - 63 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * col2 + - 98 + col1 col0 FROM tab2 AS cor0 ---- 1363 637 662 query I rowsort SELECT ALL - - col0 * 5 FROM tab2 AS cor0 ---- 35 390 395 onlyif mysql # use DIV operator for integer division query I rowsort label-4659 SELECT ALL - col1 DIV col0 + - cor0.col1 col0 FROM tab1 AS cor0 ---- -10 -13 -34 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4659 SELECT ALL - col1 / col0 + - cor0.col1 col0 FROM tab1 AS cor0 ---- -10 -13 -34 query I rowsort SELECT DISTINCT 96 * - 4 FROM tab0, tab0 AS cor0 ---- -384 onlyif mysql # use DIV operator for integer division query I rowsort label-4661 SELECT - col1 DIV col2 + + col2 DIV col0 AS col1 FROM tab0 ---- -1 -1 -97 skipif mysql # not compatible query I rowsort label-4661 SELECT - col1 / col2 + + col2 / col0 AS col1 FROM tab0 ---- -1 -1 -97 query I rowsort SELECT ALL + col2 * 56 * col1 + + tab2.col1 * 3 FROM tab2 ---- 36227 46965 86081 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 - col1 col2 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT + ( - 64 ) FROM tab0 AS cor0 ---- -64 -64 -64 query I rowsort SELECT - 46 * - col0 + - col2 * + col2 AS col2 FROM tab2 AS cor0 ---- -407 2190 2912 onlyif mysql # use DIV operator for integer division query I rowsort label-4666 SELECT - col0 + - 17 DIV col0 FROM tab2 AS cor0 ---- -78 -79 -9 skipif mysql # not compatible query I rowsort label-4666 SELECT - col0 + - 17 / col0 FROM tab2 AS cor0 ---- -78 -79 -9 query I rowsort SELECT - 58 * + col1 FROM tab1 AS cor0 ---- -1508 -580 -754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 45 * - 69 + - col2 * + cor0.col0 col2 FROM tab1 AS cor0 ---- -4575 -543 2943 query I rowsort SELECT 77 + + col2 * + cor0.col1 FROM tab0 AS cor0 ---- 174 2915 7539 query I rowsort SELECT DISTINCT - 30 * + cor0.col0 FROM tab0 AS cor0 ---- -1050 -2670 -720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 90 col0 FROM tab2 cor0 ---- 90 90 90 query I rowsort SELECT - 28 * - col0 + - ( + 82 ) FROM tab0 cor0 ---- 2410 590 898 query I rowsort SELECT + 63 * col0 FROM tab2 ---- 441 4914 4977 query I rowsort SELECT ( col0 ) + - ( 53 ) FROM tab2 AS cor0 ---- -46 25 26 query I rowsort SELECT 83 * col1 * - 38 AS col1 FROM tab0 AS cor0 ---- -271244 -287014 -305938 query I rowsort SELECT - - col0 + + col1 * col0 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT - 7 + + col2 FROM tab1 AS cor0 ---- 47 50 89 query I rowsort SELECT + 17 + col2 * col1 FROM tab0 AS cor0 ---- 114 2855 7479 query I rowsort SELECT col0 * col1 * - col0 AS col2 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT - 21 * - cor0.col0 + 45 AS col0 FROM tab0 AS cor0 ---- 1914 549 780 query I rowsort SELECT col1 * - 41 + + col1 FROM tab0 AS cor0 ---- -3440 -3640 -3880 query I rowsort SELECT + 22 * col2 AS col2 FROM tab0 ---- 1804 22 726 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4683 SELECT ALL col1 * CAST( col0 * - col0 AS SIGNED ) AS col0 FROM tab1 cor0 ---- -234 -40960 -83200 skipif mysql # not compatible query I rowsort label-4683 SELECT ALL col1 * CAST ( col0 * - col0 AS INTEGER ) AS col0 FROM tab1 cor0 ---- -234 -40960 -83200 query I rowsort SELECT DISTINCT col2 + col2 + col2 * - col1 FROM tab1 AS cor0 ---- -1056 -1296 -456 query I rowsort SELECT DISTINCT 33 + 67 AS col1 FROM tab1 ---- 100 onlyif mysql # use DIV operator for integer division query I rowsort label-4686 SELECT - cor0.col0 + col1 DIV col0 AS col0 FROM tab2 AS cor0 ---- -3 -78 -79 skipif mysql # not compatible query I rowsort label-4686 SELECT - cor0.col0 + col1 / col0 AS col0 FROM tab2 AS cor0 ---- -3 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-4687 SELECT DISTINCT - col2 - + tab1.col0 DIV col1 FROM tab1 ---- -102 -54 -63 skipif mysql # not compatible query I rowsort label-4687 SELECT DISTINCT - col2 - + tab1.col0 / col1 FROM tab1 ---- -102 -54 -63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 56 col2 FROM tab2 ---- -56 -56 -56 query I rowsort SELECT col1 - + 29 FROM tab0 cor0 ---- 57 62 68 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4690 SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( col2 ) + - col1 * col1 * + cor0.col0 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4690 SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( col2 ) + - col1 * col1 * + cor0.col0 FROM tab2 cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 92 col2 FROM tab0 AS cor0 ---- 92 92 92 query I rowsort SELECT + 13 + - 16 AS col2 FROM tab2 AS cor0 ---- -3 -3 -3 onlyif mysql # use DIV operator for integer division query I rowsort label-4693 SELECT ALL ( 40 ) + col0 - col1 DIV ( + col0 ) FROM tab0 AS cor0 ---- 128 61 73 skipif mysql # not compatible query I rowsort label-4693 SELECT ALL ( 40 ) + col0 - col1 / ( + col0 ) FROM tab0 AS cor0 ---- 128 61 73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + - col0 * col0 col0 FROM tab0 AS cor0 ---- -1322 -662 -8012 query I rowsort SELECT DISTINCT + + ( cor0.col2 ) AS col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT col2 + - 2 - col1 AS col1 FROM tab1 AS cor0 ---- 26 45 81 query I rowsort SELECT + - col1 * - col1 + 65 * col2 AS col0 FROM tab1 AS cor0 ---- 3805 4186 6409 query I rowsort SELECT + col1 * col1 + + 95 FROM tab0 AS cor0 ---- 7491 8376 9504 query I rowsort SELECT DISTINCT - 67 * col2 - + col1 FROM tab1 AS cor0 ---- -3644 -3829 -6445 query I rowsort SELECT ALL + col2 * + col1 - col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT ALL col0 * col0 + + col2 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT ALL - - col2 + + col2 AS col1 FROM tab2 cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT 39 FROM tab0, tab1 AS cor0 ---- 39 query I rowsort SELECT DISTINCT + col1 * 99 AS col1 FROM tab1 cor0 ---- 1287 2574 990 query I rowsort SELECT ALL + col1 + - col2 * + cor0.col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT ALL col2 * + tab0.col1 AS col2 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT ALL col0 * + 25 AS col0 FROM tab0 ---- 2225 600 875 query I rowsort SELECT - col1 + + 99 AS col0 FROM tab2 AS cor0 ---- 40 68 82 query I rowsort SELECT ( col1 ) * col0 AS col2 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT col0 * 79 AS col0 FROM tab2 cor0 ---- 553 6162 6241 query I rowsort SELECT ALL col2 * 59 * col0 AS col0 FROM tab2 ---- 11151 119652 177118 query I rowsort SELECT - tab2.col1 * - col2 * col1 - tab2.col0 FROM tab2 ---- 10903 25940 90428 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4713 SELECT + tab0.col0 * CAST( NULL AS SIGNED ) - + tab0.col2 col1 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4713 SELECT + tab0.col0 * CAST ( NULL AS INTEGER ) - + tab0.col2 col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT col0 + ( - tab2.col2 ) FROM tab2 ---- -20 41 52 query I rowsort SELECT DISTINCT + col0 * - 33 FROM tab0 ---- -1155 -2937 -792 query I rowsort SELECT ALL + 11 FROM tab0, tab2 cor0 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 query I rowsort SELECT ALL 87 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 8661ffbd1a72897c495405c53b816e50 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4718 SELECT - CAST( NULL AS SIGNED ) / ( col1 ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4718 SELECT - CAST ( NULL AS INTEGER ) / ( col1 ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 66 col0 FROM tab1 AS cor0 ---- -66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( + 67 ) col1 FROM tab0 cor0 ---- 67 onlyif mysql # use DIV operator for integer division query I rowsort label-4721 SELECT ALL col1 DIV 46 AS col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4721 SELECT ALL col1 / 46 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT - ( 16 + + col0 ) * col0 AS col1 FROM tab2 ---- -161 -7332 -7505 skipif mysql # not compatible query I rowsort SELECT + CAST ( col1 AS REAL ) * col1 + - 41 + col1 FROM tab0 ---- 7441 8331 9465 query I rowsort SELECT DISTINCT + 68 AS col2 FROM tab1, tab0 cor0 ---- 68 query I rowsort SELECT ALL - ( 67 ) * col0 FROM tab2 AS cor0 ---- -469 -5226 -5293 query I rowsort SELECT DISTINCT col2 + 44 * col1 AS col2 FROM tab0 AS cor0 ---- 3817 4086 4269 query I rowsort SELECT DISTINCT + col2 + - 82 AS col2 FROM tab0 AS cor0 ---- -49 -81 0 query I rowsort SELECT col2 * - col0 * cor0.col2 FROM tab2 AS cor0 ---- -114076 -5103 -52728 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4729 SELECT ALL + CAST( 46 AS SIGNED ) * - col1 FROM tab2 ---- -1426 -2714 -782 skipif mysql # not compatible query I rowsort label-4729 SELECT ALL + CAST ( 46 AS INTEGER ) * - col1 FROM tab2 ---- -1426 -2714 -782 query I rowsort SELECT ALL - col0 + col1 * col1 AS col2 FROM tab0 AS cor0 ---- 7372 8192 9374 query I rowsort SELECT ALL col2 * - col0 + 58 AS col2 FROM tab1 ---- -104 -3590 -7622 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col2 * col1 * ( col2 * + col0 ) col2 FROM tab0 ---- -2247696 -3395 -54457676 query I rowsort SELECT ALL - col1 * 90 AS col0 FROM tab1 AS cor0 ---- -1170 -2340 -900 query I rowsort SELECT ALL col0 * + 54 + col0 * - cor0.col2 * ( - 98 * - cor0.col1 ) FROM tab1 cor0 ---- -3571584 -412614 -9780000 query I rowsort SELECT DISTINCT - cor0.col2 * 80 + ( + col1 ) AS col1 FROM tab1 AS cor0 ---- -4294 -4550 -7667 query I rowsort SELECT ALL + col1 + + 79 * + col2 FROM tab2 AS cor0 ---- 2113 2164 3019 query I rowsort SELECT ALL + col2 + + ( col1 ) AS col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT + - col0 + col1 * 9 FROM tab1 cor0 ---- 231 26 37 onlyif mysql # use DIV operator for integer division query I rowsort label-4739 SELECT - cor0.col1 DIV + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4739 SELECT - cor0.col1 / + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL col2 * - 92 + + col2 FROM tab2 AS cor0 ---- -2366 -2457 -3458 query I rowsort SELECT DISTINCT - col0 + 14 AS col1 FROM tab2 AS cor0 ---- -64 -65 7 query I rowsort SELECT DISTINCT - + cor0.col0 + ( - 50 ) + - cor0.col0 FROM tab1 cor0 ---- -178 -210 -56 query I rowsort SELECT ALL + + col0 + - 59 AS col0 FROM tab1 AS cor0 ---- -56 21 5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4744 SELECT ALL - col2 + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4744 SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL cor0.col0 - 17 FROM tab0 AS cor0 ---- 18 7 72 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4746 SELECT - CAST( NULL AS SIGNED ) / + 9 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-4746 SELECT - CAST ( NULL AS INTEGER ) / + 9 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL cor1.col2 * + 43 AS col1 FROM tab1, tab2, tab1 AS cor0, tab1 cor1 ---- 81 values hashing to 95fd0788ec7126fc49da442f124236cb query I rowsort SELECT 3 * + col0 FROM tab2 cor0 ---- 21 234 237 query I rowsort SELECT col1 * - col1 * 69 AS col2 FROM tab0 AS cor0 ---- -510324 -571389 -649221 query I rowsort SELECT - + col2 * + 88 FROM tab0 cor0 ---- -2904 -7216 -88 query I rowsort SELECT col0 * - 29 * ( col0 + - col0 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - ( - col0 + 87 ) FROM tab0 ---- -52 -63 2 query I rowsort SELECT ALL - tab2.col2 * tab2.col0 * col0 AS col0 FROM tab2 ---- -1323 -158184 -237158 query I rowsort SELECT - ( col0 ) * cor0.col0 + - 36 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- -58 -6094 -6239 query I rowsort SELECT - - ( col1 ) + col1 AS col1 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT DISTINCT + col0 * + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - - ( 39 ) * col2 AS col1 FROM tab1 AS cor0 ---- 2106 2223 3744 query I rowsort SELECT DISTINCT + + col1 + col0 * col2 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL + ( + col0 ) + + col1 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT + col1 + - ( - cor0.col2 ) + + col1 * col1 * col2 FROM tab2 AS cor0 ---- 11037 26005 90591 query I rowsort SELECT 31 * col1 * cor0.col1 FROM tab0 AS cor0 ---- 229276 256711 291679 query I rowsort SELECT DISTINCT - col2 + col1 * - tab0.col1 FROM tab0 ---- -7429 -8363 -9410 onlyif mysql # use DIV operator for integer division query I rowsort label-4763 SELECT DISTINCT + col1 DIV + 86 AS col2 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4763 SELECT DISTINCT + col1 / + 86 AS col2 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL + - 3 + 60 AS col0 FROM tab0 AS cor0 ---- 57 57 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 3 + + col1 col2 FROM tab1 ---- 10 23 7 query I rowsort SELECT - ( - ( + col2 ) ) * col2 AS col0 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT 64 + col0 FROM tab2 AS cor0 ---- 142 143 71 query I rowsort SELECT DISTINCT + 75 + + col1 + + ( + col1 + - col2 ) AS col2 FROM tab0 AS cor0 ---- 175 214 268 query I rowsort SELECT - col0 * cor0.col0 + cor0.col0 * - col2 FROM tab1 AS cor0 ---- -14080 -171 -7744 query I rowsort SELECT + 21 AS col2 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 312c166f4dc412730c43555105b1f44b query I rowsort SELECT ALL ( col0 ) * col1 AS col2 FROM tab1 ---- 1040 640 78 query I rowsort SELECT + 44 * + 13 AS col2 FROM tab2 ---- 572 572 572 query I rowsort SELECT - 64 * - col2 - col1 * ( col2 ) AS col1 FROM tab2 ---- 130 1786 891 query I rowsort SELECT - cor0.col2 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1 ---- 81 values hashing to 2df272448a67587d4635afedff278dcc query I rowsort SELECT - col2 + col0 * ( ( - col0 ) ) AS col2 FROM tab1 AS cor0 ---- -4153 -63 -6496 query I rowsort SELECT + - col2 + - cor0.col2 * 21 * col0 AS col0 FROM tab2 AS cor0 ---- -3996 -42614 -63080 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 80 col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 878f012d707aab113cedaf56e6c52e94 query I rowsort SELECT cor0.col0 - 8 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 1705a9dd2112410f2cb39bfdd7138f1b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4779 SELECT + + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4779 SELECT + + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + 93 * col1 + col0 FROM tab2 AS cor0 ---- -1502 -2876 -5409 query I rowsort SELECT 51 FROM tab2, tab1 AS cor0 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 query I rowsort SELECT - col0 * ( + tab1.col2 ) * - col2 - col2 * 21 AS col1 FROM tab1 ---- 206739 735264 7614 query I rowsort SELECT 97 * 49 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to ba33a704c6454c76269e30008a69db6c query I rowsort SELECT 3 AS col2 FROM tab2 cor0 ---- 3 3 3 query I rowsort SELECT - col2 * 57 + - tab2.col2 AS col0 FROM tab2 ---- -1508 -1566 -2204 query I rowsort SELECT + col0 * - 83 + col1 FROM tab0 AS cor0 ---- -1906 -2808 -7296 onlyif mysql # use DIV operator for integer division query I rowsort label-4787 SELECT cor0.col0 DIV + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 4728b9736464ccaa7c845838010a4b42 skipif mysql # not compatible query I rowsort label-4787 SELECT cor0.col0 / + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 4728b9736464ccaa7c845838010a4b42 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col0 + col0 col2 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT DISTINCT col2 + col2 * - col1 * + ( col2 * - col2 ) FROM tab1 AS cor0 ---- 11501664 1851987 4094118 query I rowsort SELECT - + 90 FROM tab1 cor0 ---- -90 -90 -90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + - col0 col1 FROM tab2 cor0 ---- -137 -38 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-4792 SELECT ALL - col2 * col2 DIV - col0 col2 FROM tab2 AS cor0 ---- 104 18 8 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4792 SELECT ALL - col2 * col2 / - col0 col2 FROM tab2 AS cor0 ---- 104 18 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 15 + col0 * col0 col0 FROM tab2 AS cor0 ---- 6099 6256 64 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4794 SELECT DISTINCT + CAST( col1 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0 ---- 109 67 80 skipif mysql # not compatible query I rowsort label-4794 SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-4795 SELECT ALL - ( - col1 ) * col2 DIV ( + col1 ) col1 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4795 SELECT ALL - ( - col1 ) * col2 / ( + col1 ) col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL + - col1 * + cor0.col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT ALL + ( 49 ) + col2 * - col0 AS col0 FROM tab0 cor0 ---- -7249 -743 14 query I rowsort SELECT ALL 61 + - 74 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2 query I rowsort SELECT tab0.col0 - - tab0.col1 FROM tab0 ---- 110 132 180 onlyif mysql # use DIV operator for integer division query I rowsort label-4800 SELECT ALL + 38 DIV col1 AS col2 FROM tab2 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-4800 SELECT ALL + 38 / col1 AS col2 FROM tab2 AS cor0 ---- 0 1 2 query I rowsort SELECT DISTINCT + ( col1 ) * + col1 * col2 AS col0 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT DISTINCT - + ( col2 ) + - cor0.col1 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT ALL col0 * 6 FROM tab0 AS cor0 ---- 144 210 534 query I rowsort SELECT - 24 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to f2e40f6e5cdbc2877843191cb261975f onlyif mysql # use DIV operator for integer division query I rowsort label-4805 SELECT DISTINCT cor0.col0 DIV - col2 + col2 + - col2 DIV cor0.col0 FROM tab1 AS cor0 ---- 36 56 95 skipif mysql # not compatible query I rowsort label-4805 SELECT DISTINCT cor0.col0 / - col2 + col2 + - col2 / cor0.col0 FROM tab1 AS cor0 ---- 36 56 95 query I rowsort SELECT ALL + cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT + - col0 * col0 - + col0 AS col1 FROM tab0 AS cor0 ---- -1260 -600 -8010 query I rowsort SELECT ALL + col1 * col2 + - col0 FROM tab1 AS cor0 ---- 1168 1401 506 query I rowsort SELECT ALL 97 * cor0.col2 + 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 29da23b6311f3da43dbae842523a3838 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + cor0.col2 col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 * - ( col0 + + col1 ) col2 FROM tab0 AS cor0 ---- -12804 -16380 -9460 onlyif mysql # use DIV operator for integer division query I rowsort label-4812 SELECT + col1 * - col1 + col1 DIV col0 AS col1 FROM tab1 AS cor0 ---- -100 -169 -668 skipif mysql # not compatible query I rowsort label-4812 SELECT + col1 * - col1 + col1 / col0 AS col1 FROM tab1 AS cor0 ---- -100 -169 -668 query I rowsort SELECT ALL - col2 + col2 * col1 FROM tab0 cor0 ---- 2805 7380 96 onlyif mysql # use DIV operator for integer division query I rowsort label-4814 SELECT + - col2 DIV - ( 20 ) + - cor0.col0 + cor0.col1 FROM tab1 cor0 ---- -52 -63 25 skipif mysql # not compatible query I rowsort label-4814 SELECT + - col2 / - ( 20 ) + - cor0.col0 + cor0.col1 FROM tab1 cor0 ---- -52 -63 25 query I rowsort SELECT + - col2 * col2 * + col1 FROM tab0 AS cor0 ---- -611884 -93654 -97 query I rowsort SELECT ALL col2 * + 62 + col1 AS col1 FROM tab1 AS cor0 ---- 3374 3544 5965 query I rowsort SELECT DISTINCT col1 * + 79 FROM tab0 AS cor0 ---- 6794 7189 7663 query I rowsort SELECT DISTINCT col0 * 95 AS col0 FROM tab0 cor0 ---- 2280 3325 8455 query I rowsort SELECT col0 + - col2 * col0 + - cor0.col2 AS col1 FROM tab1 cor0 ---- -213 -3641 -7696 query I rowsort SELECT - - 81 AS col1 FROM tab2 cor0 ---- 81 81 81 query I rowsort SELECT DISTINCT + + 42 FROM tab0 AS cor0 ---- 42 query I rowsort SELECT DISTINCT 40 FROM tab0, tab0 cor0 ---- 40 query I rowsort SELECT DISTINCT cor1.col0 + 79 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1 ---- 103 114 168 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col0 + 16 col1 FROM tab2 ---- 1359 233 4618 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4825 SELECT DISTINCT - ( + cor0.col0 ) + CAST( NULL AS SIGNED ) * 65 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4825 SELECT DISTINCT - ( + cor0.col0 ) + CAST ( NULL AS INTEGER ) * 65 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT + col0 * col1 - + 22 FROM tab0 AS cor0 ---- 2042 3373 8077 query I rowsort SELECT DISTINCT + + 81 + + col1 FROM tab0 AS cor0 ---- 167 172 178 query I rowsort SELECT + - 29 + col0 FROM tab2 cor0 ---- -22 49 50 onlyif mysql # use DIV operator for integer division query I rowsort label-4829 SELECT DISTINCT - col0 * col0 + col0 + + col1 DIV col1 AS col0 FROM tab2 AS cor0 ---- -41 -6005 -6161 skipif mysql # not compatible query I rowsort label-4829 SELECT DISTINCT - col0 * col0 + col0 + + col1 / col1 AS col0 FROM tab2 AS cor0 ---- -41 -6005 -6161 query I rowsort SELECT DISTINCT 99 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- 99 query I rowsort SELECT - 45 - - col2 AS col2 FROM tab0 AS cor0 ---- -12 -44 37 query I rowsort SELECT 99 * col0 + col1 * 33 FROM tab0 ---- 11814 5214 6666 query I rowsort SELECT ALL col0 * - col1 + - col2 AS col0 FROM tab1 ---- -1136 -132 -697 query I rowsort SELECT - col0 + - ( col2 ) * - col0 AS col0 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT ALL + col0 + col1 * ( + 70 ) * - tab1.col0 FROM tab1 ---- -44736 -5457 -72720 onlyif mysql # use DIV operator for integer division query I rowsort label-4836 SELECT ALL ( col2 ) + 69 DIV col0 AS col2 FROM tab0 ---- 2 35 82 skipif mysql # not compatible query I rowsort label-4836 SELECT ALL ( col2 ) + 69 / col0 AS col2 FROM tab0 ---- 2 35 82 query I rowsort SELECT + 99 * + col2 * + 40 AS col0 FROM tab0 ---- 130680 324720 3960 onlyif mysql # use DIV operator for integer division query I rowsort label-4838 SELECT + col1 * col2 * + col1 + 90 * + col1 DIV - col1 + ( tab0.col1 ) AS col1 FROM tab0 ---- 244064 679043 9416 skipif mysql # not compatible query I rowsort label-4838 SELECT + col1 * col2 * + col1 + 90 * + col1 / - col1 + ( tab0.col1 ) AS col1 FROM tab0 ---- 244064 679043 9416 query I rowsort SELECT + col2 * - col2 * + col2 + + cor0.col1 * - col0 FROM tab1 AS cor0 ---- -157542 -185833 -885776 query I rowsort SELECT ALL + col1 + + col2 * ( + col2 ) AS col0 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT DISTINCT - col2 * - col1 - col1 * 38 FROM tab0 AS cor0 ---- -3589 -430 4004 query I rowsort SELECT - col0 * - col2 + col2 * cor0.col1 * col2 AS col1 FROM tab2 AS cor0 ---- 22788 27550 41912 onlyif mysql # use DIV operator for integer division query I rowsort label-4843 SELECT ALL tab0.col2 DIV - tab0.col1 + 10 * col2 AS col2 FROM tab0 ---- 10 330 820 skipif mysql # not compatible query I rowsort label-4843 SELECT ALL tab0.col2 / - tab0.col1 + 10 * col2 AS col2 FROM tab0 ---- 10 330 820 onlyif mysql # use DIV operator for integer division query I rowsort label-4844 SELECT DISTINCT - 62 + tab1.col0 + + tab1.col0 DIV - 31 FROM tab1 ---- -59 0 16 skipif mysql # not compatible query I rowsort label-4844 SELECT DISTINCT - 62 + tab1.col0 + + tab1.col0 / - 31 FROM tab1 ---- -59 0 16 query I rowsort SELECT ALL + 57 + - col0 AS col1 FROM tab1 ---- -23 -7 54 query I rowsort SELECT DISTINCT col0 * + col1 + - col0 AS col2 FROM tab2 ---- 1264 210 4524 query I rowsort SELECT col1 FROM tab2 WHERE NOT + col1 IN ( + tab2.col0 * col1 / tab2.col1 ) ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 * + col1 col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-4849 SELECT ALL col2 DIV + col2 - col1 FROM tab0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-4849 SELECT ALL col2 / + col2 - col1 FROM tab0 ---- -85 -90 -96 query I rowsort SELECT - col0 + + col2 * + col1 AS col2 FROM tab1 ---- 1168 1401 506 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col1 * + col0 + + col1 AND ( - col1 ) ---- query I rowsort SELECT DISTINCT + col1 * col0 - col2 AS col1 FROM tab1 ---- 24 583 944 query I rowsort SELECT DISTINCT + tab1.col2 - col1 FROM tab1 ---- 28 47 83 query I rowsort SELECT 14 * - col0 AS col1 FROM tab1 cor0 ---- -1120 -42 -896 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( col1 + cor0.col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * tab0.col0 + tab0.col0 * + col0 * col1 col0 FROM tab0 ---- 118860 50328 728109 query I rowsort SELECT + col2 * + col1 + cor0.col2 - col0 FROM tab2 AS cor0 ---- 1482 605 857 query I rowsort SELECT DISTINCT - col0 * col2 * - col0 + col0 * + col2 AS col0 FROM tab2 AS cor0 ---- 1512 160212 240160 query I rowsort SELECT + col0 + + col2 * - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0 ---- 132 611973 93678 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND - cor0.col1 ---- query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL < cor0.col2 + col0 * col0 ---- query I rowsort SELECT tab2.col1 * col0 + tab2.col2 * + col0 AS col0 FROM tab2 ---- 406 4345 6630 onlyif mysql # use DIV operator for integer division query I rowsort label-4863 SELECT + col0 * + col2 + + col2 DIV - col2 AS col0 FROM tab0 ---- 34 7297 791 skipif mysql # not compatible query I rowsort label-4863 SELECT + col0 * + col2 + + col2 / - col2 AS col0 FROM tab0 ---- 34 7297 791 onlyif mysql # use DIV operator for integer division query I rowsort label-4864 SELECT - col2 * - col1 DIV - col1 AS col2 FROM tab1 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-4864 SELECT - col2 * - col1 / - col1 AS col2 FROM tab1 ---- -54 -57 -96 query I rowsort SELECT ALL + col1 * col2 * col0 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT col2 * col0 + + col1 + + tab0.col0 FROM tab0 ---- 167 7478 902 query I rowsort SELECT DISTINCT col0 * - col1 * + col1 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT + col2 FROM tab1 WHERE NOT NULL >= ( NULL ) ---- query I rowsort SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN ( col2 / col2 - + col0 ) AND ( NULL ) ---- query I rowsort SELECT col1 * - col2 * col2 AS col0 FROM tab0 ---- -611884 -93654 -97 query I rowsort SELECT ALL col1 * + col2 * - col1 AS col1 FROM tab0 ---- -244068 -679042 -9409 query I rowsort SELECT ALL + col1 * + col0 * + col1 AS col2 FROM tab2 ---- 22831 271518 6727 query I rowsort SELECT - + col2 * 81 - + col1 FROM tab1 AS cor0 ---- -4400 -4627 -7789 onlyif mysql # use DIV operator for integer division query I rowsort label-4874 SELECT + - col1 DIV - cor0.col1 + col1 * col1 col1 FROM tab0 AS cor0 ---- 7397 8282 9410 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4874 SELECT + - col1 / - cor0.col1 + col1 * col1 col1 FROM tab0 AS cor0 ---- 7397 8282 9410 onlyif mysql # use DIV operator for integer division query I rowsort label-4875 SELECT col1 + + 71 DIV + col0 FROM tab1 AS cor0 ---- 11 13 49 skipif mysql # not compatible query I rowsort label-4875 SELECT col1 + + 71 / + col0 FROM tab1 AS cor0 ---- 11 13 49 query I rowsort SELECT ALL - - col2 * 55 AS col1 FROM tab1 AS cor0 ---- 2970 3135 5280 query I rowsort SELECT DISTINCT - + cor0.col1 + col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT 48 AS col1 FROM tab1, tab2 AS cor0 ---- 48 onlyif mysql # use DIV operator for integer division query I rowsort label-4879 SELECT - col2 * col0 + cor0.col1 DIV - 97 col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4879 SELECT - col2 * col0 + cor0.col1 / - 97 col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 72 * + col2 + + 72 col0 FROM tab1 cor0 ---- -3816 -4032 -6840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 38 * + col2 + cor0.col2 col2 FROM tab2 AS cor0 ---- -1406 -962 -999 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col1 + + col1 * - CAST ( - col0 AS REAL ) FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT ALL ( col2 ) * col1 + - col0 AS col2 FROM tab1 AS cor0 ---- 1168 1401 506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 + col2 * col2 col0 FROM tab1 cor0 ---- 2913 3185 9136 query I rowsort SELECT + ( 87 ) + tab2.col2 - + ( 56 + col2 ) AS col2 FROM tab2 ---- 31 31 31 query I rowsort SELECT - 35 + col0 AS col2 FROM tab1 ---- -32 29 45 onlyif mysql # use DIV operator for integer division query I rowsort label-4887 SELECT ALL + col0 - - ( - col0 ) DIV + 28 FROM tab1 ---- 3 62 78 skipif mysql # not compatible query I rowsort label-4887 SELECT ALL + col0 - - ( - col0 ) / + 28 FROM tab1 ---- 3 62 78 query I rowsort SELECT - ( - 12 ) FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6 onlyif mysql # use DIV operator for integer division query I rowsort label-4889 SELECT ALL + col0 - col2 DIV col1 AS col0 FROM tab1 ---- 1 59 73 skipif mysql # not compatible query I rowsort label-4889 SELECT ALL + col0 - col2 / col1 AS col0 FROM tab1 ---- 1 59 73 query I rowsort SELECT ALL + ( + tab0.col1 ) * + col0 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT + 61 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 07149905a72bd87553381f34d19ed290 onlyif mysql # use DIV operator for integer division query I rowsort label-4892 SELECT DISTINCT + col1 DIV - ( - 85 ) FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-4892 SELECT DISTINCT + col1 / - ( - 85 ) FROM tab0 AS cor0 ---- 1 query I rowsort SELECT ALL cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT cor1.col0 + - cor1.col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT ALL - + cor0.col1 + + col1 * col0 * col2 FROM tab1 cor0 ---- 36470 4186 99827 query I rowsort SELECT ALL + - 66 * - col0 FROM tab2 AS cor0 ---- 462 5148 5214 onlyif mysql # use DIV operator for integer division query I rowsort label-4897 SELECT DISTINCT + 75 DIV col0 FROM tab2 AS cor0 ---- 0 10 skipif mysql # not compatible query I rowsort label-4897 SELECT DISTINCT + 75 / col0 FROM tab2 AS cor0 ---- 0 10 query I rowsort SELECT DISTINCT + 77 * col2 AS col2 FROM tab0 AS cor0 ---- 2541 6314 77 onlyif mysql # use DIV operator for integer division query I rowsort label-4899 SELECT - 64 DIV col1 FROM tab2 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-4899 SELECT - 64 / col1 FROM tab2 AS cor0 ---- -1 -2 -3 query I rowsort SELECT - cor0.col2 + col2 * col2 * + col2 FROM tab0 cor0 ---- 0 35904 551286 query I rowsort SELECT - col1 + - col0 * - 93 FROM tab1 AS cor0 ---- 253 5942 7427 query I rowsort SELECT 57 * col0 FROM tab0 cor0 ---- 1368 1995 5073 query I rowsort SELECT DISTINCT + + 34 * + col2 AS col1 FROM tab2 AS cor0 ---- 1292 884 918 query I rowsort SELECT ALL 18 + + cor0.col2 * 77 AS col0 FROM tab2 AS cor0 ---- 2020 2097 2944 query I rowsort SELECT DISTINCT + ( col2 ) + tab0.col2 * + 63 FROM tab0 ---- 2112 5248 64 query I rowsort SELECT ALL - ( col0 ) * col0 + - col0 + - col0 FROM tab2 ---- -6240 -63 -6399 query I rowsort SELECT 2 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 535345c50a19fdab97ce05d1837b1f09 query I rowsort SELECT ALL 32 + tab0.col2 FROM tab0 ---- 114 33 65 query I rowsort SELECT + 48 + - 86 FROM tab2 ---- -38 -38 -38 query I rowsort SELECT DISTINCT - - 49 AS col2 FROM tab2 AS cor0 ---- 49 onlyif mysql # use DIV operator for integer division query I rowsort label-4911 SELECT 9 DIV col2 AS col0 FROM tab0 AS cor0 ---- 0 0 9 skipif mysql # not compatible query I rowsort label-4911 SELECT 9 / col2 AS col0 FROM tab0 AS cor0 ---- 0 0 9 query I rowsort SELECT ALL - 81 + col0 AS col1 FROM tab2 AS cor0 ---- -2 -3 -74 query I rowsort SELECT ALL - col2 * col0 * + col2 + tab1.col0 * col1 AS col0 FROM tab1 ---- -207296 -736240 -8670 query I rowsort SELECT DISTINCT 0 * tab2.col1 FROM tab2 ---- 0 query I rowsort SELECT - 38 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to e571541ae40cb0ddaca16e11f4359507 onlyif mysql # use DIV operator for integer division query I rowsort label-4916 SELECT ALL - 32 DIV col1 FROM tab2 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-4916 SELECT ALL - 32 / col1 FROM tab2 ---- -1 -1 0 query I rowsort SELECT DISTINCT - 67 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- -67 query I rowsort SELECT ALL + - 98 * + col1 AS col0 FROM tab0 AS cor0 ---- -8428 -8918 -9506 query I rowsort SELECT col1 + + col0 * - 26 FROM tab2 AS cor0 ---- -151 -1969 -2037 query I rowsort SELECT DISTINCT cor0.col0 * col0 + col1 AS col2 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT ALL + + 37 AS col0 FROM tab1 cor0 ---- 37 37 37 query I rowsort SELECT cor0.col0 - 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 cor2 ---- 81 values hashing to caf1839f0fd7a24ec2dcd9ee3fb18042 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4923 SELECT - + 58 / 39 + + col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4923 SELECT - + 58 / 39 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4924 SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif mysql # not compatible query I rowsort label-4924 SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4925 SELECT DISTINCT + CAST( NULL AS SIGNED ) + 2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4925 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + col2 + - tab0.col1 + 74 FROM tab0 ---- -22 21 65 query I rowsort SELECT + + col2 + - 95 FROM tab1 AS cor0 ---- -38 -41 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4928 SELECT DISTINCT 52 + 2 + - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-4928 SELECT DISTINCT 52 + 2 + - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 ---- NULL query I rowsort SELECT ALL col0 + col0 * - col1 AS col0 FROM tab2 ---- -1264 -210 -4524 query I rowsort SELECT col0 + 81 AS col2 FROM tab2 AS cor0 ---- 159 160 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4931 SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4931 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - 0 * - 23 + + col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - 18 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 09afafec657a5e9f082beb6a16ec85de query I rowsort SELECT DISTINCT + - col2 * + 96 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 18144 194688 288192 onlyif mysql # use DIV operator for integer division query I rowsort label-4935 SELECT DISTINCT - + ( - col1 ) DIV - col0 FROM tab1 AS cor0 ---- -8 0 skipif mysql # not compatible query I rowsort label-4935 SELECT DISTINCT - + ( - col1 ) / - col0 FROM tab1 AS cor0 ---- -8 0 query I rowsort SELECT + 63 + - col2 AS col2 FROM tab2 AS cor0 ---- 25 36 37 query I rowsort SELECT ALL - col2 + - col1 * cor0.col0 * + col0 FROM tab2 AS cor0 ---- -106135 -1546 -358982 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + 99 * - col2 + col1 col0 FROM tab0 AS cor0 ---- 196 3353 8209 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 + + 0 col1 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT + 43 + + col1 FROM tab1 AS cor0 ---- 53 56 69 query I rowsort SELECT + + 93 + + col1 FROM tab1 AS cor0 ---- 103 106 119 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 * + col2 + 88 col2 FROM tab1 AS cor0 ---- 1336 1492 658 query I rowsort SELECT 96 * col2 + cor0.col1 AS col2 FROM tab0 cor0 ---- 193 3254 7963 query I rowsort SELECT ALL - 51 + + cor0.col2 - ( + col2 ) FROM tab2 AS cor0 ---- -51 -51 -51 query I rowsort SELECT ALL + ( + col0 * - 38 ) AS col0 FROM tab0 ---- -1330 -3382 -912 query I rowsort SELECT DISTINCT + 14 * + col2 FROM tab0 ---- 1148 14 462 query I rowsort SELECT cor0.col1 * - col2 + + cor0.col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT + col2 * col0 + 85 FROM tab0 AS cor0 ---- 120 7383 877 onlyif mysql # use DIV operator for integer division query I rowsort label-4949 SELECT - 88 * col1 DIV + col1 + - col2 col2 FROM tab1 ---- -142 -145 -184 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4949 SELECT - 88 * col1 / + col1 + - col2 col2 FROM tab1 ---- -142 -145 -184 onlyif mysql # use DIV operator for integer division query I rowsort label-4950 SELECT DISTINCT col0 DIV - col1 + + col0 * col1 AS col0 FROM tab2 ---- 1339 217 4601 skipif mysql # not compatible query I rowsort label-4950 SELECT DISTINCT col0 / - col1 + + col0 * col1 AS col0 FROM tab2 ---- 1339 217 4601 query I rowsort SELECT cor0.col0 * + ( + col2 * col2 + col1 ) AS col2 FROM tab0 AS cor0 ---- 28200 3430 606535 onlyif mysql # use DIV operator for integer division query I rowsort label-4952 SELECT ALL - col2 * 89 DIV + cor0.col2 + col2 + 0 FROM tab1 AS cor0 ---- -32 -35 7 skipif mysql # not compatible query I rowsort label-4952 SELECT ALL - col2 * 89 / + cor0.col2 + col2 + 0 FROM tab1 AS cor0 ---- -32 -35 7 query I rowsort SELECT ALL + col0 + cor0.col2 * col2 * col1 FROM tab2 AS cor0 ---- 22606 24627 39962 query I rowsort SELECT DISTINCT + + col2 * - col1 + + col1 * - col0 + - 31 FROM tab1 AS cor0 ---- -1241 -1513 -2319 query I rowsort SELECT DISTINCT - col0 * + cor0.col0 + col1 * col1 AS col0 FROM tab2 AS cor0 ---- -2603 -5952 912 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4956 SELECT ALL + + col1 + CAST( col1 AS SIGNED ) * + col2 col0 FROM tab0 AS cor0 ---- 194 2924 7553 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4956 SELECT ALL + + col1 + CAST ( col1 AS INTEGER ) * + col2 col0 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT - cor0.col1 + - col0 * - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT 49 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to a40d8754a5be3ce2309c61bfd3e00197 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4959 SELECT - cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4959 SELECT - cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col1 * ( ( + col0 ) ) * - 21 FROM tab0 AS cor0 ---- -170079 -43344 -71295 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * - 70 col1 FROM tab0 AS cor0 ---- 2310 5740 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col2 + col2 col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT 67 * + 67 + - col2 AS col0 FROM tab1 AS cor0 ---- 4393 4432 4435 query I rowsort SELECT + col0 * + 44 - - cor0.col0 AS col0 FROM tab1 AS cor0 ---- 135 2880 3600 query I rowsort SELECT + col1 * ( col0 ) AS col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT + col2 - col2 * tab1.col0 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT ALL - col0 + col0 + + col0 * - ( + col1 ) AS col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ( col2 ) * + col2 - - cor0.col1 * + col0 FROM tab0 cor0 ---- 14823 3153 3396 query I rowsort SELECT ALL col1 * + col2 * col0 + - col0 * + 12 FROM tab1 AS cor0 ---- 35712 4176 98880 query I rowsort SELECT DISTINCT - + cor0.col2 - + col0 AS col2 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT 66 - col0 * + col1 FROM tab1 AS cor0 ---- -12 -574 -974 query I rowsort SELECT DISTINCT - col0 * - col2 + + col2 AS col1 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT DISTINCT col1 + cor0.col0 * + col0 * col2 FROM tab0 AS cor0 ---- 1322 19094 649613 query I rowsort SELECT ALL - col2 * ( cor0.col0 ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT col0 - + ( col1 ) AS col1 FROM tab2 ---- -24 19 62 query I rowsort SELECT ALL col1 + ( + 98 + col2 ) FROM tab0 ---- 196 217 271 query I rowsort SELECT col2 * + ( + col1 ) + + col2 * 43 + - col0 * + col0 AS col0 FROM tab1 ---- -1024 -1075 3717 query I rowsort SELECT col2 + cor0.col2 * cor0.col0 + col1 AS col1 FROM tab2 AS cor0 ---- 2113 247 3057 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4979 SELECT + col1 * CAST( NULL AS SIGNED ) * + col0 col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4979 SELECT + col1 * CAST ( NULL AS INTEGER ) * + col0 col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + tab1.col0 * - col0 * - 1 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT ALL col0 * + col0 * - ( + col0 ) FROM tab2 ---- -343 -474552 -493039 query I rowsort SELECT + col1 + + 53 + col2 FROM tab1 AS cor0 ---- 120 133 162 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 AS cor0, tab1 cor1, tab0 cor2 ---- 972 values hashing to 5342fb4caf4767cb98bd21989bad099f onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4984 SELECT - + col1 * + CAST( NULL AS DECIMAL ) - + 69 col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4984 SELECT - + col1 * + CAST ( NULL AS REAL ) - + 69 col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col0 * - col2 + - 96 * col2 FROM tab2 cor0 ---- -2403 -468 -646 query I rowsort SELECT ALL + cor0.col0 + - 33 AS col0 FROM tab0 AS cor0 ---- -9 2 56 query I rowsort SELECT + col0 + + col2 + - 86 FROM tab0 AS cor0 ---- -29 -50 85 query I rowsort SELECT ALL - 48 * col2 FROM tab0 cor0 ---- -1584 -3936 -48 query I rowsort SELECT DISTINCT + - ( 23 ) + cor0.col1 AS col0 FROM tab1 AS cor0 ---- -10 -13 3 query I rowsort SELECT ALL - 92 + 68 - + col0 FROM tab1 AS cor0 ---- -104 -27 -88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 42 col2 FROM tab2 ---- -42 -42 -42 query I rowsort SELECT - 81 * - col1 FROM tab0 AS cor0 ---- 6966 7371 7857 query I rowsort SELECT DISTINCT + cor0.col2 * + col0 * + col0 AS col2 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT col2 + col0 + - col0 * + col1 FROM tab2 AS cor0 ---- -1226 -183 -4498 query I rowsort SELECT ALL - - 96 FROM tab1 cor0 ---- 96 96 96 query I rowsort SELECT - ( - col1 ) + + col1 AS col1 FROM tab0 ---- 172 182 194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 62 - - col1 col0 FROM tab2 cor0 ---- -3 -31 -45 query I rowsort SELECT - 5 AS col2 FROM tab1 cor0 ---- -5 -5 -5 onlyif mysql # use DIV operator for integer division query I rowsort label-4999 SELECT col2 + tab0.col2 DIV - 85 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-4999 SELECT col2 + tab0.col2 / - 85 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-5000 SELECT col2 + 12 DIV col1 col1 FROM tab1 AS cor0 ---- 54 58 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5000 SELECT col2 + 12 / col1 col1 FROM tab1 AS cor0 ---- 54 58 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + ( - 26 ) col2 FROM tab2 AS cor0 ---- -43 -57 -85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 + ( + 34 ) + cor0.col2 col0 FROM tab2 AS cor0 ---- 138 151 68 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col2 + col2 * + cor0.col0 col0 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT col2 - + 21 FROM tab0 AS cor0 ---- -20 12 61 query I rowsort SELECT + - cor0.col2 - - 92 FROM tab2 AS cor0 ---- 54 65 66 query I rowsort SELECT ALL + col1 * 63 + + col0 AS col2 FROM tab1 AS cor0 ---- 1641 694 899 query I rowsort SELECT DISTINCT + col2 - - col1 * + 80 AS col2 FROM tab2 AS cor0 ---- 1398 2507 4746 query I rowsort SELECT DISTINCT + cor0.col2 + + col2 + - col1 * - col2 FROM tab1 cor0 ---- 1440 1512 684 query I rowsort SELECT col1 * ( col2 ) - col1 FROM tab1 cor0 ---- 1235 1378 560 query I rowsort SELECT tab1.col1 * - col0 * - 74 AS col2 FROM tab1 ---- 47360 5772 76960 query I rowsort SELECT + - 51 AS col1 FROM tab2 cor0 ---- -51 -51 -51 query I rowsort SELECT + col0 * - 56 + col1 + - 72 FROM tab0 AS cor0 ---- -1330 -1935 -4965 onlyif mysql # use DIV operator for integer division query I rowsort label-5013 SELECT tab2.col1 DIV ( 49 ) + + col2 AS col0 FROM tab2 ---- 27 27 38 skipif mysql # not compatible query I rowsort label-5013 SELECT tab2.col1 / ( 49 ) + + col2 AS col0 FROM tab2 ---- 27 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-5014 SELECT tab0.col0 * 76 DIV - col2 + col2 AS col1 FROM tab0 ---- -22 -2659 0 skipif mysql # not compatible query I rowsort label-5014 SELECT tab0.col0 * 76 / - col2 + col2 AS col1 FROM tab0 ---- -22 -2659 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5015 SELECT - 46 DIV cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5015 SELECT - 46 / cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5016 SELECT + col0 DIV + col0 + col0 + + col0 FROM tab2 AS cor0 ---- 15 157 159 skipif mysql # not compatible query I rowsort label-5016 SELECT + col0 / + col0 + col0 + + col0 FROM tab2 AS cor0 ---- 15 157 159 query I rowsort SELECT ( col2 ) + - ( + 86 ) * - cor0.col1 AS col2 FROM tab0 AS cor0 ---- 7429 7908 8343 onlyif mysql # use DIV operator for integer division query I rowsort label-5018 SELECT ALL + cor0.col1 DIV col0 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-5018 SELECT ALL + cor0.col1 / col0 FROM tab1 AS cor0 ---- 0 0 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col2 * col0 col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT - col1 * - 98 FROM tab1 ---- 1274 2548 980 query I rowsort SELECT 57 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 onlyif mysql # use DIV operator for integer division query I rowsort label-5022 SELECT - - col1 + ( col2 ) DIV col1 AS col1 FROM tab2 AS cor0 ---- 19 31 59 skipif mysql # not compatible query I rowsort label-5022 SELECT - - col1 + ( col2 ) / col1 AS col1 FROM tab2 AS cor0 ---- 19 31 59 query I rowsort SELECT col0 * + col1 + col0 FROM tab1 cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT - col2 * cor0.col0 * col0 + col1 FROM tab2 cor0 ---- -1292 -158125 -237141 query I rowsort SELECT + col0 + - tab2.col0 + + 42 AS col2 FROM tab2 ---- 42 42 42 query I rowsort SELECT ALL col1 * + 96 FROM tab2 AS cor0 ---- 1632 2976 5664 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5027 SELECT ALL col0 - ( col1 + - col0 ) * CAST( 93 + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- -2205 11671 8542 skipif mysql # not compatible query I rowsort label-5027 SELECT ALL col0 - ( col1 + - col0 ) * CAST ( 93 + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- -2205 11671 8542 query I rowsort SELECT ALL cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6 onlyif mysql # use DIV operator for integer division query I rowsort label-5029 SELECT DISTINCT + - cor0.col0 DIV 4 + + cor0.col2 AS col0 FROM tab2 cor0 ---- 19 26 7 skipif mysql # not compatible query I rowsort label-5029 SELECT DISTINCT + - cor0.col0 / 4 + + cor0.col2 AS col0 FROM tab2 cor0 ---- 19 26 7 onlyif mysql # use DIV operator for integer division query I rowsort label-5030 SELECT - - col2 + - 46 DIV col1 FROM tab1 cor0 ---- 53 53 93 skipif mysql # not compatible query I rowsort label-5030 SELECT - - col2 + - 46 / col1 FROM tab1 cor0 ---- 53 53 93 query I rowsort SELECT ALL + col2 * + ( - 5 ) - col2 AS col2 FROM tab1 AS cor0 ---- -324 -342 -576 query I rowsort SELECT ALL + 4 * - col1 FROM tab1 AS cor0 ---- -104 -40 -52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 54 * 73 col1 FROM tab2 AS cor0 ---- 3942 3942 3942 query I rowsort SELECT cor0.col2 * col0 * col1 + - col0 FROM tab1 AS cor0 ---- 36416 4209 99760 onlyif mysql # use DIV operator for integer division query I rowsort label-5035 SELECT DISTINCT + - ( + col1 ) DIV col1 + 58 FROM tab0 AS cor0 ---- 57 skipif mysql # not compatible query I rowsort label-5035 SELECT DISTINCT + - ( + col1 ) / col1 + 58 FROM tab0 AS cor0 ---- 57 query I rowsort SELECT ALL ( col0 ) * col1 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL col1 + - 49 * col0 AS col2 FROM tab0 AS cor0 ---- -1090 -1618 -4270 onlyif mysql # use DIV operator for integer division query I rowsort label-5038 SELECT - CAST( - 8 AS SIGNED ) DIV + cor0.col0 AS col1 FROM tab2 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5038 SELECT - CAST ( - 8 AS INTEGER ) / + cor0.col0 AS col1 FROM tab2 cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT - col0 + 42 FROM tab0 AS cor0 ---- -47 18 7 query I rowsort SELECT DISTINCT col1 * cor0.col2 * - col1 AS col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT ALL + col0 * ( col2 ) + - col1 AS col2 FROM tab2 AS cor0 ---- 158 1969 2985 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + col1 + col1 col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT - col1 + 76 AS col0 FROM tab1 ---- 50 63 66 query I rowsort SELECT ALL - col0 + - 17 AS col0 FROM tab2 ---- -24 -95 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5045 SELECT + - CAST( + cor0.col1 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-5045 SELECT + - CAST ( + cor0.col1 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5046 SELECT ALL - + col2 * - col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5046 SELECT ALL - + col2 * - col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT 31 * - col1 FROM tab0 AS cor0 ---- -2666 -2821 -3007 query I rowsort SELECT DISTINCT - - col0 - col1 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT ALL + col1 + - col2 * 98 * - col2 - - col1 FROM tab0 cor0 ---- 106894 292 659134 query I rowsort SELECT - cor0.col1 * + col0 - col1 * col2 FROM tab0 AS cor0 ---- -15561 -3492 -4902 query I rowsort SELECT ALL + 57 + col1 AS col0 FROM tab1 AS cor0 ---- 67 70 83 query I rowsort SELECT + + col0 + - col1 * ( - 21 ) AS col0 FROM tab0 AS cor0 ---- 1830 2000 2072 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * col0 + col0 * + col1 col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + + 92 - - col0 AS col0 FROM tab0 cor0 ---- 116 127 181 query I rowsort SELECT ALL - - 12 * - col1 FROM tab2 AS cor0 ---- -204 -372 -708 query I rowsort SELECT ALL 2 * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -108 -114 -192 query I rowsort SELECT ALL - col1 * 87 FROM tab1 ---- -1131 -2262 -870 query I rowsort SELECT 26 - col2 FROM tab0 ---- -56 -7 25 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5059 SELECT DISTINCT col1 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0 ---- 289 3481 961 skipif mysql # not compatible query I rowsort label-5059 SELECT DISTINCT col1 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT ALL + col2 * ( col2 ) * col0 + - 71 AS col2 FROM tab0 cor0 ---- -36 26065 598365 query I rowsort SELECT col2 * - col0 + - col2 - + col0 FROM tab1 AS cor0 ---- -219 -3769 -7856 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 6 + - col0 col1 FROM tab0 ---- -18 -29 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5063 SELECT + + cor0.col1 - + CAST( col0 AS SIGNED ) * col0 col2 FROM tab0 AS cor0 ---- -1128 -490 -7830 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5063 SELECT + + cor0.col1 - + CAST ( col0 AS INTEGER ) * col0 col2 FROM tab0 AS cor0 ---- -1128 -490 -7830 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5064 SELECT + col2 * + CAST( - col1 AS SIGNED ) * col1 FROM tab0 AS cor0 ---- -244068 -679042 -9409 skipif mysql # not compatible query I rowsort label-5064 SELECT + col2 * + CAST ( - col1 AS INTEGER ) * col1 FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT DISTINCT col1 + col1 - + col2 FROM tab0 ---- 100 139 193 query I rowsort SELECT ALL tab0.col0 - col2 FROM tab0 ---- -9 34 7 query I rowsort SELECT + + cor0.col1 * - col0 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT - + col0 * 18 + - col0 FROM tab2 AS cor0 ---- -133 -1482 -1501 query I rowsort SELECT col2 + ( cor0.col1 ) * col0 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT - cor0.col2 * + 24 FROM tab1 cor0 ---- -1296 -1368 -2304 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + tab0.col2 col2 FROM tab0 ---- 171 36 57 query I rowsort SELECT + ( + col2 ) + - ( 25 + - tab2.col0 * 31 ) FROM tab2 ---- 219 2419 2462 query I rowsort SELECT ALL tab0.col2 - 88 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 4097fb97c1c57c358a83864d9a8cafe0 query I rowsort SELECT ALL - 90 AS col2 FROM tab0, tab2 cor0 ---- 9 values hashing to f6f26b9a04da14807208b93d507095c5 query I rowsort SELECT ALL col1 * ( 26 ) + + tab1.col0 FROM tab1 ---- 324 418 679 query I rowsort SELECT col0 * - 98 * col0 FROM tab0 AS cor0 ---- -120050 -56448 -776258 query I rowsort SELECT ALL - - cor0.col2 + - 66 FROM tab2 AS cor0 ---- -28 -39 -40 query I rowsort SELECT col2 * ( cor0.col0 * - col2 ) + + 96 AS col0 FROM tab2 AS cor0 ---- -113980 -5007 -52632 query I rowsort SELECT ALL - + col2 * - cor0.col1 FROM tab2 cor0 ---- 1534 646 837 onlyif mysql # use DIV operator for integer division query I rowsort label-5080 SELECT DISTINCT col1 + + 9 DIV - col1 AS col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-5080 SELECT DISTINCT col1 + + 9 / - col1 AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - - 47 * col0 + - col1 FROM tab0 AS cor0 ---- 1042 1548 4092 query I rowsort SELECT DISTINCT - col2 * + 67 AS col2 FROM tab1 AS cor0 ---- -3618 -3819 -6432 query I rowsort SELECT DISTINCT + - 1 - col2 FROM tab2 AS cor0 ---- -27 -28 -39 query I rowsort SELECT + cor0.col0 + - cor0.col0 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5085 SELECT + - CAST( + col2 AS SIGNED ) * col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-5085 SELECT + - CAST ( + col2 AS INTEGER ) * col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT col1 + 45 + + col2 FROM tab0 AS cor0 ---- 143 164 218 query I rowsort SELECT + - cor0.col2 AS col1 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 46 * + col2 col2 FROM tab0 cor0 ---- 1518 3772 46 query I rowsort SELECT + - 51 * + col1 FROM tab1 AS cor0 ---- -1326 -510 -663 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 * - col0 col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT + - col0 + - col2 - + ( col1 ) * + col1 FROM tab2 AS cor0 ---- -3585 -406 -995 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * - cor0.col0 + - 63 * - col2 col2 FROM tab1 cor0 ---- 13728 3564 7239 query I rowsort SELECT - 45 * + cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 21be93162353da893a3294af76b0a678 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1, tab0 cor1 ---- 3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d onlyif mysql # use DIV operator for integer division query I rowsort label-5095 SELECT - col0 DIV cor0.col2 AS col0 FROM tab0 cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-5095 SELECT - col0 / cor0.col2 AS col0 FROM tab0 cor0 ---- -1 -35 0 query I rowsort SELECT - cor0.col2 + - 81 * col1 FROM tab1 AS cor0 ---- -1149 -2160 -867 query I rowsort SELECT ( - col1 ) + ( + col1 ) * - tab2.col1 AS col2 FROM tab2 ---- -306 -3540 -992 query I rowsort SELECT ALL + tab1.col0 * col2 AS col2 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT DISTINCT ( 35 ) AS col1 FROM tab2, tab1 AS cor0 ---- 35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * - col1 col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT + tab1.col2 * 32 FROM tab1, tab0 cor0 ---- 9 values hashing to 4cc00c42fb3464a2bfcec3027e2e7bad query I rowsort SELECT DISTINCT cor0.col0 * + 54 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 1296 1890 4806 query I rowsort SELECT ALL col2 * ( + col1 ) AS col0 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT 77 + cor0.col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 2df140f438955d543fad7f3794a2bdc5 query I rowsort SELECT DISTINCT 97 * 75 AS col1 FROM tab0 cor0 ---- 7275 onlyif mysql # use DIV operator for integer division query I rowsort label-5106 SELECT DISTINCT - col0 + 63 DIV - col1 FROM tab2 ---- -79 -82 -9 skipif mysql # not compatible query I rowsort label-5106 SELECT DISTINCT - col0 + 63 / - col1 FROM tab2 ---- -79 -82 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-5107 SELECT DISTINCT - col1 DIV + CAST( 69 AS SIGNED ) FROM tab1 ---- 0 skipif mysql # not compatible query I rowsort label-5107 SELECT DISTINCT - col1 / + CAST ( 69 AS INTEGER ) FROM tab1 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5108 SELECT ( 33 ) + col2 DIV + 73 AS col0 FROM tab1 ---- 33 33 34 skipif mysql # not compatible query I rowsort label-5108 SELECT ( 33 ) + col2 / + 73 AS col0 FROM tab1 ---- 33 33 34 query I rowsort SELECT + ( + 8 ) - - col0 * tab0.col1 AS col2 FROM tab0 ---- 2072 3403 8107 query I rowsort SELECT DISTINCT - col1 * ( col2 ) * - col1 AS col1 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT + 81 - 36 AS col1 FROM tab0 ---- 45 45 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 * + col0 col0 FROM tab2 cor0 ---- 49 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * - ( - col1 ) col2 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT col0 * + 26 AS col0 FROM tab1 AS cor0 ---- 1664 2080 78 query IIIIIIIII rowsort SELECT * FROM tab0, tab2, tab2 cor0 WHERE NOT NULL NOT IN ( + tab0.col0 ) ---- query I rowsort SELECT DISTINCT - tab2.col2 * col1 - col2 AS col2 FROM tab2 ---- -1560 -684 -864 onlyif mysql # use DIV operator for integer division query I rowsort label-5117 SELECT DISTINCT - col2 * col2 DIV + col2 FROM tab1 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-5117 SELECT DISTINCT - col2 * col2 / + col2 FROM tab1 ---- -54 -57 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5118 SELECT - col2 * cor0.col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5118 SELECT - col2 * cor0.col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5119 SELECT ALL - col2 * + col0 + + col2 * col0 DIV col0 col1 FROM tab2 ---- -162 -2002 -2964 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5119 SELECT ALL - col2 * + col0 + + col2 * col0 / col0 col1 FROM tab2 ---- -162 -2002 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-5120 SELECT + col0 DIV col2 + col1 FROM tab1 cor0 ---- 11 13 26 skipif mysql # not compatible query I rowsort label-5120 SELECT + col0 / col2 + col1 FROM tab1 cor0 ---- 11 13 26 query I rowsort SELECT - col1 + - ( - 85 ) FROM tab0 ---- -1 -12 -6 query I rowsort SELECT ALL tab2.col1 + col2 * 95 FROM tab2 ---- 2529 2596 3627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5123 SELECT + + col2 * CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5123 SELECT + + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT col1 + col0 * ( col2 ) FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT - - col0 * ( + col2 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT - - col2 * 62 + - 72 FROM tab2 AS cor0 ---- 1540 1602 2284 query I rowsort SELECT ALL col0 + - ( - 21 ) AS col0 FROM tab0 AS cor0 ---- 110 45 56 onlyif mysql # use DIV operator for integer division query I rowsort label-5128 SELECT DISTINCT - col2 DIV col2 + col2 DIV col1 FROM tab1 AS cor0 ---- 1 4 6 skipif mysql # not compatible query I rowsort label-5128 SELECT DISTINCT - col2 / col2 + col2 / col1 FROM tab1 AS cor0 ---- 1 4 6 query I rowsort SELECT ALL col1 + + 87 FROM tab2 AS cor0 ---- 104 118 146 onlyif mysql # use DIV operator for integer division query I rowsort label-5130 SELECT DISTINCT - + col0 DIV col2 AS col1 FROM tab0 cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-5130 SELECT DISTINCT - + col0 / col2 AS col1 FROM tab0 cor0 ---- -1 -35 0 query I rowsort SELECT col2 + + col0 AS col1 FROM tab1 cor0 ---- 121 176 57 query I rowsort SELECT ALL + + col1 + ( + col0 ) FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5133 SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5133 SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5134 SELECT - + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5134 SELECT - + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 + 98 AS col1 FROM tab2 AS cor0 ---- 105 176 177 query I rowsort SELECT ALL + col1 * tab1.col0 + col1 * + col1 AS col0 FROM tab1 ---- 1209 740 754 query I rowsort SELECT DISTINCT - 47 + + 12 * + col2 - + col2 AS col2 FROM tab1 ---- 1009 547 580 query I rowsort SELECT DISTINCT ( 90 ) + + col0 - - col1 * - col0 AS col1 FROM tab0 ---- -1950 -3270 -7920 query I rowsort SELECT DISTINCT + ( + 12 ) - col2 AS col2 FROM tab1 ---- -42 -45 -84 query I rowsort SELECT 57 - - tab2.col0 FROM tab2 ---- 135 136 64 query I rowsort SELECT DISTINCT + col2 + col1 + col1 * + col0 * - col1 FROM tab1 AS cor0 ---- -13411 -1948 -6333 query I rowsort SELECT ALL - ( 19 ) + - col1 FROM tab0 ---- -105 -110 -116 query I rowsort SELECT DISTINCT + 77 + - col0 * col1 AS col2 FROM tab2 ---- -1266 -140 -4525 onlyif mysql # use DIV operator for integer division query I rowsort label-5144 SELECT ALL + - col0 DIV + col1 + + col0 col0 FROM tab0 AS cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5144 SELECT ALL + - col0 / + col1 + + col0 col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT 77 + + col1 + - col0 FROM tab2 AS cor0 ---- 101 15 58 query I rowsort SELECT + col2 * col0 + col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT ALL + 30 + - col2 * col0 AS col2 FROM tab2 AS cor0 ---- -159 -1998 -2972 query I rowsort SELECT - - col2 * - col2 + col1 + - col2 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- -13931 -1795 61 query I rowsort SELECT + - 99 - col2 * + col0 FROM tab1 AS cor0 ---- -261 -3747 -7779 onlyif mysql # use DIV operator for integer division query I rowsort label-5150 SELECT DISTINCT + 80 DIV - cor0.col1 + col2 FROM tab2 AS cor0 ---- 25 34 skipif mysql # not compatible query I rowsort label-5150 SELECT DISTINCT + 80 / - cor0.col1 + col2 FROM tab2 AS cor0 ---- 25 34 query I rowsort SELECT col1 * col1 + col0 AS col2 FROM tab0 cor0 ---- 7420 8370 9444 query I rowsort SELECT 8 + + col2 FROM tab2 AS cor0 ---- 34 35 46 query I rowsort SELECT DISTINCT - - ( + col1 ) * col0 * - cor0.col1 + col0 FROM tab0 AS cor0 ---- -177480 -329280 -736920 query I rowsort SELECT ( col0 * col1 ) + col1 AS col0 FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT ( col0 ) + col2 - col1 * tab1.col0 AS col0 FROM tab1 ---- -21 -519 -864 query I rowsort SELECT ALL + 43 * - col0 FROM tab2 cor0 ---- -301 -3354 -3397 onlyif mysql # use DIV operator for integer division query I rowsort label-5157 SELECT + 83 - + col2 DIV col1 FROM tab2 AS cor0 ---- 81 83 83 skipif mysql # not compatible query I rowsort label-5157 SELECT + 83 - + col2 / col1 FROM tab2 AS cor0 ---- 81 83 83 query I rowsort SELECT ALL + 46 + col2 AS col2 FROM tab1 AS cor0 ---- 100 103 142 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * - 42 col1 FROM tab0 AS cor0 ---- -3612 -3822 -4074 query I rowsort SELECT ALL - col2 - + col0 * col1 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT + col0 + col1 * + 47 AS col1 FROM tab2 AS cor0 ---- 1464 2851 878 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * - 95 + 41 col0 FROM tab2 AS cor0 ---- 2511 2606 3651 query I rowsort SELECT DISTINCT + + col2 * + col2 + cor0.col1 * + col0 FROM tab1 AS cor0 ---- 10256 2994 3889 query I rowsort SELECT ALL + col2 * col1 + - col0 * col1 AS col2 FROM tab1 AS cor0 ---- -70 1326 208 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5165 SELECT col1 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 ---- 7396 8281 9409 skipif mysql # not compatible query I rowsort label-5165 SELECT col1 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT ALL col2 * + 75 AS col1 FROM tab0 AS cor0 ---- 2475 6150 75 query I rowsort SELECT DISTINCT - col2 * 32 AS col1 FROM tab0 AS cor0 ---- -1056 -2624 -32 query I rowsort SELECT ALL col0 * 60 FROM tab2 AS cor0 ---- 420 4680 4740 onlyif mysql # use DIV operator for integer division query I rowsort label-5169 SELECT DISTINCT col1 DIV cor0.col2 + cor0.col0 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-5169 SELECT DISTINCT col1 / cor0.col2 + cor0.col0 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5170 SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + ( col2 * - cor0.col0 ) AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5170 SELECT DISTINCT - CAST ( NULL AS REAL ) + + ( col2 * - cor0.col0 ) AS col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - col0 * 29 + + col2 * col0 FROM tab2 cor0 ---- -14 -234 711 query I rowsort SELECT DISTINCT + 97 * + ( + col0 ) * - col1 + col0 * col1 FROM tab1 AS cor0 ---- -61440 -7488 -99840 query I rowsort SELECT DISTINCT - 99 * + col0 FROM tab2 AS cor0 ---- -693 -7722 -7821 query I rowsort SELECT DISTINCT + cor0.col2 * - col2 + col2 + - col1 FROM tab2 AS cor0 ---- -1423 -709 -733 query I rowsort SELECT DISTINCT + col2 * + col2 - - cor0.col2 * col2 AS col0 FROM tab0 cor0 ---- 13448 2 2178 query I rowsort SELECT + - col0 * col1 * col0 AS col2 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT + col0 * - col1 * cor0.col1 AS col0 FROM tab1 cor0 ---- -13520 -2028 -6400 onlyif mysql # use DIV operator for integer division query I rowsort label-5178 SELECT ALL col0 + - cor0.col0 DIV - col2 AS col0 FROM tab0 AS cor0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-5178 SELECT ALL col0 + - cor0.col0 / - col2 AS col0 FROM tab0 AS cor0 ---- 24 70 90 query I rowsort SELECT DISTINCT - col0 * - col0 - col0 * - col0 FROM tab1 AS cor0 ---- 12800 18 8192 query I rowsort SELECT + col2 * - col1 * - col0 + + col2 AS col1 FROM tab1 ---- 36537 4266 99936 query I rowsort SELECT - col0 + cor0.col1 * + col1 * col0 AS col1 FROM tab0 AS cor0 ---- 177480 329280 736920 query I rowsort SELECT + col0 + col2 * - tab2.col1 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT DISTINCT col1 * col0 + col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT DISTINCT tab0.col0 * col2 + + col2 * + col2 * col1 + col0 AS col0 FROM tab0 ---- 167 619271 94470 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col2 * + col2 col2 FROM tab2 ---- 1482 702 756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * - col0 col2 FROM tab2 ---- -49 -6084 -6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + - col1 + col2 * col2 col1 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT ALL - col0 + + col1 * + col2 AS col0 FROM tab2 AS cor0 ---- 1456 567 830 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 * + col1 col0 FROM tab0 AS cor0 ---- 7396 8281 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-5190 SELECT + col1 + - cor0.col1 * + cor0.col0 DIV col0 col2 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5190 SELECT + col1 + - cor0.col1 * + cor0.col0 / col0 col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 + col0 + col0 * + col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT + col0 * + col2 + - col1 + col2 FROM tab0 cor0 ---- -61 7289 739 query I rowsort SELECT + cor0.col0 * + 94 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to bfa34bea1b8efa20269b4a97bb718e7c skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( + col2 ) col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT - + 69 * - col2 FROM tab1 AS cor0 ---- 3726 3933 6624 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * + ( col0 ) + col0 col1 FROM tab2 cor0 ---- 56 6162 6320 query I rowsort SELECT ALL - + 26 * col2 - - col0 FROM tab1 AS cor0 ---- -1401 -1418 -2416 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5198 SELECT CAST( 1 AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-5198 SELECT CAST ( 1 AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + 96 + - col0 * col2 FROM tab0 AS cor0 ---- -696 -7202 61 query I rowsort SELECT DISTINCT col2 * - ( col0 ) * + col0 + col2 AS col2 FROM tab0 ---- -1224 -18975 -649440 query I rowsort SELECT - + 6 * col2 + col0 * col0 FROM tab0 AS cor0 ---- 1219 378 7429 query I rowsort SELECT + col1 + 44 FROM tab0 AS cor0 ---- 130 135 141 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 42 - tab2.col0 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to f91afd5d8de769899f11e74d955c9114 query I rowsort SELECT - col1 + 44 FROM tab0 ---- -42 -47 -53 query I rowsort SELECT + ( 97 + + col0 ) FROM tab2 ---- 104 175 176 query I rowsort SELECT 62 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 51dd2771d516ceb935483eded78a5fa0 query I rowsort SELECT DISTINCT - col0 * + ( col1 + ( ( + col0 ) ) * tab0.col0 ) AS col0 FROM tab0 ---- -15888 -46270 -713068 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * tab2.col2 col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT ALL - col0 * + 63 FROM tab0 ---- -1512 -2205 -5607 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5210 SELECT + CAST( NULL AS SIGNED ) * 66 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5210 SELECT + CAST ( NULL AS INTEGER ) * 66 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL - + col1 * col2 * col1 AS col1 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT ALL + - 14 + cor0.col0 FROM tab0 AS cor0 ---- 10 21 75 query I rowsort SELECT + col1 * col2 + - col1 FROM tab2 cor0 ---- 1475 629 806 query I rowsort SELECT ALL + col0 + + col2 * - col0 * - col0 AS col2 FROM tab1 ---- 233536 489 614480 query I rowsort SELECT - 8 * col2 AS col0 FROM tab2 AS cor0 ---- -208 -216 -304 query I rowsort SELECT ALL - 57 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 520dc393896969e02a72ab6c5d92126b query I rowsort SELECT - col2 * - cor0.col0 - + col1 * ( col1 ) FROM tab0 AS cor0 ---- -6604 -9374 -983 query I rowsort SELECT - 61 + + 59 AS col0 FROM tab2 cor0 ---- -2 -2 -2 query I rowsort SELECT ( col1 + - col0 ) * ( col2 ) FROM tab0 ---- 164 2046 62 query I rowsort SELECT - cor1.col2 + - cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cfd0b1e71dfb9fff5052c8644f2e3990 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab0, tab2 AS cor1 ---- 3645 values hashing to 59ca7c96f3955e014bebd08b5442edff query I rowsort SELECT DISTINCT tab2.col1 - 47 AS col2 FROM tab2 ---- -16 -30 12 query I rowsort SELECT col0 - + col0 * cor0.col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT + col0 * - col0 + cor0.col1 AS col1 FROM tab2 AS cor0 ---- -18 -6025 -6224 onlyif mysql # use DIV operator for integer division query I rowsort label-5225 SELECT ALL - - 44 + col1 DIV col0 FROM tab2 cor0 ---- 44 44 48 skipif mysql # not compatible query I rowsort label-5225 SELECT ALL - - 44 + col1 / col0 FROM tab2 cor0 ---- 44 44 48 query I rowsort SELECT - col1 * col0 - col0 AS col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT 9 * col1 + col0 FROM tab0 AS cor0 ---- 798 908 908 query I rowsort SELECT DISTINCT - - 99 + 96 + + col2 * + 7 FROM tab2 cor0 ---- 377 384 461 query I rowsort SELECT + 89 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5230 SELECT CAST( - col2 AS SIGNED ) * - col2 AS col0 FROM tab1 cor0 ---- 2916 3249 9216 skipif mysql # not compatible query I rowsort label-5230 SELECT CAST ( - col2 AS INTEGER ) * - col2 AS col0 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT + - col0 + col1 * col0 AS col2 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT ALL + + 44 AS col2 FROM tab2 AS cor0 ---- 44 44 44 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 3 col1 FROM tab0 AS cor0 ---- 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 - - 6 col1 FROM tab2, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 54c1537a7bfcf5685cb08ef0c5f069b8 query I rowsort SELECT ALL + 46 * - col0 + col1 * col1 FROM tab1 AS cor0 ---- -2844 -3511 538 query I rowsort SELECT + 7 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 3362c0cb2b2c663037159d0699d46b76 query I rowsort SELECT DISTINCT + 63 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2 ---- 63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( col0 ) * - col1 + col2 col1 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL + 39 + - col0 AS col0 FROM tab1 ---- -25 -41 36 query I rowsort SELECT ALL - col2 * 7 FROM tab2 ---- -182 -189 -266 query I rowsort SELECT DISTINCT 2 - col1 AS col2 FROM tab0 ---- -84 -89 -95 query I rowsort SELECT DISTINCT ( 44 ) - col2 * 46 FROM tab1 ---- -2440 -2578 -4372 query I rowsort SELECT DISTINCT + 93 AS col1 FROM tab1, tab2, tab2 AS cor0 ---- 93 query I rowsort SELECT DISTINCT - ( cor0.col1 ) + 92 AS col2 FROM tab2, tab0 AS cor0 ---- -5 1 6 query I rowsort SELECT ALL - - ( - col0 ) + col2 FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT ALL - tab0.col0 + + col1 AS col1 FROM tab0 ---- 2 62 62 onlyif mysql # use DIV operator for integer division query I rowsort label-5247 SELECT DISTINCT col1 DIV ( + cor0.col1 * + col2 ) + - col1 col0 FROM tab1 AS cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5247 SELECT DISTINCT col1 / ( + cor0.col1 * + col2 ) + - col1 col0 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT DISTINCT col0 * col2 * - tab2.col1 + + col2 FROM tab2 ---- -119626 -50996 -5832 onlyif mysql # use DIV operator for integer division query I rowsort label-5249 SELECT + + 33 DIV - cor0.col1 + col1 AS col0 FROM tab1 AS cor0 ---- 11 25 7 skipif mysql # not compatible query I rowsort label-5249 SELECT + + 33 / - cor0.col1 + col1 AS col0 FROM tab1 AS cor0 ---- 11 25 7 query I rowsort SELECT col2 + + col2 * - cor0.col1 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT 90 + + col0 AS col2 FROM tab2 AS cor0 ---- 168 169 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 47 + + col2 * col0 + col2 * - col2 * col2 col2 FROM tab1 ---- -157255 -181498 -877009 query I rowsort SELECT tab1.col0 + - col1 + col0 AS col0 FROM tab1 ---- -20 118 147 query I rowsort SELECT - col1 * + col1 * + 46 FROM tab0 AS cor0 ---- -340216 -380926 -432814 query I rowsort SELECT ALL + + col1 * 78 AS col2 FROM tab1 AS cor0 ---- 1014 2028 780 query I rowsort SELECT col2 + ( 94 * + col1 ) FROM tab1 AS cor0 ---- 1318 2498 997 query I rowsort SELECT + col1 * col1 * + cor0.col1 FROM tab0 AS cor0 ---- 636056 753571 912673 query I rowsort SELECT DISTINCT cor0.col1 * 41 * - 80 + + col1 FROM tab1 cor0 ---- -32790 -42627 -85254 query I rowsort SELECT DISTINCT - col2 + + col1 * + 81 AS col1 FROM tab0 AS cor0 ---- 6933 7289 7856 query I rowsort SELECT cor0.col1 * ( + ( + col1 ) ) FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT ALL cor0.col1 * + col2 * 64 FROM tab1 cor0 ---- 36480 79872 89856 onlyif mysql # use DIV operator for integer division query I rowsort label-5262 SELECT - col0 DIV + 48 AS col1 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-5262 SELECT - col0 / + 48 AS col1 FROM tab1 AS cor0 ---- -1 -1 0 query I rowsort SELECT - col1 * 5 * col1 AS col2 FROM tab0 cor0 ---- -36980 -41405 -47045 query I rowsort SELECT ALL + - col0 * col2 + 42 FROM tab1 cor0 ---- -120 -3606 -7638 query I rowsort SELECT - tab0.col2 + + 1 AS col2 FROM tab0 ---- -32 -81 0 query I rowsort SELECT ALL + - cor0.col1 * ( 92 ) - - col0 * col1 AS col2 FROM tab2 cor0 ---- -221 -2635 -826 query I rowsort SELECT ALL 8 FROM tab0, tab1 AS cor0 ---- 9 values hashing to ffc5b4c98b57ae546521175995c49c57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5268 SELECT + col0 * ( + cor0.col2 ) * cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5268 SELECT + col0 * ( + cor0.col2 ) * cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col0 * + 15 FROM tab2 cor0 ---- 105 1170 1185 onlyif mysql # use DIV operator for integer division query I rowsort label-5270 SELECT ALL ( + col0 ) * col1 * + col1 + col1 DIV col1 FROM tab1 AS cor0 ---- 13521 2029 6401 skipif mysql # not compatible query I rowsort label-5270 SELECT ALL ( + col0 ) * col1 * + col1 + col1 / col1 FROM tab1 AS cor0 ---- 13521 2029 6401 query I rowsort SELECT DISTINCT - col0 + 92 * + col0 AS col2 FROM tab1 AS cor0 ---- 273 5824 7280 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5272 SELECT - - CAST( NULL AS SIGNED ) * - ( col1 ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5272 SELECT - - CAST ( NULL AS INTEGER ) * - ( col1 ) FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5273 SELECT + 63 DIV - ( col0 ) AS col1 FROM tab0 cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-5273 SELECT + 63 / - ( col0 ) AS col1 FROM tab0 cor0 ---- -1 -2 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5274 SELECT + - col0 DIV - 84 AS col0 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5274 SELECT + - col0 / - 84 AS col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5275 SELECT + CAST( + 25 AS SIGNED ) AS col2 FROM tab0 cor0 ---- 25 25 25 skipif mysql # not compatible query I rowsort label-5275 SELECT + CAST ( + 25 AS INTEGER ) AS col2 FROM tab0 cor0 ---- 25 25 25 query I rowsort SELECT DISTINCT col1 + cor0.col2 * col1 AS col0 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT ALL - 68 * + col1 AS col2 FROM tab2 cor0 ---- -1156 -2108 -4012 query I rowsort SELECT + col1 * - col1 + 94 FROM tab0 AS cor0 ---- -7302 -8187 -9315 query I rowsort SELECT ALL col2 + - col1 - + 31 * + 11 AS col0 FROM tab1 AS cor0 ---- -258 -294 -313 onlyif mysql # use DIV operator for integer division query I rowsort label-5280 SELECT ALL - 71 DIV cor0.col2 FROM tab0 AS cor0 ---- -2 -71 0 skipif mysql # not compatible query I rowsort label-5280 SELECT ALL - 71 / cor0.col2 FROM tab0 AS cor0 ---- -2 -71 0 query I rowsort SELECT - 97 - - col1 FROM tab0 AS cor0 ---- -11 -6 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5282 SELECT col1 * - col0 - CAST( col2 * - cor0.col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -3068 -697 620 skipif mysql # not compatible query I rowsort label-5282 SELECT col1 * - col0 - CAST ( col2 * - cor0.col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -3068 -697 620 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5283 SELECT + 78 * + cor0.col2 + ( + ( col1 ) ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5283 SELECT + 78 * + cor0.col2 + ( + ( col1 ) ) - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + 66 * + col2 + + 66 FROM tab2 AS cor0 ---- -1650 -1716 -2442 query I rowsort SELECT col2 * col2 + 7 * col1 AS col0 FROM tab2 AS cor0 ---- 1089 1563 946 query I rowsort SELECT - 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to e571541ae40cb0ddaca16e11f4359507 onlyif mysql # use DIV operator for integer division query I rowsort label-5287 SELECT DISTINCT - 57 + col1 DIV + tab2.col0 col0 FROM tab2 ---- -53 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5287 SELECT DISTINCT - 57 + col1 / + tab2.col0 col0 FROM tab2 ---- -53 -57 query I rowsort SELECT DISTINCT + ( col2 * col0 ) + - tab2.col0 AS col1 FROM tab2 ---- 182 1950 2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 7 col0 FROM tab1 AS cor0 ---- -7 -7 -7 query I rowsort SELECT - col2 * + 0 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL + ( 27 ) * col2 AS col2 FROM tab1 ---- 1458 1539 2592 query I rowsort SELECT - + col1 * + col1 * + col1 + col2 FROM tab2 AS cor0 ---- -205353 -29764 -4875 query I rowsort SELECT ALL - - col1 - - col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT - 78 * col2 * - col2 AS col1 FROM tab1 ---- 227448 253422 718848 query I rowsort SELECT DISTINCT + col1 * col2 * + col2 FROM tab0 ---- 611884 93654 97 query I rowsort SELECT DISTINCT - ( + 17 ) * + col1 FROM tab0 ---- -1462 -1547 -1649 query I rowsort SELECT + col1 - - col1 * col0 * - tab1.col0 AS col1 FROM tab1 ---- -208 -40950 -83187 query I rowsort SELECT - + 93 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 38f445d95788c7dc754ff688a62df03b query I rowsort SELECT 7 + col1 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 116 74 87 query I rowsort SELECT + + cor0.col1 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5301 SELECT - col0 * CAST( 87 AS SIGNED ) + + cor0.col2 * 49 col2 FROM tab2 AS cor0 ---- -5011 -5512 714 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5301 SELECT - col0 * CAST ( 87 AS INTEGER ) + + cor0.col2 * 49 col2 FROM tab2 AS cor0 ---- -5011 -5512 714 query I rowsort SELECT + ( + col0 ) + + col2 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT ALL 1 + - col1 * + tab1.col1 FROM tab1 ---- -168 -675 -99 query I rowsort SELECT - col1 + - cor0.col0 + + cor0.col0 FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT col2 * + 77 - col0 FROM tab0 cor0 ---- 2517 42 6225 query I rowsort SELECT DISTINCT - 31 * + col2 AS col1 FROM tab0 AS cor0 ---- -1023 -2542 -31 query I rowsort SELECT - 94 - - col2 * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -129 -7392 -886 query I rowsort SELECT + col0 * col1 + col1 * 28 FROM tab2 AS cor0 ---- 1085 1819 6254 onlyif mysql # use DIV operator for integer division query I rowsort label-5309 SELECT ALL - col2 * tab0.col1 + + col0 DIV + ( + col0 ) FROM tab0 ---- -2837 -7461 -96 skipif mysql # not compatible query I rowsort label-5309 SELECT ALL - col2 * tab0.col1 + + col0 / + ( + col0 ) FROM tab0 ---- -2837 -7461 -96 query I rowsort SELECT ALL ( - col1 ) + col1 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 54 col2 FROM tab2 cor0 ---- -54 onlyif mysql # use DIV operator for integer division query I rowsort label-5312 SELECT + 16 * cor0.col1 + col2 DIV + cor0.col0 FROM tab0 AS cor0 ---- 1377 1456 1552 skipif mysql # not compatible query I rowsort label-5312 SELECT + 16 * cor0.col1 + col2 / + cor0.col0 FROM tab0 AS cor0 ---- 1377 1456 1552 query I rowsort SELECT DISTINCT - + col1 * cor0.col0 + - col0 * cor0.col2 - + ( col2 ) AS col2 FROM tab0 AS cor0 ---- -15479 -2889 -3431 query I rowsort SELECT - 82 + - col0 * - cor0.col0 AS col1 FROM tab0 AS cor0 ---- 1143 494 7839 query I rowsort SELECT DISTINCT - col0 * 89 - + col1 FROM tab0 AS cor0 ---- -2222 -3212 -8012 query I rowsort SELECT 50 - col2 FROM tab2 AS cor0 ---- 12 23 24 query I rowsort SELECT - col0 + col1 + 91 AS col0 FROM tab2 AS cor0 ---- 115 29 72 skipif mysql # not compatible query I rowsort SELECT ALL + cor0.col1 + col2 + CAST ( + 40 AS REAL ) * col1 FROM tab1 cor0 ---- 1120 467 629 query I rowsort SELECT DISTINCT - col2 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL - col2 + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT DISTINCT ( - col0 ) * - ( + col0 + cor0.col1 ) * - col0 AS col2 FROM tab0 AS cor0 ---- -1425780 -161700 -63360 query I rowsort SELECT col1 + col2 + - col1 * - cor0.col0 FROM tab2 AS cor0 ---- 1398 275 4687 skipif mysql # not compatible query I rowsort SELECT ALL + + col0 + - col2 * - CAST ( col2 AS REAL ) FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT 59 + + col0 FROM tab0 AS cor0 ---- 148 83 94 query I rowsort SELECT tab1.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5327 SELECT col0 + - CAST( NULL AS DECIMAL ) * - 10 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5327 SELECT col0 + - CAST ( NULL AS REAL ) * - 10 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5328 SELECT ALL + col0 DIV 50 AS col0 FROM tab1 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-5328 SELECT ALL + col0 / 50 AS col0 FROM tab1 AS cor0 ---- 0 1 1 query I rowsort SELECT DISTINCT - col2 * 0 + 32 * + col1 * 61 + - col0 * col2 AS col1 FROM tab2 AS cor0 ---- 113140 30182 60323 query I rowsort SELECT ( - 65 ) * tab2.col0 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 060b4c2f91377db0bc5b536ca2adfaf6 query I rowsort SELECT DISTINCT + 39 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 39 query I rowsort SELECT - - 57 - + col0 FROM tab2 AS cor0 ---- -21 -22 50 query I rowsort SELECT DISTINCT 67 + - 12 FROM tab0 AS cor0 ---- 55 query I rowsort SELECT ALL col1 * cor0.col2 * - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT + 28 * 50 FROM tab0 cor0 ---- 1400 1400 1400 query I rowsort SELECT DISTINCT + + ( + col2 ) + col2 * + 64 AS col0 FROM tab2 cor0 ---- 1690 1755 2470 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5337 SELECT + col0 + CAST( col1 AS SIGNED ) FROM tab2 ---- 137 38 96 skipif mysql # not compatible query I rowsort label-5337 SELECT + col0 + CAST ( col1 AS INTEGER ) FROM tab2 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-5338 SELECT col0 - 35 DIV + 49 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-5338 SELECT col0 - 35 / + 49 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort SELECT ALL cor0.col2 * col1 - - CAST ( - col1 AS REAL ) FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT DISTINCT + col1 + col0 * col1 AS col1 FROM tab0 AS cor0 ---- 2150 3492 8190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( col1 ) * cor0.col2 col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL 61 * + col2 FROM tab2 AS cor0 ---- 1586 1647 2318 query I rowsort SELECT + 90 * + cor0.col2 * col1 FROM tab0 AS cor0 ---- 255420 671580 8730 query I rowsort SELECT ALL - - 83 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2739 6806 83 query I rowsort SELECT - ( - col1 ) * col2 + col1 AS col1 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT 25 * + col1 + col1 AS col2 FROM tab2 ---- 1534 442 806 query I rowsort SELECT + col0 * - col1 + 65 FROM tab1 ---- -13 -575 -975 query I rowsort SELECT ALL - - col0 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-5349 SELECT ALL + col1 DIV + col0 AS col0 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-5349 SELECT ALL + col1 / + col0 AS col0 FROM tab1 AS cor0 ---- 0 0 8 query I rowsort SELECT + 74 * - ( + col0 * - cor0.col0 ) FROM tab2 AS cor0 ---- 3626 450216 461834 query I rowsort SELECT ALL - 83 * col0 + - col2 AS col1 FROM tab0 AS cor0 ---- -2025 -2906 -7469 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5352 SELECT CAST( - col2 AS SIGNED ) + - cor0.col2 * 73 FROM tab1 AS cor0 ---- -3996 -4218 -7104 skipif mysql # not compatible query I rowsort label-5352 SELECT CAST ( - col2 AS INTEGER ) + - cor0.col2 * 73 FROM tab1 AS cor0 ---- -3996 -4218 -7104 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + - tab0.col0 * col1 - col0 * col2 col1 FROM tab0 ---- -15308 -2832 -3395 query I rowsort SELECT + tab1.col0 * 1 * col2 + col0 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT - 67 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to fbe03b15d6b951410b38f7e98895006f onlyif mysql # use DIV operator for integer division query I rowsort label-5356 SELECT DISTINCT col1 * + col1 - + tab2.col2 DIV col0 FROM tab2 ---- 289 3481 958 skipif mysql # not compatible query I rowsort label-5356 SELECT DISTINCT col1 * + col1 - + tab2.col2 / col0 FROM tab2 ---- 289 3481 958 query I rowsort SELECT 51 * 56 FROM tab2 ---- 2856 2856 2856 query I rowsort SELECT ALL - 67 + - 87 AS col0 FROM tab1 AS cor0 ---- -154 -154 -154 onlyif mysql # use DIV operator for integer division query I rowsort label-5359 SELECT - col0 DIV col0 + cor0.col0 + - ( col1 ) FROM tab0 cor0 ---- -3 -63 -63 skipif mysql # not compatible query I rowsort label-5359 SELECT - col0 / col0 + cor0.col0 + - ( col1 ) FROM tab0 cor0 ---- -3 -63 -63 query I rowsort SELECT DISTINCT ( col1 ) * + col1 * 35 AS col0 FROM tab2 AS cor0 ---- 10115 121835 33635 query I rowsort SELECT col2 + cor0.col0 + - col1 AS col2 FROM tab0 cor0 ---- -29 -61 80 query I rowsort SELECT DISTINCT - + 20 * col2 AS col2 FROM tab1 cor0 ---- -1080 -1140 -1920 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * - tab1.col1 * col2 + - col1 * col0 * col1 col0 FROM tab1 ---- -12100 -29744 -38532 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 95 * cor0.col2 col1 FROM tab0, tab2 cor0 ---- 9 values hashing to 93aae9329d7ccefd5cd3d88a62ed5aca query I rowsort SELECT ALL + - cor0.col0 * + col0 FROM tab2 cor0 ---- -49 -6084 -6241 query I rowsort SELECT 15 * col1 + + col0 AS col2 FROM tab1 AS cor0 ---- 214 275 393 query I rowsort SELECT ALL + - 82 AS col0 FROM tab0 AS cor0 ---- -82 -82 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-5368 SELECT ALL col1 + + col1 DIV + col2 AS col1 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-5368 SELECT ALL col1 + + col1 / + col2 AS col1 FROM tab1 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-5369 SELECT ALL 38 + ( - col0 ) * tab1.col2 DIV col1 col0 FROM tab1 ---- -326 -552 32 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5369 SELECT ALL 38 + ( - col0 ) * tab1.col2 / col1 col0 FROM tab1 ---- -326 -552 32 onlyif mysql # use DIV operator for integer division query I rowsort label-5370 SELECT ALL + col1 DIV + tab1.col2 + - col1 + col2 FROM tab1 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-5370 SELECT ALL + col1 / + tab1.col2 + - col1 + col2 FROM tab1 ---- 28 47 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5371 SELECT ALL + CAST( + col0 AS SIGNED ) + col0 FROM tab0 ---- 178 48 70 skipif mysql # not compatible query I rowsort label-5371 SELECT ALL + CAST ( + col0 AS INTEGER ) + col0 FROM tab0 ---- 178 48 70 query I rowsort SELECT + col2 * + 50 * + tab2.col0 FROM tab2 ---- 101400 150100 9450 query I rowsort SELECT DISTINCT - 81 - - cor0.col2 * 54 AS col1 FROM tab1, tab1 AS cor0 ---- 2835 2997 5103 query I rowsort SELECT DISTINCT + col2 + + 55 + col0 AS col2 FROM tab0 AS cor0 ---- 112 226 91 query I rowsort SELECT - ( col2 ) * + cor0.col0 + - col0 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT + 68 AS col2 FROM tab2, tab1 cor0 ---- 9 values hashing to 599bee15ac4cc39b859854e07dfe7990 onlyif mysql # use DIV operator for integer division query I rowsort label-5377 SELECT DISTINCT + ( col2 ) DIV - col0 AS col2 FROM tab1 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-5377 SELECT DISTINCT + ( col2 ) / - col0 AS col2 FROM tab1 ---- -1 -18 0 query I rowsort SELECT + 34 * col2 + col1 FROM tab0 AS cor0 ---- 1208 131 2879 query I rowsort SELECT DISTINCT 39 * col2 FROM tab1 AS cor0 ---- 2106 2223 3744 query I rowsort SELECT DISTINCT + - 69 * col2 FROM tab0 AS cor0 ---- -2277 -5658 -69 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5381 SELECT col2 * + col1 * CAST( col1 AS SIGNED ) + + cor0.col2 + - col0 AS col2 FROM tab0 AS cor0 ---- 244077 679035 9375 skipif mysql # not compatible query I rowsort label-5381 SELECT col2 * + col1 * CAST ( col1 AS INTEGER ) + + cor0.col2 + - col0 AS col2 FROM tab0 AS cor0 ---- 244077 679035 9375 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5382 SELECT + - col0 * col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5382 SELECT + - col0 * col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5383 SELECT + ( - col0 ) + + 60 DIV - col1 AS col2 FROM tab2 AS cor0 ---- -79 -8 -82 skipif mysql # not compatible query I rowsort label-5383 SELECT + ( - col0 ) + + 60 / - col1 AS col2 FROM tab2 AS cor0 ---- -79 -8 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-5384 SELECT - - col0 + col0 DIV + col0 + col1 AS col2 FROM tab2 AS cor0 ---- 138 39 97 skipif mysql # not compatible query I rowsort label-5384 SELECT - - col0 + col0 / + col0 + col1 AS col2 FROM tab2 AS cor0 ---- 138 39 97 query I rowsort SELECT ALL + 99 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 4b77467dd5f346109d29f6364a7bb8db onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5386 SELECT ALL - col1 * - CAST( - 14 AS SIGNED ) FROM tab2 cor0 ---- -238 -434 -826 skipif mysql # not compatible query I rowsort label-5386 SELECT ALL - col1 * - CAST ( - 14 AS INTEGER ) FROM tab2 cor0 ---- -238 -434 -826 query I rowsort SELECT - + col0 * + col1 AS col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5388 SELECT DISTINCT cor0.col1 * - CAST( + col2 AS SIGNED ) + col2 * - col1 FROM tab2 AS cor0 ---- -1292 -1674 -3068 skipif mysql # not compatible query I rowsort label-5388 SELECT DISTINCT cor0.col1 * - CAST ( + col2 AS INTEGER ) + col2 * - col1 FROM tab2 AS cor0 ---- -1292 -1674 -3068 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5389 SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5389 SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL + col1 * 35 + col2 AS col0 FROM tab0 AS cor0 ---- 3043 3267 3396 onlyif mysql # use DIV operator for integer division query I rowsort label-5391 SELECT ALL + col2 DIV + 73 AS col1 FROM tab2 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5391 SELECT ALL + col2 / + 73 AS col1 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT ALL + - col2 + col2 * + col1 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT DISTINCT - col2 * col0 + + ( col1 ) AS col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5394 SELECT 70 * - ( col0 ) + - CAST( NULL AS SIGNED ) * - ( col0 * + cor0.col1 ) + col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5394 SELECT 70 * - ( col0 ) + - CAST ( NULL AS INTEGER ) * - ( col0 * + cor0.col1 ) + col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 30 * - cor0.col1 + - col2 FROM tab0 AS cor0 ---- -2613 -2812 -2911 query I rowsort SELECT - ( col0 ) + col2 * - col1 + + col1 FROM tab1 AS cor0 ---- -1315 -1381 -624 query I rowsort SELECT - - col0 * + cor0.col0 FROM tab0 cor0 ---- 1225 576 7921 query I rowsort SELECT - + 83 * - 72 - - col1 * col1 FROM tab0 AS cor0 ---- 13372 14257 15385 query I rowsort SELECT - - cor0.col2 * 88 FROM tab2 AS cor0 ---- 2288 2376 3344 query I rowsort SELECT - + col0 * col1 - col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5401 SELECT col1 * - CAST( ( - col1 ) AS SIGNED ) FROM tab2 cor0 ---- 289 3481 961 skipif mysql # not compatible query I rowsort label-5401 SELECT col1 * - CAST ( ( - col1 ) AS INTEGER ) FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT + - col2 - 39 * col0 AS col2 FROM tab1 AS cor0 ---- -171 -2553 -3216 query I rowsort SELECT + + col2 * 25 + 57 AS col2 FROM tab0 AS cor0 ---- 2107 82 882 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col0 + + cor0.col2 * col1 * + ( + col2 * col0 ) col1 FROM tab2 AS cor0 ---- 157976 1937949 3106350 onlyif mysql # use DIV operator for integer division query I rowsort label-5405 SELECT ALL 55 DIV col0 + tab1.col1 * 55 FROM tab1 ---- 1448 550 715 skipif mysql # not compatible query I rowsort label-5405 SELECT ALL 55 / col0 + tab1.col1 * 55 FROM tab1 ---- 1448 550 715 query I rowsort SELECT ALL 36 FROM tab2, tab1 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 query I rowsort SELECT DISTINCT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- -24 -35 -89 query I rowsort SELECT ALL + col0 * ( + col0 ) FROM tab1 cor0 ---- 4096 6400 9 query I rowsort SELECT DISTINCT - col2 * 24 AS col0 FROM tab0 AS cor0 ---- -1968 -24 -792 query I rowsort SELECT + cor0.col0 * - ( - 6 ) - col0 * cor0.col0 FROM tab1 AS cor0 ---- -3712 -5920 9 query I rowsort SELECT + + col0 * - 61 AS col2 FROM tab1 AS cor0 ---- -183 -3904 -4880 query I rowsort SELECT 92 * col0 FROM tab0 AS cor0 ---- 2208 3220 8188 query I rowsort SELECT DISTINCT col1 - + col0 * col1 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT - cor1.col0 AS col2 FROM tab2, tab1, tab2 cor0, tab1 cor1 ---- 81 values hashing to 08e380e50b0cb64601bc84e5254deef4 query I rowsort SELECT + 15 * col2 AS col2 FROM tab0 ---- 1230 15 495 query I rowsort SELECT ( col1 + 97 ) FROM tab1 ---- 107 110 123 query I rowsort SELECT + 16 * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -1536 -864 -912 query I rowsort SELECT - col1 * + cor0.col0 * - col0 AS col1 FROM tab1 AS cor0 ---- 234 40960 83200 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 97 col1 FROM tab0 ---- 97 97 97 query I rowsort SELECT - 93 + col2 AS col1 FROM tab0 AS cor0 ---- -11 -60 -92 query I rowsort SELECT - + col1 + + 86 + - 53 * col1 * 44 FROM tab0 AS cor0 ---- -200552 -212217 -226215 onlyif mysql # use DIV operator for integer division query I rowsort label-5422 SELECT ALL - col1 DIV 6 FROM tab2 AS cor0 ---- -2 -5 -9 skipif mysql # not compatible query I rowsort label-5422 SELECT ALL - col1 / 6 FROM tab2 AS cor0 ---- -2 -5 -9 query I rowsort SELECT + cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT ALL + col0 + - col1 * - tab0.col1 AS col1 FROM tab0 ---- 7420 8370 9444 query I rowsort SELECT - - col2 * + 81 * - col0 FROM tab0 AS cor0 ---- -2835 -591138 -64152 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5426 SELECT ALL col2 * CAST( NULL AS SIGNED ) * col1 + + col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5426 SELECT ALL col2 * CAST ( NULL AS INTEGER ) * col1 + + col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 + ( 22 ) AS col1 FROM tab0 AS cor0 ---- 104 23 55 query I rowsort SELECT - cor0.col2 * + col2 - + col0 * - col1 FROM tab1 AS cor0 ---- -2609 -2838 -8176 onlyif mysql # use DIV operator for integer division query I rowsort label-5429 SELECT col1 DIV - 51 - + col1 * - col1 AS col0 FROM tab0 AS cor0 ---- 7395 8280 9408 skipif mysql # not compatible query I rowsort label-5429 SELECT col1 / - 51 - + col1 * - col1 AS col0 FROM tab0 AS cor0 ---- 7395 8280 9408 query I rowsort SELECT DISTINCT + - cor0.col0 + cor0.col1 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT 58 + + col0 AS col2 FROM tab0 cor0 ---- 147 82 93 query I rowsort SELECT + col0 + ( - col2 ) AS col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT DISTINCT + - col0 * 44 AS col0 FROM tab2 AS cor0 ---- -308 -3432 -3476 query I rowsort SELECT - + col1 + - cor0.col0 FROM tab0 cor0 ---- -110 -132 -180 query I rowsort SELECT - - col0 + + cor0.col1 AS col2 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT - + col1 * col2 * - col2 FROM tab0 cor0 ---- 611884 93654 97 query I rowsort SELECT - - 69 AS col0 FROM tab2 AS cor0 ---- 69 69 69 query I rowsort SELECT DISTINCT - + 82 + - col2 * col0 FROM tab2 cor0 ---- -2110 -271 -3084 query I rowsort SELECT ALL cor0.col0 * - col2 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5440 SELECT - cor0.col1 + col1 * - CAST( NULL AS DECIMAL ) * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5440 SELECT - cor0.col1 + col1 * - CAST ( NULL AS REAL ) * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + cor0.col0 + + col0 * col1 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT ALL + 16 + - col0 + - ( 27 ) * col1 FROM tab0 AS cor0 ---- -2330 -2530 -2638 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5443 SELECT ALL - CAST( NULL AS SIGNED ) + col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5443 SELECT ALL - CAST ( NULL AS INTEGER ) + col2 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + + col2 col0 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT DISTINCT + col1 + tab0.col0 * col1 FROM tab0 ---- 2150 3492 8190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + 75 + 37 col0 FROM tab2 ---- 119 190 191 query I rowsort SELECT ALL col1 * - 50 * col2 FROM tab0 ---- -141900 -373100 -4850 query I rowsort SELECT + + col2 * + col2 - + 75 FROM tab1 cor0 ---- 2841 3174 9141 query I rowsort SELECT ALL - col1 * + col0 - col2 AS col0 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT col1 + - ( col1 ) AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * + 39 FROM tab1 AS cor0 ---- 1014 390 507 query I rowsort SELECT DISTINCT + cor0.col0 + - 19 AS col0 FROM tab1 cor0 ---- -16 45 61 query I rowsort SELECT ALL + + 93 * 95 * col1 FROM tab1 AS cor0 ---- 114855 229710 88350 query I rowsort SELECT + 85 FROM tab2, tab0 cor0 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b onlyif mysql # use DIV operator for integer division query I rowsort label-5455 SELECT DISTINCT 61 DIV col2 FROM tab0 ---- 0 1 61 skipif mysql # not compatible query I rowsort label-5455 SELECT DISTINCT 61 / col2 FROM tab0 ---- 0 1 61 query I rowsort SELECT ALL - 40 + col0 FROM tab2 AS cor0 ---- -33 38 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( 41 ) + + col2 + - col1 col1 FROM tab2 cor0 ---- 37 62 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5458 SELECT - - CAST( NULL AS SIGNED ) + + col0 + - col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5458 SELECT - - CAST ( NULL AS INTEGER ) + + col0 + - col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5459 SELECT ALL - 95 DIV - col0 + - col1 * 5 * - col2 AS col1 FROM tab2 ---- 3231 4198 7671 skipif mysql # not compatible query I rowsort label-5459 SELECT ALL - 95 / - col0 + - col1 * 5 * - col2 AS col1 FROM tab2 ---- 3231 4198 7671 query I rowsort SELECT ALL + 72 + + cor0.col2 * 66 AS col0 FROM tab0 cor0 ---- 138 2250 5484 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 75 + col2 col0 FROM tab2 AS cor0 ---- -37 -48 -49 query I rowsort SELECT DISTINCT col1 - col0 * cor0.col2 AS col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT - cor0.col0 + col0 * - 83 * - col2 FROM tab0 AS cor0 ---- 2870 605645 65712 query I rowsort SELECT DISTINCT + col1 * col2 + + col0 AS col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT ALL + col2 * - col2 * 95 + - col1 FROM tab0 AS cor0 ---- -103541 -192 -638871 query I rowsort SELECT ALL col2 + - col1 * - col2 AS col1 FROM tab2 cor0 ---- 1560 684 864 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5467 SELECT - - col0 + CAST( - col0 AS SIGNED ) + + col1 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-5467 SELECT - - col0 + CAST ( - col0 AS INTEGER ) + + col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT + col0 + + col0 * + col2 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT + 28 + - col2 * - 61 * + col0 + - tab1.col0 AS col0 FROM tab1 ---- 222492 468428 9907 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5470 SELECT + col0 * tab0.col2 + CAST( NULL AS SIGNED ) * 10 + col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5470 SELECT + col0 * tab0.col2 + CAST ( NULL AS INTEGER ) * 10 + col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 + ( + 81 ) AS col1 FROM tab0 AS cor0 ---- 114 163 82 query I rowsort SELECT + - cor0.col1 + - cor0.col2 FROM tab1 cor0 ---- -109 -67 -80 query I rowsort SELECT - + cor0.col1 + + 81 FROM tab0 AS cor0 ---- -10 -16 -5 query I rowsort SELECT DISTINCT + - col0 * col2 + + col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT ALL - + cor0.col0 + - ( + 93 * - col0 ) AS col0 FROM tab0 AS cor0 ---- 2208 3220 8188 query I rowsort SELECT ALL - - col1 - col1 * ( col2 + col0 * - col0 ) AS col1 FROM tab0 AS cor0 ---- 118825 46784 713440 query I rowsort SELECT DISTINCT + + col2 + col0 * cor0.col2 FROM tab0 cor0 ---- 36 7380 825 query I rowsort SELECT DISTINCT tab2.col0 * + col1 + 84 * col0 FROM tab2 ---- 11154 7979 805 query I rowsort SELECT DISTINCT - col1 - - col2 * - col1 * col0 AS col2 FROM tab2 ---- -119711 -51051 -5890 query I rowsort SELECT col2 + col1 + ( + tab1.col0 + tab1.col0 ) FROM tab1 ---- 195 269 86 query I rowsort SELECT + col0 * col2 - col0 AS col1 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT + col2 * + col0 + col1 AS col1 FROM tab0 AS cor0 ---- 132 7389 878 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - cor0.col0 col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT + col2 * + col0 + cor0.col0 * cor0.col1 FROM tab0 AS cor0 ---- 15397 2856 3430 query I rowsort SELECT ALL tab2.col2 + - col1 AS col0 FROM tab2 ---- -33 -4 21 query I rowsort SELECT ALL + tab0.col0 + - col2 * + col1 AS col0 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT - cor0.col0 * col1 + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -2031 -3394 -8017 onlyif mysql # use DIV operator for integer division query I rowsort label-5488 SELECT col1 * + tab0.col0 DIV - col0 FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-5488 SELECT col1 * + tab0.col0 / - col0 FROM tab0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * tab2.col1 col2 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT ALL + 21 AS col0 FROM tab2 ---- 21 21 21 onlyif mysql # use DIV operator for integer division query I rowsort label-5491 SELECT - col0 + col0 * col0 DIV + col2 col1 FROM tab1 AS cor0 ---- -14 -3 7 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5491 SELECT - col0 + col0 * col0 / + col2 col1 FROM tab1 AS cor0 ---- -14 -3 7 query I rowsort SELECT DISTINCT + 45 AS col1 FROM tab1 ---- 45 query I rowsort SELECT + ( + 0 ) * + col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT + 86 + + 91 FROM tab1 ---- 177 177 177 query I rowsort SELECT DISTINCT 45 * 98 AS col2 FROM tab0 ---- 4410 query I rowsort SELECT - 8 + col1 FROM tab0 AS cor0 ---- 78 83 89 query I rowsort SELECT DISTINCT + 91 * + col0 FROM tab2 ---- 637 7098 7189 query I rowsort SELECT DISTINCT ( 27 ) * col0 AS col2 FROM tab2 ---- 189 2106 2133 query I rowsort SELECT DISTINCT ( col0 ) * ( 67 ) FROM tab2 cor0 ---- 469 5226 5293 query I rowsort SELECT ALL - + 78 AS col0 FROM tab2 AS cor0 ---- -78 -78 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-5501 SELECT - 44 + + col2 + + col2 DIV 80 FROM tab2 AS cor0 ---- -17 -18 -6 skipif mysql # not compatible query I rowsort label-5501 SELECT - 44 + + col2 + + col2 / 80 FROM tab2 AS cor0 ---- -17 -18 -6 query I rowsort SELECT DISTINCT + + 36 * col2 * 24 AS col1 FROM tab1 AS cor0 ---- 46656 49248 82944 query I rowsort SELECT DISTINCT - col0 + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 2 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 - + col0 col1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT 31 * col1 AS col0 FROM tab1 ---- 310 403 806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 * col0 col2 FROM tab1 cor0 ---- 4096 6400 9 query I rowsort SELECT col1 - cor0.col2 * + col0 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT + col2 * col2 + + ( tab0.col0 * + 37 ) AS col0 FROM tab0 ---- 10017 1296 1977 query I rowsort SELECT 67 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to eea8a0738728ea55e4e7ba1506c9905a query I rowsort SELECT - col0 * 76 + 23 * col2 FROM tab0 AS cor0 ---- -1065 -2637 -4878 query I rowsort SELECT ALL + col0 + + col2 * + cor0.col0 * + col1 FROM tab2 AS cor0 ---- 119730 51113 5866 query I rowsort SELECT ALL - ( - col0 ) - + col1 * cor0.col2 AS col0 FROM tab0 cor0 ---- -2814 -62 -7373 query I rowsort SELECT ALL + col2 * col1 + col1 AS col1 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT 95 + col2 FROM tab1 AS cor0 ---- 149 152 191 query I rowsort SELECT ALL - 25 * col1 AS col2 FROM tab2 AS cor0 ---- -1475 -425 -775 onlyif mysql # use DIV operator for integer division query I rowsort label-5516 SELECT ALL - col0 DIV + col0 - - col2 AS col1 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-5516 SELECT ALL - col0 / + col0 - - col2 AS col1 FROM tab1 AS cor0 ---- 53 56 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 0 col2 FROM tab2 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5518 SELECT ALL col0 + col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-5518 SELECT ALL col0 + col2 / cor0.col1 AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + + 98 * 5 * cor0.col0 + ( col0 ) * + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -119964 -198448 2107 query I rowsort SELECT DISTINCT col2 * - 3 FROM tab0 AS cor0 ---- -246 -3 -99 query I rowsort SELECT DISTINCT + + ( 75 ) AS col0 FROM tab2 AS cor0 ---- 75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - cor0.col0 * 5 col1 FROM tab2 AS cor0 ---- -35 -390 -395 query I rowsort SELECT + cor0.col2 * 74 AS col0 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 6a5461694bbdd2dd5763ce100f535a62 query I rowsort SELECT ALL col0 + ( tab0.col2 ) FROM tab0 ---- 171 36 57 query I rowsort SELECT tab2.col2 + + 72 AS col1 FROM tab2 ---- 110 98 99 query I rowsort SELECT - 48 * + 49 FROM tab1, tab0 cor0 ---- 9 values hashing to 7b875fbdcdeb4480948de046c28585b3 query I rowsort SELECT ALL col1 + 0 AS col0 FROM tab1 ---- 10 13 26 query I rowsort SELECT DISTINCT 32 + - col0 AS col0 FROM tab0 AS cor0 ---- -3 -57 8 query I rowsort SELECT - cor0.col1 * 99 AS col2 FROM tab2 AS cor0 ---- -1683 -3069 -5841 query I rowsort SELECT ALL - - 21 - - col1 * - col0 FROM tab1 AS cor0 ---- -1019 -57 -619 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5531 SELECT DISTINCT - CAST( NULL AS DECIMAL ) / col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5531 SELECT DISTINCT - CAST ( NULL AS REAL ) / col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT col0 * - 12 FROM tab0 ---- -1068 -288 -420 query I rowsort SELECT 86 AS col1 FROM tab2, tab2 cor0 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 query I rowsort SELECT DISTINCT col1 * 15 FROM tab1 ---- 150 195 390 query I rowsort SELECT ALL - col2 + - 22 * + col1 AS col1 FROM tab2 ---- -1324 -412 -709 query I rowsort SELECT DISTINCT 73 * 34 * col1 FROM tab1 AS cor0 ---- 24820 32266 64532 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5537 SELECT ALL + CAST( + 46 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0 ---- 1426 2714 782 skipif mysql # not compatible query I rowsort label-5537 SELECT ALL + CAST ( + 46 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0 ---- 1426 2714 782 query I rowsort SELECT DISTINCT + - col1 * cor0.col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + 93 * - 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- -6417 query I rowsort SELECT - cor0.col2 * - 48 + col1 AS col0 FROM tab1 AS cor0 ---- 2618 2746 4621 query I rowsort SELECT + col0 + col1 * ( col2 ) FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT ALL + col0 * 10 + - col1 * tab2.col2 FROM tab2 ---- -754 -767 144 query I rowsort SELECT ALL - - cor0.col0 * col0 + - col2 FROM tab0 AS cor0 ---- 1224 543 7839 query I rowsort SELECT ALL + col0 * 42 AS col2 FROM tab1 AS cor0 ---- 126 2688 3360 query I rowsort SELECT ALL - - col2 + - 34 AS col2 FROM tab0 AS cor0 ---- -1 -33 48 query I rowsort SELECT + - col1 * + cor0.col1 + + 88 * col1 + col2 * + 44 AS col0 FROM tab0 AS cor0 ---- -829 1624 3335 query I rowsort SELECT + col2 + - ( - cor0.col0 ) * + col2 + col1 AS col1 FROM tab0 AS cor0 ---- 133 7471 911 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 96 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 96 query I rowsort SELECT DISTINCT col0 * + ( - col0 * cor0.col1 ) AS col1 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT col1 * col2 + + ( ( - col0 ) ) AS col1 FROM tab1 ---- 1168 1401 506 query I rowsort SELECT tab2.col1 + ( + tab2.col2 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5552 SELECT ALL - + col1 * - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5552 SELECT ALL - + col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 63 * - tab1.col1 * + tab1.col0 AS col1 FROM tab1, tab0 cor0 ---- -40320 -4914 -65520 query I rowsort SELECT ALL col1 + - col0 * col2 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT + col2 * - col1 * - col0 AS col2 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT ALL col1 * 33 AS col0 FROM tab2 AS cor0 ---- 1023 1947 561 query I rowsort SELECT ALL col1 + ( + 5 ) FROM tab1 cor0 ---- 15 18 31 query I rowsort SELECT ALL ( cor1.col0 ) FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * col2 + - 59 col2 FROM tab2 AS cor0 ---- 1475 587 778 onlyif mysql # use DIV operator for integer division query I rowsort label-5560 SELECT col0 * col0 + col0 DIV - col0 AS col1 FROM tab1 AS cor0 ---- 4095 6399 8 skipif mysql # not compatible query I rowsort label-5560 SELECT col0 * col0 + col0 / - col0 AS col1 FROM tab1 AS cor0 ---- 4095 6399 8 query I rowsort SELECT DISTINCT + col0 * col2 + 13 AS col0 FROM tab2 cor0 ---- 202 2041 3015 query I rowsort SELECT + col1 * ( + col2 ) + + col0 + - 11 AS col2 FROM tab2 AS cor0 ---- 1601 714 833 query I rowsort SELECT DISTINCT col0 + + cor0.col0 AS col0 FROM tab1 cor0 ---- 128 160 6 query I rowsort SELECT + cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7 query I rowsort SELECT DISTINCT - 84 AS col0 FROM tab2 ---- -84 query I rowsort SELECT DISTINCT + + ( + 64 ) + col1 * ( col1 ) + col0 AS col2 FROM tab2 AS cor0 ---- 1032 3623 432 query I rowsort SELECT ALL cor1.col1 AS col2 FROM tab0, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT + + col0 * - cor0.col1 FROM tab0 cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-5569 SELECT + - col2 + col0 DIV - col2 FROM tab1 AS cor0 ---- -54 -58 -96 skipif mysql # not compatible query I rowsort label-5569 SELECT + - col2 + col0 / - col2 FROM tab1 AS cor0 ---- -54 -58 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( col2 ) * - 29 col2 FROM tab0 AS cor0 ---- -2378 -29 -957 query I rowsort SELECT DISTINCT - 73 + col0 * 55 AS col1 FROM tab2 AS cor0 ---- 312 4217 4272 query I rowsort SELECT DISTINCT + col0 * cor0.col1 + - 87 FROM tab2 AS cor0 ---- 1256 130 4515 onlyif mysql # use DIV operator for integer division query I rowsort label-5573 SELECT DISTINCT + col2 DIV - col0 FROM tab1 cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-5573 SELECT DISTINCT + col2 / - col0 FROM tab1 cor0 ---- -1 -18 0 query I rowsort SELECT - - col0 + - cor0.col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 * cor0.col0 + - cor0.col1 AS col2 FROM tab0 AS cor0 ---- 1128 490 7830 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5576 SELECT DISTINCT col2 * col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5576 SELECT DISTINCT col2 * col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5577 SELECT + ( + col2 ) DIV - col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5577 SELECT + ( + col2 ) / - col2 FROM tab1 AS cor0 ---- -1 -1 -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5578 SELECT - 21 + cor0.col2 * CAST( ( - cor0.col1 ) AS SIGNED ) FROM tab0 AS cor0 ---- -118 -2859 -7483 skipif mysql # not compatible query I rowsort label-5578 SELECT - 21 + cor0.col2 * CAST ( ( - cor0.col1 ) AS INTEGER ) FROM tab0 AS cor0 ---- -118 -2859 -7483 query I rowsort SELECT ALL + 71 AS col0 FROM tab1 cor0 ---- 71 71 71 query I rowsort SELECT DISTINCT cor0.col0 * col0 * - 84 FROM tab2 AS cor0 ---- -4116 -511056 -524244 onlyif mysql # use DIV operator for integer division query I rowsort label-5581 SELECT tab2.col1 DIV - 43 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 721682d0719de924079c33bd72eef789 skipif mysql # not compatible query I rowsort label-5581 SELECT tab2.col1 / - 43 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 721682d0719de924079c33bd72eef789 query I rowsort SELECT ALL + 97 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to c73fa6978df8525c99d6bc792bb27123 query I rowsort SELECT ALL - tab0.col0 + - 76 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 12cebf5c752f61a495fc85ce84bcf73d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5584 SELECT + CAST( + col2 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0 ---- 1444 676 729 skipif mysql # not compatible query I rowsort label-5584 SELECT + CAST ( + col2 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT + col2 + + 16 AS col1 FROM tab1 AS cor0 ---- 112 70 73 query I rowsort SELECT - col1 + + col2 * col0 AS col1 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT + 81 * + col2 * - cor0.col0 + - col2 * + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2932 -598600 -66990 query I rowsort SELECT 29 * 86 + col2 * col0 + 11 FROM tab2 AS cor0 ---- 2694 4533 5507 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5589 SELECT + - CAST( col0 AS SIGNED ) + + col2 * + 28 AS col1 FROM tab2 AS cor0 ---- 650 749 985 skipif mysql # not compatible query I rowsort label-5589 SELECT + - CAST ( col0 AS INTEGER ) + + col2 * + 28 AS col1 FROM tab2 AS cor0 ---- 650 749 985 query I rowsort SELECT ALL - tab1.col0 * col0 + - col1 * col1 FROM tab1 ---- -4196 -6569 -685 query I rowsort SELECT ALL - col2 * + col1 + ( tab2.col0 ) AS col2 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT DISTINCT + 28 FROM tab0, tab1 AS cor0 ---- 28 query I rowsort SELECT 78 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5594 SELECT ALL CAST( - 19 AS SIGNED ) AS col1 FROM tab2 ---- -19 -19 -19 skipif mysql # not compatible query I rowsort label-5594 SELECT ALL CAST ( - 19 AS INTEGER ) AS col1 FROM tab2 ---- -19 -19 -19 query I rowsort SELECT ( + tab1.col1 ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL + col0 AS col2 FROM tab0 WHERE col1 BETWEEN + col0 AND ( + col2 * col0 ) ---- 24 89 query III rowsort SELECT * FROM tab0 WHERE col1 / tab0.col2 BETWEEN + col1 / - tab0.col1 + + col1 AND ( NULL ) ---- query I rowsort SELECT DISTINCT - col2 * col0 - col1 * col2 * col1 FROM tab1 ---- -23904 -36666 -9348 query III rowsort SELECT * FROM tab2 WHERE NULL > - col0 * - col1 ---- query I rowsort SELECT - col1 - col2 * col0 FROM tab0 ---- -132 -7389 -878 query III rowsort SELECT * FROM tab0 WHERE - col0 IN ( tab0.col1 + - col0 * + col2 ) ---- query I rowsort SELECT col1 + col0 + - tab0.col2 AS col1 FROM tab0 ---- 131 77 98 query I rowsort SELECT DISTINCT col2 * col1 * - col0 FROM tab0 ---- -3395 -664118 -68112 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col0 / + col0 ) ---- query I rowsort SELECT DISTINCT + col0 + + tab1.col1 * col1 FROM tab1 ---- 164 249 679 onlyif mysql # use DIV operator for integer division query I rowsort label-5606 SELECT col2 + + col0 DIV col2 FROM tab0 ---- 33 36 83 skipif mysql # not compatible query I rowsort label-5606 SELECT col2 + + col0 / col2 FROM tab0 ---- 33 36 83 query I rowsort SELECT ALL tab0.col0 - + col1 * col0 FROM tab0 ---- -2040 -3360 -8010 query I rowsort SELECT ALL + col2 * col1 - + col0 * col2 AS col1 FROM tab1 ---- -3078 -6432 1242 query I rowsort SELECT + - cor0.col1 * col2 - + cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1593 -663 -868 query I rowsort SELECT - col2 * + col1 + col0 AS col2 FROM tab2 cor0 ---- -1456 -567 -830 query I rowsort SELECT + cor0.col2 * - col2 + + col1 FROM tab1 AS cor0 ---- -2890 -3239 -9203 query I rowsort SELECT + col2 * - col0 * col1 AS col1 FROM tab0 cor0 ---- -3395 -664118 -68112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col1 * + col0 col2 FROM tab2 ---- -1343 -217 -4602 query IIIIII rowsort SELECT * FROM tab0, tab1 AS cor0 WHERE NULL = NULL ---- query I rowsort SELECT ALL - col2 + + 56 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1402 503 632 onlyif mysql # use DIV operator for integer division query I rowsort label-5616 SELECT DISTINCT - col1 DIV ( + cor0.col0 ) - col2 DIV col2 AS col2 FROM tab0 AS cor0 ---- -2 -3 -4 skipif mysql # not compatible query I rowsort label-5616 SELECT DISTINCT - col1 / ( + cor0.col0 ) - col2 / col2 AS col2 FROM tab0 AS cor0 ---- -2 -3 -4 query I rowsort SELECT ALL cor0.col0 + - 46 FROM tab1 AS cor0 ---- -43 18 34 query I rowsort SELECT DISTINCT - + col0 * - 68 + col0 + + col2 * ( - col1 ) FROM tab0 AS cor0 ---- -1182 -1321 2318 query I rowsort SELECT ALL + cor0.col0 * - 23 * - 5 - + cor0.col0 FROM tab0 cor0 ---- 10146 2736 3990 query I rowsort SELECT - col0 + ( + cor0.col1 ) * + col1 AS col1 FROM tab2 cor0 ---- 210 3403 954 query I rowsort SELECT - cor0.col0 * - col0 * col1 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT col0 + - ( col0 ) * - col1 FROM tab1 AS cor0 ---- 1120 704 81 onlyif mysql # use DIV operator for integer division query I rowsort label-5623 SELECT DISTINCT - col0 - ( col1 ) DIV + col0 AS col0 FROM tab0 AS cor0 ---- -27 -37 -90 skipif mysql # not compatible query I rowsort label-5623 SELECT DISTINCT - col0 - ( col1 ) / + col0 AS col0 FROM tab0 AS cor0 ---- -27 -37 -90 query I rowsort SELECT - col0 * + cor0.col0 * - ( + col0 ) + - col2 FROM tab2 AS cor0 ---- 316 474526 493001 query I rowsort SELECT DISTINCT cor0.col1 + - col2 AS col0 FROM tab2 cor0 ---- -21 33 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + cor0.col1 col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT - 63 * - col1 AS col1 FROM tab2 AS cor0 ---- 1071 1953 3717 query I rowsort SELECT DISTINCT - - ( - col0 ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT - 47 + 57 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 cor2 ---- 81 values hashing to bf75e71325a06683558cf93fd725ad16 query I rowsort SELECT + 73 FROM tab1 cor0 ---- 73 73 73 query I rowsort SELECT col0 + ( - col2 ) * col0 FROM tab0 AS cor0 ---- -7209 -768 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5632 SELECT - col1 DIV tab0.col2 + tab0.col0 * col1 * col2 FROM tab0 ---- 3298 664117 68110 skipif mysql # not compatible query I rowsort label-5632 SELECT - col1 / tab0.col2 + tab0.col0 * col1 * col2 FROM tab0 ---- 3298 664117 68110 query I rowsort SELECT DISTINCT col0 * - 82 + + col1 AS col1 FROM tab2 ---- -543 -6337 -6461 onlyif mysql # use DIV operator for integer division query I rowsort label-5634 SELECT col0 DIV + 80 + - col0 FROM tab0 ---- -24 -35 -88 skipif mysql # not compatible query I rowsort label-5634 SELECT col0 / + 80 + - col0 FROM tab0 ---- -24 -35 -88 query I rowsort SELECT 99 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67 query I rowsort SELECT - 32 * col0 - col1 FROM tab2 AS cor0 ---- -2545 -255 -2555 query I rowsort SELECT col1 * col0 + 88 * + 12 AS col1 FROM tab1 AS cor0 ---- 1134 1696 2096 query I rowsort SELECT - + 66 * cor0.col2 * cor0.col2 - col0 AS col0 FROM tab1 AS cor0 ---- -192459 -214498 -608336 onlyif mysql # use DIV operator for integer division query I rowsort label-5639 SELECT - col1 DIV - col1 + col2 FROM tab2 AS cor0 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-5639 SELECT - col1 / - col1 + col2 FROM tab2 AS cor0 ---- 27 28 39 query I rowsort SELECT ALL cor0.col0 * - col2 + - col1 FROM tab2 cor0 ---- -2087 -220 -3019 query I rowsort SELECT DISTINCT col0 + col1 * col1 AS col0 FROM tab2 ---- 3559 368 968 onlyif mysql # use DIV operator for integer division query I rowsort label-5642 SELECT - col2 DIV tab1.col2 + col1 * col0 AS col1 FROM tab1 ---- 1039 639 77 skipif mysql # not compatible query I rowsort label-5642 SELECT - col2 / tab1.col2 + col1 * col0 AS col1 FROM tab1 ---- 1039 639 77 query I rowsort SELECT DISTINCT col2 - col1 * col2 AS col2 FROM tab0 ---- -2805 -7380 -96 query III rowsort SELECT * FROM tab2 WHERE col2 >= ( NULL ) ---- query I rowsort SELECT col1 FROM tab0 WHERE NOT + col1 * col1 <> NULL ---- query I rowsort SELECT DISTINCT - tab1.col1 * col0 - ( col2 ) AS col2 FROM tab1 ---- -1136 -132 -697 query I rowsort SELECT 95 * tab0.col0 FROM tab0 ---- 2280 3325 8455 query I rowsort SELECT - + col0 * col2 - + col1 AS col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT DISTINCT + 79 * + col2 FROM tab1 AS cor0 ---- 4266 4503 7584 query I rowsort SELECT DISTINCT + col0 + 1 * + col1 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT ALL 98 - col2 * + cor0.col1 FROM tab2 AS cor0 ---- -1436 -548 -739 query I rowsort SELECT + ( + col2 ) * col0 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + ( + col1 ) + + col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT + cor0.col1 + - col2 AS col0 FROM tab0 cor0 ---- 53 9 96 query I rowsort SELECT col2 + + col1 * col2 AS col1 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT 5 * + 53 FROM tab1 AS cor0 ---- 265 265 265 query I rowsort SELECT + 10 + - col0 FROM tab0 AS cor0 ---- -14 -25 -79 query I rowsort SELECT ALL cor0.col2 + 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 558e6eb18f14d114557e48491080c21e query I rowsort SELECT - col1 * col1 + 35 FROM tab1 ---- -134 -641 -65 query I rowsort SELECT DISTINCT + col1 * 56 FROM tab2 cor0 ---- 1736 3304 952 query I rowsort SELECT col0 * cor0.col2 + + col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT DISTINCT - col0 + + tab1.col2 AS col0 FROM tab1 ---- -7 16 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5663 SELECT + ( tab0.col0 ) + - CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5663 SELECT + ( tab0.col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5664 SELECT DISTINCT + tab1.col2 DIV 2 FROM tab1, tab0, tab1 AS cor0 ---- 27 28 48 skipif mysql # not compatible query I rowsort label-5664 SELECT DISTINCT + tab1.col2 / 2 FROM tab1, tab0, tab1 AS cor0 ---- 27 28 48 query I rowsort SELECT DISTINCT col1 * + 23 FROM tab1 ---- 230 299 598 query I rowsort SELECT + col1 * - col2 + + col0 AS col0 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT ALL + tab0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 51 col1 FROM tab0, tab1 AS cor0 ---- 51 onlyif mysql # use DIV operator for integer division query I rowsort label-5669 SELECT ALL - col2 DIV 61 AS col0 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-5669 SELECT ALL - col2 / 61 AS col0 FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT DISTINCT + col0 * - col2 - col2 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- -2704 -4446 -918 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1, tab1 AS cor2 ---- 3645 values hashing to 51e2051aff75c58a5edaa314f1412983 query I rowsort SELECT + ( - ( cor0.col1 ) ) AS col2 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT - tab1.col2 AS col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT ALL - col0 + + ( col2 ) * + col2 * col2 FROM tab1 cor0 ---- 157461 185129 884656 onlyif mysql # use DIV operator for integer division query I rowsort label-5675 SELECT col2 + - CAST( col1 AS SIGNED ) * - col0 * CAST( - 55 AS SIGNED ) + col0 DIV 39 FROM tab2 AS cor0 ---- -11908 -253082 -73825 skipif mysql # not compatible query I rowsort label-5675 SELECT col2 + - CAST ( col1 AS INTEGER ) * - col0 * CAST ( - 55 AS INTEGER ) + col0 / 39 FROM tab2 AS cor0 ---- -11908 -253082 -73825 query I rowsort SELECT DISTINCT 60 FROM tab0, tab0 cor0 ---- 60 query I rowsort SELECT - cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT 16 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT - 0 FROM tab1, tab1 cor0, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to 1f117f467f45d8c6b7553e2e3c842942 skipif mysql # not compatible query I rowsort SELECT + CAST ( col2 AS REAL ) * col2 AS col0 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT - col1 * 10 AS col0 FROM tab2 AS cor0 ---- -170 -310 -590 query I rowsort SELECT - col0 * col2 * + col1 AS col1 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT 75 * + col2 FROM tab1 AS cor0 ---- 4050 4275 7200 query I rowsort SELECT col1 * col2 * + col0 AS col2 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT ALL ( - col0 ) * - 60 FROM tab1 AS cor0 ---- 180 3840 4800 query I rowsort SELECT + - cor0.col2 + - col0 + 56 FROM tab2 AS cor0 ---- -48 -61 22 query I rowsort SELECT + 69 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to 2810c3097fe4771e273cfff903357b40 query I rowsort SELECT + col2 - + col0 AS col0 FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT ALL - ( col0 ) * + cor0.col0 FROM tab0 AS cor0 ---- -1225 -576 -7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * cor0.col0 col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT - col2 + + col1 * col2 FROM tab2 cor0 ---- 1508 608 810 query I rowsort SELECT - col2 * 30 AS col2 FROM tab2 AS cor0 ---- -1140 -780 -810 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + - col2 col0 FROM tab1 ---- -16 -51 7 query I rowsort SELECT DISTINCT + 35 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 35 query I rowsort SELECT ALL 66 + - col0 FROM tab2 ---- -12 -13 59 query I rowsort SELECT - col1 * - col1 + 36 + cor0.col0 FROM tab1 AS cor0 ---- 200 285 715 onlyif mysql # use DIV operator for integer division query I rowsort label-5697 SELECT ALL 19 DIV col1 + + col2 * - col2 * - tab2.col1 + + col1 FROM tab2 ---- 22630 24566 39943 skipif mysql # not compatible query I rowsort label-5697 SELECT ALL 19 / col1 + + col2 * - col2 * - tab2.col1 + + col1 FROM tab2 ---- 22630 24566 39943 query I rowsort SELECT + + 68 + col0 * + 27 AS col0 FROM tab0 AS cor0 ---- 1013 2471 716 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5699 SELECT - col0 + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5699 SELECT - col0 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col2 + - cor0.col0 * + col0 AS col1 FROM tab1 AS cor0 ---- -4153 -63 -6496 query I rowsort SELECT DISTINCT col0 + - col2 * col0 FROM tab0 ---- -7209 -768 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 - col0 * 93 col0 FROM tab1 ---- -225 -5895 -7344 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * + col2 + - tab2.col1 * - col2 col2 FROM tab2 ---- -798 108 858 query I rowsort SELECT ALL col0 * tab1.col0 + 49 FROM tab1 ---- 4145 58 6449 query I rowsort SELECT ALL col0 * col2 + - col2 * - col2 * col2 FROM tab2 cor0 ---- 19604 19872 57874 query I rowsort SELECT ALL - + col2 * col2 * col1 + + col0 FROM tab0 AS cor0 ---- -611795 -62 -93630 query I rowsort SELECT - 12 AS col0 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0 query I rowsort SELECT DISTINCT tab1.col1 + 0 FROM tab1, tab2 AS cor0 ---- 10 13 26 query I rowsort SELECT ALL 56 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 9c4523312174730bbc525b9977aa99fa query I rowsort SELECT + 93 + 17 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ebfbd032a0a7b9ce9f54a2516c43134d query I rowsort SELECT DISTINCT + col2 + - ( - col0 ) * + col2 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT + 74 * - col0 + col1 FROM tab0 AS cor0 ---- -1690 -2493 -6495 query I rowsort SELECT ALL + + 4 * col2 FROM tab2 AS cor0 ---- 104 108 152 query I rowsort SELECT + ( col1 ) + + col0 - - col0 AS col1 FROM tab0 cor0 ---- 134 167 269 query I rowsort SELECT + 85 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7 query I rowsort SELECT ALL cor0.col2 AS col1 FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT - col1 + - col0 - col2 * + col2 FROM tab0 ---- -1199 -133 -6904 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5718 SELECT + CAST( NULL AS SIGNED ) * - col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5718 SELECT + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1 ---- 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5720 SELECT - CAST( 0 AS SIGNED ) * - col1 * + col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5720 SELECT - CAST ( 0 AS INTEGER ) * - col1 * + col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 71 * - col0 + col2 AS col0 FROM tab0 AS cor0 ---- -1671 -2484 -6237 query I rowsort SELECT DISTINCT + 24 * - col0 AS col1 FROM tab0 AS cor0 ---- -2136 -576 -840 query I rowsort SELECT - - 74 * + col2 AS col2 FROM tab2 AS cor0 ---- 1924 1998 2812 query I rowsort SELECT - col1 * col2 + - col1 * col1 FROM tab2 cor0 ---- -1798 -5015 -935 query I rowsort SELECT - col0 * - 25 AS col2 FROM tab0 AS cor0 ---- 2225 600 875 onlyif mysql # use DIV operator for integer division query I rowsort label-5726 SELECT 1 DIV + col1 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5726 SELECT 1 / + col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT 49 * + cor0.col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to c1beb6a8ee6c6b544bff474ec22e11d7 query I rowsort SELECT ALL - 76 + 34 FROM tab1 ---- -42 -42 -42 query I rowsort SELECT - col2 + 4 + - col1 FROM tab2 ---- -51 -54 -81 onlyif mysql # use DIV operator for integer division query I rowsort label-5730 SELECT DISTINCT - 90 DIV 70 col0 FROM tab2 cor0 ---- -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5730 SELECT DISTINCT - 90 / 70 col0 FROM tab2 cor0 ---- -1 query I rowsort SELECT - + col2 + col0 + - col2 AS col0 FROM tab1 AS cor0 ---- -105 -112 -50 query I rowsort SELECT ALL + 71 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to c1aace5d5fe27721cc925552513c85c0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 12 col0 FROM tab0, tab0 cor0 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 83 + + col2 col0 FROM tab2 ---- 109 110 121 query I rowsort SELECT DISTINCT + - col0 * col2 + 25 AS col1 FROM tab0 AS cor0 ---- -10 -7273 -767 query I rowsort SELECT + + ( col0 ) + - col1 * + col1 + col1 * - cor0.col1 FROM tab2 AS cor0 ---- -1915 -499 -6884 query I rowsort SELECT ALL + + 60 AS col0 FROM tab0 AS cor0 ---- 60 60 60 query I rowsort SELECT DISTINCT + 93 + + col1 AS col0 FROM tab2 AS cor0 ---- 110 124 152 query I rowsort SELECT DISTINCT + + 16 + col0 FROM tab2 AS cor0 ---- 23 94 95 query I rowsort SELECT + col2 * - col0 + ( + col2 + tab0.col2 ) * - col0 AS col1 FROM tab0 ---- -105 -21894 -2376 query I rowsort SELECT DISTINCT - - col0 * col0 * col0 FROM tab2 AS cor0 ---- 343 474552 493039 query I rowsort SELECT col1 - - col1 AS col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT + col0 * + col2 + col2 + col2 AS col1 FROM tab1 AS cor0 ---- 270 3762 7872 query I rowsort SELECT - + col2 * + col0 * - 83 + + col2 + + col0 AS col2 FROM tab2 AS cor0 ---- 15721 168428 249283 query I rowsort SELECT 46 AS col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 31818c9d4d325eb248735c97cb1dce39 query I rowsort SELECT DISTINCT 26 FROM tab0, tab2, tab1 cor0 ---- 26 query I rowsort SELECT DISTINCT + 35 AS col0 FROM tab0 cor0 ---- 35 query I rowsort SELECT col2 + cor0.col1 * col0 + + ( col1 ) * col1 FROM tab2 AS cor0 ---- 1205 1670 8109 query I rowsort SELECT ALL col1 * - col0 + col2 * + col2 FROM tab1 AS cor0 ---- 2609 2838 8176 onlyif mysql # use DIV operator for integer division query I rowsort label-5750 SELECT cor0.col1 DIV - 53 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5750 SELECT cor0.col1 / - 53 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL + cor0.col0 + 60 AS col0 FROM tab2 AS cor0 ---- 138 139 67 query I rowsort SELECT DISTINCT cor0.col0 + - 85 FROM tab0 AS cor0 ---- -50 -61 4 query I rowsort SELECT DISTINCT + col1 + - 47 AS col2 FROM tab1 AS cor0 ---- -21 -34 -37 query I rowsort SELECT ALL cor0.col0 * + 60 + col2 FROM tab1 AS cor0 ---- 234 3897 4896 query I rowsort SELECT DISTINCT cor0.col0 * col2 + col1 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT - col2 + 41 FROM tab1 AS cor0 ---- -13 -16 -55 onlyif mysql # use DIV operator for integer division query I rowsort label-5757 SELECT DISTINCT - col0 DIV - 46 + 93 * - col0 FROM tab1 AS cor0 ---- -279 -5951 -7439 skipif mysql # not compatible query I rowsort label-5757 SELECT DISTINCT - col0 / - 46 + 93 * - col0 FROM tab1 AS cor0 ---- -279 -5951 -7439 query I rowsort SELECT DISTINCT col2 * 25 AS col2 FROM tab1 AS cor0 ---- 1350 1425 2400 onlyif mysql # use DIV operator for integer division query I rowsort label-5759 SELECT DISTINCT + col1 DIV col0 + - col1 AS col2 FROM tab0 AS cor0 ---- -83 -90 -95 skipif mysql # not compatible query I rowsort label-5759 SELECT DISTINCT + col1 / col0 + - col1 AS col2 FROM tab0 AS cor0 ---- -83 -90 -95 query I rowsort SELECT ALL + + col1 * + col1 + + col1 * col2 AS col0 FROM tab2 AS cor0 ---- 1798 5015 935 query I rowsort SELECT ALL col2 + 86 FROM tab0 cor0 ---- 119 168 87 query I rowsort SELECT DISTINCT 84 * + col0 * + col1 + - col0 FROM tab2 AS cor0 ---- 112733 18221 386490 query I rowsort SELECT 28 * - col0 AS col1 FROM tab2 AS cor0 ---- -196 -2184 -2212 query I rowsort SELECT DISTINCT 88 * - col1 AS col2 FROM tab0 AS cor0 ---- -7568 -8008 -8536 query I rowsort SELECT ALL 11 + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 2927 3260 9227 query I rowsort SELECT + col2 + + col1 * - col0 * col2 AS col2 FROM tab2 AS cor0 ---- -119626 -50996 -5832 query I rowsort SELECT ALL cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT 4 AS col1 FROM tab1, tab2 AS cor0 ---- 4 query I rowsort SELECT DISTINCT + - cor0.col2 * - 66 + col0 * - col0 AS col2 FROM tab2 AS cor0 ---- -3733 -4368 1733 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5770 SELECT - - CAST( col0 AS SIGNED ) + col0 col0 FROM tab1 AS cor0 ---- 128 160 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5770 SELECT - - CAST ( col0 AS INTEGER ) + col0 col0 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT ALL + 64 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 60ab040e931c5c85db7ba19364eacc8e query I rowsort SELECT DISTINCT - + cor0.col0 * col1 + col2 * col1 FROM tab1 AS cor0 ---- -70 1326 208 query I rowsort SELECT ALL 21 AS col2 FROM tab0 ---- 21 21 21 query I rowsort SELECT ALL - + cor0.col2 * col0 + cor0.col0 * col1 AS col2 FROM tab0 AS cor0 ---- 1272 3360 801 query I rowsort SELECT - - ( cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT - 63 + col2 FROM tab1 cor0 ---- -6 -9 33 query I rowsort SELECT + col0 + col2 * 93 FROM tab1 AS cor0 ---- 5025 5365 9008 query I rowsort SELECT ALL - + 68 * - col1 AS col1 FROM tab0 AS cor0 ---- 5848 6188 6596 query I rowsort SELECT DISTINCT - col0 * - col2 + - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT ALL + + col1 * + col2 + col1 AS col1 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT - cor0.col2 + col0 * col0 + + col2 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT DISTINCT + col1 + + 60 AS col2 FROM tab0 AS cor0 ---- 146 151 157 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT - CAST ( 85 AS REAL ) * - col0 - col0 / + cor0.col1 col2 FROM tab2 AS cor0 ---- 595 6629 6711 query I rowsort SELECT DISTINCT - - 43 + col1 AS col1 FROM tab1 cor0 ---- 53 56 69 onlyif mysql # use DIV operator for integer division query I rowsort label-5785 SELECT + + 91 * col0 DIV + col1 + - col0 FROM tab0 AS cor0 ---- -3 0 1 skipif mysql # not compatible query I rowsort label-5785 SELECT + + 91 * col0 / + col1 + - col0 FROM tab0 AS cor0 ---- -3 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-5786 SELECT DISTINCT - 31 + col2 DIV + col2 FROM tab1 AS cor0 ---- -30 skipif mysql # not compatible query I rowsort label-5786 SELECT DISTINCT - 31 + col2 / + col2 FROM tab1 AS cor0 ---- -30 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 33 + col1 col0 FROM tab0 AS cor0 ---- 119 124 130 query I rowsort SELECT - 92 - col0 FROM tab1 AS cor0 ---- -156 -172 -95 query I rowsort SELECT ( - 83 ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 cor2 ---- 81 values hashing to 291feef3dca992d41fad4b2f7ab1ab9e query I rowsort SELECT DISTINCT + 34 * 55 * - col2 AS col0 FROM tab0 AS cor0 ---- -153340 -1870 -61710 query I rowsort SELECT - 52 + + col2 AS col2 FROM tab2 AS cor0 ---- -14 -25 -26 query I rowsort SELECT ( + col1 ) + col2 AS col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT - col1 * ( col1 ) AS col0 FROM tab1 AS cor0 ---- -100 -169 -676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5794 SELECT ALL + col2 - CAST( + col2 AS SIGNED ) * - col0 AS col0 FROM tab0 ---- 36 7380 825 skipif mysql # not compatible query I rowsort label-5794 SELECT ALL + col2 - CAST ( + col2 AS INTEGER ) * - col0 AS col0 FROM tab0 ---- 36 7380 825 query I rowsort SELECT ALL + col2 + + 54 * tab1.col2 AS col1 FROM tab1 ---- 2970 3135 5280 query I rowsort SELECT DISTINCT - col2 - - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -20 41 52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5797 SELECT ALL + + col2 * - 81 + - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5797 SELECT ALL + + col2 * - 81 + - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL ( - ( tab0.col0 ) ) * - 7 + 78 * - col2 AS col0 FROM tab0 ---- -2406 -5773 167 query I rowsort SELECT + + col2 + col2 * - 55 AS col0 FROM tab1 AS cor0 ---- -2916 -3078 -5184 query I rowsort SELECT + - ( col2 ) - + col0 FROM tab2 AS cor0 ---- -104 -117 -34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( + ( col2 ) ) * 4 col1 FROM tab1 ---- 216 228 384 query I rowsort SELECT DISTINCT - + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 ---- -7 -78 -79 query I rowsort SELECT DISTINCT + col0 + + col0 * + tab0.col2 FROM tab0 ---- 70 7387 816 query I rowsort SELECT DISTINCT 5 FROM tab0, tab2 cor0 ---- 5 onlyif mysql # use DIV operator for integer division query I rowsort label-5805 SELECT + cor0.col1 DIV + 42 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-5805 SELECT + cor0.col1 / + 42 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5806 SELECT - col1 * - col1 * CAST( 0 AS SIGNED ) FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5806 SELECT - col1 * - col1 * CAST ( 0 AS INTEGER ) FROM tab0 ---- 0 0 0 query I rowsort SELECT 58 * cor0.col1 AS col2 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 26293b55dcd6f7c0260c6a9d1d29ba63 query I rowsort SELECT 23 + + col2 FROM tab2 cor0 ---- 49 50 61 query I rowsort SELECT + - ( + cor0.col1 ) * col0 - + cor0.col1 * col0 FROM tab1 AS cor0 ---- -1280 -156 -2080 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + col1 - col0 col1 FROM tab0 AS cor0 ---- 2814 62 7373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor1.col0 col0 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1 ---- 81 values hashing to e28bf7f922650ca423ade3642ce0285b onlyif mysql # use DIV operator for integer division query I rowsort label-5812 SELECT - + 69 DIV - col0 AS col2 FROM tab1 AS cor0 ---- 0 1 23 skipif mysql # not compatible query I rowsort label-5812 SELECT - + 69 / - col0 AS col2 FROM tab1 AS cor0 ---- 0 1 23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5813 SELECT - CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5813 SELECT - CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - cor0.col2 - col0 FROM tab0 AS cor0 ---- -171 -36 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5815 SELECT - CAST( NULL AS DECIMAL ) / - col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5815 SELECT - CAST ( NULL AS REAL ) / - col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5816 SELECT ALL + col0 + 15 DIV col1 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-5816 SELECT ALL + col0 + 15 / col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT DISTINCT col0 + - 43 * col0 FROM tab2 ---- -294 -3276 -3318 onlyif mysql # use DIV operator for integer division query I rowsort label-5818 SELECT ALL cor0.col2 * - col0 + - col2 DIV col2 FROM tab1 AS cor0 ---- -163 -3649 -7681 skipif mysql # not compatible query I rowsort label-5818 SELECT ALL cor0.col2 * - col0 + - col2 / col2 FROM tab1 AS cor0 ---- -163 -3649 -7681 onlyif mysql # use DIV operator for integer division query I rowsort label-5819 SELECT col2 * col0 DIV + 17 AS col0 FROM tab2 ---- 11 119 176 skipif mysql # not compatible query I rowsort label-5819 SELECT col2 * col0 / + 17 AS col0 FROM tab2 ---- 11 119 176 query I rowsort SELECT DISTINCT + 91 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 91 onlyif mysql # use DIV operator for integer division query I rowsort label-5821 SELECT DISTINCT + col1 DIV cor0.col0 + - cor0.col1 * col0 - + col2 * 18 FROM tab0 AS cor0 ---- -2655 -3411 -9574 skipif mysql # not compatible query I rowsort label-5821 SELECT DISTINCT + col1 / cor0.col0 + - cor0.col1 * col0 - + col2 * 18 FROM tab0 AS cor0 ---- -2655 -3411 -9574 query I rowsort SELECT ( - 31 ) * col2 AS col1 FROM tab1 cor0 ---- -1674 -1767 -2976 query I rowsort SELECT ALL - - col2 - + 98 FROM tab2 cor0 ---- -60 -71 -72 query I rowsort SELECT DISTINCT 56 + 54 FROM tab1 AS cor0 ---- 110 query I rowsort SELECT + col0 * + cor0.col2 + col2 * cor0.col2 FROM tab0 AS cor0 ---- 14022 1881 36 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5826 SELECT ALL col1 / + CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5826 SELECT ALL col1 / + CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort SELECT ALL + + CAST ( col1 AS REAL ) * col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-5828 SELECT DISTINCT + col2 + - 13 DIV + col1 FROM tab1 AS cor0 ---- 54 56 95 skipif mysql # not compatible query I rowsort label-5828 SELECT DISTINCT + col2 + - 13 / + col1 FROM tab1 AS cor0 ---- 54 56 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * col1 + col1 * col0 col1 FROM tab0 AS cor0 ---- 16198 4128 6790 onlyif mysql # use DIV operator for integer division query I rowsort label-5830 SELECT DISTINCT + col2 * col1 DIV col1 + + cor0.col2 col2 FROM tab0 cor0 ---- 164 2 66 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5830 SELECT DISTINCT + col2 * col1 / col1 + + cor0.col2 col2 FROM tab0 cor0 ---- 164 2 66 query I rowsort SELECT DISTINCT + col0 * + ( col0 ) AS col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT DISTINCT - - ( col2 ) * col0 + ( + 44 ) FROM tab1 AS cor0 ---- 206 3692 7724 query I rowsort SELECT - - ( col1 ) + + col1 * - 2 AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 - - col2 * col1 col1 FROM tab0 ---- 132 2862 7551 query I rowsort SELECT DISTINCT tab0.col0 * ( - 25 ) * + col1 + + tab0.col0 FROM tab0 ---- -202386 -51576 -84840 query I rowsort SELECT DISTINCT + - 63 * + col1 - + ( + col0 ) FROM tab1 AS cor0 ---- -1641 -694 -899 query I rowsort SELECT + col2 * - col0 + - cor0.col2 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT DISTINCT - col2 + col2 * - col1 AS col2 FROM tab2 AS cor0 ---- -1560 -684 -864 query I rowsort SELECT DISTINCT - + 93 FROM tab0 cor0 ---- -93 query I rowsort SELECT DISTINCT col2 + cor0.col1 * - 10 AS col0 FROM tab0 AS cor0 ---- -827 -828 -969 query I rowsort SELECT ALL - 20 - + cor0.col0 * - 25 AS col1 FROM tab0 AS cor0 ---- 2205 580 855 query I rowsort SELECT + col2 * cor0.col0 * - 88 AS col0 FROM tab2 AS cor0 ---- -16632 -178464 -264176 query I rowsort SELECT + col2 * + col0 * 27 AS col2 FROM tab2 AS cor0 ---- 5103 54756 81054 query I rowsort SELECT 95 * - col0 AS col2 FROM tab2 AS cor0 ---- -665 -7410 -7505 query I rowsort SELECT ALL + ( 38 ) AS col2 FROM tab0 ---- 38 38 38 query I rowsort SELECT DISTINCT - cor1.col1 * - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ae10dfda2508149d338269366c35c584 onlyif mysql # use DIV operator for integer division query I rowsort label-5847 SELECT - tab1.col2 DIV col2 AS col2 FROM tab1 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5847 SELECT - tab1.col2 / col2 AS col2 FROM tab1 ---- -1 -1 -1 query I rowsort SELECT - 10 * - col0 AS col0 FROM tab0 AS cor0 ---- 240 350 890 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor1.col2 + tab0.col2 col1 FROM tab0, tab2, tab0 AS cor0, tab2 AS cor1 ---- 81 values hashing to 0085c979f2628a9efd3cd7acd0dd3539 query I rowsort SELECT col2 * - 96 FROM tab0 AS cor0 ---- -3168 -7872 -96 query I rowsort SELECT ALL - cor0.col0 * - ( col0 ) + col2 + 13 * + 78 FROM tab2 AS cor0 ---- 1090 7124 7293 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab0.col2 * col0 col0 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT 4 + + tab2.col1 FROM tab2 ---- 21 35 63 query I rowsort SELECT col2 * col0 + - tab2.col0 AS col2 FROM tab2 ---- 182 1950 2923 query I rowsort SELECT + 21 + - col0 * ( col0 ) FROM tab1 ---- -4075 -6379 12 query I rowsort SELECT DISTINCT tab1.col0 * - col2 AS col1 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT - col1 * ( + col0 ) AS col1 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - col0 + col1 * col2 AS col1 FROM tab2 ---- 1456 567 830 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5859 SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5859 SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT col2 * 7 + col0 * col2 FROM tab0 cor0 ---- 1023 42 7872 query I rowsort SELECT cor0.col0 * - cor0.col0 * + 25 AS col1 FROM tab2 AS cor0 ---- -1225 -152100 -156025 query I rowsort SELECT ALL + - col2 + col2 * - cor0.col2 FROM tab2 AS cor0 ---- -1482 -702 -756 query I rowsort SELECT - cor0.col2 - col1 * - col0 FROM tab0 AS cor0 ---- 2031 3394 8017 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + ( col1 * col2 + + col2 ) col2 FROM tab2 AS cor0 ---- 1501 667 833 query I rowsort SELECT + - col2 * ( + col2 ) + - col0 FROM tab2 AS cor0 ---- -1523 -736 -754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 * 83 * col0 col2 FROM tab2 AS cor0 ---- -15687 -168324 -249166 query I rowsort SELECT + 78 * tab1.col1 - col2 AS col1 FROM tab1 ---- 1974 723 918 onlyif mysql # use DIV operator for integer division query I rowsort label-5868 SELECT DISTINCT col0 + + col1 DIV - col2 + + ( + col1 ) FROM tab0 ---- 108 179 35 skipif mysql # not compatible query I rowsort label-5868 SELECT DISTINCT col0 + + col1 / - col2 + + ( + col1 ) FROM tab0 ---- 108 179 35 query I rowsort SELECT DISTINCT - col2 * - col0 * + col1 + + 16 * col1 FROM tab1 AS cor0 ---- 100048 36640 4628 query I rowsort SELECT DISTINCT - + 88 * - cor0.col1 + + col1 AS col1 FROM tab0 cor0 ---- 7654 8099 8633 query I rowsort SELECT ALL ( 41 ) FROM tab2 AS cor0 ---- 41 41 41 onlyif mysql # use DIV operator for integer division query I rowsort label-5872 SELECT col1 + col1 DIV col2 AS col1 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-5872 SELECT col1 + col1 / col2 AS col1 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-5873 SELECT - col2 * - col2 DIV - col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-5873 SELECT - col2 * - col2 / - col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT + cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT ALL - + 59 AS col0 FROM tab1 cor0 ---- -59 -59 -59 query I rowsort SELECT + 44 * col2 FROM tab0 AS cor0 ---- 1452 3608 44 query I rowsort SELECT + cor1.col0 FROM tab1, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT + 27 * col0 + + ( tab2.col2 ) AS col1 FROM tab2 ---- 2132 216 2171 query I rowsort SELECT ALL + 12 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 32 * col2 col2 FROM tab2 AS cor0 ---- -1216 -832 -864 query I rowsort SELECT ( - cor0.col0 ) * - 76 FROM tab2 AS cor0 ---- 532 5928 6004 query I rowsort SELECT DISTINCT - - ( col2 ) * - 75 AS col0 FROM tab2 AS cor0 ---- -1950 -2025 -2850 query I rowsort SELECT ALL col2 + + col2 + - col1 AS col0 FROM tab0 ---- -20 -95 73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 45 col0 FROM tab1 AS cor0 ---- -45 -45 -45 onlyif mysql # use DIV operator for integer division query I rowsort label-5885 SELECT ALL col0 + 37 + + col0 DIV tab0.col0 FROM tab0 ---- 127 62 73 skipif mysql # not compatible query I rowsort label-5885 SELECT ALL col0 + 37 + + col0 / tab0.col0 FROM tab0 ---- 127 62 73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 60 + + col2 col0 FROM tab0 cor0 ---- 142 61 93 query I rowsort SELECT ALL col0 * 42 * - col1 FROM tab0 ---- -142590 -340158 -86688 onlyif mysql # use DIV operator for integer division query I rowsort label-5888 SELECT DISTINCT - 99 DIV col1 AS col0 FROM tab2 AS cor0 ---- -1 -3 -5 skipif mysql # not compatible query I rowsort label-5888 SELECT DISTINCT - 99 / col1 AS col0 FROM tab2 AS cor0 ---- -1 -3 -5 query I rowsort SELECT 76 * + col0 FROM tab2 ---- 532 5928 6004 query I rowsort SELECT ALL - 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa query I rowsort SELECT ALL - ( col0 ) * + col0 + - col1 FROM tab1 AS cor0 ---- -35 -4106 -6413 query I rowsort SELECT ( col0 ) * - col1 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col1 + - col1 col2 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT cor0.col2 * col2 + - col1 AS col1 FROM tab0 AS cor0 ---- -96 1003 6633 query I rowsort SELECT + 92 * + col2 * - col0 AS col1 FROM tab1 AS cor0 ---- -14904 -335616 -706560 onlyif mysql # use DIV operator for integer division query I rowsort label-5896 SELECT col0 * cor0.col0 * 94 + col0 * + col0 DIV + col0 AS col1 FROM tab1 AS cor0 ---- 385088 601680 849 skipif mysql # not compatible query I rowsort label-5896 SELECT col0 * cor0.col0 * 94 + col0 * + col0 / + col0 AS col1 FROM tab1 AS cor0 ---- 385088 601680 849 query I rowsort SELECT ALL col1 - cor0.col2 AS col0 FROM tab0 cor0 ---- 53 9 96 query I rowsort SELECT + col1 * + col0 + - col1 AS col1 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT ALL + col0 * + col2 * + 38 AS col0 FROM tab0 AS cor0 ---- 1330 277324 30096 query I rowsort SELECT ALL + col1 + 74 * - 31 * - cor0.col0 + - 35 AS col2 FROM tab2 AS cor0 ---- 16054 178956 181208 query I rowsort SELECT ALL - col0 + col2 * col0 AS col2 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT DISTINCT - cor0.col1 * + col1 AS col0 FROM tab2 cor0 ---- -289 -3481 -961 query I rowsort SELECT + - col2 * 25 FROM tab2 AS cor0 ---- -650 -675 -950 query I rowsort SELECT DISTINCT col2 * - 90 FROM tab0 cor0 ---- -2970 -7380 -90 onlyif mysql # use DIV operator for integer division query I rowsort label-5905 SELECT col1 * col1 - + col2 DIV + col1 FROM tab0 AS cor0 ---- 7396 8281 9409 skipif mysql # not compatible query I rowsort label-5905 SELECT col1 * col1 - + col2 / + col1 FROM tab0 AS cor0 ---- 7396 8281 9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - ( - col1 ) col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + + col0 + 14 FROM tab2 AS cor0 ---- 21 92 93 query I rowsort SELECT + - 20 - col2 * col0 AS col1 FROM tab0 AS cor0 ---- -55 -7318 -812 query I rowsort SELECT ALL + ( col2 ) - - col1 FROM tab1 ---- 109 67 80 query I rowsort SELECT ( 1 ) AS col2 FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT - 98 - - col2 * 19 FROM tab2 AS cor0 ---- 396 415 624 query I rowsort SELECT - 22 - - cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 769404e1a65cab1647b1156a13500eea query I rowsort SELECT DISTINCT cor1.col1 * tab2.col2 * 87 + cor1.col1 * 46 FROM tab2, tab1 AS cor0, tab0 cor1 ---- 9 values hashing to a18d73a84606d2e8e80a04f2759bf5a0 query I rowsort SELECT ALL + - 87 * cor0.col1 FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab1 AS cor2 ---- 243 values hashing to 04b83138d7ae8d3d911c6f0b14e36638 query I rowsort SELECT + - cor0.col2 * ( cor0.col0 ) FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT + col1 * - 8 FROM tab1 AS cor0 ---- -104 -208 -80 query I rowsort SELECT col2 * + col2 + col1 AS col2 FROM tab2 ---- 1461 735 760 query I rowsort SELECT DISTINCT - cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- -7 -78 -79 query I rowsort SELECT DISTINCT - cor0.col2 * col2 + col1 FROM tab2 AS cor0 ---- -1427 -617 -698 query I rowsort SELECT ALL - ( 75 ) * + col1 - + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -6474 -6914 -7310 onlyif mysql # use DIV operator for integer division query I rowsort label-5921 SELECT - ( 34 ) DIV tab2.col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ab2a707b9c937c7ffb5bac28e19acedb skipif mysql # not compatible query I rowsort label-5921 SELECT - ( 34 ) / tab2.col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ab2a707b9c937c7ffb5bac28e19acedb query III rowsort SELECT ALL * FROM tab0 WHERE NOT - col1 - - col0 IN ( col0 * + col0 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE ( col1 + - col0 ) <= ( + col2 ) ---- 91 query I rowsort SELECT cor0.col2 + col0 * col0 AS col0 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT ALL col0 + - col0 - + col1 AS col1 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT ALL col2 * + col0 * cor0.col2 AS col0 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + cor0.col1 + + col0 IN ( col2 + col2 + col0 * - col2 ) ---- 17 31 59 query I rowsort SELECT col2 * + col2 + - col0 AS col0 FROM tab0 AS cor0 ---- -34 1065 6635 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 + + col1 + col1 col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT - col2 * - col0 + - col0 AS col0 FROM tab0 AS cor0 ---- 0 7209 768 onlyif mysql # use DIV operator for integer division query I rowsort label-5931 SELECT ALL col2 DIV col1 + col2 * + col1 + col0 * col1 * + col2 FROM tab2 ---- 121186 51682 6696 skipif mysql # not compatible query I rowsort label-5931 SELECT ALL col2 / col1 + col2 * + col1 + col0 * col1 * + col2 FROM tab2 ---- 121186 51682 6696 query I rowsort SELECT ALL col0 * + col1 + col1 AS col1 FROM tab2 AS cor0 ---- 1360 248 4661 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5933 SELECT ALL + col2 - cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5933 SELECT ALL + col2 - cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query IIIIIIIII rowsort SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT 3 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3e22859a313d85a6146c6df5f23d77cf query I rowsort SELECT + - col1 * + col0 + - col0 AS col1 FROM tab1 AS cor0 ---- -1120 -704 -81 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( col2 + col2 ) < NULL ---- query I rowsort SELECT - 81 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to bab7cb237ee73283089388c330f59598 query I rowsort SELECT - + col1 + - 39 AS col1 FROM tab1 cor0 ---- -49 -52 -65 query I rowsort SELECT DISTINCT - 12 * + col2 AS col0 FROM tab0 ---- -12 -396 -984 query I rowsort SELECT + col2 + + col2 + col1 AS col2 FROM tab2 ---- 111 85 93 query III rowsort SELECT ALL * FROM tab0 WHERE ( col0 - col1 ) NOT IN ( col0 * - col2 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT col0 - - col1 * - col2 AS col0 FROM tab2 ---- -1456 -567 -830 query III rowsort SELECT * FROM tab1 WHERE NOT tab1.col0 * + col1 + + col2 NOT IN ( col2 / col0 + + col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-5945 SELECT ALL + col1 DIV - col2 AS col0 FROM tab0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-5945 SELECT ALL + col1 / - col2 AS col0 FROM tab0 ---- -1 -2 -97 query I rowsort SELECT DISTINCT - col0 * + tab2.col0 + - col2 FROM tab2 WHERE ( NULL ) IN ( col1 * + col0 ) ---- query I rowsort SELECT DISTINCT + tab0.col0 AS col2 FROM tab0 WHERE col2 * col1 - col2 NOT BETWEEN NULL AND ( col0 ) ---- 24 35 89 query I rowsort SELECT + col1 + col0 + tab0.col1 * + col0 AS col0 FROM tab0 ---- 2174 3527 8279 onlyif mysql # use DIV operator for integer division query I rowsort label-5949 SELECT ALL col0 * + col2 DIV col2 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-5949 SELECT ALL col0 * + col2 / col2 FROM tab1 ---- 3 64 80 query I rowsort SELECT col1 - col0 * - col0 AS col0 FROM tab1 ---- 35 4106 6413 query III rowsort SELECT * FROM tab0 WHERE ( NULL ) IN ( + col2 + col0 * col2 ) ---- query III rowsort SELECT * FROM tab2 WHERE NULL IN ( col2 / - col2 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab2.col1 * - col2 col0 FROM tab2 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-5954 SELECT ALL + col0 DIV col2 - + col2 AS col1 FROM tab1 ---- -54 -56 -96 skipif mysql # not compatible query I rowsort label-5954 SELECT ALL + col0 / col2 - + col2 AS col1 FROM tab1 ---- -54 -56 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-5955 SELECT DISTINCT col1 DIV + col1 + tab0.col2 AS col2 FROM tab0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-5955 SELECT DISTINCT col1 / + col1 + tab0.col2 AS col2 FROM tab0 ---- 2 34 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * + tab2.col1 col2 FROM tab2 ---- -1534 -646 -837 query III rowsort SELECT ALL * FROM tab1 WHERE col0 NOT IN ( tab1.col2 * col0 * - tab1.col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN col1 * - col0 + col0 AND col0 ---- 78 59 26 79 17 38 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + col2 <> NULL ---- query I rowsort SELECT - col1 * - col0 * + col2 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT col0 * - col0 + - col1 FROM tab2 ---- -6143 -6258 -80 query I rowsort SELECT + + col1 * - 38 AS col2 FROM tab1 AS cor0 ---- -380 -494 -988 query I rowsort SELECT + - col1 * col1 - 36 AS col2 FROM tab1 AS cor0 ---- -136 -205 -712 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + ( - col2 ) * + col1 col1 FROM tab0 AS cor0 ---- -132 -2862 -7551 query I rowsort SELECT + col0 * + col1 + - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT cor0.col0 * + col1 - + ( col1 ) * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1054 1989 6136 onlyif mysql # use DIV operator for integer division query I rowsort label-5967 SELECT cor0.col0 + - col2 DIV cor0.col0 col0 FROM tab1 cor0 ---- -15 64 79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5967 SELECT cor0.col0 + - col2 / cor0.col0 col0 FROM tab1 cor0 ---- -15 64 79 query I rowsort SELECT col0 + - tab0.col1 * + col1 * + 23 AS col2 FROM tab0 ---- -170084 -190374 -216372 onlyif mysql # use DIV operator for integer division query I rowsort label-5969 SELECT DISTINCT tab0.col1 DIV col0 + 3 AS col1 FROM tab0 ---- 4 5 6 skipif mysql # not compatible query I rowsort label-5969 SELECT DISTINCT tab0.col1 / col0 + 3 AS col1 FROM tab0 ---- 4 5 6 query I rowsort SELECT DISTINCT + col2 * - 13 FROM tab0 cor0 ---- -1066 -13 -429 query I rowsort SELECT DISTINCT col0 * + col2 + col2 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT ALL - + col2 - ( - col1 ) AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-5973 SELECT DISTINCT - col0 + + col0 DIV - col0 FROM tab1 AS cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-5973 SELECT DISTINCT - col0 + + col0 / - col0 FROM tab1 AS cor0 ---- -4 -65 -81 query I rowsort SELECT ALL + 31 * + col2 * - col0 AS col0 FROM tab0 AS cor0 ---- -1085 -226238 -24552 query I rowsort SELECT ALL 62 * - 22 FROM tab2 AS cor0 ---- -1364 -1364 -1364 query I rowsort SELECT + - 47 * - ( - col1 * col0 ) AS col0 FROM tab0 AS cor0 ---- -159565 -380653 -97008 query I rowsort SELECT 90 + - col1 * + ( - 63 ) FROM tab2 AS cor0 ---- 1161 2043 3807 query I rowsort SELECT DISTINCT - tab2.col2 - 28 AS col1 FROM tab2, tab2 AS cor0 ---- -54 -55 -66 query I rowsort SELECT + ( - col0 ) * ( 1 ) AS col0 FROM tab2 AS cor0 ---- -7 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-5980 SELECT - + col2 + col0 DIV 59 AS col0 FROM tab1 AS cor0 ---- -54 -56 -95 skipif mysql # not compatible query I rowsort label-5980 SELECT - + col2 + col0 / 59 AS col0 FROM tab1 AS cor0 ---- -54 -56 -95 query I rowsort SELECT + col2 + ( - col1 ) * - col0 AS col1 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT ALL col1 * ( 40 ) AS col0 FROM tab2 AS cor0 ---- 1240 2360 680 onlyif mysql # use DIV operator for integer division query I rowsort label-5983 SELECT ALL ( - col1 ) * col1 DIV + col0 FROM tab0 ---- -268 -308 -93 skipif mysql # not compatible query I rowsort label-5983 SELECT ALL ( - col1 ) * col1 / + col0 FROM tab0 ---- -268 -308 -93 query I rowsort SELECT + col2 * + col1 * col0 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-5985 SELECT 88 * + col0 + + col1 DIV col2 FROM tab1 AS cor0 ---- 264 5632 7040 skipif mysql # not compatible query I rowsort label-5985 SELECT 88 * + col0 + + col1 / col2 FROM tab1 AS cor0 ---- 264 5632 7040 query I rowsort SELECT + 2 * + col2 AS col0 FROM tab2 ---- 52 54 76 onlyif mysql # use DIV operator for integer division query I rowsort label-5987 SELECT + + cor0.col0 DIV col0 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0 ---- 1090 2 6725 skipif mysql # not compatible query I rowsort label-5987 SELECT + + cor0.col0 / col0 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0 ---- 1090 2 6725 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( - col0 AS REAL ) - + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT ALL - + 40 - col2 FROM tab0 cor0 ---- -122 -41 -73 query I rowsort SELECT + - col0 + col2 * col1 FROM tab1 AS cor0 ---- 1168 1401 506 onlyif mysql # use DIV operator for integer division query I rowsort label-5991 SELECT + + col2 DIV - cor0.col1 - - col2 FROM tab1 AS cor0 ---- 52 52 89 skipif mysql # not compatible query I rowsort label-5991 SELECT + + col2 / - cor0.col1 - - col2 FROM tab1 AS cor0 ---- 52 52 89 query I rowsort SELECT + + ( col0 ) AS col1 FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT - 16 * col0 AS col0 FROM tab1 AS cor0 ---- -1024 -1280 -48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * + ( col2 ) * col2 col1 FROM tab2 ---- -114076 -5103 -52728 query I rowsort SELECT ( + 18 ) FROM tab1 ---- 18 18 18 query I rowsort SELECT + ( + col1 ) + 88 * col1 AS col1 FROM tab0 AS cor0 ---- 7654 8099 8633 query I rowsort SELECT DISTINCT - 14 FROM tab2, tab2 AS cor0 ---- -14 query I rowsort SELECT - 54 AS col1 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 71e27a12767d3a987ce05e4d6edad211 query I rowsort SELECT ALL - 70 + 51 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 0fbbff28a7b63c37b01cf369f9325662 query I rowsort SELECT 96 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 22c5141a629f0ef396738ee2c8be6303 query I rowsort SELECT + col2 * + 28 AS col0 FROM tab2 ---- 1064 728 756 query I rowsort SELECT + - 79 * + col2 AS col1 FROM tab0 AS cor0 ---- -2607 -6478 -79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6003 SELECT + CAST( cor0.col2 AS SIGNED ) * col0 * + ( 89 ) FROM tab1 AS cor0 ---- 14418 324672 683520 skipif mysql # not compatible query I rowsort label-6003 SELECT + CAST ( cor0.col2 AS INTEGER ) * col0 * + ( 89 ) FROM tab1 AS cor0 ---- 14418 324672 683520 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3 ---- 3645 values hashing to b34c9987c389223e07378cde8a36e94f query I rowsort SELECT DISTINCT + col1 * 77 FROM tab2 ---- 1309 2387 4543 onlyif mysql # use DIV operator for integer division query I rowsort label-6006 SELECT DISTINCT col2 + + 5 DIV 88 FROM tab1 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-6006 SELECT DISTINCT col2 + + 5 / 88 FROM tab1 ---- 54 57 96 query I rowsort SELECT - col2 * - ( col0 ) AS col1 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT + 12 * col2 * col2 + - ( - col2 ) AS col1 FROM tab0 ---- 13 13101 80770 query I rowsort SELECT 63 AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 query I rowsort SELECT tab0.col2 - 48 AS col1 FROM tab0 ---- -15 -47 34 query I rowsort SELECT DISTINCT - + ( 3 ) FROM tab0 cor0 ---- -3 query I rowsort SELECT ALL + 23 AS col0 FROM tab0, tab2 cor0 ---- 9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2 onlyif mysql # use DIV operator for integer division query I rowsort label-6013 SELECT ALL - 26 DIV - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-6013 SELECT ALL - 26 / - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT - - ( col1 ) + + col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT cor0.col1 * - col2 + - ( 89 ) + col2 FROM tab2 AS cor0 ---- -1597 -697 -899 query I rowsort SELECT + col0 + col0 + ( cor0.col2 ) FROM tab0 AS cor0 ---- 260 71 81 query I rowsort SELECT ALL col0 + - col1 * ( + 34 ) AS col1 FROM tab1 ---- -276 -362 -881 query I rowsort SELECT ALL - col1 + tab2.col2 + col1 FROM tab2 ---- 26 27 38 query I rowsort SELECT + col2 + + cor0.col2 + + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 1520 728 783 onlyif mysql # use DIV operator for integer division query I rowsort label-6020 SELECT col0 + + 47 DIV col1 AS col0 FROM tab1 AS cor0 ---- 4 68 83 skipif mysql # not compatible query I rowsort label-6020 SELECT col0 + + 47 / col1 AS col0 FROM tab1 AS cor0 ---- 4 68 83 onlyif mysql # use DIV operator for integer division query I rowsort label-6021 SELECT col2 DIV 74 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-6021 SELECT col2 / 74 FROM tab0 AS cor0 ---- 0 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-6022 SELECT + col2 DIV 51 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6022 SELECT + col2 / 51 FROM tab1 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-6023 SELECT - - col0 + 6 DIV - cor0.col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-6023 SELECT - - col0 + 6 / - cor0.col1 FROM tab0 AS cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + 25 * col1 col1 FROM tab2 cor0 ---- 1534 442 806 query I rowsort SELECT - cor0.col2 * - col2 + col2 + - col2 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT DISTINCT col2 * 37 AS col0 FROM tab0 AS cor0 ---- 1221 3034 37 query I rowsort SELECT ALL col2 * + ( col0 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL - + cor0.col0 + cor0.col0 * cor0.col0 AS col1 FROM tab0 cor0 ---- 1190 552 7832 query I rowsort SELECT cor0.col0 + col2 * 86 FROM tab0 AS cor0 ---- 121 2862 7141 query I rowsort SELECT DISTINCT + + col0 * + ( - 19 ) * - col2 AS col2 FROM tab1 AS cor0 ---- 145920 3078 69312 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6031 SELECT col1 + - CAST( NULL AS SIGNED ) * col1 * + col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6031 SELECT col1 + - CAST ( NULL AS INTEGER ) * col1 * + col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col2 * col2 + - col1 * col2 FROM tab2 AS cor0 ---- -108 -858 798 query I rowsort SELECT col0 + cor0.col2 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT ALL - ( - 51 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 onlyif mysql # use DIV operator for integer division query I rowsort label-6035 SELECT ALL + col1 * - col2 + col2 + - col2 DIV 26 FROM tab1 AS cor0 ---- -1155 -1352 -515 skipif mysql # not compatible query I rowsort label-6035 SELECT ALL + col1 * - col2 + col2 + - col2 / 26 FROM tab1 AS cor0 ---- -1155 -1352 -515 query I rowsort SELECT - ( 55 ) FROM tab0 AS cor0 ---- -55 -55 -55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6037 SELECT ALL - ( - col1 ) + col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6037 SELECT ALL - ( - col1 ) + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * - 8 AS col1 FROM tab1 AS cor0 ---- -432 -456 -768 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6039 SELECT ALL + - CAST( NULL AS SIGNED ) * col0 col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6039 SELECT ALL + - CAST ( NULL AS INTEGER ) * col0 col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 65 * col0 + - col2 AS col0 FROM tab2 AS cor0 ---- -482 -5096 -5173 query I rowsort SELECT DISTINCT - col1 + col0 * - col1 AS col0 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT DISTINCT - + col0 + + 18 AS col0 FROM tab1 AS cor0 ---- -46 -62 15 query I rowsort SELECT ALL col2 * + 69 + col2 AS col0 FROM tab0 AS cor0 ---- 2310 5740 70 query I rowsort SELECT + col2 + 89 * + col0 FROM tab0 ---- 2169 3116 8003 query I rowsort SELECT DISTINCT cor0.col2 + - col0 AS col1 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL - 16 + + col1 * col0 AS col0 FROM tab1 AS cor0 ---- 1024 62 624 query I rowsort SELECT + - cor0.col1 * - col1 - - col2 AS col0 FROM tab1 cor0 ---- 157 265 730 query I rowsort SELECT ALL + ( col1 ) * + col2 AS col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + cor0.col2 + + col0 + col2 AS col0 FROM tab2 AS cor0 ---- 130 155 61 query I rowsort SELECT - col2 * - cor0.col0 + + 67 * - col0 AS col1 FROM tab1 AS cor0 ---- -39 -640 2320 query I rowsort SELECT + + cor0.col0 * - col0 - + cor0.col0 * ( col2 + col0 ) FROM tab1 AS cor0 ---- -11840 -180 -20480 query I rowsort SELECT + col2 * col0 + 15 * + col0 FROM tab1 AS cor0 ---- 207 4608 8880 query I rowsort SELECT ALL cor0.col1 - col0 * + 48 FROM tab1 AS cor0 ---- -118 -3062 -3827 query I rowsort SELECT DISTINCT 19 + col2 + + 89 FROM tab1 AS cor0 ---- 162 165 204 query I rowsort SELECT DISTINCT + col1 * + col1 + 8 FROM tab2 AS cor0 ---- 297 3489 969 query I rowsort SELECT ALL + 70 * + col1 - + col1 FROM tab2 AS cor0 ---- 1173 2139 4071 query I rowsort SELECT ALL - col1 * - col2 + + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0 ---- 1079 470 728 query I rowsort SELECT ALL + cor0.col0 * col1 + + 66 FROM tab2 cor0 ---- 1409 283 4668 query I rowsort SELECT ALL - - col1 * + cor0.col2 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-6060 SELECT ALL - cor0.col0 + - col2 DIV - col0 - - col0 AS col2 FROM tab1 AS cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-6060 SELECT ALL - cor0.col0 + - col2 / - col0 - - col0 AS col2 FROM tab1 AS cor0 ---- 0 1 18 query I rowsort SELECT - col1 * - col2 - cor0.col0 FROM tab1 AS cor0 ---- 1168 1401 506 query I rowsort SELECT ALL + ( - tab2.col0 * - col0 ) FROM tab2 ---- 49 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * 5 col1 FROM tab1 AS cor0 ---- 130 50 65 query I rowsort SELECT 35 * col0 AS col1 FROM tab2 AS cor0 ---- 245 2730 2765 query I rowsort SELECT + col2 - - col0 * - col2 FROM tab0 cor0 ---- -34 -7216 -759 onlyif mysql # use DIV operator for integer division query I rowsort label-6066 SELECT - - ( + col1 ) DIV + col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-6066 SELECT - - ( + col1 ) / + col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6067 SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-6067 SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab2 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 98 col2 FROM tab2, tab2 cor0 ---- 9 values hashing to f9dee8c21116f1aed64ac5160e190809 query I rowsort SELECT DISTINCT tab2.col1 * 96 FROM tab2 ---- 1632 2976 5664 query I rowsort SELECT DISTINCT - ( 65 ) AS col0 FROM tab2 ---- -65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + + 52 col2 FROM tab0 AS cor0 ---- 134 53 85 query I rowsort SELECT cor0.col1 * + ( + col0 ) AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - cor0.col0 * - 3 FROM tab1 AS cor0 ---- 192 240 9 query I rowsort SELECT DISTINCT col2 - col1 * col1 AS col0 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT ALL - - col0 + col1 * 5 AS col0 FROM tab2 AS cor0 ---- 162 164 373 query I rowsort SELECT DISTINCT col0 * col0 + col2 + col0 FROM tab2 AS cor0 ---- 6188 6358 83 query I rowsort SELECT - cor0.col1 + - 77 AS col0 FROM tab2 AS cor0 ---- -108 -136 -94 query I rowsort SELECT ALL - col0 * + tab2.col0 + 63 AS col2 FROM tab2 ---- -6021 -6178 14 query I rowsort SELECT ALL col0 + - tab0.col0 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT + cor0.col0 + ( col1 ) * + col0 FROM tab2 cor0 ---- 1422 224 4680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * + 31 + + col0 col0 FROM tab2 AS cor0 ---- -1099 -728 -830 query I rowsort SELECT DISTINCT tab1.col2 + + tab1.col2 * - col1 AS col0 FROM tab1 ---- -1152 -1350 -513 query I rowsort SELECT - cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 skipif mysql # not compatible query I rowsort SELECT ALL + - col1 * CAST ( 63 AS REAL ) + - col1 FROM tab2 AS cor0 ---- -1088 -1984 -3776 query I rowsort SELECT + - cor0.col0 + 39 FROM tab2 AS cor0 ---- -39 -40 32 query I rowsort SELECT ALL - col0 * + col1 + - 78 * - col2 AS col0 FROM tab0 AS cor0 ---- -1703 -3317 510 query I rowsort SELECT ALL + 76 AS col0 FROM tab1 cor0 ---- 76 76 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6088 SELECT + CAST( + col0 AS SIGNED ) + col2 + - 48 * - col1 FROM tab0 AS cor0 ---- 4185 4539 4692 skipif mysql # not compatible query I rowsort label-6088 SELECT + CAST ( + col0 AS INTEGER ) + col2 + - 48 * - col1 FROM tab0 AS cor0 ---- 4185 4539 4692 onlyif mysql # use DIV operator for integer division query I rowsort label-6089 SELECT ALL + col2 DIV 54 AS col1 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6089 SELECT ALL + col2 / 54 AS col1 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6090 SELECT + col0 + + 97 DIV + col2 AS col1 FROM tab0 AS cor0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-6090 SELECT + col0 + + 97 / + col2 AS col1 FROM tab0 AS cor0 ---- 132 26 90 onlyif mysql # use DIV operator for integer division query I rowsort label-6091 SELECT + col0 + col1 * col2 DIV 41 FROM tab1 AS cor0 ---- 110 37 77 skipif mysql # not compatible query I rowsort label-6091 SELECT + col0 + col1 * col2 / 41 FROM tab1 AS cor0 ---- 110 37 77 query I rowsort SELECT ALL - + col2 + col1 * - col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT - 10 + col2 + col1 * - col0 FROM tab1 AS cor0 ---- -34 -593 -954 query I rowsort SELECT ALL - 20 FROM tab0, tab2 AS cor0 ---- 9 values hashing to f1cccb95c90889319e7a51e4ae9475bb query I rowsort SELECT col1 * + 42 AS col1 FROM tab1 ---- 1092 420 546 query I rowsort SELECT col1 * 51 AS col1 FROM tab2 ---- 1581 3009 867 query I rowsort SELECT ( + 78 ) AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 query I rowsort SELECT 60 * cor0.col0 + col0 * col2 FROM tab2 AS cor0 ---- 609 6708 7742 query I rowsort SELECT - col2 + + col1 + col1 FROM tab0 AS cor0 ---- 100 139 193 query I rowsort SELECT - 68 * col0 AS col2 FROM tab2 AS cor0 ---- -476 -5304 -5372 query I rowsort SELECT - + col2 + - 68 AS col2 FROM tab0 AS cor0 ---- -101 -150 -69 query I rowsort SELECT - col0 + 31 + + col0 * + col1 * - col0 AS col0 FROM tab1 AS cor0 ---- -206 -40993 -83249 query I rowsort SELECT - cor0.col1 AS col1 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT col0 * - 93 * + cor0.col0 + col2 AS col0 FROM tab1 AS cor0 ---- -380871 -595104 -783 query I rowsort SELECT + col1 + col0 * + 98 AS col0 FROM tab0 cor0 ---- 2438 3527 8813 onlyif mysql # use DIV operator for integer division query I rowsort label-6106 SELECT - col0 * col0 * + col1 - + col2 DIV 25 FROM tab1 AS cor0 ---- -236 -40962 -83203 skipif mysql # not compatible query I rowsort label-6106 SELECT - col0 * col0 * + col1 - + col2 / 25 FROM tab1 AS cor0 ---- -236 -40962 -83203 onlyif mysql # use DIV operator for integer division query I rowsort label-6107 SELECT ALL - col1 + + col0 * col0 DIV - 3 FROM tab1 AS cor0 ---- -1375 -2146 -29 skipif mysql # not compatible query I rowsort label-6107 SELECT ALL - col1 + + col0 * col0 / - 3 FROM tab1 AS cor0 ---- -1375 -2146 -29 query I rowsort SELECT ALL + 63 + - col0 AS col2 FROM tab1 AS cor0 ---- -1 -17 60 query I rowsort SELECT DISTINCT - + col2 * - col2 * + col2 FROM tab2 AS cor0 ---- 17576 19683 54872 query I rowsort SELECT - col0 + - col2 * 98 * - ( col0 * - tab0.col2 ) AS col0 FROM tab0 ---- -2561352 -3465 -58646817 query I rowsort SELECT DISTINCT col0 * col0 + + col1 AS col2 FROM tab0 AS cor0 ---- 1322 662 8012 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - cor0.col2 + col0 * - 98 col2 FROM tab1 AS cor0 ---- -240 -6215 -7744 query I rowsort SELECT ALL - - col0 * + col1 + + 88 AS col1 FROM tab2 AS cor0 ---- 1431 305 4690 query I rowsort SELECT - 14 + + cor0.col2 * 66 FROM tab0 cor0 ---- 2164 52 5398 query I rowsort SELECT ALL ( 82 + tab2.col1 ) FROM tab2 ---- 113 141 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 * col2 col0 FROM tab0 cor0 ---- -1 -1089 -6724 query I rowsort SELECT ALL - col0 + col1 * + 60 FROM tab2 AS cor0 ---- 1853 3462 941 onlyif mysql # use DIV operator for integer division query I rowsort label-6118 SELECT DISTINCT cor0.col0 + + 10 DIV 83 AS col0 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-6118 SELECT DISTINCT cor0.col0 + + 10 / 83 AS col0 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-6119 SELECT ALL col1 DIV 66 AS col0 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6119 SELECT ALL col1 / 66 AS col0 FROM tab0 AS cor0 ---- 1 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6120 SELECT ALL col1 + + CAST( - 75 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0 ---- 2009 2056 2867 skipif mysql # not compatible query I rowsort label-6120 SELECT ALL col1 + + CAST ( - 75 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0 ---- 2009 2056 2867 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6121 SELECT + col2 + - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6121 SELECT + col2 + - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col2 + + col0 * ( tab1.col2 ) * col2 + - col2 AS col1 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT 0 * col2 AS col1 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6124 SELECT DISTINCT - tab2.col1 + col2 DIV CAST( - col1 AS SIGNED ) + + col2 * + 31 AS col0 FROM tab2 ---- 1159 747 806 skipif mysql # not compatible query I rowsort label-6124 SELECT DISTINCT - tab2.col1 + col2 / CAST ( - col1 AS INTEGER ) + + col2 * + 31 AS col0 FROM tab2 ---- 1159 747 806 query I rowsort SELECT + 15 * + 47 FROM tab2 AS cor0 ---- 705 705 705 query I rowsort SELECT ALL + ( - 80 ) AS col1 FROM tab1 AS cor0 ---- -80 -80 -80 query I rowsort SELECT DISTINCT ( + 73 ) AS col1 FROM tab0 cor0 ---- 73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 88 * + cor0.col0 - col0 col0 FROM tab0 AS cor0 ---- 2088 3045 7743 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6129 SELECT DISTINCT - col2 * + 19 - col0 * + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6129 SELECT DISTINCT - col2 * + 19 - col0 * + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + - col0 + col1 * + col0 FROM tab1 AS cor0 ---- 576 75 960 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6131 SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + ( + col2 ) * + cor0.col1 * 92 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6131 SELECT DISTINCT - CAST ( NULL AS REAL ) + + ( + col2 ) * + cor0.col1 * 92 FROM tab1 cor0 ---- NULL query I rowsort SELECT ALL - cor0.col2 + - col0 * + col0 - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -4163 -6509 -89 query I rowsort SELECT ALL - - col1 * + 12 * col2 - - col2 AS col2 FROM tab2 AS cor0 ---- 10071 18434 7790 query I rowsort SELECT cor0.col1 + 78 FROM tab0 AS cor0 ---- 164 169 175 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + 91 col2 FROM tab1 ---- -5 34 37 query I rowsort SELECT 89 - 80 AS col1 FROM tab2 ---- 9 9 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6137 SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 23 * col0 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-6137 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 23 * col0 FROM tab2 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6138 SELECT - ( - col0 ) DIV col0 + - ( tab2.col1 ) * + tab2.col0 AS col1 FROM tab2 ---- -1342 -216 -4601 skipif mysql # not compatible query I rowsort label-6138 SELECT - ( - col0 ) / col0 + - ( tab2.col1 ) * + tab2.col0 AS col1 FROM tab2 ---- -1342 -216 -4601 query I rowsort SELECT ALL + tab1.col0 + + col1 AS col0 FROM tab1 ---- 29 74 93 query I rowsort SELECT ( - tab2.col1 ) + tab2.col2 * col0 + col1 * col0 AS col2 FROM tab2 ---- 375 4328 6571 query I rowsort SELECT + - col0 * col2 * col2 + - col1 * - ( col2 * + 63 ) FROM tab2 AS cor0 ---- -73378 43914 47628 query I rowsort SELECT DISTINCT - - col1 * - cor0.col2 + col1 AS col0 FROM tab1 cor0 ---- -1235 -1378 -560 query I rowsort SELECT col0 + col1 - col2 AS col2 FROM tab0 ---- 131 77 98 query I rowsort SELECT + col2 + - 44 * + tab2.col2 AS col0 FROM tab2 ---- -1118 -1161 -1634 query I rowsort SELECT ALL - 60 + + col1 * col2 AS col2 FROM tab2 ---- 1474 586 777 query I rowsort SELECT ALL col1 * + 46 + + col0 FROM tab0 ---- 3980 4275 4497 query I rowsort SELECT 9 + - 36 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 0259a67676b131a4843853be4811b775 query I rowsort SELECT + ( + col0 ) + - col2 AS col2 FROM tab1 ---- -16 -51 7 query I rowsort SELECT - 50 * + col2 * 31 FROM tab2 AS cor0 ---- -40300 -41850 -58900 onlyif mysql # use DIV operator for integer division query I rowsort label-6150 SELECT + col0 * - col0 - - col1 DIV - 93 FROM tab1 AS cor0 ---- -4096 -6400 -9 skipif mysql # not compatible query I rowsort label-6150 SELECT + col0 * - col0 - - col1 / - 93 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT tab2.col0 - - tab2.col2 AS col1 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 8a206af99264e378e55b667df888459e query I rowsort SELECT + col2 * col1 + col2 * col2 AS col2 FROM tab2 AS cor0 ---- 1566 2090 2210 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6153 SELECT ALL + 2 * - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6153 SELECT ALL + 2 * - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col0 * + col2 - ( + cor0.col2 ) FROM tab0 cor0 ---- -36 -7380 -825 query I rowsort SELECT DISTINCT + cor0.col2 * - col2 + + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -2862 -3192 -9120 onlyif mysql # use DIV operator for integer division query I rowsort label-6156 SELECT - col2 + col2 DIV + 75 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-6156 SELECT - col2 + col2 / + 75 FROM tab2 AS cor0 ---- -26 -27 -38 onlyif mysql # use DIV operator for integer division query I rowsort label-6157 SELECT + col0 + cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-6157 SELECT + col0 + cor0.col1 / col0 AS col2 FROM tab1 AS cor0 ---- 11 64 80 query I rowsort SELECT ALL + + ( - col1 ) - cor0.col0 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT + 95 + cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 8a49164087208715af0c98c853a78308 query I rowsort SELECT + col2 + 68 * + 71 FROM tab0 ---- 4829 4861 4910 query I rowsort SELECT DISTINCT - col2 * 39 FROM tab1 ---- -2106 -2223 -3744 query I rowsort SELECT DISTINCT 36 + - cor0.col2 FROM tab2 AS cor0 ---- -2 10 9 query I rowsort SELECT + + 51 + col0 FROM tab1 AS cor0 ---- 115 131 54 query I rowsort SELECT ALL col2 * + ( - col1 * 83 ) + - col2 * - col0 + 89 FROM tab1 AS cor0 ---- -116281 -43573 -95815 query I rowsort SELECT - ( + cor0.col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT cor0.col2 + 74 AS col1 FROM tab1 cor0 ---- 128 131 170 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6167 SELECT ALL - + CAST( + col2 AS SIGNED ) * - col2 FROM tab1 AS cor0 ---- 2916 3249 9216 skipif mysql # not compatible query I rowsort label-6167 SELECT ALL - + CAST ( + col2 AS INTEGER ) * - col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT ALL + ( col2 ) + - col2 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col1 * + 35 * tab2.col1 FROM tab2 ---- -10115 -121835 -33635 onlyif mysql # use DIV operator for integer division query I rowsort label-6170 SELECT DISTINCT + - ( - 75 ) DIV - col2 FROM tab0 AS cor0 ---- -2 -75 0 skipif mysql # not compatible query I rowsort label-6170 SELECT DISTINCT + - ( - 75 ) / - col2 FROM tab0 AS cor0 ---- -2 -75 0 query I rowsort SELECT ALL + col1 * 40 AS col0 FROM tab0 AS cor0 ---- 3440 3640 3880 query I rowsort SELECT DISTINCT - - 35 * - col2 FROM tab0 AS cor0 ---- -1155 -2870 -35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 32 col1 FROM tab0 ---- -32 -32 -32 query I rowsort SELECT + 98 * tab0.col0 + - 31 FROM tab0 ---- 2321 3399 8691 query I rowsort SELECT - col0 + cor0.col2 + 68 FROM tab0 AS cor0 ---- 34 61 77 query I rowsort SELECT + + col1 * - col1 * + col1 FROM tab0 AS cor0 ---- -636056 -753571 -912673 query I rowsort SELECT ALL - + 97 * col1 FROM tab2 AS cor0 ---- -1649 -3007 -5723 query I rowsort SELECT DISTINCT + 49 + col0 * + 49 FROM tab2 AS cor0 ---- 3871 392 3920 query I rowsort SELECT DISTINCT + - cor0.col0 * 24 AS col2 FROM tab1 cor0 ---- -1536 -1920 -72 query I rowsort SELECT col2 + 36 * - col0 FROM tab0 cor0 ---- -1259 -3122 -831 query I rowsort SELECT DISTINCT - - 42 AS col2 FROM tab2 AS cor0 ---- 42 query I rowsort SELECT ALL + cor0.col2 + + col1 * col2 FROM tab2 AS cor0 ---- 1560 684 864 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6183 SELECT DISTINCT - CAST( col0 AS SIGNED ) - col1 * col1 * 47 FROM tab1 AS cor0 ---- -31775 -4764 -8023 skipif mysql # not compatible query I rowsort label-6183 SELECT DISTINCT - CAST ( col0 AS INTEGER ) - col1 * col1 * 47 FROM tab1 AS cor0 ---- -31775 -4764 -8023 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6184 SELECT DISTINCT - CAST( + cor0.col1 AS SIGNED ) col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6184 SELECT DISTINCT - CAST ( + cor0.col1 AS INTEGER ) col1 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ALL 31 + 81 AS col2 FROM tab0 AS cor0 ---- 112 112 112 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6186 SELECT - CAST( col2 AS SIGNED ) * - col0 - col1 AS col0 FROM tab1 cor0 ---- 136 3638 7667 skipif mysql # not compatible query I rowsort label-6186 SELECT - CAST ( col2 AS INTEGER ) * - col0 - col1 AS col0 FROM tab1 cor0 ---- 136 3638 7667 query I rowsort SELECT - - 2 FROM tab0 cor0 ---- 2 2 2 query I rowsort SELECT + + 91 - 95 AS col1 FROM tab2 AS cor0 ---- -4 -4 -4 query I rowsort SELECT 80 + col2 FROM tab1 cor0 ---- 134 137 176 query I rowsort SELECT - - 37 * + col2 FROM tab0 AS cor0 ---- 1221 3034 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6191 SELECT DISTINCT CAST( 54 AS SIGNED ) AS col2 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 54 skipif mysql # not compatible query I rowsort label-6191 SELECT DISTINCT CAST ( 54 AS INTEGER ) AS col2 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 54 query I rowsort SELECT 78 * + col0 FROM tab0 ---- 1872 2730 6942 query I rowsort SELECT col1 * col1 + - col2 AS col0 FROM tab1 AS cor0 ---- 43 622 73 query I rowsort SELECT - 94 + - col0 AS col2 FROM tab2 AS cor0 ---- -101 -172 -173 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 52 col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 7f4ae30893ab330784829711032ae599 onlyif mysql # use DIV operator for integer division query I rowsort label-6196 SELECT ALL col0 DIV col1 + - col1 AS col0 FROM tab0 cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-6196 SELECT ALL col0 / col1 + - col1 AS col0 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT ALL 41 * + col1 * cor0.col2 + col2 * col0 * - cor0.col0 FROM tab1 AS cor0 ---- -210102 -563232 57078 query I rowsort SELECT - col0 + col1 * - col2 + - col2 AS col1 FROM tab1 ---- -1424 -1461 -691 query I rowsort SELECT col0 * + cor0.col2 * - col0 FROM tab1 cor0 ---- -233472 -486 -614400 query I rowsort SELECT - + 97 + col0 * cor0.col1 * - col1 AS col2 FROM tab2 AS cor0 ---- -22928 -271615 -6824 query I rowsort SELECT + ( 40 ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3 query I rowsort SELECT + ( col0 + + col2 ) * tab0.col2 FROM tab0 ---- 14022 1881 36 query I rowsort SELECT DISTINCT + col0 * - 98 * col0 - col1 FROM tab0 ---- -120147 -56534 -776349 query IIIIII rowsort SELECT * FROM tab2, tab2 AS cor0 WHERE ( NULL ) > NULL ---- skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( + 35 AS REAL ) * + col2 AS col1 FROM tab2 ---- 1330 910 945 query I rowsort SELECT + 56 * + col0 FROM tab1 ---- 168 3584 4480 query I rowsort SELECT + + cor0.col1 * - col2 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT + - ( col2 ) * + col2 + col1 * col2 FROM tab1 cor0 ---- -1512 -2679 -7968 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 4 + - cor0.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- -82 -87 -93 query I rowsort SELECT + col2 * cor0.col1 + + col0 + - col0 AS col1 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT ALL - cor0.col1 * ( col2 ) + - col2 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT DISTINCT - + cor0.col2 + + col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT - - col2 * + 15 FROM tab2 AS cor0 ---- 390 405 570 query I rowsort SELECT + - col0 - - 85 * - ( - col0 + col2 * - col1 ) AS col0 FROM tab2 AS cor0 ---- 136942 61546 71733 query I rowsort SELECT DISTINCT - + col1 * - 52 AS col2 FROM tab0 AS cor0 ---- 4472 4732 5044 query I rowsort SELECT col2 + col1 * - col2 + + col2 AS col1 FROM tab2 AS cor0 ---- -1482 -570 -783 onlyif mysql # use DIV operator for integer division query I rowsort label-6217 SELECT col1 DIV - 30 - col0 * + cor0.col2 col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6217 SELECT col1 / - 30 - col0 * + cor0.col2 col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT - col2 * col2 * + col0 + col0 * col2 + col0 * + col1 AS col1 FROM tab0 AS cor0 ---- -23280 -583039 3395 query I rowsort SELECT 30 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to da5de0c411a2c0f445400f1b63ea9f89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + ( + 21 ) + cor0.col2 * col2 col0 FROM tab0 AS cor0 ---- 1110 22 6745 query I rowsort SELECT DISTINCT + + 5 + 66 * col1 * + cor0.col2 + 47 AS col2 FROM tab1 AS cor0 ---- 37672 82420 92716 query I rowsort SELECT + 45 + + 16 + cor0.col2 FROM tab0 AS cor0 ---- 143 62 94 query I rowsort SELECT ALL col2 * 22 - - col2 FROM tab2 ---- 598 621 874 query I rowsort SELECT ALL 95 + - col2 FROM tab0 AS cor0 ---- 13 62 94 query I rowsort SELECT ALL 81 + - 79 * col1 FROM tab2 AS cor0 ---- -1262 -2368 -4580 query I rowsort SELECT ALL 84 AS col1 FROM tab0 AS cor0 ---- 84 84 84 query I rowsort SELECT DISTINCT + - 4 + col1 FROM tab0 AS cor0 ---- 82 87 93 query I rowsort SELECT DISTINCT - 25 + cor0.col2 * - col0 AS col0 FROM tab0 AS cor0 ---- -60 -7323 -817 query I rowsort SELECT ALL - + col1 + cor0.col0 AS col0 FROM tab2 cor0 ---- -24 19 62 query I rowsort SELECT ALL + + col2 + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT ALL - col1 + - ( col2 ) AS col1 FROM tab0 AS cor0 ---- -119 -173 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + - cor0.col0 col0 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT DISTINCT - + col1 + - col1 FROM tab1 cor0 ---- -20 -26 -52 query I rowsort SELECT - 82 + + col1 AS col0 FROM tab2 ---- -23 -51 -65 query I rowsort SELECT ALL col1 * + tab2.col1 AS col0 FROM tab2 ---- 289 3481 961 query I rowsort SELECT DISTINCT 19 * col2 * col2 AS col1 FROM tab1 ---- 175104 55404 61731 query I rowsort SELECT ALL - col2 + + ( 90 ) FROM tab1 AS cor0 ---- -6 33 36 query I rowsort SELECT DISTINCT + col2 * + ( 5 ) + col0 * - col1 AS col0 FROM tab1 cor0 ---- -355 -560 192 query I rowsort SELECT + col1 * - ( + 74 ) AS col2 FROM tab1 AS cor0 ---- -1924 -740 -962 onlyif mysql # use DIV operator for integer division query I rowsort label-6240 SELECT DISTINCT col0 * col2 + 80 DIV col2 + col2 AS col0 FROM tab0 AS cor0 ---- 116 7380 827 skipif mysql # not compatible query I rowsort label-6240 SELECT DISTINCT col0 * col2 + 80 / col2 + col2 AS col0 FROM tab0 AS cor0 ---- 116 7380 827 query I rowsort SELECT DISTINCT col0 * ( + col1 * - col1 ) + + col0 + - col1 AS col0 FROM tab2 AS cor0 ---- -22769 -271499 -6751 query I rowsort SELECT ALL - col1 * 9 - - col1 * - cor0.col2 FROM tab1 AS cor0 ---- -1365 -1638 -660 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * cor0.col1 + 82 col2 FROM tab1 cor0 ---- 182 251 758 onlyif mysql # use DIV operator for integer division query I rowsort label-6244 SELECT ALL col2 DIV - col1 + + col0 * tab1.col1 * + col0 FROM tab1 ---- 232 40955 83193 skipif mysql # not compatible query I rowsort label-6244 SELECT ALL col2 / - col1 + + col0 * tab1.col1 * + col0 FROM tab1 ---- 232 40955 83193 onlyif mysql # use DIV operator for integer division query I rowsort label-6245 SELECT ALL col2 + - col2 DIV - col0 FROM tab2 ---- 26 30 38 skipif mysql # not compatible query I rowsort label-6245 SELECT ALL col2 + - col2 / - col0 FROM tab2 ---- 26 30 38 onlyif mysql # use DIV operator for integer division query I rowsort label-6246 SELECT col0 DIV 88 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-6246 SELECT col0 / 88 FROM tab0 ---- 0 0 1 query I rowsort SELECT DISTINCT - col0 * - col0 - col1 FROM tab2 ---- 18 6025 6224 query I rowsort SELECT DISTINCT - tab0.col2 + ( - col1 * col2 ) FROM tab0 ---- -2871 -7544 -98 query I rowsort SELECT - col1 * col2 * - col2 AS col2 FROM tab0 ---- 611884 93654 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6250 SELECT CAST( 92 AS SIGNED ) col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6250 SELECT CAST ( 92 AS INTEGER ) col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * 71 col0 FROM tab1 AS cor0 ---- -213 -4544 -5680 query I rowsort SELECT + 66 + tab1.col2 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cff4e985e896c742ef337084305497ee query I rowsort SELECT col1 - 21 AS col2 FROM tab0 ---- 65 70 76 query I rowsort SELECT + ( ( tab1.col0 ) ) - + 16 FROM tab1 ---- -13 48 64 query I rowsort SELECT DISTINCT col0 + + col2 + - col0 AS col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL - 52 + 28 + + col1 * col2 AS col0 FROM tab1 ---- 1224 1380 546 query I rowsort SELECT ALL ( tab1.col0 ) + + col0 * 91 AS col1 FROM tab1 ---- 276 5888 7360 query I rowsort SELECT ALL - + 38 + col0 * + col0 AS col1 FROM tab2 cor0 ---- 11 6046 6203 onlyif mysql # use DIV operator for integer division query I rowsort label-6259 SELECT ALL 63 DIV 37 + col0 AS col2 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-6259 SELECT ALL 63 / 37 + col0 AS col2 FROM tab0 ---- 25 36 90 query I rowsort SELECT ALL - ( col2 ) * + col1 + ( - col0 + col2 ) * + 14 AS col1 FROM tab0 ---- -2712 -573 -7560 query I rowsort SELECT ALL - - col2 * col0 + + 21 * col0 AS col2 FROM tab0 AS cor0 ---- 1296 770 9167 query I rowsort SELECT - col2 * + col1 + 41 FROM tab0 AS cor0 ---- -2797 -56 -7421 query I rowsort SELECT ALL + 94 + - cor0.col0 AS col2 FROM tab1 AS cor0 ---- 14 30 91 query I rowsort SELECT ALL - + 44 AS col2 FROM tab0 AS cor0 ---- -44 -44 -44 query I rowsort SELECT ALL + + 75 * col1 * 88 FROM tab1 AS cor0 ---- 171600 66000 85800 query I rowsort SELECT ALL - 2 * + col0 AS col2 FROM tab2 AS cor0 ---- -14 -156 -158 query I rowsort SELECT + + 85 AS col2 FROM tab0 AS cor0 ---- 85 85 85 onlyif mysql # use DIV operator for integer division query I rowsort label-6268 SELECT ALL - cor0.col2 + + col1 DIV - cor0.col0 FROM tab1 AS cor0 ---- -57 -62 -96 skipif mysql # not compatible query I rowsort label-6268 SELECT ALL - cor0.col2 + + col1 / - cor0.col0 FROM tab1 AS cor0 ---- -57 -62 -96 query I rowsort SELECT ALL + ( col0 ) * + col2 + col1 FROM tab0 cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT + col0 - + col0 AS col2 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6271 SELECT ALL cor0.col2 DIV + cor0.col0 FROM tab1 AS cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-6271 SELECT ALL cor0.col2 / + cor0.col0 FROM tab1 AS cor0 ---- 0 1 18 query I rowsort SELECT + 15 * + cor0.col1 FROM tab2 AS cor0 ---- 255 465 885 query I rowsort SELECT - + 60 + col2 FROM tab2 AS cor0 ---- -22 -33 -34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6274 SELECT DISTINCT CAST( + col1 AS SIGNED ) col1 FROM tab0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6274 SELECT DISTINCT CAST ( + col1 AS INTEGER ) col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT - 86 * + col2 FROM tab0 ---- -2838 -7052 -86 query I rowsort SELECT 38 * + col2 AS col2 FROM tab2 ---- 1026 1444 988 query I rowsort SELECT - ( + tab2.col1 + col1 ) FROM tab2 ---- -118 -34 -62 query I rowsort SELECT - 45 * + col2 FROM tab2 ---- -1170 -1215 -1710 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - tab0.col0 col1 FROM tab0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT tab1.col1 + - col0 * - col2 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT ALL - col2 + col0 * col2 AS col0 FROM tab0 ---- 34 7216 759 query I rowsort SELECT - col2 + 85 * + 4 + + col2 AS col0 FROM tab2 ---- 340 340 340 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6283 SELECT CAST( NULL AS SIGNED ) / 19 + tab0.col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-6283 SELECT CAST ( NULL AS INTEGER ) / 19 + tab0.col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * 21 col0 FROM tab2 AS cor0 ---- -147 -1638 -1659 query I rowsort SELECT + + ( + 90 ) + - col1 FROM tab1 AS cor0 ---- 64 77 80 query I rowsort SELECT - ( 28 ) * col0 + - col1 * + col2 FROM tab1 AS cor0 ---- -1488 -2362 -3488 query I rowsort SELECT - col2 * col0 * col2 FROM tab2 cor0 ---- -114076 -5103 -52728 query I rowsort SELECT + col1 * + ( + cor0.col0 ) + + col1 AS col0 FROM tab2 cor0 ---- 1360 248 4661 query I rowsort SELECT + col1 - + col1 * col0 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT - - 73 * + 53 + col1 - - col0 FROM tab0 AS cor0 ---- 3979 4001 4049 query I rowsort SELECT DISTINCT 95 - 23 * col0 AS col2 FROM tab2 ---- -1699 -1722 -66 query I rowsort SELECT - col1 - - 79 AS col1 FROM tab1 ---- 53 66 69 onlyif mysql # use DIV operator for integer division query I rowsort label-6293 SELECT - col1 DIV col1 + col0 FROM tab0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-6293 SELECT - col1 / col1 + col0 FROM tab0 ---- 23 34 88 query I rowsort SELECT 9 * - col0 - - col1 FROM tab1 ---- -1 -566 -707 onlyif mysql # use DIV operator for integer division query I rowsort label-6295 SELECT col1 DIV - col2 - + col1 FROM tab0 ---- -194 -88 -92 skipif mysql # not compatible query I rowsort label-6295 SELECT col1 / - col2 - + col1 FROM tab0 ---- -194 -88 -92 onlyif mysql # use DIV operator for integer division query I rowsort label-6296 SELECT ALL + ( col2 ) - col0 DIV - 62 AS col0 FROM tab2 ---- 27 27 39 skipif mysql # not compatible query I rowsort label-6296 SELECT ALL + ( col2 ) - col0 / - 62 AS col0 FROM tab2 ---- 27 27 39 query I rowsort SELECT ALL - col0 * ( - col2 ) + - tab1.col2 * ( col0 ) * - 35 - col0 * + col1 * + ( 53 ) AS col2 FROM tab1 ---- 1698 221360 97408 query I rowsort SELECT + - col1 * - col0 + col0 * + col0 AS col2 FROM tab1 AS cor0 ---- 4736 7440 87 query I rowsort SELECT - 69 * + col2 * - col0 - - ( + col0 + + col0 ) AS col0 FROM tab1 AS cor0 ---- 11184 251840 530080 query I rowsort SELECT ALL + col2 * col1 * col0 AS col0 FROM tab1 AS cor0 ---- 36480 4212 99840 onlyif mysql # use DIV operator for integer division query I rowsort label-6301 SELECT - col0 DIV + col2 + 86 + + col0 * col1 AS col2 FROM tab1 AS cor0 ---- 1126 164 725 skipif mysql # not compatible query I rowsort label-6301 SELECT - col0 / + col2 + 86 + + col0 * col1 AS col2 FROM tab1 AS cor0 ---- 1126 164 725 query I rowsort SELECT DISTINCT 6 + col0 * 53 AS col2 FROM tab1 AS cor0 ---- 165 3398 4246 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + col0 * col1 col1 FROM tab2 AS cor0 ---- 1264 210 4524 onlyif mysql # use DIV operator for integer division query I rowsort label-6304 SELECT DISTINCT + ( col1 ) + 41 DIV col2 AS col0 FROM tab0 AS cor0 ---- 138 87 91 skipif mysql # not compatible query I rowsort label-6304 SELECT DISTINCT + ( col1 ) + 41 / col2 AS col0 FROM tab0 AS cor0 ---- 138 87 91 onlyif mysql # use DIV operator for integer division query I rowsort label-6305 SELECT + + col2 * col2 - + col0 DIV - 88 AS col2 FROM tab2 AS cor0 ---- 1444 676 729 skipif mysql # not compatible query I rowsort label-6305 SELECT + + col2 * col2 - + col0 / - 88 AS col2 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT + + 28 * col2 AS col1 FROM tab0 AS cor0 ---- 2296 28 924 query I rowsort SELECT - + col0 - - cor0.col2 * col1 AS col1 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT ALL 88 * + col1 FROM tab0 ---- 7568 8008 8536 query I rowsort SELECT ALL + + ( col2 ) + col2 AS col2 FROM tab1 cor0 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-6310 SELECT - col1 DIV - col0 - CAST( 14 AS SIGNED ) DIV - col1 FROM tab1 AS cor0 ---- 1 1 8 skipif mysql # not compatible query I rowsort label-6310 SELECT - col1 / - col0 - CAST ( 14 AS INTEGER ) / - col1 FROM tab1 AS cor0 ---- 1 1 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6311 SELECT DISTINCT + col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6311 SELECT DISTINCT + col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT col1 + col0 * ( col2 ) * 23 AS col2 FROM tab2 AS cor0 ---- 4378 46703 69063 query I rowsort SELECT - - cor0.col1 * - col2 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( col1 ) + - col2 + + cor0.col2 col0 FROM tab2 AS cor0 ---- -17 -31 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6315 SELECT ALL CAST( NULL AS DECIMAL ) + + col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6315 SELECT ALL CAST ( NULL AS REAL ) + + col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col2 * + 96 + col0 AS col1 FROM tab0 AS cor0 ---- 131 3192 7961 query I rowsort SELECT ALL - col2 * cor0.col2 - + 71 FROM tab0 AS cor0 ---- -1160 -6795 -72 query I rowsort SELECT ALL + - col1 * - 63 FROM tab1 AS cor0 ---- 1638 630 819 query I rowsort SELECT - + col0 + ( - col2 ) FROM tab1 AS cor0 ---- -121 -176 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6320 SELECT DISTINCT + cor0.col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6320 SELECT DISTINCT + cor0.col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 ---- NULL query I rowsort SELECT + col0 * 11 FROM tab2 cor0 ---- 77 858 869 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + + cor0.col2 + ( + col1 ) col1 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT ALL cor0.col2 + 42 * + ( - col1 ) - col2 FROM tab0 AS cor0 ---- -3612 -3822 -4074 query I rowsort SELECT 27 + col1 AS col1 FROM tab2 ---- 44 58 86 onlyif mysql # use DIV operator for integer division query I rowsort label-6325 SELECT + col0 DIV col1 + - ( 96 + - col2 * ( 30 ) ) FROM tab0 ---- -66 2364 894 skipif mysql # not compatible query I rowsort label-6325 SELECT + col0 / col1 + - ( 96 + - col2 * ( 30 ) ) FROM tab0 ---- -66 2364 894 query I rowsort SELECT - col0 * col0 + + col1 * col0 AS col1 FROM tab1 ---- -3456 -5360 69 query I rowsort SELECT 4 + tab2.col2 FROM tab2 ---- 30 31 42 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6328 SELECT + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6328 SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT col0 * col0 * - 30 FROM tab0 ---- -17280 -237630 -36750 query I rowsort SELECT - col1 * - 84 AS col0 FROM tab2 ---- 1428 2604 4956 query I rowsort SELECT DISTINCT cor0.col2 * + cor0.col2 + col2 * + col1 AS col2 FROM tab2 AS cor0 ---- 1566 2090 2210 query I rowsort SELECT DISTINCT + col0 + 15 + col0 * col2 FROM tab0 AS cor0 ---- 7402 831 85 query I rowsort SELECT DISTINCT - col1 + - cor0.col0 FROM tab0 cor0 ---- -110 -132 -180 query I rowsort SELECT ALL - - col1 * col2 + 89 + + col0 FROM tab2 AS cor0 ---- 1701 814 933 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6335 SELECT + + col0 - CAST( + 91 AS SIGNED ) FROM tab2 cor0 ---- -12 -13 -84 skipif mysql # not compatible query I rowsort label-6335 SELECT + + col0 - CAST ( + 91 AS INTEGER ) FROM tab2 cor0 ---- -12 -13 -84 query I rowsort SELECT ALL - col1 * + ( - col1 ) FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT - col2 + - col2 + - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -114 -78 -81 query I rowsort SELECT - - col2 * 78 + cor0.col0 - - col0 FROM tab0 AS cor0 ---- 148 2622 6574 query I rowsort SELECT ALL - col1 * 72 AS col0 FROM tab2 AS cor0 ---- -1224 -2232 -4248 query I rowsort SELECT DISTINCT + - col0 + 52 FROM tab0 AS cor0 ---- -37 17 28 query I rowsort SELECT + col0 * ( 24 ) - + col0 FROM tab2 AS cor0 ---- 161 1794 1817 query I rowsort SELECT ALL - col0 + col2 + - col0 * - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 1 7291 801 query I rowsort SELECT DISTINCT + cor0.col0 + - cor0.col1 AS col1 FROM tab0 cor0 ---- -2 -62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6344 SELECT DISTINCT + CAST( + col2 AS SIGNED ) * col0 + col1 + col2 col1 FROM tab2 ---- 2113 247 3057 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6344 SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * col0 + col1 + col2 col1 FROM tab2 ---- 2113 247 3057 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6345 SELECT DISTINCT + col2 / col2 + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-6345 SELECT DISTINCT + col2 / col2 + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 ---- NULL query I rowsort SELECT + + col1 * + col1 + + col2 AS col0 FROM tab0 cor0 ---- 7429 8363 9410 query I rowsort SELECT DISTINCT - 48 + col2 FROM tab1 AS cor0 ---- 48 6 9 query I rowsort SELECT + - col0 + - col0 * - col2 * - cor0.col1 FROM tab2 AS cor0 ---- -119730 -51113 -5866 query I rowsort SELECT DISTINCT + ( + col0 ) + - col2 * - cor0.col1 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT ALL + col1 * col1 + - cor0.col1 FROM tab1 AS cor0 ---- 156 650 90 query I rowsort SELECT ALL + 0 * + col2 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT 52 * + cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to ce5d9bc65d3e598ae463353dbc24c0b0 query I rowsort SELECT ALL - col2 + - col0 + - 23 FROM tab2 AS cor0 ---- -127 -140 -57 query I rowsort SELECT DISTINCT - - 90 * - col2 FROM tab0 cor0 ---- -2970 -7380 -90 query I rowsort SELECT ALL - + 51 + + col1 * 73 AS col0 FROM tab0 AS cor0 ---- 6227 6592 7030 query I rowsort SELECT + + ( col0 ) * 62 AS col2 FROM tab1 AS cor0 ---- 186 3968 4960 query I rowsort SELECT + + col1 * - col2 + - col0 * col2 FROM tab1 AS cor0 ---- -1566 -4218 -8928 query I rowsort SELECT DISTINCT cor0.col1 * cor0.col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + ( col2 ) + ( - col0 + - col0 ) AS col2 FROM tab1 cor0 ---- -64 -71 48 query I rowsort SELECT ALL col1 * + cor0.col1 + col0 * cor0.col0 AS col1 FROM tab0 AS cor0 ---- 10634 16202 7972 query I rowsort SELECT ALL - + 27 * - col1 AS col0 FROM tab1 AS cor0 ---- 270 351 702 onlyif mysql # use DIV operator for integer division query I rowsort label-6362 SELECT cor0.col1 * cor0.col0 DIV + col0 AS col2 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-6362 SELECT cor0.col1 * cor0.col0 / + col0 AS col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT col2 + 15 * 40 * col2 FROM tab2 AS cor0 ---- 15626 16227 22838 query I rowsort SELECT col1 + col2 * col2 AS col1 FROM tab2 cor0 ---- 1461 735 760 query I rowsort SELECT ALL - 53 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 2876418587c77a182d88db2907b0a51a query I rowsort SELECT DISTINCT + ( - col0 ) * - col1 * - 33 FROM tab1 ---- -21120 -2574 -34320 query I rowsort SELECT ALL + col1 + col0 - - col1 FROM tab0 AS cor0 ---- 196 229 271 onlyif mysql # use DIV operator for integer division query I rowsort label-6368 SELECT ALL + col0 + col2 DIV - col0 FROM tab2 AS cor0 ---- 4 78 79 skipif mysql # not compatible query I rowsort label-6368 SELECT ALL + col0 + col2 / - col0 FROM tab2 AS cor0 ---- 4 78 79 query I rowsort SELECT DISTINCT + col0 + col0 * cor0.col2 * + col0 FROM tab0 AS cor0 ---- 1260 19032 649611 query I rowsort SELECT 73 * 18 + col0 AS col1 FROM tab0 AS cor0 ---- 1338 1349 1403 query I rowsort SELECT + + 72 + + col2 FROM tab0 cor0 ---- 105 154 73 query I rowsort SELECT DISTINCT - 22 + - 56 FROM tab1 AS cor0 ---- -78 query I rowsort SELECT DISTINCT - col2 * - col1 + col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 15561 3492 4902 query I rowsort SELECT ALL - 52 * + 55 + col1 AS col0 FROM tab2 AS cor0 ---- -2801 -2829 -2843 onlyif mysql # use DIV operator for integer division query I rowsort label-6375 SELECT - 97 - col2 DIV col1 AS col0 FROM tab0 AS cor0 ---- -97 -97 -97 skipif mysql # not compatible query I rowsort label-6375 SELECT - 97 - col2 / col1 AS col0 FROM tab0 AS cor0 ---- -97 -97 -97 query I rowsort SELECT - - 95 - cor0.col2 * col0 AS col1 FROM tab2 AS cor0 ---- -1933 -2907 -94 query I rowsort SELECT ALL + col2 + - ( + col0 ) AS col2 FROM tab2 ---- -41 -52 20 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6378 SELECT cor0.col0 - - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6378 SELECT cor0.col0 - - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT + + 88 + - col1 * col0 FROM tab0 AS cor0 ---- -1976 -3307 -8011 query I rowsort SELECT - tab1.col2 - + 91 FROM tab1 ---- -145 -148 -187 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( 55 ) col0 FROM tab1 ---- 55 query I rowsort SELECT DISTINCT col2 * - col0 + cor0.col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT + col2 * + 39 + col1 * - 37 FROM tab2 ---- -1169 -94 853 query I rowsort SELECT + col0 + 59 AS col0 FROM tab0 AS cor0 ---- 148 83 94 query I rowsort SELECT - 47 * col0 AS col2 FROM tab0 AS cor0 ---- -1128 -1645 -4183 query I rowsort SELECT ALL - + col2 * + col0 + - col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT DISTINCT + - col2 * col2 * col2 FROM tab0 AS cor0 ---- -1 -35937 -551368 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * col0 * ( col1 ) col1 FROM tab1 ---- 13520 2028 6400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6389 SELECT DISTINCT - CAST( 71 AS SIGNED ) * col0 FROM tab0 ---- -1704 -2485 -6319 skipif mysql # not compatible query I rowsort label-6389 SELECT DISTINCT - CAST ( 71 AS INTEGER ) * col0 FROM tab0 ---- -1704 -2485 -6319 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6390 SELECT CAST( - col0 + col0 AS SIGNED ) * col1 AS col1 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6390 SELECT CAST ( - col0 + col0 AS INTEGER ) * col1 AS col1 FROM tab2 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 87 * col2 col2 FROM tab1 ---- 4698 4959 8352 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6392 SELECT CAST( - 60 AS SIGNED ) AS col2 FROM tab2 ---- -60 -60 -60 skipif mysql # not compatible query I rowsort label-6392 SELECT CAST ( - 60 AS INTEGER ) AS col2 FROM tab2 ---- -60 -60 -60 query I rowsort SELECT DISTINCT + 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 52 query I rowsort SELECT ALL ( - col2 ) * + 57 AS col2 FROM tab2 AS cor0 ---- -1482 -1539 -2166 query I rowsort SELECT DISTINCT - 90 * + col0 * - col0 AS col0 FROM tab2 cor0 ---- 4410 547560 561690 query I rowsort SELECT ALL + - 21 + + col1 FROM tab2 AS cor0 ---- -4 10 38 onlyif mysql # use DIV operator for integer division query I rowsort label-6397 SELECT DISTINCT - - col0 DIV + 57 FROM tab1 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-6397 SELECT DISTINCT - - col0 / + 57 FROM tab1 AS cor0 ---- 0 1 query I rowsort SELECT DISTINCT + cor0.col0 * ( - 88 ) FROM tab1 cor0 ---- -264 -5632 -7040 query I rowsort SELECT ALL - 3 * col2 * - col2 FROM tab1 ---- 27648 8748 9747 query I rowsort SELECT DISTINCT + 17 * + tab2.col1 FROM tab2 ---- 1003 289 527 query I rowsort SELECT - - col0 * 63 AS col0 FROM tab2 AS cor0 ---- 441 4914 4977 query I rowsort SELECT DISTINCT cor0.col1 - col1 AS col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + col2 * ( + cor0.col1 ) FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL + col1 * + ( col2 ) + cor0.col0 + - 57 FROM tab2 AS cor0 ---- 1555 668 787 query I rowsort SELECT ALL - col1 * col1 + - 21 AS col0 FROM tab1 AS cor0 ---- -121 -190 -697 query I rowsort SELECT + col1 * - 37 AS col2 FROM tab0 AS cor0 ---- -3182 -3367 -3589 query I rowsort SELECT ALL + cor0.col0 * ( + cor0.col1 ) FROM tab2 AS cor0 ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 + cor0.col2 - - ( col1 ) col2 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT 50 + col0 FROM tab1 ---- 114 130 53 query I rowsort SELECT DISTINCT 27 * + col2 FROM tab1 ---- 1458 1539 2592 query I rowsort SELECT - col0 + - cor0.col1 + col0 AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT col2 * - col0 * + col1 + col1 + + col1 * + col0 AS col1 FROM tab2 AS cor0 ---- -114991 -49674 -5611 query I rowsort SELECT + ( col0 ) + col0 * - ( 83 ) * - col1 + + col1 FROM tab0 AS cor0 ---- 171422 281917 672397 onlyif mysql # use DIV operator for integer division query I rowsort label-6414 SELECT - cor0.col1 DIV col0 col1 FROM tab0 AS cor0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6414 SELECT - cor0.col1 / col0 col1 FROM tab0 AS cor0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + - 25 * col1 col1 FROM tab0 AS cor0 ---- -2183 -2357 -2426 onlyif mysql # use DIV operator for integer division query I rowsort label-6416 SELECT + col2 * cor0.col2 DIV + 77 AS col2 FROM tab0 AS cor0 ---- 0 14 87 skipif mysql # not compatible query I rowsort label-6416 SELECT + col2 * cor0.col2 / + 77 AS col2 FROM tab0 AS cor0 ---- 0 14 87 query I rowsort SELECT - 37 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 395d44ccbce08828bc493e93ec3d9207 query I rowsort SELECT DISTINCT 56 * - col2 AS col0 FROM tab0 cor0 ---- -1848 -4592 -56 query I rowsort SELECT ALL 95 + col1 * - 4 AS col0 FROM tab2 AS cor0 ---- -141 -29 27 onlyif mysql # use DIV operator for integer division query I rowsort label-6420 SELECT 42 + + col1 DIV - ( + 6 ) col0 FROM tab1 AS cor0 ---- 38 40 41 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6420 SELECT 42 + + col1 / - ( + 6 ) col0 FROM tab1 AS cor0 ---- 38 40 41 query I rowsort SELECT ALL + 64 * col2 FROM tab0 ---- 2112 5248 64 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6422 SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6422 SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL col1 * 16 FROM tab0 ---- 1376 1456 1552 onlyif mysql # use DIV operator for integer division query I rowsort label-6424 SELECT DISTINCT + cor0.col0 DIV - col2 - - col0 * col1 AS col1 FROM tab0 cor0 ---- 2064 3360 8098 skipif mysql # not compatible query I rowsort label-6424 SELECT DISTINCT + cor0.col0 / - col2 - - col0 * col1 AS col1 FROM tab0 cor0 ---- 2064 3360 8098 query I rowsort SELECT DISTINCT - ( + 13 ) + + col1 * + ( 64 ) FROM tab2 AS cor0 ---- 1075 1971 3763 query I rowsort SELECT ALL - col0 + + col0 - col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL - 37 * + ( col0 ) AS col0 FROM tab0 AS cor0 ---- -1295 -3293 -888 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6428 SELECT - CAST( NULL AS SIGNED ) + 87 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6428 SELECT - CAST ( NULL AS INTEGER ) + 87 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 37 - - col2 AS col2 FROM tab0 cor0 ---- 119 38 70 query I rowsort SELECT ALL + + col1 + 37 FROM tab2 AS cor0 ---- 54 68 96 query I rowsort SELECT ALL + col0 + col1 * col2 AS col0 FROM tab0 AS cor0 ---- 132 2862 7551 onlyif mysql # use DIV operator for integer division query I rowsort label-6432 SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-6432 SELECT DISTINCT CAST ( + col0 AS INTEGER ) / cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT + + cor0.col2 + - 70 AS col0 FROM tab0 AS cor0 ---- -37 -69 12 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6434 SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 * - col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6434 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 * - col2 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( + cor0.col2 ) col1 FROM tab2 AS cor0 ---- -26 -27 -38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6436 SELECT ALL CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6436 SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 37 AS col1 FROM tab2, tab2 cor0, tab0, tab2 AS cor1 ---- 81 values hashing to b8def841e97863779a391f3a05d3eb92 query I rowsort SELECT ALL + 15 * col0 FROM tab2 AS cor0 ---- 105 1170 1185 query I rowsort SELECT DISTINCT - - cor0.col0 * cor0.col0 FROM tab1 cor0 ---- 4096 6400 9 query I rowsort SELECT DISTINCT ( + 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 44 query I rowsort SELECT ALL 16 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT ALL col1 * 59 + col0 AS col0 FROM tab2 ---- 1082 1836 3559 query I rowsort SELECT ALL + + col0 - + col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 + ( cor0.col0 ) FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT DISTINCT + cor0.col2 * cor0.col2 * col0 + + cor0.col0 * ( + col1 ) + + col0 * 29 AS col2 FROM tab1 AS cor0 ---- 210432 740640 8913 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6446 SELECT DISTINCT - tab0.col2 * CAST( NULL AS SIGNED ) FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-6446 SELECT DISTINCT - tab0.col2 * CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL query I rowsort SELECT + col0 * + 8 * col1 FROM tab1 ---- 5120 624 8320 onlyif mysql # use DIV operator for integer division query I rowsort label-6448 SELECT DISTINCT col2 + col0 DIV col1 AS col0 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-6448 SELECT DISTINCT col2 + col0 / col1 AS col0 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-6449 SELECT - + cor0.col2 + - col1 + 87 DIV + col0 AS col1 FROM tab1 AS cor0 ---- -108 -51 -66 skipif mysql # not compatible query I rowsort label-6449 SELECT - + cor0.col2 + - col1 + 87 / + col0 AS col1 FROM tab1 AS cor0 ---- -108 -51 -66 onlyif mysql # use DIV operator for integer division query I rowsort label-6450 SELECT ALL + cor0.col2 DIV 39 FROM tab1 AS cor0 ---- 1 1 2 skipif mysql # not compatible query I rowsort label-6450 SELECT ALL + cor0.col2 / 39 FROM tab1 AS cor0 ---- 1 1 2 query I rowsort SELECT - col2 + 90 * col2 AS col0 FROM tab0 AS cor0 ---- 2937 7298 89 query I rowsort SELECT DISTINCT + + cor0.col2 + - col1 * - 62 FROM tab1 AS cor0 ---- 1666 677 902 query I rowsort SELECT - col1 * 89 + col1 + cor0.col1 FROM tab1 AS cor0 ---- -1131 -2262 -870 query I rowsort SELECT - col0 * + 93 FROM tab1 AS cor0 ---- -279 -5952 -7440 query I rowsort SELECT DISTINCT + - col1 + + ( - col1 ) * 77 * + 21 FROM tab2 AS cor0 ---- -27506 -50158 -95462 query I rowsort SELECT DISTINCT - - cor0.col1 * 86 AS col0 FROM tab0 AS cor0 ---- 7396 7826 8342 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * + col1 + + col1 + + col1 col0 FROM tab2 cor0 ---- 1023 323 3599 query I rowsort SELECT - + ( - ( + col1 ) ) + + cor0.col2 * col0 FROM tab2 cor0 ---- 2087 220 3019 query I rowsort SELECT DISTINCT 87 * + col0 FROM tab0 cor0 ---- 2088 3045 7743 query I rowsort SELECT - cor0.col0 * col2 + + col0 FROM tab0 cor0 ---- -7209 -768 0 query I rowsort SELECT DISTINCT col0 + 26 FROM tab2 ---- 104 105 33 query I rowsort SELECT + cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 cor2 ---- 81 values hashing to e28bf7f922650ca423ade3642ce0285b query I rowsort SELECT col2 * col0 - col1 AS col0 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT - + 15 + cor0.col1 * - 22 AS col0 FROM tab0 AS cor0 ---- -1907 -2017 -2149 query I rowsort SELECT + + 43 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 query I rowsort SELECT col1 + col2 + col0 FROM tab1 ---- 131 189 83 query I rowsort SELECT DISTINCT 85 + tab2.col1 FROM tab2 ---- 102 116 144 query I rowsort SELECT 86 * + col0 FROM tab2 AS cor0 ---- 602 6708 6794 query I rowsort SELECT DISTINCT + - col2 * col0 + 5 FROM tab0 AS cor0 ---- -30 -7293 -787 query I rowsort SELECT ALL ( - col2 ) + col0 AS col1 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT - ( - col0 ) AS col2 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT col1 * - ( col0 ) * + col2 AS col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT + col0 * ( 39 ) + - cor0.col1 FROM tab2 cor0 ---- 242 2983 3064 query I rowsort SELECT ALL col1 - tab2.col0 * ( + col2 * tab2.col0 ) FROM tab2 ---- -1292 -158125 -237141 query I rowsort SELECT - col0 + col1 - + col1 AS col2 FROM tab0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-6476 SELECT col1 + ( col2 ) * - col1 + + col1 DIV - col2 AS col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 skipif mysql # not compatible query I rowsort label-6476 SELECT col1 + ( col2 ) * - col1 + + col1 / - col2 AS col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT - + cor0.col1 * 28 * - col0 FROM tab0 AS cor0 ---- 226772 57792 95060 query I rowsort SELECT ALL - col0 + col1 * tab2.col0 * col1 + + col2 FROM tab2 ---- 22790 271466 6747 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - ( col2 ) col0 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT 8 + col2 AS col0 FROM tab2 AS cor0 ---- 34 35 46 query I rowsort SELECT + cor0.col1 + + col2 * - col2 AS col0 FROM tab2 AS cor0 ---- -1427 -617 -698 query I rowsort SELECT ALL 33 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 76da8bc7cae18ecf856438f872430c80 query I rowsort SELECT DISTINCT - - tab1.col2 AS col2 FROM tab1, tab2, tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL + col1 * - col2 + + 43 - - col2 AS col1 FROM tab1 AS cor0 ---- -1109 -1307 -470 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab0.col1 * + ( tab0.col2 * col0 ) col1 FROM tab0 ---- -3395 -664118 -68112 query I rowsort SELECT + col1 * + 58 AS col1 FROM tab1 ---- 1508 580 754 query I rowsort SELECT - 55 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to b90e74bece5521b514096c5b6e105fde onlyif mysql # use DIV operator for integer division query I rowsort label-6488 SELECT - col1 DIV 2 AS col2 FROM tab2 AS cor0 ---- -15 -29 -8 skipif mysql # not compatible query I rowsort label-6488 SELECT - col1 / 2 AS col2 FROM tab2 AS cor0 ---- -15 -29 -8 query I rowsort SELECT col1 + col2 * - cor0.col0 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT + - col2 * + col0 + col0 AS col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-6491 SELECT + 0 DIV - col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6491 SELECT + 0 / - col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 * + 97 AS col1 FROM tab0 ---- 2328 3395 8633 query I rowsort SELECT ALL - col1 * - ( + col1 * - col2 ) AS col0 FROM tab1 ---- -16224 -36504 -5700 query I rowsort SELECT ALL col0 + 96 * + col1 FROM tab1 AS cor0 ---- 1024 1328 2499 query I rowsort SELECT + 97 + col0 AS col1 FROM tab0 AS cor0 ---- 121 132 186 query I rowsort SELECT - col0 * 3 + col1 AS col1 FROM tab1 cor0 ---- -182 -227 17 query I rowsort SELECT DISTINCT - col0 * + 46 + - col2 * col0 FROM tab1 AS cor0 ---- -11360 -300 -6592 query I rowsort SELECT DISTINCT + 47 + col0 * - col1 AS col0 FROM tab0 cor0 ---- -2017 -3348 -8052 query I rowsort SELECT ALL - 98 + + col0 + - col1 * col1 AS col1 FROM tab0 cor0 ---- -7470 -8290 -9472 query I rowsort SELECT ALL - ( - tab1.col0 ) FROM tab1 ---- 3 64 80 query I rowsort SELECT + col2 * + 45 + tab2.col1 * + col0 AS col0 FROM tab2 ---- 1432 3053 5772 query I rowsort SELECT ALL ( tab1.col2 + - col1 ) AS col0 FROM tab1 ---- 28 47 83 query I rowsort SELECT DISTINCT - col2 + - col2 + col0 * - col0 * col2 AS col0 FROM tab2 AS cor0 ---- -1377 -158236 -237234 onlyif mysql # use DIV operator for integer division query I rowsort label-6504 SELECT ALL 57 DIV + col0 AS col2 FROM tab1 ---- 0 0 19 skipif mysql # not compatible query I rowsort label-6504 SELECT ALL 57 / + col0 AS col2 FROM tab1 ---- 0 0 19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + cor0.col1 col0 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT - 46 + col1 * tab0.col2 AS col1 FROM tab0 ---- 2792 51 7416 query I rowsort SELECT DISTINCT + cor0.col1 FROM tab1, tab2 AS cor0, tab1 cor1 ---- 17 31 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6508 SELECT CAST( NULL AS SIGNED ) + 12 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6508 SELECT CAST ( NULL AS INTEGER ) + 12 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6509 SELECT DISTINCT + + col1 - CAST( 60 AS SIGNED ) FROM tab1 AS cor0 ---- -34 -47 -50 skipif mysql # not compatible query I rowsort label-6509 SELECT DISTINCT + + col1 - CAST ( 60 AS INTEGER ) FROM tab1 AS cor0 ---- -34 -47 -50 query I rowsort SELECT + + col1 * - 95 - - col0 FROM tab0 AS cor0 ---- -8146 -8556 -9180 query I rowsort SELECT - col1 + + 29 AS col0 FROM tab2 AS cor0 ---- -2 -30 12 query I rowsort SELECT DISTINCT col2 * - 17 + - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1476 -18 -594 query I rowsort SELECT DISTINCT col0 - - col2 * + col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT + tab2.col2 + col2 * col2 + - col2 AS col1 FROM tab2 ---- 1444 676 729 query I rowsort SELECT DISTINCT col1 - - tab0.col1 * col0 AS col2 FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT - tab2.col2 - - col0 AS col0 FROM tab2 ---- -20 41 52 query I rowsort SELECT DISTINCT col2 - - col2 * col0 AS col1 FROM tab1 ---- 216 3705 7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab2.col2 * - col1 col2 FROM tab2 ---- -1534 -646 -837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6519 SELECT - col1 + CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6519 SELECT - col1 + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + cor0.col2 * - 22 + - col1 AS col1 FROM tab2 AS cor0 ---- -625 -631 -853 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * col1 - col0 * col1 col0 FROM tab1 AS cor0 ---- -540 -871 598 onlyif mysql # use DIV operator for integer division query I rowsort label-6522 SELECT DISTINCT + + col2 * col2 DIV col0 FROM tab2 AS cor0 ---- 104 18 8 skipif mysql # not compatible query I rowsort label-6522 SELECT DISTINCT + + col2 * col2 / col0 FROM tab2 AS cor0 ---- 104 18 8 query I rowsort SELECT + cor0.col1 * - col1 + col0 FROM tab2 cor0 ---- -210 -3403 -954 query I rowsort SELECT col1 - col2 * 70 FROM tab2 AS cor0 ---- -1761 -1859 -2643 query I rowsort SELECT col2 * 1 AS col1 FROM tab1 AS cor0 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-6526 SELECT + cor0.col1 + - col1 DIV col2 + + 56 * - col0 FROM tab1 cor0 ---- -142 -3574 -4467 skipif mysql # not compatible query I rowsort label-6526 SELECT + cor0.col1 + - col1 / col2 + + 56 * - col0 FROM tab1 cor0 ---- -142 -3574 -4467 query I rowsort SELECT + 61 * col0 + 66 + col2 AS col0 FROM tab2 AS cor0 ---- 4850 4923 520 query I rowsort SELECT ALL + 23 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 1978 2093 2231 query I rowsort SELECT DISTINCT - - 48 + col0 AS col0 FROM tab0 AS cor0 ---- 137 72 83 query I rowsort SELECT + col2 + col2 + + col2 FROM tab2 AS cor0 ---- 114 78 81 query I rowsort SELECT ALL + col0 + + col1 * - 34 + + col1 * + col1 * + col1 AS col2 FROM tab2 AS cor0 ---- 203451 28744 4414 query I rowsort SELECT ALL - + col0 * col1 + - col0 * cor0.col0 AS col1 FROM tab0 AS cor0 ---- -16020 -2640 -4620 query I rowsort SELECT ALL - - col2 + + col1 * + 38 AS col1 FROM tab1 AS cor0 ---- 1042 437 590 query I rowsort SELECT + - col1 * col1 * + col0 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT DISTINCT - - col0 * 26 AS col2 FROM tab2 cor0 ---- 182 2028 2054 query I rowsort SELECT ALL - - col0 + - 33 AS col0 FROM tab2 AS cor0 ---- -26 45 46 query I rowsort SELECT col2 * col1 * + 1 + col2 * - 15 AS col2 FROM tab2 AS cor0 ---- 1144 432 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + 54 col0 FROM tab2 AS cor0 ---- -5 23 37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 * + cor0.col1 col1 FROM tab2 AS cor0 ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col1 + - col2 col2 FROM tab2 AS cor0 ---- -21 33 4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6541 SELECT col1 * + CAST( NULL AS SIGNED ) + col1 * + col1 col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6541 SELECT col1 * + CAST ( NULL AS INTEGER ) + col1 * + col1 col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 + col1 + + col2 FROM tab1 ---- 124 134 205 query I rowsort SELECT - cor0.col0 - 40 FROM tab2 AS cor0 ---- -118 -119 -47 query I rowsort SELECT ALL + 22 + - col0 * col1 AS col2 FROM tab1 AS cor0 ---- -1018 -56 -618 query I rowsort SELECT + - 75 - - 95 * + cor0.col2 FROM tab1 AS cor0 ---- 5055 5340 9045 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6546 SELECT - CAST( NULL AS DECIMAL ) - + ( + col0 ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6546 SELECT - CAST ( NULL AS REAL ) - + ( + col0 ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + + 22 FROM tab2 AS cor0 ---- 22 query I rowsort SELECT + 17 * - cor0.col1 AS col1 FROM tab1 AS cor0 ---- -170 -221 -442 onlyif mysql # use DIV operator for integer division query I rowsort label-6549 SELECT ALL + col1 DIV col2 + col1 AS col2 FROM tab0 cor0 ---- 194 88 92 skipif mysql # not compatible query I rowsort label-6549 SELECT ALL + col1 / col2 + col1 AS col2 FROM tab0 cor0 ---- 194 88 92 query I rowsort SELECT - 95 + col0 + - col2 AS col1 FROM tab1 cor0 ---- -111 -146 -88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6551 SELECT - CAST( NULL AS SIGNED ) + 16 * col1 + + col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6551 SELECT - CAST ( NULL AS INTEGER ) + 16 * col1 + + col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( 54 ) FROM tab1 AS cor0 ---- -54 query I rowsort SELECT ALL + col2 * - col0 + + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT ALL - ( + ( + col0 ) ) * col2 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT + col0 + - 92 + - col1 FROM tab0 AS cor0 ---- -154 -94 query I rowsort SELECT col1 * 28 - col0 AS col2 FROM tab1 AS cor0 ---- 216 284 725 onlyif mysql # use DIV operator for integer division query I rowsort label-6557 SELECT DISTINCT 77 DIV col2 + + col0 * col1 AS col2 FROM tab0 AS cor0 ---- 2066 3472 8099 skipif mysql # not compatible query I rowsort label-6557 SELECT DISTINCT 77 / col2 + + col0 * col1 AS col2 FROM tab0 AS cor0 ---- 2066 3472 8099 query I rowsort SELECT DISTINCT 41 * - col1 * + col2 + + col2 FROM tab1 AS cor0 ---- -23313 -51072 -57510 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6559 SELECT ALL + CAST( NULL AS SIGNED ) - - cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6559 SELECT ALL + CAST ( NULL AS INTEGER ) - - cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - 94 * + col1 * + col2 + - 70 FROM tab2 ---- -144266 -60794 -78748 query I rowsort SELECT - col1 + + col1 * 86 FROM tab1 AS cor0 ---- 1105 2210 850 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 48 + - col0 col0 FROM tab1 ---- -16 -32 45 query I rowsort SELECT - tab1.col2 + + col0 + - col2 AS col0 FROM tab1 ---- -105 -112 -50 query I rowsort SELECT + 42 + - col0 * col2 + - col1 FROM tab0 ---- -7347 -836 -90 query I rowsort SELECT 5 * + col2 FROM tab2 ---- 130 135 190 query I rowsort SELECT ( + col1 ) + + col2 * 19 FROM tab0 ---- 116 1649 713 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6567 SELECT ( - tab1.col1 ) + tab1.col2 * + col2 + + ( col2 ) * - CAST( + col2 * - col0 AS SIGNED ) AS col2 FROM tab1 ---- 11638 211175 746483 skipif mysql # not compatible query I rowsort label-6567 SELECT ( - tab1.col1 ) + tab1.col2 * + col2 + + ( col2 ) * - CAST ( + col2 * - col0 AS INTEGER ) AS col2 FROM tab1 ---- 11638 211175 746483 query I rowsort SELECT col0 + 69 * + col2 AS col2 FROM tab0 ---- 104 2301 5747 query I rowsort SELECT ALL 76 - + cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 38fa8c0737ab678941452689f41ab988 query I rowsort SELECT - 20 + - col2 - ( + col2 + col0 ) FROM tab1 AS cor0 ---- -131 -198 -292 query I rowsort SELECT DISTINCT + cor0.col0 * - col0 + col0 + col2 FROM tab0 AS cor0 ---- -1189 -519 -7750 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6572 SELECT + col2 - - col2 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- 1122 2 6806 skipif mysql # not compatible query I rowsort label-6572 SELECT + col2 - - col2 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT 1 * tab0.col0 FROM tab0 ---- 24 35 89 query I rowsort SELECT ALL col2 * + ( 84 ) FROM tab2 ---- 2184 2268 3192 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6575 SELECT + col2 + CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab0 ---- -2805 -7380 -96 skipif mysql # not compatible query I rowsort label-6575 SELECT + col2 + CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab0 ---- -2805 -7380 -96 query I rowsort SELECT 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 onlyif mysql # use DIV operator for integer division query I rowsort label-6577 SELECT ALL + - col0 DIV col2 AS col1 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-6577 SELECT ALL + - col0 / col2 AS col1 FROM tab0 AS cor0 ---- -1 -35 0 query I rowsort SELECT DISTINCT - + col1 + + col0 * - col1 FROM tab1 cor0 ---- -104 -1053 -650 query I rowsort SELECT - cor0.col0 * - ( - col0 ) * + col1 AS col1 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT - 86 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1 ---- -86 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6581 SELECT ALL CAST( - col2 AS SIGNED ) + col2 * CAST( NULL AS SIGNED ) + 76 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6581 SELECT ALL CAST ( - col2 AS INTEGER ) + col2 * CAST ( NULL AS INTEGER ) + 76 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL ( - 62 ) * col1 + cor0.col1 FROM tab1 AS cor0 ---- -1586 -610 -793 query I rowsort SELECT - ( 62 ) * + col1 FROM tab0 AS cor0 ---- -5332 -5642 -6014 query I rowsort SELECT DISTINCT - 60 FROM tab1, tab0 AS cor0 ---- -60 query I rowsort SELECT ALL ( 35 + + col0 ) AS col1 FROM tab0 ---- 124 59 70 query I rowsort SELECT - + ( col0 ) * col1 * - col1 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT + col2 * 55 FROM tab2 AS cor0 ---- 1430 1485 2090 query I rowsort SELECT DISTINCT col0 * 7 * - col0 AS col2 FROM tab2 ---- -343 -42588 -43687 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 + + cor0.col2 col0 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - 81 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- -81 query I rowsort SELECT + 71 * - col1 * tab1.col0 FROM tab1 ---- -45440 -5538 -73840 query I rowsort SELECT + col1 * col0 + + col1 + - col0 FROM tab1 AS cor0 ---- 101 586 973 query I rowsort SELECT - + col2 * cor0.col1 * - col2 + col2 AS col2 FROM tab2 AS cor0 ---- 22626 24586 39910 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6594 SELECT 21 * col2 + CAST( - ( + col2 ) + col0 * + col0 AS SIGNED ) FROM tab1 cor0 ---- 1089 5236 8320 skipif mysql # not compatible query I rowsort label-6594 SELECT 21 * col2 + CAST ( - ( + col2 ) + col0 * + col0 AS INTEGER ) FROM tab1 cor0 ---- 1089 5236 8320 query I rowsort SELECT DISTINCT - 70 * col1 FROM tab2 cor0 ---- -1190 -2170 -4130 query I rowsort SELECT ALL - + 15 + cor0.col1 FROM tab1 AS cor0 ---- -2 -5 11 query I rowsort SELECT 98 + col2 FROM tab0 AS cor0 ---- 131 180 99 query I rowsort SELECT - + cor0.col1 - col2 AS col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT cor0.col2 * + 51 + - col0 + + col0 FROM tab2 AS cor0 ---- 1326 1377 1938 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + col2 + col0 col2 FROM tab1 AS cor0 ---- 111 178 272 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6601 SELECT + col2 + + CAST( + col1 * col2 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0 ---- 1638 763 871 skipif mysql # not compatible query I rowsort label-6601 SELECT + col2 + + CAST ( + col1 * col2 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0 ---- 1638 763 871 query I rowsort SELECT + cor0.col0 * 75 + col2 FROM tab2 AS cor0 ---- 552 5876 5963 query I rowsort SELECT ALL + 4 * tab2.col0 * col1 FROM tab2 ---- 18408 5372 868 query I rowsort SELECT + col2 * col2 + col1 + col2 AS col2 FROM tab1 AS cor0 ---- 2996 3316 9325 query I rowsort SELECT col1 + 92 * col0 FROM tab2 AS cor0 ---- 675 7235 7285 query I rowsort SELECT + col1 + - 60 * - cor0.col0 * + col0 AS col1 FROM tab1 AS cor0 ---- 245770 384013 566 query I rowsort SELECT DISTINCT + - cor0.col0 + + col2 * ( - col2 ) FROM tab0 AS cor0 ---- -1113 -36 -6813 onlyif mysql # use DIV operator for integer division query I rowsort label-6608 SELECT DISTINCT - col2 DIV + 1 col0 FROM tab2 AS cor0 ---- -26 -27 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6608 SELECT DISTINCT - col2 / + 1 col0 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT col2 * col1 + col0 * col0 * col2 + col1 FROM tab0 cor0 ---- 1419 21932 657075 query I rowsort SELECT col1 * - 88 - - 3 AS col1 FROM tab1 AS cor0 ---- -1141 -2285 -877 query I rowsort SELECT ALL - col1 + - 81 * + col0 FROM tab0 AS cor0 ---- -2030 -2932 -7300 query I rowsort SELECT + + col0 + ( - col2 ) * + col1 AS col2 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT - col0 + + col2 * + ( - col0 ) AS col0 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT DISTINCT - col2 * + 36 + col1 AS col1 FROM tab1 AS cor0 ---- -1918 -2042 -3443 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col2 + + col1 col2 FROM tab0 AS cor0 ---- 152 255 99 query I rowsort SELECT DISTINCT - + col2 + 63 + + col0 FROM tab1 AS cor0 ---- 12 47 70 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( col1 AS REAL ) + + col1 AS col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL ( 23 ) * cor0.col1 AS col1 FROM tab2 AS cor0 ---- 1357 391 713 query I rowsort SELECT 1 * cor0.col2 + - cor0.col1 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT ALL - - 44 AS col0 FROM tab1 AS cor0 ---- 44 44 44 query I rowsort SELECT - + 4 + col2 FROM tab2 AS cor0 ---- 22 23 34 onlyif mysql # use DIV operator for integer division query I rowsort label-6622 SELECT + 29 DIV cor0.col0 AS col0 FROM tab1 AS cor0 ---- 0 0 9 skipif mysql # not compatible query I rowsort label-6622 SELECT + 29 / cor0.col0 AS col0 FROM tab1 AS cor0 ---- 0 0 9 query I rowsort SELECT + col0 * tab1.col1 * + 27 FROM tab1 ---- 17280 2106 28080 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + + col2 col2 FROM tab0 ---- 164 2 66 query I rowsort SELECT col2 * - tab1.col1 * col1 FROM tab1 ---- -16224 -36504 -5700 query I rowsort SELECT DISTINCT col1 - + col1 AS col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL + col1 + col1 + + col2 AS col1 FROM tab2 AS cor0 ---- 144 72 89 query I rowsort SELECT ALL + + cor0.col0 + + col2 FROM tab0 cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-6629 SELECT DISTINCT - cor0.col1 DIV - col2 - - ( + col0 ) FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-6629 SELECT DISTINCT - cor0.col1 / - col2 - - ( + col0 ) FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT ( - col0 * col0 + col0 ) FROM tab2 ---- -42 -6006 -6162 query I rowsort SELECT DISTINCT + ( col2 ) - col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT ALL cor1.col0 * 31 + 13 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to b9234b15e945d19bfa4274883e0810f1 query I rowsort SELECT ( + col1 + - col0 ) FROM tab0 ---- 2 62 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * - 67 col2 FROM tab2 ---- -469 -5226 -5293 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + col1 * col1 col1 FROM tab1 ---- 110 182 702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col2 + - tab2.col0 col2 FROM tab2 ---- -196 -2106 -3081 query I rowsort SELECT DISTINCT col0 + - col2 + + col0 FROM tab1 ---- -48 64 71 query I rowsort SELECT col1 + + tab2.col2 * col0 AS col1 FROM tab2 ---- 2087 220 3019 query I rowsort SELECT DISTINCT col0 * tab1.col2 * + col1 + tab1.col2 FROM tab1 ---- 36537 4266 99936 query I rowsort SELECT col1 + - col0 + - col0 * col2 * col1 AS col1 FROM tab0 ---- -3333 -664116 -68050 query I rowsort SELECT DISTINCT + col1 * col0 * col0 + col2 AS col0 FROM tab1 ---- 288 41017 83296 query I rowsort SELECT DISTINCT col1 * col2 * col1 + col1 AS col2 FROM tab0 ---- 244154 679133 9506 query I rowsort SELECT DISTINCT + tab0.col2 + tab0.col0 AS col1 FROM tab0 ---- 171 36 57 query I rowsort SELECT DISTINCT + col2 + + cor0.col0 * - col0 FROM tab2 AS cor0 ---- -22 -6058 -6203 query I rowsort SELECT + cor0.col1 * cor0.col1 + - col2 AS col2 FROM tab1 AS cor0 ---- 43 622 73 query I rowsort SELECT ALL - col1 * col1 + col2 + col2 * + tab1.col1 AS col1 FROM tab1 ---- 1175 527 782 query I rowsort SELECT + col2 + - col1 * - col0 + col1 AS col2 FROM tab0 ---- 2183 3493 8272 query I rowsort SELECT col0 + - col1 + + tab2.col1 AS col0 FROM tab2 ---- 7 78 79 query I rowsort SELECT col1 + col2 + - col0 * + col0 FROM tab0 AS cor0 ---- -1127 -457 -7748 query I rowsort SELECT - cor0.col0 + + col0 * - cor0.col2 * col2 AS col0 FROM tab1 AS cor0 ---- -208000 -737360 -8751 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 * cor0.col0 * col0 + + col1 col0 FROM tab0 AS cor0 ---- -1128 -18922 -649431 query I rowsort SELECT DISTINCT col2 * col1 - - col1 * + col2 FROM tab1 AS cor0 ---- 1140 2496 2808 query I rowsort SELECT ALL + - col2 - + cor0.col1 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT - col0 * + col0 + cor0.col1 AS col1 FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT DISTINCT - - col2 + col1 * col0 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT + col2 * + col0 - - col0 AS col0 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT ALL - + cor0.col2 * col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL col0 + col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN ( col0 + col2 ) AND - col2 * cor0.col0 OR NULL NOT IN ( cor0.col2 ) ---- query I rowsort SELECT 0 * col2 * - col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col1 * + col2 + + col1 + - col1 * - col0 FROM tab1 AS cor0 ---- 1220 1508 2301 query I rowsort SELECT DISTINCT + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT DISTINCT + + cor0.col1 * - col1 FROM tab1 AS cor0 ---- -100 -169 -676 onlyif mysql # use DIV operator for integer division query I rowsort label-6663 SELECT ALL col2 DIV cor0.col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-6663 SELECT ALL col2 / cor0.col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT DISTINCT - 21 * cor0.col2 FROM tab2 AS cor0 ---- -546 -567 -798 onlyif mysql # use DIV operator for integer division query I rowsort label-6665 SELECT col2 DIV col2 col1 FROM tab1 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6665 SELECT col2 / col2 col1 FROM tab1 AS cor0 ---- 1 1 1 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL NOT IN ( col1 + - col0 ) ) AND NOT ( NULL ) IN ( cor0.col1 * col1 ) OR ( NULL ) = NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 30 + col0 col1 FROM tab2 AS cor0 ---- -23 48 49 query I rowsort SELECT ALL + ( + col1 ) + col1 AS col1 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT DISTINCT + 43 + col2 * col1 + + col1 AS col0 FROM tab0 AS cor0 ---- 237 2967 7596 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col2 * + col0 col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-6671 SELECT - + col2 DIV - col0 - - col0 FROM tab0 AS cor0 ---- 25 35 89 skipif mysql # not compatible query I rowsort label-6671 SELECT - + col2 / - col0 - - col0 FROM tab0 AS cor0 ---- 25 35 89 query I rowsort SELECT ALL + cor0.col1 + + col1 * - col2 AS col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT 46 * + col2 + col1 FROM tab2 ---- 1255 1273 1765 query I rowsort SELECT + 59 * col2 - + col2 * col0 FROM tab0 ---- -2460 1155 24 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col1 < ( NULL ) ---- query I rowsort SELECT DISTINCT + tab1.col2 * col1 + col0 FROM tab1 ---- 1328 1407 634 onlyif mysql # use DIV operator for integer division query I rowsort label-6677 SELECT + col2 + col1 * col0 + col0 DIV - col0 AS col0 FROM tab0 ---- 2096 3395 8180 skipif mysql # not compatible query I rowsort label-6677 SELECT + col2 + col1 * col0 + col0 / - col0 AS col0 FROM tab0 ---- 2096 3395 8180 query I rowsort SELECT DISTINCT - col1 * + col2 - col2 FROM tab1 ---- -1344 -1458 -627 query I rowsort SELECT DISTINCT - tab1.col0 FROM tab1 WHERE - col0 > ( NULL ) ---- query I rowsort SELECT DISTINCT - col1 - - col1 * col2 FROM tab1 ---- 1235 1378 560 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 ---- query I rowsort SELECT + col1 + col1 FROM tab1 WHERE + col1 IN ( tab1.col2 + - col2 ) ---- query I rowsort SELECT - tab2.col2 * - col1 + - col0 FROM tab2 ---- 1456 567 830 query I rowsort SELECT DISTINCT - col2 + tab2.col0 * + col0 - tab2.col0 FROM tab2 ---- 15 5980 6124 query I rowsort SELECT ALL - col1 + - col1 * col1 + + col1 FROM tab0 ---- -7396 -8281 -9409 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col2 * - col0 ) ---- query I rowsort SELECT col2 * col1 + col2 + col0 AS col1 FROM tab2 ---- 1638 763 871 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + cor0.col0 col1 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT - tab0.col0 FROM tab0 WHERE NOT ( - col1 * - col1 ) BETWEEN ( NULL ) AND ( col2 + col0 / - col0 ) ---- -24 -35 -89 query I rowsort SELECT ALL + col1 * col2 + + col1 FROM tab0 ---- 194 2924 7553 query I rowsort SELECT ALL + col0 FROM tab1 WHERE NULL <> col2 + col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6692 SELECT ALL col0 + col0 DIV + col1 FROM tab1 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-6692 SELECT ALL col0 + col0 / + col1 FROM tab1 ---- 3 70 86 query I rowsort SELECT + col0 * + col1 + - col0 AS col2 FROM tab0 ---- 2040 3360 8010 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col1 * col0 ) ---- query IIIIIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 WHERE cor0.col1 > NULL ---- query I rowsort SELECT col0 * - tab2.col1 + + col1 AS col0 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT DISTINCT + col2 * col0 + + col2 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT + col1 - - col1 * tab2.col0 FROM tab2 ---- 1360 248 4661 query I rowsort SELECT + col1 * tab0.col0 FROM tab0 WHERE NULL < NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col2 + + col2 + col2 col1 FROM tab0 ---- 37 7462 858 query III rowsort SELECT * FROM tab1 WHERE ( col0 ) >= ( NULL ) ---- query I rowsort SELECT - tab2.col2 + + tab2.col0 * + tab2.col2 FROM tab2 ---- 162 2002 2964 query I rowsort SELECT ALL - col2 + - col0 - col2 * col1 AS col2 FROM tab1 AS cor0 ---- -1424 -1461 -691 query I rowsort SELECT - + col1 * col0 + 7 AS col1 FROM tab1 AS cor0 ---- -1033 -633 -71 query I rowsort SELECT 49 * col0 + col0 AS col1 FROM tab1 cor0 ---- 150 3200 4000 query I rowsort SELECT + cor0.col2 + cor0.col1 * - ( col0 ) * - col2 AS col1 FROM tab2 AS cor0 ---- 119678 51072 5886 query I rowsort SELECT + + cor0.col1 + col1 * 9 AS col2 FROM tab1 cor0 ---- 100 130 260 query I rowsort SELECT - - 68 + - col2 FROM tab1 AS cor0 ---- -28 11 14 query I rowsort SELECT DISTINCT col0 + col0 * 68 AS col1 FROM tab2 AS cor0 ---- 483 5382 5451 query I rowsort SELECT DISTINCT - - col0 * col2 + + 23 AS col1 FROM tab1 AS cor0 ---- 185 3671 7703 query I rowsort SELECT - - 96 * col1 - - ( - 88 ) * col0 FROM tab1 cor0 ---- -4672 -5792 2232 query I rowsort SELECT ALL ( - col2 ) - + 67 * - col1 FROM tab2 AS cor0 ---- 1101 2050 3927 onlyif mysql # use DIV operator for integer division query I rowsort label-6713 SELECT ALL + + col1 DIV + 5 AS col1 FROM tab2 AS cor0 ---- 11 3 6 skipif mysql # not compatible query I rowsort label-6713 SELECT ALL + + col1 / + 5 AS col1 FROM tab2 AS cor0 ---- 11 3 6 query I rowsort SELECT DISTINCT cor0.col1 * + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 3fe7ddc736abb4b8aaa99f6b5ddeca84 query I rowsort SELECT col2 * + col1 - col1 * + 57 FROM tab0 AS cor0 ---- -2064 -5432 2275 query I rowsort SELECT - - col1 + ( + cor0.col0 ) * 68 AS col0 FROM tab0 AS cor0 ---- 1718 2477 6143 query I rowsort SELECT - 66 + + 5 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to c91d7b51e91f33d302e697913fb438b6 query I rowsort SELECT DISTINCT - 67 - 47 AS col0 FROM tab0 ---- -114 query I rowsort SELECT DISTINCT ( tab2.col1 ) AS col0 FROM tab2, tab0, tab2 AS cor0 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( 43 ) col1 FROM tab1 ---- -43 -43 -43 query I rowsort SELECT - col2 + 95 * col0 * + col2 FROM tab0 ---- 3324 693228 75207 query I rowsort SELECT - ( ( - col2 ) ) + col0 * - col0 * col1 FROM tab0 AS cor0 ---- -118824 -49503 -720729 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 + - col1 col0 FROM tab1 AS cor0 ---- -23 54 67 onlyif mysql # use DIV operator for integer division query I rowsort label-6724 SELECT col0 * col2 DIV - col1 col1 FROM tab0 ---- -80 -9 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6724 SELECT col0 * col2 / - col1 col1 FROM tab0 ---- -80 -9 0 query I rowsort SELECT DISTINCT cor1.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 7 78 79 query I rowsort SELECT - 75 + + col1 FROM tab1 cor0 ---- -49 -62 -65 query I rowsort SELECT ALL 50 - + col1 * col0 AS col0 FROM tab2 AS cor0 ---- -1293 -167 -4552 query I rowsort SELECT ALL - ( - col1 ) + ( col0 ) FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL tab1.col2 * col2 * + col1 + ( - col0 ) FROM tab1 ---- 119728 32426 75813 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * - col1 * + 68 + cor0.col0 * cor0.col0 col0 FROM tab0 cor0 ---- -502352 -555187 -638587 query I rowsort SELECT 4 * col1 - - 27 FROM tab0 AS cor0 ---- 371 391 415 query I rowsort SELECT DISTINCT + col2 * col0 + - 67 + + ( - col0 ) AS col1 FROM tab2 AS cor0 ---- 115 1883 2856 query I rowsort SELECT ALL - 90 * col1 AS col2 FROM tab2 AS cor0 ---- -1530 -2790 -5310 query I rowsort SELECT - col0 * + col1 - col0 * col2 FROM tab1 AS cor0 ---- -240 -4288 -8720 query I rowsort SELECT - - cor0.col0 * 69 FROM tab0 AS cor0 ---- 1656 2415 6141 query I rowsort SELECT - cor0.col0 * col1 * col1 AS col2 FROM tab0 AS cor0 ---- -177504 -329315 -737009 query I rowsort SELECT ALL - col0 * ( cor0.col1 ) AS col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + col2 * + col2 * + col2 FROM tab0 cor0 ---- 1 35937 551368 onlyif mysql # use DIV operator for integer division query I rowsort label-6739 SELECT ALL - 55 DIV - 63 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6739 SELECT ALL - 55 / - 63 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6740 SELECT + CAST( col2 AS SIGNED ) * + col2 col0 FROM tab2 AS cor0 ---- 1444 676 729 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6740 SELECT + CAST ( col2 AS INTEGER ) * + col2 col0 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6741 SELECT ALL CAST( NULL AS DECIMAL ) / + col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6741 SELECT ALL CAST ( NULL AS REAL ) / + col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( - 68 ) FROM tab2 cor0 ---- 68 query I rowsort SELECT DISTINCT col1 + + 74 * col1 AS col1 FROM tab1 cor0 ---- 1950 750 975 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6744 SELECT ALL + CAST( ( + cor0.col2 ) AS SIGNED ) col0 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6744 SELECT ALL + CAST ( ( + cor0.col2 ) AS INTEGER ) col0 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT cor0.col2 * - 44 * - col2 FROM tab2 AS cor0 ---- 29744 32076 63536 query I rowsort SELECT - 41 + col2 AS col1 FROM tab1 AS cor0 ---- 13 16 55 query I rowsort SELECT + cor0.col2 * - col1 AS col1 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT - 41 + 83 * - col1 AS col0 FROM tab2 AS cor0 ---- -1452 -2614 -4938 onlyif mysql # use DIV operator for integer division query I rowsort label-6749 SELECT DISTINCT 37 DIV col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-6749 SELECT DISTINCT 37 / col1 FROM tab0 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 - tab2.col2 col0 FROM tab2 ---- -104 -117 -34 query I rowsort SELECT ALL + 12 * + 9 + - cor0.col1 * + col2 AS col2 FROM tab0 AS cor0 ---- -2730 -7354 11 query I rowsort SELECT - col1 * - ( + col0 ) AS col2 FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-6753 SELECT - col2 DIV + 87 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6753 SELECT - col2 / + 87 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6754 SELECT DISTINCT - + cor0.col1 DIV - 16 FROM tab1 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-6754 SELECT DISTINCT - + cor0.col1 / - 16 FROM tab1 AS cor0 ---- 0 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6755 SELECT DISTINCT cor0.col0 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-6755 SELECT DISTINCT cor0.col0 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT ALL tab1.col2 + 25 AS col1 FROM tab1 ---- 121 79 82 query I rowsort SELECT tab1.col1 + col0 + col2 FROM tab1 ---- 131 189 83 onlyif mysql # use DIV operator for integer division query I rowsort label-6758 SELECT tab2.col0 DIV 53 - ( col2 ) * + col0 FROM tab2 ---- -189 -2027 -3001 skipif mysql # not compatible query I rowsort label-6758 SELECT tab2.col0 / 53 - ( col2 ) * + col0 FROM tab2 ---- -189 -2027 -3001 query I rowsort SELECT tab2.col1 + col1 + 9 * - col2 AS col1 FROM tab2 ---- -116 -181 -308 query I rowsort SELECT DISTINCT cor0.col0 + col2 * col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT + col0 * - 9 AS col1 FROM tab0 ---- -216 -315 -801 query I rowsort SELECT 24 * - 88 - + col0 FROM tab2 ---- -2119 -2190 -2191 query I rowsort SELECT + 85 * cor0.col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 0da078821e50a7125af78a6823b284c4 query I rowsort SELECT ALL - - col2 * + col2 + + col2 * + 1 * + cor0.col0 FROM tab2 AS cor0 ---- 2704 4446 918 skipif mysql # not compatible query I rowsort SELECT + CAST ( 16 AS REAL ) + + col2 AS col1 FROM tab2 ---- 42 43 54 query I rowsort SELECT + 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6767 SELECT ALL col1 * + col2 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6767 SELECT ALL col1 * + col2 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - cor0.col1 - - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -2 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( cor0.col2 ) * + ( col0 + - col2 ) col0 FROM tab1 AS cor0 ---- -399 1536 2754 onlyif mysql # use DIV operator for integer division query I rowsort label-6770 SELECT DISTINCT - ( - col1 ) DIV - col1 AS col0 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-6770 SELECT DISTINCT - ( - col1 ) / - col1 AS col0 FROM tab0 AS cor0 ---- -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6771 SELECT ALL - + col1 + col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6771 SELECT ALL - + col1 + col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + 47 * col1 + col2 * 42 * - col1 FROM tab1 AS cor0 ---- -24410 -53027 -60190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + - col0 col2 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT DISTINCT + 90 + col2 AS col2 FROM tab1 AS cor0 ---- 144 147 186 onlyif mysql # use DIV operator for integer division query I rowsort label-6775 SELECT ALL - + ( - col0 ) DIV ( + 96 ) FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6775 SELECT ALL - + ( - col0 ) / ( + 96 ) FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT ALL - 65 * col1 - cor0.col2 FROM tab0 AS cor0 ---- -5623 -5997 -6306 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + col1 * + col2 col1 FROM tab1 cor0 ---- 1261 1430 580 query I rowsort SELECT DISTINCT + - 43 AS col1 FROM tab1 AS cor0 ---- -43 query IIIIIIIIIIII rowsort SELECT * FROM tab1, tab2, tab0 cor0, tab0 cor1 ---- 972 values hashing to 09b120a8ff13ebafea7af10c2152241b query I rowsort SELECT ALL - cor0.col0 + col1 + + ( - 84 ) * + cor0.col0 * - col2 AS col0 FROM tab1 cor0 ---- 13631 306378 645053 query I rowsort SELECT ALL - 34 * - col0 + + 41 FROM tab0 AS cor0 ---- 1231 3067 857 query I rowsort SELECT col0 * - ( + cor0.col0 ) FROM tab0 AS cor0 ---- -1225 -576 -7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6783 SELECT + CAST( col1 AS SIGNED ) + - col1 + + col1 AS col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-6783 SELECT + CAST ( col1 AS INTEGER ) + - col1 + + col1 AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - - cor0.col0 + 17 * + col0 * - col0 AS col0 FROM tab2 AS cor0 ---- -103350 -106018 -826 query I rowsort SELECT ALL + ( - 66 ) * + col0 * ( + 9 * col0 ) AS col1 FROM tab1 ---- -2433024 -3801600 -5346 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6786 SELECT + CAST( NULL AS SIGNED ) * tab0.col0 * col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6786 SELECT + CAST ( NULL AS INTEGER ) * tab0.col0 * col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6787 SELECT - col2 DIV + col0 + cor0.col1 + + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 118 34 59 skipif mysql # not compatible query I rowsort label-6787 SELECT - col2 / + col0 + cor0.col1 + + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 118 34 59 query I rowsort SELECT + col0 + ( - col1 ) * - cor0.col2 + col2 AS col1 FROM tab0 AS cor0 ---- 133 2895 7633 query I rowsort SELECT 80 * + col1 + - col1 + 99 * + col2 FROM tab2 AS cor0 ---- 5105 5122 7235 query I rowsort SELECT - 51 * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1326 1377 1938 query I rowsort SELECT + 57 * - col1 * col0 AS col1 FROM tab2 ---- -12369 -262314 -76551 query I rowsort SELECT col2 - + col2 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - + cor0.col2 * - 15 + + col2 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1425 2214 2688 query I rowsort SELECT - col0 * ( 37 ) AS col1 FROM tab2 AS cor0 ---- -259 -2886 -2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT - cor0.col2 * - col0 * - cor0.col2 - + col1 * cor0.col1 FROM tab1 AS cor0 ---- -208036 -737449 -9424 query I rowsort SELECT ALL - ( + 58 ) FROM tab0 AS cor0 ---- -58 -58 -58 query I rowsort SELECT - ( col0 ) * col0 + + cor0.col2 AS col1 FROM tab2 AS cor0 ---- -22 -6058 -6203 query I rowsort SELECT 68 + col0 FROM tab1 AS cor0 ---- 132 148 71 query I rowsort SELECT + 46 + + 17 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 38764a6e696d1a6b5095e29ef84959c0 query I rowsort SELECT DISTINCT - 38 AS col1 FROM tab1, tab1 AS cor0 ---- -38 skipif mysql # not compatible query I rowsort SELECT CAST ( + 11 AS REAL ) AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 69116737f3f57e2e3273f6dbb04d036c onlyif mysql # use DIV operator for integer division query I rowsort label-6803 SELECT ALL - col0 * - col2 + + col0 DIV + col2 FROM tab0 AS cor0 ---- 70 7299 792 skipif mysql # not compatible query I rowsort label-6803 SELECT ALL - col0 * - col2 + + col0 / + col2 FROM tab0 AS cor0 ---- 70 7299 792 query I rowsort SELECT DISTINCT + + col0 * + col1 + col1 * - col0 * col0 AS col2 FROM tab1 AS cor0 ---- -156 -40320 -82160 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col1 + cor0.col1 col0 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT ALL + col1 * + 57 + cor0.col0 FROM tab1 AS cor0 ---- 1485 634 821 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6807 SELECT ALL - col2 + - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6807 SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 07149905a72bd87553381f34d19ed290 query I rowsort SELECT col1 + + ( col1 * + col0 + - tab0.col2 ) FROM tab0 ---- 2117 3491 8108 onlyif mysql # use DIV operator for integer division query I rowsort label-6810 SELECT + tab0.col2 - col2 DIV 35 FROM tab0 ---- 1 33 80 skipif mysql # not compatible query I rowsort label-6810 SELECT + tab0.col2 - col2 / 35 FROM tab0 ---- 1 33 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6811 SELECT DISTINCT + cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6811 SELECT DISTINCT + cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - col0 + col1 * - col2 * col2 FROM tab0 AS cor0 ---- -132 -611973 -93678 query I rowsort SELECT - cor0.col2 * - 81 FROM tab1 AS cor0 ---- 4374 4617 7776 query I rowsort SELECT ( - col2 * + col0 ) AS col1 FROM tab1 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6815 SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 + tab1.col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-6815 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + tab1.col2 FROM tab1 ---- NULL query I rowsort SELECT 54 * + 46 FROM tab0 ---- 2484 2484 2484 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * ( - col1 ) col2 FROM tab1 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-6818 SELECT - + 86 * col1 - - col2 * - ( col0 ) DIV + col0 AS col0 FROM tab2 AS cor0 ---- -1500 -2693 -5100 skipif mysql # not compatible query I rowsort label-6818 SELECT - + 86 * col1 - - col2 * - ( col0 ) / + col0 AS col0 FROM tab2 AS cor0 ---- -1500 -2693 -5100 query I rowsort SELECT ALL col0 + - 1 * col1 + 63 * - col1 FROM tab1 ---- -1661 -576 -752 query I rowsort SELECT DISTINCT - tab1.col1 + col0 AS col1 FROM tab1 ---- -23 54 67 query I rowsort SELECT + 33 + + col0 FROM tab2 ---- 111 112 40 query I rowsort SELECT ( + 76 ) * + col2 FROM tab0 ---- 2508 6232 76 onlyif mysql # use DIV operator for integer division query I rowsort label-6823 SELECT + tab0.col2 DIV col1 + + col2 * - col1 + col2 FROM tab0 ---- -2805 -7380 -96 skipif mysql # not compatible query I rowsort label-6823 SELECT + tab0.col2 / col1 + + col2 * - col1 + col2 FROM tab0 ---- -2805 -7380 -96 query I rowsort SELECT + 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col1 + - col0 col0 FROM tab0 cor0 ---- -2088 -3430 -8188 query I rowsort SELECT - + cor0.col0 * col1 + col1 AS col0 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT DISTINCT cor0.col1 * col0 + 21 FROM tab2 AS cor0 ---- 1364 238 4623 onlyif mysql # use DIV operator for integer division query I rowsort label-6828 SELECT - col0 * + col1 DIV - col1 + + col1 * col2 * + ( - col2 ) FROM tab2 AS cor0 ---- -22592 -24469 -39806 skipif mysql # not compatible query I rowsort label-6828 SELECT - col0 * + col1 / - col1 + + col1 * col2 * + ( - col2 ) FROM tab2 AS cor0 ---- -22592 -24469 -39806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 + cor0.col2 col1 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT ALL 50 * + col0 AS col1 FROM tab2 AS cor0 ---- 350 3900 3950 query I rowsort SELECT DISTINCT 40 * col0 + - ( 13 ) FROM tab0 AS cor0 ---- 1387 3547 947 query I rowsort SELECT ALL + col0 * + cor0.col0 * + col1 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT - 24 * + cor0.col2 AS col2 FROM tab1 AS cor0 ---- -1296 -1368 -2304 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - ( ( + cor0.col1 ) ) col0 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT ALL + + 14 FROM tab2 AS cor0 ---- 14 14 14 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + col0 + - col0 col0 FROM tab2 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-6837 SELECT ALL col0 * col1 + - col1 DIV + col1 AS col1 FROM tab2 AS cor0 ---- 1342 216 4601 skipif mysql # not compatible query I rowsort label-6837 SELECT ALL col0 * col1 + - col1 / + col1 AS col1 FROM tab2 AS cor0 ---- 1342 216 4601 onlyif mysql # use DIV operator for integer division query I rowsort label-6838 SELECT ALL - - col1 DIV + col1 AS col1 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6838 SELECT ALL - - col1 / + col1 AS col1 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT 13 AS col2 FROM tab0 cor0 ---- 13 13 13 query I rowsort SELECT col0 + + col2 * - ( 42 ) AS col2 FROM tab1 cor0 ---- -2265 -2330 -3952 query I rowsort SELECT DISTINCT + 0 * + col1 FROM tab1 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6842 SELECT CAST( 51 AS SIGNED ) FROM tab1 ---- 51 51 51 skipif mysql # not compatible query I rowsort label-6842 SELECT CAST ( 51 AS INTEGER ) FROM tab1 ---- 51 51 51 query I rowsort SELECT - ( col2 * + col1 ) + + ( - col2 + col2 ) AS col0 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT + cor0.col1 + + col0 * - col0 FROM tab0 AS cor0 ---- -1128 -490 -7830 query I rowsort SELECT DISTINCT + + col1 * 87 + + col2 AS col2 FROM tab0 AS cor0 ---- 7515 7999 8440 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6846 SELECT DISTINCT + 19 * col2 - + CAST( NULL AS DECIMAL ) * col1 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-6846 SELECT DISTINCT + 19 * col2 - + CAST ( NULL AS REAL ) * col1 FROM tab1 ---- NULL query I rowsort SELECT DISTINCT 13 - - col0 * tab0.col1 AS col0 FROM tab0 ---- 2077 3408 8112 query I rowsort SELECT DISTINCT - cor0.col1 + - col1 AS col1 FROM tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT + + col1 + + 67 * col0 AS col0 FROM tab0 AS cor0 ---- 1694 2442 6054 query I rowsort SELECT DISTINCT + col0 + + ( 92 ) * col2 * col2 FROM tab1 AS cor0 ---- 268275 298972 847952 query I rowsort SELECT DISTINCT + cor0.col2 + 49 AS col0 FROM tab0 AS cor0 ---- 131 50 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6852 SELECT col1 * - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6852 SELECT col1 * - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col1 * col0 + - col1 AS col0 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT + col1 * + col2 + col0 AS col2 FROM tab0 ---- 132 2862 7551 onlyif mysql # use DIV operator for integer division query I rowsort label-6855 SELECT DISTINCT col1 - + col0 DIV col0 AS col0 FROM tab2 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-6855 SELECT DISTINCT col1 - + col0 / col0 AS col0 FROM tab2 ---- 16 30 58 query I rowsort SELECT ( col1 * - col1 ) FROM tab1 ---- -100 -169 -676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6857 SELECT - ( col2 ) * + CAST( NULL AS SIGNED ) - + 93 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6857 SELECT - ( col2 ) * + CAST ( NULL AS INTEGER ) - + 93 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6858 SELECT + 15 + col1 + - col0 DIV 26 AS col0 FROM tab1 ---- 23 25 41 skipif mysql # not compatible query I rowsort label-6858 SELECT + 15 + col1 + - col0 / 26 AS col0 FROM tab1 ---- 23 25 41 query I rowsort SELECT ALL + + cor1.col2 - + 71 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2 ---- 243 values hashing to e4f6cf6b4f73ba75268856e303bce354 query I rowsort SELECT + col0 * + ( col1 ) FROM tab1 ---- 1040 640 78 query I rowsort SELECT DISTINCT - - col0 * - col1 + col0 AS col0 FROM tab1 AS cor0 ---- -576 -75 -960 onlyif mysql # use DIV operator for integer division query I rowsort label-6862 SELECT col2 + col2 DIV col0 FROM tab0 cor0 ---- 1 34 82 skipif mysql # not compatible query I rowsort label-6862 SELECT col2 + col2 / col0 FROM tab0 cor0 ---- 1 34 82 query I rowsort SELECT col0 * ( - col1 * + col1 ) FROM tab0 AS cor0 ---- -177504 -329315 -737009 query I rowsort SELECT ALL - col1 + - 36 AS col2 FROM tab1 AS cor0 ---- -46 -49 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-6865 SELECT - - cor0.col1 * - 52 + col0 DIV - col1 AS col2 FROM tab1 AS cor0 ---- -1352 -526 -682 skipif mysql # not compatible query I rowsort label-6865 SELECT - - cor0.col1 * - 52 + col0 / - col1 AS col2 FROM tab1 AS cor0 ---- -1352 -526 -682 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6866 SELECT DISTINCT + - col1 * CAST( + col1 AS SIGNED ) col2 FROM tab2 cor0 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6866 SELECT DISTINCT + - col1 * CAST ( + col1 AS INTEGER ) col2 FROM tab2 cor0 ---- -289 -3481 -961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6867 SELECT DISTINCT cor0.col0 * + CAST( col1 AS SIGNED ) - col1 * - col2 FROM tab2 AS cor0 ---- 1054 1989 6136 skipif mysql # not compatible query I rowsort label-6867 SELECT DISTINCT cor0.col0 * + CAST ( col1 AS INTEGER ) - col1 * - col2 FROM tab2 AS cor0 ---- 1054 1989 6136 query I rowsort SELECT ALL col2 * col0 + + col0 FROM tab0 ---- 70 7387 816 query I rowsort SELECT + col0 * - ( tab1.col1 ) * col2 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT ALL + 31 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6871 SELECT ALL col0 * - CAST( NULL AS SIGNED ) - - ( - col2 ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6871 SELECT ALL col0 * - CAST ( NULL AS INTEGER ) - - ( - col2 ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col1 * + 85 FROM tab0 ---- 7310 7735 8245 onlyif mysql # use DIV operator for integer division query I rowsort label-6873 SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col0 + + col0 DIV col0 FROM tab1 AS cor0 ---- 163 3649 7681 skipif mysql # not compatible query I rowsort label-6873 SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col0 + + col0 / col0 FROM tab1 AS cor0 ---- 163 3649 7681 query I rowsort SELECT ALL ( + 5 ) FROM tab2 cor0 ---- 5 5 5 query I rowsort SELECT 66 AS col1 FROM tab0 AS cor0 ---- 66 66 66 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6876 SELECT CAST( 10 AS SIGNED ) FROM tab0 AS cor0 ---- 10 10 10 skipif mysql # not compatible query I rowsort label-6876 SELECT CAST ( 10 AS INTEGER ) FROM tab0 AS cor0 ---- 10 10 10 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6877 SELECT DISTINCT - - CAST( + col2 AS SIGNED ) * - col1 + + ( + 61 ) FROM tab0 AS cor0 ---- -2777 -36 -7401 skipif mysql # not compatible query I rowsort label-6877 SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * - col1 + + ( + 61 ) FROM tab0 AS cor0 ---- -2777 -36 -7401 query I rowsort SELECT - 2 AS col2 FROM tab0 cor0 ---- -2 -2 -2 query I rowsort SELECT - col1 * 22 AS col1 FROM tab2 AS cor0 ---- -1298 -374 -682 query I rowsort SELECT + + ( + col0 ) * col1 + + col2 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT DISTINCT + - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- -26 -27 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 88 col0 FROM tab2 cor0 ---- -88 -88 -88 query I rowsort SELECT ALL - + col1 * + col1 + - col0 FROM tab0 AS cor0 ---- -7420 -8370 -9444 query I rowsort SELECT DISTINCT + 34 + + col2 * col1 + - col1 FROM tab1 AS cor0 ---- 1269 1412 594 onlyif mysql # use DIV operator for integer division query I rowsort label-6885 SELECT - - cor0.col0 + - col2 DIV col1 AS col2 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-6885 SELECT - - cor0.col0 + - col2 / col1 AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT - col1 * + col2 * - col0 AS col0 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-6887 SELECT + col2 * col2 DIV - 14 FROM tab2 AS cor0 ---- -103 -48 -52 skipif mysql # not compatible query I rowsort label-6887 SELECT + col2 * col2 / - 14 FROM tab2 AS cor0 ---- -103 -48 -52 query I rowsort SELECT DISTINCT 29 * col2 + col0 FROM tab1 AS cor0 ---- 1569 1717 2864 query I rowsort SELECT + col2 - 25 FROM tab0 AS cor0 ---- -24 57 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6890 SELECT + col2 + CAST( - 75 AS SIGNED ) * + col0 FROM tab2 AS cor0 ---- -498 -5824 -5887 skipif mysql # not compatible query I rowsort label-6890 SELECT + col2 + CAST ( - 75 AS INTEGER ) * + col0 FROM tab2 AS cor0 ---- -498 -5824 -5887 query I rowsort SELECT + + col2 * - col1 + col2 AS col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT + 38 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb query I rowsort SELECT ALL tab2.col2 * col1 + col2 FROM tab2 ---- 1560 684 864 query I rowsort SELECT ALL + col2 * col0 + + col0 * 21 FROM tab1 ---- 225 4992 9360 skipif mysql # not compatible query I rowsort SELECT + - col0 * ( ( + cor0.col0 ) * + CAST ( col2 AS REAL ) + col1 ) AS col0 FROM tab2 AS cor0 ---- -1540 -162786 -238501 query I rowsort SELECT col0 - col0 * 37 FROM tab0 AS cor0 ---- -1260 -3204 -864 query I rowsort SELECT DISTINCT - 61 AS col0 FROM tab0, tab0 AS cor0 ---- -61 query I rowsort SELECT ALL col2 * col1 + - col0 FROM tab0 AS cor0 ---- 2814 62 7373 onlyif mysql # use DIV operator for integer division query I rowsort label-6899 SELECT DISTINCT - + col2 * - col0 + cor0.col0 DIV col0 + + ( 89 ) FROM tab0 AS cor0 ---- 125 7388 882 skipif mysql # not compatible query I rowsort label-6899 SELECT DISTINCT - + col2 * - col0 + cor0.col0 / col0 + + ( 89 ) FROM tab0 AS cor0 ---- 125 7388 882 query I rowsort SELECT ALL + col2 * ( + col2 ) FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT ALL - cor0.col0 + + col2 * 0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT cor0.col0 * 62 FROM tab1 AS cor0 ---- 186 3968 4960 onlyif mysql # use DIV operator for integer division query I rowsort label-6903 SELECT + col1 + col1 * + col0 + + col2 DIV - col2 AS col2 FROM tab1 ---- 103 1052 649 skipif mysql # not compatible query I rowsort label-6903 SELECT + col1 + col1 * + col0 + + col2 / - col2 AS col2 FROM tab1 ---- 103 1052 649 query I rowsort SELECT DISTINCT + col1 * col2 * + col0 AS col2 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT col0 + - col1 + col2 * col2 FROM tab1 ---- 2893 3303 9283 query I rowsort SELECT - col0 + - col2 * - col1 * - col0 FROM tab2 ---- -119730 -51113 -5866 query I rowsort SELECT ALL col2 AS col2 FROM tab0 WHERE - col0 * col1 * col0 > NULL ---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL < ( col1 ) ---- query I rowsort SELECT ALL tab1.col2 - col0 AS col2 FROM tab1 ---- -7 16 51 query I rowsort SELECT ALL col0 * + col0 * + col1 + + col2 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN ( + col1 / col2 ) AND NULL ---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT col0 + - col0 < NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6912 SELECT col2 + col2 DIV - col0 FROM tab0 ---- 1 32 82 skipif mysql # not compatible query I rowsort label-6912 SELECT col2 + col2 / - col0 FROM tab0 ---- 1 32 82 query I rowsort SELECT 69 * + col0 AS col2 FROM tab0 cor0 ---- 1656 2415 6141 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + col1 * + col2 col1 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT col2 * + col1 + - col0 AS col1 FROM tab2 ---- 1456 567 830 query I rowsort SELECT + + 61 * + col0 + + col1 + 84 FROM tab1 cor0 ---- 293 3998 4977 onlyif mysql # use DIV operator for integer division query I rowsort label-6917 SELECT col2 * col1 DIV + 44 AS col1 FROM tab0 AS cor0 ---- 169 2 64 skipif mysql # not compatible query I rowsort label-6917 SELECT col2 * col1 / + 44 AS col1 FROM tab0 AS cor0 ---- 169 2 64 query I rowsort SELECT ALL + - col1 + col2 AS col1 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT ALL ( + col0 ) * + col0 AS col0 FROM tab0 AS cor0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col1 col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 query I rowsort SELECT - 30 * + col0 FROM tab1 AS cor0 ---- -1920 -2400 -90 query I rowsort SELECT DISTINCT - col2 * col1 * - 7 AS col0 FROM tab2 AS cor0 ---- 10738 4522 5859 query I rowsort SELECT + - col2 * - cor0.col0 + + ( 14 ) AS col1 FROM tab0 AS cor0 ---- 49 7312 806 onlyif mysql # use DIV operator for integer division query I rowsort label-6924 SELECT - col1 * cor0.col2 DIV + col0 FROM tab0 AS cor0 ---- -118 -2 -83 skipif mysql # not compatible query I rowsort label-6924 SELECT - col1 * cor0.col2 / + col0 FROM tab0 AS cor0 ---- -118 -2 -83 query I rowsort SELECT + col1 * col2 + col0 + + col1 FROM tab2 cor0 ---- 1671 742 875 query I rowsort SELECT ALL + - col0 * + col0 + + col1 * col2 + - col0 FROM tab2 AS cor0 ---- -4628 -5674 781 query I rowsort SELECT DISTINCT col1 * 13 + cor0.col1 FROM tab2 cor0 ---- 238 434 826 query I rowsort SELECT - - col0 * col0 * + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 262144 27 512000 query I rowsort SELECT + + col1 + 22 * cor0.col0 FROM tab0 cor0 ---- 2049 614 867 query I rowsort SELECT DISTINCT col2 + tab0.col1 + - col1 AS col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT 92 + col1 * col0 FROM tab0 ---- 2156 3487 8191 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 19 col1 FROM tab2 AS cor0 ---- 19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 - + col2 * col0 col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6934 SELECT DISTINCT + CAST( col2 AS SIGNED ) + col1 + 31 FROM tab0 AS cor0 ---- 129 150 204 skipif mysql # not compatible query I rowsort label-6934 SELECT DISTINCT + CAST ( col2 AS INTEGER ) + col1 + 31 FROM tab0 AS cor0 ---- 129 150 204 query I rowsort SELECT + col0 + 26 - - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 130 143 60 onlyif mysql # use DIV operator for integer division query I rowsort label-6936 SELECT ALL + - cor0.col0 DIV col1 AS col2 FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-6936 SELECT ALL + - cor0.col0 / col1 AS col2 FROM tab1 AS cor0 ---- -6 -6 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6937 SELECT ALL col2 + + 98 DIV + col1 + col0 FROM tab2 cor0 ---- 105 122 37 skipif mysql # not compatible query I rowsort label-6937 SELECT ALL col2 + + 98 / + col1 + col0 FROM tab2 cor0 ---- 105 122 37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 77 + - cor0.col2 + col2 col1 FROM tab0 AS cor0 ---- -77 -77 -77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 52 + - col2 col1 FROM tab1 AS cor0 ---- -2 -44 -5 query I rowsort SELECT DISTINCT col2 + col1 + - tab1.col1 AS col0 FROM tab1 ---- 54 57 96 query I rowsort SELECT DISTINCT col0 + - 80 FROM tab1 ---- -16 -77 0 query I rowsort SELECT DISTINCT - ( - 43 ) + col2 FROM tab2 ---- 69 70 81 query I rowsort SELECT DISTINCT col1 + col1 + col0 AS col1 FROM tab0 ---- 196 229 271 query I rowsort SELECT + 68 + - 73 AS col2 FROM tab2 ---- -5 -5 -5 query I rowsort SELECT - col1 * - 59 FROM tab2 ---- 1003 1829 3481 query I rowsort SELECT ALL - 0 + - 34 * col2 AS col1 FROM tab1 ---- -1836 -1938 -3264 query I rowsort SELECT DISTINCT col2 + + col2 * tab1.col0 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT - ( - col2 ) + + col2 AS col2 FROM tab2 ---- 52 54 76 onlyif mysql # use DIV operator for integer division query I rowsort label-6949 SELECT - + ( col0 ) * col0 DIV - cor0.col1 + - col1 FROM tab2 cor0 ---- -30 350 44 skipif mysql # not compatible query I rowsort label-6949 SELECT - + ( col0 ) * col0 / - cor0.col1 + - col1 FROM tab2 cor0 ---- -30 350 44 query I rowsort SELECT DISTINCT + 58 * + col2 FROM tab1 AS cor0 ---- 3132 3306 5568 query I rowsort SELECT - + col0 + + col2 * + col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT DISTINCT + 64 * - col1 AS col2 FROM tab1 AS cor0 ---- -1664 -640 -832 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + col0 + + col2 * col0 col2 FROM tab0 AS cor0 ---- 105 7476 840 query I rowsort SELECT 19 + col1 + tab1.col0 FROM tab1 ---- 112 48 93 query I rowsort SELECT DISTINCT - 33 * + col0 * - col1 AS col1 FROM tab0 ---- 112035 267267 68112 onlyif mysql # use DIV operator for integer division query I rowsort label-6956 SELECT DISTINCT - col1 DIV - col1 - col0 DIV - col0 FROM tab2 AS cor0 ---- 2 skipif mysql # not compatible query I rowsort label-6956 SELECT DISTINCT - col1 / - col1 - col0 / - col0 FROM tab2 AS cor0 ---- 2 query I rowsort SELECT ALL - ( - tab2.col1 ) * - tab2.col0 AS col1 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT ALL + 14 * - col2 FROM tab1 AS cor0 ---- -1344 -756 -798 query I rowsort SELECT DISTINCT ( 46 ) AS col0 FROM tab1 AS cor0 ---- 46 query I rowsort SELECT + 92 - - cor0.col2 FROM tab1 AS cor0 ---- 146 149 188 onlyif mysql # use DIV operator for integer division query I rowsort label-6961 SELECT DISTINCT - - col2 + + col1 DIV + cor0.col1 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-6961 SELECT DISTINCT - - col2 + + col1 / + cor0.col1 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT + 22 * ( + col2 ) + col2 AS col1 FROM tab2 AS cor0 ---- 598 621 874 query I rowsort SELECT ALL col2 + col2 * tab0.col0 AS col2 FROM tab0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-6964 SELECT 6 DIV 64 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6964 SELECT 6 / 64 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL 16 + col1 AS col0 FROM tab0 ---- 102 107 113 query I rowsort SELECT DISTINCT + ( + tab0.col1 ) + col0 * + tab0.col0 FROM tab0 ---- 1322 662 8012 query I rowsort SELECT DISTINCT + 47 * - col2 + col0 AS col1 FROM tab0 AS cor0 ---- -12 -1527 -3765 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 83 * - 7 col2 FROM tab1 AS cor0 ---- 581 581 581 query I rowsort SELECT cor0.col2 * - col2 + col2 FROM tab0 AS cor0 ---- -1056 -6642 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6970 SELECT + 78 DIV - col2 + + col2 * col0 FROM tab1 AS cor0 ---- 161 3647 7680 skipif mysql # not compatible query I rowsort label-6970 SELECT + 78 / - col2 + + col2 * col0 FROM tab1 AS cor0 ---- 161 3647 7680 query I rowsort SELECT ALL - + col0 - + col2 * col1 FROM tab1 AS cor0 ---- -1328 -1407 -634 query I rowsort SELECT DISTINCT + + col0 + col1 * + cor0.col0 FROM tab1 cor0 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col1 ) + col2 col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT 16 + - 66 FROM tab0 ---- -50 -50 -50 query I rowsort SELECT col2 * ( col1 ) + + tab1.col1 * col2 + tab1.col1 AS col2 FROM tab1 ---- 1150 2509 2834 query I rowsort SELECT DISTINCT + ( - ( col0 ) ) + col2 + + tab2.col0 * + tab2.col1 FROM tab2 ---- 1302 237 4550 query I rowsort SELECT ALL col2 + ( - col1 + col2 ) FROM tab0 ---- -20 -95 73 query I rowsort SELECT 44 * tab1.col1 FROM tab1 ---- 1144 440 572 query I rowsort SELECT DISTINCT 52 + + cor0.col1 AS col2 FROM tab0, tab1 AS cor0 ---- 62 65 78 query I rowsort SELECT 37 + col1 * - col0 AS col2 FROM tab1 ---- -1003 -41 -603 onlyif mysql # use DIV operator for integer division query I rowsort label-6981 SELECT DISTINCT ( 69 ) * col1 + col1 * col2 DIV col1 FROM tab2 ---- 1211 2166 4097 skipif mysql # not compatible query I rowsort label-6981 SELECT DISTINCT ( 69 ) * col1 + col1 * col2 / col1 FROM tab2 ---- 1211 2166 4097 onlyif mysql # use DIV operator for integer division query I rowsort label-6982 SELECT ALL - col0 DIV - col0 + col0 FROM tab1 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-6982 SELECT ALL - col0 / - col0 + col0 FROM tab1 ---- 4 65 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6983 SELECT DISTINCT CAST( + col2 AS SIGNED ) + col2 + - tab2.col1 AS col2 FROM tab2 ---- -7 23 59 skipif mysql # not compatible query I rowsort label-6983 SELECT DISTINCT CAST ( + col2 AS INTEGER ) + col2 + - tab2.col1 AS col2 FROM tab2 ---- -7 23 59 query I rowsort SELECT + ( col0 ) + + col0 AS col1 FROM tab1 ---- 128 160 6 query I rowsort SELECT ALL + 85 * tab0.col0 + - col2 * + col1 AS col1 FROM tab0 ---- -798 103 2878 query I rowsort SELECT - col0 + - col2 + - col0 AS col2 FROM tab0 AS cor0 ---- -260 -71 -81 query I rowsort SELECT + cor0.col0 * col1 + + col0 AS col2 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT DISTINCT tab0.col1 - col2 * col0 AS col2 FROM tab0 WHERE NULL NOT IN ( - col0 * + col2 ) ---- query IIIIII rowsort SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT ( NULL ) IN ( cor0.col2 ) ---- query III rowsort SELECT * FROM tab1 WHERE NOT tab1.col0 * + col2 * + col2 > ( NULL ) ---- query I rowsort SELECT + col2 * + col0 + + col1 FROM tab1 ---- 188 3658 7693 query III rowsort SELECT DISTINCT * FROM tab2 WHERE col1 < NULL ---- query I rowsort SELECT DISTINCT col2 * - col0 * - col2 AS col2 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT col1 * col1 FROM tab0 WHERE NOT NULL NOT IN ( + col2 ) ---- query I rowsort SELECT + tab2.col0 AS col2 FROM tab2 WHERE + col1 * - col0 * col1 + + col0 > ( + col2 ) ---- query I rowsort SELECT ALL col1 - col2 * + col2 AS col0 FROM tab1 ---- -2890 -3239 -9203 query I rowsort SELECT ALL tab0.col2 - col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col2 * - col0 * - col1 AND NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab2.col2 * + col2 - + col1 col2 FROM tab2 ---- 1427 617 698 onlyif mysql # use DIV operator for integer division query I rowsort label-6999 SELECT col1 + col0 DIV + col1 AS col1 FROM tab1 ---- 16 19 26 skipif mysql # not compatible query I rowsort label-6999 SELECT col1 + col0 / + col1 AS col1 FROM tab1 ---- 16 19 26 query I rowsort SELECT + col0 * col0 + col1 * col2 AS col1 FROM tab2 ---- 6887 7618 886 onlyif mysql # use DIV operator for integer division query I rowsort label-7001 SELECT - col1 * col1 DIV + col1 + col2 AS col1 FROM tab1 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-7001 SELECT - col1 * col1 / + col1 + col2 AS col1 FROM tab1 ---- 28 47 83 query I rowsort SELECT ALL col2 * col1 * + col2 AS col2 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col0 * col1 ---- query I rowsort SELECT DISTINCT - col0 * col2 + col2 AS col1 FROM tab2 cor0 ---- -162 -2002 -2964 query I rowsort SELECT ALL - cor0.col0 + cor0.col2 * + cor0.col2 FROM tab0 cor0 ---- -34 1065 6635 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + col2 col0 FROM tab1 cor0 ---- 109 67 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7006 SELECT ALL + CAST( col2 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-7006 SELECT ALL + CAST ( col2 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT - col1 * - col2 + col2 FROM tab2 cor0 ---- 1560 684 864 query I rowsort SELECT ALL + + ( + col0 ) + - col1 * - col2 AS col0 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT - 46 + + 73 FROM tab0 AS cor0 ---- 27 27 27 skipif mysql # not compatible query I rowsort SELECT CAST ( cor0.col0 AS REAL ) + + cor0.col0 FROM tab2 AS cor0 ---- 14 156 158 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7011 SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col2 + col1 AS col2 FROM tab1 AS cor0 ---- 2942 3259 9229 skipif mysql # not compatible query I rowsort label-7011 SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col2 + col1 AS col2 FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT DISTINCT + col0 * + 49 AS col0 FROM tab0 ---- 1176 1715 4361 query I rowsort SELECT DISTINCT + 37 AS col1 FROM tab0 ---- 37 query I rowsort SELECT ( 92 * + col2 ) FROM tab1 ---- 4968 5244 8832 query I rowsort SELECT ( + cor0.col2 ) * - col0 FROM tab1 cor0 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7016 SELECT ALL - + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7016 SELECT ALL - + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7017 SELECT - - CAST( NULL AS SIGNED ) + - 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-7017 SELECT - - CAST ( NULL AS INTEGER ) + - 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT col2 + + col0 - 94 AS col2 FROM tab0 AS cor0 ---- -37 -58 77 query I rowsort SELECT + col2 * col2 - 32 * + 58 AS col1 FROM tab2 AS cor0 ---- -1127 -1180 -412 query I rowsort SELECT ALL + + 61 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 07149905a72bd87553381f34d19ed290 query I rowsort SELECT - - col1 + col0 AS col1 FROM tab0 cor0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * + col0 + 79 col0 FROM tab2 ---- -110 -1949 -2923 query I rowsort SELECT DISTINCT - cor0.col2 * + ( cor0.col2 ) FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT ALL - cor0.col0 * ( cor0.col0 + col2 * cor0.col2 ) FROM tab1 AS cor0 ---- -212032 -743680 -8757 query I rowsort SELECT DISTINCT - col2 - ( col2 * + col1 ) AS col0 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT DISTINCT + - col2 * - 36 FROM tab1 AS cor0 ---- 1944 2052 3456 query I rowsort SELECT - col1 * + 47 FROM tab2 ---- -1457 -2773 -799 query I rowsort SELECT ALL - 17 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4 query I rowsort SELECT DISTINCT col1 + col0 * 20 + + col0 FROM tab1 ---- 1354 1693 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 * col1 * + col0 col2 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT DISTINCT + col1 * ( col1 ) AS col0 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT - + col2 * + ( + 83 ) AS col2 FROM tab1 AS cor0 ---- -4482 -4731 -7968 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7033 SELECT DISTINCT - col1 + + CAST( col0 + col0 AS SIGNED ) col0 FROM tab0 AS cor0 ---- -27 -38 87 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7033 SELECT DISTINCT - col1 + + CAST ( col0 + col0 AS INTEGER ) col0 FROM tab0 AS cor0 ---- -27 -38 87 query I rowsort SELECT + + col2 + col1 * col1 AS col0 FROM tab1 AS cor0 ---- 157 265 730 query I rowsort SELECT - col0 * 61 - + col2 * - col2 FROM tab2 AS cor0 ---- -3375 -4082 302 query I rowsort SELECT + - col2 + - 48 * col2 + - col2 FROM tab1 AS cor0 ---- -2700 -2850 -4800 onlyif mysql # use DIV operator for integer division query I rowsort label-7037 SELECT - col2 + ( - cor0.col2 ) DIV + col1 + + 63 FROM tab0 AS cor0 ---- -19 30 62 skipif mysql # not compatible query I rowsort label-7037 SELECT - col2 + ( - cor0.col2 ) / + col1 + + 63 FROM tab0 AS cor0 ---- -19 30 62 query I rowsort SELECT DISTINCT - col2 * 46 AS col0 FROM tab2 cor0 ---- -1196 -1242 -1748 query I rowsort SELECT + col0 * 20 AS col0 FROM tab1 AS cor0 ---- 1280 1600 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 * col2 + + 9 col0 FROM tab0 AS cor0 ---- 106 2847 7471 onlyif mysql # use DIV operator for integer division query I rowsort label-7041 SELECT + col0 DIV + ( col1 ) - col0 * + ( + 43 ) FROM tab2 AS cor0 ---- -301 -3353 -3393 skipif mysql # not compatible query I rowsort label-7041 SELECT + col0 / + ( col1 ) - col0 * + ( + 43 ) FROM tab2 AS cor0 ---- -301 -3353 -3393 query I rowsort SELECT DISTINCT 78 FROM tab1 cor0 ---- 78 query I rowsort SELECT ( - 80 ) FROM tab0 cor0 ---- -80 -80 -80 query I rowsort SELECT ALL + ( - 21 ) AS col0 FROM tab2 AS cor0 ---- -21 -21 -21 query I rowsort SELECT ALL - 86 FROM tab1 cor0 ---- -86 -86 -86 onlyif mysql # use DIV operator for integer division query I rowsort label-7046 SELECT ALL col2 + col1 DIV col1 AS col2 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-7046 SELECT ALL col2 + col1 / col1 AS col2 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT ALL + - ( - col2 ) + - col1 * col0 * - col1 - - cor0.col0 * 42 FROM tab1 AS cor0 ---- 16976 2208 9145 query I rowsort SELECT DISTINCT + + cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1, tab2, tab2 AS cor2 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 * - 95 col0 FROM tab0 cor0 ---- -3135 -7790 -95 query I rowsort SELECT DISTINCT col1 - - col2 AS col2 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT - col2 * + col2 + col0 * col0 AS col1 FROM tab2 AS cor0 ---- -680 4797 5408 query IIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2 ---- 972 values hashing to 09b120a8ff13ebafea7af10c2152241b query I rowsort SELECT + 46 FROM tab0, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 2f97924b57b73102233df7c9ce8ad602 query I rowsort SELECT - - 12 + + 8 AS col0 FROM tab1 AS cor0 ---- 20 20 20 query I rowsort SELECT - ( + col1 ) * + col1 FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT - - col1 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ( col1 ) * ( + col0 * + cor0.col2 ) AS col0 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT 24 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to aeeac431d22528188e8a5a2a60d2d080 onlyif mysql # use DIV operator for integer division query I rowsort label-7059 SELECT + cor1.col1 DIV 26 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 953562d3ce2a62a1679a1ae0451294c6 skipif mysql # not compatible query I rowsort label-7059 SELECT + cor1.col1 / 26 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 953562d3ce2a62a1679a1ae0451294c6 query I rowsort SELECT DISTINCT 46 + col0 AS col2 FROM tab1 cor0 ---- 110 126 49 query I rowsort SELECT - + 71 * col1 AS col2 FROM tab2 AS cor0 ---- -1207 -2201 -4189 query I rowsort SELECT ALL 64 * - col0 AS col0 FROM tab0 ---- -1536 -2240 -5696 query I rowsort SELECT - - col2 * col2 + ( cor0.col1 ) * cor0.col1 + + 22 * + col0 AS col2 FROM tab1 AS cor0 ---- 11145 3658 4757 query I rowsort SELECT + col0 * 46 * 78 AS col1 FROM tab2 AS cor0 ---- 25116 279864 283452 query I rowsort SELECT ALL - col0 + 45 * col0 FROM tab2 AS cor0 ---- 308 3432 3476 query I rowsort SELECT cor0.col1 - + ( cor0.col2 ) FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT DISTINCT tab0.col2 FROM tab0, tab2, tab2 AS cor0, tab1 AS cor1 ---- 1 33 82 query I rowsort SELECT 33 * col2 + - col0 FROM tab2 ---- 1175 780 884 query I rowsort SELECT ALL col0 + col0 - - col0 AS col0 FROM tab0 ---- 105 267 72 query I rowsort SELECT DISTINCT - col0 * col2 - col1 AS col0 FROM tab1 ---- -188 -3658 -7693 query I rowsort SELECT + tab2.col1 * col1 + - 44 + + tab2.col0 AS col0 FROM tab2 ---- 324 3515 924 query I rowsort SELECT - + ( col2 ) - 53 FROM tab1 AS cor0 ---- -107 -110 -149 query I rowsort SELECT DISTINCT 56 + col1 AS col1 FROM tab1 ---- 66 69 82 query I rowsort SELECT DISTINCT - 50 - - cor0.col0 FROM tab0, tab0 cor0, tab2, tab2 AS cor1 ---- -15 -26 39 query I rowsort SELECT ( tab2.col2 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 onlyif mysql # use DIV operator for integer division query I rowsort label-7076 SELECT ALL + col1 DIV col2 AS col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7076 SELECT ALL + col1 / col2 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT - + col2 * col2 - - 50 FROM tab2 AS cor0 ---- -1394 -626 -679 onlyif mysql # use DIV operator for integer division query I rowsort label-7078 SELECT ALL col1 DIV col1 + + 22 AS col1 FROM tab1 cor0 ---- 23 23 23 skipif mysql # not compatible query I rowsort label-7078 SELECT ALL col1 / col1 + + 22 AS col1 FROM tab1 cor0 ---- 23 23 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - col0 ) * + ( col0 ) - + col2 * 68 col1 FROM tab0 AS cor0 ---- -1293 -13497 -2820 query I rowsort SELECT 82 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to 660751b3166f5cb8964b7ef659605795 query I rowsort SELECT DISTINCT + + col1 * col1 - ( + cor0.col0 + col0 ) * cor0.col0 AS col2 FROM tab0 cor0 ---- -7561 6244 6959 query I rowsort SELECT + + 47 + col1 AS col0 FROM tab2 cor0 ---- 106 64 78 query I rowsort SELECT - tab0.col2 * 29 * cor0.col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to f99139ffeadf0ba5efa8bff86f629eae query I rowsort SELECT ALL + col1 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + - col0 * ( 34 ) FROM tab1 AS cor0 ---- -102 -2176 -2720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + + 2 * + col2 col0 FROM tab0 AS cor0 ---- 246 3 99 query I rowsort SELECT col1 * 74 + - ( - col2 ) AS col1 FROM tab0 ---- 6397 6816 7179 query I rowsort SELECT ALL + 34 * - col1 + col0 FROM tab1 cor0 ---- -276 -362 -881 query I rowsort SELECT DISTINCT + col0 + + 25 FROM tab1 AS cor0 ---- 105 28 89 query I rowsort SELECT DISTINCT - 56 + col2 * col1 + - col1 * - col1 * col2 FROM tab2 cor0 ---- 11572 26728 91984 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 93 + - 6 col0 FROM tab1 AS cor0 ---- 87 87 87 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7092 SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col0 + col0 - - 99 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7092 SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col0 + col0 - - 99 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( col0 ) + + col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT 29 AS col1 FROM tab1 AS cor0 ---- 29 query I rowsort SELECT ALL col0 + + 52 AS col0 FROM tab1 cor0 ---- 116 132 55 onlyif mysql # use DIV operator for integer division query I rowsort label-7096 SELECT ( - col1 ) - col0 DIV CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-7096 SELECT ( - col1 ) - col0 / CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 ---- -12 -25 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-7097 SELECT DISTINCT + - ( cor0.col1 ) + col1 DIV + 60 AS col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-7097 SELECT DISTINCT + - ( cor0.col1 ) + col1 / + 60 AS col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 65 + col2 - + col2 col2 FROM tab1 AS cor0 ---- 65 onlyif mysql # use DIV operator for integer division query I rowsort label-7099 SELECT + - col0 + col0 DIV - col2 AS col1 FROM tab0 AS cor0 ---- -24 -70 -90 skipif mysql # not compatible query I rowsort label-7099 SELECT + - col0 + col0 / - col2 AS col1 FROM tab0 AS cor0 ---- -24 -70 -90 query I rowsort SELECT DISTINCT - col2 + 92 * col2 FROM tab2 AS cor0 ---- 2366 2457 3458 query I rowsort SELECT - + 16 * - col0 AS col0 FROM tab2 AS cor0 ---- 112 1248 1264 query I rowsort SELECT ALL + 45 * col1 AS col0 FROM tab0 ---- 3870 4095 4365 query I rowsort SELECT + col0 * col0 - + ( col0 * col2 ) FROM tab0 AS cor0 ---- -216 1190 623 onlyif mysql # use DIV operator for integer division query I rowsort label-7104 SELECT - 45 DIV - col0 + - ( col1 ) FROM tab1 AS cor0 ---- -10 -11 -13 skipif mysql # not compatible query I rowsort label-7104 SELECT - 45 / - col0 + - ( col1 ) FROM tab1 AS cor0 ---- -10 -11 -13 query I rowsort SELECT 76 + - col1 AS col0 FROM tab0 AS cor0 ---- -10 -15 -21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 * - col2 col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + + 82 - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -15 -4 -9 query I rowsort SELECT + 32 - col0 * 13 AS col2 FROM tab2 AS cor0 ---- -59 -982 -995 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7109 SELECT ( + col2 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7109 SELECT ( + col2 ) + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 7 + tab2.col2 + + tab2.col0 FROM tab2, tab1 AS cor0 ---- 111 124 41 query I rowsort SELECT DISTINCT + col1 * 83 AS col1 FROM tab2 ---- 1411 2573 4897 query I rowsort SELECT DISTINCT 57 * 51 * col2 AS col2 FROM tab0 ---- 238374 2907 95931 query I rowsort SELECT col1 * ( cor0.col0 ) FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-7114 SELECT + col0 + - ( + col0 ) DIV - col1 FROM tab1 AS cor0 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-7114 SELECT + col0 + - ( + col0 ) / - col1 FROM tab1 AS cor0 ---- 3 70 86 query I rowsort SELECT - col1 + ( + col1 ) AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + + col2 + 14 FROM tab2 AS cor0 ---- 40 41 52 query I rowsort SELECT col1 + - tab0.col0 * col2 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT + tab2.col0 * - col1 AS col0 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT - col0 + 63 FROM tab2 cor0 ---- -15 -16 56 query I rowsort SELECT + - col2 * + col0 + - 93 * + cor0.col0 FROM tab1 AS cor0 ---- -15120 -441 -9600 query I rowsort SELECT - 47 FROM tab2, tab2 cor0 ---- 9 values hashing to 6942a0d9558277afd0d00408d65cf5aa query I rowsort SELECT + col0 + + cor0.col2 * - col2 + col1 FROM tab0 AS cor0 ---- -6544 -979 131 onlyif mysql # use DIV operator for integer division query I rowsort label-7123 SELECT - col0 + - col0 DIV + 28 + + col2 AS col1 FROM tab0 AS cor0 ---- -10 -35 9 skipif mysql # not compatible query I rowsort label-7123 SELECT - col0 + - col0 / + 28 + + col2 AS col1 FROM tab0 AS cor0 ---- -10 -35 9 query I rowsort SELECT - 23 + - col2 + ( 68 ) AS col2 FROM tab1 ---- -12 -51 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 70 * - tab0.col1 + - col0 col2 FROM tab0 ---- -6044 -6459 -6825 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 35 * - col2 col2 FROM tab1 ---- 1890 1995 3360 query I rowsort SELECT tab0.col0 * col0 + col2 AS col1 FROM tab0 ---- 1226 609 8003 query I rowsort SELECT - col0 + - col2 * - col0 FROM tab1 cor0 ---- 159 3584 7600 query I rowsort SELECT DISTINCT + col0 * col0 + + col0 FROM tab1 AS cor0 ---- 12 4160 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-7130 SELECT + - cor0.col0 + col0 DIV col1 FROM tab1 cor0 ---- -3 -58 -74 skipif mysql # not compatible query I rowsort label-7130 SELECT + - cor0.col0 + col0 / col1 FROM tab1 cor0 ---- -3 -58 -74 query I rowsort SELECT cor0.col1 * + col2 * col0 FROM tab2 cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL col1 * + cor0.col1 - + 33 FROM tab1 AS cor0 ---- 136 643 67 query I rowsort SELECT DISTINCT + col2 * + ( - 36 + col1 ) AS col2 FROM tab1 cor0 ---- -1482 -2208 -540 query I rowsort SELECT - col2 + - ( + col1 + col1 ) * 32 FROM tab0 AS cor0 ---- -5537 -5906 -6209 query I rowsort SELECT col0 * - 93 + - col1 FROM tab1 AS cor0 ---- -305 -5962 -7453 onlyif mysql # use DIV operator for integer division query I rowsort label-7136 SELECT ALL + - col1 DIV col1 + - col1 DIV col0 AS col0 FROM tab2 AS cor0 ---- -1 -1 -5 skipif mysql # not compatible query I rowsort label-7136 SELECT ALL + - col1 / col1 + - col1 / col0 AS col0 FROM tab2 AS cor0 ---- -1 -1 -5 query I rowsort SELECT DISTINCT col0 - 40 FROM tab2 AS cor0 ---- -33 38 39 query I rowsort SELECT 65 * + col2 * tab2.col2 + col0 + col0 AS col2 FROM tab2 ---- 44096 47399 94018 query I rowsort SELECT DISTINCT - tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- -10 -13 -26 query I rowsort SELECT ALL col2 * 80 AS col2 FROM tab0 cor0 ---- 2640 6560 80 query I rowsort SELECT DISTINCT - 98 * col2 + + col1 FROM tab1 AS cor0 ---- -5266 -5576 -9395 query I rowsort SELECT ALL + ( col1 ) + cor0.col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL + 80 * + 15 FROM tab0 cor0 ---- 1200 1200 1200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7144 SELECT DISTINCT CAST( NULL AS DECIMAL ) / col0 + col2 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7144 SELECT DISTINCT CAST ( NULL AS REAL ) / col0 + col2 AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + ( cor0.col2 ) + - col2 * - col0 * + col2 AS col0 FROM tab2 AS cor0 ---- 114114 5130 52754 query I rowsort SELECT + 52 + col0 * - col2 AS col0 FROM tab0 AS cor0 ---- -7246 -740 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 * - 36 col0 FROM tab2 AS cor0 ---- -1368 -936 -972 query I rowsort SELECT DISTINCT - + 24 * 25 FROM tab2 AS cor0 ---- -600 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7149 SELECT ALL - CAST( NULL AS SIGNED ) - 13 AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7149 SELECT ALL - CAST ( NULL AS INTEGER ) - 13 AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL 66 + col0 * 79 AS col0 FROM tab1 AS cor0 ---- 303 5122 6386 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7151 SELECT DISTINCT + + col1 * - cor0.col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7151 SELECT DISTINCT + + col1 * - cor0.col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7152 SELECT ALL + col0 + + col0 DIV col0 FROM tab2 cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-7152 SELECT ALL + col0 + + col0 / col0 FROM tab2 cor0 ---- 79 8 80 query I rowsort SELECT - + 11 AS col2 FROM tab1 AS cor0 ---- -11 -11 -11 onlyif mysql # use DIV operator for integer division query I rowsort label-7154 SELECT - col2 + - col2 DIV - tab1.col1 FROM tab1 ---- -52 -52 -89 skipif mysql # not compatible query I rowsort label-7154 SELECT - col2 + - col2 / - tab1.col1 FROM tab1 ---- -52 -52 -89 query I rowsort SELECT DISTINCT ( cor1.col0 ) * + cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 4096 6400 9 query I rowsort SELECT + ( tab2.col1 ) * + col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL 85 * col0 + col1 AS col1 FROM tab1 ---- 281 5450 6813 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 10 + col2 col1 FROM tab1 cor0 ---- 44 47 86 query I rowsort SELECT DISTINCT - - 1 + col0 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT ALL col2 + + col2 * 0 FROM tab1 AS cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 14 col1 FROM tab0 AS cor0 ---- 14 14 14 query I rowsort SELECT DISTINCT + 94 + - col1 FROM tab2 AS cor0 ---- 35 63 77 query I rowsort SELECT ALL + ( - col0 ) + col1 * 66 + + col0 AS col2 FROM tab2 AS cor0 ---- 1122 2046 3894 query I rowsort SELECT + ( col1 ) * + col0 AS col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT + col2 + col0 * - ( + col2 * - cor0.col2 ) FROM tab0 AS cor0 ---- 26169 36 598518 query I rowsort SELECT DISTINCT col0 - - cor0.col2 * + 90 * 5 AS col1 FROM tab0 AS cor0 ---- 14874 36989 485 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 11 col0 FROM tab2 AS cor0 ---- -11 -11 -11 query I rowsort SELECT DISTINCT - col0 * + cor0.col1 + - ( + col1 ) AS col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 35 * + col1 * col2 col2 FROM tab0 cor0 ---- 261170 3395 99330 onlyif mysql # use DIV operator for integer division query I rowsort label-7170 SELECT ALL - cor0.col2 + col2 DIV + ( - col0 ) FROM tab1 AS cor0 ---- -57 -72 -97 skipif mysql # not compatible query I rowsort label-7170 SELECT ALL - cor0.col2 + col2 / + ( - col0 ) FROM tab1 AS cor0 ---- -57 -72 -97 query I rowsort SELECT 15 + cor0.col2 AS col1 FROM tab1 cor0 ---- 111 69 72 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 - - col1 col2 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT ALL ( - col1 ) + + ( + col2 + - col1 ) AS col2 FROM tab1 AS cor0 ---- 2 37 70 query I rowsort SELECT - col1 * col2 + + 30 AS col1 FROM tab0 AS cor0 ---- -2808 -67 -7432 query I rowsort SELECT DISTINCT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 ---- 3 64 80 query I rowsort SELECT DISTINCT col0 * col0 * - 97 FROM tab0 ---- -118825 -55872 -768337 query I rowsort SELECT col2 + ( + 12 ) * col2 FROM tab0 ---- 1066 13 429 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + col0 + ( col1 ) col0 FROM tab1 AS cor0 ---- 106 55 84 query I rowsort SELECT ALL + + cor0.col2 + - col0 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT - - col2 * ( - col0 ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT - col0 * tab2.col1 + + 65 FROM tab2 ---- -1278 -152 -4537 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2 ---- 972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd onlyif mysql # use DIV operator for integer division query I rowsort label-7183 SELECT ALL + col0 * col2 DIV col1 FROM tab2 AS cor0 ---- 176 34 6 skipif mysql # not compatible query I rowsort label-7183 SELECT ALL + col0 * col2 / col1 FROM tab2 AS cor0 ---- 176 34 6 query I rowsort SELECT DISTINCT + 97 AS col0 FROM tab2, tab1 AS cor0 ---- 97 onlyif mysql # use DIV operator for integer division query I rowsort label-7185 SELECT ALL - col2 + + col1 DIV + col1 AS col1 FROM tab0 cor0 ---- -32 -81 0 skipif mysql # not compatible query I rowsort label-7185 SELECT ALL - col2 + + col1 / + col1 AS col1 FROM tab0 cor0 ---- -32 -81 0 query I rowsort SELECT ALL - - 10 * + col0 AS col0 FROM tab2 AS cor0 ---- 70 780 790 query I rowsort SELECT ( col2 ) * + col2 * + 85 + 10 AS col2 FROM tab0 ---- 571550 92575 95 query I rowsort SELECT DISTINCT 92 AS col1 FROM tab0, tab2 AS cor0 ---- 92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7189 SELECT DISTINCT + - CAST( + 46 AS SIGNED ) FROM tab2 AS cor0 ---- -46 skipif mysql # not compatible query I rowsort label-7189 SELECT DISTINCT + - CAST ( + 46 AS INTEGER ) FROM tab2 AS cor0 ---- -46 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 94 col0 FROM tab0 AS cor0 ---- 94 94 94 query I rowsort SELECT DISTINCT - ( col2 ) * + col1 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT - + col0 + - 7 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- -24 -512 -640 query I rowsort SELECT ( ( - col2 ) ) FROM tab2 AS cor0 ---- -26 -27 -38 onlyif mysql # use DIV operator for integer division query I rowsort label-7194 SELECT ALL - + 76 DIV col1 col0 FROM tab0 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7194 SELECT ALL - + 76 / col1 col0 FROM tab0 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 37 + 69 col0 FROM tab1 AS cor0 ---- 106 query I rowsort SELECT col1 * + 18 AS col2 FROM tab0 AS cor0 ---- 1548 1638 1746 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 * + col1 col2 FROM tab1 AS cor0 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-7198 SELECT ALL cor0.col1 DIV 42 col1 FROM tab0 AS cor0 ---- 2 2 2 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7198 SELECT ALL cor0.col1 / 42 col1 FROM tab0 AS cor0 ---- 2 2 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7199 SELECT DISTINCT + cor0.col0 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-7199 SELECT DISTINCT + cor0.col0 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - col2 * - col0 + col0 FROM tab1 cor0 ---- 165 3712 7760 query IIIIIIIII rowsort SELECT ALL * FROM tab2, tab1, tab1 cor0 WHERE NULL <= NULL ---- query I rowsort SELECT + - col1 * + col2 * - col0 FROM tab1 cor0 ---- 36480 4212 99840 onlyif mysql # use DIV operator for integer division query I rowsort label-7203 SELECT + col0 + cor0.col0 DIV + col0 FROM tab1 AS cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-7203 SELECT + col0 + cor0.col0 / + col0 FROM tab1 AS cor0 ---- 4 65 81 query I rowsort SELECT 92 * - 16 - + col0 FROM tab2 AS cor0 ---- -1479 -1550 -1551 query I rowsort SELECT - col1 - col1 * col2 AS col1 FROM tab2 AS cor0 ---- -1593 -663 -868 query I rowsort SELECT 30 - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -24 -27 -66 query I rowsort SELECT ALL + col0 * ( + col0 ) + col1 * + col0 FROM tab1 ---- 4736 7440 87 query I rowsort SELECT ( 64 ) * col2 + 4 FROM tab0 ---- 2116 5252 68 query I rowsort SELECT ( col1 ) * tab2.col0 FROM tab2 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-7210 SELECT + 56 DIV + col1 + col2 * CAST( - 67 AS SIGNED ) AS col0 FROM tab1 ---- -3616 -3814 -6428 skipif mysql # not compatible query I rowsort label-7210 SELECT + 56 / + col1 + col2 * CAST ( - 67 AS INTEGER ) AS col0 FROM tab1 ---- -3616 -3814 -6428 query I rowsort SELECT DISTINCT - ( tab1.col1 ) * - col0 AS col0 FROM tab1 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-7212 SELECT ALL 81 DIV - tab0.col0 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to e5212c3c9e2dcf2e1883cdf96538fa7c skipif mysql # not compatible query I rowsort label-7212 SELECT ALL 81 / - tab0.col0 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to e5212c3c9e2dcf2e1883cdf96538fa7c query I rowsort SELECT ALL + 36 FROM tab0 cor0 ---- 36 36 36 query I rowsort SELECT ALL 17 + + col2 AS col0 FROM tab2 AS cor0 ---- 43 44 55 query I rowsort SELECT DISTINCT 83 AS col2 FROM tab0 cor0 ---- 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * cor0.col1 + ( - col0 ) * - col2 col2 FROM tab1 cor0 ---- 3748 7849 838 onlyif mysql # use DIV operator for integer division query I rowsort label-7217 SELECT DISTINCT - col2 DIV col1 + cor0.col2 * col1 + cor0.col1 FROM tab0 AS cor0 ---- 194 2924 7553 skipif mysql # not compatible query I rowsort label-7217 SELECT DISTINCT - col2 / col1 + cor0.col2 * col1 + cor0.col1 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT - + 30 AS col2 FROM tab0 AS cor0 ---- -30 -30 -30 query I rowsort SELECT ALL col0 * - 71 * col1 FROM tab2 AS cor0 ---- -15407 -326742 -95353 query I rowsort SELECT ALL col1 * - ( - col2 ) AS col0 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ( - 46 ) FROM tab2, tab0, tab2 cor0 ---- 27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9 query I rowsort SELECT ALL + 96 AS col1 FROM tab2 ---- 96 96 96 query I rowsort SELECT ALL col1 * 44 AS col2 FROM tab1 ---- 1144 440 572 query I rowsort SELECT col2 - - col1 * col0 AS col1 FROM tab1 AS cor0 ---- 1136 132 697 skipif mysql # not compatible query I rowsort SELECT + ( + col1 ) * cor0.col0 + - CAST ( - 98 AS REAL ) AS col1 FROM tab1 cor0 ---- 1138 176 738 query I rowsort SELECT ( - ( col0 ) ) + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + ( cor0.col0 ) + col0 * - col0 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- -13800 -42840 -704880 query I rowsort SELECT + + 86 + - cor0.col2 FROM tab1 AS cor0 ---- -10 29 32 query I rowsort SELECT col0 + col0 * col2 AS col1 FROM tab1 cor0 ---- 165 3712 7760 query I rowsort SELECT - - 69 * col1 + cor0.col1 FROM tab2 AS cor0 ---- 1190 2170 4130 query I rowsort SELECT 51 * col1 AS col0 FROM tab2 ---- 1581 3009 867 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7232 SELECT ALL + CAST( - col0 AS SIGNED ) * - col2 * tab1.col0 FROM tab1 ---- 233472 486 614400 skipif mysql # not compatible query I rowsort label-7232 SELECT ALL + CAST ( - col0 AS INTEGER ) * - col2 * tab1.col0 FROM tab1 ---- 233472 486 614400 query I rowsort SELECT + + 95 * - col2 AS col2 FROM tab2 cor0 ---- -2470 -2565 -3610 query I rowsort SELECT col0 - col0 * + 97 AS col0 FROM tab1 ---- -288 -6144 -7680 query I rowsort SELECT DISTINCT col2 * + col1 * - col2 - - tab2.col0 * + 92 AS col2 FROM tab2 ---- -17280 -21955 -32708 query I rowsort SELECT ALL col0 - + col1 * + col1 FROM tab1 ---- -36 -673 -89 query I rowsort SELECT ALL col2 * - ( + col0 ) - - col0 AS col1 FROM tab1 ---- -159 -3584 -7600 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7238 SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-7238 SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL query I rowsort SELECT ALL 61 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55 query I rowsort SELECT - col1 * - 26 * + cor0.col1 FROM tab0 AS cor0 ---- 192296 215306 244634 query I rowsort SELECT col2 * + col2 * - 98 FROM tab1 cor0 ---- -285768 -318402 -903168 query I rowsort SELECT DISTINCT + col0 - + 53 * - tab2.col2 FROM tab2 ---- 1438 1456 2093 onlyif mysql # use DIV operator for integer division query I rowsort label-7243 SELECT DISTINCT - tab2.col0 - tab2.col0 DIV 66 FROM tab2 ---- -7 -79 -80 skipif mysql # not compatible query I rowsort label-7243 SELECT DISTINCT - tab2.col0 - tab2.col0 / 66 FROM tab2 ---- -7 -79 -80 query I rowsort SELECT ( + ( + col2 ) ) + col1 * col2 FROM tab1 AS cor0 ---- 1344 1458 627 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + 36 col0 FROM tab1 cor0 ---- 100 116 39 query I rowsort SELECT ALL + 43 * + 28 AS col0 FROM tab2 AS cor0 ---- 1204 1204 1204 onlyif mysql # use DIV operator for integer division query I rowsort label-7247 SELECT DISTINCT + 44 DIV col0 AS col0 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-7247 SELECT DISTINCT + 44 / col0 AS col0 FROM tab0 AS cor0 ---- 0 1 query I rowsort SELECT DISTINCT - 38 * col2 + col0 FROM tab1 cor0 ---- -2049 -2102 -3568 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7249 SELECT - col2 + + 0 * - col2 * CAST( col1 AS SIGNED ) FROM tab2 cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-7249 SELECT - col2 + + 0 * - col2 * CAST ( col1 AS INTEGER ) FROM tab2 cor0 ---- -26 -27 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - cor0.col2 * + 22 - - cor0.col1 col1 FROM tab2 AS cor0 ---- -513 -563 -819 query I rowsort SELECT + 84 + cor0.col1 * + col0 FROM tab2 AS cor0 ---- 1427 301 4686 query I rowsort SELECT - + ( col1 ) + cor0.col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT cor0.col0 * 32 * col0 - + col1 FROM tab1 cor0 ---- 131062 204787 262 query I rowsort SELECT - col2 * cor0.col2 + cor0.col2 * + col0 FROM tab2 AS cor0 ---- -540 1352 1558 query I rowsort SELECT ALL + ( cor0.col2 ) * col0 FROM tab1 AS cor0 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + - 17 col1 FROM tab1 AS cor0 ---- -4 -7 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7257 SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7257 SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - ( + 35 ) * + col2 AS col2 FROM tab0 AS cor0 ---- -1155 -2870 -35 query I rowsort SELECT + 36 * 34 FROM tab0 AS cor0 ---- 1224 1224 1224 query I rowsort SELECT ALL - - 15 * - col1 FROM tab0 AS cor0 ---- -1290 -1365 -1455 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 52 * col2 col0 FROM tab1 AS cor0 ---- -2808 -2964 -4992 query I rowsort SELECT + 51 * + col2 AS col2 FROM tab2 AS cor0 ---- 1326 1377 1938 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + cor0.col1 col2 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - - col0 * + cor0.col1 AS col2 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT col0 * + 35 AS col2 FROM tab0 AS cor0 ---- 1225 3115 840 query I rowsort SELECT + col1 * 74 * col1 FROM tab0 AS cor0 ---- 547304 612794 696266 query I rowsort SELECT ALL + 69 * tab1.col2 AS col0 FROM tab1 ---- 3726 3933 6624 query I rowsort SELECT ALL - col1 + + 9 AS col2 FROM tab1 cor0 ---- -1 -17 -4 query I rowsort SELECT DISTINCT - cor0.col1 + - 54 * - cor0.col0 AS col1 FROM tab2 AS cor0 ---- 347 4153 4249 query I rowsort SELECT DISTINCT - col2 * col0 + col1 + col0 FROM tab2 AS cor0 ---- -151 -1891 -2906 query I rowsort SELECT ALL - cor0.col0 + ( - col2 ) AS col1 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT - col0 * - 1 FROM tab2 AS cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * col2 col1 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + + col2 * 94 FROM tab1 AS cor0 ---- 5076 5358 9024 onlyif mysql # use DIV operator for integer division query I rowsort label-7275 SELECT DISTINCT + col0 * col0 * col1 + col0 DIV + col0 FROM tab2 AS cor0 ---- 106098 1520 358957 skipif mysql # not compatible query I rowsort label-7275 SELECT DISTINCT + col0 * col0 * col1 + col0 / + col0 FROM tab2 AS cor0 ---- 106098 1520 358957 query I rowsort SELECT DISTINCT + col1 + ( + cor0.col0 ) AS col2 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT cor0.col2 * 93 FROM tab2 AS cor0 ---- 2418 2511 3534 query I rowsort SELECT DISTINCT + + col1 + + ( + 22 ) * col1 FROM tab0 AS cor0 ---- 1978 2093 2231 query I rowsort SELECT ALL + col0 + + 26 + 4 * col2 FROM tab0 AS cor0 ---- 182 443 65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 + 65 * col1 col2 FROM tab2 AS cor0 ---- 1026 2008 3757 query I rowsort SELECT ( + tab0.col0 ) + col0 FROM tab0 ---- 178 48 70 query I rowsort SELECT DISTINCT col0 + + col0 AS col0 FROM tab0 cor0 ---- 178 48 70 query I rowsort SELECT + - col2 * + 23 FROM tab2 cor0 ---- -598 -621 -874 query I rowsort SELECT DISTINCT cor1.col0 + + cor0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 128 144 160 6 67 83 query I rowsort SELECT - 42 + + col0 * col1 * + col0 AS col1 FROM tab0 ---- 118783 49494 720769 query I rowsort SELECT ALL col0 * col2 + + col1 FROM tab2 ---- 2087 220 3019 query I rowsort SELECT ALL - + col1 + + col0 * + ( 28 + - col2 ) FROM tab1 cor0 ---- -104 -1866 -5453 query I rowsort SELECT col1 * 74 + + col2 * col0 + 12 AS col1 FROM tab2 ---- 2495 4272 6406 query I rowsort SELECT - 99 + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -185 -190 -196 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 32 + col2 col2 FROM tab2 ---- 58 59 70 query I rowsort SELECT + 30 * - col2 FROM tab1 ---- -1620 -1710 -2880 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + cor0.col0 + + col1 * - col0 col2 FROM tab2 AS cor0 ---- -1422 -224 -4680 onlyif mysql # use DIV operator for integer division query I rowsort label-7293 SELECT DISTINCT col2 * col1 - cor0.col1 DIV col2 col2 FROM tab1 AS cor0 ---- 1248 1404 570 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7293 SELECT DISTINCT col2 * col1 - cor0.col1 / col2 col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL - - 85 AS col2 FROM tab2 AS cor0 ---- 85 85 85 query I rowsort SELECT DISTINCT - - 47 + col0 AS col0 FROM tab1 AS cor0 ---- 111 127 50 query I rowsort SELECT DISTINCT col2 * 57 FROM tab0 AS cor0 ---- 1881 4674 57 onlyif mysql # use DIV operator for integer division query I rowsort label-7297 SELECT DISTINCT 59 DIV - col0 FROM tab2 ---- -8 0 skipif mysql # not compatible query I rowsort label-7297 SELECT DISTINCT 59 / - col0 FROM tab2 ---- -8 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7298 SELECT - ( col2 ) DIV + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7298 SELECT - ( col2 ) / + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + 95 * - ( + col2 ) AS col0 FROM tab0 AS cor0 ---- -3135 -7790 -95 query I rowsort SELECT ALL col1 * + 51 AS col2 FROM tab1 AS cor0 ---- 1326 510 663 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 53 col2 FROM tab1 AS cor0 ---- -53 -53 -53 onlyif mysql # use DIV operator for integer division query I rowsort label-7302 SELECT ALL col2 * ( + col2 ) DIV col0 AS col1 FROM tab0 cor0 ---- 0 45 75 skipif mysql # not compatible query I rowsort label-7302 SELECT ALL col2 * ( + col2 ) / col0 AS col1 FROM tab0 cor0 ---- 0 45 75 query I rowsort SELECT DISTINCT + col0 * - 95 FROM tab0 AS cor0 ---- -2280 -3325 -8455 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( 45 ) col1 FROM tab0 AS cor0 ---- 45 45 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + - 64 col1 FROM tab2 AS cor0 ---- -26 -37 -38 query I rowsort SELECT + - 13 * col2 + - 49 FROM tab2 AS cor0 ---- -387 -400 -543 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - tab2.col0 ) + - col1 col0 FROM tab2 ---- -137 -38 -96 query I rowsort SELECT col0 + + 87 - col0 * + col2 FROM tab2 AS cor0 ---- -1863 -2836 -95 query I rowsort SELECT DISTINCT - cor0.col0 + ( + col1 ) FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT + col2 * cor0.col0 * + col0 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT ALL - col1 * - 16 FROM tab0 AS cor0 ---- 1376 1456 1552 query I rowsort SELECT ALL + 8 + - col0 AS col1 FROM tab0 ---- -16 -27 -81 query I rowsort SELECT + 74 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31 query I rowsort SELECT + col2 * 25 + col2 + col2 AS col1 FROM tab2 cor0 ---- 1026 702 729 query I rowsort SELECT - col2 + ( - 2 ) FROM tab1 AS cor0 ---- -56 -59 -98 query I rowsort SELECT ALL - col0 * ( - col1 ) FROM tab1 ---- 1040 640 78 query I rowsort SELECT - 58 * + col0 + - cor0.col1 FROM tab1 AS cor0 ---- -200 -3722 -4653 query I rowsort SELECT - ( + cor0.col0 ) + + cor0.col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT col1 + - 15 * col0 FROM tab0 AS cor0 ---- -1244 -274 -428 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7320 SELECT col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7320 SELECT col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 73 FROM tab1, tab1 cor0, tab0 AS cor1 ---- 73 query I rowsort SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7323 SELECT ALL - col0 * - CAST( 14 AS SIGNED ) * + col0 + + cor0.col2 FROM tab1 AS cor0 ---- 180 57401 89696 skipif mysql # not compatible query I rowsort label-7323 SELECT ALL - col0 * - CAST ( 14 AS INTEGER ) * + col0 + + cor0.col2 FROM tab1 AS cor0 ---- 180 57401 89696 query I rowsort SELECT DISTINCT + cor0.col0 * 59 AS col2 FROM tab0, tab1 AS cor0 ---- 177 3776 4720 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7325 SELECT ALL - cor0.col2 / CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-7325 SELECT ALL - cor0.col2 / CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 + 61 col0 FROM tab1 AS cor0 ---- 71 74 87 onlyif mysql # use DIV operator for integer division query I rowsort label-7327 SELECT + + ( col1 ) DIV + col0 FROM tab0 AS cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-7327 SELECT + + ( col1 ) / + col0 FROM tab0 AS cor0 ---- 1 2 3 query I rowsort SELECT ALL cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT DISTINCT + 93 * - cor1.col0 - + ( + cor0.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to eb8f51b8d177a6bcc1f429eef7d2c1c0 query I rowsort SELECT + ( ( col0 ) ) FROM tab0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7331 SELECT CAST( col0 AS SIGNED ) * - col0 FROM tab0 ---- -1225 -576 -7921 skipif mysql # not compatible query I rowsort label-7331 SELECT CAST ( col0 AS INTEGER ) * - col0 FROM tab0 ---- -1225 -576 -7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7332 SELECT + 64 / - cor0.col0 + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7332 SELECT + 64 / - cor0.col0 + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 7 * 3 FROM tab2 ---- -21 -21 -21 onlyif mysql # use DIV operator for integer division query I rowsort label-7334 SELECT DISTINCT + tab0.col2 + + col1 DIV col0 FROM tab0 ---- 3 36 83 skipif mysql # not compatible query I rowsort label-7334 SELECT DISTINCT + tab0.col2 + + col1 / col0 FROM tab0 ---- 3 36 83 query I rowsort SELECT DISTINCT col1 + - col1 * + col0 AS col2 FROM tab1 ---- -1027 -52 -630 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7336 SELECT DISTINCT - CAST( NULL AS SIGNED ) + ( tab1.col0 ) * + tab1.col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-7336 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + ( tab1.col0 ) * + tab1.col2 FROM tab1 ---- NULL query I rowsort SELECT + 98 + + col2 + 30 AS col0 FROM tab0 ---- 129 161 210 query I rowsort SELECT DISTINCT + col0 + - tab0.col0 AS col2 FROM tab0 ---- 0 query I rowsort SELECT DISTINCT ( + cor0.col1 ) AS col1 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT ALL - + 90 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to c0d96679aba507520916e8654e5a6618 query I rowsort SELECT ALL cor0.col0 + + cor0.col0 + col0 AS col2 FROM tab1 AS cor0 ---- 192 240 9 query I rowsort SELECT col1 * + 53 + + col1 AS col0 FROM tab2 cor0 ---- 1674 3186 918 query I rowsort SELECT DISTINCT + tab2.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 26 27 38 query I rowsort SELECT - - col1 + + 42 FROM tab2 AS cor0 ---- 101 59 73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * 81 + col2 col0 FROM tab1 cor0 ---- 297 5241 6576 query I rowsort SELECT col0 - + 25 AS col1 FROM tab2 cor0 ---- -18 53 54 query I rowsort SELECT + col0 * col0 + - 2 FROM tab2 AS cor0 ---- 47 6082 6239 query I rowsort SELECT DISTINCT - cor0.col2 * - col2 * 99 + col0 + + ( + 9 ) AS col0 FROM tab2 AS cor0 ---- 143044 67011 72187 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7349 SELECT DISTINCT cor0.col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7349 SELECT DISTINCT cor0.col1 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - ( - cor0.col2 ) AS col2 FROM tab2, tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT + 60 * + 95 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 931db2b049a7fcd0d2a6f2394701de71 onlyif mysql # use DIV operator for integer division query I rowsort label-7352 SELECT DISTINCT + col1 DIV ( - 33 ) AS col2 FROM tab2 ---- -1 0 skipif mysql # not compatible query I rowsort label-7352 SELECT DISTINCT + col1 / ( - 33 ) AS col2 FROM tab2 ---- -1 0 query I rowsort SELECT ALL cor0.col0 + - 51 AS col2 FROM tab0 AS cor0 ---- -16 -27 38 query I rowsort SELECT ALL - col0 * + col2 + col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT ( col1 ) * col1 - ( - tab2.col2 ) * tab2.col1 FROM tab2 ---- 1798 5015 935 query I rowsort SELECT + col1 * - col2 * col0 - + col2 FROM tab0 ---- -3396 -664200 -68145 query I rowsort SELECT + - ( - 60 ) + + col0 * col0 FROM tab0 AS cor0 ---- 1285 636 7981 query I rowsort SELECT cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab2 cor2 ---- 243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6 query I rowsort SELECT ALL - 79 * + col2 + - col2 AS col0 FROM tab2 ---- -2080 -2160 -3040 query I rowsort SELECT DISTINCT - 70 + tab1.col0 FROM tab1 ---- -6 -67 10 query I rowsort SELECT cor0.col2 * 7 + col2 AS col1 FROM tab0 AS cor0 ---- 264 656 8 query I rowsort SELECT - cor0.col0 * + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7363 SELECT - - 53 + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7363 SELECT - - 53 + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + + col2 - col1 * + cor0.col2 FROM tab2 cor0 ---- -1508 -608 -810 query I rowsort SELECT ALL - - col1 + + col2 FROM tab0 cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - cor0.col2 + - col0 * - 60 col2 FROM tab0 AS cor0 ---- 1407 2099 5258 query I rowsort SELECT ALL + + 0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT + + 18 * col2 + - ( 15 ) * + col2 AS col0 FROM tab2 AS cor0 ---- 114 78 81 query I rowsort SELECT ( + col1 ) + ( col0 ) FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL 49 FROM tab2, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to a40d8754a5be3ce2309c61bfd3e00197 query I rowsort SELECT + col1 + + ( col1 ) * - cor0.col2 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT ALL col2 + - ( col2 ) * col0 AS col1 FROM tab1 cor0 ---- -108 -3591 -7584 query I rowsort SELECT ALL cor0.col1 * + ( - 74 ) AS col0 FROM tab0 AS cor0 ---- -6364 -6734 -7178 query I rowsort SELECT ALL + col1 + - cor0.col1 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - - col0 + 36 * ( col1 ) FROM tab0 AS cor0 ---- 3120 3365 3527 query I rowsort SELECT DISTINCT 32 FROM tab1, tab2, tab2 AS cor0 ---- 32 query I rowsort SELECT DISTINCT 0 * col2 FROM tab1 ---- 0 query I rowsort SELECT col2 + + 98 FROM tab1 AS cor0 ---- 152 155 194 query I rowsort SELECT col1 * col0 + - ( col1 + + col2 ) AS col2 FROM tab0 ---- 1945 3297 7926 onlyif mysql # use DIV operator for integer division query I rowsort label-7380 SELECT - + 75 DIV - col1 - col1 FROM tab1 AS cor0 ---- -24 -3 -8 skipif mysql # not compatible query I rowsort label-7380 SELECT - + 75 / - col1 - col1 FROM tab1 AS cor0 ---- -24 -3 -8 query I rowsort SELECT ALL - - 24 * col0 FROM tab0 AS cor0 ---- 2136 576 840 skipif mysql # not compatible query I rowsort SELECT ALL CAST ( ( col2 ) AS REAL ) FROM tab2 AS cor0 ---- 26 27 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7383 SELECT DISTINCT - CAST( col1 AS SIGNED ) + col0 * - 2 AS col1 FROM tab1 AS cor0 ---- -138 -173 -32 skipif mysql # not compatible query I rowsort label-7383 SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col0 * - 2 AS col1 FROM tab1 AS cor0 ---- -138 -173 -32 query I rowsort SELECT - 32 + - 27 FROM tab2 AS cor0 ---- -59 -59 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7385 SELECT - + ( col1 ) - col1 * CAST( 35 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- -3096 -3276 -3492 skipif mysql # not compatible query I rowsort label-7385 SELECT - + ( col1 ) - col1 * CAST ( 35 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- -3096 -3276 -3492 query I rowsort SELECT DISTINCT - cor0.col2 * + 91 FROM tab1 AS cor0 ---- -4914 -5187 -8736 query I rowsort SELECT ALL + + 34 * - col1 AS col2 FROM tab2 AS cor0 ---- -1054 -2006 -578 query I rowsort SELECT col1 * + 56 + col0 * - col0 FROM tab1 cor0 ---- -3536 -5672 1447 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7389 SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 / col0 AS col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7389 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 / col0 AS col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL col1 * + col0 * - col0 AS col2 FROM tab0 cor0 ---- -118825 -49536 -720811 query I rowsort SELECT + 65 - 5 FROM tab1 AS cor0 ---- 60 60 60 query I rowsort SELECT DISTINCT - - 43 * + col0 + - col1 * + col1 FROM tab2 AS cor0 ---- -127 -660 3108 query I rowsort SELECT + + col1 * + col1 + - col1 + col1 FROM tab1 AS cor0 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 69 * + col0 + col1 col1 FROM tab0 AS cor0 ---- 1742 2512 6232 query I rowsort SELECT DISTINCT - + 97 * - col2 AS col1 FROM tab1 cor0 ---- 5238 5529 9312 query I rowsort SELECT ALL + 15 AS col0 FROM tab1 cor0 ---- 15 15 15 onlyif mysql # use DIV operator for integer division query I rowsort label-7397 SELECT ALL - + ( + 15 ) * col2 DIV CAST( col0 + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -122 15 90 skipif mysql # not compatible query I rowsort label-7397 SELECT ALL - + ( + 15 ) * col2 / CAST ( col0 + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -122 15 90 skipif mysql # not compatible query I rowsort SELECT + CAST ( - 24 AS REAL ) FROM tab0 AS cor0 ---- -24 -24 -24 query I rowsort SELECT ALL - cor0.col1 + + col1 * col1 AS col2 FROM tab2 AS cor0 ---- 272 3422 930 query I rowsort SELECT + ( 73 ) * + col2 + 55 + col1 FROM tab2 AS cor0 ---- 2012 2057 2846 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7401 SELECT + CAST( NULL AS SIGNED ) + + 66 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7401 SELECT + CAST ( NULL AS INTEGER ) + + 66 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 * + ( col1 ) AS col1 FROM tab0 AS cor0 ---- 7396 8281 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-7403 SELECT 13 DIV - col0 AS col2 FROM tab2 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-7403 SELECT 13 / - col0 AS col2 FROM tab2 AS cor0 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7404 SELECT DISTINCT + + CAST( - col0 AS SIGNED ) * - col0 * + 70 FROM tab1 AS cor0 ---- 286720 448000 630 skipif mysql # not compatible query I rowsort label-7404 SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) * - col0 * + 70 FROM tab1 AS cor0 ---- 286720 448000 630 query I rowsort SELECT ALL col2 + col0 * + col2 AS col1 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT DISTINCT - tab2.col1 + 97 * col2 + col2 AS col2 FROM tab2 ---- 2489 2615 3707 query IIIIIIIII rowsort SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 243 values hashing to 098e223d780e18b6582523fd6f55eec9 query I rowsort SELECT col1 * 44 AS col0 FROM tab1 ---- 1144 440 572 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 onlyif mysql # use DIV operator for integer division query I rowsort label-7410 SELECT ALL - 7 DIV 17 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7410 SELECT ALL - 7 / 17 FROM tab0 ---- 0 0 0 query I rowsort SELECT - col2 * - 23 AS col2 FROM tab0 AS cor0 ---- 1886 23 759 query I rowsort SELECT - ( col0 ) + + col0 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * col1 + col1 * col2 AS col2 FROM tab0 AS cor0 ---- 10234 15743 9506 query I rowsort SELECT + 50 + - ( - col2 ) AS col1 FROM tab0 AS cor0 ---- 132 51 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7415 SELECT ALL tab2.col0 + + col1 * - CAST( + ( col0 ) + col0 * col0 AS SIGNED ) AS col0 FROM tab2 ---- -107361 -1729 -363480 skipif mysql # not compatible query I rowsort label-7415 SELECT ALL tab2.col0 + + col1 * - CAST ( + ( col0 ) + col0 * col0 AS INTEGER ) AS col0 FROM tab2 ---- -107361 -1729 -363480 query I rowsort SELECT + - cor0.col0 * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-7417 SELECT DISTINCT 22 DIV col2 AS col0 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7417 SELECT DISTINCT 22 / col2 AS col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT 26 * + cor0.col0 AS col1 FROM tab0 cor0 ---- 2314 624 910 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + + col2 col1 FROM tab2 cor0 ---- 52 54 76 query I rowsort SELECT + 61 AS col0 FROM tab1 cor0 ---- 61 61 61 query I rowsort SELECT 46 * + col0 AS col1 FROM tab2 AS cor0 ---- 322 3588 3634 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 17 + col1 col0 FROM tab0 AS cor0 ---- 69 74 80 query I rowsort SELECT DISTINCT - col2 + - col1 * 36 FROM tab2 cor0 ---- -1143 -2150 -650 query I rowsort SELECT - col1 * col2 + cor0.col1 * col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + - col2 + cor0.col0 * 19 * - col1 AS col2 FROM tab0 AS cor0 ---- -153963 -39249 -64506 query I rowsort SELECT ALL cor0.col0 - + ( - col1 * col1 ) FROM tab0 AS cor0 ---- 7420 8370 9444 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 * col0 - - col1 col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT - + col1 - 26 AS col0 FROM tab0 AS cor0 ---- -112 -117 -123 query I rowsort SELECT + cor0.col0 * - ( + col2 ) - - col1 * + col2 AS col0 FROM tab2 cor0 ---- -2356 -494 648 query I rowsort SELECT col1 + 36 FROM tab1 AS cor0 ---- 46 49 62 query I rowsort SELECT col1 - 93 FROM tab1 AS cor0 ---- -67 -80 -83 query I rowsort SELECT + col1 * ( col1 * col1 ) + - col0 * col2 FROM tab2 AS cor0 ---- 1911 203351 29602 query I rowsort SELECT ALL col1 - + col1 * ( + col2 ) * - 30 FROM tab1 ---- 17110 37453 42146 query I rowsort SELECT + col1 + 93 - - col0 FROM tab0 ---- 203 225 273 query I rowsort SELECT col1 * + 20 FROM tab1 cor0 ---- 200 260 520 onlyif mysql # use DIV operator for integer division query I rowsort label-7436 SELECT - + col0 DIV ( col0 * col1 ) - + ( col1 ) FROM tab2 AS cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-7436 SELECT - + col0 / ( col0 * col1 ) - + ( col1 ) FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ALL + - ( cor0.col1 ) AS col2 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ( + 94 ) AS col2 FROM tab0 AS cor0 ---- 94 94 94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7439 SELECT - ( col0 ) * col0 + CAST( NULL AS DECIMAL ) * col1 * - col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7439 SELECT - ( col0 ) * col0 + CAST ( NULL AS REAL ) * col1 * - col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 31 * col0 FROM tab2 AS cor0 ---- 217 2418 2449 query I rowsort SELECT cor1.col1 - cor1.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2 ---- 243 values hashing to c213f8acecacff55f3c932f55b84f8a7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7442 SELECT DISTINCT + CAST( - col1 * + col0 AS SIGNED ) FROM tab2 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-7442 SELECT DISTINCT + CAST ( - col1 * + col0 AS INTEGER ) FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT - cor0.col0 * cor0.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 151b2942c50caff563eede8bd3674ac1 query I rowsort SELECT + 82 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 55 col2 FROM tab1 ---- -55 -55 -55 query I rowsort SELECT + col1 * ( col2 ) AS col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT ALL - col0 * ( - col1 ) + - col1 AS col2 FROM tab2 AS cor0 ---- 1326 186 4543 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7448 SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-7448 SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- NULL query I rowsort SELECT DISTINCT - col0 * - 15 FROM tab2 AS cor0 ---- 105 1170 1185 onlyif mysql # use DIV operator for integer division query I rowsort label-7450 SELECT + - col2 DIV - 2 AS col0 FROM tab1 AS cor0 ---- 27 28 48 skipif mysql # not compatible query I rowsort label-7450 SELECT + - col2 / - 2 AS col0 FROM tab1 AS cor0 ---- 27 28 48 query I rowsort SELECT DISTINCT - + col0 + + col2 * - col0 FROM tab0 cor0 ---- -70 -7387 -816 skipif mysql # not compatible query I rowsort SELECT CAST ( - col0 AS REAL ) + + col2 AS col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT + - col0 + - col1 * - col2 AS col0 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT ALL + + 61 + - col0 * col1 FROM tab1 AS cor0 ---- -17 -579 -979 skipif mysql # not compatible query I rowsort SELECT col2 - CAST ( + col0 AS REAL ) AS col1 FROM tab1 ---- -7 16 51 query I rowsort SELECT ALL - 83 * - 41 AS col0 FROM tab1 AS cor0 ---- 3403 3403 3403 query I rowsort SELECT + ( 44 ) * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 3784 4004 4268 query I rowsort SELECT ALL 76 + + col0 AS col2 FROM tab0 AS cor0 ---- 100 111 165 onlyif mysql # use DIV operator for integer division query I rowsort label-7459 SELECT 62 DIV 38 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 skipif mysql # not compatible query I rowsort label-7459 SELECT 62 / 38 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 onlyif mysql # use DIV operator for integer division query I rowsort label-7460 SELECT + CAST( - col2 AS SIGNED ) + - tab2.col1 DIV ( col0 ) FROM tab2 ---- -26 -31 -38 skipif mysql # not compatible query I rowsort label-7460 SELECT + CAST ( - col2 AS INTEGER ) + - tab2.col1 / ( col0 ) FROM tab2 ---- -26 -31 -38 query I rowsort SELECT ALL - - cor0.col2 + col1 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort SELECT CAST ( 58 * col0 + 82 AS REAL ) AS col1 FROM tab1 ---- 256 3794 4722 query I rowsort SELECT DISTINCT + col0 * 23 AS col1 FROM tab0 ---- 2047 552 805 query I rowsort SELECT ALL + ( col0 ) * + col0 AS col0 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT ALL tab1.col2 * 97 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8b9f8cb5ca1be1209727b4191b64478e query I rowsort SELECT - - col2 + ( col2 ) FROM tab0 cor0 ---- 164 2 66 query I rowsort SELECT ALL col0 * col0 - - ( + col1 ) AS col0 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT ALL col0 * 69 * cor0.col2 + + col1 + col2 FROM tab1 AS cor0 ---- 11258 251779 530029 onlyif mysql # use DIV operator for integer division query I rowsort label-7469 SELECT DISTINCT col1 DIV col0 - col2 AS col1 FROM tab0 ---- -30 -81 1 skipif mysql # not compatible query I rowsort label-7469 SELECT DISTINCT col1 / col0 - col2 AS col1 FROM tab0 ---- -30 -81 1 query I rowsort SELECT ALL tab0.col2 - col0 AS col1 FROM tab0 ---- -34 -7 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7471 SELECT DISTINCT ( - col2 ) - CAST( NULL AS DECIMAL ) * + 78 AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-7471 SELECT DISTINCT ( - col2 ) - CAST ( NULL AS REAL ) * + 78 AS col2 FROM tab1 ---- NULL query I rowsort SELECT ALL ( - col0 ) - col2 FROM tab2 ---- -104 -117 -34 query I rowsort SELECT ALL 9 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b query I rowsort SELECT cor1.col0 AS col0 FROM tab2, tab1 cor0, tab1 cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7475 SELECT ALL - col1 * CAST( NULL AS SIGNED ) * col0 + col2 + col0 col1 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7475 SELECT ALL - col1 * CAST ( NULL AS INTEGER ) * col0 + col2 + col0 col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + + col1 + 16 * col1 AS col2 FROM tab1 AS cor0 ---- 170 221 442 query I rowsort SELECT DISTINCT col1 * ( + col1 ) AS col2 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT col2 * - cor0.col0 + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT ALL + + cor0.col0 - ( - col2 ) AS col2 FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7480 SELECT + col2 + + CAST( + col0 * + col1 AS SIGNED ) FROM tab0 AS cor0 ---- 2097 3396 8181 skipif mysql # not compatible query I rowsort label-7480 SELECT + col2 + + CAST ( + col0 * + col1 AS INTEGER ) FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT - col0 + + col2 * col0 FROM tab1 ---- 159 3584 7600 onlyif mysql # use DIV operator for integer division query I rowsort label-7482 SELECT col2 DIV + col0 + - col1 AS col2 FROM tab0 ---- -85 -91 -97 skipif mysql # not compatible query I rowsort label-7482 SELECT col2 / + col0 + - col1 AS col2 FROM tab0 ---- -85 -91 -97 query I rowsort SELECT - col2 * 65 + + tab2.col0 * col0 * - 29 + - ( col2 ) AS col1 FROM tab2 ---- -178152 -183497 -3203 query I rowsort SELECT DISTINCT - col1 + ( + col2 + col1 ) AS col2 FROM tab1 ---- 54 57 96 query I rowsort SELECT - col2 - 71 AS col1 FROM tab2 ---- -109 -97 -98 query I rowsort SELECT DISTINCT - col1 + + 69 * col2 AS col0 FROM tab1 ---- 3700 3923 6611 query I rowsort SELECT col2 * - col2 + col0 AS col0 FROM tab2 AS cor0 ---- -1365 -598 -722 onlyif mysql # use DIV operator for integer division query I rowsort label-7488 SELECT - col0 DIV ( col0 ) col0 FROM tab2 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7488 SELECT - col0 / ( col0 ) col0 FROM tab2 ---- -1 -1 -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7489 SELECT ALL + col2 * + CAST( col0 AS SIGNED ) + tab2.col0 AS col2 FROM tab2 ---- 196 2106 3081 skipif mysql # not compatible query I rowsort label-7489 SELECT ALL + col2 * + CAST ( col0 AS INTEGER ) + tab2.col0 AS col2 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT - 19 * - 94 + col2 FROM tab0 AS cor0 ---- 1787 1819 1868 query I rowsort SELECT ALL + + ( - cor0.col0 ) * + col2 + ( - col0 ) * - col1 AS col2 FROM tab2 AS cor0 ---- -1659 2574 28 query I rowsort SELECT 49 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to a40d8754a5be3ce2309c61bfd3e00197 query I rowsort SELECT + tab2.col1 AS col1 FROM tab2, tab2 cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT ALL cor0.col1 * - col0 * col0 AS col1 FROM tab0 cor0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT col1 + + 98 AS col1 FROM tab1 AS cor0 ---- 108 111 124 query I rowsort SELECT ALL col0 + - col1 * - col0 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT + col1 + - 10 FROM tab2 cor0 ---- 21 49 7 query I rowsort SELECT ALL + col0 * 68 FROM tab1 AS cor0 ---- 204 4352 5440 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7499 SELECT - + CAST( NULL AS DECIMAL ) + 27 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7499 SELECT - + CAST ( NULL AS REAL ) + 27 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 * 66 + - col0 AS col1 FROM tab2 AS cor0 ---- -1201 -2053 -3972 onlyif mysql # use DIV operator for integer division query I rowsort label-7501 SELECT ALL - + 64 + col0 DIV - col1 FROM tab0 AS cor0 ---- -64 -64 -64 skipif mysql # not compatible query I rowsort label-7501 SELECT ALL - + 64 + col0 / - col1 FROM tab0 AS cor0 ---- -64 -64 -64 query I rowsort SELECT ALL + ( + 33 ) * + col1 + - 90 * - ( - col2 ) FROM tab2 AS cor0 ---- -1407 -2859 -393 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + - 98 * col2 * cor0.col2 col2 FROM tab2 AS cor0 ---- -141495 -66189 -71411 query I rowsort SELECT DISTINCT col0 + 64 AS col2 FROM tab2 AS cor0 ---- 142 143 71 query I rowsort SELECT - tab2.col1 * + 37 * 78 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 4500ae78d9894ad2bc2526a7c5603769 query I rowsort SELECT DISTINCT + - col2 + col2 * ( col1 ) AS col1 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT ALL - col0 * col1 * - 50 AS col0 FROM tab2 AS cor0 ---- 10850 230100 67150 onlyif mysql # use DIV operator for integer division query I rowsort label-7508 SELECT + col0 * col1 DIV col1 AS col0 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-7508 SELECT + col0 * col1 / col1 AS col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL + col2 + + col1 * - 19 FROM tab1 AS cor0 ---- -133 -151 -440 query I rowsort SELECT ALL - 16 + - col1 * 36 * - 37 AS col0 FROM tab1 AS cor0 ---- 13304 17300 34616 query I rowsort SELECT DISTINCT + 16 + + cor0.col2 * col1 AS col0 FROM tab1 AS cor0 ---- 1264 1420 586 query I rowsort SELECT + 61 AS col1 FROM tab1 cor0 ---- 61 61 61 query I rowsort SELECT + col2 * col1 * + 68 FROM tab1 AS cor0 ---- 38760 84864 95472 onlyif mysql # use DIV operator for integer division query I rowsort label-7514 SELECT ALL + cor0.col2 DIV col0 + + col1 col2 FROM tab1 cor0 ---- 10 14 44 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7514 SELECT ALL + cor0.col2 / col0 + + col1 col2 FROM tab1 cor0 ---- 10 14 44 query I rowsort SELECT ALL + - col0 * ( + col0 ) * col0 + ( + cor0.col0 * col1 ) - + col1 AS col0 FROM tab0 AS cor0 ---- -11846 -39577 -696961 query I rowsort SELECT - col1 - + col0 * 8 AS col1 FROM tab2 AS cor0 ---- -649 -683 -87 query I rowsort SELECT DISTINCT - - col2 * 65 FROM tab1 AS cor0 ---- 3510 3705 6240 query I rowsort SELECT DISTINCT + col1 + - 95 - 82 FROM tab1 cor0 ---- -151 -164 -167 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7519 SELECT + col1 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7519 SELECT + col1 - - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - cor0.col0 + - 67 AS col1 FROM tab1 AS cor0 ---- -131 -147 -70 query I rowsort SELECT DISTINCT - - cor0.col2 * 42 + col1 FROM tab2 AS cor0 ---- 1151 1165 1613 query I rowsort SELECT - cor0.col1 + + col2 - - cor0.col1 * - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0 ---- -206 -40913 -83117 query I rowsort SELECT - 10 AS col0 FROM tab1 cor0 ---- -10 -10 -10 query I rowsort SELECT - - 53 + + col1 AS col2 FROM tab0 AS cor0 ---- 139 144 150 query I rowsort SELECT - col2 * - 65 * + col0 AS col0 FROM tab0 ---- 2275 474370 51480 query I rowsort SELECT - ( + tab1.col2 ) * - col2 + col1 AS col2 FROM tab1 ---- 2942 3259 9229 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 10 * col1 col1 FROM tab1 ---- 100 130 260 query I rowsort SELECT + col2 * col1 * col2 AS col0 FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT col2 * col0 + 66 FROM tab1 AS cor0 ---- 228 3714 7746 query I rowsort SELECT ALL - + cor0.col0 + + cor0.col2 * + 70 + col2 * col2 FROM tab0 cor0 ---- 12375 3375 36 query I rowsort SELECT col2 * col1 + - ( col2 + + col2 ) * col1 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT - tab2.col2 * - col2 AS col0 FROM tab2 ---- 1444 676 729 query I rowsort SELECT DISTINCT - 39 FROM tab1, tab0 AS cor0 ---- -39 query I rowsort SELECT DISTINCT - col0 - col1 * - col1 AS col1 FROM tab1 AS cor0 ---- 36 673 89 onlyif mysql # use DIV operator for integer division query I rowsort label-7535 SELECT DISTINCT + - cor0.col1 DIV 53 AS col1 FROM tab2 cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-7535 SELECT DISTINCT + - cor0.col1 / 53 AS col1 FROM tab2 cor0 ---- -1 0 query I rowsort SELECT ALL - col0 * - ( cor0.col2 ) + - col2 AS col1 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT col2 + col1 * + 66 AS col1 FROM tab0 cor0 ---- 5709 6088 6403 query I rowsort SELECT ALL + - col1 * ( cor0.col2 ) FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL + col1 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT ALL + 7 * col2 * col1 AS col1 FROM tab0 AS cor0 ---- 19866 52234 679 query I rowsort SELECT ALL + - ( col2 ) * - col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2 ---- 243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8 skipif mysql # not compatible query I rowsort SELECT - CAST ( 43 AS REAL ) + col2 AS col1 FROM tab0 cor0 ---- -10 -42 39 query I rowsort SELECT - + 7 + 14 FROM tab2 AS cor0 ---- 7 7 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7545 SELECT + ( - col1 ) * col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- -244068 -679042 -9409 skipif mysql # not compatible query I rowsort label-7545 SELECT + ( - col1 ) * col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT 59 * + cor0.col0 FROM tab1 cor0 ---- 177 3776 4720 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7547 SELECT - - CAST( col1 AS SIGNED ) * col1 FROM tab2 AS cor0 ---- 289 3481 961 skipif mysql # not compatible query I rowsort label-7547 SELECT - - CAST ( col1 AS INTEGER ) * col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT + - 96 * col1 + 94 FROM tab0 AS cor0 ---- -8162 -8642 -9218 onlyif mysql # use DIV operator for integer division query I rowsort label-7549 SELECT + 79 * col2 DIV - 75 col2 FROM tab2 ---- -27 -28 -40 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7549 SELECT + 79 * col2 / - 75 col2 FROM tab2 ---- -27 -28 -40 query I rowsort SELECT DISTINCT - col0 + - col1 * + cor0.col0 + col0 * col2 AS col2 FROM tab2 AS cor0 ---- -2652 -35 1580 query I rowsort SELECT + - cor0.col1 * + cor0.col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT col0 * + col1 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT + col0 + ( 97 ) * col2 AS col2 FROM tab1 AS cor0 ---- 5241 5593 9392 query I rowsort SELECT DISTINCT - - col2 * + 81 - + col0 AS col2 FROM tab2 AS cor0 ---- 2028 2180 2999 query I rowsort SELECT DISTINCT + col2 + + 68 * + col0 FROM tab2 AS cor0 ---- 503 5330 5410 query I rowsort SELECT + - 96 * + 41 AS col1 FROM tab0 AS cor0 ---- -3936 -3936 -3936 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * - tab2.col2 col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT col1 * + ( - 2 ) FROM tab0 ---- -172 -182 -194 query I rowsort SELECT 91 + + col2 AS col2 FROM tab2 ---- 117 118 129 query I rowsort SELECT DISTINCT col0 + - tab2.col2 * ( - col0 ) AS col0 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT ALL + col0 + - col1 * + 36 FROM tab0 ---- -3072 -3187 -3457 query I rowsort SELECT + + ( - col2 ) + - cor0.col1 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT ALL - - col1 + cor0.col1 + ( + 21 ) AS col0 FROM tab0 AS cor0 ---- 193 203 215 query I rowsort SELECT + + cor0.col0 * - col2 - ( - col1 + cor0.col2 * col2 ) FROM tab0 AS cor0 ---- -13931 -1795 61 query I rowsort SELECT DISTINCT 72 * col2 FROM tab2 AS cor0 ---- 1872 1944 2736 query I rowsort SELECT ALL 83 * col2 FROM tab0 AS cor0 ---- 2739 6806 83 query I rowsort SELECT + - col2 * - col1 - - ( ( - col1 ) ) AS col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT ALL ( + col0 ) + + col0 * + col0 AS col0 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT DISTINCT + col1 - col0 AS col0 FROM tab2 cor0 ---- -19 -62 24 query I rowsort SELECT ALL + - col2 * - col2 - col1 AS col1 FROM tab0 AS cor0 ---- -96 1003 6633 query I rowsort SELECT ALL + - col1 + 64 * 30 AS col2 FROM tab1 AS cor0 ---- 1894 1907 1910 query I rowsort SELECT ALL + col2 - cor0.col0 AS col0 FROM tab1 AS cor0 ---- -7 16 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 - 71 * col0 col2 FROM tab0 AS cor0 ---- -1728 -2520 -6408 query I rowsort SELECT DISTINCT + col2 * - 97 FROM tab0 AS cor0 ---- -3201 -7954 -97 query I rowsort SELECT DISTINCT col2 * 63 AS col1 FROM tab2 cor0 ---- 1638 1701 2394 query I rowsort SELECT ALL - col1 * - 34 - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0 ---- 1046 3988 8122 query I rowsort SELECT DISTINCT - - col2 + col2 * + 84 AS col2 FROM tab0 AS cor0 ---- 2805 6970 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 + - col2 col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col2 * col1 + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0 ---- -70 1326 208 query I rowsort SELECT + cor0.col0 * cor0.col1 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - 69 * col1 FROM tab2 cor0 ---- -1173 -2139 -4071 query I rowsort SELECT 12 * col1 AS col1 FROM tab1 AS cor0 ---- 120 156 312 query I rowsort SELECT - col2 * + 96 + col2 FROM tab2 ---- -2470 -2565 -3610 query I rowsort SELECT - col0 + col1 * col2 AS col0 FROM tab1 AS cor0 ---- 1168 1401 506 query I rowsort SELECT + 15 * col2 AS col0 FROM tab2 AS cor0 ---- 390 405 570 query I rowsort SELECT DISTINCT - 33 * - col2 * col1 AS col1 FROM tab0 AS cor0 ---- 246246 3201 93654 query I rowsort SELECT DISTINCT - 90 AS col1 FROM tab0, tab0 cor0 ---- -90 query I rowsort SELECT ALL - - 16 + + col0 * col0 * cor0.col0 FROM tab2 AS cor0 ---- 359 474568 493055 query I rowsort SELECT ALL 75 * col1 * col2 AS col2 FROM tab1 AS cor0 ---- 105300 42750 93600 query I rowsort SELECT ( + col1 ) * 48 + - 97 * col0 * col2 - col0 AS col0 FROM tab2 AS cor0 ---- -16852 -193962 -290457 query I rowsort SELECT - - cor0.col1 * col2 + - col2 AS col2 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT + 68 * - col1 FROM tab0 cor0 ---- -5848 -6188 -6596 query I rowsort SELECT + ( col1 ) * - 18 + - col1 FROM tab0 AS cor0 ---- -1634 -1729 -1843 query I rowsort SELECT ALL col1 * col2 * 3 FROM tab0 AS cor0 ---- 22386 291 8514 query I rowsort SELECT - ( - col1 ) * + 73 * + 49 FROM tab0 AS cor0 ---- 307622 325507 346969 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 * cor0.col2 col1 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7597 SELECT ALL - CAST( NULL AS SIGNED ) - 3 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7597 SELECT ALL - CAST ( NULL AS INTEGER ) - 3 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7598 SELECT - col1 DIV col1 col2 FROM tab2 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7598 SELECT - col1 / col1 col2 FROM tab2 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-7599 SELECT ALL col1 - - col0 DIV + col1 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-7599 SELECT ALL col1 - - col0 / + col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT ALL col0 * col1 - col2 FROM tab0 ---- 2031 3394 8017 query I rowsort SELECT ALL ( - col1 ) - - col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT + cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2 ---- 243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6 query I rowsort SELECT DISTINCT - + col0 * + col1 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT + 3 * - col1 * + 40 + 20 AS col1 FROM tab2 ---- -2020 -3700 -7060 query I rowsort SELECT DISTINCT 84 + - col1 FROM tab1 ---- 58 71 74 query I rowsort SELECT col1 + tab2.col0 + + 21 FROM tab2 ---- 117 158 59 query I rowsort SELECT - - 34 FROM tab0, tab1, tab1 cor0 ---- 27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa query I rowsort SELECT DISTINCT col2 * col0 + + ( 44 * col2 ) FROM tab2 ---- 1377 3172 4674 query I rowsort SELECT DISTINCT - col2 + + col0 + - col2 FROM tab0 ---- -42 -75 33 query I rowsort SELECT + tab1.col0 * 27 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 38509f5495f543f696c509446f5cefe4 query I rowsort SELECT DISTINCT ( col2 ) * col0 AS col1 FROM tab0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col0 * col0 + + col2 * col2 col2 FROM tab0 ---- 118826 50625 727535 query I rowsort SELECT - + ( + col2 ) AS col2 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT + col0 * col1 + + col2 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT + 40 * - col0 FROM tab1 AS cor0 ---- -120 -2560 -3200 query I rowsort SELECT - - 91 * - col2 FROM tab0 AS cor0 ---- -3003 -7462 -91 query I rowsort SELECT DISTINCT - ( col2 ) + col1 * + col0 AS col2 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL + ( col1 ) * + col2 + cor0.col1 FROM tab1 AS cor0 ---- 1261 1430 580 onlyif mysql # use DIV operator for integer division query I rowsort label-7619 SELECT DISTINCT - 29 DIV + 69 + col0 col2 FROM tab0 AS cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7619 SELECT DISTINCT - 29 / + 69 + col0 col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + 59 + + col1 * col1 AS col1 FROM tab1 AS cor0 ---- 159 228 735 query I rowsort SELECT DISTINCT + cor0.col2 + + col2 + + col0 AS col1 FROM tab1 AS cor0 ---- 111 178 272 query I rowsort SELECT DISTINCT col1 + cor0.col2 AS col2 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT ALL + col2 + - ( col2 ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 89 * + 69 FROM tab0 AS cor0 ---- 6141 6141 6141 query I rowsort SELECT ALL + + 30 * + 86 + col1 + col0 AS col2 FROM tab0 AS cor0 ---- 2690 2712 2760 onlyif mysql # use DIV operator for integer division query I rowsort label-7626 SELECT ALL col2 DIV 22 AS col0 FROM tab2 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7626 SELECT ALL col2 / 22 AS col0 FROM tab2 ---- 1 1 1 query I rowsort SELECT DISTINCT ( - tab2.col1 ) AS col0 FROM tab2, tab2 AS cor0 ---- -17 -31 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7628 SELECT + col1 * CAST( col1 * + col2 AS SIGNED ) AS col0 FROM tab0 cor0 ---- 244068 679042 9409 skipif mysql # not compatible query I rowsort label-7628 SELECT + col1 * CAST ( col1 * + col2 AS INTEGER ) AS col0 FROM tab0 cor0 ---- 244068 679042 9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + - 13 * col2 col2 FROM tab2 AS cor0 ---- -260 -344 -415 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7630 SELECT + cor0.col0 + CAST( NULL AS SIGNED ) * + 94 * col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7630 SELECT + cor0.col0 + CAST ( NULL AS INTEGER ) * + 94 * col1 FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7631 SELECT - cor0.col0 * - CAST( NULL AS SIGNED ) * 63 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7631 SELECT - cor0.col0 * - CAST ( NULL AS INTEGER ) * 63 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 + + ( + col2 + col0 ) FROM tab0 AS cor0 ---- 260 71 81 query I rowsort SELECT + ( + ( - col1 ) ) + + col0 FROM tab0 AS cor0 ---- -2 -62 -62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7634 SELECT + - CAST( col0 AS SIGNED ) + col0 * col0 AS col2 FROM tab2 AS cor0 ---- 42 6006 6162 skipif mysql # not compatible query I rowsort label-7634 SELECT + - CAST ( col0 AS INTEGER ) + col0 * col0 AS col2 FROM tab2 AS cor0 ---- 42 6006 6162 query I rowsort SELECT ( 40 ) - - col1 FROM tab1 AS cor0 ---- 50 53 66 onlyif mysql # use DIV operator for integer division query I rowsort label-7636 SELECT ALL + - ( + col1 ) DIV + col1 + 60 * - col2 AS col1 FROM tab0 AS cor0 ---- -1981 -4921 -61 skipif mysql # not compatible query I rowsort label-7636 SELECT ALL + - ( + col1 ) / + col1 + 60 * - col2 AS col1 FROM tab0 AS cor0 ---- -1981 -4921 -61 query I rowsort SELECT DISTINCT + col2 + - ( col0 * col0 ) AS col0 FROM tab2 ---- -22 -6058 -6203 onlyif mysql # use DIV operator for integer division query I rowsort label-7638 SELECT + col2 DIV - col1 + + 65 FROM tab2 AS cor0 ---- 63 65 65 skipif mysql # not compatible query I rowsort label-7638 SELECT + col2 / - col1 + + 65 FROM tab2 AS cor0 ---- 63 65 65 query I rowsort SELECT + 83 + - col0 AS col2 FROM tab2 AS cor0 ---- 4 5 76 query I rowsort SELECT ALL + 84 AS col2 FROM tab2 ---- 84 84 84 query I rowsort SELECT 38 * col0 * + 71 AS col0 FROM tab0 cor0 ---- 240122 64752 94430 query I rowsort SELECT DISTINCT - + 6 * col0 AS col0 FROM tab2 AS cor0 ---- -42 -468 -474 query I rowsort SELECT ALL col0 + col1 * + col2 AS col2 FROM tab2 cor0 ---- 1612 725 844 query I rowsort SELECT ALL col1 + col1 * - col0 AS col1 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT col2 * + 77 FROM tab0 AS cor0 ---- 2541 6314 77 query I rowsort SELECT DISTINCT 13 FROM tab2, tab0, tab1 AS cor0 ---- 13 query I rowsort SELECT col1 * 34 + - col1 AS col2 FROM tab1 AS cor0 ---- 330 429 858 query I rowsort SELECT DISTINCT - col1 + + ( ( + col1 ) ) * cor0.col2 * col1 FROM tab1 cor0 ---- 16211 36478 5690 onlyif mysql # use DIV operator for integer division query I rowsort label-7649 SELECT ALL + col1 DIV CAST( col2 AS SIGNED ) + col1 col2 FROM tab1 AS cor0 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7649 SELECT ALL + col1 / CAST ( col2 AS INTEGER ) + col1 col2 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT ALL + cor0.col0 + cor0.col1 * col0 AS col1 FROM tab2 AS cor0 ---- 1422 224 4680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 60 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 1d2ab302ae60f95b15e68cf89083b162 query I rowsort SELECT DISTINCT ( - cor1.col0 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 ---- -7 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-7653 SELECT col0 * cor0.col0 DIV + col0 col1 FROM tab1 AS cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7653 SELECT col0 * cor0.col0 / + col0 col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT 82 * + 16 FROM tab1 ---- 1312 1312 1312 query I rowsort SELECT 83 * 85 + + col2 FROM tab2 AS cor0 ---- 7081 7082 7093 query I rowsort SELECT ALL col2 - tab0.col1 AS col0 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT ALL + cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd onlyif mysql # use DIV operator for integer division query I rowsort label-7658 SELECT ALL - cor0.col1 DIV 80 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 84da757b1b7b0069ce25607f39bc08d9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7658 SELECT ALL - cor0.col1 / 80 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 84da757b1b7b0069ce25607f39bc08d9 query I rowsort SELECT + - 79 * col1 FROM tab1 AS cor0 ---- -1027 -2054 -790 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + ( - 3 ) + - cor0.col2 col0 FROM tab2, tab1 AS cor0 ---- -51 -54 -93 query I rowsort SELECT + 37 * + col1 + + col2 * - col1 FROM tab2 AS cor0 ---- -17 310 649 query I rowsort SELECT DISTINCT col1 + + tab0.col0 + - col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT col0 + col0 * - col0 + - col0 AS col1 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT + col0 * col0 + col2 AS col1 FROM tab1 ---- 4153 63 6496 query I rowsort SELECT DISTINCT + col0 + tab1.col2 + col2 FROM tab1 ---- 111 178 272 query I rowsort SELECT ALL + - col2 * - col0 + - col0 * col1 - - col0 * + 70 AS col2 FROM tab0 AS cor0 ---- -910 408 5429 query I rowsort SELECT ALL - col0 AS col2 FROM tab2 WHERE ( NULL ) = - col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-7668 SELECT col2 DIV - col1 - - col1 * - col2 FROM tab1 ---- -1255 -1406 -575 skipif mysql # not compatible query I rowsort label-7668 SELECT col2 / - col1 - - col1 * - col2 FROM tab1 ---- -1255 -1406 -575 query I rowsort SELECT - col0 * col0 * - tab0.col0 AS col1 FROM tab0 ---- 13824 42875 704969 query I rowsort SELECT ALL - col2 + col2 + + tab2.col2 FROM tab2 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-7671 SELECT DISTINCT - tab2.col2 DIV + col1 AS col2 FROM tab2 ---- -2 0 skipif mysql # not compatible query I rowsort label-7671 SELECT DISTINCT - tab2.col2 / + col1 AS col2 FROM tab2 ---- -2 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7672 SELECT - col0 * - col1 DIV + tab0.col1 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-7672 SELECT - col0 * - col1 / + tab0.col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT ALL - tab2.col0 * col1 + col1 FROM tab2 ---- -1326 -186 -4543 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT BETWEEN col0 AND NULL ---- query I rowsort SELECT ALL col1 - tab1.col1 AS col1 FROM tab1 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + + col0 col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT col1 + - col2 * col2 + - tab2.col0 * - col2 AS col0 FROM tab2 ---- -509 1411 1575 query I rowsort SELECT ALL - col1 * cor0.col1 + - col1 AS col1 FROM tab1 AS cor0 ---- -110 -182 -702 query I rowsort SELECT + col1 + col2 - col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL 94 * col0 + - col0 FROM tab0 ---- 2232 3255 8277 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( tab1.col2 ) * tab1.col2 col0 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT ALL col1 + cor0.col2 + - col2 AS col2 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7683 SELECT ALL - col0 * col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7683 SELECT ALL - col0 * col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 + + col0 * + ( col1 ) FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT DISTINCT col0 * col0 + - ( + col0 ) + col1 AS col2 FROM tab0 cor0 ---- 1287 638 7923 onlyif mysql # use DIV operator for integer division query I rowsort label-7686 SELECT DISTINCT + - col1 DIV col1 + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-7686 SELECT DISTINCT + - col1 / col1 + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 53 56 95 query I rowsort SELECT DISTINCT 40 * col0 * - col2 + 72 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- -285512 -29952 1120 query I rowsort SELECT - col2 * col0 - 82 FROM tab2 AS cor0 ---- -2110 -271 -3084 query I rowsort SELECT ALL col1 + tab2.col1 + - col2 AS col1 FROM tab2 WHERE NULL IN ( + tab2.col2 + col2 * col1 ) ---- query I rowsort SELECT - col1 * tab0.col0 + tab0.col1 + - col0 * col2 FROM tab0 ---- -15306 -2770 -3333 query I rowsort SELECT + col2 * + col1 + + col0 + - tab2.col1 FROM tab2 ---- 1553 708 813 query I rowsort SELECT tab2.col0 FROM tab2 WHERE NOT - col1 <> NULL ---- query I rowsort SELECT - col1 * col0 + col2 FROM tab1 WHERE NOT NULL NOT IN ( col0 * col1 * col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL ---- query I rowsort SELECT - col0 * col2 * col1 AS col1 FROM tab2 AS cor0 ---- -119652 -51034 -5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col1 * - col1 * - col1 col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col2 AND - col1 * col2 * + cor0.col1 ---- 1000 17576 2197 query I rowsort SELECT ALL - col2 FROM tab0 AS cor0 WHERE col1 <= col1 ---- -1 -33 -82 query III rowsort SELECT * FROM tab2 WHERE NOT ( col2 ) <= + col0 ---- 7 31 27 query I rowsort SELECT col2 + col2 * + col0 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT col2 - col0 * - col1 FROM tab1 ---- 1136 132 697 query I rowsort SELECT ALL - tab0.col2 - - col0 AS col0 FROM tab0 ---- -9 34 7 query I rowsort SELECT - col2 + col1 * + col1 AS col0 FROM tab0 ---- 7363 8199 9408 query I rowsort SELECT 5 * - 57 AS col2 FROM tab2 AS cor0 ---- -285 -285 -285 query I rowsort SELECT DISTINCT col1 * + 14 FROM tab1 AS cor0 ---- 140 182 364 query I rowsort SELECT DISTINCT tab1.col0 * tab1.col0 AS col1 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT DISTINCT + col2 + 57 FROM tab2 AS cor0 ---- 83 84 95 query I rowsort SELECT 0 * - cor0.col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ( - 89 ) * col1 * col2 AS col0 FROM tab2 AS cor0 ---- -136526 -57494 -74493 query I rowsort SELECT ALL col2 * - 34 FROM tab2 ---- -1292 -884 -918 query I rowsort SELECT + 8 * + col1 AS col2 FROM tab0 cor0 ---- 688 728 776 onlyif mysql # use DIV operator for integer division query I rowsort label-7711 SELECT DISTINCT + 40 DIV + 84 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-7711 SELECT DISTINCT + 40 / + 84 FROM tab0 ---- 0 query I rowsort SELECT col0 * - col2 * col1 + - col2 AS col1 FROM tab2 ---- -119678 -51072 -5886 query I rowsort SELECT + + cor0.col0 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT DISTINCT + col1 * 50 AS col0 FROM tab2 AS cor0 ---- 1550 2950 850 query I rowsort SELECT cor0.col2 * - ( col1 ) FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # use DIV operator for integer division query I rowsort label-7716 SELECT ALL col0 + col2 DIV 48 FROM tab1 AS cor0 ---- 4 65 82 skipif mysql # not compatible query I rowsort label-7716 SELECT ALL col0 + col2 / 48 FROM tab1 AS cor0 ---- 4 65 82 query I rowsort SELECT ALL - col1 * + ( 53 ) + col2 AS col2 FROM tab0 AS cor0 ---- -4525 -4741 -5140 query I rowsort SELECT DISTINCT + + col1 + cor0.col0 * + cor0.col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT 88 * + col0 FROM tab1 ---- 264 5632 7040 onlyif mysql # use DIV operator for integer division query I rowsort label-7720 SELECT DISTINCT + 19 * - col0 + col0 DIV + ( col1 ) FROM tab2 ---- -133 -1481 -1497 skipif mysql # not compatible query I rowsort label-7720 SELECT DISTINCT + 19 * - col0 + col0 / + ( col1 ) FROM tab2 ---- -133 -1481 -1497 query I rowsort SELECT DISTINCT + 1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + + col0 + + 76 col1 FROM tab1 ---- 76 76 76 onlyif mysql # use DIV operator for integer division query I rowsort label-7723 SELECT ALL + 53 DIV col2 + 0 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7723 SELECT ALL + 53 / col2 + 0 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL + cor0.col0 * ( + col1 ) AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL cor0.col2 + - cor0.col0 AS col0 FROM tab0 cor0 ---- -34 -7 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + ( + col1 + - col2 ) * ( col2 ) col0 FROM tab1 AS cor0 ---- -1458 -2622 -7872 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 * + 84 col1 FROM tab1 AS cor0 ---- -252 -5376 -6720 onlyif mysql # use DIV operator for integer division query I rowsort label-7728 SELECT DISTINCT + + col0 * col1 DIV col2 AS col1 FROM tab1 AS cor0 ---- 1 10 11 skipif mysql # not compatible query I rowsort label-7728 SELECT DISTINCT + + col0 * col1 / col2 AS col1 FROM tab1 AS cor0 ---- 1 10 11 query I rowsort SELECT DISTINCT + col0 * + 89 AS col0 FROM tab2 AS cor0 ---- 623 6942 7031 query I rowsort SELECT ALL cor0.col1 + 44 FROM tab0 AS cor0 ---- 130 135 141 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col0 * 75 col0 FROM tab1 ---- 225 4800 6000 query I rowsort SELECT + col0 * col0 + + 81 FROM tab0 AS cor0 ---- 1306 657 8002 query I rowsort SELECT ( - col1 * + col1 + + col2 ) AS col0 FROM tab0 ---- -7363 -8199 -9408 skipif mysql # not compatible query I rowsort SELECT - CAST ( col0 AS REAL ) * col0 + col0 FROM tab2 AS cor0 ---- -42 -6006 -6162 query I rowsort SELECT ALL - - 6 - + 38 FROM tab0 AS cor0 ---- -32 -32 -32 query I rowsort SELECT DISTINCT cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-7737 SELECT ALL + col0 * + ( col1 ) - + col2 DIV - col1 FROM tab1 AS cor0 ---- 1047 645 80 skipif mysql # not compatible query I rowsort label-7737 SELECT ALL + col0 * + ( col1 ) - + col2 / - col1 FROM tab1 AS cor0 ---- 1047 645 80 query I rowsort SELECT - + 72 * - col2 AS col2 FROM tab2 AS cor0 ---- 1872 1944 2736 onlyif mysql # use DIV operator for integer division query I rowsort label-7739 SELECT - + col2 DIV + col0 FROM tab1 cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-7739 SELECT - + col2 / + col0 FROM tab1 cor0 ---- -1 -18 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col2 + - col1 col1 FROM tab0 AS cor0 ---- -194 -2924 -7553 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + + col2 * + cor0.col0 col2 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT ALL + col2 * col0 + - 77 + col2 AS col2 FROM tab2 cor0 ---- 139 1977 2963 query I rowsort SELECT ALL cor0.col0 + + 85 * + cor0.col2 + col1 FROM tab0 cor0 ---- 217 2915 7150 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col1 + col2 - + ( - col2 ) col2 FROM tab1 AS cor0 ---- 124 134 205 query I rowsort SELECT - - col2 * + ( 86 ) + + col1 FROM tab0 AS cor0 ---- 183 2924 7143 query I rowsort SELECT col2 * - cor0.col0 + - col1 FROM tab0 AS cor0 ---- -132 -7389 -878 onlyif mysql # use DIV operator for integer division query I rowsort label-7747 SELECT DISTINCT + + col2 + + col2 DIV + 74 AS col2 FROM tab2 cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-7747 SELECT DISTINCT + + col2 + + col2 / + 74 AS col2 FROM tab2 cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT col2 - - ( 1 ) * - col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT col0 * + ( - 72 ) * col2 AS col0 FROM tab1 ---- -11664 -262656 -552960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + 89 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- -89 query I rowsort SELECT ALL col1 * 72 * - col1 AS col2 FROM tab2 ---- -20808 -250632 -69192 query I rowsort SELECT + col0 + 18 FROM tab2 AS cor0 ---- 25 96 97 query I rowsort SELECT col1 * + ( - 95 ) AS col2 FROM tab2 AS cor0 ---- -1615 -2945 -5605 query I rowsort SELECT DISTINCT tab0.col1 * 71 * col2 FROM tab0 ---- 201498 529802 6887 query I rowsort SELECT tab2.col1 * - col1 * + col0 FROM tab2 ---- -22831 -271518 -6727 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT ( + col1 ) NOT BETWEEN col1 AND col1 OR + col2 <= - cor0.col2 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT + col2 + col2 * col1 * + cor0.col1 + - col2 * - col2 AS col1 FROM tab0 cor0 ---- 245190 685848 9411 query I rowsort SELECT - col2 * - col0 - + cor0.col1 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT DISTINCT + cor0.col2 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-7760 SELECT col1 + col0 + - col0 DIV col1 AS col1 FROM tab2 AS cor0 ---- 136 38 92 skipif mysql # not compatible query I rowsort label-7760 SELECT col1 + col0 + - col0 / col1 AS col1 FROM tab2 AS cor0 ---- 136 38 92 onlyif mysql # use DIV operator for integer division query I rowsort label-7761 SELECT + + col0 DIV col0 + col0 * + col2 + + col2 col0 FROM tab1 AS cor0 ---- 217 3706 7777 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7761 SELECT + + col0 / col0 + col0 * + col2 + + col2 col0 FROM tab1 AS cor0 ---- 217 3706 7777 query I rowsort SELECT + tab2.col1 * + col0 * col1 AS col1 FROM tab2 ---- 22831 271518 6727 query I rowsort SELECT + col0 + col2 + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -29 -61 80 query I rowsort SELECT - col2 * + col2 + cor0.col2 * - col2 * col0 + col0 AS col2 FROM tab0 cor0 ---- -1 -27201 -605071 query I rowsort SELECT DISTINCT + col1 * col1 * - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1000 -17576 -2197 query I rowsort SELECT DISTINCT col2 + - col0 * col1 FROM tab2 cor0 ---- -1305 -190 -4576 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col1 <= NULL ---- query I rowsort SELECT - col0 AS col2 FROM tab1 WHERE col1 - col2 BETWEEN NULL AND ( + col2 ) ---- query I rowsort SELECT ALL col1 + col0 + tab1.col0 AS col1 FROM tab1 ---- 138 173 32 query I rowsort SELECT - col0 + - col1 * + col1 FROM tab1 AS cor0 ---- -164 -249 -679 query IIIIII rowsort SELECT * FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) > NULL ---- query I rowsort SELECT - col1 - cor0.col2 FROM tab2 cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT + ( col0 + tab0.col0 ) AS col1 FROM tab0 ---- 178 48 70 query I rowsort SELECT - tab0.col2 * + col0 * col0 AS col2 FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT ALL col0 + tab1.col2 - tab1.col0 FROM tab1 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-7776 SELECT DISTINCT col1 + - col2 DIV - col0 - col0 AS col0 FROM tab2 ---- -19 -62 27 skipif mysql # not compatible query I rowsort label-7776 SELECT DISTINCT col1 + - col2 / - col0 - col0 AS col0 FROM tab2 ---- -19 -62 27 query I rowsort SELECT + col0 FROM tab0 WHERE ( col2 ) <= col1 AND NOT NULL NOT IN ( tab0.col1 * - col2 + col2 ) ---- query I rowsort SELECT - + col0 - + cor0.col1 FROM tab1 cor0 ---- -29 -74 -93 query I rowsort SELECT + col2 * col0 + + col0 + + col2 FROM tab0 AS cor0 ---- 71 7469 849 onlyif mysql # use DIV operator for integer division query I rowsort label-7780 SELECT + col1 + - col2 + col1 DIV col1 AS col1 FROM tab1 AS cor0 ---- -27 -46 -82 skipif mysql # not compatible query I rowsort label-7780 SELECT + col1 + - col2 + col1 / col1 AS col1 FROM tab1 AS cor0 ---- -27 -46 -82 query I rowsort SELECT ALL - col1 + + 35 * + col0 FROM tab0 AS cor0 ---- 1128 3024 754 onlyif mysql # use DIV operator for integer division query I rowsort label-7782 SELECT ALL + - col2 DIV - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7782 SELECT ALL + - col2 / - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + col2 * + 22 AS col0 FROM tab2 AS cor0 ---- 572 594 836 query I rowsort SELECT - col0 + + ( 21 ) AS col1 FROM tab0 AS cor0 ---- -14 -3 -68 query I rowsort SELECT ALL - + col1 + 39 * - cor0.col2 FROM tab1 AS cor0 ---- -2132 -2233 -3757 query I rowsort SELECT col0 - + tab2.col2 AS col0 FROM tab2 ---- -20 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-7787 SELECT DISTINCT cor1.col0 DIV 74 AS col0 FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1 ---- 0 1 skipif mysql # not compatible query I rowsort label-7787 SELECT DISTINCT cor1.col0 / 74 AS col0 FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1 ---- 0 1 query I rowsort SELECT + col1 + col1 * ( + 50 ) FROM tab0 ---- 4386 4641 4947 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7789 SELECT + col2 + + CAST( NULL AS SIGNED ) / - col0 col1 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7789 SELECT + col2 + + CAST ( NULL AS INTEGER ) / - col0 col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - + col0 * 62 * col2 AS col2 FROM tab2 AS cor0 ---- -11718 -125736 -186124 onlyif mysql # use DIV operator for integer division query I rowsort label-7791 SELECT + tab0.col1 * + ( col1 ) + col1 DIV + col2 AS col0 FROM tab0 ---- 7398 8282 9506 skipif mysql # not compatible query I rowsort label-7791 SELECT + tab0.col1 * + ( col1 ) + col1 / + col2 AS col0 FROM tab0 ---- 7398 8282 9506 query I rowsort SELECT DISTINCT col1 + 55 FROM tab2 AS cor0 ---- 114 72 86 query I rowsort SELECT - col0 * 42 * + 61 FROM tab1 AS cor0 ---- -163968 -204960 -7686 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7794 SELECT ALL + col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7794 SELECT ALL + col0 * CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2, tab0 AS cor3 ---- 3645 values hashing to 2270901c73a658a63f841c68db8155ba onlyif mysql # use DIV operator for integer division query I rowsort label-7796 SELECT ALL - col0 + + col0 + col1 DIV col2 AS col1 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7796 SELECT ALL - col0 + + col0 + col1 / col2 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT - 5 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 81 values hashing to ede490c59604723c000449e027e5cf18 query I rowsort SELECT DISTINCT + col0 + + tab0.col0 AS col0 FROM tab0 ---- 178 48 70 query I rowsort SELECT - cor0.col2 * cor0.col1 * - col1 FROM tab0 AS cor0 ---- 244068 679042 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-7800 SELECT col1 DIV - col1 + - col0 AS col0 FROM tab0 AS cor0 ---- -25 -36 -90 skipif mysql # not compatible query I rowsort label-7800 SELECT col1 / - col1 + - col0 AS col0 FROM tab0 AS cor0 ---- -25 -36 -90 query I rowsort SELECT DISTINCT - col1 * - col0 * + ( + col2 ) FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT - ( col0 ) * 43 AS col1 FROM tab1 AS cor0 ---- -129 -2752 -3440 query I rowsort SELECT DISTINCT + 38 * col2 AS col0 FROM tab2 AS cor0 ---- 1026 1444 988 query I rowsort SELECT DISTINCT + + tab1.col0 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1 ---- 3 64 80 query I rowsort SELECT col2 + - col0 * - tab0.col0 * - col0 FROM tab0 ---- -13791 -42874 -704887 onlyif mysql # use DIV operator for integer division query I rowsort label-7806 SELECT DISTINCT - col2 DIV + col1 - - 24 AS col2 FROM tab1 AS cor0 ---- 17 19 22 skipif mysql # not compatible query I rowsort label-7806 SELECT DISTINCT - col2 / + col1 - - 24 AS col2 FROM tab1 AS cor0 ---- 17 19 22 query I rowsort SELECT + - col2 * - col0 + col0 AS col0 FROM tab0 AS cor0 ---- 70 7387 816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7808 SELECT DISTINCT - - 39 * col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7808 SELECT DISTINCT - - 39 * col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7809 SELECT ALL - - col2 * col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7809 SELECT ALL - - col2 * col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - - col2 + col1 * - 58 FROM tab1 AS cor0 ---- -1454 -523 -658 query I rowsort SELECT - 19 + - col1 * cor0.col0 * cor0.col2 FROM tab1 AS cor0 ---- -36499 -4231 -99859 query I rowsort SELECT ALL col2 * - col1 + col0 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT + col0 * 98 + - col2 FROM tab1 AS cor0 ---- 240 6215 7744 query I rowsort SELECT 85 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7 query I rowsort SELECT ALL 75 FROM tab2, tab0 cor0 ---- 9 values hashing to 22042bfd4d787415457a42bb93d48eea skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 75 + 9 col0 FROM tab0 AS cor0 ---- 84 84 84 query I rowsort SELECT ALL - 75 - col0 * - col0 FROM tab0 AS cor0 ---- 1150 501 7846 query I rowsort SELECT ALL ( - tab0.col1 ) AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f query I rowsort SELECT DISTINCT 6 + col1 AS col2 FROM tab1 ---- 16 19 32 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7820 SELECT ALL - CAST( col0 AS SIGNED ) * col0 AS col1 FROM tab2 ---- -49 -6084 -6241 skipif mysql # not compatible query I rowsort label-7820 SELECT ALL - CAST ( col0 AS INTEGER ) * col0 AS col1 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT + - ( - 72 ) * col1 FROM tab0 AS cor0 ---- 6192 6552 6984 query I rowsort SELECT - - col1 - - cor0.col0 AS col2 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7823 SELECT ALL CAST( NULL AS SIGNED ) * 68 + col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7823 SELECT ALL CAST ( NULL AS INTEGER ) * 68 + col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + cor0.col1 * - col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-7825 SELECT + col0 + col0 DIV + 80 FROM tab0 cor0 ---- 24 35 90 skipif mysql # not compatible query I rowsort label-7825 SELECT + col0 + col0 / + 80 FROM tab0 cor0 ---- 24 35 90 query I rowsort SELECT DISTINCT - 22 + + cor0.col2 FROM tab2 AS cor0 ---- 16 4 5 query I rowsort SELECT ALL + col1 - col0 * col2 AS col0 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT + - 74 + - col2 FROM tab1 AS cor0 ---- -128 -131 -170 skipif mysql # not compatible query I rowsort SELECT CAST ( col1 AS REAL ) FROM tab0 ---- 86 91 97 query I rowsort SELECT 28 + col2 * col0 + - col1 AS col1 FROM tab1 ---- 164 3666 7695 query I rowsort SELECT - 16 * - col2 FROM tab0 ---- 1312 16 528 query I rowsort SELECT DISTINCT + tab2.col1 + 78 FROM tab2 ---- 109 137 95 query I rowsort SELECT 27 * + col1 + - tab0.col1 + ( - col2 ) FROM tab0 ---- 2203 2284 2521 onlyif mysql # use DIV operator for integer division query I rowsort label-7834 SELECT 13 DIV col0 + col0 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-7834 SELECT 13 / col0 + col0 FROM tab0 ---- 24 35 89 query I rowsort SELECT - ( - 90 * col0 ) + col2 AS col0 FROM tab1 ---- 324 5817 7296 query I rowsort SELECT ( - 97 ) * + col0 FROM tab0 ---- -2328 -3395 -8633 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7837 SELECT DISTINCT + CAST( - cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-7837 SELECT DISTINCT + CAST ( - cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 onlyif mysql # use DIV operator for integer division query I rowsort label-7838 SELECT ( - cor0.col1 ) DIV cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7838 SELECT ( - cor0.col1 ) / cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-7839 SELECT - - col0 + - col1 + - cor0.col2 DIV - cor0.col2 FROM tab1 AS cor0 ---- -22 55 68 skipif mysql # not compatible query I rowsort label-7839 SELECT - - col0 + - col1 + - cor0.col2 / - cor0.col2 FROM tab1 AS cor0 ---- -22 55 68 onlyif mysql # use DIV operator for integer division query I rowsort label-7840 SELECT DISTINCT ( col2 ) DIV col2 AS col0 FROM tab1 ---- 1 skipif mysql # not compatible query I rowsort label-7840 SELECT DISTINCT ( col2 ) / col2 AS col0 FROM tab1 ---- 1 query I rowsort SELECT ( ( - col0 ) ) * col2 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT + 44 + 83 AS col1 FROM tab2 AS cor0 ---- 127 127 127 query I rowsort SELECT col2 * - col2 * + 35 FROM tab0 ---- -235340 -35 -38115 query I rowsort SELECT DISTINCT col2 * + col0 * col0 + + col2 * col0 FROM tab1 ---- 237120 622080 648 query I rowsort SELECT + col0 * - col1 * tab1.col0 FROM tab1 ---- -234 -40960 -83200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7846 SELECT + ( tab1.col1 ) / - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7846 SELECT + ( tab1.col1 ) / - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( col1 ) * col1 AS col0 FROM tab2 AS cor0 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 - ( cor0.col0 * - cor0.col0 ) col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT - col0 + + col2 + col1 AS col0 FROM tab2 AS cor0 ---- -24 51 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7850 SELECT + col1 + - CAST( - col0 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0 ---- 138 173 32 skipif mysql # not compatible query I rowsort label-7850 SELECT + col1 + - CAST ( - col0 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0 ---- 138 173 32 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col1 + cor0.col1 * col1 col2 FROM tab2 cor0 ---- 272 3422 930 onlyif mysql # use DIV operator for integer division query I rowsort label-7852 SELECT + col0 DIV col2 + + 37 - col0 FROM tab0 AS cor0 ---- -51 13 37 skipif mysql # not compatible query I rowsort label-7852 SELECT + col0 / col2 + + 37 - col0 FROM tab0 AS cor0 ---- -51 13 37 query I rowsort SELECT + col0 + 68 + + col1 AS col0 FROM tab2 AS cor0 ---- 106 164 205 query I rowsort SELECT tab0.col0 + col2 + + tab0.col2 FROM tab0 ---- 253 37 90 query I rowsort SELECT ALL + col0 - + 38 * tab0.col0 FROM tab0 ---- -1295 -3293 -888 onlyif mysql # use DIV operator for integer division query I rowsort label-7856 SELECT tab1.col0 DIV col0 - - col1 AS col0 FROM tab1 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-7856 SELECT tab1.col0 / col0 - - col1 AS col0 FROM tab1 ---- 11 14 27 onlyif mysql # use DIV operator for integer division query I rowsort label-7857 SELECT DISTINCT col2 * ( - cor0.col1 ) DIV col2 + + col1 * + col0 AS col1 FROM tab1 AS cor0 ---- 1027 52 630 skipif mysql # not compatible query I rowsort label-7857 SELECT DISTINCT col2 * ( - cor0.col1 ) / col2 + + col1 * + col0 AS col1 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT col1 * - ( col2 ) FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT - col1 - 76 AS col2 FROM tab2 ---- -107 -135 -93 query I rowsort SELECT DISTINCT 94 AS col0 FROM tab2, tab2 AS cor0 ---- 94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7861 SELECT - col0 + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7861 SELECT - col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 59 - col1 FROM tab1 AS cor0 ---- 33 46 49 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - ( col0 ) * col0 + 27 col2 FROM tab2 AS cor0 ---- 6111 6268 76 query I rowsort SELECT ALL 48 * col1 AS col1 FROM tab2 AS cor0 ---- 1488 2832 816 query I rowsort SELECT - + ( - col0 ) * col2 + col2 * col0 FROM tab2 AS cor0 ---- 378 4056 6004 query I rowsort SELECT DISTINCT + col0 * ( - col0 ) + - col0 AS col0 FROM tab2 AS cor0 ---- -56 -6162 -6320 onlyif mysql # use DIV operator for integer division query I rowsort label-7867 SELECT - ( cor0.col2 ) DIV col0 AS col2 FROM tab2 AS cor0 ---- -3 0 0 skipif mysql # not compatible query I rowsort label-7867 SELECT - ( cor0.col2 ) / col0 AS col2 FROM tab2 AS cor0 ---- -3 0 0 query I rowsort SELECT ALL col0 + - 14 * - col0 AS col0 FROM tab1 AS cor0 ---- 1200 45 960 query I rowsort SELECT - ( 47 ) FROM tab2 cor0 ---- -47 -47 -47 query I rowsort SELECT ALL + ( 37 ) + tab2.col2 FROM tab2 ---- 63 64 75 query I rowsort SELECT - ( + cor0.col2 ) + + col1 * col1 FROM tab2 AS cor0 ---- 251 3455 934 query I rowsort SELECT ALL 98 + col1 AS col2 FROM tab1 AS cor0 ---- 108 111 124 query I rowsort SELECT DISTINCT - col1 - + col1 * col0 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT ALL - - col0 * 78 FROM tab2 AS cor0 ---- 546 6084 6162 query I rowsort SELECT DISTINCT + - 53 * col0 + + col1 + col0 FROM tab2 AS cor0 ---- -333 -3997 -4091 query I rowsort SELECT DISTINCT ( + col1 ) + cor0.col2 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + ( - 35 ) AS col2 FROM tab1 AS cor0 ---- -35 query I rowsort SELECT 60 * - 6 + - col0 * + col1 FROM tab0 cor0 ---- -2424 -3755 -8459 query I rowsort SELECT DISTINCT col1 * + 20 + cor0.col2 FROM tab2 AS cor0 ---- 1206 378 647 onlyif mysql # use DIV operator for integer division query I rowsort label-7880 SELECT CAST( col0 AS SIGNED ) + - col2 DIV col2 AS col2 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-7880 SELECT CAST ( col0 AS INTEGER ) + - col2 / col2 AS col2 FROM tab1 AS cor0 ---- 2 63 79 onlyif mysql # use DIV operator for integer division query I rowsort label-7881 SELECT col1 * col1 DIV col0 AS col1 FROM tab2 cor0 ---- 137 3 44 skipif mysql # not compatible query I rowsort label-7881 SELECT col1 * col1 / col0 AS col1 FROM tab2 cor0 ---- 137 3 44 query I rowsort SELECT + + 78 FROM tab2 AS cor0 ---- 78 78 78 query I rowsort SELECT ALL 96 AS col2 FROM tab1 cor0 ---- 96 96 96 query I rowsort SELECT + col0 * + 7 FROM tab2 ---- 49 546 553 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 76 col0 FROM tab0 cor0 ---- 76 76 76 query I rowsort SELECT DISTINCT + 74 AS col0 FROM tab2 AS cor0 ---- 74 onlyif mysql # use DIV operator for integer division query I rowsort label-7887 SELECT DISTINCT col2 + col1 DIV 77 AS col0 FROM tab1 cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-7887 SELECT DISTINCT col2 + col1 / 77 AS col0 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT + 0 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT ALL - col1 * 6 + + cor0.col0 * + col1 + col2 FROM tab0 AS cor0 ---- 1581 2814 7635 query I rowsort SELECT DISTINCT 49 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 49 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7891 SELECT cor0.col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7891 SELECT cor0.col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col1 * cor0.col2 * - 26 FROM tab0 AS cor0 ---- -194012 -2522 -73788 query I rowsort SELECT ALL - ( - 10 ) * col1 FROM tab2 AS cor0 ---- 170 310 590 query I rowsort SELECT - col2 * col2 * - col0 + + ( col1 + col2 ) FROM tab0 AS cor0 ---- 133 26255 598609 query I rowsort SELECT ( - col2 ) + + cor0.col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + - cor0.col0 * + 47 * + cor0.col0 + + col0 AS col2 FROM tab2 cor0 ---- -2296 -285870 -293248 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 70 - col0 col1 FROM tab2 AS cor0 ---- -148 -149 -77 onlyif mysql # use DIV operator for integer division query I rowsort label-7898 SELECT DISTINCT cor0.col2 - 99 DIV col2 FROM tab0 AS cor0 ---- -98 30 81 skipif mysql # not compatible query I rowsort label-7898 SELECT DISTINCT cor0.col2 - 99 / col2 FROM tab0 AS cor0 ---- -98 30 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7899 SELECT ALL - CAST( NULL AS SIGNED ) * + cor0.col2 * col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7899 SELECT ALL - CAST ( NULL AS INTEGER ) * + cor0.col2 * col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + ( 16 ) * + col0 + col2 * - col1 AS col0 FROM tab0 AS cor0 ---- -2454 -6038 463 query I rowsort SELECT ALL cor0.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col0 * + col0 col0 FROM tab0 cor0 ---- -1225 -576 -7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7903 SELECT + + CAST( col0 AS SIGNED ) * + col1 + col1 FROM tab2 AS cor0 ---- 1360 248 4661 skipif mysql # not compatible query I rowsort label-7903 SELECT + + CAST ( col0 AS INTEGER ) * + col1 + col1 FROM tab2 AS cor0 ---- 1360 248 4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 11 col0 FROM tab0 AS cor0 ---- 11 query I rowsort SELECT DISTINCT - + col1 * - col0 + col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT + col0 + + 39 FROM tab0 AS cor0 ---- 128 63 74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 98 * - col0 + + col0 col2 FROM tab1 AS cor0 ---- 297 6336 7920 onlyif mysql # use DIV operator for integer division query I rowsort label-7908 SELECT - 23 DIV - col1 + + col0 FROM tab2 AS cor0 ---- 7 78 80 skipif mysql # not compatible query I rowsort label-7908 SELECT - 23 / - col1 + + col0 FROM tab2 AS cor0 ---- 7 78 80 query I rowsort SELECT DISTINCT ( + col1 ) + - col0 * col2 FROM tab2 AS cor0 ---- -158 -1969 -2985 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 24 * 61 * - col0 + + col1 col0 FROM tab2 AS cor0 ---- -10217 -114133 -115639 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7911 SELECT ALL CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-7911 SELECT ALL CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-7912 SELECT ALL - col0 * col2 DIV col1 col0 FROM tab0 AS cor0 ---- -80 -9 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7912 SELECT ALL - col0 * col2 / col1 col0 FROM tab0 AS cor0 ---- -80 -9 0 query I rowsort SELECT ALL 65 * col1 FROM tab1 AS cor0 ---- 1690 650 845 query I rowsort SELECT DISTINCT - 23 AS col1 FROM tab2 AS cor0 ---- -23 query I rowsort SELECT + col1 * + col2 - cor0.col0 AS col0 FROM tab1 cor0 ---- 1168 1401 506 query I rowsort SELECT - + col2 - + cor0.col2 * col2 AS col2 FROM tab2 AS cor0 ---- -1482 -702 -756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * 68 + - col2 col1 FROM tab2 AS cor0 ---- 1118 2081 3986 skipif mysql # not compatible query I rowsort SELECT DISTINCT + col2 * CAST ( col0 AS REAL ) + col0 * col0 AS col2 FROM tab2 AS cor0 ---- 238 8112 9243 query I rowsort SELECT col1 * ( + 81 ) - + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 1298 2504 4701 query I rowsort SELECT DISTINCT + cor0.col1 + + ( cor0.col1 ) AS col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT + 7 * col2 - - col0 FROM tab1 ---- 381 463 752 query I rowsort SELECT DISTINCT col1 - - col2 * + col0 * - ( col1 + - ( col0 ) ) FROM tab0 ---- -14505 -2073 -49018 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 26 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 37 col2 FROM tab1 ---- -37 onlyif mysql # use DIV operator for integer division query I rowsort label-7925 SELECT ALL col2 + col2 DIV + col1 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-7925 SELECT ALL col2 + col2 / + col1 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-7926 SELECT DISTINCT col2 * col0 + - 18 * col1 DIV - tab1.col2 FROM tab1 ---- 170 3651 7682 skipif mysql # not compatible query I rowsort label-7926 SELECT DISTINCT col2 * col0 + - 18 * col1 / - tab1.col2 FROM tab1 ---- 170 3651 7682 query I rowsort SELECT ALL 42 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e query I rowsort SELECT ALL col1 + - col0 * - 87 + + col0 AS col2 FROM tab2 ---- 647 6923 6969 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7929 SELECT col1 + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7929 SELECT col1 + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * - col0 col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + col2 * 82 AS col2 FROM tab2 ---- 2132 2214 3116 query I rowsort SELECT - col2 + - 87 AS col0 FROM tab2 ---- -113 -114 -125 query I rowsort SELECT ALL col0 * 17 + ( tab1.col0 ) FROM tab1 ---- 1152 1440 54 query I rowsort SELECT 21 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7 query I rowsort SELECT + col2 * ( + col2 ) + col1 AS col2 FROM tab1 ---- 2942 3259 9229 query IIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2 ---- 972 values hashing to ed80235f6457dada5cbb50ce9e2a8923 query I rowsort SELECT - - ( - cor0.col2 ) AS col1 FROM tab1 AS cor0 ---- -54 -57 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * 33 + + col1 col2 FROM tab2 ---- 262 2624 2633 query I rowsort SELECT 7 * + ( col0 ) FROM tab1 ---- 21 448 560 query I rowsort SELECT ALL 44 * - col2 AS col1 FROM tab1 ---- -2376 -2508 -4224 query I rowsort SELECT - col1 + cor0.col2 + - col1 AS col1 FROM tab2 AS cor0 ---- -35 -92 4 query I rowsort SELECT + 9 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b query I rowsort SELECT + + ( col2 ) + - cor0.col1 + - ( - col0 ) FROM tab2 AS cor0 ---- 100 3 45 query I rowsort SELECT DISTINCT - + col1 + + 18 + col1 FROM tab2 AS cor0 ---- 18 onlyif mysql # use DIV operator for integer division query I rowsort label-7945 SELECT - col2 + - col2 * + col0 + col0 DIV col2 AS col0 FROM tab1 AS cor0 ---- -216 -3704 -7776 skipif mysql # not compatible query I rowsort label-7945 SELECT - col2 + - col2 * + col0 + col0 / col2 AS col0 FROM tab1 AS cor0 ---- -216 -3704 -7776 query I rowsort SELECT - - 1 + col0 * ( - ( col2 ) ) AS col2 FROM tab0 cor0 ---- -34 -7297 -791 query I rowsort SELECT DISTINCT + col0 * + col1 + 90 * ( col0 ) AS col2 FROM tab1 cor0 ---- 348 6400 8240 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * cor0.col2 col1 FROM tab0 AS cor0 ---- 1 1089 6724 onlyif mysql # use DIV operator for integer division query I rowsort label-7949 SELECT DISTINCT - col1 * + col2 + + CAST( col2 AS SIGNED ) + col0 DIV - col1 AS col1 FROM tab0 AS cor0 ---- -2805 -7380 -96 skipif mysql # not compatible query I rowsort label-7949 SELECT DISTINCT - col1 * + col2 + + CAST ( col2 AS INTEGER ) + col0 / - col1 AS col1 FROM tab0 AS cor0 ---- -2805 -7380 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 * cor0.col1 col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT + col0 * col1 - 68 FROM tab0 AS cor0 ---- 1996 3327 8031 query I rowsort SELECT ALL cor0.col1 + + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT - col2 + + ( col0 ) AS col2 FROM tab0 AS cor0 ---- -9 34 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7954 SELECT - + col0 * CAST( + col2 AS SIGNED ) - + cor0.col0 AS col2 FROM tab1 cor0 ---- -165 -3712 -7760 skipif mysql # not compatible query I rowsort label-7954 SELECT - + col0 * CAST ( + col2 AS INTEGER ) - + cor0.col0 AS col2 FROM tab1 cor0 ---- -165 -3712 -7760 query I rowsort SELECT ALL + col1 * 42 AS col2 FROM tab0 AS cor0 ---- 3612 3822 4074 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col2 + col2 col1 FROM tab2 AS cor0 ---- 52 54 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7957 SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) + - 8 / - col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7957 SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) + - 8 / - col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT col0 - 89 AS col1 FROM tab0 AS cor0 ---- -54 -65 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 - - col2 col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT - cor0.col2 * - 31 + col2 * col1 AS col1 FROM tab1 AS cor0 ---- 2337 3078 4224 query I rowsort SELECT ALL - col0 + - ( cor0.col1 ) * col2 AS col2 FROM tab1 AS cor0 ---- -1328 -1407 -634 query I rowsort SELECT DISTINCT + col1 + + col2 * - col2 + - col2 AS col1 FROM tab1 AS cor0 ---- -2944 -3296 -9299 query I rowsort SELECT - col1 * - cor0.col1 AS col1 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT + cor0.col1 * + col2 + - 85 FROM tab2 AS cor0 ---- 1449 561 752 query I rowsort SELECT + ( col1 ) + 89 AS col2 FROM tab0 cor0 ---- 175 180 186 query I rowsort SELECT - 39 * - col2 + - cor0.col2 AS col1 FROM tab1 AS cor0 ---- 2052 2166 3648 onlyif mysql # use DIV operator for integer division query I rowsort label-7967 SELECT - col2 + col1 DIV + col0 FROM tab2 AS cor0 ---- -23 -26 -38 skipif mysql # not compatible query I rowsort label-7967 SELECT - col2 + col1 / + col0 FROM tab2 AS cor0 ---- -23 -26 -38 query I rowsort SELECT - col2 + 1 * + col1 + + cor0.col1 FROM tab0 AS cor0 ---- 100 139 193 query I rowsort SELECT cor0.col2 * cor0.col1 * col2 FROM tab1 AS cor0 ---- 119808 32490 75816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab0.col2 * + col2 col0 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT + 17 AS col0 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to e0dd9155e4d67132637a04c18ef46b2a query I rowsort SELECT + 81 * + ( col2 ) AS col1 FROM tab2 AS cor0 ---- 2106 2187 3078 query I rowsort SELECT + ( ( cor0.col1 ) ) AS col1 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT col0 * - 32 AS col1 FROM tab0 ---- -1120 -2848 -768 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7975 SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1, tab0 AS cor0, tab2 ---- NULL skipif mysql # not compatible query I rowsort label-7975 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1, tab0 AS cor0, tab2 ---- NULL query I rowsort SELECT DISTINCT tab0.col2 * + col1 AS col2 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT 89 * - col0 FROM tab0 cor0 ---- -2136 -3115 -7921 onlyif mysql # use DIV operator for integer division query I rowsort label-7978 SELECT ( + col2 ) DIV col0 AS col2 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7978 SELECT ( + col2 ) / col0 AS col2 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT + 4 * ( col1 * col0 ) AS col0 FROM tab2 cor0 ---- 18408 5372 868 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7980 SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-7980 SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # use DIV operator for integer division query I rowsort label-7981 SELECT DISTINCT - - 20 DIV + 27 AS col0 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7981 SELECT DISTINCT - - 20 / + 27 AS col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL - + 98 AS col1 FROM tab2 AS cor0 ---- -98 -98 -98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7983 SELECT DISTINCT + CAST( NULL AS SIGNED ) * tab2.col1 AS col2 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-7983 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * tab2.col1 AS col2 FROM tab2 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7984 SELECT DISTINCT + col2 DIV + col0 + 89 * col2 col1 FROM tab1 cor0 ---- 4824 5073 8545 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7984 SELECT DISTINCT + col2 / + col0 + 89 * col2 col1 FROM tab1 cor0 ---- 4824 5073 8545 query I rowsort SELECT ALL ( + tab1.col0 ) FROM tab1 ---- 3 64 80 query I rowsort SELECT 82 * + cor0.col2 + + col1 FROM tab1 AS cor0 ---- 4454 4684 7885 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 46 + + col0 col1 FROM tab2 ---- -39 32 33 query I rowsort SELECT col0 + + 59 * + col0 FROM tab2 ---- 420 4680 4740 query I rowsort SELECT ALL + col2 - col0 * - col1 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ALL + ( tab1.col2 ) - + 86 FROM tab1 ---- -29 -32 10 query I rowsort SELECT ALL + col1 + + col2 * 74 * col2 AS col2 FROM tab1 AS cor0 ---- 215810 240436 681997 onlyif mysql # use DIV operator for integer division query I rowsort label-7992 SELECT DISTINCT col1 + col1 DIV col1 AS col1 FROM tab2 AS cor0 ---- 18 32 60 skipif mysql # not compatible query I rowsort label-7992 SELECT DISTINCT col1 + col1 / col1 AS col1 FROM tab2 AS cor0 ---- 18 32 60 query I rowsort SELECT DISTINCT + + 24 * col0 AS col2 FROM tab2 AS cor0 ---- 168 1872 1896 onlyif mysql # use DIV operator for integer division query I rowsort label-7994 SELECT + - ( + col0 ) + + ( col2 ) DIV col1 AS col2 FROM tab1 cor0 ---- -1 -59 -73 skipif mysql # not compatible query I rowsort label-7994 SELECT + - ( + col0 ) + + ( col2 ) / col1 AS col2 FROM tab1 cor0 ---- -1 -59 -73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 34 col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT ALL col1 + - 39 FROM tab0 ---- 47 52 58 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2, tab2 AS cor3 ---- 3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0 query I rowsort SELECT col1 + + col2 * col1 AS col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT ALL + 29 AS col1 FROM tab0 AS cor0 ---- 29 29 29 query I rowsort SELECT DISTINCT + col2 * - col0 + col1 * col0 AS col2 FROM tab0 AS cor0 ---- 1272 3360 801 query I rowsort SELECT ALL - col1 * + ( - col0 ) + + 89 * ( - col1 ) AS col2 FROM tab1 AS cor0 ---- -117 -2236 -250 query I rowsort SELECT DISTINCT - 8 * + col2 FROM tab1 AS cor0 ---- -432 -456 -768 query I rowsort SELECT col0 * col1 + - col2 + col0 AS col1 FROM tab0 ---- 2055 3429 8106 query I rowsort SELECT - tab1.col0 - col0 * col2 FROM tab1 ---- -165 -3712 -7760 query I rowsort SELECT DISTINCT col2 * col1 - - col2 * - col0 FROM tab0 ---- 164 2046 62 query III rowsort SELECT * FROM tab2 WHERE NOT NULL <= ( + col2 ) ---- query III rowsort SELECT * FROM tab0 WHERE NOT - col1 * col1 / + col1 + col0 * - tab0.col2 IN ( tab0.col1 * - col2 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 onlyif mysql # use DIV operator for integer division query I rowsort label-8008 SELECT + col0 * col0 * col1 - - col2 DIV col1 AS col0 FROM tab0 ---- 118825 49536 720811 skipif mysql # not compatible query I rowsort label-8008 SELECT + col0 * col0 * col1 - - col2 / col1 AS col0 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT - tab2.col1 - + col0 AS col1 FROM tab2 ---- -137 -38 -96 query I rowsort SELECT ALL - col2 * - col0 + col1 AS col2 FROM tab0 WHERE ( NULL ) IN ( - col0 ) ---- query I rowsort SELECT - tab1.col1 * - tab1.col1 AS col2 FROM tab1 ---- 100 169 676 query I rowsort SELECT DISTINCT - col2 * col1 + - col2 * + col2 FROM tab0 cor0 ---- -14186 -3927 -98 query I rowsort SELECT - col0 / + col2 FROM tab1 AS cor0 WHERE NOT NULL = col2 * col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8014 SELECT + col0 * col2 + - col2 DIV col2 FROM tab1 ---- 161 3647 7679 skipif mysql # not compatible query I rowsort label-8014 SELECT + col0 * col2 + - col2 / col2 FROM tab1 ---- 161 3647 7679 query I rowsort SELECT DISTINCT - tab0.col2 FROM tab0 WHERE - col0 + col2 / - col2 + col0 * col2 >= col1 * col2 ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( NULL ) ---- query I rowsort SELECT ALL + col1 FROM tab0 WHERE NOT NULL <= col1 + col0 ---- query I rowsort SELECT tab1.col1 * tab1.col0 + col0 FROM tab1 ---- 1120 704 81 query III rowsort SELECT * FROM tab1 WHERE ( NULL ) = + col0 + col2 * - col2 / - col2 ---- query I rowsort SELECT ALL col1 + - col2 * - tab1.col2 - tab1.col0 AS col2 FROM tab1 ---- 2939 3195 9149 onlyif mysql # use DIV operator for integer division query I rowsort label-8021 SELECT DISTINCT tab1.col1 DIV - tab1.col0 + - col1 + col0 AS col2 FROM tab1 ---- -31 54 67 skipif mysql # not compatible query I rowsort label-8021 SELECT DISTINCT tab1.col1 / - tab1.col0 + - col1 + col0 AS col2 FROM tab1 ---- -31 54 67 onlyif mysql # use DIV operator for integer division query I rowsort label-8022 SELECT DISTINCT - - col0 DIV col1 FROM tab1 AS cor0 ---- 0 6 skipif mysql # not compatible query I rowsort label-8022 SELECT DISTINCT - - col0 / col1 FROM tab1 AS cor0 ---- 0 6 query I rowsort SELECT DISTINCT + col1 + col2 * - col1 + col1 FROM tab0 AS cor0 ---- -2666 -7280 97 query I rowsort SELECT ALL - col1 * cor0.col1 - col0 FROM tab2 AS cor0 ---- -3559 -368 -968 query I rowsort SELECT ALL - cor0.col2 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT DISTINCT - cor0.col1 + col0 AS col2 FROM tab1 cor0 ---- -23 54 67 onlyif mysql # use DIV operator for integer division query I rowsort label-8027 SELECT DISTINCT + col1 DIV - col2 - col2 * - col0 FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-8027 SELECT DISTINCT + col1 / - col2 - col2 * - col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT + col0 * + col1 - col0 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT DISTINCT - col1 * col0 - - col2 AS col1 FROM tab2 AS cor0 ---- -1305 -190 -4576 onlyif mysql # use DIV operator for integer division query I rowsort label-8030 SELECT - cor0.col0 DIV col1 - - col1 * col1 FROM tab1 AS cor0 ---- 163 676 94 skipif mysql # not compatible query I rowsort label-8030 SELECT - cor0.col0 / col1 - - col1 * col1 FROM tab1 AS cor0 ---- 163 676 94 query I rowsort SELECT col1 - - col1 AS col2 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT ALL + col1 * + col2 + col0 * col1 + - cor0.col2 FROM tab2 AS cor0 ---- 1027 1951 6110 query I rowsort SELECT - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT - cor0.col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= col2 * col1 ---- query I rowsort SELECT DISTINCT col2 + col2 - + col2 AS col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT tab2.col0 + tab2.col0 AS col0 FROM tab2 ---- 14 156 158 query I rowsort SELECT - col1 - - col1 AS col1 FROM tab1 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8038 SELECT + col2 + + col1 DIV col0 FROM tab1 AS cor0 ---- 57 62 96 skipif mysql # not compatible query I rowsort label-8038 SELECT + col2 + + col1 / col0 FROM tab1 AS cor0 ---- 57 62 96 query I rowsort SELECT + + cor0.col0 * ( col0 ) * col0 AS col1 FROM tab0 AS cor0 ---- 13824 42875 704969 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8040 SELECT CAST( NULL AS SIGNED ) / - 75 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-8040 SELECT CAST ( NULL AS INTEGER ) / - 75 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL + cor0.col0 * + 67 * + col0 AS col0 FROM tab1 AS cor0 ---- 274432 428800 603 query I rowsort SELECT - col2 + 71 FROM tab0 AS cor0 ---- -11 38 70 query I rowsort SELECT + col1 * 99 AS col1 FROM tab1 AS cor0 ---- 1287 2574 990 query I rowsort SELECT + col1 * - cor0.col1 * 47 AS col0 FROM tab1 AS cor0 ---- -31772 -4700 -7943 query I rowsort SELECT DISTINCT - col1 + - 51 * tab1.col0 FROM tab1 ---- -179 -3274 -4093 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + ( 73 ) * + cor0.col2 * col2 col2 FROM tab1 cor0 ---- 212868 237177 672768 query III rowsort SELECT * FROM tab0 WHERE NULL NOT IN ( col0 * - col2 ) ---- query I rowsort SELECT + 4 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 730dff78e83112374961ea711f98ebaa skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * - tab1.col2 col0 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT col0 FROM tab2 WHERE NOT NULL <> col1 + - col1 ---- query I rowsort SELECT + col2 * - col2 + - col0 AS col2 FROM tab2 ---- -1523 -736 -754 query I rowsort SELECT DISTINCT - col2 FROM tab0 WHERE NOT + col2 >= NULL ---- query I rowsort SELECT ALL + tab1.col0 - + col2 FROM tab1 WHERE NOT ( NULL ) IN ( col0 * + col2 ) ---- query I rowsort SELECT ALL + 69 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2810c3097fe4771e273cfff903357b40 query I rowsort SELECT + cor0.col0 * 22 FROM tab2, tab0 cor0 ---- 9 values hashing to edcae4539e8d0225f4e4f813938f6ffe query I rowsort SELECT - - ( + col0 ) * 71 * col2 FROM tab2 cor0 ---- 13419 143988 213142 query I rowsort SELECT col1 + + cor0.col0 * + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT DISTINCT - 43 + col2 AS col2 FROM tab0 cor0 ---- -10 -42 39 query I rowsort SELECT ALL - 23 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d query I rowsort SELECT + 95 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 102 173 174 query I rowsort SELECT + ( col0 ) + + col0 * - col2 AS col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-8062 SELECT 69 DIV - col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8062 SELECT 69 / - col1 FROM tab0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8063 SELECT - + CAST( + col0 AS SIGNED ) - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0 ---- -1612 -725 -844 skipif mysql # not compatible query I rowsort label-8063 SELECT - + CAST ( + col0 AS INTEGER ) - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT - - col1 * 81 - - col0 * col2 AS col0 FROM tab2 AS cor0 ---- 2700 4379 6807 query I rowsort SELECT + 46 * - col0 - - col1 * + col1 FROM tab1 AS cor0 ---- -2844 -3511 538 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8066 SELECT DISTINCT - CAST( col2 AS SIGNED ) col2 FROM tab0 cor0 ---- -1 -33 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8066 SELECT DISTINCT - CAST ( col2 AS INTEGER ) col2 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT ALL ( col0 ) + + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT col0 + + 8 + col2 AS col0 FROM tab2 cor0 ---- 112 125 42 query I rowsort SELECT DISTINCT - - 86 AS col2 FROM tab2 AS cor0 ---- 86 query I rowsort SELECT DISTINCT 95 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1 ---- 95 query I rowsort SELECT ALL - col2 + ( ( col1 ) ) AS col2 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT + + col2 + 85 * col1 * col1 FROM tab1 AS cor0 ---- 14461 57514 8557 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 58 col0 FROM tab1 ---- 58 58 58 query I rowsort SELECT ALL ( - 19 ) FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 0fbbff28a7b63c37b01cf369f9325662 query I rowsort SELECT ALL - col2 + col1 * - col2 * col1 AS col0 FROM tab0 AS cor0 ---- -244101 -679124 -9410 onlyif mysql # use DIV operator for integer division query I rowsort label-8076 SELECT + + col0 + col1 DIV - col0 FROM tab1 AS cor0 ---- -5 64 80 skipif mysql # not compatible query I rowsort label-8076 SELECT + + col0 + col1 / - col0 FROM tab1 AS cor0 ---- -5 64 80 query I rowsort SELECT DISTINCT cor0.col1 * col2 AS col1 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT - + col0 * cor0.col0 + + col1 AS col1 FROM tab1 cor0 ---- -4086 -6387 17 query I rowsort SELECT ALL - - cor0.col1 * + cor0.col2 + col1 * col2 AS col1 FROM tab0 AS cor0 ---- 14924 194 5676 onlyif mysql # use DIV operator for integer division query I rowsort label-8080 SELECT ALL + cor0.col1 * + cor0.col0 DIV col0 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-8080 SELECT ALL + cor0.col1 * + cor0.col0 / col0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + col0 * col2 + - col0 * col1 * col0 AS col2 FROM tab1 ---- -37312 -72 -75520 query I rowsort SELECT ALL + col2 * - cor0.col1 * + col1 - - col1 * col1 * + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL 59 FROM tab2, tab0 AS cor0 ---- 9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc query I rowsort SELECT ALL - 43 * col2 AS col1 FROM tab2 AS cor0 ---- -1118 -1161 -1634 query I rowsort SELECT - cor0.col0 + - cor0.col0 + col1 * + col2 AS col1 FROM tab0 AS cor0 ---- 27 2790 7284 onlyif mysql # use DIV operator for integer division query I rowsort label-8086 SELECT DISTINCT col0 + col0 DIV + col0 + cor0.col2 * + cor0.col0 col1 FROM tab0 AS cor0 ---- 71 7388 817 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8086 SELECT DISTINCT col0 + col0 / + col0 + cor0.col2 * + cor0.col0 col1 FROM tab0 AS cor0 ---- 71 7388 817 query I rowsort SELECT + 0 + - col0 + col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + col0 * + col2 * col0 + col2 FROM tab0 AS cor0 ---- -1224 -18975 -649440 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 - col0 col0 FROM tab2 ---- -41 -52 20 query I rowsort SELECT DISTINCT + col0 - - 98 FROM tab0 ---- 122 133 187 query I rowsort SELECT tab0.col2 + col2 - + col0 * + col1 * - col1 FROM tab0 ---- 177570 329317 737173 query I rowsort SELECT ALL 27 * + col1 AS col1 FROM tab1 ---- 270 351 702 query I rowsort SELECT + col2 + col1 + col0 FROM tab0 ---- 133 143 262 onlyif mysql # use DIV operator for integer division query I rowsort label-8094 SELECT ALL + tab1.col1 + col0 + col0 DIV + col0 AS col0 FROM tab1 ---- 30 75 94 skipif mysql # not compatible query I rowsort label-8094 SELECT ALL + tab1.col1 + col0 + col0 / + col0 AS col0 FROM tab1 ---- 30 75 94 onlyif mysql # use DIV operator for integer division query I rowsort label-8095 SELECT + ( col0 ) DIV + col1 + - cor0.col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-8095 SELECT + ( col0 ) / + col1 + - cor0.col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT + + col1 * - cor0.col1 FROM tab0 cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-8097 SELECT + + 87 DIV cor0.col0 FROM tab0 AS cor0 ---- 0 2 3 skipif mysql # not compatible query I rowsort label-8097 SELECT + + 87 / cor0.col0 FROM tab0 AS cor0 ---- 0 2 3 query I rowsort SELECT DISTINCT + + cor0.col2 * + col0 AS col1 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT + ( - col2 ) + col0 + - col0 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT col2 * + col0 + - col0 AS col0 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT - - col2 * col2 + col2 * cor0.col0 FROM tab1 AS cor0 ---- 16896 3078 6897 query I rowsort SELECT - - 14 + col0 FROM tab0 AS cor0 ---- 103 38 49 query IIIIIIIII rowsort SELECT * FROM tab2, tab1, tab2 AS cor0 WHERE NULL > NULL ---- query I rowsort SELECT ALL tab2.col2 * 11 AS col0 FROM tab2 ---- 286 297 418 query I rowsort SELECT - ( + 40 ) FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 01aad4539198a6509248e086869f90a6 query I rowsort SELECT DISTINCT 66 * - col1 + - 3 AS col0 FROM tab0 AS cor0 ---- -5679 -6009 -6405 onlyif mysql # use DIV operator for integer division query I rowsort label-8107 SELECT DISTINCT + 39 * col2 DIV - col1 FROM tab2 AS cor0 ---- -17 -33 -87 skipif mysql # not compatible query I rowsort label-8107 SELECT DISTINCT + 39 * col2 / - col1 FROM tab2 AS cor0 ---- -17 -33 -87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 90 * + col2 + 97 col0 FROM tab2 AS cor0 ---- 2437 2527 3517 query I rowsort SELECT ALL + + col2 + + col1 * col1 AS col1 FROM tab2 AS cor0 ---- 327 3507 988 query I rowsort SELECT col0 - cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT + + col0 * - col0 + col0 AS col2 FROM tab2 AS cor0 ---- -42 -6006 -6162 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + 84 ) col0 FROM tab0 ---- 84 query I rowsort SELECT ALL + 22 * col0 + - 43 * + tab2.col0 FROM tab2 ---- -147 -1638 -1659 query I rowsort SELECT ALL - 64 * + col0 + + col0 FROM tab0 ---- -1512 -2205 -5607 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + cor0.col2 ) * ( col1 ) * - cor0.col0 col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT + 99 + col0 * - ( - col0 ) AS col2 FROM tab0 AS cor0 ---- 1324 675 8020 query I rowsort SELECT + col0 * + col1 - col1 * + col0 AS col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8118 SELECT cor0.col0 + - col1 * + CAST( + 65 AS SIGNED ) * - col0 FROM tab0 AS cor0 ---- 134184 220710 526524 skipif mysql # not compatible query I rowsort label-8118 SELECT cor0.col0 + - col1 * + CAST ( + 65 AS INTEGER ) * - col0 FROM tab0 AS cor0 ---- 134184 220710 526524 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + cor0.col1 * col0 + - col1 col1 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT DISTINCT col0 * col0 + + 56 FROM tab1 AS cor0 ---- 4152 6456 65 query I rowsort SELECT col1 * col0 * 27 FROM tab2 ---- 124254 36261 5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * - col1 col0 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-8123 SELECT DISTINCT - 39 DIV cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-8123 SELECT DISTINCT - 39 / cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1 -2 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8124 SELECT - + 46 * + col1 + CAST( NULL AS SIGNED ) + 8 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8124 SELECT - + 46 * + col1 + CAST ( NULL AS INTEGER ) + 8 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col2 + ( 5 + col0 ) AS col2 FROM tab1 AS cor0 ---- 126 181 62 query I rowsort SELECT col1 * - col1 + ( - col1 ) * + 14 AS col1 FROM tab1 AS cor0 ---- -1040 -240 -351 query I rowsort SELECT - + col1 * ( 35 ) FROM tab1 AS cor0 ---- -350 -455 -910 onlyif mysql # use DIV operator for integer division query I rowsort label-8128 SELECT DISTINCT - col1 DIV 83 + + col1 * cor0.col0 FROM tab0 AS cor0 ---- 2063 3394 8098 skipif mysql # not compatible query I rowsort label-8128 SELECT DISTINCT - col1 / 83 + + col1 * cor0.col0 FROM tab0 AS cor0 ---- 2063 3394 8098 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 * + col0 col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT + - cor0.col0 * 27 + col0 AS col2 FROM tab2 cor0 ---- -182 -2028 -2054 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2 ---- 3645 values hashing to 2270901c73a658a63f841c68db8155ba query I rowsort SELECT cor0.col2 * 18 AS col1 FROM tab2 AS cor0 ---- 468 486 684 query I rowsort SELECT DISTINCT + ( - col2 ) * - col1 * 63 + col1 FROM tab2 AS cor0 ---- 40715 52762 96701 query I rowsort SELECT ALL + - 84 * col1 * - col2 + + cor0.col1 FROM tab1 AS cor0 ---- 104845 117962 47890 query I rowsort SELECT - - col2 * + 1 AS col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + ( cor0.col0 ) * cor0.col2 AS col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT ALL - 26 AS col2 FROM tab2 AS cor0 ---- -26 -26 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-8138 SELECT DISTINCT - ( col2 ) DIV - col0 + + ( col2 ) * - cor0.col0 FROM tab0 AS cor0 ---- -35 -7298 -791 skipif mysql # not compatible query I rowsort label-8138 SELECT DISTINCT - ( col2 ) / - col0 + + ( col2 ) * - cor0.col0 FROM tab0 AS cor0 ---- -35 -7298 -791 query I rowsort SELECT + col0 + 7 AS col1 FROM tab0 cor0 ---- 31 42 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8140 SELECT CAST( NULL AS SIGNED ) * cor0.col2 * - col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8140 SELECT CAST ( NULL AS INTEGER ) * cor0.col2 * - col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 72 + + 57 * + col1 FROM tab1 AS cor0 ---- 1554 642 813 query I rowsort SELECT - - 32 + col2 AS col2 FROM tab1 AS cor0 ---- 128 86 89 query I rowsort SELECT DISTINCT + + 2 * + col2 + + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 253 37 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8144 SELECT ALL - - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8144 SELECT ALL - - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + ( + col0 ) * + cor0.col1 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT 1 + col1 AS col1 FROM tab0 AS cor0 ---- 87 92 98 query I rowsort SELECT ALL - cor1.col2 + 41 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- 81 values hashing to fa9dc030bfe820d539cad7c22bea1412 query I rowsort SELECT ALL - + col1 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT DISTINCT + col1 * - col0 + 2 AS col2 FROM tab2 AS cor0 ---- -1341 -215 -4600 query I rowsort SELECT + col2 * 61 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -36 1927 4911 query I rowsort SELECT col1 + + ( col2 ) + + col1 AS col0 FROM tab0 AS cor0 ---- 195 205 264 query I rowsort SELECT DISTINCT + cor0.col1 * - ( col0 ) FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT + col2 + ( - cor0.col1 ) * col2 + col2 * - 75 AS col0 FROM tab2 cor0 ---- -2835 -3458 -3458 query I rowsort SELECT DISTINCT col0 * 28 FROM tab2 AS cor0 ---- 196 2184 2212 query I rowsort SELECT DISTINCT 44 * - cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1 ---- -1056 -1540 -3916 query I rowsort SELECT - col0 * col2 + + ( + col1 * - col2 ) + + col0 FROM tab0 AS cor0 ---- -14671 -3606 -97 query I rowsort SELECT DISTINCT col0 + col2 * 72 * + 65 FROM tab1 ---- 252723 266824 449360 onlyif mysql # use DIV operator for integer division query I rowsort label-8158 SELECT - col1 * + col0 + ( col0 ) DIV + col2 FROM tab0 ---- -2064 -3360 -8098 skipif mysql # not compatible query I rowsort label-8158 SELECT - col1 * + col0 + ( col0 ) / + col2 FROM tab0 ---- -2064 -3360 -8098 query I rowsort SELECT col0 * col2 + cor0.col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ( col1 ) * col1 + - cor0.col1 + - col0 * - col0 FROM tab1 AS cor0 ---- 4186 6556 659 query I rowsort SELECT ALL - tab2.col0 * col2 * + col0 AS col1 FROM tab2 ---- -1323 -158184 -237158 query I rowsort SELECT + 70 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to c76157a7a7ec18de56823b2058b49f32 query I rowsort SELECT - - 45 FROM tab2 cor0 ---- 45 45 45 query I rowsort SELECT + + 54 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2 ---- 243 values hashing to 00fa117da84abe6a4654e59c502ca0cf onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8165 SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8165 SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col2 * + 88 AS col1 FROM tab0 ---- 2904 7216 88 query I rowsort SELECT ALL ( tab1.col0 + - col0 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT - col2 - 19 AS col1 FROM tab1 AS cor0 ---- -115 -73 -76 query I rowsort SELECT - col0 * + col2 + col2 * - 48 AS col1 FROM tab2 AS cor0 ---- -1485 -3276 -4826 query I rowsort SELECT + - col1 - - col2 AS col0 FROM tab2 AS cor0 ---- -33 -4 21 onlyif mysql # use DIV operator for integer division query I rowsort label-8171 SELECT + col1 + col1 DIV - col0 FROM tab0 AS cor0 ---- 83 90 95 skipif mysql # not compatible query I rowsort label-8171 SELECT + col1 + col1 / - col0 FROM tab0 AS cor0 ---- 83 90 95 query I rowsort SELECT ALL ( 58 * col1 ) FROM tab2 ---- 1798 3422 986 query I rowsort SELECT + - 16 AS col2 FROM tab1 AS cor0 ---- -16 -16 -16 query I rowsort SELECT ALL - 70 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 35707a5d99c98b2657c084a50ff1b073 query I rowsort SELECT ALL - ( col1 ) * + ( + col0 * - cor0.col0 ) + col2 FROM tab2 AS cor0 ---- 106135 1546 358982 query I rowsort SELECT DISTINCT + 91 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 91 query I rowsort SELECT ALL + tab0.col1 AS col1 FROM tab2, tab1, tab1 cor0, tab0 ---- 81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91 query I rowsort SELECT 10 + col2 FROM tab0 ---- 11 43 92 query I rowsort SELECT DISTINCT + 36 * col1 + ( - 62 * + col1 ) FROM tab2 ---- -1534 -442 -806 query I rowsort SELECT + col1 * col1 - - 65 FROM tab1 AS cor0 ---- 165 234 741 query I rowsort SELECT ALL - col1 * col2 * col1 - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -244154 -679133 -9506 query I rowsort SELECT DISTINCT col2 * - 25 + col0 AS col1 FROM tab2 AS cor0 ---- -572 -668 -871 query I rowsort SELECT - col0 + + 85 * - ( col2 + col1 ) AS col1 FROM tab2 AS cor0 ---- -4754 -4937 -7303 query I rowsort SELECT ALL col2 + + cor0.col2 - + col1 * + col2 AS col0 FROM tab2 AS cor0 ---- -1482 -570 -783 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8185 SELECT col2 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-8185 SELECT col2 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - cor0.col2 * col1 + - cor0.col2 + col0 AS col2 FROM tab0 cor0 ---- -2847 -63 -7455 query I rowsort SELECT DISTINCT - 78 * + col2 + col2 FROM tab0 ---- -2541 -6314 -77 query I rowsort SELECT + 5 * tab2.col1 + 26 AS col1 FROM tab2 ---- 111 181 321 query I rowsort SELECT + 94 - + col2 AS col2 FROM tab0 ---- 12 61 93 query I rowsort SELECT ALL ( - cor0.col2 ) + + col2 * ( - col0 ) AS col1 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT DISTINCT 51 * 67 + col0 AS col1 FROM tab0 AS cor0 ---- 3441 3452 3506 query I rowsort SELECT ALL + + 81 * + col1 FROM tab1 AS cor0 ---- 1053 2106 810 query I rowsort SELECT ALL + 6 + - 38 FROM tab2, tab2 cor0 ---- 9 values hashing to ef8f93119983b962f4c81381ebf4b1e6 query I rowsort SELECT - - col2 * + ( col1 ) FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8195 SELECT ALL - + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-8195 SELECT ALL - + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 57 col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 61da70c624ad60604a668f7f8f29392a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 70 + 55 col1 FROM tab1 ---- -15 -15 -15 query I rowsort SELECT + col1 * 26 - col2 * + col1 FROM tab0 AS cor0 ---- -5096 -602 2425 query I rowsort SELECT - 40 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1 ---- 81 values hashing to b10451aa7e22bfd12577dc60d18d9396 query I rowsort SELECT ALL cor0.col1 + 86 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 21ba6badc2e2d538b9d76ba7685c7aa3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8201 SELECT + col0 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-8201 SELECT + col0 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + + col0 + + 54 col1 FROM tab1 AS cor0 ---- 108 121 31 query I rowsort SELECT cor1.col0 FROM tab0, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT col0 + - 8 FROM tab0 AS cor0 ---- 16 27 81 query I rowsort SELECT ALL col2 * + 95 FROM tab0 AS cor0 ---- 3135 7790 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + col0 col2 FROM tab1 AS cor0 ---- -16 -51 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8207 SELECT CAST( NULL AS SIGNED ) * + col2 * - cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8207 SELECT CAST ( NULL AS INTEGER ) * + col2 * - cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + 36 * - 56 FROM tab2 AS cor0 ---- 2016 2016 2016 query I rowsort SELECT - 52 + 6 FROM tab2 AS cor0 ---- -46 -46 -46 query I rowsort SELECT - col0 + - col0 * ( cor0.col1 ) AS col2 FROM tab1 cor0 ---- -1120 -704 -81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8211 SELECT - col1 * col2 + + CAST( NULL AS SIGNED ) + - 21 * col2 * + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8211 SELECT - col1 * col2 + + CAST ( NULL AS INTEGER ) + - 21 * col2 * + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 + col0 * ( col1 ) AS col2 FROM tab1 cor0 ---- 104 1053 650 query I rowsort SELECT ALL + 45 + cor0.col2 FROM tab1 AS cor0 ---- 102 141 99 query I rowsort SELECT + 32 + + col1 + - col1 AS col2 FROM tab2 AS cor0 ---- 32 32 32 onlyif mysql # use DIV operator for integer division query I rowsort label-8215 SELECT - col1 * col1 DIV - 24 AS col2 FROM tab1 AS cor0 ---- 28 4 7 skipif mysql # not compatible query I rowsort label-8215 SELECT - col1 * col1 / - 24 AS col2 FROM tab1 AS cor0 ---- 28 4 7 query I rowsort SELECT + col0 * - col1 + - col2 + + col1 * - col0 AS col0 FROM tab2 AS cor0 ---- -2724 -461 -9230 query I rowsort SELECT + 8 + - col1 FROM tab1 ---- -18 -2 -5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8218 SELECT DISTINCT CAST( + col2 AS SIGNED ) * - col2 + - col0 FROM tab2 ---- -1523 -736 -754 skipif mysql # not compatible query I rowsort label-8218 SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - col2 + - col0 FROM tab2 ---- -1523 -736 -754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col0 * + 74 + col0 col0 FROM tab0 ---- 1800 2625 6675 query I rowsort SELECT DISTINCT + ( - col0 ) + col2 * + ( + col1 ) + col2 AS col2 FROM tab0 ---- 2847 63 7455 query I rowsort SELECT ALL + tab1.col0 * 81 + col2 * 54 + col2 * - col0 AS col0 FROM tab1 ---- 2997 3984 4614 query I rowsort SELECT 36 + tab0.col0 * + col2 AS col2 FROM tab0 ---- 71 7334 828 query I rowsort SELECT + tab1.col0 + + col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT ALL 6 * + tab1.col0 AS col2 FROM tab1 ---- 18 384 480 query I rowsort SELECT DISTINCT col0 * col1 + - 75 * col0 FROM tab2 cor0 ---- -1248 -308 -4582 query I rowsort SELECT ALL + col1 * + cor0.col0 * + 52 AS col0 FROM tab2 AS cor0 ---- 11284 239304 69836 query I rowsort SELECT ALL - 89 AS col2 FROM tab1 AS cor0 ---- -89 -89 -89 query I rowsort SELECT cor0.col1 * + col1 * col2 AS col0 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT ALL - - col1 - + cor0.col2 * + 85 * col0 FROM tab1 AS cor0 ---- -13744 -310070 -652787 onlyif mysql # use DIV operator for integer division query I rowsort label-8230 SELECT - cor0.col2 + 22 DIV + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -33 -82 21 skipif mysql # not compatible query I rowsort label-8230 SELECT - cor0.col2 + 22 / + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -33 -82 21 query I rowsort SELECT col2 * 43 AS col2 FROM tab0 AS cor0 ---- 1419 3526 43 onlyif mysql # use DIV operator for integer division query I rowsort label-8232 SELECT - cor0.col2 DIV - ( col0 ) AS col0 FROM tab1 AS cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-8232 SELECT - cor0.col2 / - ( col0 ) AS col0 FROM tab1 AS cor0 ---- 0 1 18 onlyif mysql # use DIV operator for integer division query I rowsort label-8233 SELECT - col0 + - col2 DIV 64 FROM tab1 cor0 ---- -3 -64 -81 skipif mysql # not compatible query I rowsort label-8233 SELECT - col0 + - col2 / 64 FROM tab1 cor0 ---- -3 -64 -81 query I rowsort SELECT DISTINCT - + ( 97 ) * - col2 + 92 * - col1 FROM tab1 AS cor0 ---- 2846 4609 8116 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8235 SELECT ALL + + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8235 SELECT ALL + + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col1 * + 11 FROM tab0 AS cor0 ---- -1001 -1067 -946 query I rowsort SELECT col1 + - 14 AS col1 FROM tab1 cor0 ---- -1 -4 12 query I rowsort SELECT + col0 - - 91 * col0 FROM tab0 AS cor0 ---- 2208 3220 8188 query I rowsort SELECT DISTINCT 31 + cor0.col1 * col1 FROM tab2 AS cor0 ---- 320 3512 992 query I rowsort SELECT + col1 * - 29 - col0 FROM tab2 AS cor0 ---- -1789 -572 -906 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8241 SELECT ALL - + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8241 SELECT ALL - + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8242 SELECT DISTINCT + col0 * col2 + + col1 * - ( col0 ) + col2 DIV col1 AS col1 FROM tab1 AS cor0 ---- 3013 6647 86 skipif mysql # not compatible query I rowsort label-8242 SELECT DISTINCT + col0 * col2 + + col1 * - ( col0 ) + col2 / col1 AS col1 FROM tab1 AS cor0 ---- 3013 6647 86 query I rowsort SELECT ( col2 ) + + col2 FROM tab0 AS cor0 ---- 164 2 66 onlyif mysql # use DIV operator for integer division query I rowsort label-8244 SELECT DISTINCT + - col2 + col1 DIV + 19 + + col2 col0 FROM tab0 AS cor0 ---- 4 5 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8244 SELECT DISTINCT + - col2 + col1 / + 19 + + col2 col0 FROM tab0 AS cor0 ---- 4 5 query I rowsort SELECT ALL - col0 + col1 * col0 * + col0 FROM tab1 AS cor0 ---- 231 40896 83120 query I rowsort SELECT + + col0 + + col0 - + 86 * 9 FROM tab0 AS cor0 ---- -596 -704 -726 query I rowsort SELECT + + col1 * - col0 + + col0 AS col2 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT + 71 + 56 FROM tab0 AS cor0 ---- 127 127 127 query I rowsort SELECT + col2 + 42 AS col0 FROM tab1 cor0 ---- 138 96 99 query I rowsort SELECT - col0 * - col2 + - cor0.col1 * + 3 FROM tab2 AS cor0 ---- 1851 2951 96 query I rowsort SELECT ALL - 33 * col2 + - col1 AS col2 FROM tab2 AS cor0 ---- -1271 -917 -922 query I rowsort SELECT DISTINCT + - 36 + + col2 + col2 FROM tab2 AS cor0 ---- 16 18 40 query I rowsort SELECT ALL + - 64 * - col0 - - cor0.col2 * - 40 FROM tab1 AS cor0 ---- -1968 1280 1816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab2.col0 col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT DISTINCT 16 * - col0 + 98 * + col1 * col2 FROM tab1 AS cor0 ---- 121024 137544 54836 query I rowsort SELECT ( + 56 ) FROM tab2 ---- 56 56 56 query I rowsort SELECT + 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11 query I rowsort SELECT + col2 - ( - cor0.col1 ) AS col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT + - cor0.col2 * col1 - col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 onlyif mysql # use DIV operator for integer division query I rowsort label-8260 SELECT col0 * + 80 + tab0.col0 DIV + tab0.col0 + ( ( + col2 ) ) FROM tab0 ---- 1954 2802 7203 skipif mysql # not compatible query I rowsort label-8260 SELECT col0 * + 80 + tab0.col0 / + tab0.col0 + ( ( + col2 ) ) FROM tab0 ---- 1954 2802 7203 query I rowsort SELECT DISTINCT - col1 - col0 * col1 FROM tab2 ---- -1360 -248 -4661 query I rowsort SELECT ALL + 23 FROM tab0, tab0 cor0 ---- 9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2 query I rowsort SELECT DISTINCT + col1 * 54 - tab2.col0 * + tab2.col1 AS col2 FROM tab2 ---- -1416 -425 1457 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 cor2 ---- 3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b query I rowsort SELECT DISTINCT + tab1.col2 - 91 * + col0 FROM tab1 ---- -219 -5767 -7184 query I rowsort SELECT DISTINCT + col2 + + 26 AS col1 FROM tab1 AS cor0 ---- 122 80 83 query I rowsort SELECT DISTINCT - - col0 + 38 AS col1 FROM tab2 AS cor0 ---- 116 117 45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8268 SELECT + - col0 * CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-8268 SELECT + - col0 * CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT + + col0 + 97 FROM tab2 AS cor0 ---- 104 175 176 query I rowsort SELECT DISTINCT col1 - 68 * + ( + col2 ) AS col0 FROM tab1 ---- -3646 -3866 -6515 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + - 62 * + col2 col0 FROM tab0 AS cor0 ---- -2022 -27 -4995 onlyif mysql # use DIV operator for integer division query I rowsort label-8272 SELECT + + ( + 44 ) DIV col2 + col0 * + col2 AS col2 FROM tab0 cor0 ---- 7298 79 793 skipif mysql # not compatible query I rowsort label-8272 SELECT + + ( + 44 ) / col2 + col0 * + col2 AS col2 FROM tab0 cor0 ---- 7298 79 793 query I rowsort SELECT DISTINCT ( col0 ) * - cor0.col0 FROM tab1 cor0 ---- -4096 -6400 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-8274 SELECT ALL col0 DIV col1 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-8274 SELECT ALL col0 / col1 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 3 70 86 query I rowsort SELECT ALL - 46 + + 51 FROM tab0 AS cor0 ---- 5 5 5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8276 SELECT + CAST( 47 AS SIGNED ) + col2 FROM tab1 AS cor0 ---- 101 104 143 skipif mysql # not compatible query I rowsort label-8276 SELECT + CAST ( 47 AS INTEGER ) + col2 FROM tab1 AS cor0 ---- 101 104 143 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + tab0.col0 col2 FROM tab0 ---- 178 48 70 onlyif mysql # use DIV operator for integer division query I rowsort label-8278 SELECT DISTINCT + ( col0 * tab2.col2 ) + 21 DIV + 34 + - col1 AS col0 FROM tab2 ---- 158 1969 2985 skipif mysql # not compatible query I rowsort label-8278 SELECT DISTINCT + ( col0 * tab2.col2 ) + 21 / + 34 + - col1 AS col0 FROM tab2 ---- 158 1969 2985 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8279 SELECT ALL + CAST( col0 AS SIGNED ) * col2 + col2 AS col1 FROM tab2 ---- 2054 216 3040 skipif mysql # not compatible query I rowsort label-8279 SELECT ALL + CAST ( col0 AS INTEGER ) * col2 + col2 AS col1 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT - col0 + tab1.col0 * col2 AS col1 FROM tab1 ---- 159 3584 7600 query I rowsort SELECT - 14 - col1 * + cor0.col1 * col2 FROM tab0 AS cor0 ---- -244082 -679056 -9423 query I rowsort SELECT + - 4 + + col2 * col2 FROM tab0 AS cor0 ---- -3 1085 6720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 6 col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5d1cb90ed58fa7573895d2f95b211821 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8284 SELECT ALL + CAST( 37 AS SIGNED ) FROM tab0 cor0 ---- 37 37 37 skipif mysql # not compatible query I rowsort label-8284 SELECT ALL + CAST ( 37 AS INTEGER ) FROM tab0 cor0 ---- 37 37 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8285 SELECT + 43 * - col1 + + CAST( col1 AS SIGNED ) FROM tab2 ---- -1302 -2478 -714 skipif mysql # not compatible query I rowsort label-8285 SELECT + 43 * - col1 + + CAST ( col1 AS INTEGER ) FROM tab2 ---- -1302 -2478 -714 query I rowsort SELECT DISTINCT 5 * - col0 FROM tab2 cor0 ---- -35 -390 -395 onlyif mysql # use DIV operator for integer division query I rowsort label-8287 SELECT cor0.col2 + - 11 DIV cor0.col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 602c6bce864983181b0d19ebecd5f7b0 skipif mysql # not compatible query I rowsort label-8287 SELECT cor0.col2 + - 11 / cor0.col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 602c6bce864983181b0d19ebecd5f7b0 query I rowsort SELECT ALL - 46 * col1 + + col2 AS col0 FROM tab2 AS cor0 ---- -1399 -2688 -744 query I rowsort SELECT ALL - + 84 * + cor0.col0 AS col2 FROM tab1 AS cor0 ---- -252 -5376 -6720 onlyif mysql # use DIV operator for integer division query I rowsort label-8290 SELECT ALL - col0 * - col1 + ( col1 ) DIV col1 AS col0 FROM tab1 AS cor0 ---- 1041 641 79 skipif mysql # not compatible query I rowsort label-8290 SELECT ALL - col0 * - col1 + ( col1 ) / col1 AS col0 FROM tab1 AS cor0 ---- 1041 641 79 query I rowsort SELECT DISTINCT - - col1 * + ( col2 ) AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT col0 * 36 + col1 * + col0 + col0 FROM tab0 AS cor0 ---- 11392 2952 4690 query I rowsort SELECT ALL - - col0 * 49 + - col2 AS col2 FROM tab0 AS cor0 ---- 1143 1714 4279 query I rowsort SELECT ALL - col0 + col1 * - 24 AS col0 FROM tab2 AS cor0 ---- -1494 -487 -751 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 - col1 col1 FROM tab2 cor0 ---- -118 -34 -62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8296 SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) + - col2 * col1 col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8296 SELECT DISTINCT col0 / - CAST ( NULL AS INTEGER ) + - col2 * col1 col1 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8297 SELECT ALL - + col0 DIV ( + 18 ) AS col0 FROM tab1 AS cor0 ---- -3 -4 0 skipif mysql # not compatible query I rowsort label-8297 SELECT ALL - + col0 / ( + 18 ) AS col0 FROM tab1 AS cor0 ---- -3 -4 0 query I rowsort SELECT ALL - col1 + + 11 FROM tab0 AS cor0 ---- -75 -80 -86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col0 * 44 col2 FROM tab0 AS cor0 ---- 1056 1540 3916 query I rowsort SELECT + - col0 + - ( col1 ) FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT ALL + - cor0.col2 + + ( col2 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - ( + 34 + col0 ) AS col2 FROM tab0 ---- -123 -58 -69 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8303 SELECT + CAST( + col0 AS SIGNED ) AS col2 FROM tab2 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-8303 SELECT + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 ---- 7 78 79 query I rowsort SELECT - tab0.col2 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT - - col1 + + col2 + col1 AS col1 FROM tab1 cor0 ---- 106 122 77 query I rowsort SELECT DISTINCT + col1 + col1 * + col1 AS col0 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT DISTINCT + - col1 - + 34 AS col0 FROM tab1 AS cor0 ---- -44 -47 -60 query I rowsort SELECT ALL - + ( 62 ) * col1 AS col2 FROM tab1 AS cor0 ---- -1612 -620 -806 query I rowsort SELECT - col0 * cor0.col0 + + col0 AS col2 FROM tab2 AS cor0 ---- -42 -6006 -6162 query I rowsort SELECT 19 + - 75 AS col0 FROM tab0 AS cor0 ---- -56 -56 -56 query I rowsort SELECT + 89 * - col2 + ( - 60 ) FROM tab2 AS cor0 ---- -2374 -2463 -3442 query I rowsort SELECT ALL - + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT - 94 * + cor0.col1 FROM tab1 AS cor0 ---- -1222 -2444 -940 query I rowsort SELECT - 73 + - col0 AS col2 FROM tab1 cor0 ---- -137 -153 -76 query I rowsort SELECT ALL + - 26 + + col1 * col0 + 67 AS col0 FROM tab1 AS cor0 ---- 1081 119 681 query I rowsort SELECT ALL 4 AS col0 FROM tab0 cor0 ---- 4 4 4 query I rowsort SELECT DISTINCT + - col2 * cor0.col1 * col2 + - col1 AS col2 FROM tab2 AS cor0 ---- -22630 -24565 -39943 query I rowsort SELECT + 5 * - ( - col0 ) FROM tab0 ---- 120 175 445 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 45 * col1 col1 FROM tab2 AS cor0 ---- 1395 2655 765 query I rowsort SELECT ALL - 76 AS col0 FROM tab2 ---- -76 -76 -76 query I rowsort SELECT DISTINCT cor0.col1 + + 85 AS col0 FROM tab0 AS cor0 ---- 171 176 182 query I rowsort SELECT - col0 * ( - 31 ) FROM tab0 AS cor0 ---- 1085 2759 744 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8323 SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) * + col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8323 SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) * + col0 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 * col2 - - col1 FROM tab2 AS cor0 ---- -1427 -617 -698 query I rowsort SELECT DISTINCT - col0 * 9 FROM tab0 AS cor0 ---- -216 -315 -801 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - cor0.col2 col2 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT col0 * 39 FROM tab0 AS cor0 ---- 1365 3471 936 query I rowsort SELECT ALL - cor0.col0 * 2 AS col0 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT DISTINCT - + col2 + - 24 FROM tab2 cor0 ---- -50 -51 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - ( col1 ) * col2 col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 skipif mysql # not compatible query I rowsort SELECT col2 + CAST ( 25 AS REAL ) * - col0 * col0 AS col2 FROM tab2 AS cor0 ---- -1198 -152074 -155987 query I rowsort SELECT DISTINCT - col2 - + col1 * col1 FROM tab1 cor0 ---- -157 -265 -730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * - 84 col0 FROM tab1 AS cor0 ---- -252 -5376 -6720 query I rowsort SELECT col2 * - col1 - - 19 * col2 AS col1 FROM tab1 ---- -378 513 576 query I rowsort SELECT ALL col0 - col2 * 32 AS col2 FROM tab1 ---- -1725 -1760 -2992 query I rowsort SELECT ALL + - col0 * ( - col2 ) - + col2 AS col0 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT ALL col2 * + col0 + - col0 AS col1 FROM tab2 AS cor0 ---- 182 1950 2923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8338 SELECT + cor0.col2 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 skipif mysql # not compatible query I rowsort label-8338 SELECT + cor0.col2 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL - 85 * + 13 AS col0 FROM tab1 AS cor0 ---- -1105 -1105 -1105 onlyif mysql # use DIV operator for integer division query I rowsort label-8340 SELECT ALL - 33 + ( col0 ) * col2 + - col0 DIV col1 FROM tab0 AS cor0 ---- 2 7265 759 skipif mysql # not compatible query I rowsort label-8340 SELECT ALL - 33 + ( col0 ) * col2 + - col0 / col1 FROM tab0 AS cor0 ---- 2 7265 759 query I rowsort SELECT ALL - col2 * - col2 + col1 FROM tab1 ---- 2942 3259 9229 query I rowsort SELECT - col0 + - 52 + col2 * - 25 FROM tab1 AS cor0 ---- -1405 -1541 -2532 onlyif mysql # use DIV operator for integer division query I rowsort label-8343 SELECT - - col0 + - col2 + - col0 DIV cor0.col1 FROM tab0 AS cor0 ---- -9 34 7 skipif mysql # not compatible query I rowsort label-8343 SELECT - - col0 + - col2 + - col0 / cor0.col1 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT - col1 * - col1 + col2 + + col1 AS col0 FROM tab1 AS cor0 ---- 167 278 756 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8345 SELECT DISTINCT + col1 + - CAST( + ( + col1 ) * + ( col2 ) AS SIGNED ) + + col0 * col0 FROM tab1 ---- -1369 3536 5165 skipif mysql # not compatible query I rowsort label-8345 SELECT DISTINCT + col1 + - CAST ( + ( + col1 ) * + ( col2 ) AS INTEGER ) + + col0 * col0 FROM tab1 ---- -1369 3536 5165 onlyif mysql # use DIV operator for integer division query I rowsort label-8346 SELECT - col1 DIV - ( col1 ) FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8346 SELECT - col1 / - ( col1 ) FROM tab0 ---- 1 1 1 query I rowsort SELECT - 24 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to f2e40f6e5cdbc2877843191cb261975f query I rowsort SELECT + col2 + + ( col0 * col1 ) + + col0 FROM tab1 ---- 1216 135 761 query I rowsort SELECT DISTINCT col0 + + col0 * - col2 FROM tab2 ---- -182 -1950 -2923 query I rowsort SELECT - ( - col0 ) * col0 * - ( + col0 ) FROM tab0 ---- -13824 -42875 -704969 query I rowsort SELECT 92 * col1 FROM tab2 ---- 1564 2852 5428 query I rowsort SELECT ALL col2 + - 62 FROM tab2 AS cor0 ---- -24 -35 -36 query I rowsort SELECT - - col1 * - col1 + col1 FROM tab1 AS cor0 ---- -156 -650 -90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8354 SELECT + CAST( NULL AS SIGNED ) - 86 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8354 SELECT + CAST ( NULL AS INTEGER ) - 86 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( + ( tab1.col2 ) ) * col0 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT tab2.col1 * - 95 FROM tab2 ---- -1615 -2945 -5605 query I rowsort SELECT + + 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to b56f8a4f1fcebc9802481256df61e97c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8358 SELECT + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8358 SELECT + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 21 + tab1.col2 FROM tab1 ---- 117 75 78 query I rowsort SELECT - col0 + col2 * + 27 AS col0 FROM tab2 cor0 ---- 624 722 947 query I rowsort SELECT DISTINCT + col1 * col1 + - ( + col0 ) FROM tab0 AS cor0 ---- 7372 8192 9374 query I rowsort SELECT - col2 * 0 * - tab0.col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT + - col1 * 86 + - col2 AS col0 FROM tab1 AS cor0 ---- -1214 -2290 -917 query I rowsort SELECT ALL - col1 * - 26 AS col0 FROM tab0 AS cor0 ---- 2236 2366 2522 query I rowsort SELECT ALL - col0 * - 89 + + 72 AS col2 FROM tab1 AS cor0 ---- 339 5768 7192 query I rowsort SELECT DISTINCT col0 * + ( - 0 ) FROM tab2 cor0 ---- 0 query I rowsort SELECT - col1 + + col2 * col0 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT - + 51 - - col1 FROM tab1 AS cor0 ---- -25 -38 -41 onlyif mysql # use DIV operator for integer division query I rowsort label-8369 SELECT col2 * - col0 + CAST( - col0 AS SIGNED ) DIV + col0 - + col0 FROM tab2 ---- -197 -2107 -3082 skipif mysql # not compatible query I rowsort label-8369 SELECT col2 * - col0 + CAST ( - col0 AS INTEGER ) / + col0 - + col0 FROM tab2 ---- -197 -2107 -3082 onlyif mysql # use DIV operator for integer division query I rowsort label-8370 SELECT col0 DIV col0 + - ( col1 ) AS col2 FROM tab1 cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-8370 SELECT col0 / col0 + - ( col1 ) AS col2 FROM tab1 cor0 ---- -12 -25 -9 query I rowsort SELECT DISTINCT + col1 - - col1 * col1 AS col2 FROM tab2 AS cor0 ---- 306 3540 992 onlyif mysql # use DIV operator for integer division query I rowsort label-8372 SELECT DISTINCT + col2 + col1 DIV 90 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-8372 SELECT DISTINCT + col2 + col1 / 90 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL + ( col0 ) + + col2 - - col2 AS col0 FROM tab1 AS cor0 ---- 111 178 272 query I rowsort SELECT - col1 * - col2 - col0 FROM tab2 cor0 ---- 1456 567 830 query I rowsort SELECT col0 + + col0 * + col2 * col2 FROM tab1 cor0 ---- 208000 737360 8751 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 - col2 col1 FROM tab2 AS cor0 ---- -20 41 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 - + 75 col1 FROM tab1 AS cor0 ---- 25 601 94 query I rowsort SELECT DISTINCT - col0 * ( + col1 ) AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT 14 * + col0 FROM tab2 ---- 1092 1106 98 query I rowsort SELECT + 74 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31 query I rowsort SELECT + col0 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT ALL - 27 + - col1 * - col0 AS col0 FROM tab1 AS cor0 ---- 1013 51 613 onlyif mysql # use DIV operator for integer division query I rowsort label-8383 SELECT DISTINCT - col1 * col0 DIV - col1 - - 66 FROM tab2 AS cor0 ---- 144 145 73 skipif mysql # not compatible query I rowsort label-8383 SELECT DISTINCT - col1 * col0 / - col1 - - 66 FROM tab2 AS cor0 ---- 144 145 73 query I rowsort SELECT tab1.col0 * tab1.col2 + 86 AS col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 4cddbd60e6cddd2ded3c5e117b49dd97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 15 + col1 col2 FROM tab0 AS cor0 ---- 101 106 112 query I rowsort SELECT ALL + col1 + - cor0.col2 + - 77 * col1 AS col2 FROM tab2 AS cor0 ---- -1330 -2383 -4510 onlyif mysql # use DIV operator for integer division query I rowsort label-8387 SELECT ALL + 74 DIV + col2 FROM tab0 cor0 ---- 0 2 74 skipif mysql # not compatible query I rowsort label-8387 SELECT ALL + 74 / + col2 FROM tab0 cor0 ---- 0 2 74 query I rowsort SELECT 47 FROM tab1, tab0, tab0 AS cor0, tab2 ---- 81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8389 SELECT ALL 12 + + col2 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 ---- 2928 3261 9228 skipif mysql # not compatible query I rowsort label-8389 SELECT ALL 12 + + col2 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 ---- 2928 3261 9228 query I rowsort SELECT DISTINCT - + cor0.col1 * + col1 + col2 + - col0 AS col1 FROM tab0 AS cor0 ---- -7387 -8288 -9443 query I rowsort SELECT + - 94 * col2 AS col0 FROM tab0 AS cor0 ---- -3102 -7708 -94 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2 ---- 3645 values hashing to ae08f1949fd59e00b049f28175217e60 query I rowsort SELECT col0 * col1 * col0 + - 54 * col0 * + col0 AS col2 FROM tab0 ---- 18432 293077 52675 query I rowsort SELECT DISTINCT - 69 AS col2 FROM tab0, tab2, tab0 cor0 ---- -69 query I rowsort SELECT cor0.col1 * + col0 * col2 FROM tab0 AS cor0 ---- 3395 664118 68112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 82 col2 FROM tab1 cor0 ---- 82 82 82 query I rowsort SELECT tab2.col0 * - col0 + 7 * tab2.col0 AS col2 FROM tab2 ---- -5538 -5688 0 query I rowsort SELECT DISTINCT tab0.col2 FROM tab0, tab0 AS cor0, tab0 cor1 ---- 1 33 82 query I rowsort SELECT cor0.col0 + tab1.col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 4a01ecc2037eb425b02feee67266c705 query I rowsort SELECT col1 + 91 AS col0 FROM tab2 cor0 ---- 108 122 150 query I rowsort SELECT DISTINCT + col1 + + 51 * col1 + col1 AS col1 FROM tab2 ---- 1643 3127 901 query I rowsort SELECT DISTINCT tab1.col2 + col2 + + col0 FROM tab1 ---- 111 178 272 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8403 SELECT DISTINCT - cor0.col1 * - col2 + + col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8403 SELECT DISTINCT - cor0.col1 * - col2 + + col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT DISTINCT cor0.col1 * + col1 * col1 + col2 FROM tab0 AS cor0 ---- 636089 753653 912674 query I rowsort SELECT ALL + - col2 * + 67 + - col0 FROM tab0 AS cor0 ---- -102 -2235 -5583 query I rowsort SELECT DISTINCT + - col1 + + col1 * + col2 AS col1 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT DISTINCT 18 + + 16 FROM tab1 AS cor0 ---- 34 query I rowsort SELECT ALL + ( + 24 ) AS col1 FROM tab2 AS cor0 ---- 24 24 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 + 92 col2 FROM tab0 AS cor0 ---- 125 174 93 query I rowsort SELECT ALL col0 * - 15 AS col0 FROM tab0 AS cor0 ---- -1335 -360 -525 query I rowsort SELECT DISTINCT + ( + col1 ) + + col1 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT ALL + + col1 * - 42 FROM tab0 AS cor0 ---- -3612 -3822 -4074 query I rowsort SELECT + + col1 + 53 * col0 * - 79 FROM tab2 AS cor0 ---- -29278 -326527 -330756 query I rowsort SELECT ALL - 98 * - col2 FROM tab0 AS cor0 ---- 3234 8036 98 query I rowsort SELECT + ( + col1 ) * col0 AS col2 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT ALL ( - col0 ) * + col2 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT + col2 * - col2 + + col1 FROM tab2 AS cor0 ---- -1427 -617 -698 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col1 + CAST ( col2 AS REAL ) AS col1 FROM tab2 ---- -33 -4 21 query I rowsort SELECT ALL col0 * - ( + col2 ) + tab1.col2 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT cor0.col2 * cor0.col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947 query I rowsort SELECT ALL col2 * col2 * 88 AS col2 FROM tab1 ---- 256608 285912 811008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + + col1 * + 20 col1 FROM tab1 ---- 210 273 546 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8423 SELECT + + CAST( 92 AS SIGNED ) + cor0.col0 * + 51 AS col0 FROM tab2 AS cor0 ---- 4070 4121 449 skipif mysql # not compatible query I rowsort label-8423 SELECT + + CAST ( 92 AS INTEGER ) + cor0.col0 * + 51 AS col0 FROM tab2 AS cor0 ---- 4070 4121 449 query I rowsort SELECT + col2 + - col1 + - col2 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT + cor2.col0 * - 70 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to 633fc1b94beec0051c3c4cd133cadb2b onlyif mysql # use DIV operator for integer division query I rowsort label-8426 SELECT DISTINCT - ( + col0 ) + col2 * - col1 + + col2 DIV - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -133 -2863 -7552 skipif mysql # not compatible query I rowsort label-8426 SELECT DISTINCT - ( + col0 ) + col2 * - col1 + + col2 / - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -133 -2863 -7552 query I rowsort SELECT ALL + cor0.col1 * col2 - + col1 * - ( + ( - col1 ) ) AS col1 FROM tab2 AS cor0 ---- -124 -1947 357 query I rowsort SELECT - col0 * col1 + 18 AS col1 FROM tab1 ---- -1022 -60 -622 onlyif mysql # use DIV operator for integer division query I rowsort label-8429 SELECT col2 + - col2 DIV - tab0.col2 AS col0 FROM tab0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-8429 SELECT col2 + - col2 / - tab0.col2 AS col0 FROM tab0 ---- 2 34 83 query I rowsort SELECT + col0 * col1 + 96 * 38 AS col1 FROM tab0 ---- 11747 5712 7043 query I rowsort SELECT DISTINCT - 59 + + col0 * + 65 AS col2 FROM tab1 AS cor0 ---- 136 4101 5141 query I rowsort SELECT ALL - ( tab1.col2 + + col2 ) AS col0 FROM tab1 ---- -108 -114 -192 query I rowsort SELECT + - 37 AS col2 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 395d44ccbce08828bc493e93ec3d9207 query I rowsort SELECT + + col2 + - col2 + + col1 * col2 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8435 SELECT DISTINCT - col0 + CAST( 29 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -49 -50 22 skipif mysql # not compatible query I rowsort label-8435 SELECT DISTINCT - col0 + CAST ( 29 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -49 -50 22 query I rowsort SELECT ALL + col1 + - ( col2 + - col2 ) FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + col1 * - col1 + + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0 ---- 1079 470 728 query I rowsort SELECT ALL - - col0 * - col2 + cor0.col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT DISTINCT - - col1 * - cor0.col0 + - 82 * col0 * col0 FROM tab1 AS cor0 ---- -336512 -525840 -816 query I rowsort SELECT + col1 + col2 * - 99 * cor0.col2 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -107701 -665496 33 query I rowsort SELECT col0 * - cor0.col0 - col1 FROM tab0 cor0 ---- -1322 -662 -8012 query I rowsort SELECT ALL - col2 * - 94 FROM tab0 AS cor0 ---- 3102 7708 94 query I rowsort SELECT DISTINCT - col1 * 63 AS col2 FROM tab2 cor0 ---- -1071 -1953 -3717 query I rowsort SELECT ALL col2 * - ( - ( col1 ) ) AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8445 SELECT cor0.col0 * - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-8445 SELECT cor0.col0 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + cor0.col2 - ( - col1 * col1 ) AS col0 FROM tab2 AS cor0 ---- 327 3507 988 query I rowsort SELECT - + col2 + - ( - col0 ) AS col1 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT - 82 * ( col2 ) - + ( + 33 ) FROM tab0 AS cor0 ---- -115 -2739 -6757 query I rowsort SELECT ( - col2 ) + cor0.col0 AS col2 FROM tab1 AS cor0 ---- -16 -51 7 skipif mysql # not compatible query I rowsort SELECT - - CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT + 34 * cor0.col1 FROM tab0 AS cor0 ---- 2924 3094 3298 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * col1 * col1 + - col1 * + col2 col1 FROM tab1 AS cor0 ---- -14768 -3432 -6970 query I rowsort SELECT DISTINCT - col2 * + col2 + tab2.col1 * col0 AS col2 FROM tab2 ---- -101 -512 3926 query I rowsort SELECT DISTINCT 62 AS col1 FROM tab2, tab1 AS cor0 ---- 62 query I rowsort SELECT - - ( - col0 ) * col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL + 82 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c query I rowsort SELECT ALL tab0.col0 * + 50 FROM tab0, tab0 AS cor0 ---- 9 values hashing to a8abd36861657db7f885523c01bc34a0 query I rowsort SELECT - + col1 * + col1 + col1 * 77 FROM tab0 cor0 ---- -1274 -1940 -774 query I rowsort SELECT DISTINCT - - ( cor0.col0 ) * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 49 6084 6241 query I rowsort SELECT DISTINCT + ( + 71 ) FROM tab0 ---- 71 query I rowsort SELECT 37 + + ( col0 ) AS col1 FROM tab2 ---- 115 116 44 query I rowsort SELECT DISTINCT - 92 FROM tab2, tab2 AS cor0 ---- -92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * 24 col1 FROM tab0 ---- 1968 24 792 query I rowsort SELECT 95 AS col0 FROM tab0, tab1 cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 89 col2 FROM tab0, tab2 AS cor0 ---- 89 query I rowsort SELECT ALL 29 AS col2 FROM tab2 ---- 29 29 29 query I rowsort SELECT ALL + cor0.col0 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT - 25 + col1 + - ( + 41 + col0 * ( col2 ) ) FROM tab2 ---- -2035 -224 -3051 query I rowsort SELECT DISTINCT + 99 * col0 FROM tab2 AS cor0 ---- 693 7722 7821 query I rowsort SELECT ALL col1 * - cor0.col0 + - col2 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT ( - col2 ) * 10 * cor0.col2 FROM tab1 AS cor0 ---- -29160 -32490 -92160 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8472 SELECT DISTINCT - ( - cor0.col1 ) + - CAST( - 61 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 120 78 92 skipif mysql # not compatible query I rowsort label-8472 SELECT DISTINCT - ( - cor0.col1 ) + - CAST ( - 61 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 120 78 92 query I rowsort SELECT ALL + 42 * + col2 FROM tab1 cor0 ---- 2268 2394 4032 query I rowsort SELECT - col0 * col2 + col1 FROM tab2 cor0 ---- -158 -1969 -2985 query I rowsort SELECT - + col2 + + 36 AS col2 FROM tab2 AS cor0 ---- -2 10 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8476 SELECT + - col2 * - CAST( NULL AS SIGNED ) + + col2 * col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8476 SELECT + - col2 * - CAST ( NULL AS INTEGER ) + + col2 * col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT cor0.col2 + - 28 AS col2 FROM tab2 AS cor0 ---- -1 -2 10 query I rowsort SELECT + + col2 * + 35 FROM tab1 AS cor0 ---- 1890 1995 3360 query I rowsort SELECT - cor0.col0 * cor1.col1 FROM tab2, tab2 AS cor0, tab0 cor1, tab2 AS cor2 ---- 81 values hashing to 04f9e446674d6e3f720f03adbdb0aac0 query I rowsort SELECT DISTINCT + + col0 * cor0.col0 * col2 + + ( 38 ) + - col0 FROM tab1 AS cor0 ---- 233446 521 614358 onlyif mysql # use DIV operator for integer division query I rowsort label-8481 SELECT DISTINCT + col2 DIV CAST( - col0 AS SIGNED ) FROM tab1 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-8481 SELECT DISTINCT + col2 / CAST ( - col0 AS INTEGER ) FROM tab1 ---- -1 -18 0 query I rowsort SELECT DISTINCT + - col1 * - 64 * col0 + + col1 FROM tab0 AS cor0 ---- 132182 217377 518427 query I rowsort SELECT ALL + 69 - + col2 * - col0 AS col2 FROM tab0 AS cor0 ---- 104 7367 861 query I rowsort SELECT ALL - col1 + - cor0.col0 - + col2 * col2 AS col0 FROM tab1 cor0 ---- -2945 -3323 -9309 query I rowsort SELECT - col2 * - 15 FROM tab0 AS cor0 ---- 1230 15 495 onlyif mysql # use DIV operator for integer division query I rowsort label-8486 SELECT ALL - col2 * 37 + - col0 * col2 - col1 DIV + col0 col2 FROM tab0 AS cor0 ---- -10333 -2016 -74 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8486 SELECT ALL - col2 * 37 + - col0 * col2 - col1 / + col0 col2 FROM tab0 AS cor0 ---- -10333 -2016 -74 query I rowsort SELECT DISTINCT - ( - 46 ) * col0 * + 89 + + col0 * - col2 AS col2 FROM tab0 AS cor0 ---- 143255 357068 97464 query I rowsort SELECT - col0 * - col0 * + tab0.col2 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT ALL - 39 * + col2 FROM tab2 cor0 ---- -1014 -1053 -1482 query I rowsort SELECT ALL + - col0 + + ( col2 ) + ( + col0 ) * - col2 AS col1 FROM tab2 AS cor0 ---- -169 -2080 -3043 query I rowsort SELECT DISTINCT col2 * col1 - - col0 * - 15 FROM tab1 AS cor0 ---- -390 1359 48 query I rowsort SELECT - 30 + - col2 * - col2 * - col1 AS col2 FROM tab0 AS cor0 ---- -127 -611914 -93684 query I rowsort SELECT - + 72 * 56 + + col0 AS col0 FROM tab0 AS cor0 ---- -3943 -3997 -4008 query I rowsort SELECT ALL + - 51 * - col2 + - col2 FROM tab0 AS cor0 ---- 1650 4100 50 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 2 * - cor2.col2 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2 ---- 243 values hashing to ca734490f6045a6658de246f41e7d1d3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 84 col1 FROM tab2 cor0 ---- 84 84 84 query I rowsort SELECT ALL - 52 FROM tab0, tab0 cor0 ---- 9 values hashing to 9500afe5646d620d5e8943351a29d082 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8498 SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-8498 SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT + ( + col0 ) + 10 * 95 AS col1 FROM tab0 AS cor0 ---- 1039 974 985 query I rowsort SELECT cor0.col0 * - col0 * col1 FROM tab2 cor0 ---- -106097 -1519 -358956 onlyif mysql # use DIV operator for integer division query I rowsort label-8501 SELECT DISTINCT - col1 - + 77 DIV col1 FROM tab1 AS cor0 ---- -17 -18 -28 skipif mysql # not compatible query I rowsort label-8501 SELECT DISTINCT - col1 - + 77 / col1 FROM tab1 AS cor0 ---- -17 -18 -28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + 12 * col1 col2 FROM tab2 AS cor0 ---- 242 399 734 query I rowsort SELECT - cor0.col2 + + cor0.col0 * + 32 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 2dbb8179691ea9c13075108f7709f355 query I rowsort SELECT + col2 + 98 AS col1 FROM tab2 AS cor0 ---- 124 125 136 query I rowsort SELECT + tab2.col2 * + col2 * + tab2.col0 - col2 FROM tab2 ---- 114038 5076 52702 query I rowsort SELECT col0 + cor0.col0 * + col2 FROM tab2 cor0 ---- 196 2106 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-8507 SELECT ( 59 ) DIV - cor0.col2 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 7376c9d54f61f7877872e8ced3d1a5c3 skipif mysql # not compatible query I rowsort label-8507 SELECT ( 59 ) / - cor0.col2 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 7376c9d54f61f7877872e8ced3d1a5c3 query I rowsort SELECT + col2 + + 31 AS col0 FROM tab2 ---- 57 58 69 query I rowsort SELECT col0 + col1 * col0 * col0 + col1 FROM tab2 ---- 106193 1557 359093 onlyif mysql # use DIV operator for integer division query I rowsort label-8510 SELECT - tab2.col1 * col1 + - 25 + + tab2.col1 DIV - col1 AS col1 FROM tab2 ---- -315 -3507 -987 skipif mysql # not compatible query I rowsort label-8510 SELECT - tab2.col1 * col1 + - 25 + + tab2.col1 / - col1 AS col1 FROM tab2 ---- -315 -3507 -987 onlyif mysql # use DIV operator for integer division query I rowsort label-8511 SELECT - col2 DIV col2 + col1 * - col0 AS col1 FROM tab1 ---- -1041 -641 -79 skipif mysql # not compatible query I rowsort label-8511 SELECT - col2 / col2 + col1 * - col0 AS col1 FROM tab1 ---- -1041 -641 -79 query I rowsort SELECT ALL col2 * ( + col0 ) + - cor0.col1 * + col2 FROM tab0 AS cor0 ---- -164 -2046 -62 query I rowsort SELECT + - cor0.col0 * - ( 38 * col1 ) - - 47 * + col1 FROM tab2 AS cor0 ---- 177649 51833 9703 query I rowsort SELECT col2 + - 59 FROM tab0 AS cor0 ---- -26 -58 23 query I rowsort SELECT DISTINCT col1 + - ( col0 ) * + col1 AS col1 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT + col2 + + 7 AS col2 FROM tab0 ---- 40 8 89 query I rowsort SELECT DISTINCT col1 + - col2 + + col2 * + col0 AS col1 FROM tab0 ---- 131 7307 845 onlyif mysql # use DIV operator for integer division query I rowsort label-8518 SELECT - + 97 - - col2 DIV - col0 col2 FROM tab2 AS cor0 ---- -100 -97 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8518 SELECT - + 97 - - col2 / - col0 col2 FROM tab2 AS cor0 ---- -100 -97 -97 query I rowsort SELECT ALL + + col1 * cor0.col1 FROM tab2 cor0 ---- 289 3481 961 onlyif mysql # use DIV operator for integer division query I rowsort label-8520 SELECT DISTINCT col0 + col1 + - col0 DIV - col2 FROM tab1 ---- 29 75 93 skipif mysql # not compatible query I rowsort label-8520 SELECT DISTINCT col0 + col1 + - col0 / - col2 FROM tab1 ---- 29 75 93 query I rowsort SELECT - 41 * - col2 FROM tab2 ---- 1066 1107 1558 onlyif mysql # use DIV operator for integer division query I rowsort label-8522 SELECT DISTINCT - 15 + tab2.col1 * col2 DIV - col1 AS col0 FROM tab2 ---- -41 -42 -53 skipif mysql # not compatible query I rowsort label-8522 SELECT DISTINCT - 15 + tab2.col1 * col2 / - col1 AS col0 FROM tab2 ---- -41 -42 -53 query I rowsort SELECT - cor0.col1 + cor0.col0 * col0 * - col1 AS col2 FROM tab1 AS cor0 ---- -260 -40970 -83213 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8524 SELECT + tab1.col1 + CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8524 SELECT + tab1.col1 + CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + col0 + - ( - col1 ) * + col0 AS col1 FROM tab1 ---- 1120 704 81 query I rowsort SELECT col1 + + 78 FROM tab0 ---- 164 169 175 onlyif mysql # use DIV operator for integer division query I rowsort label-8527 SELECT - + cor0.col2 DIV + col1 AS col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-8527 SELECT - + cor0.col2 / + col1 AS col1 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT ( + cor0.col0 ) + cor0.col1 * - col1 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT DISTINCT col0 * - ( + col2 + col1 ) FROM tab0 ---- -15397 -2856 -3430 onlyif mysql # use DIV operator for integer division query I rowsort label-8530 SELECT DISTINCT + col2 DIV tab0.col0 AS col0 FROM tab0 ---- 0 1 skipif mysql # not compatible query I rowsort label-8530 SELECT DISTINCT + col2 / tab0.col0 AS col0 FROM tab0 ---- 0 1 query I rowsort SELECT ALL - 30 + - col1 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -319 -3511 -991 query I rowsort SELECT - 15 * + ( col2 ) FROM tab2 AS cor0 ---- -390 -405 -570 query I rowsort SELECT DISTINCT - + col0 * - 11 FROM tab1 AS cor0 ---- 33 704 880 onlyif mysql # use DIV operator for integer division query I rowsort label-8534 SELECT DISTINCT + col2 + - col0 * col1 DIV 71 FROM tab1 AS cor0 ---- 48 53 82 skipif mysql # not compatible query I rowsort label-8534 SELECT DISTINCT + col2 + - col0 * col1 / 71 FROM tab1 AS cor0 ---- 48 53 82 query I rowsort SELECT + + 0 * cor0.col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 + 59 AS col1 FROM tab0 AS cor0 ---- 148 83 94 onlyif mysql # use DIV operator for integer division query I rowsort label-8537 SELECT ALL + col2 DIV + ( + col1 ) FROM tab1 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-8537 SELECT ALL + col2 / + ( + col1 ) FROM tab1 ---- 2 5 7 query I rowsort SELECT 2 + - col0 FROM tab1 AS cor0 ---- -1 -62 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( - col1 ) col2 FROM tab1 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 24 col2 FROM tab0 AS cor0 ---- 24 24 24 query I rowsort SELECT 71 * + col1 * + col0 AS col2 FROM tab0 AS cor0 ---- 146544 241045 575029 onlyif mysql # use DIV operator for integer division query I rowsort label-8542 SELECT - col0 + col0 DIV 24 AS col1 FROM tab0 AS cor0 ---- -23 -34 -86 skipif mysql # not compatible query I rowsort label-8542 SELECT - col0 + col0 / 24 AS col1 FROM tab0 AS cor0 ---- -23 -34 -86 query I rowsort SELECT - 63 * col0 FROM tab1 cor0 ---- -189 -4032 -5040 query I rowsort SELECT DISTINCT col1 * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL - col2 + - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0 ---- 0 1056 6642 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8546 SELECT ALL - col1 * CAST( col0 AS SIGNED ) + col0 + 22 AS col1 FROM tab2 AS cor0 ---- -1242 -188 -4502 skipif mysql # not compatible query I rowsort label-8546 SELECT ALL - col1 * CAST ( col0 AS INTEGER ) + col0 + 22 AS col1 FROM tab2 AS cor0 ---- -1242 -188 -4502 query I rowsort SELECT + cor0.col0 * col1 + - col0 * cor0.col0 FROM tab2 AS cor0 ---- -1482 -4898 168 query I rowsort SELECT tab2.col2 * ( + 44 + col2 ) FROM tab2 ---- 1820 1917 3116 query I rowsort SELECT + cor0.col2 * - 71 + + 30 FROM tab2 AS cor0 ---- -1816 -1887 -2668 query I rowsort SELECT col1 * ( cor0.col2 ) - col1 * col2 * col1 AS col1 FROM tab1 AS cor0 ---- -14976 -35100 -5130 onlyif mysql # use DIV operator for integer division query I rowsort label-8551 SELECT + - col0 DIV col0 + col1 AS col2 FROM tab2 AS cor0 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-8551 SELECT + - col0 / col0 + col1 AS col2 FROM tab2 AS cor0 ---- 16 30 58 onlyif mysql # use DIV operator for integer division query I rowsort label-8552 SELECT - - col1 - + col1 DIV - 40 AS col1 FROM tab0 AS cor0 ---- 88 93 99 skipif mysql # not compatible query I rowsort label-8552 SELECT - - col1 - + col1 / - 40 AS col1 FROM tab0 AS cor0 ---- 88 93 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col1 ) col2 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT 74 AS col0 FROM tab2, tab0 cor0, tab1, tab2 AS cor1 ---- 74 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab2 cor0, tab0 cor1, tab2 cor2 ---- 972 values hashing to 89714dd446b7a97f8787d5744bdbf323 query I rowsort SELECT ALL - - col2 * - col2 * - col1 AS col0 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT - + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL + 47 AS col2 FROM tab2 ---- 47 47 47 query I rowsort SELECT DISTINCT - 65 AS col0 FROM tab2, tab0, tab1 cor0 ---- -65 query I rowsort SELECT - 47 FROM tab2, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5 query I rowsort SELECT cor0.col2 * + col1 AS col0 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT + col2 * - col2 * - col1 FROM tab1 cor0 ---- 119808 32490 75816 skipif mysql # not compatible query I rowsort SELECT + col2 * + CAST ( col0 AS REAL ) FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8564 SELECT - CAST( NULL AS SIGNED ) * col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8564 SELECT - CAST ( NULL AS INTEGER ) * col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - + col1 + + 10 + cor0.col2 * col1 FROM tab1 cor0 ---- 1245 1388 570 query I rowsort SELECT - + col2 * + col2 + + col1 + - col1 AS col0 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT - 48 + col1 * col2 FROM tab1 AS cor0 ---- 1200 1356 522 onlyif mysql # use DIV operator for integer division query I rowsort label-8568 SELECT DISTINCT + 61 DIV + col2 + 46 + ( - col0 + + tab0.col1 ) AS col0 FROM tab0 ---- 109 169 48 skipif mysql # not compatible query I rowsort label-8568 SELECT DISTINCT + 61 / + col2 + 46 + ( - col0 + + tab0.col1 ) AS col0 FROM tab0 ---- 109 169 48 query I rowsort SELECT 31 * col0 AS col1 FROM tab2 ---- 217 2418 2449 query I rowsort SELECT - col1 + - col1 * + col1 FROM tab1 ---- -110 -182 -702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col1 * col1 + col2 col2 FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT - 41 - col1 FROM tab0 AS cor0 ---- -127 -132 -138 onlyif mysql # use DIV operator for integer division query I rowsort label-8573 SELECT ALL - col0 + col2 DIV - 31 AS col1 FROM tab2 cor0 ---- -7 -78 -80 skipif mysql # not compatible query I rowsort label-8573 SELECT ALL - col0 + col2 / - 31 AS col1 FROM tab2 cor0 ---- -7 -78 -80 query I rowsort SELECT ALL - - 28 * col0 FROM tab2 AS cor0 ---- 196 2184 2212 query I rowsort SELECT ALL - col2 + + cor0.col1 - col0 FROM tab0 AS cor0 ---- -80 29 61 onlyif mysql # use DIV operator for integer division query I rowsort label-8576 SELECT DISTINCT 72 DIV col1 + 48 * - ( + cor0.col1 + + col2 * col1 ) FROM tab0 AS cor0 ---- -140352 -362544 -9312 skipif mysql # not compatible query I rowsort label-8576 SELECT DISTINCT 72 / col1 + 48 * - ( + cor0.col1 + + col2 * col1 ) FROM tab0 AS cor0 ---- -140352 -362544 -9312 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8577 SELECT DISTINCT - - ( col0 ) * - ( - cor0.col2 ) / - col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8577 SELECT DISTINCT - - ( col0 ) * - ( - cor0.col2 ) / - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + cor0.col1 + + col2 * - col2 AS col2 FROM tab0 AS cor0 ---- -1003 -6633 96 query I rowsort SELECT ALL + + col0 + + cor0.col1 * + 85 FROM tab0 AS cor0 ---- 7334 7824 8280 query I rowsort SELECT + col0 * col1 + - 74 FROM tab0 AS cor0 ---- 1990 3321 8025 onlyif mysql # use DIV operator for integer division query I rowsort label-8581 SELECT DISTINCT - + col1 DIV - cor0.col1 + + 14 FROM tab2 AS cor0 ---- 15 skipif mysql # not compatible query I rowsort label-8581 SELECT DISTINCT - + col1 / - cor0.col1 + + 14 FROM tab2 AS cor0 ---- 15 query I rowsort SELECT ALL + col1 + ( - 74 ) AS col2 FROM tab0 AS cor0 ---- 12 17 23 query I rowsort SELECT ALL 98 FROM tab1, tab1 AS cor0 ---- 9 values hashing to f9dee8c21116f1aed64ac5160e190809 query I rowsort SELECT ALL + cor0.col0 * 90 + + 39 AS col1 FROM tab2 AS cor0 ---- 669 7059 7149 query I rowsort SELECT - cor0.col1 + 91 FROM tab1 AS cor0 ---- 65 78 81 onlyif mysql # use DIV operator for integer division query I rowsort label-8586 SELECT ALL 73 + - col1 * - tab0.col1 + + 87 DIV + col1 FROM tab0 ---- 7470 8354 9482 skipif mysql # not compatible query I rowsort label-8586 SELECT ALL 73 + - col1 * - tab0.col1 + + 87 / + col1 FROM tab0 ---- 7470 8354 9482 query I rowsort SELECT - col2 * col0 - + tab1.col0 FROM tab1 ---- -165 -3712 -7760 query I rowsort SELECT DISTINCT - col1 * + 13 FROM tab0 AS cor0 ---- -1118 -1183 -1261 query I rowsort SELECT ALL - ( - ( - col2 ) ) * col0 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT DISTINCT col0 + - 84 * col1 FROM tab2 AS cor0 ---- -1349 -2597 -4878 query I rowsort SELECT ( + cor0.col0 ) * + col2 AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-8592 SELECT cor1.col2 DIV 67 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 953562d3ce2a62a1679a1ae0451294c6 skipif mysql # not compatible query I rowsort label-8592 SELECT cor1.col2 / 67 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 953562d3ce2a62a1679a1ae0451294c6 query I rowsort SELECT DISTINCT col1 * col0 + cor0.col0 * + col2 + col1 * + col0 AS col0 FROM tab2 cor0 ---- 11232 5688 623 query I rowsort SELECT + 92 * 19 FROM tab0 cor0 ---- 1748 1748 1748 query I rowsort SELECT DISTINCT - 81 * + col2 FROM tab0 AS cor0 ---- -2673 -6642 -81 query I rowsort SELECT DISTINCT - col1 * 93 + col2 AS col0 FROM tab0 cor0 ---- -7965 -8381 -9020 query I rowsort SELECT DISTINCT + 35 - col2 AS col0 FROM tab0 AS cor0 ---- -47 2 34 query I rowsort SELECT DISTINCT + + 37 AS col2 FROM tab1 AS cor0 ---- 37 query I rowsort SELECT ALL - ( col2 ) * - col0 * 63 + cor0.col1 FROM tab2 cor0 ---- 11938 127823 189143 query I rowsort SELECT DISTINCT + ( - col1 ) + + col2 AS col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT ALL - col2 + col1 * ( - col2 ) AS col2 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT + 82 + + col2 AS col2 FROM tab2 AS cor0 ---- 108 109 120 onlyif mysql # use DIV operator for integer division query I rowsort label-8603 SELECT ALL 4 * col1 - col2 DIV 82 FROM tab0 AS cor0 ---- 344 363 388 skipif mysql # not compatible query I rowsort label-8603 SELECT ALL 4 * col1 - col2 / 82 FROM tab0 AS cor0 ---- 344 363 388 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - col1 * + col2 * 97 col1 FROM tab0 AS cor0 ---- -275262 -723725 -9374 query I rowsort SELECT ALL ( col0 ) * + col1 + + col2 * + cor0.col2 FROM tab2 cor0 ---- 2787 5278 946 query I rowsort SELECT DISTINCT + + 67 AS col2 FROM tab1 AS cor0 ---- 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( col2 * col1 ) - - col2 col2 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT ALL col2 * + col0 - - col0 AS col1 FROM tab0 ---- 70 7387 816 query I rowsort SELECT ALL tab0.col0 - 17 FROM tab0 ---- 18 7 72 query I rowsort SELECT ALL - 13 - + tab0.col2 FROM tab0 ---- -14 -46 -95 query I rowsort SELECT ALL - - col1 + ( 40 ) FROM tab0 AS cor0 ---- 126 131 137 query I rowsort SELECT ALL cor1.col1 * + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to ae5946db6904798b8afac35f5777bb79 query I rowsort SELECT DISTINCT - + col0 * + col2 - - col2 AS col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 onlyif mysql # use DIV operator for integer division query I rowsort label-8614 SELECT + col0 DIV + ( - col1 ) AS col2 FROM tab2 AS cor0 ---- -1 -4 0 skipif mysql # not compatible query I rowsort label-8614 SELECT + col0 / + ( - col1 ) AS col2 FROM tab2 AS cor0 ---- -1 -4 0 query I rowsort SELECT - 87 * 27 AS col2 FROM tab0 AS cor0 ---- -2349 -2349 -2349 query I rowsort SELECT ALL - 7 * col1 - ( col2 ) AS col0 FROM tab2 AS cor0 ---- -157 -244 -439 query I rowsort SELECT 82 + + col0 FROM tab1 AS cor0 ---- 146 162 85 query I rowsort SELECT + 57 * col1 + cor0.col2 * + ( col2 ) FROM tab0 AS cor0 ---- 11911 5530 5991 query I rowsort SELECT ALL - col1 * cor0.col1 - - col2 FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT DISTINCT - col0 + - 45 * + col2 AS col2 FROM tab2 ---- -1222 -1248 -1789 query I rowsort SELECT - 89 * - col0 FROM tab1 ---- 267 5696 7120 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8622 SELECT col0 + + col0 * + CAST( col1 AS SIGNED ) FROM tab0 ---- 2088 3430 8188 skipif mysql # not compatible query I rowsort label-8622 SELECT col0 + + col0 * + CAST ( col1 AS INTEGER ) FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT ALL 13 * tab1.col2 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 7901b7887a557feb81b9fb9ab93f53e5 onlyif mysql # use DIV operator for integer division query I rowsort label-8624 SELECT col0 + + col1 DIV ( 36 ) AS col1 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-8624 SELECT col0 + + col1 / ( 36 ) AS col1 FROM tab1 ---- 3 64 80 query I rowsort SELECT ALL ( - 9 ) FROM tab2, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5 query I rowsort SELECT + ( - col1 ) + - tab1.col0 AS col0 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT 79 * col2 * + 54 FROM tab1 ---- 230364 243162 409536 query I rowsort SELECT DISTINCT - 14 AS col1 FROM tab0 ---- -14 query I rowsort SELECT ALL - col0 * - tab1.col2 AS col2 FROM tab1 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-8630 SELECT DISTINCT - col0 DIV col1 + + 88 col1 FROM tab1 ---- 82 88 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8630 SELECT DISTINCT - col0 / col1 + + 88 col1 FROM tab1 ---- 82 88 query I rowsort SELECT tab2.col2 - + tab2.col0 AS col0 FROM tab2 ---- -41 -52 20 query I rowsort SELECT DISTINCT + col2 * + col0 + col2 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT ALL 58 + + tab2.col1 AS col1 FROM tab2, tab2 cor0 ---- 9 values hashing to c2d0909e210f7304bd2ecf45ce4cea34 query I rowsort SELECT + tab2.col0 - col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT + 90 * - col1 FROM tab2 ---- -1530 -2790 -5310 onlyif mysql # use DIV operator for integer division query I rowsort label-8636 SELECT col1 DIV + 35 AS col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8636 SELECT col1 / + 35 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT 98 * - col2 FROM tab2 ---- -2548 -2646 -3724 query I rowsort SELECT - 67 - + col0 AS col0 FROM tab2 AS cor0 ---- -145 -146 -74 query I rowsort SELECT - col1 * 45 + + col2 AS col1 FROM tab2 ---- -1368 -2629 -727 query I rowsort SELECT ( - 97 + + col0 ) AS col0 FROM tab2 ---- -18 -19 -90 onlyif mysql # use DIV operator for integer division query I rowsort label-8641 SELECT DISTINCT - col2 * col0 + + col2 DIV - 61 AS col0 FROM tab1 ---- -162 -3648 -7681 skipif mysql # not compatible query I rowsort label-8641 SELECT DISTINCT - col2 * col0 + + col2 / - 61 AS col0 FROM tab1 ---- -162 -3648 -7681 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( ( col0 ) AS REAL ) + + col2 + + col1 * + col0 * - col2 AS col1 FROM tab2 ---- -119548 -50917 -5825 query I rowsort SELECT ALL - ( + 22 ) FROM tab2 ---- -22 -22 -22 query I rowsort SELECT ALL - - 99 AS col0 FROM tab1 AS cor0 ---- 99 99 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 67 * col1 * + cor0.col1 col0 FROM tab0 AS cor0 ---- -495532 -554827 -630403 query I rowsort SELECT + + col0 + col1 + + col1 * - 92 AS col1 FROM tab1 AS cor0 ---- -1103 -2363 -846 query I rowsort SELECT - 93 * + col1 FROM tab2 ---- -1581 -2883 -5487 query I rowsort SELECT + 26 + col0 AS col2 FROM tab0 AS cor0 ---- 115 50 61 query I rowsort SELECT 45 - - col2 FROM tab2 AS cor0 ---- 71 72 83 query I rowsort SELECT col2 - col1 AS col2 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT + col2 * - col2 - col0 FROM tab1 AS cor0 ---- -2919 -3313 -9296 query I rowsort SELECT 17 * - 31 + cor0.col2 FROM tab0 AS cor0 ---- -445 -494 -526 query I rowsort SELECT 14 + col1 + tab1.col1 * tab1.col0 AS col0 FROM tab1 ---- 1067 118 664 query I rowsort SELECT - 78 * 85 + - tab0.col1 AS col2 FROM tab0 ---- -6716 -6721 -6727 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8655 SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-8655 SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT - 54 + ( col2 ) AS col0 FROM tab2 ---- -16 -27 -28 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8657 SELECT CAST( + 65 AS SIGNED ) * + col1 + col2 * 18 FROM tab1 ---- 1676 2573 2662 skipif mysql # not compatible query I rowsort label-8657 SELECT CAST ( + 65 AS INTEGER ) * + col1 + col2 * 18 FROM tab1 ---- 1676 2573 2662 query I rowsort SELECT + col2 + col1 + - tab0.col0 FROM tab0 ---- 63 84 95 query I rowsort SELECT DISTINCT - - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT + + col0 + + col2 FROM tab2 cor0 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + 59 * - col2 - + col0 col1 FROM tab2 AS cor0 ---- 1456 1586 2163 query I rowsort SELECT ALL - cor0.col2 * + cor0.col1 AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT + 65 + + col2 AS col0 FROM tab1 AS cor0 ---- 119 122 161 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 4 - col1 col0 FROM tab1 AS cor0 ---- -22 -6 -9 query I rowsort SELECT DISTINCT + + 40 AS col1 FROM tab0 AS cor0 ---- 40 query I rowsort SELECT + col1 * - col1 + + 2 AS col0 FROM tab1 AS cor0 ---- -167 -674 -98 query I rowsort SELECT ALL - col2 + + col0 + cor0.col0 * - 70 FROM tab0 AS cor0 ---- -1689 -2416 -6223 query I rowsort SELECT ALL + 66 * - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -1122 -2046 -3894 query I rowsort SELECT ( cor0.col1 ) * + col0 AS col0 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - 64 * col0 + col2 FROM tab1 AS cor0 ---- -138 -4039 -5024 query I rowsort SELECT DISTINCT + ( tab0.col2 ) + col2 * - 93 * 39 FROM tab0 ---- -119658 -297332 -3626 query I rowsort SELECT DISTINCT + 7 + - 37 AS col0 FROM tab2 ---- -30 query I rowsort SELECT - cor0.col1 - - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -53 -9 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-8674 SELECT DISTINCT - - col0 DIV col0 AS col0 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-8674 SELECT DISTINCT - - col0 / col0 AS col0 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT + - col2 + - col0 * col0 FROM tab1 AS cor0 ---- -4153 -63 -6496 query I rowsort SELECT DISTINCT - + col0 + 13 FROM tab1 AS cor0 ---- -51 -67 10 query I rowsort SELECT + cor0.col0 + - col0 * - col0 FROM tab0 AS cor0 ---- 1260 600 8010 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col0 * + tab1.col1 col1 FROM tab1, tab0, tab0 AS cor0 ---- 9 values hashing to 81a8fcf7518fbae07bfeaffb3ad3a436 query I rowsort SELECT + col0 * - cor0.col1 * + col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT col2 + 79 * tab0.col2 FROM tab0 ---- 2640 6560 80 onlyif mysql # use DIV operator for integer division query I rowsort label-8681 SELECT ALL - col1 + - col1 DIV 19 AS col2 FROM tab2 ---- -17 -32 -62 skipif mysql # not compatible query I rowsort label-8681 SELECT ALL - col1 + - col1 / 19 AS col2 FROM tab2 ---- -17 -32 -62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8682 SELECT + col2 - - CAST( - cor0.col0 AS SIGNED ) * col1 FROM tab1 AS cor0 ---- -24 -583 -944 skipif mysql # not compatible query I rowsort label-8682 SELECT + col2 - - CAST ( - cor0.col0 AS INTEGER ) * col1 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT - ( cor1.col1 ) * cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to c52f276f0448e9317aa4a2c462e0bab5 query I rowsort SELECT - 99 * + 78 AS col0 FROM tab2 AS cor0 ---- -7722 -7722 -7722 query I rowsort SELECT + col1 + ( col0 * col0 ) + + 28 AS col1 FROM tab0 ---- 1350 690 8040 query I rowsort SELECT ALL cor0.col1 + col2 * col1 * ( - 65 ) FROM tab2 AS cor0 ---- -41973 -54374 -99651 query I rowsort SELECT DISTINCT - + col1 * 36 FROM tab2 cor0 ---- -1116 -2124 -612 query I rowsort SELECT col1 + + 38 * col1 AS col0 FROM tab0 AS cor0 ---- 3354 3549 3783 query I rowsort SELECT ALL - 10 * 23 AS col2 FROM tab0 cor0 ---- -230 -230 -230 query I rowsort SELECT col0 * + col0 + col0 FROM tab2 AS cor0 ---- 56 6162 6320 onlyif mysql # use DIV operator for integer division query I rowsort label-8691 SELECT + 51 DIV col2 + + col1 * col2 FROM tab0 AS cor0 ---- 148 2839 7462 skipif mysql # not compatible query I rowsort label-8691 SELECT + 51 / col2 + + col1 * col2 FROM tab0 AS cor0 ---- 148 2839 7462 query I rowsort SELECT DISTINCT + col2 * 44 * col2 FROM tab1 ---- 128304 142956 405504 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8693 SELECT CAST( NULL AS SIGNED ) * ( + col1 ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8693 SELECT CAST ( NULL AS INTEGER ) * ( + col1 ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL - 10 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to f68f33032846e21ee6b2c668fc10355e query I rowsort SELECT - 37 - + col2 FROM tab2 AS cor0 ---- -63 -64 -75 query I rowsort SELECT ( - col0 ) * + col2 + - cor0.col1 FROM tab0 AS cor0 ---- -132 -7389 -878 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * col2 + - col0 col0 FROM tab2 AS cor0 ---- 182 1950 2923 query I rowsort SELECT ALL - col1 * + col0 + + cor0.col0 * + ( + col1 ) * - col2 FROM tab0 AS cor0 ---- -672217 -6790 -70176 query I rowsort SELECT DISTINCT + ( 95 ) - + cor0.col1 * col0 AS col2 FROM tab0 AS cor0 ---- -1969 -3300 -8004 onlyif mysql # use DIV operator for integer division query I rowsort label-8700 SELECT + + ( 5 ) DIV - col1 - col0 AS col2 FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-8700 SELECT + + ( 5 ) / - col1 - col0 AS col2 FROM tab2 AS cor0 ---- -7 -78 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 41 * col0 col0 FROM tab2 AS cor0 ---- -287 -3198 -3239 query I rowsort SELECT DISTINCT - 52 FROM tab0 cor0 ---- -52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8703 SELECT ALL - CAST( NULL AS SIGNED ) + - 12 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8703 SELECT ALL - CAST ( NULL AS INTEGER ) + - 12 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + 98 * - col2 AS col1 FROM tab1 cor0 ---- -5292 -5586 -9408 query I rowsort SELECT + - col0 * - col2 + + 54 * col1 AS col2 FROM tab1 AS cor0 ---- 1566 4188 8382 query I rowsort SELECT 90 * - col0 AS col1 FROM tab1 AS cor0 ---- -270 -5760 -7200 query I rowsort SELECT ALL - + 8 + + col0 FROM tab1 AS cor0 ---- -5 56 72 onlyif mysql # use DIV operator for integer division query I rowsort label-8708 SELECT 13 + col0 DIV col0 FROM tab2 AS cor0 ---- 14 14 14 skipif mysql # not compatible query I rowsort label-8708 SELECT 13 + col0 / col0 FROM tab2 AS cor0 ---- 14 14 14 query I rowsort SELECT ALL 47 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d query I rowsort SELECT ALL - cor0.col2 * ( - col2 ) * col0 AS col1 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT + col0 * ( + 32 ) FROM tab1 AS cor0 ---- 2048 2560 96 query I rowsort SELECT DISTINCT col1 * + ( col2 ) * + col2 AS col0 FROM tab0 ---- 611884 93654 97 query I rowsort SELECT ALL - col1 * col1 * - col2 FROM tab0 cor0 ---- 244068 679042 9409 query I rowsort SELECT DISTINCT + cor0.col1 * - col0 + col1 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT - - col1 + 97 * + col0 FROM tab1 AS cor0 ---- 317 6218 7773 query I rowsort SELECT DISTINCT + col0 * col2 + col0 FROM tab1 AS cor0 ---- 165 3712 7760 query III rowsort SELECT * FROM tab0 WHERE NOT NULL < ( - tab0.col2 * col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8718 SELECT + col1 DIV col1 + - col1 DIV - col2 AS col0 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8718 SELECT + col1 / col1 + - col1 / - col2 AS col0 FROM tab1 ---- 1 1 1 query I rowsort SELECT DISTINCT - col2 + - col1 * col0 AS col1 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 ) ---- query III rowsort SELECT * FROM tab0 cor0 WHERE NOT NULL <= ( + col2 ) ---- query I rowsort SELECT DISTINCT - + col2 * col0 + cor0.col0 AS col1 FROM tab1 cor0 ---- -159 -3584 -7600 query I rowsort SELECT - cor0.col1 * col1 + col0 FROM tab0 AS cor0 ---- -7372 -8192 -9374 query I rowsort SELECT col1 * + col2 * col0 + col2 * col1 AS col0 FROM tab0 ---- 3492 671580 70950 query I rowsort SELECT col0 * + col0 - col0 AS col0 FROM tab0 AS cor0 ---- 1190 552 7832 query I rowsort SELECT + col2 * - col0 * - col0 + col0 FROM tab2 AS cor0 ---- 1330 158262 237237 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 - col0 * - col0 col1 FROM tab2 AS cor0 ---- 22 6058 6203 query I rowsort SELECT DISTINCT - + col1 * col2 + col0 * - col0 FROM tab0 AS cor0 ---- -1322 -15383 -3414 query I rowsort SELECT ALL col1 + + col1 - col1 * col1 * + col1 AS col2 FROM tab0 AS cor0 ---- -635884 -753389 -912479 query I rowsort SELECT col0 * col2 + cor0.col2 FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-8731 SELECT - col2 + col2 DIV col1 col1 FROM tab2 cor0 ---- -26 -27 -36 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8731 SELECT - col2 + col2 / col1 col1 FROM tab2 cor0 ---- -26 -27 -36 onlyif mysql # use DIV operator for integer division query I rowsort label-8732 SELECT + + col0 + - col1 DIV col2 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-8732 SELECT + + col0 + - col1 / col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT ALL - cor0.col0 + + col2 * col1 FROM tab1 AS cor0 ---- 1168 1401 506 query I rowsort SELECT DISTINCT + + col0 * - col2 + + col0 * col1 AS col0 FROM tab1 cor0 ---- -3008 -6640 -84 query I rowsort SELECT tab2.col2 + - col0 + - tab2.col0 * - col0 * col0 FROM tab2 ---- 363 474500 492998 query I rowsort SELECT DISTINCT + col0 * col2 + tab1.col0 AS col2 FROM tab1 ---- 165 3712 7760 onlyif mysql # use DIV operator for integer division query I rowsort label-8737 SELECT ALL - col0 DIV + col2 + tab0.col2 * col1 col1 FROM tab0 ---- 2838 62 7461 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8737 SELECT ALL - col0 / + col2 + tab0.col2 * col1 col1 FROM tab0 ---- 2838 62 7461 onlyif mysql # use DIV operator for integer division query I rowsort label-8738 SELECT + col2 * col2 * + col2 + - col2 DIV col0 + col0 * + col2 FROM tab1 ---- 157608 188841 892415 skipif mysql # not compatible query I rowsort label-8738 SELECT + col2 * col2 * + col2 + - col2 / col0 + col0 * + col2 FROM tab1 ---- 157608 188841 892415 query I rowsort SELECT + col0 - + col1 * + 46 FROM tab2 AS cor0 ---- -1419 -2636 -703 query I rowsort SELECT - ( 25 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to 40ac8fd000b2e49317aed2411077839e onlyif mysql # use DIV operator for integer division query I rowsort label-8741 SELECT 67 - + col1 DIV 58 FROM tab0 AS cor0 ---- 66 66 66 skipif mysql # not compatible query I rowsort label-8741 SELECT 67 - + col1 / 58 FROM tab0 AS cor0 ---- 66 66 66 query I rowsort SELECT ALL col0 + - col0 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND col2 / col2 + - col1 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab1.col2 * - col1 + col1 * col1 col1 FROM tab1 ---- -1079 -470 -728 query I rowsort SELECT DISTINCT - col1 * - col1 + - col0 FROM tab0 ---- 7372 8192 9374 query I rowsort SELECT col1 * - col0 + col0 AS col1 FROM tab2 cor0 ---- -1264 -210 -4524 query I rowsort SELECT ALL + + col0 * + 70 - col1 AS col2 FROM tab0 AS cor0 ---- 1594 2353 6139 query I rowsort SELECT DISTINCT ( col0 * - 80 ) AS col1 FROM tab0 ---- -1920 -2800 -7120 query I rowsort SELECT DISTINCT ( - 74 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- -74 query I rowsort SELECT DISTINCT cor0.col0 * 86 AS col1 FROM tab0 AS cor0 ---- 2064 3010 7654 query I rowsort SELECT DISTINCT + col2 + ( col0 ) AS col0 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-8751 SELECT ALL - + col0 DIV cor0.col1 + col1 AS col2 FROM tab1 cor0 ---- 26 4 7 skipif mysql # not compatible query I rowsort label-8751 SELECT ALL - + col0 / cor0.col1 + col1 AS col2 FROM tab1 cor0 ---- 26 4 7 query I rowsort SELECT DISTINCT - + col2 + - col0 + col1 * + col0 FROM tab2 cor0 ---- 1226 183 4498 query I rowsort SELECT 7 - - col2 FROM tab2 ---- 33 34 45 query I rowsort SELECT ALL col1 * + col0 - - col2 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT - col1 * - tab1.col0 * + col2 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT 90 + 5 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 56 col2 FROM tab0 ---- -56 -56 -56 query I rowsort SELECT DISTINCT - tab2.col0 - col0 AS col0 FROM tab2 ---- -14 -156 -158 query I rowsort SELECT tab0.col1 + col1 * col2 FROM tab0 ---- 194 2924 7553 query I rowsort SELECT col0 + + col1 * - col2 AS col1 FROM tab1 ---- -1168 -1401 -506 query I rowsort SELECT - col0 * col0 AS col1 FROM tab1 WHERE col2 IN ( tab1.col1 * col1 * + col2 ) ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT col0 < NULL ---- query I rowsort SELECT DISTINCT - col2 - col2 * - col2 FROM tab2 ---- 1406 650 702 query I rowsort SELECT ALL col0 AS col1 FROM tab0 WHERE NOT ( NULL ) = NULL ---- query I rowsort SELECT ALL + tab1.col2 + + col1 AS col0 FROM tab1 ---- 109 67 80 query I rowsort SELECT col1 - col1 * + tab0.col1 AS col1 FROM tab0 ---- -7310 -8190 -9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 - - col1 * - col2 col0 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT - col1 * + col0 + - col2 FROM tab0 ---- -2097 -3396 -8181 query III rowsort SELECT * FROM tab2 WHERE + col1 IN ( col1 * col2 ) ---- query III rowsort SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( + col1 - - col0 * col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8771 SELECT - col0 DIV + tab2.col0 + col1 DIV - tab2.col0 + + col1 AS col2 FROM tab2 ---- 16 26 58 skipif mysql # not compatible query I rowsort label-8771 SELECT - col0 / + tab2.col0 + col1 / - tab2.col0 + + col1 AS col2 FROM tab2 ---- 16 26 58 query I rowsort SELECT ALL col1 * col0 + col2 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT ALL + ( col1 ) * - col0 - col1 AS col1 FROM tab1 ---- -104 -1053 -650 query I rowsort SELECT - 48 + + 77 FROM tab0, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to 4c56285992bcb76e1aac22e6d23d1318 query I rowsort SELECT - col1 + col2 * + col2 * col0 AS col0 FROM tab0 ---- -62 26050 598345 query I rowsort SELECT - col0 * + col0 * col2 AS col1 FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT ALL + col0 - + col1 AS col0 FROM tab1 ---- -23 54 67 query I rowsort SELECT ALL - 86 * + col2 - - 90 AS col2 FROM tab1 ---- -4554 -4812 -8166 query I rowsort SELECT ALL + - 50 AS col2 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to faf91d5263c18db4877a3c30c47e2487 onlyif mysql # use DIV operator for integer division query I rowsort label-8780 SELECT - col1 DIV cor0.col1 + ( col1 ) * col2 * col0 + - col2 * - col1 FROM tab1 AS cor0 ---- 101087 37049 5615 skipif mysql # not compatible query I rowsort label-8780 SELECT - col1 / cor0.col1 + ( col1 ) * col2 * col0 + - col2 * - col1 FROM tab1 AS cor0 ---- 101087 37049 5615 query I rowsort SELECT - col0 + col1 * + col1 + col1 AS col2 FROM tab0 AS cor0 ---- 7458 8283 9471 query I rowsort SELECT DISTINCT cor0.col1 + col1 * 82 FROM tab2 cor0 ---- 1411 2573 4897 query I rowsort SELECT + cor0.col2 * col0 - - ( - col0 ) * - col1 AS col1 FROM tab2 AS cor0 ---- 406 4345 6630 query I rowsort SELECT DISTINCT + col0 + - cor0.col0 * - col1 AS col2 FROM tab1 cor0 ---- 1120 704 81 query I rowsort SELECT + col2 + col0 + + 75 FROM tab1 AS cor0 ---- 132 196 251 query I rowsort SELECT ALL - col2 + col0 * + cor0.col1 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT col0 + col0 * - col0 * - col1 + - cor0.col2 FROM tab1 AS cor0 ---- 183 40967 83184 query I rowsort SELECT ALL + + cor0.col1 * 95 FROM tab2 AS cor0 ---- 1615 2945 5605 query I rowsort SELECT DISTINCT col0 * - col2 + + cor0.col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT DISTINCT - col2 + - 62 FROM tab0 cor0 ---- -144 -63 -95 query I rowsort SELECT ALL col2 + - ( + ( col1 ) ) FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - col1 * + col2 * col1 FROM tab0 ---- -244068 -679042 -9409 query I rowsort SELECT - col2 + cor0.col1 * - 50 FROM tab1 AS cor0 ---- -1354 -557 -746 query I rowsort SELECT ALL + col2 + - ( - col0 ) AS col0 FROM tab1 AS cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-8795 SELECT ALL + + col2 DIV col1 AS col1 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-8795 SELECT ALL + + col2 / col1 AS col1 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT ALL - col1 + - col0 * + 86 AS col1 FROM tab2 AS cor0 ---- -633 -6767 -6811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( 78 ) + col1 col2 FROM tab0 AS cor0 ---- 13 19 8 query I rowsort SELECT - ( 21 ) AS col0 FROM tab2 AS cor0 ---- -21 -21 -21 onlyif mysql # use DIV operator for integer division query I rowsort label-8799 SELECT DISTINCT ( 19 ) DIV col0 AS col0 FROM tab2 cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-8799 SELECT DISTINCT ( 19 ) / col0 AS col0 FROM tab2 cor0 ---- 0 2 query I rowsort SELECT ALL + cor0.col0 * col1 + + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT - ( + cor0.col2 ) * + col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT - col0 + 95 AS col2 FROM tab0 AS cor0 ---- 6 60 71 query I rowsort SELECT ALL + - col0 * col0 + + cor0.col1 * col0 AS col1 FROM tab1 AS cor0 ---- -3456 -5360 69 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - ( + col2 ) ) + - ( - col2 ) col1 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8805 SELECT + CAST( NULL AS SIGNED ) * 56 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8805 SELECT + CAST ( NULL AS INTEGER ) * 56 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + 49 AS col2 FROM tab1 AS cor0 ---- 49 49 49 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8807 SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8807 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( cor0.col0 AS REAL ) * col0 FROM tab0 cor0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT + 56 * + col2 * - col2 + col0 AS col0 FROM tab0 AS cor0 ---- -21 -376455 -60960 onlyif mysql # use DIV operator for integer division query I rowsort label-8810 SELECT ALL - 66 + + col1 DIV ( - 4 ) AS col1 FROM tab0 AS cor0 ---- -87 -88 -90 skipif mysql # not compatible query I rowsort label-8810 SELECT ALL - 66 + + col1 / ( - 4 ) AS col1 FROM tab0 AS cor0 ---- -87 -88 -90 onlyif mysql # use DIV operator for integer division query I rowsort label-8811 SELECT DISTINCT + + col2 DIV col0 + col0 FROM tab1 AS cor0 ---- 21 64 81 skipif mysql # not compatible query I rowsort label-8811 SELECT DISTINCT + + col2 / col0 + col0 FROM tab1 AS cor0 ---- 21 64 81 query I rowsort SELECT 10 + col1 * cor0.col2 * - col1 AS col1 FROM tab2 AS cor0 ---- -10972 -25937 -90496 query I rowsort SELECT ALL col1 - - cor0.col0 * - cor0.col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT ALL + - 38 + - col0 FROM tab1 cor0 ---- -102 -118 -41 query I rowsort SELECT ALL col0 - col2 * + col0 AS col1 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT ALL + col2 + col0 + - col1 * + col1 AS col2 FROM tab1 cor0 ---- -619 21 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8817 SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col1 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-8817 SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 ---- 10 13 26 query I rowsort SELECT + 48 * ( tab2.col1 ) * col2 - col2 FROM tab2 ---- 30970 40149 73606 query I rowsort SELECT ALL - 53 + col1 FROM tab1 cor0 ---- -27 -40 -43 onlyif mysql # use DIV operator for integer division query I rowsort label-8820 SELECT DISTINCT + - col2 DIV - cor0.col2 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-8820 SELECT DISTINCT + - col2 / - cor0.col2 FROM tab0 AS cor0 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * cor0.col0 col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - col1 + + col0 * - col2 FROM tab2 ---- -2087 -220 -3019 query I rowsort SELECT + col1 + - tab1.col1 * - col0 FROM tab1 ---- 104 1053 650 query I rowsort SELECT 89 + + col2 - + col0 FROM tab1 ---- 105 140 82 query I rowsort SELECT ALL col2 * cor0.col1 + col0 + + col2 FROM tab1 cor0 ---- 1424 1461 691 query I rowsort SELECT DISTINCT col2 + + ( col1 ) * col1 AS col2 FROM tab0 ---- 7429 8363 9410 query I rowsort SELECT ALL + tab2.col0 + ( col0 ) + col1 AS col2 FROM tab2 ---- 175 215 45 query I rowsort SELECT ALL ( + 91 ) AS col1 FROM tab2 AS cor0 ---- 91 91 91 query I rowsort SELECT + 17 * + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 170 221 442 query I rowsort SELECT DISTINCT - col1 * - ( + col1 ) * col0 AS col1 FROM tab2 cor0 ---- 22831 271518 6727 onlyif mysql # use DIV operator for integer division query I rowsort label-8831 SELECT ALL ( 24 ) DIV col0 FROM tab1 cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-8831 SELECT ALL ( 24 ) / col0 FROM tab1 cor0 ---- 0 0 8 query I rowsort SELECT ALL col0 + - ( col1 * + col1 ) + col0 AS col0 FROM tab1 ---- -670 -9 28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + + col0 * 85 col1 FROM tab2 ---- 622 6656 6753 query I rowsort SELECT ALL col1 + + 76 AS col1 FROM tab1 ---- 102 86 89 query I rowsort SELECT ALL - 79 * - 23 FROM tab2 ---- 1817 1817 1817 query I rowsort SELECT DISTINCT + tab0.col0 * ( col2 + + col1 * col0 ) AS col1 FROM tab0 ---- 118860 50328 728109 query I rowsort SELECT ALL - col0 * - 75 FROM tab2 ---- 525 5850 5925 query I rowsort SELECT + 19 * + tab0.col2 + col0 FROM tab0 ---- 1647 54 651 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8839 SELECT ALL - CAST( NULL AS SIGNED ) * col1 * + col2 col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8839 SELECT ALL - CAST ( NULL AS INTEGER ) * col1 * + col2 col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8840 SELECT DISTINCT + col1 + + cor0.col1 DIV - col0 FROM tab2 cor0 ---- 17 27 59 skipif mysql # not compatible query I rowsort label-8840 SELECT DISTINCT + col1 + + cor0.col1 / - col0 FROM tab2 cor0 ---- 17 27 59 query I rowsort SELECT - 87 * - 32 AS col1 FROM tab1 AS cor0 ---- 2784 2784 2784 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col0 + col2 * + col0 col2 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT + - 53 * 77 AS col0 FROM tab2 AS cor0 ---- -4081 -4081 -4081 query I rowsort SELECT + 31 * + col0 AS col1 FROM tab2 AS cor0 ---- 217 2418 2449 query I rowsort SELECT DISTINCT 26 * 42 AS col1 FROM tab1 AS cor0 ---- 1092 query I rowsort SELECT 99 AS col2 FROM tab1 cor0 ---- 99 99 99 query I rowsort SELECT + - col2 * + 27 FROM tab1 cor0 ---- -1458 -1539 -2592 query I rowsort SELECT ( - col2 ) * + col2 + 46 AS col1 FROM tab0 AS cor0 ---- -1043 -6678 45 query I rowsort SELECT ( - 54 ) + - col2 FROM tab1 cor0 ---- -108 -111 -150 query I rowsort SELECT DISTINCT col0 + + ( - col2 ) * col1 AS col0 FROM tab1 ---- -1168 -1401 -506 query I rowsort SELECT 88 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to c46e7cf9bf516fdfde88534336a28177 onlyif mysql # use DIV operator for integer division query I rowsort label-8852 SELECT col2 DIV ( tab1.col2 * + tab1.col1 ) FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8852 SELECT col2 / ( tab1.col2 * + tab1.col1 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT + cor0.col2 * col1 - - col0 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT ALL cor0.col2 - - 89 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 09304848bd4c899354f22f0ee56eeaa0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8855 SELECT DISTINCT + cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-8855 SELECT DISTINCT + cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- NULL query I rowsort SELECT ALL 25 + + ( col1 ) * col2 FROM tab2 AS cor0 ---- 1559 671 862 onlyif mysql # use DIV operator for integer division query I rowsort label-8857 SELECT DISTINCT - + 41 * col1 DIV - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 41 skipif mysql # not compatible query I rowsort label-8857 SELECT DISTINCT - + 41 * col1 / - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 41 query I rowsort SELECT + tab0.col1 * ( tab0.col0 ) + tab0.col2 FROM tab0, tab2 cor0 ---- 9 values hashing to 546141345843cb5c90a0a79afa2fff08 query I rowsort SELECT + + 78 * + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 3018038ed54f8a1eece71a3f3fd8687c onlyif mysql # use DIV operator for integer division query I rowsort label-8860 SELECT ALL + - col1 + 94 DIV 23 AS col1 FROM tab0 AS cor0 ---- -82 -87 -93 skipif mysql # not compatible query I rowsort label-8860 SELECT ALL + - col1 + 94 / 23 AS col1 FROM tab0 AS cor0 ---- -82 -87 -93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab1.col1 * col1 col2 FROM tab1 ---- -100 -169 -676 query I rowsort SELECT - cor0.col0 * ( 64 ) FROM tab2 AS cor0 ---- -448 -4992 -5056 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - col1 - - col1 col0 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT - cor1.col1 FROM tab1, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 query I rowsort SELECT ALL - cor0.col1 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f query I rowsort SELECT cor0.col1 + 32 * + 26 AS col2 FROM tab2 AS cor0 ---- 849 863 891 query I rowsort SELECT col1 + + ( col1 ) AS col1 FROM tab2 AS cor0 ---- 118 34 62 onlyif mysql # use DIV operator for integer division query I rowsort label-8868 SELECT - col2 DIV + col1 + col0 * + cor0.col2 * 4 + col0 DIV + ( 96 ) AS col0 FROM tab0 AS cor0 ---- 140 29192 3168 skipif mysql # not compatible query I rowsort label-8868 SELECT - col2 / + col1 + col0 * + cor0.col2 * 4 + col0 / + ( 96 ) AS col0 FROM tab0 AS cor0 ---- 140 29192 3168 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8869 SELECT ALL CAST( NULL AS SIGNED ) * - col0 + col2 + + col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8869 SELECT ALL CAST ( NULL AS INTEGER ) * - col0 + col2 + + col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + - col2 * col0 + - col1 * col2 FROM tab0 AS cor0 ---- -132 -14760 -3630 query I rowsort SELECT - col2 * col0 + + col0 + 53 FROM tab1 cor0 ---- -106 -3531 -7547 query I rowsort SELECT - 28 - col0 AS col1 FROM tab2 AS cor0 ---- -106 -107 -35 query I rowsort SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 10 13 26 query I rowsort SELECT - col1 - 49 FROM tab1 cor0 ---- -59 -62 -75 query I rowsort SELECT + 19 - - col2 FROM tab2 AS cor0 ---- 45 46 57 query I rowsort SELECT ALL 84 + - col2 FROM tab1 AS cor0 ---- -12 27 30 query I rowsort SELECT DISTINCT + col1 * + 9 + - col2 FROM tab0 AS cor0 ---- 737 741 872 query I rowsort SELECT DISTINCT + col1 + - 85 FROM tab2 AS cor0 ---- -26 -54 -68 query I rowsort SELECT DISTINCT + cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 86 91 97 query I rowsort SELECT - + 56 - cor0.col0 * col1 AS col0 FROM tab2 cor0 ---- -1399 -273 -4658 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8881 SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - 30 + + col0 * col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8881 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - 30 + + col0 * col1 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8882 SELECT - col0 * - col1 + 24 DIV col2 FROM tab1 AS cor0 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-8882 SELECT - col0 * - col1 + 24 / col2 FROM tab1 AS cor0 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-8883 SELECT ALL col1 + + 31 DIV col2 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-8883 SELECT ALL col1 + + 31 / col2 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT - + col0 * - 65 + cor0.col1 FROM tab2 AS cor0 ---- 486 5129 5152 query I rowsort SELECT col0 + - 71 FROM tab1 AS cor0 ---- -68 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-8886 SELECT ALL - + col2 + col0 DIV - col0 FROM tab2 AS cor0 ---- -27 -28 -39 skipif mysql # not compatible query I rowsort label-8886 SELECT ALL - + col2 + col0 / - col0 FROM tab2 AS cor0 ---- -27 -28 -39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 45 col0 FROM tab2 ---- -45 -45 -45 query I rowsort SELECT DISTINCT tab0.col2 * - col2 * col1 FROM tab0 ---- -611884 -93654 -97 query I rowsort SELECT ALL - col0 * + cor0.col0 * + 48 FROM tab1 AS cor0 ---- -196608 -307200 -432 query I rowsort SELECT DISTINCT 56 + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -30 -35 -41 query I rowsort SELECT DISTINCT + 7 + col1 + - col1 AS col0 FROM tab0 AS cor0 ---- 7 query I rowsort SELECT ALL cor0.col0 * - col2 + + col0 - 43 FROM tab0 cor0 ---- -43 -7252 -811 query I rowsort SELECT ALL col2 * - col1 - tab1.col0 AS col0 FROM tab1 ---- -1328 -1407 -634 onlyif mysql # use DIV operator for integer division query I rowsort label-8894 SELECT DISTINCT 54 + col2 DIV + 87 FROM tab1 AS cor0 ---- 54 55 skipif mysql # not compatible query I rowsort label-8894 SELECT DISTINCT 54 + col2 / + 87 FROM tab1 AS cor0 ---- 54 55 query I rowsort SELECT DISTINCT + - col2 + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT DISTINCT col2 + col1 + col0 FROM tab1 ---- 131 189 83 onlyif mysql # use DIV operator for integer division query I rowsort label-8897 SELECT - col2 * col0 DIV col0 + + col1 AS col1 FROM tab2 ---- -21 33 4 skipif mysql # not compatible query I rowsort label-8897 SELECT - col2 * col0 / col0 + + col1 AS col1 FROM tab2 ---- -21 33 4 query I rowsort SELECT DISTINCT + col2 + 98 * - ( col0 ) AS col2 FROM tab1 ---- -240 -6215 -7744 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8899 SELECT col2 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8899 SELECT col2 - - CAST ( NULL AS REAL ) AS col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - col2 * ( - col2 ) AS col0 FROM tab0 AS cor0 ---- 1 1089 6724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 * - cor0.col1 col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL 18 * - cor0.col0 * + col2 FROM tab2 AS cor0 ---- -3402 -36504 -54036 onlyif mysql # use DIV operator for integer division query I rowsort label-8903 SELECT ALL - 10 DIV - col1 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8903 SELECT ALL - 10 / - col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + 9 * col0 FROM tab1 AS cor0 ---- 27 576 720 query I rowsort SELECT ALL - col0 * col1 + - col2 * ( cor0.col0 ) AS col1 FROM tab0 AS cor0 ---- -15397 -2856 -3430 query I rowsort SELECT DISTINCT + - col0 * + 1 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT + - col0 + + col0 * - col2 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT 74 * + col1 FROM tab2 AS cor0 ---- 1258 2294 4366 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 82 * + 30 col2 FROM tab1 AS cor0 ---- 2460 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8910 SELECT ALL - CAST( NULL AS DECIMAL ) + - col1 col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8910 SELECT ALL - CAST ( NULL AS REAL ) + - col1 col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( col0 ) * + col0 + 35 * cor0.col2 FROM tab2 AS cor0 ---- -4911 -5174 896 query I rowsort SELECT - 66 * col2 + - col1 FROM tab1 cor0 ---- -3590 -3772 -6349 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8913 SELECT ALL + - CAST( NULL AS DECIMAL ) - + col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8913 SELECT ALL + - CAST ( NULL AS REAL ) - + col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 3 * cor0.col1 FROM tab2 AS cor0 ---- 177 51 93 onlyif mysql # use DIV operator for integer division query I rowsort label-8915 SELECT ALL cor0.col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8915 SELECT ALL cor0.col1 / cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL - + 62 AS col0 FROM tab0 cor0 ---- -62 -62 -62 query I rowsort SELECT - col1 + 94 FROM tab2 ---- 35 63 77 onlyif mysql # use DIV operator for integer division query I rowsort label-8918 SELECT + + col0 DIV - cor0.col1 FROM tab2 AS cor0 ---- -1 -4 0 skipif mysql # not compatible query I rowsort label-8918 SELECT + + col0 / - cor0.col1 FROM tab2 AS cor0 ---- -1 -4 0 query I rowsort SELECT ALL + col2 * ( col2 ) + col0 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT DISTINCT + col0 - + cor0.col0 FROM tab0 cor0 ---- 0 query I rowsort SELECT ALL + + col0 * 3 AS col2 FROM tab1 AS cor0 ---- 192 240 9 onlyif mysql # use DIV operator for integer division query I rowsort label-8922 SELECT DISTINCT + col2 * col2 + col2 DIV - col2 AS col2 FROM tab1 AS cor0 ---- 2915 3248 9215 skipif mysql # not compatible query I rowsort label-8922 SELECT DISTINCT + col2 * col2 + col2 / - col2 AS col2 FROM tab1 AS cor0 ---- 2915 3248 9215 query I rowsort SELECT DISTINCT + col2 - ( + col2 ) FROM tab0 cor0 ---- 0 query I rowsort SELECT + + col0 + ( col0 + col0 ) AS col1 FROM tab1 cor0 ---- 192 240 9 query I rowsort SELECT - - col2 * + 69 + 50 AS col0 FROM tab1 AS cor0 ---- 3776 3983 6674 query I rowsort SELECT - + cor0.col1 * 94 * + col1 AS col2 FROM tab1 cor0 ---- -15886 -63544 -9400 query I rowsort SELECT - col1 * - col2 * 89 + + ( col0 ) - col1 AS col1 FROM tab1 ---- 111139 124933 50784 query I rowsort SELECT - col0 * - col2 + col2 FROM tab2 AS cor0 ---- 2054 216 3040 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8929 SELECT ALL - - col2 * CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0 ---- 16224 36504 5700 skipif mysql # not compatible query I rowsort label-8929 SELECT ALL - - col2 * CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT + col1 * col2 - col1 * - col1 AS col0 FROM tab2 AS cor0 ---- 1798 5015 935 query I rowsort SELECT DISTINCT + col0 + ( - cor0.col0 ) * col1 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT ALL - col0 * + col0 - col0 FROM tab2 AS cor0 ---- -56 -6162 -6320 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8933 SELECT col2 + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8933 SELECT col2 + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT 61 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55 onlyif mysql # use DIV operator for integer division query I rowsort label-8935 SELECT - - col2 DIV 64 AS col1 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-8935 SELECT - - col2 / 64 AS col1 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT + ( cor0.col1 ) * col1 * + 58 AS col0 FROM tab2 AS cor0 ---- 16762 201898 55738 query I rowsort SELECT ALL - tab1.col1 + - col0 AS col0 FROM tab1 ---- -29 -74 -93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 28 col0 FROM tab0 AS cor0 ---- 28 28 28 query I rowsort SELECT + 14 * col2 AS col0 FROM tab0 AS cor0 ---- 1148 14 462 query I rowsort SELECT col2 - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -7 16 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8941 SELECT ALL + + col0 + cor0.col2 * - CAST( - cor0.col1 AS SIGNED ) FROM tab0 AS cor0 ---- 132 2862 7551 skipif mysql # not compatible query I rowsort label-8941 SELECT ALL + + col0 + cor0.col2 * - CAST ( - cor0.col1 AS INTEGER ) FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT + - 14 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -13 19 68 query I rowsort SELECT 44 * - col1 AS col0 FROM tab1 cor0 ---- -1144 -440 -572 query I rowsort SELECT col2 * - 76 - - col1 FROM tab0 AS cor0 ---- -2422 -6141 21 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to e660b5944e34dd8d75740286862b3252 onlyif mysql # use DIV operator for integer division query I rowsort label-8946 SELECT DISTINCT + col1 DIV 62 AS col0 FROM tab1 ---- 0 skipif mysql # not compatible query I rowsort label-8946 SELECT DISTINCT + col1 / 62 AS col0 FROM tab1 ---- 0 query I rowsort SELECT ALL - 51 AS col2 FROM tab1 ---- -51 -51 -51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8948 SELECT DISTINCT CAST( col2 + - col2 * + col2 AS SIGNED ) AS col1 FROM tab1 ---- -2862 -3192 -9120 skipif mysql # not compatible query I rowsort label-8948 SELECT DISTINCT CAST ( col2 + - col2 * + col2 AS INTEGER ) AS col1 FROM tab1 ---- -2862 -3192 -9120 query I rowsort SELECT 34 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8950 SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8950 SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab1 ---- NULL query I rowsort SELECT + tab0.col1 + tab0.col2 * 19 * 21 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to ad128793ab3be2924e92452a30554d9b query I rowsort SELECT ALL + ( col0 ) * + col1 + cor0.col0 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT - + col1 + - col1 * col0 AS col0 FROM tab1 cor0 ---- -104 -1053 -650 query I rowsort SELECT DISTINCT ( 21 ) AS col0 FROM tab1 AS cor0 ---- 21 query I rowsort SELECT DISTINCT + col2 + 99 + col2 FROM tab0 AS cor0 ---- 101 165 263 query I rowsort SELECT - + col1 + 64 AS col0 FROM tab1 AS cor0 ---- 38 51 54 query I rowsort SELECT DISTINCT + 89 FROM tab2, tab0 AS cor0 ---- 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8958 SELECT CAST( + col1 * - col0 AS SIGNED ) FROM tab2 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-8958 SELECT CAST ( + col1 * - col0 AS INTEGER ) FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - col1 + + cor0.col0 * + 12 AS col1 FROM tab0 AS cor0 ---- 202 323 977 query I rowsort SELECT + 17 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to e0dd9155e4d67132637a04c18ef46b2a onlyif mysql # use DIV operator for integer division query I rowsort label-8961 SELECT ALL + 98 DIV - col0 FROM tab2 AS cor0 ---- -1 -1 -14 skipif mysql # not compatible query I rowsort label-8961 SELECT ALL + 98 / - col0 FROM tab2 AS cor0 ---- -1 -1 -14 query I rowsort SELECT DISTINCT tab0.col1 FROM tab0, tab1, tab1 AS cor0 ---- 86 91 97 query I rowsort SELECT 84 AS col2 FROM tab1, tab2, tab0 cor0 ---- 27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a query I rowsort SELECT 16 * + col0 FROM tab2 cor0 ---- 112 1248 1264 query I rowsort SELECT - 17 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -1462 -1547 -1649 query I rowsort SELECT 76 * cor0.col2 * + col2 FROM tab0 AS cor0 ---- 511024 76 82764 query I rowsort SELECT ALL + - tab2.col2 AS col1 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT col2 * - 71 AS col0 FROM tab2 ---- -1846 -1917 -2698 onlyif mysql # use DIV operator for integer division query I rowsort label-8969 SELECT ALL - tab0.col1 DIV ( + col2 ) FROM tab0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-8969 SELECT ALL - tab0.col1 / ( + col2 ) FROM tab0 ---- -1 -2 -97 query I rowsort SELECT - col2 + col0 * col0 * + col1 AS col1 FROM tab1 AS cor0 ---- 180 40903 83104 query I rowsort SELECT ALL + cor0.col2 AS col2 FROM tab1, tab2 cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8972 SELECT CAST( NULL AS SIGNED ) * 72 + + cor0.col2 * - 23 * 97 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8972 SELECT CAST ( NULL AS INTEGER ) * 72 + + cor0.col2 * - 23 * 97 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8973 SELECT - col1 DIV - ( col2 ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8973 SELECT - col1 / - ( col2 ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + tab1.col0 + tab1.col2 * - tab1.col0 AS col1 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 6717280c46d1a8a3e76f274409496c71 query I rowsort SELECT - + 52 * col2 AS col0 FROM tab1 AS cor0 ---- -2808 -2964 -4992 query I rowsort SELECT + - col1 * + col1 + col1 * + col0 FROM tab2 AS cor0 ---- -744 1054 1121 query I rowsort SELECT DISTINCT - ( cor0.col0 ) AS col2 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT + col0 * + col0 + ( col2 ) FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT ALL + col0 * 30 AS col0 FROM tab1 AS cor0 ---- 1920 2400 90 query I rowsort SELECT DISTINCT col2 * col1 + - col1 AS col2 FROM tab2 ---- 1475 629 806 onlyif mysql # use DIV operator for integer division query I rowsort label-8981 SELECT 14 DIV 14 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 skipif mysql # not compatible query I rowsort label-8981 SELECT 14 / 14 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 35 * 55 + col2 * col1 col2 FROM tab0 AS cor0 ---- 2022 4763 9387 query I rowsort SELECT DISTINCT - + 91 + col1 AS col1 FROM tab1 AS cor0 ---- -65 -78 -81 query I rowsort SELECT - col2 - - tab1.col1 * + tab1.col1 FROM tab1 ---- 43 622 73 query I rowsort SELECT + ( cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8986 SELECT - 99 + col0 * - CAST( 1 AS SIGNED ) AS col1 FROM tab2 cor0 ---- -106 -177 -178 skipif mysql # not compatible query I rowsort label-8986 SELECT - 99 + col0 * - CAST ( 1 AS INTEGER ) AS col1 FROM tab2 cor0 ---- -106 -177 -178 query I rowsort SELECT ALL - + cor0.col2 + col0 + + 27 FROM tab0 AS cor0 ---- 18 34 61 query I rowsort SELECT DISTINCT + ( - col1 ) + 28 AS col0 FROM tab1 AS cor0 ---- 15 18 2 query I rowsort SELECT - col2 + cor0.col2 + col1 AS col0 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT col1 - + 72 AS col1 FROM tab2 ---- -13 -41 -55 query I rowsort SELECT + col1 + 5 - col0 FROM tab2 ---- -14 -57 29 query I rowsort SELECT - 2 * tab0.col0 FROM tab0 ---- -178 -48 -70 query I rowsort SELECT DISTINCT cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 26 27 38 query I rowsort SELECT ALL - col2 * - col1 + 58 + - col2 * col1 * + col0 AS col0 FROM tab2 ---- -118060 -4964 -50330 query I rowsort SELECT - 43 + - col1 * tab0.col0 FROM tab0 ---- -2107 -3438 -8142 query I rowsort SELECT + col0 * col2 * col0 - col1 FROM tab0 ---- 1128 18922 649431 query I rowsort SELECT DISTINCT col2 + col1 * cor0.col2 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT - + col0 * col2 - col1 * - 56 * col2 AS col2 FROM tab0 AS cor0 ---- 158136 410574 5397 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8999 SELECT DISTINCT - ( col1 ) * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8999 SELECT DISTINCT - ( col1 ) * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9000 SELECT ALL - 6 DIV + col2 + 13 AS col1 FROM tab0 AS cor0 ---- 13 13 7 skipif mysql # not compatible query I rowsort label-9000 SELECT ALL - 6 / + col2 + 13 AS col1 FROM tab0 AS cor0 ---- 13 13 7 query I rowsort SELECT ALL + + col0 * col2 + - ( - cor0.col1 * + col0 ) FROM tab2 AS cor0 ---- 406 4345 6630 query I rowsort SELECT DISTINCT - col2 * + col0 + ( + col0 ) - col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - 18 + + col2 AS col1 FROM tab0 AS cor0 ---- -17 15 64 query I rowsort SELECT + + ( - col1 ) + ( - col1 ) + col0 FROM tab0 AS cor0 ---- -148 -159 -93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 38 * - col1 + + col0 + + col1 * col0 col0 FROM tab0 AS cor0 ---- -1180 -256 4730 query I rowsort SELECT col2 + col1 + - 78 * col1 * + col0 FROM tab2 ---- -104699 -16868 -358871 query I rowsort SELECT + 63 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 38764a6e696d1a6b5095e29ef84959c0 onlyif mysql # use DIV operator for integer division query I rowsort label-9008 SELECT 88 DIV + col1 + 62 col2 FROM tab2 ---- 63 64 67 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9008 SELECT 88 / + col1 + 62 col2 FROM tab2 ---- 63 64 67 query I rowsort SELECT - col0 + + col0 * 32 FROM tab2 ---- 217 2418 2449 query I rowsort SELECT + col2 * + col1 * + col0 + - cor0.col1 + col1 AS col1 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-9011 SELECT ALL - tab2.col1 * col2 + ( col2 ) DIV + col1 + ( + col0 ) FROM tab2 ---- -1456 -565 -830 skipif mysql # not compatible query I rowsort label-9011 SELECT ALL - tab2.col1 * col2 + ( col2 ) / + col1 + ( + col0 ) FROM tab2 ---- -1456 -565 -830 query I rowsort SELECT + col0 + col1 * col2 FROM tab2 ---- 1612 725 844 query I rowsort SELECT + cor0.col1 + 56 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to aa5936e49475a1032ac11cdad95f2765 query I rowsort SELECT ALL + - 52 * - cor0.col2 FROM tab2 AS cor0 ---- 1352 1404 1976 query I rowsort SELECT DISTINCT + 22 FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2 ---- 22 query I rowsort SELECT + col2 * + col0 * + col0 + col0 AS col2 FROM tab0 AS cor0 ---- 1260 19032 649611 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9017 SELECT DISTINCT col1 + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 ---- 172 182 194 skipif mysql # not compatible query I rowsort label-9017 SELECT DISTINCT col1 + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 ---- 172 182 194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + 75 col0 FROM tab0 cor0 ---- 1800 2625 6675 query I rowsort SELECT - - col2 + - 78 * col1 AS col0 FROM tab0 AS cor0 ---- -6675 -7016 -7565 query I rowsort SELECT tab0.col0 + 82 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to a4fd8803e38cb8cab98a352d8095fcf7 query I rowsort SELECT col0 * + 8 FROM tab0 ---- 192 280 712 onlyif mysql # use DIV operator for integer division query I rowsort label-9022 SELECT + - col1 DIV 92 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9022 SELECT + - col1 / 92 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - - col0 * col2 + col0 * + col0 AS col2 FROM tab1 AS cor0 ---- 14080 171 7744 query I rowsort SELECT + + cor0.col2 * + 23 + - col1 * col1 FROM tab1 cor0 ---- 1211 2039 566 query I rowsort SELECT ALL + ( + 50 ) + col0 FROM tab1 AS cor0 ---- 114 130 53 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( 17 ) col1 FROM tab0 AS cor0 ---- -17 -17 -17 query I rowsort SELECT ALL + cor0.col1 * 12 FROM tab1 AS cor0 ---- 120 156 312 query I rowsort SELECT + col2 * 2 AS col0 FROM tab2 AS cor0 ---- 52 54 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9029 SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 - col2 AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9029 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 - col2 AS col0 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + - col0 * - col1 col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT DISTINCT col0 * + col2 * col0 AS col0 FROM tab1 AS cor0 ---- 233472 486 614400 query I rowsort SELECT ALL + 2 * - col1 + col1 AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT col2 + cor0.col2 * - col1 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT ALL + ( col1 ) * - col1 + - col1 + - 57 AS col1 FROM tab2 AS cor0 ---- -1049 -3597 -363 query I rowsort SELECT DISTINCT - + col2 - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT - - 89 * + 84 + - col0 FROM tab0 AS cor0 ---- 7387 7441 7452 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9037 SELECT ALL - ( + col1 ) + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9037 SELECT ALL - ( + col1 ) + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( 64 ) * col2 + - 81 AS col2 FROM tab0 AS cor0 ---- -17 2031 5167 query I rowsort SELECT - - col1 + col2 * - col2 + + col0 AS col2 FROM tab2 cor0 ---- -1348 -539 -691 query I rowsort SELECT ALL - cor0.col0 * col1 + ( col2 ) * cor0.col0 AS col2 FROM tab2 AS cor0 ---- -2574 -28 1659 query I rowsort SELECT col2 * col0 + col1 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 229 7480 964 query I rowsort SELECT DISTINCT 89 * - col2 + - col0 FROM tab1 cor0 ---- -4809 -5137 -8624 query I rowsort SELECT + + col0 + + cor0.col1 + cor0.col1 * col1 * col2 AS col0 FROM tab2 AS cor0 ---- 11078 25985 90643 query I rowsort SELECT DISTINCT - ( col0 ) + + 35 * col1 AS col1 FROM tab2 AS cor0 ---- 1078 1987 516 query I rowsort SELECT cor1.col0 FROM tab0, tab1 cor0, tab2, tab0 AS cor1 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 query I rowsort SELECT DISTINCT cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab0, tab2 cor1 ---- 26 27 38 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2 ---- 3645 values hashing to 5a114c3d024b82b28eeddb04849c8215 query I rowsort SELECT ALL col2 * col0 * - tab1.col0 AS col1 FROM tab1 ---- -233472 -486 -614400 query I rowsort SELECT cor0.col1 + - col2 * col1 * - col0 AS col2 FROM tab1 AS cor0 ---- 36490 4238 99853 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * + col2 col1 FROM tab1 cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-9051 SELECT - tab0.col0 - - col0 DIV + col2 FROM tab0 ---- -24 -88 0 skipif mysql # not compatible query I rowsort label-9051 SELECT - tab0.col0 - - col0 / + col2 FROM tab0 ---- -24 -88 0 query I rowsort SELECT ALL - cor0.col0 * + col2 + + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT ALL col1 * + col1 * col2 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT + - col0 * + cor0.col2 * col2 AS col2 FROM tab0 cor0 ---- -26136 -35 -598436 query I rowsort SELECT - col0 + - col2 * cor0.col0 * + col0 FROM tab1 AS cor0 ---- -233536 -489 -614480 query I rowsort SELECT + col1 + - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * col1 + col2 col1 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT + + 89 * + col2 + col1 FROM tab1 AS cor0 ---- 4832 5083 8557 query I rowsort SELECT + + 93 + col1 AS col0 FROM tab0 AS cor0 ---- 179 184 190 query I rowsort SELECT + + ( cor0.col1 ) + + cor0.col0 FROM tab2 AS cor0 ---- 137 38 96 query III rowsort SELECT * FROM tab0 WHERE ( NULL ) IN ( + tab0.col0 + + col0 ) ---- query III rowsort SELECT * FROM tab0 WHERE ( col0 ) >= ( - col2 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + col0 + col1 col0 FROM tab0 ---- 1322 662 8012 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) < NULL ---- query I rowsort SELECT tab0.col0 * tab0.col0 * - col0 + col2 + - col0 * col0 AS col2 FROM tab0 ---- -14367 -44099 -712808 query I rowsort SELECT DISTINCT - col2 + col1 * + tab1.col0 * col2 AS col2 FROM tab1 ---- 36423 4158 99744 query I rowsort SELECT - tab2.col1 * + col2 + col2 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT + col1 - col1 * + col0 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT DISTINCT col2 * + col1 - - col1 * col0 AS col1 FROM tab1 ---- 1210 1482 2288 query III rowsort SELECT ALL * FROM tab2 WHERE col2 > NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9071 SELECT ALL col1 DIV tab2.col0 + - tab2.col0 AS col1 FROM tab2 ---- -3 -78 -79 skipif mysql # not compatible query I rowsort label-9071 SELECT ALL col1 / tab2.col0 + - tab2.col0 AS col1 FROM tab2 ---- -3 -78 -79 query I rowsort SELECT ALL - col1 * col1 * col0 - col0 FROM tab1 ---- -13600 -2031 -6464 query I rowsort SELECT - col0 + col0 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN - col2 + col0 AND NULL ---- query I rowsort SELECT col2 * - tab2.col1 + - col2 AS col1 FROM tab2 ---- -1560 -684 -864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 col1 FROM tab1 WHERE ( col1 ) NOT IN ( - col0 ) ---- 10 13 26 query III rowsort SELECT * FROM tab2 WHERE NOT col0 IN ( - col1 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9077 SELECT - 4 + - col2 * CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 ---- -1538 -650 -841 skipif mysql # not compatible query I rowsort label-9077 SELECT - 4 + - col2 * CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 ---- -1538 -650 -841 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * cor0.col0 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT col2 * col0 * + col2 + - col0 FROM tab1 ---- 207872 737200 8745 query I rowsort SELECT - 15 * + col0 AS col0 FROM tab2 AS cor0 ---- -105 -1170 -1185 query I rowsort SELECT DISTINCT col1 * - col0 + - col2 AS col0 FROM tab0 ---- -2097 -3396 -8181 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL > ( - col1 ) ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL = ( NULL ) ---- query I rowsort SELECT col1 + col0 * + col1 * col0 FROM tab0 ---- 118922 49622 720902 query I rowsort SELECT col0 * - col2 * tab1.col1 - col0 * col0 FROM tab1 ---- -106240 -40576 -4221 query I rowsort SELECT - col1 + - col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND + col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9087 SELECT ALL col2 * + col1 + + col1 DIV col2 FROM tab0 ---- 194 2840 7463 skipif mysql # not compatible query I rowsort label-9087 SELECT ALL col2 * + col1 + + col1 / col2 FROM tab0 ---- 194 2840 7463 query I rowsort SELECT ALL - col2 * col2 * col0 + - col2 * col0 AS col2 FROM tab0 ---- -26928 -605734 -70 query I rowsort SELECT DISTINCT - col1 * col1 - col1 FROM tab0 ---- -7482 -8372 -9506 query I rowsort SELECT DISTINCT + col2 * + col1 * - col1 AS col1 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT + col0 * - col2 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 * col1 * + col0 + col2 * col1 ) NOT BETWEEN ( NULL ) AND col1 * col0 ---- query I rowsort SELECT ALL - cor0.col2 * + col2 - - col1 * + col2 FROM tab2 AS cor0 ---- -798 108 858 onlyif mysql # use DIV operator for integer division query I rowsort label-9093 SELECT DISTINCT col0 * col0 DIV col1 AS col0 FROM tab0 ---- 12 6 87 skipif mysql # not compatible query I rowsort label-9093 SELECT DISTINCT col0 * col0 / col1 AS col0 FROM tab0 ---- 12 6 87 query I rowsort SELECT - col1 * col0 * - col1 + - col1 * col2 FROM tab2 ---- 22185 269984 5890 query I rowsort SELECT col2 * col2 + col0 + + tab2.col0 AS col1 FROM tab2 ---- 1602 743 832 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9096 SELECT ALL + CAST( col0 AS SIGNED ) * - col2 + col1 + col2 AS col2 FROM tab0 ---- -673 -7125 63 skipif mysql # not compatible query I rowsort label-9096 SELECT ALL + CAST ( col0 AS INTEGER ) * - col2 + col1 + col2 AS col2 FROM tab0 ---- -673 -7125 63 query I rowsort SELECT ALL - 63 * - 18 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to bbd292ca6077e4721291b2b8c358767f onlyif mysql # use DIV operator for integer division query I rowsort label-9098 SELECT DISTINCT - CAST( ( col2 ) AS SIGNED ) DIV col2 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-9098 SELECT DISTINCT - CAST ( ( col2 ) AS INTEGER ) / col2 FROM tab0 AS cor0 ---- -1 query I rowsort SELECT + col1 + - 34 FROM tab0 AS cor0 ---- 52 57 63 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9100 SELECT ALL - + CAST( col0 AS SIGNED ) + col1 * 71 FROM tab2 AS cor0 ---- 1128 2194 4111 skipif mysql # not compatible query I rowsort label-9100 SELECT ALL - + CAST ( col0 AS INTEGER ) + col1 * 71 FROM tab2 AS cor0 ---- 1128 2194 4111 onlyif mysql # use DIV operator for integer division query I rowsort label-9101 SELECT ALL + + ( col0 ) DIV - col2 + col2 AS col0 FROM tab0 AS cor0 ---- -34 33 81 skipif mysql # not compatible query I rowsort label-9101 SELECT ALL + + ( col0 ) / - col2 + col2 AS col0 FROM tab0 AS cor0 ---- -34 33 81 query I rowsort SELECT DISTINCT col0 * - 98 + - col0 AS col1 FROM tab0 AS cor0 ---- -2376 -3465 -8811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( col2 ) + + col0 * - ( col2 ) * - col1 col0 FROM tab2 AS cor0 ---- 119626 50996 5832 query I rowsort SELECT - + col2 - + col2 * + col1 * col0 FROM tab2 AS cor0 ---- -119678 -51072 -5886 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * - cor0.col0 col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9106 SELECT + - CAST( NULL AS DECIMAL ) - col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9106 SELECT + - CAST ( NULL AS REAL ) - col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col2 * + col1 * col1 + col0 FROM tab0 AS cor0 ---- 244092 679131 9444 query I rowsort SELECT ALL + + ( cor0.col2 ) + - col2 * + col1 * cor0.col2 FROM tab0 AS cor0 ---- -611802 -93621 -96 query I rowsort SELECT 60 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to 1d2ab302ae60f95b15e68cf89083b162 query I rowsort SELECT 99 + - col1 AS col1 FROM tab0 AS cor0 ---- 13 2 8 query I rowsort SELECT + col2 * col0 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-9112 SELECT + ( - 39 ) - col2 DIV - 71 col2 FROM tab0 ---- -38 -39 -39 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9112 SELECT + ( - 39 ) - col2 / - 71 col2 FROM tab0 ---- -38 -39 -39 onlyif mysql # use DIV operator for integer division query I rowsort label-9113 SELECT DISTINCT cor0.col0 DIV cor0.col1 FROM tab2 cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-9113 SELECT DISTINCT cor0.col0 / cor0.col1 FROM tab2 cor0 ---- 0 1 4 query I rowsort SELECT DISTINCT - - col1 * + col0 + - cor0.col1 FROM tab2 cor0 ---- 1326 186 4543 onlyif mysql # use DIV operator for integer division query I rowsort label-9115 SELECT DISTINCT col2 DIV + col1 + 54 FROM tab2 cor0 ---- 54 56 skipif mysql # not compatible query I rowsort label-9115 SELECT DISTINCT col2 / + col1 + 54 FROM tab2 cor0 ---- 54 56 query I rowsort SELECT DISTINCT col2 + ( col2 ) + col0 AS col1 FROM tab0 ---- 253 37 90 query I rowsort SELECT + col0 + + 30 * - col1 * - col1 + ( - col0 ) FROM tab1 ---- 20280 3000 5070 query I rowsort SELECT + + col1 * col0 - col1 * - col0 * - ( col1 * - col2 ) FROM tab0 AS cor0 ---- 332710 5859696 60442837 query I rowsort SELECT ALL col2 * col1 + + ( - col0 * ( col2 ) ) FROM tab1 AS cor0 ---- -3078 -6432 1242 query I rowsort SELECT DISTINCT - col2 + col1 + + col1 AS col1 FROM tab2 AS cor0 ---- -4 35 92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 - col0 col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 - - 36 * 70 * + col0 FROM tab0 AS cor0 ---- 224369 60504 88235 skipif mysql # not compatible query I rowsort SELECT + col2 * CAST ( cor0.col0 AS REAL ) AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT ALL - col2 + + ( cor0.col0 ) * - col2 FROM tab1 AS cor0 ---- -216 -3705 -7776 onlyif mysql # use DIV operator for integer division query I rowsort label-9125 SELECT + CAST( + col0 AS SIGNED ) DIV col2 FROM tab0 cor0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-9125 SELECT + CAST ( + col0 AS INTEGER ) / col2 FROM tab0 cor0 ---- 0 1 35 query I rowsort SELECT + col1 * col2 * col2 + - ( + col0 * - col2 ) + col1 FROM tab0 AS cor0 ---- 229 619273 94532 query I rowsort SELECT DISTINCT + col2 - - ( 95 * col1 ) FROM tab2 ---- 1653 2972 5631 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col0 * - ( col2 ) col0 FROM tab0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-9129 SELECT + + 78 DIV + col0 FROM tab2 AS cor0 ---- 0 1 11 skipif mysql # not compatible query I rowsort label-9129 SELECT + + 78 / + col0 FROM tab2 AS cor0 ---- 0 1 11 query I rowsort SELECT ALL col1 * - col2 + - cor0.col1 * + 80 AS col1 FROM tab2 AS cor0 ---- -2006 -3317 -6254 query I rowsort SELECT DISTINCT - 32 * + 93 FROM tab2 AS cor0 ---- -2976 query I rowsort SELECT DISTINCT + - 66 * col0 FROM tab1 AS cor0 ---- -198 -4224 -5280 query I rowsort SELECT ALL + 48 AS col1 FROM tab0 AS cor0 ---- 48 48 48 query I rowsort SELECT ALL + tab0.col2 - - ( + col1 ) FROM tab0 ---- 119 173 98 query I rowsort SELECT DISTINCT - tab2.col0 * 13 - 55 * col2 FROM tab2 ---- -1576 -2444 -3117 query I rowsort SELECT ALL tab0.col1 - + col2 AS col1 FROM tab0 ---- 53 9 96 query I rowsort SELECT - 53 - col1 * + col2 FROM tab1 cor0 ---- -1301 -1457 -623 query I rowsort SELECT DISTINCT - + 71 * - 36 + - col2 AS col1 FROM tab2 AS cor0 ---- 2518 2529 2530 query I rowsort SELECT ALL + - col2 + 1 FROM tab1 AS cor0 ---- -53 -56 -95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( col2 ) * col1 - col2 col1 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT ( + col0 ) * col1 + col2 AS col0 FROM tab2 ---- 1381 244 4628 onlyif mysql # use DIV operator for integer division query I rowsort label-9142 SELECT DISTINCT - col2 DIV - 43 + col2 FROM tab0 ---- 1 33 83 skipif mysql # not compatible query I rowsort label-9142 SELECT DISTINCT - col2 / - 43 + col2 FROM tab0 ---- 1 33 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9143 SELECT DISTINCT CAST( - col2 * + col2 AS SIGNED ) + + col0 * + col1 col0 FROM tab0 ---- 1375 3394 975 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9143 SELECT DISTINCT CAST ( - col2 * + col2 AS INTEGER ) + + col0 * + col1 col0 FROM tab0 ---- 1375 3394 975 query I rowsort SELECT col2 * 44 FROM tab1 ---- 2376 2508 4224 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9145 SELECT DISTINCT CAST( NULL AS SIGNED ) + + 98 AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-9145 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 98 AS col2 FROM tab1 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9146 SELECT ALL + 77 + + col0 DIV - col2 AS col2 FROM tab0 ---- 42 76 77 skipif mysql # not compatible query I rowsort label-9146 SELECT ALL + 77 + + col0 / - col2 AS col2 FROM tab0 ---- 42 76 77 query I rowsort SELECT - ( 26 ) FROM tab2 ---- -26 -26 -26 query I rowsort SELECT ALL + 44 - 13 * col0 FROM tab1 AS cor0 ---- -788 -996 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab1.col2 * - col0 col1 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT ( ( col2 ) ) * col0 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + col0 * - 89 FROM tab0 ---- -2136 -3115 -7921 query I rowsort SELECT 9 + + col2 AS col1 FROM tab1 ---- 105 63 66 query I rowsort SELECT col1 * - col2 + 11 FROM tab0 ---- -2827 -7451 -86 query I rowsort SELECT 20 + + col2 FROM tab1 ---- 116 74 77 query I rowsort SELECT DISTINCT 55 * - col2 FROM tab1 ---- -2970 -3135 -5280 query I rowsort SELECT + 99 + + col0 FROM tab1 ---- 102 163 179 onlyif mysql # use DIV operator for integer division query I rowsort label-9157 SELECT DISTINCT + 7 DIV + tab2.col1 FROM tab2 ---- 0 skipif mysql # not compatible query I rowsort label-9157 SELECT DISTINCT + 7 / + tab2.col1 FROM tab2 ---- 0 query I rowsort SELECT ALL + 56 * - col0 AS col0 FROM tab1 AS cor0 ---- -168 -3584 -4480 query I rowsort SELECT DISTINCT + col1 * ( cor0.col2 ) - + col1 AS col0 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT DISTINCT + col0 * + 20 AS col0 FROM tab0 AS cor0 ---- 1780 480 700 query I rowsort SELECT - col2 * 79 AS col1 FROM tab1 AS cor0 ---- -4266 -4503 -7584 query I rowsort SELECT + col1 + - col1 * - col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT + col1 * 40 AS col0 FROM tab1 AS cor0 ---- 1040 400 520 onlyif mysql # use DIV operator for integer division query I rowsort label-9164 SELECT DISTINCT + col0 * + col1 DIV col1 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-9164 SELECT DISTINCT + col0 * + col1 / col1 FROM tab2 AS cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + col1 * - col2 col0 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT col0 + 54 FROM tab1 AS cor0 ---- 118 134 57 query I rowsort SELECT - col0 + 22 * col2 FROM tab0 AS cor0 ---- -13 1715 702 query I rowsort SELECT col1 + col0 * - cor0.col0 FROM tab1 cor0 ---- -4086 -6387 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 47 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d query I rowsort SELECT - 92 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to a0e6b76227d870d10c4d9f46545a7c83 query I rowsort SELECT - cor0.col1 * + cor0.col2 AS col0 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 9fc71e55d98c21fc68f4af540b1d7651 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 27 + 57 col2 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1 ---- 81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9 query I rowsort SELECT - cor0.col2 * 64 FROM tab1 AS cor0 ---- -3456 -3648 -6144 query I rowsort SELECT - + col1 + 22 * + col0 AS col1 FROM tab1 cor0 ---- 1398 1747 40 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * 25 col2 FROM tab0 AS cor0 ---- 2150 2275 2425 query I rowsort SELECT ALL 99 * col0 * - tab0.col2 AS col0 FROM tab0 ---- -3465 -722502 -78408 query I rowsort SELECT ALL tab2.col1 * + tab2.col1 + col2 FROM tab2 ---- 327 3507 988 query I rowsort SELECT - 56 * - ( + col2 ) AS col0 FROM tab1 ---- 3024 3192 5376 query I rowsort SELECT ( - ( + col2 ) ) - col1 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT ALL + ( 90 ) * - cor0.col1 + - 17 * + 33 * col2 AS col2 FROM tab0 AS cor0 ---- -26253 -54192 -9291 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9181 SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + + col1 AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9181 SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + + col1 AS col0 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9182 SELECT - CAST( NULL AS SIGNED ) + 90 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9182 SELECT - CAST ( NULL AS INTEGER ) + 90 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9183 SELECT ALL - cor0.col2 + 79 DIV col2 FROM tab0 AS cor0 ---- -31 -82 78 skipif mysql # not compatible query I rowsort label-9183 SELECT ALL - cor0.col2 + 79 / col2 FROM tab0 AS cor0 ---- -31 -82 78 query I rowsort SELECT DISTINCT - 77 * + col1 FROM tab1 AS cor0 ---- -1001 -2002 -770 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( + col2 AS REAL ) * cor0.col0 + col2 FROM tab2 cor0 ---- 2054 216 3040 query I rowsort SELECT DISTINCT - + col0 * + col1 AS col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL ( cor0.col2 ) * cor0.col1 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # use DIV operator for integer division query I rowsort label-9188 SELECT + col1 DIV - cor0.col1 + + col1 * + 27 * col1 FROM tab2 AS cor0 ---- 25946 7802 93986 skipif mysql # not compatible query I rowsort label-9188 SELECT + col1 / - cor0.col1 + + col1 * + 27 * col1 FROM tab2 AS cor0 ---- 25946 7802 93986 query I rowsort SELECT - col0 + + cor0.col0 + - 47 AS col2 FROM tab1 AS cor0 ---- -47 -47 -47 query I rowsort SELECT - + cor0.col2 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 query I rowsort SELECT ALL + - 71 * 16 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to f1e4ce61f76cde62847b48a2a0fac085 query I rowsort SELECT ALL 32 * + cor0.col0 AS col1 FROM tab1, tab2 cor0, tab2, tab1 AS cor1 ---- 81 values hashing to dd380008fb3a500f0e27160cdeeb2310 query I rowsort SELECT + col0 * cor0.col0 + - col2 - col2 * col0 FROM tab1 AS cor0 ---- -1376 -207 391 query I rowsort SELECT DISTINCT - col2 * col1 + 81 * col1 + col1 FROM tab2 cor0 ---- 1705 3304 748 query I rowsort SELECT + 87 - col2 FROM tab1 cor0 ---- -9 30 33 query I rowsort SELECT ALL - col0 * col1 * ( col1 ) + col2 + 93 FROM tab0 AS cor0 ---- -177378 -329221 -736834 query I rowsort SELECT ALL - - 45 + col1 + col2 FROM tab0 AS cor0 ---- 143 164 218 query I rowsort SELECT - - ( col2 ) + col1 AS col1 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9199 SELECT DISTINCT - cor0.col2 + ( col0 ) DIV - col2 FROM tab0 AS cor0 ---- -33 -36 -83 skipif mysql # not compatible query I rowsort label-9199 SELECT DISTINCT - cor0.col2 + ( col0 ) / - col2 FROM tab0 AS cor0 ---- -33 -36 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-9200 SELECT + col2 DIV 37 AS col2 FROM tab0 AS cor0 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-9200 SELECT + col2 / 37 AS col2 FROM tab0 AS cor0 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * ( + 70 ) col1 FROM tab2 AS cor0 ---- 490 5460 5530 query I rowsort SELECT - - ( + cor0.col1 ) + - col0 AS col0 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT + cor0.col2 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT - 14 * - col1 AS col0 FROM tab1 ---- 140 182 364 query I rowsort SELECT - ( - col0 + + col0 ) AS col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT + col1 * - cor0.col1 * + ( 58 ) - col1 AS col2 FROM tab2 AS cor0 ---- -16779 -201957 -55769 query I rowsort SELECT - ( - col0 ) * - col1 - 26 * 56 AS col2 FROM tab1 ---- -1534 -2096 -2496 query I rowsort SELECT + ( + col1 ) - col0 FROM tab1 ---- -54 -67 23 query I rowsort SELECT col1 * - ( - tab0.col2 + - tab0.col1 ) AS col2 FROM tab0 ---- 10234 15743 9506 query I rowsort SELECT DISTINCT - col0 - tab2.col1 FROM tab2 ---- -137 -38 -96 query I rowsort SELECT DISTINCT - col0 + ( cor0.col2 * cor0.col1 ) AS col0 FROM tab2 AS cor0 ---- 1456 567 830 onlyif mysql # use DIV operator for integer division query I rowsort label-9212 SELECT ALL + col2 DIV 53 - - 89 AS col1 FROM tab2 ---- 89 89 89 skipif mysql # not compatible query I rowsort label-9212 SELECT ALL + col2 / 53 - - 89 AS col1 FROM tab2 ---- 89 89 89 query I rowsort SELECT ALL + + 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4 query I rowsort SELECT ALL col0 * + col2 + + col2 AS col2 FROM tab2 ---- 2054 216 3040 onlyif mysql # use DIV operator for integer division query I rowsort label-9215 SELECT - ( + 23 ) DIV - tab0.col0 + + 64 col0 FROM tab0 ---- 64 64 64 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9215 SELECT - ( + 23 ) / - tab0.col0 + + 64 col0 FROM tab0 ---- 64 64 64 onlyif mysql # use DIV operator for integer division query I rowsort label-9216 SELECT DISTINCT - col1 + tab1.col0 DIV col1 AS col0 FROM tab1 ---- -26 -4 -7 skipif mysql # not compatible query I rowsort label-9216 SELECT DISTINCT - col1 + tab1.col0 / col1 AS col0 FROM tab1 ---- -26 -4 -7 query I rowsort SELECT + - cor0.col0 FROM tab2, tab0 cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT ALL + 14 * - col1 FROM tab0 AS cor0 ---- -1204 -1274 -1358 query I rowsort SELECT DISTINCT + 16 * col2 - col1 FROM tab0 AS cor0 ---- -81 1221 442 query I rowsort SELECT + 78 AS col0 FROM tab1 cor0 ---- 78 78 78 query I rowsort SELECT ALL + col1 * col1 + col1 AS col0 FROM tab0 AS cor0 ---- 7482 8372 9506 onlyif mysql # use DIV operator for integer division query I rowsort label-9222 SELECT - col0 DIV col1 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-9222 SELECT - col0 / col1 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + ( + tab0.col1 ) + - 42 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 516f11f9092a54705646602458ada1af query I rowsort SELECT + 35 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc query I rowsort SELECT DISTINCT + 9 * col2 + - col1 * col0 FROM tab2 AS cor0 ---- -1001 -4368 26 query I rowsort SELECT ALL col2 * ( 32 ) * - col0 FROM tab0 AS cor0 ---- -1120 -233536 -25344 onlyif mysql # use DIV operator for integer division query I rowsort label-9227 SELECT + col1 DIV ( + col1 ) FROM tab2 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9227 SELECT + col1 / ( + col1 ) FROM tab2 cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT col0 * + 73 AS col2 FROM tab2 AS cor0 ---- 511 5694 5767 query I rowsort SELECT + col1 * - 94 + col0 AS col1 FROM tab1 cor0 ---- -1142 -2441 -876 query I rowsort SELECT + + col1 + col0 * + col2 FROM tab0 AS cor0 ---- 132 7389 878 onlyif mysql # use DIV operator for integer division query I rowsort label-9231 SELECT DISTINCT - col0 DIV + 63 FROM tab0 cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-9231 SELECT DISTINCT - col0 / + 63 FROM tab0 cor0 ---- -1 0 query I rowsort SELECT ALL - cor0.col2 * ( + col1 ) AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT tab1.col2 * - cor1.col1 FROM tab1, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 73fb0330341a15fd50a428b821d86ccf skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * - col2 * cor0.col0 col0 FROM tab2 AS cor0 ---- -114076 -5103 -52728 query I rowsort SELECT + 68 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4 query I rowsort SELECT DISTINCT col1 + col0 * - cor0.col2 FROM tab0 cor0 ---- -706 -7207 62 query I rowsort SELECT + col0 + ( col2 ) * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL - + cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2 ---- 243 values hashing to aad6a39cc782d0570960622f04a07424 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9239 SELECT ALL col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9239 SELECT ALL col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 66 * col0 FROM tab0 AS cor0 ---- 1584 2310 5874 query I rowsort SELECT + 37 + + 15 * - cor0.col0 AS col2 FROM tab2 cor0 ---- -1133 -1148 -68 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9242 SELECT - - CAST( ( - col2 ) AS SIGNED ) - - col1 FROM tab2 AS cor0 ---- -21 33 4 skipif mysql # not compatible query I rowsort label-9242 SELECT - - CAST ( ( - col2 ) AS INTEGER ) - - col1 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT + ( - 85 ) FROM tab1 AS cor0 ---- -85 -85 -85 query I rowsort SELECT + ( + col2 ) * - col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL col2 * + col0 - ( - cor0.col1 + col0 ) FROM tab1 AS cor0 ---- 185 3594 7613 query I rowsort SELECT DISTINCT + 8 * cor0.col2 FROM tab1 AS cor0 ---- 432 456 768 query I rowsort SELECT + - ( + cor0.col2 ) AS col0 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT col1 + col1 * + 46 AS col2 FROM tab0 AS cor0 ---- 4042 4277 4559 query I rowsort SELECT - - col1 + + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT DISTINCT 96 + col0 * + col2 AS col1 FROM tab0 cor0 ---- 131 7394 888 query I rowsort SELECT DISTINCT 36 + + col2 AS col2 FROM tab2 AS cor0 ---- 62 63 74 query I rowsort SELECT - 22 * + col0 + 76 AS col0 FROM tab2 AS cor0 ---- -1640 -1662 -78 query I rowsort SELECT DISTINCT - col2 + col2 * - col2 AS col0 FROM tab0 cor0 ---- -1122 -2 -6806 query I rowsort SELECT DISTINCT col1 * col1 + + col2 AS col0 FROM tab0 ---- 7429 8363 9410 query I rowsort SELECT ( 79 ) + - col0 FROM tab0 ---- -10 44 55 onlyif mysql # use DIV operator for integer division query I rowsort label-9256 SELECT - col0 DIV ( - tab1.col1 ) + + col2 * + ( + col0 ) + + col0 AS col0 FROM tab1 ---- 165 3718 7766 skipif mysql # not compatible query I rowsort label-9256 SELECT - col0 / ( - tab1.col1 ) + + col2 * + ( + col0 ) + + col0 AS col0 FROM tab1 ---- 165 3718 7766 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col0 + + 43 + + col0 col1 FROM tab2 ---- 199 201 57 query I rowsort SELECT DISTINCT + col2 * col2 * col1 AS col1 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT DISTINCT + 42 * + col2 AS col1 FROM tab1 AS cor0 ---- 2268 2394 4032 skipif mysql # not compatible query I rowsort SELECT col2 + + col2 * + CAST ( col1 AS REAL ) AS col2 FROM tab0 AS cor0 ---- 2871 7544 98 onlyif mysql # use DIV operator for integer division query I rowsort label-9261 SELECT DISTINCT + cor0.col0 * col1 + 86 + col1 DIV - col0 FROM tab1 AS cor0 ---- 1126 156 726 skipif mysql # not compatible query I rowsort label-9261 SELECT DISTINCT + cor0.col0 * col1 + 86 + col1 / - col0 FROM tab1 AS cor0 ---- 1126 156 726 query I rowsort SELECT ALL + ( - col1 ) * + 22 + - 91 AS col2 FROM tab1 cor0 ---- -311 -377 -663 query I rowsort SELECT 26 * - col1 AS col1 FROM tab0 AS cor0 ---- -2236 -2366 -2522 query I rowsort SELECT - - 83 * col0 + - col0 FROM tab2 AS cor0 ---- 574 6396 6478 onlyif mysql # use DIV operator for integer division query I rowsort label-9265 SELECT - 18 + - ( col1 ) DIV - cor0.col2 FROM tab1 AS cor0 ---- -18 -18 -18 skipif mysql # not compatible query I rowsort label-9265 SELECT - 18 + - ( col1 ) / - cor0.col2 FROM tab1 AS cor0 ---- -18 -18 -18 query I rowsort SELECT ALL col1 + - col0 * tab1.col0 FROM tab1 ---- -4086 -6387 17 query I rowsort SELECT - 35 + + col2 - + col0 AS col1 FROM tab1 AS cor0 ---- -19 -42 16 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9268 SELECT + ( - 2 ) * - col2 / - CAST( NULL AS DECIMAL ) - 43 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9268 SELECT + ( - 2 ) * - col2 / - CAST ( NULL AS REAL ) - 43 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 31 * + col0 FROM tab0 cor0 ---- -1085 -2759 -744 query I rowsort SELECT DISTINCT + tab1.col0 + ( col1 ) * col2 FROM tab1 ---- 1328 1407 634 query I rowsort SELECT DISTINCT - - cor0.col1 AS col0 FROM tab2, tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT col1 * - ( + cor0.col2 ) + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -6887 -7618 -886 onlyif mysql # use DIV operator for integer division query I rowsort label-9273 SELECT DISTINCT ( 78 ) DIV + col1 AS col1 FROM tab2 ---- 1 2 4 skipif mysql # not compatible query I rowsort label-9273 SELECT DISTINCT ( 78 ) / + col1 AS col1 FROM tab2 ---- 1 2 4 query I rowsort SELECT DISTINCT col0 - cor0.col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT + + cor0.col2 * col0 + - ( - 66 ) AS col0 FROM tab0 AS cor0 ---- 101 7364 858 query I rowsort SELECT DISTINCT - - cor0.col1 * + cor0.col1 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT + 16 * + cor0.col1 FROM tab1 cor0 ---- 160 208 416 query I rowsort SELECT ALL ( + cor0.col0 ) FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL 61 * col0 FROM tab1 cor0 ---- 183 3904 4880 query I rowsort SELECT ALL 67 - col2 FROM tab0 ---- -15 34 66 query I rowsort SELECT ALL + tab0.col2 - + 2 FROM tab0 ---- -1 31 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9282 SELECT CAST( NULL AS SIGNED ) * 44 - - col2 * col0 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9282 SELECT CAST ( NULL AS INTEGER ) * 44 - - col2 * col0 AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + - col1 + + ( ( col1 ) ) AS col0 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9284 SELECT col2 + + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9284 SELECT col2 + + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col0 * col1 * - col2 AS col2 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT DISTINCT + - cor0.col1 AS col1 FROM tab2, tab1, tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT cor0.col1 + - 53 FROM tab2 AS cor0 ---- -22 -36 6 query I rowsort SELECT ALL col0 + col2 * col2 AS col2 FROM tab0 AS cor0 ---- 1113 36 6813 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9289 SELECT ALL + + CAST( - 76 AS SIGNED ) * cor0.col1 + + 88 * + cor0.col0 - cor0.col0 AS col0 FROM tab0 AS cor0 ---- -4327 -4448 827 skipif mysql # not compatible query I rowsort label-9289 SELECT ALL + + CAST ( - 76 AS INTEGER ) * cor0.col1 + + 88 * + cor0.col0 - cor0.col0 AS col0 FROM tab0 AS cor0 ---- -4327 -4448 827 query I rowsort SELECT DISTINCT col0 + 49 * cor0.col0 FROM tab2 AS cor0 ---- 350 3900 3950 query I rowsort SELECT - col1 + + 94 * - tab1.col0 FROM tab1 ---- -308 -6026 -7533 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9292 SELECT - col1 - + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9292 SELECT - col1 - + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 64 * 20 * col2 - cor0.col2 col2 FROM tab1 AS cor0 ---- -122976 -69174 -73017 query I rowsort SELECT + 16 + col2 AS col0 FROM tab2 ---- 42 43 54 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 97 + + col1 col0 FROM tab0 ---- -11 -6 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9296 SELECT + col2 DIV 25 FROM tab0 cor0 ---- 0 1 3 skipif mysql # not compatible query I rowsort label-9296 SELECT + col2 / 25 FROM tab0 cor0 ---- 0 1 3 query I rowsort SELECT DISTINCT col2 + ( - col2 ) * 73 FROM tab1 cor0 ---- -3888 -4104 -6912 onlyif mysql # use DIV operator for integer division query I rowsort label-9298 SELECT DISTINCT + + ( - cor0.col0 ) DIV - col2 - - col0 AS col0 FROM tab0 AS cor0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-9298 SELECT DISTINCT + + ( - cor0.col0 ) / - col2 - - col0 AS col0 FROM tab0 AS cor0 ---- 24 70 90 onlyif mysql # use DIV operator for integer division query I rowsort label-9299 SELECT + - col1 DIV + 22 + col2 * + col1 FROM tab2 AS cor0 ---- 1532 646 836 skipif mysql # not compatible query I rowsort label-9299 SELECT + - col1 / + 22 + col2 * + col1 FROM tab2 AS cor0 ---- 1532 646 836 query I rowsort SELECT + 89 * 69 - - col1 FROM tab2 AS cor0 ---- 6158 6172 6200 query I rowsort SELECT DISTINCT col0 * 12 FROM tab1 cor0 ---- 36 768 960 query I rowsort SELECT ALL - - 52 + col1 * col2 * + col0 AS col2 FROM tab2 AS cor0 ---- 119704 51086 5911 query I rowsort SELECT col1 - - cor0.col1 * cor0.col2 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT ALL - ( - 6 ) AS col2 FROM tab1 cor0 ---- 6 6 6 onlyif mysql # use DIV operator for integer division query I rowsort label-9305 SELECT ALL 54 DIV tab0.col1 + - 82 * col0 + + col0 AS col2 FROM tab0 ---- -1944 -2835 -7209 skipif mysql # not compatible query I rowsort label-9305 SELECT ALL 54 / tab0.col1 + - 82 * col0 + + col0 AS col2 FROM tab0 ---- -1944 -2835 -7209 query I rowsort SELECT + cor0.col1 + + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to f65167375aa80cc8b3f3f8987d2662a3 query I rowsort SELECT ( col1 ) + - ( 42 ) AS col1 FROM tab1 ---- -16 -29 -32 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9308 SELECT 82 + col0 * CAST( cor0.col2 AS SIGNED ) FROM tab1 cor0 ---- 244 3730 7762 skipif mysql # not compatible query I rowsort label-9308 SELECT 82 + col0 * CAST ( cor0.col2 AS INTEGER ) FROM tab1 cor0 ---- 244 3730 7762 query I rowsort SELECT DISTINCT + col2 * - ( - col1 * col1 ) AS col1 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT - col1 + + 97 AS col0 FROM tab1 AS cor0 ---- 71 84 87 query I rowsort SELECT col0 * + 13 AS col2 FROM tab0 AS cor0 ---- 1157 312 455 onlyif mysql # use DIV operator for integer division query I rowsort label-9312 SELECT DISTINCT + col1 DIV ( + col2 ) AS col0 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-9312 SELECT DISTINCT + col1 / ( + col2 ) AS col0 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT + col1 + ( 46 ) * col2 AS col0 FROM tab0 AS cor0 ---- 143 1604 3863 query I rowsort SELECT ALL 50 * col0 FROM tab2 AS cor0 ---- 350 3900 3950 onlyif mysql # use DIV operator for integer division query I rowsort label-9315 SELECT DISTINCT col0 * col1 + ( - 82 ) * col1 DIV + col1 AS col1 FROM tab0 AS cor0 ---- 1982 3313 8017 skipif mysql # not compatible query I rowsort label-9315 SELECT DISTINCT col0 * col1 + ( - 82 ) * col1 / + col1 AS col1 FROM tab0 AS cor0 ---- 1982 3313 8017 onlyif mysql # use DIV operator for integer division query I rowsort label-9316 SELECT ALL + col2 - + col0 DIV - 48 col2 FROM tab1 cor0 ---- 54 58 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9316 SELECT ALL + col2 - + col0 / - 48 col2 FROM tab1 cor0 ---- 54 58 97 query I rowsort SELECT DISTINCT + col1 * cor0.col2 + + col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT - + ( + col2 ) * + 22 FROM tab2 cor0 ---- -572 -594 -836 query I rowsort SELECT DISTINCT + 93 + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 110 124 152 query I rowsort SELECT DISTINCT - 51 * col2 + + 77 FROM tab0 AS cor0 ---- -1606 -4105 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + 67 ) col0 FROM tab0 ---- 67 query I rowsort SELECT ALL + - 40 * col0 + + cor0.col1 * 16 * cor0.col1 FROM tab2 AS cor0 ---- 1464 15096 52576 query I rowsort SELECT 17 + col2 AS col1 FROM tab2 AS cor0 ---- 43 44 55 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col2 ) + col2 col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT + col0 * - col0 + - col2 * col0 AS col2 FROM tab0 ---- -1260 -1368 -15219 query I rowsort SELECT + 70 * + 44 + - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 05575d1204baa2a2fca6d12154025da0 query I rowsort SELECT DISTINCT - ( 26 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- -26 query I rowsort SELECT DISTINCT + col2 + col1 + + 12 AS col0 FROM tab0 AS cor0 ---- 110 131 185 query I rowsort SELECT ALL - 98 AS col2 FROM tab2 ---- -98 -98 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 + + col2 * cor0.col2 col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT DISTINCT 16 FROM tab1 cor0 ---- 16 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9332 SELECT + CAST( - 2 AS SIGNED ) FROM tab2 AS cor0 ---- -2 -2 -2 skipif mysql # not compatible query I rowsort label-9332 SELECT + CAST ( - 2 AS INTEGER ) FROM tab2 AS cor0 ---- -2 -2 -2 query I rowsort SELECT ALL - cor2.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 ---- 243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5 query I rowsort SELECT ( - ( col0 ) ) AS col0 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + - 33 + col0 col2 FROM tab0 ---- 138 24 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 88 col1 FROM tab1, tab2 cor0 ---- 88 query I rowsort SELECT ALL tab2.col0 * 13 * col2 + col0 FROM tab2 ---- 2464 26442 39105 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * - col2 col2 FROM tab1 ---- -2916 -3249 -9216 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( col2 AS REAL ) AS col0 FROM tab1 ---- 54 57 96 query I rowsort SELECT - ( col1 ) * + col2 + 71 AS col2 FROM tab0 ---- -26 -2767 -7391 onlyif mysql # use DIV operator for integer division query I rowsort label-9342 SELECT ALL - col2 + - cor0.col2 DIV col1 FROM tab1 AS cor0 ---- -103 -56 -62 skipif mysql # not compatible query I rowsort label-9342 SELECT ALL - col2 + - cor0.col2 / col1 FROM tab1 AS cor0 ---- -103 -56 -62 query I rowsort SELECT ALL 49 + col0 * - col0 AS col2 FROM tab2 AS cor0 ---- -6035 -6192 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9344 SELECT DISTINCT - cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0 ---- 0 3 skipif mysql # not compatible query I rowsort label-9344 SELECT DISTINCT - cor0.col2 / - col0 AS col0 FROM tab2 AS cor0 ---- 0 3 query I rowsort SELECT + ( col0 ) + + col1 * col1 FROM tab2 cor0 ---- 3559 368 968 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 64 col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e onlyif mysql # use DIV operator for integer division query I rowsort label-9347 SELECT + 66 * cor0.col2 DIV - cor0.col0 col1 FROM tab2 cor0 ---- -22 -254 -31 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9347 SELECT + 66 * cor0.col2 / - cor0.col0 col1 FROM tab2 cor0 ---- -22 -254 -31 query I rowsort SELECT DISTINCT - cor0.col0 + - 85 FROM tab1 cor0 ---- -149 -165 -88 query I rowsort SELECT - cor0.col1 + + cor0.col2 + + col1 * - col1 * + cor0.col1 FROM tab0 cor0 ---- -636109 -753580 -912769 query I rowsort SELECT ALL - - ( - 12 ) AS col2 FROM tab0 AS cor0 ---- -12 -12 -12 query I rowsort SELECT DISTINCT - + 7 AS col0 FROM tab2 AS cor0 ---- -7 query I rowsort SELECT DISTINCT + ( col0 ) + col0 * + col2 AS col2 FROM tab1 cor0 ---- 165 3712 7760 onlyif mysql # use DIV operator for integer division query I rowsort label-9353 SELECT DISTINCT 99 DIV + tab1.col0 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 1 33 skipif mysql # not compatible query I rowsort label-9353 SELECT DISTINCT 99 / + tab1.col0 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 1 33 query I rowsort SELECT ALL + cor0.col1 + - tab2.col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 388493d861b014f5947e20fd539835b7 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 cor0, tab1 AS cor1, tab2, tab0 cor2 ---- 3645 values hashing to be7848c91584d04f21fd5bbb0d239aca query I rowsort SELECT col1 * - col0 * - ( + col1 ) AS col0 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT cor0.col2 + + cor0.col1 * 97 * col2 AS col2 FROM tab1 AS cor0 ---- 121152 136242 55347 onlyif mysql # use DIV operator for integer division query I rowsort label-9358 SELECT - - col1 * col0 + col1 + - col1 DIV - col2 FROM tab0 AS cor0 ---- 2152 3589 8191 skipif mysql # not compatible query I rowsort label-9358 SELECT - - col1 * col0 + col1 + - col1 / - col2 FROM tab0 AS cor0 ---- 2152 3589 8191 onlyif mysql # use DIV operator for integer division query I rowsort label-9359 SELECT DISTINCT tab0.col1 * col2 * + col2 + - col2 DIV 65 FROM tab0 ---- 611883 93654 97 skipif mysql # not compatible query I rowsort label-9359 SELECT DISTINCT tab0.col1 * col2 * + col2 + - col2 / 65 FROM tab0 ---- 611883 93654 97 query I rowsort SELECT col1 * 16 * + 29 FROM tab1 ---- 12064 4640 6032 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * + col0 + 25 * col0 * - 74 + col1 col1 FROM tab2 AS cor0 ---- -12730 -142213 -143131 query I rowsort SELECT + cor0.col0 - cor0.col0 * col0 AS col0 FROM tab1 AS cor0 ---- -4032 -6 -6320 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9363 SELECT - col1 + CAST( + 14 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0 ---- -83 1057 376 skipif mysql # not compatible query I rowsort label-9363 SELECT - col1 + CAST ( + 14 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 ---- -83 1057 376 onlyif mysql # use DIV operator for integer division query I rowsort label-9364 SELECT - cor0.col1 + - ( + col1 ) * col0 * col1 + - col0 DIV col2 AS col2 FROM tab0 AS cor0 ---- -177590 -329447 -737101 skipif mysql # not compatible query I rowsort label-9364 SELECT - cor0.col1 + - ( + col1 ) * col0 * col1 + - col0 / col2 AS col2 FROM tab0 AS cor0 ---- -177590 -329447 -737101 query I rowsort SELECT + col2 * - 67 * 10 + + cor0.col2 * + 26 + col0 AS col1 FROM tab2 AS cor0 ---- -16666 -17381 -24393 query I rowsort SELECT ALL - - col2 * + ( - col2 ) + col2 AS col2 FROM tab2 AS cor0 ---- -1406 -650 -702 query I rowsort SELECT + + cor0.col1 + + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT - col2 + - 53 AS col1 FROM tab2 AS cor0 ---- -79 -80 -91 query I rowsort SELECT ( - 19 ) * col2 + - col0 AS col2 FROM tab0 cor0 ---- -1647 -54 -651 query I rowsort SELECT + cor0.col1 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT 69 * col0 AS col2 FROM tab1 AS cor0 ---- 207 4416 5520 query I rowsort SELECT - col1 * ( - col1 ) AS col1 FROM tab2 ---- 289 3481 961 onlyif mysql # use DIV operator for integer division query I rowsort label-9373 SELECT ALL tab2.col2 + col1 * + col0 DIV + col0 FROM tab2 ---- 55 58 85 skipif mysql # not compatible query I rowsort label-9373 SELECT ALL tab2.col2 + col1 * + col0 / + col0 FROM tab2 ---- 55 58 85 query I rowsort SELECT DISTINCT col1 + col1 * + col2 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT + 97 * - cor0.col1 FROM tab0 cor0 ---- -8342 -8827 -9409 query I rowsort SELECT - 97 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 12bd12d33f03250bee508c5641e140d5 query I rowsort SELECT + col0 * - ( ( + col1 ) ) - - 61 AS col2 FROM tab2 AS cor0 ---- -1282 -156 -4541 query I rowsort SELECT - - col0 * ( + ( - cor0.col2 ) * ( - cor0.col2 ) ) + + cor0.col0 + + 37 FROM tab0 AS cor0 ---- 107 26197 598562 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9379 SELECT col2 * CAST( col2 AS SIGNED ) - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1406 650 702 skipif mysql # not compatible query I rowsort label-9379 SELECT col2 * CAST ( col2 AS INTEGER ) - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1406 650 702 query I rowsort SELECT ALL tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT DISTINCT + col1 * 20 AS col0 FROM tab2 AS cor0 ---- 1180 340 620 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9382 SELECT - col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9382 SELECT - col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + + col2 + - 40 * col0 FROM tab0 AS cor0 ---- -1399 -3478 -927 onlyif mysql # use DIV operator for integer division query I rowsort label-9384 SELECT DISTINCT tab2.col2 * col0 + + 94 DIV + 46 + tab2.col1 * + col0 AS col1 FROM tab2 ---- 408 4347 6632 skipif mysql # not compatible query I rowsort label-9384 SELECT DISTINCT tab2.col2 * col0 + + 94 / + 46 + tab2.col1 * + col0 AS col1 FROM tab2 ---- 408 4347 6632 query I rowsort SELECT ( col0 ) + col0 * 67 AS col1 FROM tab1 AS cor0 ---- 204 4352 5440 query I rowsort SELECT ALL - ( + 12 ) * + col1 + ( ( - col2 ) ) * 13 FROM tab0 AS cor0 ---- -1177 -1461 -2158 onlyif mysql # use DIV operator for integer division query I rowsort label-9387 SELECT + col2 + col1 * col1 DIV + tab2.col1 AS col1 FROM tab2 ---- 55 58 85 skipif mysql # not compatible query I rowsort label-9387 SELECT + col2 + col1 * col1 / + tab2.col1 AS col1 FROM tab2 ---- 55 58 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9388 SELECT - CAST( NULL AS SIGNED ) * col0 + col0 col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9388 SELECT - CAST ( NULL AS INTEGER ) * col0 + col0 col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * - 72 FROM tab2 AS cor0 ---- -1872 -1944 -2736 query I rowsort SELECT + cor0.col0 * + col2 + cor0.col0 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT DISTINCT 48 AS col1 FROM tab2, tab0 AS cor0 ---- 48 onlyif mysql # use DIV operator for integer division query I rowsort label-9392 SELECT DISTINCT 69 DIV + col0 AS col0 FROM tab2 ---- 0 9 skipif mysql # not compatible query I rowsort label-9392 SELECT DISTINCT 69 / + col0 AS col0 FROM tab2 ---- 0 9 query I rowsort SELECT ALL + ( 8 * - col0 ) AS col2 FROM tab1 ---- -24 -512 -640 query I rowsort SELECT ALL + ( - 43 + + col0 ) FROM tab2 ---- -36 35 36 query I rowsort SELECT ALL - 47 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5 onlyif mysql # use DIV operator for integer division query I rowsort label-9396 SELECT ALL - ( col0 ) * col1 DIV 35 FROM tab1 AS cor0 ---- -18 -2 -29 skipif mysql # not compatible query I rowsort label-9396 SELECT ALL - ( col0 ) * col1 / 35 FROM tab1 AS cor0 ---- -18 -2 -29 query I rowsort SELECT DISTINCT - - 22 + col0 FROM tab2 AS cor0 ---- 100 101 29 query I rowsort SELECT DISTINCT - 88 + col1 FROM tab1 AS cor0 ---- -62 -75 -78 query I rowsort SELECT DISTINCT + 67 * col0 + 50 AS col1 FROM tab2 cor0 ---- 519 5276 5343 query I rowsort SELECT DISTINCT + + 12 * - col0 AS col0 FROM tab2 AS cor0 ---- -84 -936 -948 onlyif mysql # use DIV operator for integer division query I rowsort label-9401 SELECT ALL + 94 DIV + col0 AS col2 FROM tab1 AS cor0 ---- 1 1 31 skipif mysql # not compatible query I rowsort label-9401 SELECT ALL + 94 / + col0 AS col2 FROM tab1 AS cor0 ---- 1 1 31 query I rowsort SELECT DISTINCT + 92 + 4 * - tab0.col0 FROM tab0 ---- -264 -4 -48 onlyif mysql # use DIV operator for integer division query I rowsort label-9403 SELECT DISTINCT + col0 DIV - col1 + + col2 * + col1 AS col0 FROM tab2 ---- 1533 642 837 skipif mysql # not compatible query I rowsort label-9403 SELECT DISTINCT + col0 / - col1 + + col2 * + col1 AS col0 FROM tab2 ---- 1533 642 837 query I rowsort SELECT ALL 83 * + col0 AS col0 FROM tab2 ---- 581 6474 6557 query I rowsort SELECT ALL - ( col1 + - col1 ) AS col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT - + cor0.col0 + cor0.col1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT - 96 * + cor0.col2 FROM tab2 cor0 ---- -2496 -2592 -3648 query I rowsort SELECT DISTINCT 5 + cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 102 91 96 query I rowsort SELECT ALL cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT - - col2 * + col2 + + col1 * col1 FROM tab2 AS cor0 ---- 1690 1733 4157 query I rowsort SELECT - col1 - + col2 * 47 FROM tab1 AS cor0 ---- -2564 -2689 -4525 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9412 SELECT DISTINCT col0 * col1 * + col1 + col0 - + CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-9412 SELECT DISTINCT col0 * col1 * + col1 + col0 - + CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col0 ) * col2 col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - ( + col1 ) - tab2.col0 AS col1 FROM tab2 ---- -137 -38 -96 query I rowsort SELECT DISTINCT ( - col2 ) + + col2 FROM tab1 ---- 0 query I rowsort SELECT + tab0.col0 + col0 * - col2 * + col1 FROM tab0 ---- -3360 -664029 -68088 query I rowsort SELECT ALL 71 * col0 + + col0 AS col0 FROM tab0 ---- 1728 2520 6408 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9418 SELECT + col2 * + col1 + - col0 * - CAST( - col1 + col2 AS SIGNED ) AS col0 FROM tab1 ---- 1488 3578 7888 skipif mysql # not compatible query I rowsort label-9418 SELECT + col2 * + col1 + - col0 * - CAST ( - col1 + col2 AS INTEGER ) AS col0 FROM tab1 ---- 1488 3578 7888 query I rowsort SELECT 70 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to c07fb58c935d7dd3a559c80465f90463 query I rowsort SELECT DISTINCT col1 * cor0.col0 * col0 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT - 45 + col1 * col2 FROM tab1 AS cor0 ---- 1203 1359 525 query I rowsort SELECT DISTINCT + - col1 + + 92 * col1 FROM tab2 cor0 ---- 1547 2821 5369 onlyif mysql # use DIV operator for integer division query I rowsort label-9423 SELECT ALL + col1 * + 25 + + ( - col2 ) DIV + 49 AS col0 FROM tab0 AS cor0 ---- 2150 2274 2425 skipif mysql # not compatible query I rowsort label-9423 SELECT ALL + col1 * + 25 + + ( - col2 ) / + 49 AS col0 FROM tab0 AS cor0 ---- 2150 2274 2425 query I rowsort SELECT col2 + col0 * col0 AS col1 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT DISTINCT - col1 + - col1 * - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 7310 8190 9312 query I rowsort SELECT DISTINCT + ( ( cor0.col2 ) ) FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2 ---- 54 57 96 query I rowsort SELECT DISTINCT - col1 + - col2 * col2 AS col0 FROM tab2 cor0 ---- -1461 -735 -760 query I rowsort SELECT ALL cor0.col1 * - 51 - - col1 AS col0 FROM tab0 AS cor0 ---- -4300 -4550 -4850 query I rowsort SELECT DISTINCT + cor0.col2 + - col1 + - col2 AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT ALL - - cor0.col2 * - col0 + + 78 AS col0 FROM tab2 cor0 ---- -111 -1950 -2924 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT ALL - col0 + - CAST ( + col2 AS REAL ) * + col2 col0 FROM tab1 AS cor0 ---- -2919 -3313 -9296 query I rowsort SELECT ALL - col1 * - 92 FROM tab1 AS cor0 ---- 1196 2392 920 query I rowsort SELECT DISTINCT + cor0.col0 * col1 + col2 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT col2 * + col0 + col0 AS col2 FROM tab0 AS cor0 ---- 70 7387 816 onlyif mysql # use DIV operator for integer division query I rowsort label-9435 SELECT DISTINCT col2 * CAST( col2 AS SIGNED ) DIV + col1 FROM tab0 ---- 0 12 73 skipif mysql # not compatible query I rowsort label-9435 SELECT DISTINCT col2 * CAST ( col2 AS INTEGER ) / + col1 FROM tab0 ---- 0 12 73 query I rowsort SELECT + + 27 AS col0 FROM tab1 AS cor0 ---- 27 27 27 onlyif mysql # use DIV operator for integer division query I rowsort label-9437 SELECT + col1 DIV + col2 - - cor0.col1 AS col1 FROM tab1 cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-9437 SELECT + col1 / + col2 - - cor0.col1 AS col1 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT 39 - col1 AS col1 FROM tab0 AS cor0 ---- -47 -52 -58 onlyif mysql # use DIV operator for integer division query I rowsort label-9439 SELECT + col2 + col2 DIV col1 col1 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9439 SELECT + col2 + col2 / col1 col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT 2 - + tab1.col1 FROM tab1 ---- -11 -24 -8 query I rowsort SELECT ALL col0 + + col1 * 3 AS col2 FROM tab2 ---- 100 130 255 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9442 SELECT ALL + 36 * + tab0.col2 + + ( + col0 + - tab0.col1 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9442 SELECT ALL + 36 * + tab0.col2 + + ( + col0 + - tab0.col1 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9443 SELECT DISTINCT 77 DIV col1 + 70 * col2 FROM tab1 ---- 3782 3997 6725 skipif mysql # not compatible query I rowsort label-9443 SELECT DISTINCT 77 / col1 + 70 * col2 FROM tab1 ---- 3782 3997 6725 query I rowsort SELECT col0 * + col1 * col1 AS col0 FROM tab1 ---- 13520 2028 6400 onlyif mysql # use DIV operator for integer division query I rowsort label-9445 SELECT - ( col0 ) + - 20 DIV col0 FROM tab2 cor0 ---- -78 -79 -9 skipif mysql # not compatible query I rowsort label-9445 SELECT - ( col0 ) + - 20 / col0 FROM tab2 cor0 ---- -78 -79 -9 query I rowsort SELECT ALL + - col0 - - cor0.col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col1 * col1 + - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -306 -3540 -992 query I rowsort SELECT col1 + - col2 + col0 AS col0 FROM tab1 ---- -25 -3 17 query I rowsort SELECT - - col0 + - col2 * 70 * cor0.col0 FROM tab0 AS cor0 ---- -2415 -510771 -55416 onlyif mysql # use DIV operator for integer division query I rowsort label-9450 SELECT DISTINCT tab1.col2 + - 89 DIV cor0.col2 FROM tab1, tab1 AS cor0 ---- 53 54 56 57 95 96 skipif mysql # not compatible query I rowsort label-9450 SELECT DISTINCT tab1.col2 + - 89 / cor0.col2 FROM tab1, tab1 AS cor0 ---- 53 54 56 57 95 96 query I rowsort SELECT + col1 * ( tab2.col1 ) FROM tab2 ---- 289 3481 961 query I rowsort SELECT col2 * - col0 + col2 + + col0 * col1 * col2 FROM tab1 AS cor0 ---- 32889 4104 92256 query I rowsort SELECT - col1 * - col1 + 4 AS col0 FROM tab1 AS cor0 ---- 104 173 680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 23 col0 FROM tab0 ---- 23 23 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 + 91 col1 FROM tab0 AS cor0 ---- 177 182 188 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( + col2 ) * - cor0.col0 + + 51 col1 FROM tab1 AS cor0 ---- -111 -3597 -7629 query I rowsort SELECT col0 * + col2 + + col2 * col1 * - col0 AS col2 FROM tab1 AS cor0 ---- -32832 -4050 -92160 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + ( - col1 ) col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT + - col1 - col0 * 37 FROM tab1 cor0 ---- -137 -2378 -2973 query I rowsort SELECT ALL - + 16 AS col2 FROM tab0 AS cor0 ---- -16 -16 -16 query I rowsort SELECT DISTINCT - - 11 + + col1 AS col2 FROM tab0 AS cor0 ---- 102 108 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + cor0.col0 * + cor0.col2 col1 FROM tab0 AS cor0 ---- 70 7387 816 onlyif mysql # use DIV operator for integer division query I rowsort label-9463 SELECT DISTINCT - col0 DIV - col1 col0 FROM tab2 AS cor0 ---- 0 1 4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9463 SELECT DISTINCT - col0 / - col1 col0 FROM tab2 AS cor0 ---- 0 1 4 onlyif mysql # use DIV operator for integer division query I rowsort label-9464 SELECT + col0 + col0 DIV 77 + col1 FROM tab1 AS cor0 ---- 29 74 94 skipif mysql # not compatible query I rowsort label-9464 SELECT + col0 + col0 / 77 + col1 FROM tab1 AS cor0 ---- 29 74 94 onlyif mysql # use DIV operator for integer division query I rowsort label-9465 SELECT - col1 + - col0 DIV col2 AS col2 FROM tab1 AS cor0 ---- -11 -13 -26 skipif mysql # not compatible query I rowsort label-9465 SELECT - col1 + - col0 / col2 AS col2 FROM tab1 AS cor0 ---- -11 -13 -26 query I rowsort SELECT ALL 91 FROM tab2, tab2 cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT ALL col2 - col2 * col1 AS col1 FROM tab1 ---- -1152 -1350 -513 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * 17 * - col0 + + 82 col2 FROM tab2 ---- 3295 34558 51116 query I rowsort SELECT + 61 - + col2 FROM tab2 cor0 ---- 23 34 35 query I rowsort SELECT DISTINCT + col2 + col0 * col0 * + cor0.col1 FROM tab1 cor0 ---- 288 41017 83296 query I rowsort SELECT ALL col0 * col1 + + col2 FROM tab2 AS cor0 ---- 1381 244 4628 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27 query I rowsort SELECT - col0 * + col2 + col1 AS col0 FROM tab0 ---- -706 -7207 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( col0 ) col1 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - + 77 AS col1 FROM tab1 AS cor0 ---- -77 -77 -77 query I rowsort SELECT - - col0 * - 22 + 98 - col0 FROM tab1 AS cor0 ---- -1374 -1742 29 query I rowsort SELECT + col2 * 52 + 77 * col0 FROM tab1 AS cor0 ---- 11152 3039 7892 query I rowsort SELECT ALL 75 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e61b59795204c348103a58c0a8e4ce16 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 97 * - col1 * col0 + ( - 71 ) col2 FROM tab0 cor0 ---- 200137 329244 785532 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9480 SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col2 / - col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9480 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col2 / - col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * - col1 + + col1 col1 FROM tab1 cor0 ---- -156 -650 -90 onlyif mysql # use DIV operator for integer division query I rowsort label-9482 SELECT DISTINCT + col2 * - col2 DIV col2 AS col2 FROM tab1 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-9482 SELECT DISTINCT + col2 * - col2 / col2 AS col2 FROM tab1 ---- -54 -57 -96 query I rowsort SELECT 58 + cor0.col0 FROM tab0, tab2 cor0 ---- 9 values hashing to ed2018dec6b071f154fd8cf9a42cc36c query IIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0 WHERE NOT ( tab2.col2 ) >= NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9485 SELECT - - 67 DIV col2 + cor0.col1 * - col2 FROM tab0 AS cor0 ---- -2836 -30 -7462 skipif mysql # not compatible query I rowsort label-9485 SELECT - - 67 / col2 + cor0.col1 * - col2 FROM tab0 AS cor0 ---- -2836 -30 -7462 query I rowsort SELECT DISTINCT ( + col1 ) + col1 * 38 FROM tab2 ---- 1209 2301 663 query I rowsort SELECT ( 62 ) * tab1.col2 FROM tab1 ---- 3348 3534 5952 query I rowsort SELECT - cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2 ---- 243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5 query I rowsort SELECT - - 85 + col0 AS col0 FROM tab0 AS cor0 ---- 109 120 174 query I rowsort SELECT DISTINCT - - 86 + - 12 AS col2 FROM tab1 AS cor0 ---- 74 query I rowsort SELECT ALL + - cor0.col1 + 61 FROM tab0 AS cor0 ---- -25 -30 -36 query I rowsort SELECT DISTINCT - + col0 * + 49 AS col1 FROM tab0 AS cor0 ---- -1176 -1715 -4361 query I rowsort SELECT - + ( 97 ) FROM tab0 AS cor0 ---- -97 -97 -97 query I rowsort SELECT DISTINCT + 29 * - col0 FROM tab2 AS cor0 ---- -203 -2262 -2291 query I rowsort SELECT ALL 94 * col1 AS col2 FROM tab1 cor0 ---- 1222 2444 940 query I rowsort SELECT DISTINCT - 35 * col2 AS col0 FROM tab2 AS cor0 ---- -1330 -910 -945 query I rowsort SELECT ALL + + ( - col1 ) + - col2 * - cor0.col2 FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT - cor0.col2 * + col0 * + 34 FROM tab1 AS cor0 ---- -124032 -261120 -5508 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 53 * - col0 + + cor0.col1 col2 FROM tab0 AS cor0 ---- 1358 1952 4808 query I rowsort SELECT ALL - cor0.col2 * - col0 AS col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - 0 * - col2 + col2 AS col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + cor0.col0 * - col2 * col0 AS col0 FROM tab2 AS cor0 ---- -1323 -158184 -237158 query I rowsort SELECT ALL 95 * - col2 + - col2 FROM tab1 ---- -5184 -5472 -9216 query I rowsort SELECT - col1 * + col2 * col2 - col0 FROM tab0 cor0 ---- -132 -611973 -93678 query I rowsort SELECT DISTINCT - + col1 + col1 * col2 + + col2 AS col0 FROM tab0 AS cor0 ---- 1 2785 7453 query I rowsort SELECT + col2 * + col1 - + col1 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT DISTINCT - cor0.col2 + + ( + 44 ) FROM tab0 AS cor0 ---- -38 11 43 query I rowsort SELECT ALL - + col1 * col2 + 36 AS col1 FROM tab1 AS cor0 ---- -1212 -1368 -534 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + ( + col0 * col0 ) col2 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT - - col2 - + col1 AS col0 FROM tab1 AS cor0 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-9511 SELECT DISTINCT - col1 * 49 DIV col2 FROM tab0 AS cor0 ---- -127 -4753 -54 skipif mysql # not compatible query I rowsort label-9511 SELECT DISTINCT - col1 * 49 / col2 FROM tab0 AS cor0 ---- -127 -4753 -54 query I rowsort SELECT - - col0 * - 30 FROM tab2 AS cor0 ---- -210 -2340 -2370 onlyif mysql # use DIV operator for integer division query I rowsort label-9513 SELECT ALL cor0.col2 + - ( col1 ) DIV cor0.col2 FROM tab0 AS cor0 ---- -96 31 81 skipif mysql # not compatible query I rowsort label-9513 SELECT ALL cor0.col2 + - ( col1 ) / cor0.col2 FROM tab0 AS cor0 ---- -96 31 81 query I rowsort SELECT 61 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55 query I rowsort SELECT ALL - cor0.col1 * 57 AS col1 FROM tab0 AS cor0 ---- -4902 -5187 -5529 query I rowsort SELECT DISTINCT - col0 * - ( cor0.col2 ) FROM tab0 AS cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + col1 * - col2 * + col0 col2 FROM tab0 AS cor0 ---- -3396 -664200 -68145 query I rowsort SELECT - col0 * - col1 * 75 + col2 FROM tab1 AS cor0 ---- 48057 5904 78096 onlyif mysql # use DIV operator for integer division query I rowsort label-9519 SELECT ALL - 4 * 86 DIV - col0 FROM tab1 AS cor0 ---- 114 4 5 skipif mysql # not compatible query I rowsort label-9519 SELECT ALL - 4 * 86 / - col0 FROM tab1 AS cor0 ---- 114 4 5 onlyif mysql # use DIV operator for integer division query I rowsort label-9520 SELECT - + cor0.col0 * - 58 + - 43 DIV col1 AS col2 FROM tab2 AS cor0 ---- 405 4524 4580 skipif mysql # not compatible query I rowsort label-9520 SELECT - + cor0.col0 * - 58 + - 43 / col1 AS col2 FROM tab2 AS cor0 ---- 405 4524 4580 query I rowsort SELECT + col1 + + 58 + col0 FROM tab0 ---- 168 190 238 query I rowsort SELECT ALL + col1 * col1 + col2 FROM tab0 ---- 7429 8363 9410 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9523 SELECT 66 * + col1 * + CAST( 78 * col1 AS SIGNED ) AS col0 FROM tab1 ---- 3480048 514800 870012 skipif mysql # not compatible query I rowsort label-9523 SELECT 66 * + col1 * + CAST ( 78 * col1 AS INTEGER ) AS col0 FROM tab1 ---- 3480048 514800 870012 query I rowsort SELECT ( 33 ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 76da8bc7cae18ecf856438f872430c80 query I rowsort SELECT ALL - 12 + - col1 FROM tab2 ---- -29 -43 -71 query I rowsort SELECT tab2.col0 + - col0 + + ( - 63 ) AS col1 FROM tab2 ---- -63 -63 -63 query I rowsort SELECT DISTINCT + tab0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0 ---- 1 33 82 query I rowsort SELECT + 22 * - tab2.col0 FROM tab2 ---- -154 -1716 -1738 query I rowsort SELECT DISTINCT + 66 AS col0 FROM tab2 AS cor0 ---- 66 query I rowsort SELECT DISTINCT ( col0 ) AS col1 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT ALL - - 49 AS col1 FROM tab0 AS cor0 ---- 49 49 49 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + col1 * ( cor0.col1 ) + col2 col0 FROM tab2 cor0 ---- 3585 406 995 onlyif mysql # use DIV operator for integer division query I rowsort label-9533 SELECT tab2.col2 DIV col0 col1 FROM tab2 ---- 0 0 3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9533 SELECT tab2.col2 / col0 col1 FROM tab2 ---- 0 0 3 query I rowsort SELECT + 1 FROM tab0, tab1, tab0 cor0 ---- 27 values hashing to da8a72a7967c0c73d91239275230aed9 query I rowsort SELECT ALL + col2 + col0 * + col0 AS col1 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT ALL col0 + - col2 - col0 * col0 * + col2 AS col1 FROM tab1 AS cor0 ---- -233465 -537 -614416 query I rowsort SELECT DISTINCT + col2 * + cor0.col2 * + cor0.col1 + - col2 FROM tab2 AS cor0 ---- 22572 24510 39858 query I rowsort SELECT ALL - + col1 + col1 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9539 SELECT ALL col2 - CAST( + col2 + - col2 * + 86 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 2838 7052 86 skipif mysql # not compatible query I rowsort label-9539 SELECT ALL col2 - CAST ( + col2 + - col2 * + 86 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 2838 7052 86 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( 16 AS REAL ) AS col0 FROM tab0, tab0 AS cor0 ---- 16 query I rowsort SELECT + col1 + col0 + - 11 * col1 FROM tab1 AS cor0 ---- -257 -36 -50 query I rowsort SELECT + cor0.col1 * col1 + + col1 AS col1 FROM tab2 AS cor0 ---- 306 3540 992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - cor0.col0 * 86 * col1 + cor0.col2 col1 FROM tab1 AS cor0 ---- -54983 -6654 -89344 query I rowsort SELECT DISTINCT + col0 + + col2 - - 4 * - col1 AS col2 FROM tab0 AS cor0 ---- -193 -287 -352 query I rowsort SELECT DISTINCT - col2 * ( 48 ) AS col2 FROM tab0 cor0 ---- -1584 -3936 -48 query I rowsort SELECT + col1 + 46 AS col1 FROM tab2 AS cor0 ---- 105 63 77 query I rowsort SELECT ALL cor0.col2 * - col1 + - col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT tab0.col0 * + col0 + col2 * - col0 AS col0 FROM tab0 ---- -216 1190 623 query I rowsort SELECT col1 * col2 * col2 AS col0 FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT - col1 + col1 - col1 AS col2 FROM tab1 ---- -10 -13 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-9551 SELECT DISTINCT col2 DIV tab1.col0 + tab1.col0 + col0 * - col2 * col1 col1 FROM tab1 ---- -36416 -4191 -99759 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9551 SELECT DISTINCT col2 / tab1.col0 + tab1.col0 + col0 * - col2 * col1 col1 FROM tab1 ---- -36416 -4191 -99759 query I rowsort SELECT - col2 * col0 * col2 AS col1 FROM tab1 ---- -207936 -737280 -8748 query I rowsort SELECT ALL + col2 + col0 + col1 * + col0 AS col1 FROM tab2 ---- 1460 251 4706 query III rowsort SELECT * FROM tab1 WHERE NULL IN ( col1 * col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9555 SELECT col0 DIV col0 - - col0 AS col0 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-9555 SELECT col0 / col0 - - col0 AS col0 FROM tab0 ---- 25 36 90 onlyif mysql # use DIV operator for integer division query I rowsort label-9556 SELECT col2 + + col1 DIV + col0 FROM tab1 ---- 57 62 96 skipif mysql # not compatible query I rowsort label-9556 SELECT col2 + + col1 / + col0 FROM tab1 ---- 57 62 96 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN + col1 / col0 + + col1 AND NULL ---- query I rowsort SELECT ALL cor0.col2 + 60 * + cor0.col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 54ea86c94890401f40b2770fd3763702 query I rowsort SELECT ALL + + col0 * col2 + 93 AS col1 FROM tab0 AS cor0 ---- 128 7391 885 query I rowsort SELECT DISTINCT - col2 + col1 + 86 * + col0 AS col1 FROM tab1 cor0 ---- 230 5457 6797 query I rowsort SELECT DISTINCT - col0 + col1 * col0 + + tab1.col1 * col1 FROM tab1 ---- 1129 676 751 onlyif mysql # use DIV operator for integer division query I rowsort label-9562 SELECT DISTINCT tab0.col1 * - col1 DIV col1 FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-9562 SELECT DISTINCT tab0.col1 * - col1 / col1 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT ALL col2 * + col2 * - col2 AS col2 FROM tab2 ---- -17576 -19683 -54872 query I rowsort SELECT ALL col0 + + col0 - col0 FROM tab1 ---- 3 64 80 query III rowsort SELECT * FROM tab2 WHERE ( + col2 - + col1 * col0 ) = col1 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9566 SELECT ALL col0 * - tab2.col0 DIV - col0 FROM tab2 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-9566 SELECT ALL col0 * - tab2.col0 / - col0 FROM tab2 ---- 7 78 79 query I rowsort SELECT - cor0.col0 + + col1 - - 89 AS col2 FROM tab0 AS cor0 ---- 151 151 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9568 SELECT + + col2 * - col0 + - CAST( NULL AS SIGNED ) * + cor0.col0 + + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9568 SELECT + + col2 * - col0 + - CAST ( NULL AS INTEGER ) * + cor0.col0 + + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9569 SELECT col1 + col2 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 ---- 195 205 264 skipif mysql # not compatible query I rowsort label-9569 SELECT col1 + col2 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 ---- 195 205 264 query I rowsort SELECT DISTINCT + - col1 + - col2 + - col2 FROM tab0 cor0 ---- -152 -255 -99 query I rowsort SELECT ALL + + 17 + - col1 AS col0 FROM tab0 AS cor0 ---- -69 -74 -80 query I rowsort SELECT + col1 + - col1 + - 40 FROM tab1 AS cor0 ---- -40 -40 -40 query I rowsort SELECT + col2 - col1 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT DISTINCT + col1 * col1 * + ( 35 + col1 ) FROM tab2 AS cor0 ---- 15028 327214 63426 query I rowsort SELECT - - 60 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT + col0 + + 93 FROM tab0 AS cor0 ---- 117 128 182 query I rowsort SELECT DISTINCT cor0.col2 * cor0.col1 FROM tab0, tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + cor1.col1 AS col2 FROM tab2, tab1 cor0, tab1, tab0 AS cor1 ---- 86 91 97 query I rowsort SELECT ALL ( + 16 ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT DISTINCT ( - 43 * + col1 + col0 * - col1 ) AS col2 FROM tab2 ---- -1550 -2074 -7139 query I rowsort SELECT DISTINCT col2 * - col0 * - cor0.col1 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL cor0.col0 + - ( + col1 ) * col1 FROM tab0 AS cor0 ---- -7372 -8192 -9374 query I rowsort SELECT + + col2 * - 18 FROM tab0 AS cor0 ---- -1476 -18 -594 query I rowsort SELECT DISTINCT + + cor0.col1 * 94 + col0 FROM tab0 AS cor0 ---- 8108 8643 9153 query I rowsort SELECT ALL col1 + col2 * col0 + - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 193 2061 2981 query I rowsort SELECT col2 + + 32 AS col0 FROM tab0 AS cor0 ---- 114 33 65 query I rowsort SELECT + col1 * cor0.col0 + - col0 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT 18 * col1 * 84 FROM tab2 ---- 25704 46872 89208 query I rowsort SELECT ALL col0 * + col2 * 30 FROM tab2 ---- 5670 60840 90060 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9590 SELECT DISTINCT + - tab2.col2 * - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9590 SELECT DISTINCT + - tab2.col2 * - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab0 AS cor0 ---- NULL query I rowsort SELECT col1 * - ( - 17 ) FROM tab2 ---- 1003 289 527 query I rowsort SELECT + + col1 * 10 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 249 317 668 query I rowsort SELECT - col0 * - 54 * - col1 - + col0 FROM tab2 ---- -11725 -248586 -72601 query I rowsort SELECT + tab2.col1 - + ( col1 * + col2 ) FROM tab2 ---- -1475 -629 -806 query I rowsort SELECT DISTINCT + 99 * + ( - col0 ) FROM tab2 ---- -693 -7722 -7821 query I rowsort SELECT - 31 * col2 + + ( - 71 ) + + col2 * + 17 FROM tab2 AS cor0 ---- -435 -449 -603 query I rowsort SELECT DISTINCT - col0 + 86 * col2 FROM tab0 ---- 2814 51 6963 query I rowsort SELECT - cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 query I rowsort SELECT DISTINCT 30 FROM tab1, tab2 cor0 ---- 30 onlyif mysql # use DIV operator for integer division query I rowsort label-9600 SELECT ( 30 ) + - col0 DIV 87 AS col2 FROM tab1 AS cor0 ---- 30 30 30 skipif mysql # not compatible query I rowsort label-9600 SELECT ( 30 ) + - col0 / 87 AS col2 FROM tab1 AS cor0 ---- 30 30 30 query I rowsort SELECT + 13 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 130 169 338 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9602 SELECT + col2 * - col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9602 SELECT + col2 * - col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - 43 + col0 * col2 * + col2 FROM tab0 AS cor0 ---- -8 26093 598393 query I rowsort SELECT 42 + col0 + col2 * ( + col1 + 0 ) FROM tab2 AS cor0 ---- 1654 767 886 query I rowsort SELECT - col0 - col2 * col2 FROM tab0 AS cor0 ---- -1113 -36 -6813 query I rowsort SELECT 67 * - col2 AS col2 FROM tab2 AS cor0 ---- -1742 -1809 -2546 query I rowsort SELECT 33 * col2 + ( - col0 ) - + col1 FROM tab1 ---- 1753 1807 3075 query I rowsort SELECT ALL - 7 - + col1 FROM tab1 ---- -17 -20 -33 onlyif mysql # use DIV operator for integer division query I rowsort label-9609 SELECT 9 DIV col2 - - cor0.col1 FROM tab0 AS cor0 ---- 106 86 91 skipif mysql # not compatible query I rowsort label-9609 SELECT 9 / col2 - - cor0.col1 FROM tab0 AS cor0 ---- 106 86 91 query I rowsort SELECT DISTINCT - col2 + - col1 * + 71 FROM tab2 AS cor0 ---- -1245 -2228 -4215 query I rowsort SELECT - col1 + - col2 + - col1 AS col0 FROM tab1 AS cor0 ---- -106 -122 -77 query I rowsort SELECT + cor0.col2 * col0 - col0 * - 54 FROM tab1 AS cor0 ---- 12000 324 7104 query I rowsort SELECT ALL - + col1 + col0 AS col2 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT col0 + col0 + + ( - 79 ) AS col0 FROM tab2 ---- -65 77 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + tab2.col0 * col1 * - col1 + - 36 col0 FROM tab2 ---- -22867 -271554 -6763 query I rowsort SELECT - col0 * + col1 + - ( col1 ) FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT ALL - col0 + + 39 AS col1 FROM tab2 AS cor0 ---- -39 -40 32 query I rowsort SELECT ALL + + col0 * - 62 + + col1 * + col2 AS col1 FROM tab1 AS cor0 ---- -3398 -3712 1218 query I rowsort SELECT + col0 * + col0 + - col0 FROM tab1 AS cor0 ---- 4032 6 6320 query I rowsort SELECT DISTINCT col1 + + col0 + col0 * cor0.col1 FROM tab0 AS cor0 ---- 2174 3527 8279 query I rowsort SELECT + col1 + ( col0 + + col0 ) AS col1 FROM tab1 AS cor0 ---- 138 173 32 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9622 SELECT - + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9622 SELECT - + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT cor0.col0 + ( + col0 ) FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT + cor0.col2 + + 90 * col0 + col2 * col1 AS col2 FROM tab0 AS cor0 ---- 15554 3248 5031 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 94 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to a4d239626cf0546ac1b2f57bb8407089 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9626 SELECT DISTINCT + - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9626 SELECT DISTINCT + - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9627 SELECT col1 DIV col1 + col1 + + col1 FROM tab0 cor0 ---- 173 183 195 skipif mysql # not compatible query I rowsort label-9627 SELECT col1 / col1 + col1 + + col1 FROM tab0 cor0 ---- 173 183 195 onlyif mysql # use DIV operator for integer division query I rowsort label-9628 SELECT - 87 DIV + col1 FROM tab0 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-9628 SELECT - 87 / + col1 FROM tab0 cor0 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9629 SELECT - + CAST( + col0 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9629 SELECT - + CAST ( + col0 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col1 * - col2 * col2 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT DISTINCT - 35 + 8 FROM tab2 AS cor0 ---- -27 query I rowsort SELECT ALL 81 * - ( - col1 ) - - ( + col0 + - col1 ) * - col2 * 59 AS col0 FROM tab0 AS cor0 ---- 11515 127680 17047 query I rowsort SELECT + ( - cor0.col2 ) AS col0 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT ALL col0 * - 92 + + col1 AS col1 FROM tab0 AS cor0 ---- -2122 -3123 -8097 query I rowsort SELECT - - 76 * col0 FROM tab2 AS cor0 ---- 532 5928 6004 query I rowsort SELECT DISTINCT ( - cor0.col0 ) + + col0 AS col1 FROM tab1 cor0 ---- 0 query I rowsort SELECT DISTINCT + + col2 + cor0.col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT ALL - + ( + cor0.col2 ) + col0 FROM tab0 AS cor0 ---- -9 34 7 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2 ---- 3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e query I rowsort SELECT + - col0 * - col1 - col1 * 22 FROM tab2 AS cor0 ---- -465 3304 969 query I rowsort SELECT col2 + 51 + 81 * - tab0.col0 * + col0 AS col0 FROM tab0 ---- -46572 -641468 -99173 query I rowsort SELECT DISTINCT col2 - 27 FROM tab1 ---- 27 30 69 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 col0 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT col0 + 57 * col0 AS col2 FROM tab2 AS cor0 ---- 406 4524 4582 query I rowsort SELECT + 83 + ( col1 ) FROM tab0 cor0 ---- 169 174 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 49 col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT ALL - col1 * col1 + 91 + - col2 * - col1 * - col1 AS col1 FROM tab2 ---- -11180 -26817 -93896 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 51 col2 FROM tab1, tab0 cor0 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 query I rowsort SELECT tab1.col2 + - 36 * 78 FROM tab1 ---- -2712 -2751 -2754 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9650 SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9650 SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 + col0 * - col2 col2 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT ALL + - cor0.col2 - - col0 AS col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ( - col2 ) + col0 AS col1 FROM tab1 AS cor0 ---- -16 -51 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9654 SELECT ALL CAST( NULL AS SIGNED ) + cor0.col2 / + col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9654 SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col2 / + col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - cor0.col2 * + col1 * - col0 AS col2 FROM tab2 AS cor0 ---- -119652 -51034 -5859 onlyif mysql # use DIV operator for integer division query I rowsort label-9656 SELECT + 34 DIV + col1 - col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-9656 SELECT + 34 / + col1 - col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT - col2 + col2 * + col2 * col2 FROM tab0 AS cor0 ---- 0 35904 551286 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( col1 AS REAL ) AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ALL - 92 * + col2 - col1 AS col0 FROM tab2 AS cor0 ---- -2451 -2515 -3513 query I rowsort SELECT DISTINCT col2 * col1 + col1 * col2 AS col1 FROM tab0 AS cor0 ---- 14924 194 5676 skipif mysql # not compatible query I rowsort SELECT + + CAST ( col1 AS REAL ) + col1 * col1 * + col2 FROM tab2 AS cor0 ---- 10999 25978 90565 query I rowsort SELECT tab1.col0 * + col1 + + col1 * col2 AS col2 FROM tab1 ---- 1210 1482 2288 query I rowsort SELECT - + col0 * - col1 * - ( - col0 ) AS col0 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT - cor0.col1 * col2 + 37 AS col1 FROM tab1 AS cor0 ---- -1211 -1367 -533 query I rowsort SELECT + ( - col1 ) + 43 AS col1 FROM tab2 cor0 ---- -16 12 26 query I rowsort SELECT ALL + 63 * + col0 AS col2 FROM tab2 AS cor0 ---- 441 4914 4977 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * + col2 col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL - - 18 * + col1 AS col2 FROM tab0 AS cor0 ---- 1548 1638 1746 query I rowsort SELECT - col1 * - col2 + - 30 AS col1 FROM tab2 AS cor0 ---- 1504 616 807 query I rowsort SELECT ALL - col1 + 75 FROM tab1 AS cor0 ---- 49 62 65 query I rowsort SELECT ALL + col1 * - 14 * - col2 + col0 FROM tab2 AS cor0 ---- 11725 21554 9123 query I rowsort SELECT + - col0 * 39 FROM tab2 cor0 ---- -273 -3042 -3081 onlyif mysql # use DIV operator for integer division query I rowsort label-9673 SELECT DISTINCT - col1 + 35 + col1 DIV + col2 FROM tab0 AS cor0 ---- -49 -55 35 skipif mysql # not compatible query I rowsort label-9673 SELECT DISTINCT - col1 + 35 + col1 / + col2 FROM tab0 AS cor0 ---- -49 -55 35 query I rowsort SELECT ALL - - col0 * col1 + - col1 + - col0 FROM tab2 AS cor0 ---- 1247 179 4465 query I rowsort SELECT ALL - + col0 + col1 * col0 FROM tab2 AS cor0 ---- 1264 210 4524 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9676 SELECT + col1 + - CAST( col1 AS SIGNED ) FROM tab2 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9676 SELECT + col1 + - CAST ( col1 AS INTEGER ) FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT ALL cor0.col0 * 40 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to d69bffb5d8ff6edea79e592e95ff3dd1 query I rowsort SELECT ALL + - col1 * + 89 AS col1 FROM tab1 AS cor0 ---- -1157 -2314 -890 query I rowsort SELECT DISTINCT - col1 + - 56 * 57 AS col0 FROM tab2 AS cor0 ---- -3209 -3223 -3251 onlyif mysql # use DIV operator for integer division query I rowsort label-9680 SELECT ALL cor0.col1 * 41 DIV - ( - col1 + col2 ) FROM tab2 AS cor0 ---- -33 317 73 skipif mysql # not compatible query I rowsort label-9680 SELECT ALL cor0.col1 * 41 / - ( - col1 + col2 ) FROM tab2 AS cor0 ---- -33 317 73 onlyif mysql # use DIV operator for integer division query I rowsort label-9681 SELECT DISTINCT + col2 DIV - col1 col2 FROM tab2 AS cor0 ---- -2 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9681 SELECT DISTINCT + col2 / - col1 col2 FROM tab2 AS cor0 ---- -2 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9682 SELECT + cor0.col1 DIV - 28 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9682 SELECT + cor0.col1 / - 28 AS col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9683 SELECT + col2 DIV 67 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-9683 SELECT + col2 / 67 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT + + cor0.col2 * + ( col1 ) FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT - 18 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 09afafec657a5e9f082beb6a16ec85de onlyif mysql # use DIV operator for integer division query I rowsort label-9686 SELECT DISTINCT + col0 * col1 DIV + col0 + col2 FROM tab1 AS cor0 ---- 109 67 80 skipif mysql # not compatible query I rowsort label-9686 SELECT DISTINCT + col0 * col1 / + col0 + col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT ALL 0 + col1 * - col1 AS col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT col0 * col0 * ( - col0 ) FROM tab1 AS cor0 ---- -262144 -27 -512000 onlyif mysql # use DIV operator for integer division query I rowsort label-9689 SELECT - + col1 DIV - col1 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9689 SELECT - + col1 / - col1 FROM tab0 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 54 * cor0.col1 col0 FROM tab2 AS cor0 ---- 1674 3186 918 query I rowsort SELECT ALL + cor0.col1 + cor0.col1 FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT + + 75 * col2 + col1 AS col0 FROM tab1 AS cor0 ---- 4076 4285 7213 onlyif mysql # use DIV operator for integer division query I rowsort label-9693 SELECT 11 * col0 DIV col2 + col0 * - col1 AS col1 FROM tab1 ---- -1031 -628 -78 skipif mysql # not compatible query I rowsort label-9693 SELECT 11 * col0 / col2 + col0 * - col1 AS col1 FROM tab1 ---- -1031 -628 -78 query I rowsort SELECT + 94 AS col2 FROM tab1 ---- 94 94 94 query I rowsort SELECT - ( + tab0.col2 ) * 50 + - 61 FROM tab0 ---- -111 -1711 -4161 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9696 SELECT - CAST( col0 AS SIGNED ) + - col0 + + ( - 62 ) * - col0 FROM tab0 ---- 1440 2100 5340 skipif mysql # not compatible query I rowsort label-9696 SELECT - CAST ( col0 AS INTEGER ) + - col0 + + ( - 62 ) * - col0 FROM tab0 ---- 1440 2100 5340 onlyif mysql # use DIV operator for integer division query I rowsort label-9697 SELECT - - 1 * - col0 DIV col0 + - col2 * col2 * + col0 AS col0 FROM tab1 AS cor0 ---- -207937 -737281 -8749 skipif mysql # not compatible query I rowsort label-9697 SELECT - - 1 * - col0 / col0 + - col2 * col2 * + col0 AS col0 FROM tab1 AS cor0 ---- -207937 -737281 -8749 query I rowsort SELECT DISTINCT 6 * 53 AS col2 FROM tab1 AS cor0 ---- 318 query I rowsort SELECT - - col0 * 61 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 237 3961 4976 query I rowsort SELECT 67 * ( col0 ) - - col2 AS col1 FROM tab0 AS cor0 ---- 1641 2346 6045 query I rowsort SELECT - col0 * - col0 + + col1 AS col2 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT DISTINCT - col0 + + col2 * cor0.col2 FROM tab2 AS cor0 ---- 1365 598 722 onlyif mysql # use DIV operator for integer division query I rowsort label-9703 SELECT ALL - 63 DIV + col0 AS col2 FROM tab2 AS cor0 ---- -9 0 0 skipif mysql # not compatible query I rowsort label-9703 SELECT ALL - 63 / + col0 AS col2 FROM tab2 AS cor0 ---- -9 0 0 query I rowsort SELECT DISTINCT + col1 * + 87 AS col0 FROM tab2 ---- 1479 2697 5133 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9705 SELECT ( col2 ) * col0 + - CAST( - col1 AS SIGNED ) - - tab2.col0 col1 FROM tab2 ---- 2165 227 3098 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9705 SELECT ( col2 ) * col0 + - CAST ( - col1 AS INTEGER ) - - tab2.col0 col1 FROM tab2 ---- 2165 227 3098 onlyif mysql # use DIV operator for integer division query I rowsort label-9706 SELECT + col2 DIV 50 AS col0 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9706 SELECT + col2 / 50 AS col0 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT 92 + 27 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to d2a0ef1182e6bf2495fa932b2816ad80 query I rowsort SELECT 99 FROM tab2, tab0 cor0 ---- 9 values hashing to 4b77467dd5f346109d29f6364a7bb8db query I rowsort SELECT ALL - cor0.col0 + + ( + col0 ) * col0 FROM tab0 AS cor0 ---- 1190 552 7832 query I rowsort SELECT ALL + col1 + col0 * ( col2 ) FROM tab2 AS cor0 ---- 2087 220 3019 onlyif mysql # use DIV operator for integer division query I rowsort label-9711 SELECT + tab2.col2 DIV + 91 AS col2 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9711 SELECT + tab2.col2 / + 91 AS col2 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9712 SELECT ALL + col2 + - 4 DIV col1 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-9712 SELECT ALL + col2 + - 4 / col1 FROM tab1 AS cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col2 + col1 * - cor0.col1 col2 FROM tab2 AS cor0 ---- -327 -3507 -988 query I rowsort SELECT DISTINCT 8 AS col2 FROM tab2 cor0 ---- 8 query I rowsort SELECT DISTINCT + cor0.col1 * col1 + - col2 * - 55 AS col2 FROM tab2 AS cor0 ---- 2379 2446 4911 query I rowsort SELECT - tab2.col0 + - ( col0 * - tab2.col2 ) AS col1 FROM tab2 ---- 182 1950 2923 query I rowsort SELECT tab1.col2 - - tab1.col0 * tab1.col0 AS col1 FROM tab1 ---- 4153 63 6496 onlyif mysql # use DIV operator for integer division query I rowsort label-9718 SELECT DISTINCT col0 DIV 14 FROM tab2 ---- 0 5 skipif mysql # not compatible query I rowsort label-9718 SELECT DISTINCT col0 / 14 FROM tab2 ---- 0 5 query I rowsort SELECT DISTINCT col2 * + ( col0 ) FROM tab0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-9720 SELECT DISTINCT - + col0 + col2 DIV cor0.col1 AS col1 FROM tab1 AS cor0 ---- -1 -59 -73 skipif mysql # not compatible query I rowsort label-9720 SELECT DISTINCT - + col0 + col2 / cor0.col1 AS col1 FROM tab1 AS cor0 ---- -1 -59 -73 query I rowsort SELECT ALL + ( col0 ) * - col2 + 97 AS col0 FROM tab2 AS cor0 ---- -1931 -2905 -92 onlyif mysql # use DIV operator for integer division query I rowsort label-9722 SELECT DISTINCT cor0.col2 DIV + 74 + col0 col1 FROM tab2 AS cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9722 SELECT DISTINCT cor0.col2 / + 74 + col0 col1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT + - col0 - col1 AS col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT - cor0.col1 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT ALL - col1 * tab0.col2 + + col0 + col1 FROM tab0 ---- -2728 -7282 35 query I rowsort SELECT DISTINCT col2 + - tab1.col0 * - tab1.col1 AS col0 FROM tab1 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-9727 SELECT ALL - col0 - - 55 DIV tab0.col0 FROM tab0 ---- -22 -34 -89 skipif mysql # not compatible query I rowsort label-9727 SELECT ALL - col0 - - 55 / tab0.col0 FROM tab0 ---- -22 -34 -89 query I rowsort SELECT ALL col0 * - tab0.col2 - + col0 * + col2 AS col1 FROM tab0 ---- -14596 -1584 -70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col1 col2 FROM tab0, tab2 AS cor0 ---- -17 -31 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9730 SELECT ALL - CAST( NULL AS SIGNED ) + - col1 + col1 * + 55 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9730 SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 + col1 * + 55 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9731 SELECT ALL + CAST( col2 AS SIGNED ) + cor0.col0 * cor0.col1 FROM tab0 AS cor0 ---- 2097 3396 8181 skipif mysql # not compatible query I rowsort label-9731 SELECT ALL + CAST ( col2 AS INTEGER ) + cor0.col0 * cor0.col1 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT ALL + - ( - col0 ) * col1 AS col1 FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9733 SELECT + CAST( col0 AS SIGNED ) + - col1 FROM tab0 AS cor0 ---- -2 -62 -62 skipif mysql # not compatible query I rowsort label-9733 SELECT + CAST ( col0 AS INTEGER ) + - col1 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT ALL + ( + col0 ) * + col2 + 29 FROM tab1 AS cor0 ---- 191 3677 7709 query I rowsort SELECT ALL - tab1.col1 * tab1.col2 + - col1 * col1 FROM tab1 ---- -1417 -2080 -670 query I rowsort SELECT DISTINCT - col1 * col1 + + 24 * - col0 AS col2 FROM tab1 ---- -1636 -2089 -748 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + - col1 * - ( col0 ) col1 FROM tab1 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-9738 SELECT ALL - col0 + + tab0.col2 DIV col1 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-9738 SELECT ALL - col0 + + tab0.col2 / col1 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT ALL - 87 * - col0 AS col1 FROM tab0 ---- 2088 3045 7743 query I rowsort SELECT ALL - 77 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6 query I rowsort SELECT - 0 - + col0 * ( col0 ) AS col0 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT + - cor0.col0 + - 22 FROM tab2 AS cor0 ---- -100 -101 -29 query I rowsort SELECT ALL - + col2 * 4 FROM tab2 AS cor0 ---- -104 -108 -152 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 + 15 col0 FROM tab0 cor0 ---- 16 48 97 query I rowsort SELECT DISTINCT + + col1 * - ( cor0.col0 ) + - col2 + cor0.col1 FROM tab0 AS cor0 ---- -2011 -3299 -8090 query I rowsort SELECT ALL col2 + 78 AS col0 FROM tab1 AS cor0 ---- 132 135 174 onlyif mysql # use DIV operator for integer division query I rowsort label-9747 SELECT ALL + col1 * col2 DIV ( - col2 ) + - 4 FROM tab0 AS cor0 ---- -101 -90 -95 skipif mysql # not compatible query I rowsort label-9747 SELECT ALL + col1 * col2 / ( - col2 ) + - 4 FROM tab0 AS cor0 ---- -101 -90 -95 query I rowsort SELECT - col2 + cor0.col0 * 77 FROM tab2 AS cor0 ---- 512 5980 6045 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 + col1 col2 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL - col2 + + col2 * cor0.col1 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT ALL col2 * - ( - col2 ) - - col0 * col1 AS col2 FROM tab2 AS cor0 ---- 2787 5278 946 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col2 * 44 col0 FROM tab0 AS cor0 ---- -1452 -3608 -44 query I rowsort SELECT DISTINCT + - col1 * + 5 FROM tab0 cor0 ---- -430 -455 -485 query I rowsort SELECT DISTINCT col1 + - col2 * + 50 + + col1 FROM tab1 AS cor0 ---- -2648 -2830 -4774 query I rowsort SELECT - col2 * 31 + + 22 AS col0 FROM tab0 AS cor0 ---- -1001 -2520 -9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9756 SELECT ALL - col0 - CAST( NULL AS SIGNED ) * + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9756 SELECT ALL - col0 - CAST ( NULL AS INTEGER ) * + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col2 * 62 AS col0 FROM tab1 AS cor0 ---- -3348 -3534 -5952 query I rowsort SELECT ALL - cor0.col0 * col2 + cor0.col2 AS col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 + - col2 * 26 col0 FROM tab2 AS cor0 ---- -650 -675 -950 query I rowsort SELECT + - 7 AS col2 FROM tab1 AS cor0 ---- -7 -7 -7 query I rowsort SELECT ALL col0 + - col1 AS col1 FROM tab2 cor0 ---- -24 19 62 query I rowsort SELECT + 70 * - col2 FROM tab2 AS cor0 ---- -1820 -1890 -2660 query I rowsort SELECT + col1 + - col2 * - col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT + col0 + - col2 * - col2 FROM tab2 AS cor0 ---- 1523 736 754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 - - 45 col0 FROM tab0 AS cor0 ---- 131 136 142 query I rowsort SELECT col1 + 33 * col0 FROM tab0 AS cor0 ---- 1252 3028 878 query I rowsort SELECT - col0 * + ( col1 ) FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + - col0 + - col0 + - col1 * - col1 AS col0 FROM tab2 AS cor0 ---- 131 3325 947 query I rowsort SELECT + cor0.col2 - ( + cor0.col0 ) AS col1 FROM tab0 AS cor0 ---- -34 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-9770 SELECT - - cor0.col1 DIV col0 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-9770 SELECT - - cor0.col1 / col0 FROM tab1 AS cor0 ---- 0 0 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9771 SELECT ALL - - CAST( NULL AS SIGNED ) + 65 * - col0 + col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9771 SELECT ALL - - CAST ( NULL AS INTEGER ) + 65 * - col0 + col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9772 SELECT DISTINCT - col1 DIV + col2 - - col2 AS col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-9772 SELECT DISTINCT - col1 / + col2 - - col2 AS col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT 14 + col0 * - col0 AS col1 FROM tab2 AS cor0 ---- -35 -6070 -6227 query I rowsort SELECT 96 * 37 FROM tab1 AS cor0 ---- 3552 3552 3552 query I rowsort SELECT ALL + col2 - - 28 AS col1 FROM tab0 cor0 ---- 110 29 61 query I rowsort SELECT ALL + ( - cor0.col1 ) + col2 AS col0 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT ALL - col1 * col0 + col2 * + ( col2 ) AS col0 FROM tab2 AS cor0 ---- -3926 101 512 query I rowsort SELECT - + 58 * col2 FROM tab1 AS cor0 ---- -3132 -3306 -5568 query I rowsort SELECT DISTINCT - 8 - + 66 * - col1 FROM tab0 cor0 ---- 5668 5998 6394 query I rowsort SELECT DISTINCT - 9 + - col2 AS col2 FROM tab0 AS cor0 ---- -10 -42 -91 query I rowsort SELECT ALL tab1.col0 * col0 * + 55 + + col2 AS col1 FROM tab1 ---- 225337 352096 549 query I rowsort SELECT DISTINCT - col0 + - 18 FROM tab2 ---- -25 -96 -97 query I rowsort SELECT + 57 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query I rowsort SELECT + col0 * 87 + - col0 AS col0 FROM tab0 ---- 2064 3010 7654 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9785 SELECT - CAST( + col0 AS SIGNED ) * col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-9785 SELECT - CAST ( + col0 AS INTEGER ) * col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT col1 * - ( - col0 ) FROM tab1 ---- 1040 640 78 query I rowsort SELECT col2 * ( + 94 ) FROM tab0 ---- 3102 7708 94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 89 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 query I rowsort SELECT - ( - ( + col1 ) ) FROM tab1 cor0 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9790 SELECT ALL + CAST( 90 AS SIGNED ) * - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -2970 -7380 -90 skipif mysql # not compatible query I rowsort label-9790 SELECT ALL + CAST ( 90 AS INTEGER ) * - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -2970 -7380 -90 query I rowsort SELECT cor0.col1 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 + col0 col2 FROM tab1 AS cor0 ---- 128 160 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 12 + + cor0.col1 + col2 col0 FROM tab2 AS cor0 ---- 67 70 97 query I rowsort SELECT + col0 * + col2 + col0 + - col1 AS col2 FROM tab0 cor0 ---- -27 7296 730 query I rowsort SELECT 86 + - col1 AS col1 FROM tab1 ---- 60 73 76 query I rowsort SELECT 42 + tab0.col1 AS col2 FROM tab0 ---- 128 133 139 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9797 SELECT ALL CAST( + col2 + - col0 AS SIGNED ) FROM tab0 ---- -34 -7 9 skipif mysql # not compatible query I rowsort label-9797 SELECT ALL CAST ( + col2 + - col0 AS INTEGER ) FROM tab0 ---- -34 -7 9 query I rowsort SELECT col0 + col2 * + cor0.col2 AS col0 FROM tab1 cor0 ---- 2919 3313 9296 query I rowsort SELECT - 66 + col0 FROM tab0 AS cor0 ---- -31 -42 23 query I rowsort SELECT - cor0.col2 * 78 FROM tab2 AS cor0 ---- -2028 -2106 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-9801 SELECT + - col0 * - CAST( 51 AS SIGNED ) + col2 * ( ( col2 ) ) * + ( col0 ) + - col1 DIV + ( col1 ) FROM tab1 AS cor0 ---- 211199 741359 8900 skipif mysql # not compatible query I rowsort label-9801 SELECT + - col0 * - CAST ( 51 AS INTEGER ) + col2 * ( ( col2 ) ) * + ( col0 ) + - col1 / + ( col1 ) FROM tab1 AS cor0 ---- 211199 741359 8900 query I rowsort SELECT + + col2 - - col1 AS col2 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT col1 + + ( 56 ) FROM tab0 AS cor0 ---- 142 147 153 onlyif mysql # use DIV operator for integer division query I rowsort label-9804 SELECT + 99 DIV col1 + col2 * col2 + + col1 FROM tab2 AS cor0 ---- 1466 736 763 skipif mysql # not compatible query I rowsort label-9804 SELECT + 99 / col1 + col2 * col2 + + col1 FROM tab2 AS cor0 ---- 1466 736 763 query I rowsort SELECT 54 + col2 FROM tab0 AS cor0 ---- 136 55 87 query I rowsort SELECT DISTINCT - cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- -24 -35 -89 query I rowsort SELECT DISTINCT - + cor0.col1 - cor0.col1 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT - col0 * col2 + col1 + col2 FROM tab1 ---- -3581 -7571 -82 query I rowsort SELECT ALL - cor0.col2 * + cor0.col1 + col1 FROM tab1 cor0 ---- -1235 -1378 -560 query I rowsort SELECT col1 * - cor0.col0 - col1 AS col1 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT + + col2 + col1 * col1 FROM tab2 cor0 ---- 327 3507 988 query I rowsort SELECT - col2 * col2 * + col2 - col2 FROM tab2 AS cor0 ---- -17602 -19710 -54910 query I rowsort SELECT - col1 - - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - - 36 FROM tab2 cor0 ---- 36 36 36 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 68 col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 599bee15ac4cc39b859854e07dfe7990 query I rowsort SELECT - 72 + tab2.col0 AS col0 FROM tab2 ---- -65 6 7 query I rowsort SELECT + ( + ( col1 ) ) * col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT + 19 * - col1 FROM tab2 AS cor0 ---- -1121 -323 -589 onlyif mysql # use DIV operator for integer division query I rowsort label-9819 SELECT DISTINCT - col0 + col0 * col1 DIV col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-9819 SELECT DISTINCT - col0 + col0 * col1 / col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + 51 AS col1 FROM tab1 cor0 ---- 51 query I rowsort SELECT ALL - col1 * cor0.col1 + col1 AS col1 FROM tab2 AS cor0 ---- -272 -3422 -930 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( cor0.col2 ) * - col2 col2 FROM tab1 AS cor0 ---- 2916 3249 9216 onlyif mysql # use DIV operator for integer division query I rowsort label-9823 SELECT - col2 + col2 DIV - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -26 -30 -38 skipif mysql # not compatible query I rowsort label-9823 SELECT - col2 + col2 / - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -26 -30 -38 query I rowsort SELECT cor0.col2 * cor0.col2 + + col0 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT ALL ( col2 + col0 ) * + col1 FROM tab2 ---- 1054 1989 6136 query I rowsort SELECT ALL + col0 * + 39 * col1 AS col0 FROM tab2 ---- 179478 52377 8463 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + col0 * - col0 ---- query I rowsort SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE col2 * - col1 NOT IN ( + col2 ) ---- -7 -78 -79 query I rowsort SELECT DISTINCT cor0.col2 + col0 * cor0.col2 FROM tab0 AS cor0 ---- 36 7380 825 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col2 ) ---- query I rowsort SELECT - col2 + col2 + + col1 * + col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT + col0 FROM tab1 WHERE NULL <> NULL ---- query I rowsort SELECT + col0 + + tab2.col1 * col1 FROM tab2 ---- 3559 368 968 query I rowsort SELECT DISTINCT - col1 - - col0 AS col2 FROM tab2 ---- -24 19 62 query I rowsort SELECT col1 AS col1 FROM tab1 WHERE NOT + col2 = ( col2 ) ---- query I rowsort SELECT - tab2.col2 AS col1 FROM tab2 WHERE NOT NULL <= NULL ---- query I rowsort SELECT col1 FROM tab1 WHERE NULL IN ( col2 ) ---- query I rowsort SELECT - col0 + - col0 + - col0 * tab0.col2 AS col2 FROM tab0 ---- -105 -7476 -840 onlyif mysql # use DIV operator for integer division query I rowsort label-9839 SELECT + tab2.col0 - col2 DIV - col0 AS col0 FROM tab2 ---- 10 78 79 skipif mysql # not compatible query I rowsort label-9839 SELECT + tab2.col0 - col2 / - col0 AS col0 FROM tab2 ---- 10 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-9840 SELECT ALL - + col2 DIV col2 + col0 AS col2 FROM tab0 AS cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-9840 SELECT ALL - + col2 / col2 + col0 AS col2 FROM tab0 AS cor0 ---- 23 34 88 query I rowsort SELECT + col1 + tab2.col1 FROM tab2 WHERE ( col2 ) <= NULL AND col1 IN ( col1 + col2 + - tab2.col2 * - col0 ) ---- query I rowsort SELECT DISTINCT + col1 + + col2 AS col1 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT ALL col2 - col2 * col2 AS col2 FROM tab2 ---- -1406 -650 -702 query I rowsort SELECT ALL - col0 * - col0 + col1 FROM tab0 ---- 1322 662 8012 query I rowsort SELECT + col1 - - tab1.col0 AS col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT col1 + col2 * col2 FROM tab1 ---- 2942 3259 9229 query I rowsort SELECT ALL + col2 + col1 * col2 AS col2 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT - tab1.col1 - col1 * + col0 * col2 AS col2 FROM tab1 ---- -36490 -4238 -99853 query I rowsort SELECT DISTINCT col1 * + col1 + + col1 * tab1.col0 FROM tab1 ---- 1209 740 754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 - col2 col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL - cor0.col0 - + col0 AS col0 FROM tab0 AS cor0 ---- -178 -48 -70 query I rowsort SELECT DISTINCT col0 + col0 + col0 * col1 AS col2 FROM tab0 cor0 ---- 2112 3465 8277 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 * + col0 + - col1 * + col2 col0 FROM tab1 AS cor0 ---- -1566 -4218 -8928 query I rowsort SELECT ALL + col1 * - col2 - - col1 AS col2 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT ALL col1 * - cor0.col0 + col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 onlyif mysql # use DIV operator for integer division query I rowsort label-9856 SELECT - - col2 * col0 + col0 DIV + col2 AS col0 FROM tab0 AS cor0 ---- 70 7299 792 skipif mysql # not compatible query I rowsort label-9856 SELECT - - col2 * col0 + col0 / + col2 AS col0 FROM tab0 AS cor0 ---- 70 7299 792 query I rowsort SELECT col1 + + cor0.col2 * + cor0.col0 AS col0 FROM tab0 cor0 ---- 132 7389 878 query I rowsort SELECT ALL + col0 * 20 AS col0 FROM tab2 ---- 140 1560 1580 query I rowsort SELECT col2 * ( ( + col0 ) ) + - ( + tab2.col2 ) * col1 FROM tab2 ---- -648 2356 494 query I rowsort SELECT col0 * ( col2 * tab2.col1 ) + + 44 AS col2 FROM tab2 ---- 119696 51078 5903 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9861 SELECT - col0 * CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9861 SELECT - col0 * CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 41 AS col0 FROM tab1, tab1 AS cor0 ---- 41 query I rowsort SELECT DISTINCT - col2 * 90 AS col1 FROM tab2 cor0 ---- -2340 -2430 -3420 query I rowsort SELECT - - col0 + 74 * + ( col0 ) AS col1 FROM tab0 AS cor0 ---- 1800 2625 6675 query I rowsort SELECT 44 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- 2376 2508 4224 query I rowsort SELECT DISTINCT + + ( - ( col1 ) ) * - col0 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-9867 SELECT + col1 + col0 DIV - col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-9867 SELECT + col1 + col0 / - col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - + 65 * + col2 AS col0 FROM tab2 AS cor0 ---- -1690 -1755 -2470 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 * - col1 col2 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT col0 * + 84 * - col2 AS col2 FROM tab1 cor0 ---- -13608 -306432 -645120 query I rowsort SELECT DISTINCT + col0 * tab1.col0 * - 54 AS col0 FROM tab1 ---- -221184 -345600 -486 query I rowsort SELECT col1 + ( col0 ) AS col1 FROM tab2 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-9873 SELECT + col1 + + 12 DIV tab2.col0 AS col1 FROM tab2 ---- 17 32 59 skipif mysql # not compatible query I rowsort label-9873 SELECT + col1 + + 12 / tab2.col0 AS col1 FROM tab2 ---- 17 32 59 query I rowsort SELECT + - ( + col2 ) * - col0 FROM tab2 AS cor0 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + + col2 * col1 col0 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT - col1 * col0 + + col0 - + ( - col0 ) * + cor0.col2 FROM tab1 AS cor0 ---- 3072 6720 87 query I rowsort SELECT DISTINCT - - 17 * + col1 AS col0 FROM tab0 AS cor0 ---- 1462 1547 1649 query I rowsort SELECT 52 * - col0 + + ( col1 ) + - col0 FROM tab2 AS cor0 ---- -340 -4075 -4170 query I rowsort SELECT + 80 * + col0 + + col0 AS col2 FROM tab1 cor0 ---- 243 5184 6480 query I rowsort SELECT ALL + 32 * - col2 FROM tab2 AS cor0 ---- -1216 -832 -864 query I rowsort SELECT DISTINCT 37 + col1 AS col2 FROM tab1 AS cor0 ---- 47 50 63 onlyif mysql # use DIV operator for integer division query I rowsort label-9882 SELECT ALL - 35 DIV col0 FROM tab1 AS cor0 ---- -11 0 0 skipif mysql # not compatible query I rowsort label-9882 SELECT ALL - 35 / col0 FROM tab1 AS cor0 ---- -11 0 0 query I rowsort SELECT DISTINCT - + col2 * col1 * col1 + col2 FROM tab2 cor0 ---- -10944 -25920 -90480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9884 SELECT - + col0 + cor0.col1 * - CAST( NULL AS SIGNED ) * 27 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9884 SELECT - + col0 + cor0.col1 * - CAST ( NULL AS INTEGER ) * 27 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col0 * + col0 - + col2 * col1 AS col2 FROM tab1 ---- -1395 3526 5152 query I rowsort SELECT DISTINCT col2 - + col0 AS col2 FROM tab0 ---- -34 -7 9 query I rowsort SELECT + ( - ( - col1 ) ) + col1 - + col1 * col2 AS col1 FROM tab1 ---- -1222 -1352 -550 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 93 col2 FROM tab0 AS cor0 ---- -93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9889 SELECT cor0.col2 + col2 * CAST( - col1 + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -1188 3135 6528 skipif mysql # not compatible query I rowsort label-9889 SELECT cor0.col2 + col2 * CAST ( - col1 + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -1188 3135 6528 query I rowsort SELECT ALL col1 + - col0 + + ( - 4 ) FROM tab1 cor0 ---- -58 -71 19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * - col1 col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + 89 * + col1 FROM tab1 cor0 ---- 1157 2314 890 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - ( 34 ) col0 FROM tab2 AS cor0 ---- -27 44 45 query I rowsort SELECT + cor0.col0 * col1 * col0 - col2 AS col2 FROM tab1 AS cor0 ---- 180 40903 83104 query I rowsort SELECT col1 + - ( 28 ) FROM tab1 AS cor0 ---- -15 -18 -2 query I rowsort SELECT - - cor0.col1 * col0 + - ( col1 ) FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT 96 * col2 FROM tab0 ---- 3168 7872 96 query I rowsort SELECT + col2 * cor0.col0 + - 42 FROM tab2 AS cor0 ---- 147 1986 2960 query I rowsort SELECT + + col1 * - ( 97 ) + cor0.col0 FROM tab2 cor0 ---- -1570 -3000 -5645 query I rowsort SELECT 6 * + col2 AS col1 FROM tab2 ---- 156 162 228 query I rowsort SELECT - 14 AS col1 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc query I rowsort SELECT ALL - 47 * cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to a565c3c2e53b1ae3ae641b4bae242e0c query I rowsort SELECT DISTINCT + cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1 ---- 1 33 82 query I rowsort SELECT + tab1.col0 * 97 FROM tab1 ---- 291 6208 7760 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9905 SELECT DISTINCT CAST( col1 AS SIGNED ) col2 FROM tab2 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9905 SELECT DISTINCT CAST ( col1 AS INTEGER ) col2 FROM tab2 ---- 17 31 59 query I rowsort SELECT + 97 * col0 FROM tab0 AS cor0 ---- 2328 3395 8633 query I rowsort SELECT col2 * - col1 + + col1 AS col2 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT - col2 * - 98 FROM tab1 AS cor0 ---- 5292 5586 9408 query I rowsort SELECT - col1 * + col0 + 30 * - col0 FROM tab2 AS cor0 ---- -3713 -427 -6942 onlyif mysql # use DIV operator for integer division query I rowsort label-9910 SELECT 33 * col0 DIV tab1.col1 FROM tab1 ---- 203 211 3 skipif mysql # not compatible query I rowsort label-9910 SELECT 33 * col0 / tab1.col1 FROM tab1 ---- 203 211 3 query I rowsort SELECT - + 66 * cor0.col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to e8ed9bc195fc77a7c9e3c4fd7c2b570e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9912 SELECT col0 * col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9912 SELECT col0 * col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 * - cor0.col1 - - col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 onlyif mysql # use DIV operator for integer division query I rowsort label-9914 SELECT DISTINCT + col1 + - col0 - 62 DIV col0 FROM tab2 AS cor0 ---- -19 -62 16 skipif mysql # not compatible query I rowsort label-9914 SELECT DISTINCT + col1 + - col0 - 62 / col0 FROM tab2 AS cor0 ---- -19 -62 16 onlyif mysql # use DIV operator for integer division query I rowsort label-9915 SELECT DISTINCT col2 + col2 DIV 18 FROM tab2 AS cor0 ---- 27 28 40 skipif mysql # not compatible query I rowsort label-9915 SELECT DISTINCT col2 + col2 / 18 FROM tab2 AS cor0 ---- 27 28 40 onlyif mysql # use DIV operator for integer division query I rowsort label-9916 SELECT ALL - col2 + col2 * col1 DIV col2 AS col0 FROM tab0 AS cor0 ---- 53 9 96 skipif mysql # not compatible query I rowsort label-9916 SELECT ALL - col2 + col2 * col1 / col2 AS col0 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL col1 + col0 * ( - 23 ) FROM tab1 AS cor0 ---- -1462 -1827 -43 onlyif mysql # use DIV operator for integer division query I rowsort label-9918 SELECT DISTINCT cor0.col0 DIV + col0 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-9918 SELECT DISTINCT cor0.col0 / + col0 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT ALL - - 5 - col2 FROM tab2 cor0 ---- -21 -22 -33 query I rowsort SELECT ALL 32 * col1 + 23 * col1 AS col1 FROM tab1 AS cor0 ---- 1430 550 715 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9921 SELECT ALL + col1 * - col0 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9921 SELECT ALL + col1 * - col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 + - col2 * + col2 AS col2 FROM tab1 AS cor0 ---- -2890 -3239 -9203 query I rowsort SELECT ALL + ( col2 ) * col0 + col2 AS col1 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT ALL cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + col1 * col2 col0 FROM tab2 cor0 ---- 1508 608 810 query I rowsort SELECT + + ( - ( + col0 ) ) AS col0 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT tab0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 onlyif mysql # use DIV operator for integer division query I rowsort label-9928 SELECT - col0 DIV 66 + 22 + tab0.col2 col2 FROM tab0 ---- 103 23 55 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9928 SELECT - col0 / 66 + 22 + tab0.col2 col2 FROM tab0 ---- 103 23 55 query I rowsort SELECT - col2 * ( + ( col2 ) ) AS col1 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT + + col1 + ( + col2 ) + - col1 * 67 * col2 FROM tab1 AS cor0 ---- -38123 -83507 -93988 query I rowsort SELECT DISTINCT col2 + ( 15 ) * - col2 AS col2 FROM tab2 ---- -364 -378 -532 onlyif mysql # use DIV operator for integer division query I rowsort label-9932 SELECT 91 + - tab0.col2 DIV col0 AS col0 FROM tab0 ---- 90 91 91 skipif mysql # not compatible query I rowsort label-9932 SELECT 91 + - tab0.col2 / col0 AS col0 FROM tab0 ---- 90 91 91 query I rowsort SELECT - + col0 + - 86 FROM tab0 AS cor0 ---- -110 -121 -175 query I rowsort SELECT + 40 - - tab1.col0 * col0 AS col1 FROM tab1 ---- 4136 49 6440 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9935 SELECT DISTINCT - CAST( - col2 AS SIGNED ) + + col1 AS col0 FROM tab2 ---- 55 58 85 skipif mysql # not compatible query I rowsort label-9935 SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + + col1 AS col0 FROM tab2 ---- 55 58 85 query I rowsort SELECT 35 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 query I rowsort SELECT DISTINCT cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 86 91 97 query I rowsort SELECT ALL + - 12 AS col0 FROM tab2 AS cor0 ---- -12 -12 -12 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( 27 ) + cor0.col0 * + 70 col1 FROM tab2 AS cor0 ---- 463 5433 5503 query I rowsort SELECT DISTINCT - + 4 + - cor0.col2 * + cor0.col2 FROM tab2 cor0 ---- -1448 -680 -733 query I rowsort SELECT cor1.col1 + - 56 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to fce3f8b3ebded43316ee6e1eaa12111b query I rowsort SELECT ALL - + 81 AS col2 FROM tab2 AS cor0 ---- -81 -81 -81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9943 SELECT - - CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-9943 SELECT - - CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL ( - col1 ) * col1 AS col2 FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT ALL 53 + + col2 + col0 AS col1 FROM tab0 ---- 110 224 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9946 SELECT ALL + - CAST( NULL AS SIGNED ) * 4 + + col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9946 SELECT ALL + - CAST ( NULL AS INTEGER ) * 4 + + col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 2 * + col1 + cor0.col0 + 42 FROM tab2 AS cor0 ---- 111 155 238 query I rowsort SELECT ALL + 5 AS col0 FROM tab0 AS cor0 ---- 5 5 5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9949 SELECT + - CAST( NULL AS SIGNED ) * 37 + + col0 + + col1 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9949 SELECT + - CAST ( NULL AS INTEGER ) * 37 + + col0 + + col1 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - ( - 66 ) * + col1 AS col2 FROM tab0 AS cor0 ---- 5676 6006 6402 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + cor0.col2 * col0 col2 FROM tab0 AS cor0 ---- 132 7389 878 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9952 SELECT + + ( - col0 ) + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9952 SELECT + + ( - col0 ) + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query IIIIII rowsort SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN tab0.col1 AND NULL ---- query I rowsort SELECT DISTINCT - col2 + 78 FROM tab0 AS cor0 ---- -4 45 77 query I rowsort SELECT ALL - col1 * + col1 + col1 AS col2 FROM tab0 ---- -7310 -8190 -9312 query I rowsort SELECT ALL + col1 * - 25 * - col1 + + col2 * + 41 FROM tab2 AS cor0 ---- 25132 8783 88091 query I rowsort SELECT ALL - col1 * 45 AS col1 FROM tab2 AS cor0 ---- -1395 -2655 -765 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9958 SELECT DISTINCT col2 * CAST( col0 AS SIGNED ) * col1 + col2 col1 FROM tab0 AS cor0 ---- 3396 664200 68145 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9958 SELECT DISTINCT col2 * CAST ( col0 AS INTEGER ) * col1 + col2 col1 FROM tab0 AS cor0 ---- 3396 664200 68145 query I rowsort SELECT ALL - col0 * - col0 AS col2 FROM tab0 cor0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * - 4 col2 FROM tab2 AS cor0 ---- -104 -108 -152 query I rowsort SELECT + - col0 * ( col1 * col0 ) FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT DISTINCT + - col1 * col1 + - col0 FROM tab2 AS cor0 ---- -3559 -368 -968 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT - - CAST ( col1 AS REAL ) col0 FROM tab2 AS cor0 ---- 17 31 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9964 SELECT + + CAST( col0 AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0 ---- 171 36 57 skipif mysql # not compatible query I rowsort label-9964 SELECT + + CAST ( col0 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9965 SELECT ALL 47 + 5 * col0 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 ---- 253 319 583 skipif mysql # not compatible query I rowsort label-9965 SELECT ALL 47 + 5 * col0 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 ---- 253 319 583 query I rowsort SELECT ( + col2 ) + cor0.col0 + - ( - cor0.col2 ) FROM tab2 AS cor0 ---- 130 155 61 query I rowsort SELECT DISTINCT + 52 + - 92 * col2 FROM tab0 AS cor0 ---- -2984 -40 -7492 query I rowsort SELECT - col2 * + cor0.col2 AS col0 FROM tab0 cor0 ---- -1 -1089 -6724 query I rowsort SELECT + col1 * col0 - + tab2.col2 * - col1 * 24 FROM tab2 ---- 16847 20305 41418 query I rowsort SELECT ALL col1 * tab2.col2 + + tab2.col2 FROM tab2 ---- 1560 684 864 query I rowsort SELECT ALL col2 + 22 + - col2 FROM tab2 ---- 22 22 22 query I rowsort SELECT col1 + tab1.col0 * 48 AS col1 FROM tab1 ---- 170 3082 3853 query I rowsort SELECT ALL - col0 - 15 AS col0 FROM tab2 ---- -22 -93 -94 query I rowsort SELECT ALL 65 AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to 8bef2ea1f05f3514633f851312bdd805 query I rowsort SELECT DISTINCT + tab0.col2 * col0 + 20 * col1 FROM tab0 ---- 1975 2512 9118 query I rowsort SELECT - 10 * col1 * - col0 FROM tab1 ---- 10400 6400 780 query I rowsort SELECT - 42 * - col2 AS col2 FROM tab1 ---- 2268 2394 4032 onlyif mysql # use DIV operator for integer division query I rowsort label-9978 SELECT DISTINCT + col0 DIV col0 + col2 AS col0 FROM tab0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-9978 SELECT DISTINCT + col0 / col0 + col2 AS col0 FROM tab0 ---- 2 34 83 query I rowsort SELECT ALL + + col2 * 3 AS col1 FROM tab2 AS cor0 ---- 114 78 81 query I rowsort SELECT + + col2 + col0 * col2 * + col2 FROM tab2 AS cor0 ---- 114114 5130 52754 query I rowsort SELECT ALL + ( col2 ) + col0 + - col1 * + col0 FROM tab1 ---- -21 -519 -864 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9982 SELECT ALL CAST( + 81 AS SIGNED ) * - col0 * ( col2 ) + col2 AS col0 FROM tab2 ---- -15282 -164242 -243124 skipif mysql # not compatible query I rowsort label-9982 SELECT ALL CAST ( + 81 AS INTEGER ) * - col0 * ( col2 ) + col2 AS col0 FROM tab2 ---- -15282 -164242 -243124 query I rowsort SELECT DISTINCT + 26 * + 86 FROM tab0 AS cor0 ---- 2236 query I rowsort SELECT ALL - col1 * + ( col0 ) FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT + cor0.col0 + 55 FROM tab0 AS cor0 ---- 144 79 90 query I rowsort SELECT + cor1.col2 * cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to 2c9432f1899a470adc9cb30d4cd346f8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 2 col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261 query I rowsort SELECT ALL - 11 AS col1 FROM tab0 ---- -11 -11 -11 query I rowsort SELECT cor0.col1 + + 88 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to f5738c57e72d08870485dc42351a8ce7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9990 SELECT + + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-9990 SELECT + + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT - col2 + + col0 * cor0.col1 * + ( - cor0.col2 * - col1 + col2 * - col0 ) FROM tab1 cor0 ---- -1969977 -6689376 96822 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * + col1 + 72 * - col1 col1 FROM tab2 cor0 ---- -2449 -2567 -8850 query I rowsort SELECT DISTINCT - col2 + col1 * ( col0 * col0 ) + - col0 AS col0 FROM tab1 AS cor0 ---- 177 40839 83024 query I rowsort SELECT - col0 * col1 + + col2 AS col1 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT - + col2 - col0 FROM tab0 cor0 ---- -171 -36 -57 query I rowsort SELECT DISTINCT - col1 * + cor0.col1 * col0 AS col2 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT + - 20 + col0 * + col1 AS col1 FROM tab1 AS cor0 ---- 1020 58 620 onlyif mysql # use DIV operator for integer division query I rowsort label-9998 SELECT - 50 DIV - col0 + 36 * - 73 FROM tab1 AS cor0 ---- -2612 -2628 -2628 skipif mysql # not compatible query I rowsort label-9998 SELECT - 50 / - col0 + 36 * - 73 FROM tab1 AS cor0 ---- -2612 -2628 -2628