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) onlyif mysql # use DIV operator for integer division query I rowsort label-0 SELECT ALL 64 DIV 94 AS col2 FROM tab2, tab0 cor0, tab1 cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 skipif mysql # not compatible query I rowsort label-0 SELECT ALL 64 / 94 AS col2 FROM tab2, tab0 cor0, tab1 cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT ( + tab2.col2 * 19 ) + ( col1 + - col2 ) * + col1 AS col1 FROM tab2 ---- 2441 365 637 onlyif mysql # use DIV operator for integer division query I rowsort label-2 SELECT - tab1.col2 DIV - 85 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 14fcfa6c11198893073049d94262832c skipif mysql # not compatible query I rowsort label-2 SELECT - tab1.col2 / - 85 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 14fcfa6c11198893073049d94262832c query I rowsort SELECT DISTINCT - + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT cor0.col2 * cor0.col0 + col1 AS col1 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT + + ( - 35 ) FROM tab2 cor0 ---- -35 -35 -35 query I rowsort SELECT col2 * + cor0.col1 + - col2 AS col1 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT 75 + col2 FROM tab1 AS cor0 ---- 129 132 171 query I rowsort SELECT DISTINCT + 15 * - col2 - - col0 AS col0 FROM tab2 cor0 ---- -312 -398 -491 onlyif mysql # use DIV operator for integer division query I rowsort label-9 SELECT - + col0 + - col2 * col0 DIV ( - cor0.col0 ) AS col1 FROM tab2 AS cor0 ---- -41 -52 20 skipif mysql # not compatible query I rowsort label-9 SELECT - + col0 + - col2 * col0 / ( - cor0.col0 ) AS col1 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT ALL - 85 + col2 * + col1 FROM tab1 AS cor0 ---- 1163 1319 485 query I rowsort SELECT DISTINCT + 37 + + col2 * - col2 + ( + 15 ) FROM tab0 AS cor0 ---- -1037 -6672 51 onlyif mysql # use DIV operator for integer division query I rowsort label-12 SELECT DISTINCT col2 DIV + col0 - - col2 * col1 * cor0.col1 FROM tab2 AS cor0 ---- 10982 25950 90506 skipif mysql # not compatible query I rowsort label-12 SELECT DISTINCT col2 / + col0 - - col2 * col1 * cor0.col1 FROM tab2 AS cor0 ---- 10982 25950 90506 query I rowsort SELECT + 24 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT + col2 * - 81 + col0 * - 41 FROM tab1 AS cor0 ---- -11056 -4497 -7241 query I rowsort SELECT ALL col2 * - col1 * col2 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT ( 6 ) * tab1.col0 FROM tab1 ---- 18 384 480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-17 SELECT ALL - + CAST( - col1 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-17 SELECT ALL - + CAST ( - col1 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL col2 + - col0 * col0 AS col2 FROM tab2 AS cor0 ---- -22 -6058 -6203 query I rowsort SELECT ALL ( 45 ) * + cor0.col0 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 90ed87c3a78469bb23cf152a357665d6 query I rowsort SELECT 8 * + 53 AS col2 FROM tab1 AS cor0 ---- 424 424 424 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-21 SELECT ALL - col0 * + CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab1 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-21 SELECT ALL - col0 * + CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab1 ---- 1040 640 78 query I rowsort SELECT col0 * col0 - - col0 FROM tab0 ---- 1260 600 8010 query I rowsort SELECT - 58 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to a38440572743ed8a3d8af7b49a5388c9 query I rowsort SELECT DISTINCT + + 64 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 64 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-25 SELECT + CAST( col2 AS SIGNED ) * - col0 col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-25 SELECT + CAST ( col2 AS INTEGER ) * - col0 col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ( col2 ) - col1 AS col2 FROM tab0 ---- -53 -9 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-27 SELECT DISTINCT - + cor0.col0 DIV + 82 AS col2 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-27 SELECT DISTINCT - + cor0.col0 / + 82 AS col2 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT 91 * col1 AS col1 FROM tab1 AS cor0 ---- 1183 2366 910 query I rowsort SELECT - - 3 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba query I rowsort SELECT ALL 41 FROM tab0, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 query I rowsort SELECT + col0 + - cor0.col0 * + col2 + + 25 AS col2 FROM tab2 cor0 ---- -157 -1925 -2898 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-32 SELECT - + col2 * col1 + - CAST( col0 * - col2 + + cor0.col2 AS SIGNED ) FROM tab0 AS cor0 ---- -2079 -246 -63 skipif mysql # not compatible query I rowsort label-32 SELECT - + col2 * col1 + - CAST ( col0 * - col2 + + cor0.col2 AS INTEGER ) FROM tab0 AS cor0 ---- -2079 -246 -63 query I rowsort SELECT - col1 * col2 + col2 + 76 * + col0 FROM tab2 AS cor0 ---- -278 4420 5396 query I rowsort SELECT - + ( + col2 ) * - ( col2 ) AS col2 FROM tab2 cor0 ---- 1444 676 729 query I rowsort SELECT - - cor0.col2 * col0 + col2 AS col2 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT DISTINCT - + 44 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- -44 query I rowsort SELECT + col0 * - col2 + + col2 * col0 * col0 AS col0 FROM tab1 AS cor0 ---- 229824 324 606720 query I rowsort SELECT + cor0.col1 * + 58 + col2 AS col2 FROM tab1 AS cor0 ---- 1562 637 850 onlyif mysql # use DIV operator for integer division query I rowsort label-39 SELECT ALL col2 + ( + col0 ) DIV - cor0.col2 col1 FROM tab1 AS cor0 ---- 54 56 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-39 SELECT ALL col2 + ( + col0 ) / - cor0.col2 col1 FROM tab1 AS cor0 ---- 54 56 96 query I rowsort SELECT - col2 * ( + col0 + col2 ) * col2 FROM tab2 cor0 ---- -168948 -24786 -70304 query I rowsort SELECT - col0 * - ( col2 ) + col2 * + col2 AS col0 FROM tab0 AS cor0 ---- 14022 1881 36 query I rowsort SELECT ALL - cor0.col1 * cor0.col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL - col0 + + 55 * col1 FROM tab2 AS cor0 ---- 1698 3167 856 query I rowsort SELECT ALL - + col1 + 95 * + ( cor0.col1 ) FROM tab0 AS cor0 ---- 8084 8554 9118 query I rowsort SELECT ALL + cor0.col2 * + 98 AS col1 FROM tab1 AS cor0 ---- 5292 5586 9408 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * ( - 70 ) + col2 col1 FROM tab2 AS cor0 ---- -1152 -2143 -4104 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-47 SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-47 SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL + col1 * col2 * 26 + col1 * col2 FROM tab0 AS cor0 ---- 201474 2619 76626 query I rowsort SELECT DISTINCT - + 93 + - col1 FROM tab2 AS cor0 ---- -110 -124 -152 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT ALL - - CAST ( - 42 AS REAL ) * cor0.col0 col1 FROM tab2 AS cor0 ---- -294 -3276 -3318 query I rowsort SELECT - + 57 AS col2 FROM tab0 AS cor0 ---- -57 -57 -57 query I rowsort SELECT DISTINCT + - col2 + col1 + - col2 AS col1 FROM tab0 AS cor0 ---- -73 20 95 query I rowsort SELECT - + col2 * col2 * col0 - col2 FROM tab2 AS cor0 ---- -114114 -5130 -52754 query I rowsort SELECT DISTINCT col1 + - col0 * col2 AS col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 onlyif mysql # use DIV operator for integer division query I rowsort label-55 SELECT + col0 DIV col0 + - col1 AS col2 FROM tab1 AS cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-55 SELECT + col0 / col0 + - col1 AS col2 FROM tab1 AS cor0 ---- -12 -25 -9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-56 SELECT col2 + col1 * CAST( 93 + + cor0.col1 AS SIGNED ) FROM tab2 AS cor0 ---- 1908 3871 8994 skipif mysql # not compatible query I rowsort label-56 SELECT col2 + col1 * CAST ( 93 + + cor0.col1 AS INTEGER ) FROM tab2 AS cor0 ---- 1908 3871 8994 query I rowsort SELECT col0 + + col1 * - 83 FROM tab2 AS cor0 ---- -1332 -2566 -4819 query I rowsort SELECT + + col0 * - col0 + - col0 FROM tab1 cor0 ---- -12 -4160 -6480 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 + - col0 col0 FROM tab2 cor0 ---- -104 -117 -34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-60 SELECT + col1 * col1 + CAST( NULL AS SIGNED ) + + ( + col0 ) * cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-60 SELECT + col1 * col1 + CAST ( NULL AS INTEGER ) + + ( + col0 ) * cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 24 + + tab2.col1 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 9a62f2bfa65c5b34e9ae1b66b8d1e0cc query I rowsort SELECT ALL - col1 + - col0 - 65 * tab2.col0 * + col0 AS col1 FROM tab2 ---- -3223 -395597 -405761 query I rowsort SELECT col2 * col0 * + col0 + 43 - - tab0.col0 AS col0 FROM tab0 ---- 1303 19075 649654 query I rowsort SELECT DISTINCT + 65 + col0 * + ( col1 ) * - col2 FROM tab0 ---- -3330 -664053 -68047 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 88 col0 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to c46e7cf9bf516fdfde88534336a28177 query I rowsort SELECT ALL col2 + ( - col0 ) * - cor0.col2 FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-67 SELECT DISTINCT col2 DIV + 95 AS col1 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-67 SELECT DISTINCT col2 / + 95 AS col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + - 57 + + col1 FROM tab1 AS cor0 ---- -31 -44 -47 query I rowsort SELECT + col2 + 35 * col0 AS col2 FROM tab2 cor0 ---- 272 2756 2803 query I rowsort SELECT + cor0.col0 + + 48 AS col1 FROM tab0 AS cor0 ---- 137 72 83 query I rowsort SELECT ALL + 11 + col2 + - col0 FROM tab0 ---- -23 20 4 query I rowsort SELECT ALL ( + col1 ) + + tab1.col2 AS col2 FROM tab1 ---- 109 67 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-73 SELECT + CAST( NULL AS SIGNED ) * col2 + - col1 - tab1.col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-73 SELECT + CAST ( NULL AS INTEGER ) * col2 + - col1 - tab1.col2 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-74 SELECT 72 * ( - col1 + col2 ) DIV - col1 AS col1 FROM tab0 ---- 44 7 71 skipif mysql # not compatible query I rowsort label-74 SELECT 72 * ( - col1 + col2 ) / - col1 AS col1 FROM tab0 ---- 44 7 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 1 col1 FROM tab1 ---- -1 -1 -1 query I rowsort SELECT ALL 10 * - 31 FROM tab2 AS cor0 ---- -310 -310 -310 query I rowsort SELECT ALL - ( cor0.col1 ) * + cor0.col1 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT DISTINCT + 2 * col1 + col1 FROM tab0 ---- 258 273 291 onlyif mysql # use DIV operator for integer division query I rowsort label-79 SELECT + 12 - + tab2.col2 DIV + 97 FROM tab2 ---- 12 12 12 skipif mysql # not compatible query I rowsort label-79 SELECT + 12 - + tab2.col2 / + 97 FROM tab2 ---- 12 12 12 query I rowsort SELECT DISTINCT - 9 + + col0 AS col1 FROM tab2 ---- -2 69 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * 11 col1 FROM tab1 AS cor0 ---- 33 704 880 query I rowsort SELECT DISTINCT col1 + - 97 AS col0 FROM tab1 AS cor0 ---- -71 -84 -87 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2 ---- 972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1 query I rowsort SELECT ( - tab0.col1 ) + ( ( + col2 ) ) FROM tab0 ---- -53 -9 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-85 SELECT DISTINCT - col0 + + col0 DIV - col2 FROM tab1 ---- -3 -65 -80 skipif mysql # not compatible query I rowsort label-85 SELECT DISTINCT - col0 + + col0 / - col2 FROM tab1 ---- -3 -65 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-86 SELECT DISTINCT col1 * - CAST( 14 AS SIGNED ) FROM tab0 AS cor0 ---- -1204 -1274 -1358 skipif mysql # not compatible query I rowsort label-86 SELECT DISTINCT col1 * - CAST ( 14 AS INTEGER ) FROM tab0 AS cor0 ---- -1204 -1274 -1358 onlyif mysql # use DIV operator for integer division query I rowsort label-87 SELECT DISTINCT col2 DIV col1 + col0 FROM tab2 AS cor0 ---- 7 78 81 skipif mysql # not compatible query I rowsort label-87 SELECT DISTINCT col2 / col1 + col0 FROM tab2 AS cor0 ---- 7 78 81 query I rowsort SELECT ALL + + col1 * - col2 * + cor0.col2 + + col0 FROM tab1 AS cor0 ---- -119728 -32426 -75813 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 + - col2 col1 FROM tab2 cor0 ---- -55 -58 -85 query I rowsort SELECT ALL - col2 * + col1 + + ( col2 ) * col2 AS col1 FROM tab0 AS cor0 ---- -1749 -738 -96 query I rowsort SELECT DISTINCT col1 * col2 + cor0.col0 - col2 FROM tab0 cor0 ---- 131 2829 7469 query I rowsort SELECT + cor0.col2 + ( 75 ) * + col0 AS col0 FROM tab1 cor0 ---- 279 4857 6096 query I rowsort SELECT ALL - col1 * ( col1 * - col0 ) - col2 AS col0 FROM tab1 cor0 ---- 13424 1974 6343 query I rowsort SELECT ALL - col0 * - ( cor0.col0 ) + - col2 AS col2 FROM tab1 AS cor0 ---- -45 4039 6304 query I rowsort SELECT DISTINCT + col1 - cor0.col0 AS col0 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT col2 * - 58 AS col0 FROM tab2 AS cor0 ---- -1508 -1566 -2204 query I rowsort SELECT ALL - 3 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166 query I rowsort SELECT DISTINCT col0 * 86 AS col2 FROM tab1 ---- 258 5504 6880 query I rowsort SELECT DISTINCT col0 * ( - col2 ) FROM tab2 AS cor0 ---- -189 -2028 -3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 60 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1d2ab302ae60f95b15e68cf89083b162 onlyif mysql # use DIV operator for integer division query I rowsort label-101 SELECT - + col0 DIV 83 + + col2 + cor0.col1 FROM tab2 AS cor0 ---- 55 58 85 skipif mysql # not compatible query I rowsort label-101 SELECT - + col0 / 83 + + col2 + cor0.col1 FROM tab2 AS cor0 ---- 55 58 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + cor0.col0 * 0 col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT + + cor0.col2 + 43 * col2 * col0 AS col0 FROM tab0 AS cor0 ---- 1506 313896 34089 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-104 SELECT ALL + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-104 SELECT ALL + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL col2 * ( + col2 * col0 ) FROM tab2 ---- 114076 5103 52728 query I rowsort SELECT - col0 * - col2 AS col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - 54 * - cor0.col2 FROM tab0 AS cor0 ---- 1782 4428 54 onlyif mysql # use DIV operator for integer division query I rowsort label-108 SELECT + col1 DIV 17 FROM tab2 AS cor0 ---- 1 1 3 skipif mysql # not compatible query I rowsort label-108 SELECT + col1 / 17 FROM tab2 AS cor0 ---- 1 1 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - ( cor0.col0 ) col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT DISTINCT - col0 * + tab1.col2 AS col1 FROM tab1 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-111 SELECT col1 + + CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-111 SELECT col1 + + CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - - cor0.col0 * 89 FROM tab1 AS cor0 ---- 267 5696 7120 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-113 SELECT + CAST( + col2 AS SIGNED ) col0 FROM tab2 cor0 ---- 26 27 38 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-113 SELECT + CAST ( + col2 AS INTEGER ) col0 FROM tab2 cor0 ---- 26 27 38 query I rowsort SELECT + 42 * - col1 * col2 AS col1 FROM tab1 cor0 ---- -23940 -52416 -58968 query I rowsort SELECT - 34 + col2 FROM tab2 AS cor0 ---- -7 -8 4 onlyif mysql # use DIV operator for integer division query I rowsort label-116 SELECT + 4 DIV col1 + col2 - - col0 * + col0 col0 FROM tab2 AS cor0 ---- 6110 6279 76 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-116 SELECT + 4 / col1 + col2 - - col0 * + col0 col0 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT ALL - - 89 * - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -623 -6942 -7031 query I rowsort SELECT DISTINCT + 8 + - col1 * + ( col0 ) AS col2 FROM tab2 AS cor0 ---- -1335 -209 -4594 query I rowsort SELECT col0 * col2 - + col2 * cor0.col1 FROM tab2 AS cor0 ---- -648 2356 494 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 27 + col0 * - col1 col1 FROM tab2 AS cor0 ---- -1316 -190 -4575 query I rowsort SELECT ALL - ( - cor0.col1 ) + col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT - + col2 + + col0 - - 77 FROM tab2 AS cor0 ---- 118 129 57 query I rowsort SELECT ALL col1 * col0 + + cor0.col2 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT ALL + 83 * - col1 FROM tab2 AS cor0 ---- -1411 -2573 -4897 query I rowsort SELECT + + col1 + + 34 * col2 * col2 FROM tab2 AS cor0 ---- 23043 24817 49113 query I rowsort SELECT DISTINCT 25 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 25 query I rowsort SELECT - col2 + + col0 * 43 + + cor0.col2 * col2 * col1 AS col0 FROM tab2 AS cor0 ---- 22873 27907 43212 query I rowsort SELECT - 60 + - col0 AS col2 FROM tab2 ---- -138 -139 -67 onlyif mysql # use DIV operator for integer division query I rowsort label-129 SELECT ALL - + col0 DIV col1 + col0 * col0 + + col1 AS col1 FROM tab1 AS cor0 ---- 35 4100 6407 skipif mysql # not compatible query I rowsort label-129 SELECT ALL - + col0 / col1 + col0 * col0 + + col1 AS col1 FROM tab1 AS cor0 ---- 35 4100 6407 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 15 * col1 col0 FROM tab0 AS cor0 ---- 1290 1365 1455 query I rowsort SELECT col1 * + col1 * col1 AS col1 FROM tab1 ---- 1000 17576 2197 query I rowsort SELECT col2 * 95 AS col0 FROM tab1 ---- 5130 5415 9120 query I rowsort SELECT DISTINCT 22 AS col1 FROM tab2, tab0 AS cor0 ---- 22 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * + 36 * - col1 col1 FROM tab0 ---- 102168 268632 3492 query I rowsort SELECT DISTINCT - 0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 0 query I rowsort SELECT ALL 52 + + 56 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 6d22d46245dff8bdc639b4b61304fdd9 query I rowsort SELECT + cor0.col1 * col0 + + 37 FROM tab0 AS cor0 ---- 2101 3432 8136 onlyif mysql # use DIV operator for integer division query I rowsort label-138 SELECT - col2 * col2 DIV 38 AS col0 FROM tab2 cor0 ---- -17 -19 -38 skipif mysql # not compatible query I rowsort label-138 SELECT - col2 * col2 / 38 AS col0 FROM tab2 cor0 ---- -17 -19 -38 query I rowsort SELECT col2 * - ( 12 ) AS col2 FROM tab0 AS cor0 ---- -12 -396 -984 query I rowsort SELECT - col1 + 42 * col1 FROM tab0 AS cor0 ---- 3526 3731 3977 query I rowsort SELECT 23 + 27 * col1 FROM tab0 AS cor0 ---- 2345 2480 2642 query I rowsort SELECT ( - col2 ) + + col2 * + cor0.col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT 74 * col0 + col2 * + col1 * cor0.col2 FROM tab0 cor0 ---- 2687 618470 95430 query I rowsort SELECT DISTINCT - - cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 17 31 59 query I rowsort SELECT DISTINCT + col0 - + tab2.col2 * tab2.col2 FROM tab2 ---- -1365 -598 -722 query I rowsort SELECT ALL - tab0.col2 + 24 * col1 FROM tab0 ---- 2031 2102 2327 query I rowsort SELECT DISTINCT + + col2 + + col1 AS col0 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL - col2 * col1 + col2 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0 ---- -648 2356 494 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-149 SELECT CAST( + col0 AS SIGNED ) + + col0 + - 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-149 SELECT CAST ( + col0 AS INTEGER ) + + col0 + - col0 col2 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-150 SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-150 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * 5 + col0 col2 FROM tab2 AS cor0 ---- -111 -128 -52 query I rowsort SELECT 45 * 36 * col0 AS col1 FROM tab1 cor0 ---- 103680 129600 4860 onlyif mysql # use DIV operator for integer division query I rowsort label-153 SELECT - 65 + cor0.col2 + col2 DIV - 63 FROM tab0 AS cor0 ---- -32 -64 16 skipif mysql # not compatible query I rowsort label-153 SELECT - 65 + cor0.col2 + col2 / - 63 FROM tab0 AS cor0 ---- -32 -64 16 onlyif mysql # use DIV operator for integer division query I rowsort label-154 SELECT col1 DIV - col1 + col1 FROM tab0 AS cor0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-154 SELECT col1 / - col1 + col1 FROM tab0 AS cor0 ---- 85 90 96 query I rowsort SELECT - col1 * + cor0.col0 * - 2 + 93 * - cor0.col0 FROM tab2 AS cor0 ---- -217 -4661 1950 query I rowsort SELECT DISTINCT + 93 + cor0.col2 * - col1 FROM tab0 AS cor0 ---- -2745 -4 -7369 query I rowsort SELECT ALL - 96 - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -106 -109 -122 query I rowsort SELECT ALL col1 * col1 * + col2 FROM tab0 AS cor0 ---- 244068 679042 9409 query I rowsort SELECT ALL - col2 + + col2 * col2 AS col0 FROM tab1 AS cor0 ---- 2862 3192 9120 query I rowsort SELECT - 83 AS col1 FROM tab1, tab1 cor0 ---- 9 values hashing to d55748f39f403ec273099c0d87b0bfbb onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-161 SELECT CAST( NULL AS SIGNED ) + + 31 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-161 SELECT CAST ( NULL AS INTEGER ) + + 31 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - col0 + + cor0.col1 + col2 FROM tab2 AS cor0 ---- -24 51 7 query I rowsort SELECT ALL + 68 * - col1 FROM tab0 AS cor0 ---- -5848 -6188 -6596 query I rowsort SELECT - 26 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 4e49eac022daeae6f88f610644ba3754 query I rowsort SELECT DISTINCT col0 * 49 FROM tab1 ---- 147 3136 3920 onlyif mysql # use DIV operator for integer division query I rowsort label-166 SELECT col0 DIV - 51 FROM tab2 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-166 SELECT col0 / - 51 FROM tab2 ---- -1 -1 0 query I rowsort SELECT ALL - ( 57 ) + col0 * - col0 FROM tab0 AS cor0 ---- -1282 -633 -7978 onlyif mysql # use DIV operator for integer division query I rowsort label-168 SELECT DISTINCT - - cor0.col2 DIV col1 FROM tab2 cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-168 SELECT DISTINCT - - cor0.col2 / col1 FROM tab2 cor0 ---- 0 2 query I rowsort SELECT - - col1 - 68 AS col0 FROM tab0 AS cor0 ---- 18 23 29 query I rowsort SELECT DISTINCT + 65 * - cor0.col1 FROM tab2 AS cor0 ---- -1105 -2015 -3835 onlyif mysql # use DIV operator for integer division query I rowsort label-171 SELECT + col2 DIV - col0 - - col0 FROM tab0 ---- 23 35 89 skipif mysql # not compatible query I rowsort label-171 SELECT + col2 / - col0 - - col0 FROM tab0 ---- 23 35 89 query I rowsort SELECT DISTINCT - col2 * col1 * cor0.col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT col1 + ( - col0 ) * + col2 FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # use DIV operator for integer division query I rowsort label-174 SELECT ALL col1 DIV 46 col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-174 SELECT ALL col1 / 46 col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-175 SELECT ALL - + col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-175 SELECT ALL - + col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * ( 29 ) col0 FROM tab1 AS cor0 ---- -1566 -1653 -2784 query I rowsort SELECT ALL - col0 + 39 AS col1 FROM tab0 AS cor0 ---- -50 15 4 query I rowsort SELECT + col1 * + col1 * + ( cor0.col2 ) AS col1 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT DISTINCT + cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT col0 * + 79 FROM tab1 cor0 ---- 237 5056 6320 query I rowsort SELECT - + col2 * 3 FROM tab0 AS cor0 ---- -246 -3 -99 query I rowsort SELECT DISTINCT cor0.col1 FROM tab0, tab0 cor0, tab2 cor1 ---- 86 91 97 query I rowsort SELECT DISTINCT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 ---- 54 57 96 query I rowsort SELECT DISTINCT + - ( + col0 ) * + col0 * - col0 + - col0 AS col2 FROM tab1 AS cor0 ---- 24 262080 511920 query I rowsort SELECT ALL - + col1 + col1 - - col2 * col1 AS col1 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + col0 * col2 + - col2 * + col2 AS col2 FROM tab0 AS cor0 ---- -297 34 574 query I rowsort SELECT - 99 + col2 FROM tab0 cor0 ---- -17 -66 -98 query I rowsort SELECT DISTINCT + + ( col2 ) + col1 FROM tab2 AS cor0 ---- 55 58 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-189 SELECT - ( col2 ) + + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 ---- -52 -54 -76 skipif mysql # not compatible query I rowsort label-189 SELECT - ( col2 ) + + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 ---- -52 -54 -76 query I rowsort SELECT - col1 + + col2 AS col0 FROM tab1 WHERE ( col2 - col1 ) NOT BETWEEN NULL AND ( NULL ) ---- skipif mysql # not compatible query I rowsort SELECT ALL + cor0.col2 * col0 + CAST ( + col2 * + col1 AS REAL ) AS col1 FROM tab1 AS cor0 ---- 1566 4218 8928 query I rowsort SELECT ALL + - cor0.col1 * col0 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * - col1 + - 4 col2 FROM tab1 ---- 1036 636 74 query I rowsort SELECT ALL + col0 + - col0 * - 32 FROM tab1 ---- 2112 2640 99 query I rowsort SELECT + col1 + - tab0.col0 - col2 FROM tab0 ---- -80 29 61 query I rowsort SELECT + + col0 + + ( + cor0.col1 * - col1 ) FROM tab0 cor0 ---- -7372 -8192 -9374 onlyif mysql # use DIV operator for integer division query I rowsort label-197 SELECT - col2 + + col0 DIV - col0 FROM tab0 ---- -2 -34 -83 skipif mysql # not compatible query I rowsort label-197 SELECT - col2 + + col0 / - col0 FROM tab0 ---- -2 -34 -83 query I rowsort SELECT DISTINCT - col0 + col0 + 2 * ( - col1 ) FROM tab2 ---- -118 -34 -62 query I rowsort SELECT + col2 + - col2 + - 55 * + col2 FROM tab2 ---- -1430 -1485 -2090 query I rowsort SELECT col1 * ( + col1 ) + col1 FROM tab0 AS cor0 ---- 7482 8372 9506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-201 SELECT cor0.col0 / CAST( NULL AS SIGNED ) + + col0 * - col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-201 SELECT cor0.col0 / CAST ( NULL AS INTEGER ) + + col0 * - col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - + cor0.col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT - + col1 + + ( + 34 ) FROM tab2 AS cor0 ---- -25 17 3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-204 SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-204 SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL query I rowsort SELECT ALL ( ( - col2 ) * col0 ) AS col2 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT - ( cor0.col0 ) * + col0 - cor0.col2 FROM tab1 AS cor0 ---- -4153 -63 -6496 query I rowsort SELECT ALL col1 + col0 * tab0.col0 FROM tab0 ---- 1322 662 8012 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * - 49 * - col0 col0 FROM tab1 ---- -200704 -313600 -441 query I rowsort SELECT DISTINCT tab2.col2 * 51 AS col2 FROM tab2 ---- 1326 1377 1938 query I rowsort SELECT DISTINCT - col2 + col1 * - col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 onlyif mysql # use DIV operator for integer division query I rowsort label-211 SELECT DISTINCT - - col1 DIV + col0 + col0 * - cor0.col1 FROM tab1 AS cor0 ---- -1040 -640 -70 skipif mysql # not compatible query I rowsort label-211 SELECT DISTINCT - - col1 / + col0 + col0 * - cor0.col1 FROM tab1 AS cor0 ---- -1040 -640 -70 query I rowsort SELECT col1 + + col1 * col2 AS col0 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT 55 * col1 - - col1 * - col1 FROM tab2 cor0 ---- -236 646 744 query I rowsort SELECT DISTINCT - - 64 * col2 + + ( ( - col1 ) ) AS col1 FROM tab1 AS cor0 ---- 3430 3638 6131 query I rowsort SELECT + col2 * + cor0.col1 + 2 FROM tab2 AS cor0 ---- 1536 648 839 query I rowsort SELECT col0 * + col1 * col2 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT col2 - - cor0.col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT 5 * cor0.col2 FROM tab2 AS cor0 ---- 130 135 190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 32 - col1 col0 FROM tab1 AS cor0 ---- -42 -45 -58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 29 * col0 + 88 col1 FROM tab2 AS cor0 ---- -115 -2174 -2203 query I rowsort SELECT + 95 * - col0 + ( col1 ) AS col0 FROM tab1 cor0 ---- -259 -6070 -7587 query I rowsort SELECT + cor0.col1 * + col2 * col1 + col1 FROM tab0 AS cor0 ---- 244154 679133 9506 query I rowsort SELECT ALL tab2.col2 * col1 + col2 + col2 AS col1 FROM tab2 ---- 1586 722 891 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab0.col0 + tab0.col2 col1 FROM tab0 ---- -34 -7 9 query I rowsort SELECT col2 + col1 + - col1 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-226 SELECT DISTINCT - col1 + col2 * col0 DIV - col1 FROM tab0 AS cor0 ---- -171 -95 -97 skipif mysql # not compatible query I rowsort label-226 SELECT DISTINCT - col1 + col2 * col0 / - col1 FROM tab0 AS cor0 ---- -171 -95 -97 query I rowsort SELECT + cor0.col0 + col0 - col1 FROM tab0 AS cor0 ---- -27 -38 87 query I rowsort SELECT - col1 * col1 + col1 + - col1 * col2 FROM tab2 AS cor0 ---- -1767 -4956 -918 query I rowsort SELECT ALL - + cor0.col0 + + col0 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT + col0 + + col1 * + col2 + col0 FROM tab0 AS cor0 ---- 167 2886 7640 query I rowsort SELECT + + cor0.col1 * col1 + col2 + col1 FROM tab1 AS cor0 ---- 167 278 756 query I rowsort SELECT DISTINCT col2 - col0 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT - col2 * col0 + + col0 * col2 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col2 * + col2 + col1 AS col2 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT DISTINCT + col1 + + col0 * - col0 FROM tab1 AS cor0 ---- -4086 -6387 17 query I rowsort SELECT ALL col0 * + cor0.col2 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT ALL col0 * col0 * col1 + col2 * col1 + - col0 FROM tab1 ---- 1635 41466 84368 query I rowsort SELECT - col1 * - col1 * + tab2.col0 FROM tab2 ---- 22831 271518 6727 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - col0 + col0 NOT IN ( + col2 ) AND + col0 * col1 <= + col0 + col0 / col0 + col0 ---- query III rowsort SELECT * FROM tab1 WHERE col1 = col0 * col1 * + col2 AND col2 IN ( tab1.col2 / col1 + + col2 ) ---- query I rowsort SELECT + ( col0 ) + + col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT 21 AS col0 FROM tab2 AS cor0 ---- 21 21 21 query I rowsort SELECT - + 55 AS col2 FROM tab2 AS cor0 ---- -55 -55 -55 query I rowsort SELECT DISTINCT col1 * col1 * col1 + + col2 FROM tab2 AS cor0 ---- 205405 29818 4951 query I rowsort SELECT + 17 * col2 AS col2 FROM tab2 AS cor0 ---- 442 459 646 query I rowsort SELECT DISTINCT tab1.col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - col1 AND ( col0 * col1 ) ---- query I rowsort SELECT DISTINCT col0 * + col0 + col2 * col1 * col2 FROM tab1 ---- 126208 36586 75825 query I rowsort SELECT + col0 FROM tab0 WHERE NOT ( col2 ) BETWEEN col1 * tab0.col2 AND ( NULL ) ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-249 SELECT DISTINCT - col0 DIV col2 + tab0.col0 AS col0 FROM tab0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-249 SELECT DISTINCT - col0 / col2 + tab0.col0 AS col0 FROM tab0 ---- 0 24 88 query I rowsort SELECT ALL + col2 * col2 * + col2 + col2 FROM tab1 ---- 157518 185250 884832 onlyif mysql # use DIV operator for integer division query I rowsort label-251 SELECT ALL - col0 DIV - col1 + col2 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-251 SELECT ALL - col0 / - col1 + col2 FROM tab0 ---- 1 33 82 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN - col2 AND - col1 / - col2 ---- query I rowsort SELECT ALL tab1.col0 * - col2 * col0 + col1 * col1 FROM tab1 ---- -233372 -614231 190 query I rowsort SELECT - col0 AS col0 FROM tab0 WHERE ( col0 ) <= - col0 ---- query I rowsort SELECT tab1.col2 * + tab1.col2 AS col2 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT ALL + tab2.col0 * + tab2.col2 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT ALL col2 * col2 * - col0 AS col1 FROM tab0 ---- -26136 -35 -598436 query III rowsort SELECT ALL * FROM tab0 WHERE NOT col0 + + col0 <= col0 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT DISTINCT - col2 * col1 * - tab2.col1 FROM tab2 ---- 10982 25947 90506 query I rowsort SELECT DISTINCT col1 AS col0 FROM tab0 WHERE ( NULL ) <= ( col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-261 SELECT + tab2.col2 * col0 DIV col1 + - col2 FROM tab2 ---- -21 138 8 skipif mysql # not compatible query I rowsort label-261 SELECT + tab2.col2 * col0 / col1 + - col2 FROM tab2 ---- -21 138 8 query I rowsort SELECT DISTINCT tab0.col1 * col0 * col1 AS col0 FROM tab0 ---- 177504 329315 737009 query III rowsort SELECT * FROM tab1 WHERE NOT ( NULL ) <> ( NULL ) ---- query I rowsort SELECT ALL - tab2.col2 + col2 + + col2 * - tab2.col1 * col1 FROM tab2 ---- -10982 -25947 -90506 query I rowsort SELECT - tab1.col0 * + col2 - col2 AS col2 FROM tab1 ---- -216 -3705 -7776 onlyif mysql # use DIV operator for integer division query I rowsort label-266 SELECT ALL col0 DIV + col0 + - col0 DIV col2 col0 FROM tab1 ---- 0 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-266 SELECT ALL col0 / + col0 + - col0 / col2 col0 FROM tab1 ---- 0 1 1 query I rowsort SELECT + tab0.col1 * + col0 * + col0 FROM tab0 ---- 118825 49536 720811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab0.col2 + - col1 * tab0.col2 col0 FROM tab0 ---- -2871 -7544 -98 query III rowsort SELECT * FROM tab2 WHERE NOT - col0 + - col0 IN ( + col0 + col2 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * col2 + + col2 * col0 col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-271 SELECT ALL col0 + col1 DIV col0 FROM tab0 ---- 27 37 90 skipif mysql # not compatible query I rowsort label-271 SELECT ALL col0 + col1 / col0 FROM tab0 ---- 27 37 90 query I rowsort SELECT + col0 * + col0 * + col2 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT DISTINCT cor0.col2 - - cor0.col2 * + cor0.col2 FROM tab1, tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT DISTINCT col0 + + col2 * col1 FROM tab0 ---- 132 2862 7551 onlyif mysql # use DIV operator for integer division query I rowsort label-275 SELECT DISTINCT - cor0.col2 DIV + cor0.col1 AS col1 FROM tab0, tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-275 SELECT DISTINCT - cor0.col2 / + cor0.col1 AS col1 FROM tab0, tab1 AS cor0 ---- -2 -5 -7 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 ) ---- query I rowsort SELECT ALL - cor0.col0 + col1 + + col0 * + col1 AS col1 FROM tab1 AS cor0 ---- 101 586 973 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT ALL + - col0 + + 99 AS col1 FROM tab0 AS cor0 ---- 10 64 75 query I rowsort SELECT - + col1 * 41 + col0 + ( col1 ) FROM tab1 AS cor0 ---- -1037 -336 -440 query I rowsort SELECT DISTINCT + col0 + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - ( - 45 ) + col0 + + 41 col2 FROM tab0 AS cor0 ---- 110 121 175 query I rowsort SELECT ALL ( - col1 ) * - col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - 99 + col2 * col1 * col2 AS col0 FROM tab1 AS cor0 ---- 119709 32391 75717 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 - + col1 col0 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT + ( cor0.col1 ) FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-287 SELECT ALL - ( + 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-287 SELECT ALL - ( + col0 ) * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 98 * col1 * + col1 FROM tab1 AS cor0 ---- 16562 66248 9800 query I rowsort SELECT ALL 57 FROM tab1, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query I rowsort SELECT + ( + 61 ) + col2 * col2 FROM tab2 ---- 1505 737 790 query I rowsort SELECT DISTINCT col0 + + 44 FROM tab0 ---- 133 68 79 query I rowsort SELECT ALL - col2 + - col1 * ( - col0 * col2 ) AS col1 FROM tab0 AS cor0 ---- 3394 664036 68079 query I rowsort SELECT ALL - - 54 * col2 - col2 * - col1 FROM tab1 AS cor0 ---- 3648 4320 6432 query I rowsort SELECT + + cor0.col2 * 63 * - col1 FROM tab2 AS cor0 ---- -40698 -52731 -96642 query I rowsort SELECT + 44 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-296 SELECT DISTINCT + cor0.col2 + + CAST( 26 AS SIGNED ) FROM tab0 AS cor0 ---- 108 27 59 skipif mysql # not compatible query I rowsort label-296 SELECT DISTINCT + cor0.col2 + + CAST ( 26 AS INTEGER ) FROM tab0 AS cor0 ---- 108 27 59 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab1, tab1 AS cor2 ---- 3645 values hashing to 199388980dc5177ebebcfdbc0408ba02 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-299 SELECT ALL + cor0.col1 DIV - 22 AS col0 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-299 SELECT ALL + cor0.col1 / - 22 AS col0 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT - - 64 AS col1 FROM tab2 AS cor0 ---- 64 64 64 query I rowsort SELECT - ( - 15 ) AS col1 FROM tab0 AS cor0 ---- 15 15 15 query I rowsort SELECT ALL + 74 + 93 FROM tab2 AS cor0 ---- 167 167 167 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-303 SELECT - CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-303 SELECT - CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 * col0 * + col0 + 33 FROM tab1 AS cor0 ---- 267 40993 83233 query I rowsort SELECT + - col2 * - ( col1 ) + col1 + 17 * col1 * 91 FROM tab0 AS cor0 ---- 135966 148330 150253 query I rowsort SELECT DISTINCT + col1 * cor0.col0 + col0 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT DISTINCT - ( 82 ) * - col1 AS col0 FROM tab0 AS cor0 ---- 7052 7462 7954 query I rowsort SELECT col2 - + cor0.col2 * col2 FROM tab2 AS cor0 ---- -1406 -650 -702 query I rowsort SELECT 58 * + col2 AS col1 FROM tab1 AS cor0 ---- 3132 3306 5568 query I rowsort SELECT ALL + col2 + col1 * - col2 AS col1 FROM tab1 AS cor0 ---- -1152 -1350 -513 onlyif mysql # use DIV operator for integer division query I rowsort label-311 SELECT DISTINCT + tab1.col0 * col1 DIV + col2 - tab1.col2 FROM tab1 ---- -46 -53 -86 skipif mysql # not compatible query I rowsort label-311 SELECT DISTINCT + tab1.col0 * col1 / + col2 - tab1.col2 FROM tab1 ---- -46 -53 -86 query I rowsort SELECT + col2 + 60 * 90 AS col1 FROM tab1 ---- 5454 5457 5496 query I rowsort SELECT + - col2 * col2 + col0 + col2 FROM tab1 AS cor0 ---- -2859 -3128 -9040 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-314 SELECT + CAST( NULL AS SIGNED ) * + 76 + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-314 SELECT + CAST ( NULL AS INTEGER ) * + 76 + col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 99 * col2 FROM tab1 cor0 ---- -5346 -5643 -9504 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 76 * 76 col0 FROM tab0 AS cor0 ---- 5776 5776 5776 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-317 SELECT DISTINCT + ( col2 ) * - col1 + CAST( + col1 AS SIGNED ) * col2 AS col0 FROM tab1 ---- 0 skipif mysql # not compatible query I rowsort label-317 SELECT DISTINCT + ( col2 ) * - col1 + CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab1 ---- 0 query I rowsort SELECT ( - 11 ) * col1 FROM tab2 ---- -187 -341 -649 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-319 SELECT + CAST( + col1 AS SIGNED ) * col1 AS col0 FROM tab2 ---- 289 3481 961 skipif mysql # not compatible query I rowsort label-319 SELECT + CAST ( + col1 AS INTEGER ) * col1 AS col0 FROM tab2 ---- 289 3481 961 query I rowsort SELECT DISTINCT col0 * 40 FROM tab0 ---- 1400 3560 960 query I rowsort SELECT tab0.col0 * - col1 * col2 AS col1 FROM tab0 ---- -3395 -664118 -68112 query I rowsort SELECT ALL - 18 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 09afafec657a5e9f082beb6a16ec85de query I rowsort SELECT DISTINCT + col2 * 36 FROM tab1 ---- 1944 2052 3456 onlyif mysql # use DIV operator for integer division query I rowsort label-324 SELECT 8 DIV - 98 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-324 SELECT 8 / - 98 FROM tab2 ---- 0 0 0 query I rowsort SELECT + tab0.col0 * tab0.col2 AS col1 FROM tab0 ---- 35 7298 792 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0, tab0 cor1 ---- 972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0 query I rowsort SELECT + col0 + 13 FROM tab2 AS cor0 ---- 20 91 92 query I rowsort SELECT col0 * - 53 FROM tab1 AS cor0 ---- -159 -3392 -4240 query I rowsort SELECT - col2 * - 5 FROM tab2 AS cor0 ---- 130 135 190 query IIIIIIIII rowsort SELECT * FROM tab0, tab1, tab2 cor0 WHERE NOT ( NULL ) <= NULL ---- onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-331 SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-331 SELECT ALL + CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT 24 FROM tab2, tab0 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-333 SELECT ALL + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-333 SELECT ALL + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 + cor0.col1 col2 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT DISTINCT - col1 * 37 * + cor0.col1 FROM tab2 AS cor0 ---- -10693 -128797 -35557 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-336 SELECT ALL col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-336 SELECT ALL col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - tab0.col2 - col0 AS col2 FROM tab0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-338 SELECT + col2 DIV + col0 - - 77 * - col0 FROM tab1 ---- -213 -4928 -6159 skipif mysql # not compatible query I rowsort label-338 SELECT + col2 / + col0 - - 77 * - col0 FROM tab1 ---- -213 -4928 -6159 onlyif mysql # use DIV operator for integer division query I rowsort label-339 SELECT + col0 + col0 DIV + col2 FROM tab1 AS cor0 ---- 3 65 80 skipif mysql # not compatible query I rowsort label-339 SELECT + col0 + col0 / + col2 FROM tab1 AS cor0 ---- 3 65 80 query I rowsort SELECT - col0 + + col2 * 63 AS col1 FROM tab1 ---- 3399 3527 5968 query I rowsort SELECT - col2 * col2 - - col2 FROM tab2 AS cor0 ---- -1406 -650 -702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * ( - 74 ) - - cor0.col1 col1 FROM tab1 AS cor0 ---- -1898 -730 -949 query I rowsort SELECT ALL + col0 * col2 + + col2 + cor0.col2 FROM tab0 cor0 ---- 37 7462 858 query I rowsort SELECT DISTINCT - col2 - col1 * - col0 AS col0 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT col2 * + cor0.col0 - col1 FROM tab1 cor0 ---- 136 3638 7667 query I rowsort SELECT - col2 + + ( 48 ) * cor0.col0 FROM tab1 AS cor0 ---- 3015 3744 90 query I rowsort SELECT col2 * - 86 AS col1 FROM tab2 AS cor0 ---- -2236 -2322 -3268 query I rowsort SELECT + cor0.col2 * 74 + - 24 FROM tab1 AS cor0 ---- 3972 4194 7080 query I rowsort SELECT DISTINCT cor0.col0 - + ( + col0 ) * + col1 AS col0 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT DISTINCT col2 * + col1 + - col0 * col1 AS col2 FROM tab2 AS cor0 ---- -3068 -697 620 onlyif mysql # use DIV operator for integer division query I rowsort label-351 SELECT ALL + + col1 DIV - 32 + 87 AS col0 FROM tab0 AS cor0 ---- 84 85 85 skipif mysql # not compatible query I rowsort label-351 SELECT ALL + + col1 / - 32 + 87 AS col0 FROM tab0 AS cor0 ---- 84 85 85 query I rowsort SELECT + col0 + - 8 + - col0 AS col1 FROM tab0 AS cor0 ---- -8 -8 -8 onlyif mysql # use DIV operator for integer division query I rowsort label-353 SELECT + col0 DIV - col2 - - col2 * col1 FROM tab0 AS cor0 ---- 2838 62 7461 skipif mysql # not compatible query I rowsort label-353 SELECT + col0 / - col2 - - col2 * col1 FROM tab0 AS cor0 ---- 2838 62 7461 query I rowsort SELECT col1 * + 86 - col2 * - 24 AS col0 FROM tab0 ---- 8188 8366 9794 query I rowsort SELECT + 0 * 82 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col0 * cor0.col0 * - col0 FROM tab1 cor0 ---- -262144 -27 -512000 onlyif mysql # use DIV operator for integer division query I rowsort label-357 SELECT - + col2 DIV - 71 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-357 SELECT - + col2 / - 71 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT 9 + col1 FROM tab2 AS cor0 ---- 26 40 68 onlyif mysql # use DIV operator for integer division query I rowsort label-359 SELECT ALL - - col2 DIV + col2 + cor0.col1 + + col2 AS col1 FROM tab1 AS cor0 ---- 110 68 81 skipif mysql # not compatible query I rowsort label-359 SELECT ALL - - col2 / + col2 + cor0.col1 + + col2 AS col1 FROM tab1 AS cor0 ---- 110 68 81 query I rowsort SELECT 57 AS col0 FROM tab2, tab1, tab1 AS cor0, tab0 ---- 81 values hashing to 23b62d6905061dab566f3a9e15667302 query I rowsort SELECT - ( - col2 ) + + col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT 32 * col2 AS col1 FROM tab1 AS cor0 ---- 1728 1824 3072 onlyif mysql # use DIV operator for integer division query I rowsort label-363 SELECT ALL 53 * col0 DIV col1 FROM tab0 ---- 14 19 51 skipif mysql # not compatible query I rowsort label-363 SELECT ALL 53 * col0 / col1 FROM tab0 ---- 14 19 51 onlyif mysql # use DIV operator for integer division query I rowsort label-364 SELECT - cor0.col0 DIV cor0.col0 AS col1 FROM tab2 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-364 SELECT - cor0.col0 / cor0.col0 AS col1 FROM tab2 cor0 ---- -1 -1 -1 query I rowsort SELECT ALL - - ( - col0 ) + - col2 + 49 AS col0 FROM tab0 AS cor0 ---- -122 -8 13 query I rowsort SELECT DISTINCT - - 52 AS col2 FROM tab0 AS cor0 ---- 52 query I rowsort SELECT DISTINCT - cor0.col1 + - col0 * - col0 - col1 AS col1 FROM tab2 AS cor0 ---- -13 5966 6207 query I rowsort SELECT ALL - 97 + - col0 - col2 * - 80 * col1 FROM tab1 AS cor0 ---- 112220 45439 99663 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 + col0 col1 FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT ALL - 41 * col0 + - col2 FROM tab1 AS cor0 ---- -177 -2681 -3376 query I rowsort SELECT DISTINCT 26 * - col2 + col0 AS col1 FROM tab1 AS cor0 ---- -1401 -1418 -2416 query I rowsort SELECT DISTINCT + - 83 AS col2 FROM tab0 AS cor0 ---- -83 query I rowsort SELECT ALL + 48 FROM tab2, tab0, tab0 cor0 ---- 27 values hashing to 0ef571a8722ab7270aa7272c1174b88e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-374 SELECT ALL CAST( NULL AS SIGNED ) / - col0 + col2 * - col2 * col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-374 SELECT ALL CAST ( NULL AS INTEGER ) / - col0 + col2 * - col2 * col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL + 59 AS col2 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3 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 - cor1.col1 + + ( + 98 ) FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1 ---- 72 85 88 query I rowsort SELECT ALL + cor0.col0 + + col1 FROM tab2 cor0 ---- 137 38 96 query IIIIIIIIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 cor2, tab2 ---- 13122 values hashing to c60533705e2e9ad7166aecf338598a8c onlyif mysql # use DIV operator for integer division query I rowsort label-380 SELECT + col2 DIV + col1 + - tab2.col2 DIV - col1 FROM tab2 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-380 SELECT + col2 / + col1 + - tab2.col2 / - col1 FROM tab2 ---- 0 0 4 onlyif mysql # use DIV operator for integer division query I rowsort label-381 SELECT col0 * col2 - + col0 DIV tab0.col0 AS col0 FROM tab0 ---- 34 7297 791 skipif mysql # not compatible query I rowsort label-381 SELECT col0 * col2 - + col0 / tab0.col0 AS col0 FROM tab0 ---- 34 7297 791 onlyif mysql # use DIV operator for integer division query I rowsort label-382 SELECT DISTINCT 46 * - col0 + + col1 DIV - tab0.col2 FROM tab0 ---- -1106 -1707 -4095 skipif mysql # not compatible query I rowsort label-382 SELECT DISTINCT 46 * - col0 + + col1 / - tab0.col2 FROM tab0 ---- -1106 -1707 -4095 query I rowsort SELECT DISTINCT + col1 + 65 FROM tab0 ---- 151 156 162 query I rowsort SELECT + ( col0 ) - - col2 AS col0 FROM tab1 ---- 121 176 57 query I rowsort SELECT - col1 * + ( - col1 ) FROM tab2 ---- 289 3481 961 query I rowsort SELECT DISTINCT + ( col0 ) + - col2 * - col0 * - col1 FROM tab0 ---- -3360 -664029 -68088 query I rowsort SELECT ALL + + col1 - 99 AS col0 FROM tab1 AS cor0 ---- -73 -86 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-388 SELECT ALL 30 DIV 54 + col2 AS col2 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-388 SELECT ALL 30 / 54 + col2 AS col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL - + col2 * - col2 AS col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT 81 * 14 AS col2 FROM tab2 AS cor0 ---- 1134 1134 1134 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-391 SELECT ALL CAST( col2 AS SIGNED ) * + col1 + - 65 * ( - col2 ) - + col1 * + col1 FROM tab1 AS cor0 ---- 4175 4238 7319 skipif mysql # not compatible query I rowsort label-391 SELECT ALL CAST ( col2 AS INTEGER ) * + col1 + - 65 * ( - col2 ) - + col1 * + col1 FROM tab1 AS cor0 ---- 4175 4238 7319 query I rowsort SELECT DISTINCT - col0 + + 56 * col2 AS col0 FROM tab1 AS cor0 ---- 3021 3128 5296 query I rowsort SELECT cor0.col0 * col2 + - col0 AS col2 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT - cor0.col0 + 2 * col0 AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT + col1 + col1 + col1 FROM tab2 cor0 ---- 177 51 93 query I rowsort SELECT - + col2 * col0 + col2 + col2 AS col1 FROM tab0 AS cor0 ---- -33 -7134 -726 query I rowsort SELECT DISTINCT - + col2 + + cor0.col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL col2 * + col1 + + 38 + col0 * col2 AS col1 FROM tab1 AS cor0 ---- 1604 4256 8966 query I rowsort SELECT + - col0 + 65 * + ( col1 + 73 ) AS col0 FROM tab0 AS cor0 ---- 10311 10571 11015 query I rowsort SELECT 57 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query I rowsort SELECT ALL tab1.col0 * 3 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 5b7ab77c4282e0e2c74b780a822f0b5e query I rowsort SELECT ALL + col2 + - col1 AS col2 FROM tab2 ---- -33 -4 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 21 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- -21 query I rowsort SELECT DISTINCT cor0.col0 * cor0.col1 * col0 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT + - col0 * + col1 + 57 * col2 FROM tab2 AS cor0 ---- -3120 1322 823 query I rowsort SELECT - + col0 - + ( 59 ) FROM tab1 AS cor0 ---- -123 -139 -62 query I rowsort SELECT DISTINCT - + 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- -2 query I rowsort SELECT + 63 * - col0 * col2 FROM tab2 AS cor0 ---- -11907 -127764 -189126 onlyif mysql # use DIV operator for integer division query I rowsort label-409 SELECT ALL - cor0.col0 DIV col0 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-409 SELECT ALL - cor0.col0 / col0 FROM tab2 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-410 SELECT ALL col2 + - col0 - col1 DIV 41 FROM tab2 AS cor0 ---- -41 -53 20 skipif mysql # not compatible query I rowsort label-410 SELECT ALL col2 + - col0 - col1 / 41 FROM tab2 AS cor0 ---- -41 -53 20 query I rowsort SELECT ALL + + ( - col1 ) + col2 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT ALL - 93 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to ea79c61f7a02d25805171f5e85229fba query I rowsort SELECT ALL + 3 + + tab0.col0 FROM tab0 ---- 27 38 92 query I rowsort SELECT DISTINCT tab2.col1 * 33 AS col2 FROM tab2, tab0 AS cor0 ---- 1023 1947 561 query I rowsort SELECT DISTINCT - + cor0.col0 * - col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - 3 AS col0 FROM tab2 AS cor0 ---- -3 query I rowsort SELECT ALL 78 * + col1 AS col2 FROM tab1 ---- 1014 2028 780 query I rowsort SELECT DISTINCT 92 - 86 * cor0.col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 ---- -4552 -4810 -8164 query I rowsort SELECT DISTINCT 11 AS col2 FROM tab1, tab1 cor0, tab2 cor1 ---- 11 query I rowsort SELECT + - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to f68f33032846e21ee6b2c668fc10355e skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 - + col2 col0 FROM tab1 ---- 0 query I rowsort SELECT DISTINCT cor0.col1 + 42 AS col1 FROM tab2 AS cor0 ---- 101 59 73 query I rowsort SELECT + - col2 + - 32 FROM tab1 AS cor0 ---- -128 -86 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-424 SELECT ALL CAST( NULL AS DECIMAL ) col0 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-424 SELECT ALL CAST ( NULL AS REAL ) col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 80 + col2 FROM tab2 AS cor0 ---- 106 107 118 query I rowsort SELECT + col0 + + 85 FROM tab1 AS cor0 ---- 149 165 88 query I rowsort SELECT - - col2 + cor0.col0 + col0 FROM tab1 AS cor0 ---- 185 256 60 onlyif mysql # use DIV operator for integer division query I rowsort label-428 SELECT - 29 DIV 53 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-428 SELECT - 29 / 53 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT col2 * 71 + col2 AS col0 FROM tab2 AS cor0 ---- 1872 1944 2736 query I rowsort SELECT + col1 + - 57 * - col1 FROM tab1 AS cor0 ---- 1508 580 754 query I rowsort SELECT 73 * - cor0.col0 FROM tab2 AS cor0 ---- -511 -5694 -5767 query I rowsort SELECT + 88 + 46 AS col1 FROM tab1 ---- 134 134 134 onlyif mysql # use DIV operator for integer division query I rowsort label-433 SELECT ALL - col0 * + ( + cor0.col2 ) + - col1 DIV + cor0.col1 AS col1 FROM tab0 cor0 ---- -36 -7299 -793 skipif mysql # not compatible query I rowsort label-433 SELECT ALL - col0 * + ( + cor0.col2 ) + - col1 / + cor0.col1 AS col1 FROM tab0 cor0 ---- -36 -7299 -793 query I rowsort SELECT ALL + 44 * cor0.col1 FROM tab2 AS cor0 ---- 1364 2596 748 query I rowsort SELECT + - ( 77 ) FROM tab0 AS cor0 ---- -77 -77 -77 query I rowsort SELECT DISTINCT + ( - col0 ) + + col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL + 85 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b query I rowsort SELECT tab1.col1 * 59 + + col0 * col0 AS col1 FROM tab1 ---- 1543 4686 7167 query I rowsort SELECT - ( col1 + - tab1.col2 * - col0 ) FROM tab1 ---- -188 -3658 -7693 query I rowsort SELECT DISTINCT - 42 * cor0.col0 AS col0 FROM tab0, tab2 AS cor0 ---- -294 -3276 -3318 query I rowsort SELECT ALL - col2 * col1 * - col1 AS col2 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT 86 * col2 FROM tab2 ---- 2236 2322 3268 query I rowsort SELECT DISTINCT + tab1.col1 * + col0 * col0 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT + 23 + col1 FROM tab0 AS cor0 ---- 109 114 120 onlyif mysql # use DIV operator for integer division query I rowsort label-445 SELECT - + col2 * col0 + - 86 * 91 DIV col1 FROM tab1 AS cor0 ---- -4430 -463 -8282 skipif mysql # not compatible query I rowsort label-445 SELECT - + col2 * col0 + - 86 * 91 / col1 FROM tab1 AS cor0 ---- -4430 -463 -8282 query I rowsort SELECT + col1 + 82 FROM tab2 AS cor0 ---- 113 141 99 query I rowsort SELECT + col1 * + ( + col2 ) + col2 * + 51 FROM tab2 AS cor0 ---- 2214 2584 2860 query I rowsort SELECT DISTINCT col1 + 81 * + col2 * + col0 + - col2 AS col2 FROM tab2 AS cor0 ---- 15313 164301 243141 query I rowsort SELECT ALL - cor0.col2 - col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT ALL - + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT + - col1 + - ( - cor0.col1 ) FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-452 SELECT - col1 DIV ( - 44 ) + col1 AS col0 FROM tab0 AS cor0 ---- 87 93 99 skipif mysql # not compatible query I rowsort label-452 SELECT - col1 / ( - 44 ) + col1 AS col0 FROM tab0 AS cor0 ---- 87 93 99 query I rowsort SELECT DISTINCT - col0 * col0 + + col0 * col2 FROM tab0 AS cor0 ---- -1190 -623 216 query I rowsort SELECT DISTINCT col0 + - 10 * cor0.col1 FROM tab1 AS cor0 ---- -257 -36 -50 query I rowsort SELECT - col0 * + 68 * col1 FROM tab2 ---- -14756 -312936 -91324 onlyif mysql # use DIV operator for integer division query I rowsort label-456 SELECT col1 + col1 DIV col1 + col2 col0 FROM tab1 ---- 110 68 81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-456 SELECT col1 + col1 / col1 + col2 col0 FROM tab1 ---- 110 68 81 query I rowsort SELECT DISTINCT + 48 AS col2 FROM tab2, tab0 AS cor0 ---- 48 query I rowsort SELECT DISTINCT col2 * col1 + col1 AS col1 FROM tab0 ---- 194 2924 7553 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-459 SELECT ALL + CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-459 SELECT ALL + CAST ( NULL AS REAL ) AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-460 SELECT DISTINCT - col0 + + CAST( + col0 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0 ---- -12 -4160 -6480 skipif mysql # not compatible query I rowsort label-460 SELECT DISTINCT - col0 + + CAST ( + col0 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT col1 + col2 + - col2 AS col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT 66 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 897b6122ac98340b78905f39d81897fc query I rowsort SELECT col0 + + ( - 6 ) * - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 540 617 635 query I rowsort SELECT ALL col2 * 2 - col0 * + col0 FROM tab1 AS cor0 ---- -3982 -6208 99 query I rowsort SELECT ALL - col2 + - 22 AS col1 FROM tab2 AS cor0 ---- -48 -49 -60 query I rowsort SELECT + col2 + + col1 * - col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT ALL col1 * + cor0.col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT - ( 16 ) * col1 FROM tab2 AS cor0 ---- -272 -496 -944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col1 - - 17 * col2 col0 FROM tab1 AS cor0 ---- 1645 944 979 query I rowsort SELECT DISTINCT + - col1 + cor0.col1 * + cor0.col2 * - col0 FROM tab0 AS cor0 ---- -3492 -664209 -68198 query I rowsort SELECT DISTINCT - + col1 - ( col0 + + 70 ) FROM tab1 AS cor0 ---- -144 -163 -99 query I rowsort SELECT + col2 * - col1 * col2 AS col1 FROM tab2 AS cor0 ---- -22599 -24548 -39884 onlyif mysql # use DIV operator for integer division query I rowsort label-473 SELECT DISTINCT - 8 DIV col0 AS col0 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-473 SELECT DISTINCT - 8 / col0 AS col0 FROM tab0 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 9 * col0 col2 FROM tab1 AS cor0 ---- -27 -576 -720 query I rowsort SELECT ALL col1 + tab2.col2 * - 55 FROM tab2 ---- -1371 -1454 -2073 query I rowsort SELECT ALL col0 * + col2 + - 89 FROM tab1 ---- 3559 73 7591 query I rowsort SELECT ALL + 86 * - col0 * - col2 AS col1 FROM tab2 AS cor0 ---- 16254 174408 258172 query I rowsort SELECT ALL + + ( cor0.col1 ) * col2 + col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT - 57 * - cor0.col1 + + 43 FROM tab0 AS cor0 ---- 4945 5230 5572 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col1 + cor0.col2 * col1 col1 FROM tab1 cor0 ---- 1235 1378 560 onlyif mysql # use DIV operator for integer division query I rowsort label-481 SELECT ( col2 ) + col1 DIV 77 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-481 SELECT ( col2 ) + col1 / 77 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT - col0 * col1 + - col0 + 59 AS col2 FROM tab0 AS cor0 ---- -2029 -3371 -8129 query I rowsort SELECT 43 * col1 FROM tab1 AS cor0 ---- 1118 430 559 query I rowsort SELECT ALL - - 40 * - col1 AS col0 FROM tab1 AS cor0 ---- -1040 -400 -520 query I rowsort SELECT ALL + - col1 + - col2 FROM tab1 cor0 ---- -109 -67 -80 query I rowsort SELECT 34 * cor0.col1 FROM tab2 AS cor0 ---- 1054 2006 578 query I rowsort SELECT ALL 32 * col1 FROM tab1 cor0 ---- 320 416 832 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-488 SELECT - cor0.col0 - + cor0.col1 * - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 ---- -132 -2862 -7551 skipif mysql # not compatible query I rowsort label-488 SELECT - cor0.col0 - + cor0.col1 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 ---- -132 -2862 -7551 query I rowsort SELECT ALL 28 - col1 AS col0 FROM tab1 ---- 15 18 2 query I rowsort SELECT + + col0 * col0 AS col1 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT ALL cor0.col2 * + cor0.col2 + col2 FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT DISTINCT 68 * col2 + col2 * 5 AS col0 FROM tab2 AS cor0 ---- 1898 1971 2774 query I rowsort SELECT DISTINCT + + 64 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- 448 4992 5056 query I rowsort SELECT DISTINCT col0 + col2 * col1 * + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 11061 25954 90584 query I rowsort SELECT - ( + 79 ) * cor0.col2 AS col1 FROM tab2 AS cor0 ---- -2054 -2133 -3002 query I rowsort SELECT DISTINCT + - ( cor0.col0 ) AS col2 FROM tab1 cor0 ---- -3 -64 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-497 SELECT - CAST( NULL AS SIGNED ) + 48 AS col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-497 SELECT - CAST ( NULL AS INTEGER ) + 48 AS col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT 61 * + ( + col2 ) FROM tab0 AS cor0 ---- 2013 5002 61 query I rowsort SELECT - cor0.col2 + + cor0.col0 * - col0 FROM tab2 AS cor0 ---- -6110 -6279 -76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-500 SELECT + CAST( 6 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0 ---- 156 60 78 skipif mysql # not compatible query I rowsort label-500 SELECT + CAST ( 6 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0 ---- 156 60 78 query I rowsort SELECT + - 98 * - col0 FROM tab0 cor0 ---- 2352 3430 8722 onlyif mysql # use DIV operator for integer division query I rowsort label-502 SELECT 17 DIV - col1 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-502 SELECT 17 / - col1 AS col0 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-503 SELECT ALL ( + col2 ) DIV col0 + - col1 * col0 * - col1 + col2 AS col2 FROM tab2 ---- 22869 271544 6757 skipif mysql # not compatible query I rowsort label-503 SELECT ALL ( + col2 ) / col0 + - col1 * col0 * - col1 + col2 AS col2 FROM tab2 ---- 22869 271544 6757 query I rowsort SELECT - - cor0.col2 * + 47 + + col2 * col2 AS col2 FROM tab2 AS cor0 ---- 1898 1998 3230 query I rowsort SELECT - cor0.col2 + - col1 * + 5 FROM tab2 AS cor0 ---- -123 -182 -321 query I rowsort SELECT DISTINCT + col1 - ( + col1 ) * + col1 FROM tab2 AS cor0 ---- -272 -3422 -930 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 + col2 col2 FROM tab2 AS cor0 ---- 52 54 76 onlyif mysql # use DIV operator for integer division query I rowsort label-508 SELECT ALL - tab2.col2 DIV + col0 + 16 col0 FROM tab2 ---- 13 16 16 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-508 SELECT ALL - tab2.col2 / + col0 + 16 col0 FROM tab2 ---- 13 16 16 query I rowsort SELECT DISTINCT + 63 + - col0 FROM tab2 ---- -15 -16 56 query I rowsort SELECT col2 * - 57 AS col2 FROM tab2 AS cor0 ---- -1482 -1539 -2166 query I rowsort SELECT ALL - col0 + 51 + col0 FROM tab2 AS cor0 ---- 51 51 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-512 SELECT ALL - col0 * + CAST( - col0 AS SIGNED ) FROM tab2 ---- 49 6084 6241 skipif mysql # not compatible query I rowsort label-512 SELECT ALL - col0 * + CAST ( - col0 AS INTEGER ) FROM tab2 ---- 49 6084 6241 query I rowsort SELECT + col2 * 11 * col0 AS col1 FROM tab1 ---- 1782 40128 84480 query I rowsort SELECT + ( - col2 + col1 ) FROM tab2 ---- -21 33 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 25 col1 FROM tab0, tab2 cor0 ---- 9 values hashing to 40ac8fd000b2e49317aed2411077839e query I rowsort SELECT + col0 + - col2 * + col1 AS col2 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT + - 30 AS col2 FROM tab2 AS cor0 ---- -30 -30 -30 query I rowsort SELECT + ( + col0 ) * col0 * + 29 AS col1 FROM tab1 ---- 118784 185600 261 query I rowsort SELECT - 0 * col0 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL - 3 AS col1 FROM tab0 ---- -3 -3 -3 query I rowsort SELECT + 59 * tab1.col2 FROM tab1 ---- 3186 3363 5664 query I rowsort SELECT DISTINCT 54 * col1 * - col1 FROM tab0 ---- -399384 -447174 -508086 onlyif mysql # use DIV operator for integer division query I rowsort label-523 SELECT col0 DIV + col1 + 26 AS col0 FROM tab1 AS cor0 ---- 26 32 32 skipif mysql # not compatible query I rowsort label-523 SELECT col0 / + col1 + 26 AS col0 FROM tab1 AS cor0 ---- 26 32 32 onlyif mysql # use DIV operator for integer division query I rowsort label-524 SELECT ALL - + 6 DIV col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-524 SELECT ALL - + 6 / col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT col2 + col1 + col1 AS col2 FROM tab1 AS cor0 ---- 106 122 77 query I rowsort SELECT ALL - col0 + 90 * - ( col2 ) FROM tab1 AS cor0 ---- -4863 -5194 -8720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + + col0 + col1 col1 FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT ALL + 98 + col1 FROM tab1 ---- 108 111 124 query I rowsort SELECT col2 * tab0.col0 + + 93 + + 46 * tab0.col1 * col1 FROM tab0 ---- 341101 388317 432942 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-530 SELECT + col0 * CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-530 SELECT + col0 * CAST ( NULL AS REAL ) + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-531 SELECT + col2 + - col1 * + CAST( ( + col0 ) AS SIGNED ) FROM tab0 AS cor0 ---- -2031 -3394 -8017 skipif mysql # not compatible query I rowsort label-531 SELECT + col2 + - col1 * + CAST ( ( + col0 ) AS INTEGER ) FROM tab0 AS cor0 ---- -2031 -3394 -8017 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 65 col1 FROM tab2, tab1 AS cor0 ---- -65 query I rowsort SELECT - col1 * col0 + col2 AS col2 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT - + col2 + - cor0.col2 * - col1 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT + 9 + ( cor0.col1 ) AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 3c1a00c6b738db92e0262ff5bda63bd9 query I rowsort SELECT DISTINCT + ( - col2 ) * col1 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-537 SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-537 SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL + cor0.col0 * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT col2 * ( + cor0.col0 ) + col2 AS col1 FROM tab2 AS cor0 ---- 2054 216 3040 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab1.col2 col0 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT + 63 * - 76 AS col1 FROM tab1, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to f4d305c0a05d4acd27abcdfc689af2b9 query I rowsort SELECT DISTINCT 98 * tab2.col2 * + 37 + col0 AS col2 FROM tab2 ---- 137867 94354 97909 query I rowsort SELECT ALL col1 * col0 + - col2 + + 53 AS col2 FROM tab0 ---- 2084 3447 8070 query I rowsort SELECT ALL col1 + col2 * - col0 * + col0 + tab1.col1 AS col0 FROM tab1 ---- -233452 -434 -614374 query I rowsort SELECT col1 + - tab0.col1 AS col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 - 44 FROM tab0 AS cor0 ---- -20 -9 45 query I rowsort SELECT + col1 + + ( col0 + col1 ) AS col1 FROM tab2 AS cor0 ---- 113 196 69 onlyif mysql # use DIV operator for integer division query I rowsort label-548 SELECT ALL - col0 + col0 DIV - col1 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-548 SELECT ALL - col0 + col0 / - col1 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-549 SELECT ALL + - col2 + + 89 DIV col0 FROM tab2 AS cor0 ---- -15 -25 -37 skipif mysql # not compatible query I rowsort label-549 SELECT ALL + - col2 + + 89 / col0 FROM tab2 AS cor0 ---- -15 -25 -37 query I rowsort SELECT ALL + + col2 * - col1 + - cor0.col1 - 21 * - 69 FROM tab2 AS cor0 ---- -144 581 786 query I rowsort SELECT tab2.col1 * ( col0 ) AS col0 FROM tab2 ---- 1343 217 4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-552 SELECT + tab1.col1 * - CAST( - col2 * col0 AS SIGNED ) FROM tab1 ---- 36480 4212 99840 skipif mysql # not compatible query I rowsort label-552 SELECT + tab1.col1 * - CAST ( - col2 * col0 AS INTEGER ) FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT + ( cor0.col2 ) FROM tab1, tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT - 1 * cor0.col0 + col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT + ( col1 ) + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT + 46 - col2 * - col0 * ( + 93 ) FROM tab2 AS cor0 ---- 17623 188650 279232 skipif mysql # not compatible query I rowsort SELECT CAST ( col1 AS REAL ) * + col2 + + col1 AS col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT + ( 77 ) + col2 AS col2 FROM tab1 AS cor0 ---- 131 134 173 onlyif mysql # use DIV operator for integer division query I rowsort label-559 SELECT - col2 + col0 DIV col0 col2 FROM tab2 AS cor0 ---- -25 -26 -37 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-559 SELECT - col2 + col0 / col0 col2 FROM tab2 AS cor0 ---- -25 -26 -37 onlyif mysql # use DIV operator for integer division query I rowsort label-560 SELECT DISTINCT tab0.col1 * 58 - col2 DIV + 90 col0 FROM tab0 ---- 4988 5278 5626 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-560 SELECT DISTINCT tab0.col1 * 58 - col2 / + 90 col0 FROM tab0 ---- 4988 5278 5626 query I rowsort SELECT ALL 93 + 72 * + col0 - - col1 * - tab2.col0 AS col2 FROM tab2 ---- 1107 380 4438 query I rowsort SELECT ALL ( + 2 ) - + col0 * - col1 FROM tab1 ---- 1042 642 80 query I rowsort SELECT DISTINCT - 49 * + col0 - - tab1.col1 AS col2 FROM tab1 ---- -121 -3126 -3907 query I rowsort SELECT col2 * + col0 + col2 * - col2 + - col0 AS col0 FROM tab1 ---- -1616 -2757 335 query I rowsort SELECT ALL - col0 - col1 AS col0 FROM tab2 ---- -137 -38 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-566 SELECT DISTINCT - ( cor0.col0 ) DIV - cor0.col1 FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-566 SELECT DISTINCT - ( cor0.col0 ) / - cor0.col1 FROM tab2 AS cor0 ---- 0 1 4 query I rowsort SELECT ALL - col1 + col1 * + col2 FROM tab2 ---- 1475 629 806 query I rowsort SELECT DISTINCT 66 * col1 + col2 * - 14 AS col0 FROM tab2 AS cor0 ---- 1668 3530 590 query I rowsort SELECT col1 + + col1 * col1 FROM tab1 cor0 ---- 110 182 702 query I rowsort SELECT ALL - col1 * col0 * - col2 + - col1 + col0 FROM tab2 AS cor0 ---- 119671 51096 5835 query I rowsort SELECT - + col0 * + cor0.col2 + + col2 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT ALL col2 - + cor0.col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT + 99 * col2 + 76 * col0 AS col0 FROM tab1 cor0 ---- 10507 15584 5574 query I rowsort SELECT DISTINCT - col1 + - col2 * col0 * 28 FROM tab1 AS cor0 ---- -102154 -215053 -4562 query I rowsort SELECT ALL col0 * col0 - col2 AS col0 FROM tab2 AS cor0 ---- 22 6058 6203 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-576 SELECT ( + col2 ) * CAST( - col2 AS SIGNED ) + cor0.col0 FROM tab2 AS cor0 ---- -1365 -598 -722 skipif mysql # not compatible query I rowsort label-576 SELECT ( + col2 ) * CAST ( - col2 AS INTEGER ) + cor0.col0 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT DISTINCT 77 + - cor0.col1 * + 69 AS col1 FROM tab1 AS cor0 ---- -1717 -613 -820 query I rowsort SELECT DISTINCT 17 + - col0 AS col2 FROM tab0 AS cor0 ---- -18 -7 -72 query I rowsort SELECT - + col1 * col1 + + col1 FROM tab1 cor0 ---- -156 -650 -90 query I rowsort SELECT DISTINCT + col2 + - col0 + ( + col1 ) * col2 FROM tab1 AS cor0 ---- 1264 1455 563 query I rowsort SELECT - col2 * + col1 * col2 FROM tab0 AS cor0 ---- -611884 -93654 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-582 SELECT DISTINCT - tab2.col1 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-582 SELECT DISTINCT - tab2.col1 / CAST ( NULL AS REAL ) AS col1 FROM tab2 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-583 SELECT ALL col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-583 SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - cor0.col2 + + 47 FROM tab2 AS cor0 ---- 20 21 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-585 SELECT + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-585 SELECT + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-586 SELECT + - col0 DIV 80 AS col2 FROM tab0 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-586 SELECT + - col0 / 80 AS col2 FROM tab0 cor0 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-587 SELECT - col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-587 SELECT - col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 + + 9 * + col0 FROM tab2 AS cor0 ---- 70 780 790 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-589 SELECT DISTINCT + cor0.col0 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-589 SELECT DISTINCT + cor0.col0 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL + col2 * 47 FROM tab0 AS cor0 ---- 1551 3854 47 query I rowsort SELECT 80 - col1 FROM tab1 AS cor0 ---- 54 67 70 query I rowsort SELECT ALL + - col2 * cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1 -1089 -6724 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-593 SELECT - ( col2 ) * + col1 + CAST( NULL AS SIGNED ) * 70 * col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-593 SELECT - ( col2 ) * + col1 + CAST ( NULL AS INTEGER ) * 70 * col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-594 SELECT DISTINCT CAST( + col0 AS SIGNED ) - + col1 AS col0 FROM tab0 AS cor0 ---- -2 -62 skipif mysql # not compatible query I rowsort label-594 SELECT DISTINCT CAST ( + col0 AS INTEGER ) - + col1 AS col0 FROM tab0 AS cor0 ---- -2 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-595 SELECT ALL + cor0.col2 + col1 DIV col1 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-595 SELECT ALL + cor0.col2 + col1 / col1 FROM tab1 AS cor0 ---- 55 58 97 query I rowsort SELECT ALL + col1 * + col2 + col2 * col1 AS col0 FROM tab1 AS cor0 ---- 1140 2496 2808 query I rowsort SELECT DISTINCT - 96 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- -96 query I rowsort SELECT - - 58 + - col1 * + col1 * ( cor0.col1 * col2 + - cor0.col0 * col0 ) FROM tab2 AS cor0 ---- -757210 15838608 1617013 onlyif mysql # use DIV operator for integer division query I rowsort label-599 SELECT ALL col2 + - cor0.col1 DIV col1 AS col0 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-599 SELECT ALL col2 + - cor0.col1 / col1 AS col0 FROM tab1 AS cor0 ---- 53 56 95 onlyif mysql # use DIV operator for integer division query I rowsort label-600 SELECT col1 + 68 DIV + 51 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-600 SELECT col1 + 68 / + 51 FROM tab0 ---- 87 92 98 query I rowsort SELECT + col0 * + col2 * col0 + - col0 * col2 FROM tab2 AS cor0 ---- 1134 156156 234156 query I rowsort SELECT - - col1 * col1 + - col0 FROM tab1 AS cor0 ---- 36 673 89 query I rowsort SELECT DISTINCT + cor0.col0 * 32 + - ( - col1 ) AS col1 FROM tab1 AS cor0 ---- 122 2058 2573 query I rowsort SELECT DISTINCT - cor0.col0 - - col2 * 71 AS col1 FROM tab2 AS cor0 ---- 1768 1910 2619 query I rowsort SELECT DISTINCT + + col0 + 7 FROM tab0 AS cor0 ---- 31 42 96 query I rowsort SELECT - col2 + - ( col2 * + cor0.col0 ) AS col0 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT ALL - 34 * 29 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 0041b9d75ee7cdf68153b36d64c39a4f onlyif mysql # use DIV operator for integer division query I rowsort label-608 SELECT DISTINCT + col1 - col2 DIV 36 AS col2 FROM tab0 AS cor0 ---- 86 89 97 skipif mysql # not compatible query I rowsort label-608 SELECT DISTINCT + col1 - col2 / 36 AS col2 FROM tab0 AS cor0 ---- 86 89 97 query I rowsort SELECT + ( - 85 ) + col1 AS col2 FROM tab0 AS cor0 ---- 1 12 6 query I rowsort SELECT ALL col2 * + col2 + - col0 * + 67 FROM tab0 AS cor0 ---- -2344 -519 761 query I rowsort SELECT ALL - 74 AS col1 FROM tab0 AS cor0 ---- -74 -74 -74 query I rowsort SELECT - col1 + ( - col2 ) AS col2 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT col2 + - 39 AS col0 FROM tab2 ---- -1 -12 -13 query I rowsort SELECT + ( - col1 ) + col2 AS col0 FROM tab1 cor0 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-615 SELECT col1 + col1 DIV 5 + col0 AS col1 FROM tab2 AS cor0 ---- 148 44 99 skipif mysql # not compatible query I rowsort label-615 SELECT col1 + col1 / 5 + col0 AS col1 FROM tab2 AS cor0 ---- 148 44 99 query I rowsort SELECT DISTINCT + col2 + - cor0.col1 * cor0.col0 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT - col1 * + col1 + 60 + cor0.col0 FROM tab2 AS cor0 ---- -150 -3343 -894 query I rowsort SELECT ALL + 78 * col1 FROM tab1 AS cor0 ---- 1014 2028 780 query I rowsort SELECT DISTINCT - + col1 * col0 * + col0 AS col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT ALL ( - col1 + ( col2 ) ) AS col2 FROM tab2 ---- -33 -4 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor1.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-622 SELECT + - 88 DIV - col1 + 59 + + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1313 1466 637 skipif mysql # not compatible query I rowsort label-622 SELECT + - 88 / - col1 + 59 + + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1313 1466 637 query I rowsort SELECT + + cor0.col2 - + col1 AS col0 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT - col1 + col0 + - cor0.col2 AS col1 FROM tab2 AS cor0 ---- -51 -7 24 query I rowsort SELECT + col2 + - col1 + col0 FROM tab1 AS cor0 ---- 111 163 31 query I rowsort SELECT col0 + col0 * - col2 + cor0.col1 AS col2 FROM tab1 AS cor0 ---- -133 -3574 -7587 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-627 SELECT - + col2 + col2 + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-627 SELECT - + col2 + col2 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-628 SELECT ALL - cor0.col0 + + col1 DIV 91 AS col0 FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-628 SELECT ALL - cor0.col0 + + col1 / 91 AS col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - cor0.col1 + cor0.col0 * col0 FROM tab1 AS cor0 ---- -17 4086 6387 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * col2 - col2 col1 FROM tab2 cor0 ---- 1406 650 702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col0 + + col1 * cor0.col0 col0 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT + col1 - + col0 AS col0 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT col0 + - col2 + - col0 FROM tab2 AS cor0 ---- -26 -27 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 1 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to da8a72a7967c0c73d91239275230aed9 query I rowsort SELECT ALL - 91 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 745d1c3a09d935465cad552325c5c945 query I rowsort SELECT 18 + - 33 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2 onlyif mysql # use DIV operator for integer division query I rowsort label-637 SELECT - col1 - + col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-637 SELECT - col1 - + col1 / cor0.col2 AS col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col0 * col0 + - ( - col0 ) * - ( col1 * + col2 ) col1 FROM tab2 AS cor0 ---- -125736 -57275 -5908 query I rowsort SELECT col0 * + 67 + col2 AS col1 FROM tab1 AS cor0 ---- 255 4345 5456 query I rowsort SELECT + col1 + col0 * - ( + col2 ) AS col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 onlyif mysql # use DIV operator for integer division query I rowsort label-641 SELECT ALL + 20 DIV col1 AS col2 FROM tab2 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-641 SELECT ALL + 20 / col1 AS col2 FROM tab2 ---- 0 0 1 query I rowsort SELECT - cor0.col1 + + ( - cor0.col1 ) FROM tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT col1 * + col1 + - 75 - col0 * ( 50 * col2 ) FROM tab1 AS cor0 ---- -182375 -383906 -7499 onlyif mysql # use DIV operator for integer division query I rowsort label-644 SELECT - col1 DIV - col0 AS col1 FROM tab0 AS cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-644 SELECT - col1 / - col0 AS col1 FROM tab0 AS cor0 ---- 1 2 3 query I rowsort SELECT + col0 + + tab0.col2 AS col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT + - col0 * - col0 * + col0 - + cor0.col1 * - col1 FROM tab1 AS cor0 ---- 262244 512169 703 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 74 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- -74 query I rowsort SELECT ( + col2 ) * - 9 FROM tab0 AS cor0 ---- -297 -738 -9 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - tab1.col1 ) col0 FROM tab1 ---- 10 13 26 query I rowsort SELECT DISTINCT ( col1 + + col1 * - col0 ) FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT 25 * col2 AS col1 FROM tab2 ---- 650 675 950 onlyif mysql # use DIV operator for integer division query I rowsort label-653 SELECT col1 * col0 DIV - col0 FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-653 SELECT col1 * col0 / - col0 FROM tab0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-654 SELECT - 24 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-654 SELECT - 24 / col2 col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT 15 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0 query I rowsort SELECT + 96 * + col1 AS col1 FROM tab0 cor0 ---- 8256 8736 9312 query I rowsort SELECT + ( col0 ) * ( col2 ) AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT + col0 * + col1 - - col2 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT + - col0 - - col2 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT - - ( 54 ) + + col1 AS col2 FROM tab0 AS cor0 ---- 140 145 151 query I rowsort SELECT DISTINCT + col1 * - col2 + col2 FROM tab0 cor0 ---- -2805 -7380 -96 query I rowsort SELECT DISTINCT - 59 + - 96 FROM tab1 cor0 ---- -155 onlyif mysql # use DIV operator for integer division query I rowsort label-663 SELECT - 57 * + col0 DIV - col0 - - ( col1 ) FROM tab1 AS cor0 ---- 67 70 83 skipif mysql # not compatible query I rowsort label-663 SELECT - 57 * + col0 / - col0 - - ( col1 ) FROM tab1 AS cor0 ---- 67 70 83 query I rowsort SELECT + col1 + + ( col1 ) * col0 FROM tab2 cor0 ---- 1360 248 4661 onlyif mysql # use DIV operator for integer division query I rowsort label-665 SELECT + 99 DIV + col0 + - col0 AS col1 FROM tab1 AS cor0 ---- -63 -79 30 skipif mysql # not compatible query I rowsort label-665 SELECT + 99 / + col0 + - col0 AS col1 FROM tab1 AS cor0 ---- -63 -79 30 onlyif mysql # use DIV operator for integer division query I rowsort label-666 SELECT DISTINCT - 6 DIV + col0 AS col2 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-666 SELECT DISTINCT - 6 / + col0 AS col2 FROM tab2 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-667 SELECT + cor0.col0 DIV + col2 + - col1 + - 1 AS col0 FROM tab0 AS cor0 ---- -63 -87 -91 skipif mysql # not compatible query I rowsort label-667 SELECT + cor0.col0 / + col2 + - col1 + - 1 AS col0 FROM tab0 AS cor0 ---- -63 -87 -91 query I rowsort SELECT ALL - - ( col1 ) + 94 * + ( col1 + + 21 ) AS col0 FROM tab2 AS cor0 ---- 3589 4919 7579 query I rowsort SELECT ALL 20 + - col1 - - 21 FROM tab0 AS cor0 ---- -45 -50 -56 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-670 SELECT ALL + col0 * + cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-670 SELECT ALL + col0 * + cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col0 - cor0.col0 FROM tab2 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col2 + col1 col0 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT ALL - col2 - col0 * + col2 FROM tab1 ---- -216 -3705 -7776 onlyif mysql # use DIV operator for integer division query I rowsort label-674 SELECT 11 * col1 + col1 DIV 2 FROM tab1 AS cor0 ---- 115 149 299 skipif mysql # not compatible query I rowsort label-674 SELECT 11 * col1 + col1 / 2 FROM tab1 AS cor0 ---- 115 149 299 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-675 SELECT DISTINCT 2 * col2 + - CAST( + ( cor0.col0 ) AS SIGNED ) AS col2 FROM tab2 cor0 ---- -26 -3 47 skipif mysql # not compatible query I rowsort label-675 SELECT DISTINCT 2 * col2 + - CAST ( + ( cor0.col0 ) AS INTEGER ) AS col2 FROM tab2 cor0 ---- -26 -3 47 query I rowsort SELECT + col0 * - 86 AS col1 FROM tab2 AS cor0 ---- -602 -6708 -6794 query I rowsort SELECT 2 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261 query I rowsort SELECT - cor0.col0 * + 3 AS col2 FROM tab1 AS cor0 ---- -192 -240 -9 query I rowsort SELECT ALL 18 * + 91 FROM tab1 AS cor0 ---- 1638 1638 1638 query I rowsort SELECT - 15 FROM tab0, tab1 cor0 ---- 9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2 query I rowsort SELECT ALL - 49 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae query I rowsort SELECT DISTINCT + + ( - col1 ) FROM tab1 cor0 ---- -10 -13 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-683 SELECT col0 DIV - ( + col1 ) AS col1 FROM tab2 ---- -1 -4 0 skipif mysql # not compatible query I rowsort label-683 SELECT col0 / - ( + col1 ) AS col1 FROM tab2 ---- -1 -4 0 query I rowsort SELECT + col1 * col0 - 17 * tab0.col0 AS col0 FROM tab0 ---- 1656 2800 6586 query I rowsort SELECT - col0 * tab2.col2 - - 67 AS col2 FROM tab2 ---- -122 -1961 -2935 query I rowsort SELECT ALL + ( - col1 ) + + col2 AS col1 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT DISTINCT col0 + 59 FROM tab1 AS cor0 ---- 123 139 62 onlyif mysql # use DIV operator for integer division query I rowsort label-688 SELECT ALL - col1 DIV cor0.col1 col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-688 SELECT ALL - col1 / cor0.col1 col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col0 col0 FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-690 SELECT cor1.col2 * - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-690 SELECT cor1.col2 * - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-691 SELECT ALL - CAST( NULL AS SIGNED ) * 71 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-691 SELECT ALL - CAST ( NULL AS INTEGER ) * 71 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-692 SELECT - cor0.col2 DIV - cor0.col0 FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-692 SELECT - cor0.col2 / - cor0.col0 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT DISTINCT col0 * 2 * col0 AS col2 FROM tab2 AS cor0 ---- 12168 12482 98 onlyif mysql # use DIV operator for integer division query I rowsort label-694 SELECT DISTINCT - 39 + - col0 DIV - col1 AS col0 FROM tab1 ---- -33 -39 skipif mysql # not compatible query I rowsort label-694 SELECT DISTINCT - 39 + - col0 / - col1 AS col0 FROM tab1 ---- -33 -39 onlyif mysql # use DIV operator for integer division query I rowsort label-695 SELECT - tab2.col1 DIV - 51 FROM tab2 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-695 SELECT - tab2.col1 / - 51 FROM tab2 ---- 0 0 1 query I rowsort SELECT DISTINCT col0 * - col0 + + col2 FROM tab0 ---- -1224 -543 -7839 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-697 SELECT + CAST( + col0 AS SIGNED ) + col2 + col2 FROM tab1 AS cor0 ---- 111 178 272 skipif mysql # not compatible query I rowsort label-697 SELECT + CAST ( + col0 AS INTEGER ) + col2 + col2 FROM tab1 AS cor0 ---- 111 178 272 query I rowsort SELECT ALL - col2 * cor0.col2 + - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1461 -735 -760 query I rowsort SELECT DISTINCT - 83 * + col2 * col0 AS col2 FROM tab1 cor0 ---- -13446 -302784 -637440 query I rowsort SELECT ALL + 19 + col2 AS col2 FROM tab1 ---- 115 73 76 query I rowsort SELECT DISTINCT - 78 * + 70 + - col2 AS col0 FROM tab2 ---- -5486 -5487 -5498 query I rowsort SELECT DISTINCT + 46 + col1 * + col0 FROM tab0 ---- 2110 3441 8145 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + - col1 * - 74 * + ( tab1.col1 ) col1 FROM tab1 ---- 12493 49998 7390 onlyif mysql # use DIV operator for integer division query I rowsort label-704 SELECT DISTINCT - - col2 - col2 DIV + col0 AS col2 FROM tab2 AS cor0 ---- 24 26 38 skipif mysql # not compatible query I rowsort label-704 SELECT DISTINCT - - col2 - col2 / + col0 AS col2 FROM tab2 AS cor0 ---- 24 26 38 query I rowsort SELECT ALL col0 * + 19 * col1 + + col0 * + ( col2 ) * col1 FROM tab1 AS cor0 ---- 119600 48640 5694 onlyif mysql # use DIV operator for integer division query I rowsort label-706 SELECT ALL + col0 + - tab1.col2 DIV 71 AS col2 FROM tab1 ---- 3 64 79 skipif mysql # not compatible query I rowsort label-706 SELECT ALL + col0 + - tab1.col2 / 71 AS col2 FROM tab1 ---- 3 64 79 query I rowsort SELECT DISTINCT col1 * - 7 FROM tab0 AS cor0 ---- -602 -637 -679 query I rowsort SELECT tab2.col1 + tab2.col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-709 SELECT ALL - col0 + col0 * - CAST( + col0 * col2 AS SIGNED ) col0 FROM tab1 ---- -233536 -489 -614480 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-709 SELECT ALL - col0 + col0 * - CAST ( + col0 * col2 AS INTEGER ) col0 FROM tab1 ---- -233536 -489 -614480 onlyif mysql # use DIV operator for integer division query I rowsort label-710 SELECT 73 * + col1 * + 96 + col0 DIV col0 FROM tab0 ---- 602689 637729 679777 skipif mysql # not compatible query I rowsort label-710 SELECT 73 * + col1 * + 96 + col0 / col0 FROM tab0 ---- 602689 637729 679777 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab1, tab0 cor0, tab1 cor1 ---- 972 values hashing to 7942394eb7766dfb9ea95b7805ff595d 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-713 SELECT ALL + col1 DIV 79 col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-713 SELECT ALL + col1 / 79 col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col1 + col1 * ( + col1 ) AS col2 FROM tab1 AS cor0 ---- 110 182 702 query I rowsort SELECT DISTINCT col0 * cor0.col1 - cor0.col2 FROM tab1 AS cor0 ---- 24 583 944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 + + col0 * col2 col1 FROM tab0 AS cor0 ---- -62 706 7207 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 * 40 col2 FROM tab0 AS cor0 ---- 1320 3280 40 query I rowsort SELECT ALL + - col2 + col1 * 98 + col1 AS col1 FROM tab1 AS cor0 ---- 1191 2520 933 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-719 SELECT ALL - col1 * CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-719 SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-720 SELECT ALL - + col2 DIV - 70 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-720 SELECT ALL - + col2 / - 70 FROM tab0 AS cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * cor0.col2 col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-722 SELECT + col1 + CAST( NULL AS SIGNED ) / - cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-722 SELECT + col1 + CAST ( NULL AS INTEGER ) / - cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-723 SELECT DISTINCT - col0 * 30 + 84 DIV cor0.col1 FROM tab1 AS cor0 ---- -1912 -2394 -87 skipif mysql # not compatible query I rowsort label-723 SELECT DISTINCT - col0 * 30 + 84 / cor0.col1 FROM tab1 AS cor0 ---- -1912 -2394 -87 query I rowsort SELECT ALL ( 82 ) + col2 FROM tab2 ---- 108 109 120 query I rowsort SELECT + - col2 * - col1 + ( col2 ) AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT + 65 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 1c9d0bf96cd3361942fadad668138b9c query I rowsort SELECT DISTINCT - col0 + + cor0.col1 FROM tab0 cor0 ---- 2 62 query I rowsort SELECT 3 * + col0 AS col2 FROM tab1 AS cor0 ---- 192 240 9 query I rowsort SELECT ALL + col0 - - cor0.col0 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT DISTINCT - cor1.col2 + + 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- -56 -7 25 query I rowsort SELECT + - col0 + - col0 + col1 FROM tab1 AS cor0 ---- -118 -147 20 query I rowsort SELECT + + 1 * col2 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-733 SELECT DISTINCT - col2 DIV - cor0.col0 + ( + col2 ) * + col1 AS col1 FROM tab1 AS cor0 ---- 1249 1422 570 skipif mysql # not compatible query I rowsort label-733 SELECT DISTINCT - col2 / - cor0.col0 + ( + col2 ) * + col1 AS col1 FROM tab1 AS cor0 ---- 1249 1422 570 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2 ---- 3645 values hashing to 160649b428b8d254517cd2096e054d21 query I rowsort SELECT DISTINCT col0 * col1 + + 43 FROM tab1 AS cor0 ---- 1083 121 683 query I rowsort SELECT + - col2 + col0 * col2 FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT cor0.col2 + 7 AS col2 FROM tab2 cor0 ---- 33 34 45 query I rowsort SELECT ALL - col0 * 36 - - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -2247 -2784 -54 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + ( - col2 ) col0 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT DISTINCT col1 + - cor0.col2 * 34 FROM tab2 AS cor0 ---- -1275 -825 -887 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-741 SELECT DISTINCT + - col0 + + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-741 SELECT DISTINCT + - col0 + + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-742 SELECT - col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-742 SELECT - col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col0 * 21 AS col0 FROM tab2 AS cor0 ---- -147 -1638 -1659 query I rowsort SELECT DISTINCT - 12 + col0 FROM tab2 AS cor0 ---- -5 66 67 query I rowsort SELECT - cor0.col2 + col0 * - cor0.col0 * col1 FROM tab2 AS cor0 ---- -106135 -1546 -358982 query I rowsort SELECT DISTINCT col1 * + 6 FROM tab1 AS cor0 ---- 156 60 78 query I rowsort SELECT - ( col2 ) * + col1 + 68 AS col2 FROM tab0 AS cor0 ---- -2770 -29 -7394 query I rowsort SELECT ALL + cor0.col1 * - col2 + - col2 AS col1 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT ALL - - cor0.col1 * - cor0.col0 + + col0 * col2 AS col1 FROM tab2 AS cor0 ---- -2574 -28 1659 query I rowsort SELECT ALL + cor1.col0 FROM tab0, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT - + ( + ( col0 ) ) * col0 + 25 * col0 FROM tab2 cor0 ---- -4134 -4266 126 query I rowsort SELECT ALL ( - 53 ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d query I rowsort SELECT - col2 * 54 - + col2 FROM tab2 AS cor0 ---- -1430 -1485 -2090 onlyif mysql # use DIV operator for integer division query I rowsort label-754 SELECT ( 5 ) DIV - col2 + col2 FROM tab0 AS cor0 ---- -4 33 82 skipif mysql # not compatible query I rowsort label-754 SELECT ( 5 ) / - col2 + col2 FROM tab0 AS cor0 ---- -4 33 82 query I rowsort SELECT + 3 + + col1 FROM tab1 AS cor0 ---- 13 16 29 query I rowsort SELECT col2 - - 5 FROM tab1 AS cor0 ---- 101 59 62 query I rowsort SELECT DISTINCT tab2.col2 + + 56 + 44 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 126 127 138 query I rowsort SELECT + + 3 * col2 AS col0 FROM tab1 AS cor0 ---- 162 171 288 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + 61 ) - + col2 * col1 col2 FROM tab0 AS cor0 ---- -158 -2899 -7523 query I rowsort SELECT + - ( - col0 ) - col2 AS col0 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT - ( 3 ) FROM tab0 AS cor0 ---- -3 -3 -3 query I rowsort SELECT ALL - 55 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to b90e74bece5521b514096c5b6e105fde query I rowsort SELECT + 44 + + col1 FROM tab1 AS cor0 ---- 54 57 70 query I rowsort SELECT ALL + 16 * + col0 - + ( 74 ) * + col1 FROM tab2 AS cor0 ---- -2182 -3118 6 query I rowsort SELECT + ( 6 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 5d1cb90ed58fa7573895d2f95b211821 query I rowsort SELECT + - cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT - + col2 * - ( - col2 ) FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT cor0.col1 + 48 FROM tab1, tab2 AS cor0 ---- 9 values hashing to baa3880a16e4ff665796379a71bd1bd1 query I rowsort SELECT DISTINCT - 26 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- -26 query I rowsort SELECT ALL ( cor0.col1 ) + - cor0.col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT + - col1 * ( cor0.col0 ) FROM tab2 AS cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-772 SELECT DISTINCT + tab1.col0 DIV ( + col2 ) FROM tab1 ---- 0 1 skipif mysql # not compatible query I rowsort label-772 SELECT DISTINCT + tab1.col0 / ( + col2 ) FROM tab1 ---- 0 1 query I rowsort SELECT 76 FROM tab0, tab2 cor0 ---- 9 values hashing to 30b8941a700cffd5b983116383bd42d5 query I rowsort SELECT ALL 31 * + 80 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 50a4aa55475010dee5619e03a286767d query I rowsort SELECT + + col2 * col0 - + cor0.col2 FROM tab2 AS cor0 ---- 162 2002 2964 onlyif mysql # use DIV operator for integer division query I rowsort label-776 SELECT + col0 * col2 DIV + col0 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-776 SELECT + col0 * col2 / + col0 FROM tab2 ---- 26 27 38 query I rowsort SELECT + 84 * cor0.col1 FROM tab0 cor0 ---- 7224 7644 8148 query I rowsort SELECT + col0 + col1 AS col1 FROM tab2 cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-779 SELECT ALL - col1 + - col1 DIV - col2 FROM tab1 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-779 SELECT ALL - col1 + - col1 / - col2 FROM tab1 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-780 SELECT ALL - col0 * CAST( 23 AS SIGNED ) + col2 AS col2 FROM tab0 ---- -1965 -519 -804 skipif mysql # not compatible query I rowsort label-780 SELECT ALL - col0 * CAST ( 23 AS INTEGER ) + col2 AS col2 FROM tab0 ---- -1965 -519 -804 onlyif mysql # use DIV operator for integer division query I rowsort label-781 SELECT ALL - col1 * - 98 + col1 DIV - col1 FROM tab0 AS cor0 ---- 8427 8917 9505 skipif mysql # not compatible query I rowsort label-781 SELECT ALL - col1 * - 98 + col1 / - col1 FROM tab0 AS cor0 ---- 8427 8917 9505 query I rowsort SELECT ALL col2 + 61 * 45 AS col2 FROM tab2 AS cor0 ---- 2771 2772 2783 query I rowsort SELECT - - col2 - ( + cor0.col0 ) AS col0 FROM tab0 AS cor0 ---- -34 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-784 SELECT - col1 * + ( ( cor0.col1 ) ) + + cor0.col0 DIV + col2 FROM tab0 cor0 ---- -7396 -8280 -9374 skipif mysql # not compatible query I rowsort label-784 SELECT - col1 * + ( ( cor0.col1 ) ) + + cor0.col0 / + col2 FROM tab0 cor0 ---- -7396 -8280 -9374 query I rowsort SELECT DISTINCT cor2.col2 FROM tab1, tab2 cor0, tab2 AS cor1, tab0 AS cor2 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 + + cor0.col2 col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT - - col1 + - 83 * col1 * + col0 FROM tab1 AS cor0 ---- -53110 -6448 -86307 query I rowsort SELECT - 15 - - 24 FROM tab2 ---- 9 9 9 onlyif mysql # use DIV operator for integer division query I rowsort label-789 SELECT 50 DIV - col1 - col0 AS col0 FROM tab1 ---- -4 -69 -83 skipif mysql # not compatible query I rowsort label-789 SELECT 50 / - col1 - col0 AS col0 FROM tab1 ---- -4 -69 -83 query I rowsort SELECT 43 FROM tab0, tab2, tab1 cor0 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-791 SELECT CAST( NULL AS SIGNED ) * - 13 + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-791 SELECT CAST ( NULL AS INTEGER ) * - 13 + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e query I rowsort SELECT DISTINCT - 78 AS col0 FROM tab2, tab0 AS cor0 ---- -78 query I rowsort SELECT DISTINCT 84 * - ( col2 ) AS col0 FROM tab1 ---- -4536 -4788 -8064 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-795 SELECT + col1 * - ( col1 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-795 SELECT + col1 * - ( col1 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 60 * col2 AS col0 FROM tab2 AS cor0 ---- 1560 1620 2280 query I rowsort SELECT - 11 + col0 FROM tab1 AS cor0 ---- -8 53 69 query I rowsort SELECT ALL - + 60 FROM tab0 AS cor0 ---- -60 -60 -60 query I rowsort SELECT + 46 * - cor0.col2 FROM tab0 AS cor0 ---- -1518 -3772 -46 query I rowsort SELECT ALL col2 * col2 * - cor0.col0 FROM tab2 AS cor0 ---- -114076 -5103 -52728 onlyif mysql # use DIV operator for integer division query I rowsort label-801 SELECT ALL - 7 DIV - col2 AS col1 FROM tab0 AS cor0 ---- 0 0 7 skipif mysql # not compatible query I rowsort label-801 SELECT ALL - 7 / - col2 AS col1 FROM tab0 AS cor0 ---- 0 0 7 query I rowsort SELECT col1 + + col1 * ( col1 ) FROM tab2 cor0 ---- 306 3540 992 query I rowsort SELECT DISTINCT - 7 + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -40 -8 -89 query I rowsort SELECT + col2 * + col2 * cor0.col1 FROM tab0 AS cor0 ---- 611884 93654 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 * - col1 col1 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL - ( - col0 ) * + ( ( col0 ) ) FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # use DIV operator for integer division query I rowsort label-807 SELECT ALL col2 - + col2 DIV + 14 FROM tab0 AS cor0 ---- 1 31 77 skipif mysql # not compatible query I rowsort label-807 SELECT ALL col2 - + col2 / + 14 FROM tab0 AS cor0 ---- 1 31 77 query I rowsort SELECT ALL - - 4 + col1 AS col2 FROM tab2 AS cor0 ---- 21 35 63 onlyif mysql # use DIV operator for integer division query I rowsort label-809 SELECT DISTINCT - col1 + col2 DIV 9 + - 4 AS col0 FROM tab1 AS cor0 ---- -24 -7 -8 skipif mysql # not compatible query I rowsort label-809 SELECT DISTINCT - col1 + col2 / 9 + - 4 AS col0 FROM tab1 AS cor0 ---- -24 -7 -8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-810 SELECT ALL + CAST( col0 AS SIGNED ) AS col2 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-810 SELECT ALL + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-811 SELECT - - col2 DIV cor0.col1 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-811 SELECT - - col2 / cor0.col1 FROM tab1 AS cor0 ---- 2 5 7 onlyif mysql # use DIV operator for integer division query I rowsort label-812 SELECT - 92 DIV col1 FROM tab2 AS cor0 ---- -1 -2 -5 skipif mysql # not compatible query I rowsort label-812 SELECT - 92 / col1 FROM tab2 AS cor0 ---- -1 -2 -5 query I rowsort SELECT DISTINCT col1 + col1 * col2 AS col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT + ( - col0 ) + + 83 AS col2 FROM tab2 AS cor0 ---- 4 5 76 query I rowsort SELECT - 79 * - col1 AS col2 FROM tab1 AS cor0 ---- 1027 2054 790 query I rowsort SELECT - - ( - cor0.col2 ) * 25 FROM tab2 cor0 ---- -650 -675 -950 query I rowsort SELECT DISTINCT + + col0 * cor0.col2 * - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1323 -158184 -237158 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 69 col0 FROM tab2 ---- 69 query I rowsort SELECT ALL - col2 * + col0 + - col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT ALL + ( - col1 ) * col1 FROM tab0 cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-821 SELECT ALL + 89 * 3 - + col1 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- 267 267 267 skipif mysql # not compatible query I rowsort label-821 SELECT ALL + 89 * 3 - + col1 / CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- 267 267 267 query I rowsort SELECT + 80 + - col2 FROM tab0 AS cor0 ---- -2 47 79 query I rowsort SELECT DISTINCT - + 62 * ( - col0 + col0 ) AS col2 FROM tab1 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-824 SELECT DISTINCT 23 DIV - col0 + cor0.col0 FROM tab1 AS cor0 ---- -4 64 80 skipif mysql # not compatible query I rowsort label-824 SELECT DISTINCT 23 / - col0 + cor0.col0 FROM tab1 AS cor0 ---- -4 64 80 query I rowsort SELECT ALL 89 * col1 + + col1 * + col2 FROM tab0 AS cor0 ---- 10492 15561 8730 query I rowsort SELECT + - 98 * col2 AS col2 FROM tab1 AS cor0 ---- -5292 -5586 -9408 query I rowsort SELECT DISTINCT col1 + 47 FROM tab0 cor0 ---- 133 138 144 query I rowsort SELECT 91 + col0 * cor0.col0 FROM tab2 AS cor0 ---- 140 6175 6332 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-829 SELECT col2 + - ( col2 + - CAST( NULL AS SIGNED ) ) * ( + col1 ) * col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-829 SELECT col2 + - ( col2 + - CAST ( NULL AS INTEGER ) ) * ( + col1 ) * col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-830 SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-830 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * col0 + + col0 * + 40 col1 FROM tab0 AS cor0 ---- -1104 -1995 -4539 query I rowsort SELECT DISTINCT ( + col1 ) * - cor0.col1 * col0 + col2 AS col0 FROM tab1 AS cor0 ---- -13424 -1974 -6343 query I rowsort SELECT DISTINCT col1 * 86 FROM tab0 AS cor0 ---- 7396 7826 8342 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-834 SELECT ALL col2 + + CAST( NULL AS SIGNED ) * - 70 AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-834 SELECT ALL col2 + + CAST ( NULL AS INTEGER ) * - 70 AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 + col0 * + col2 AS col2 FROM tab0 ---- 70 7387 816 query I rowsort SELECT DISTINCT col1 + ( - col2 ) * - col0 - col0 FROM tab1 ---- 185 3594 7613 query I rowsort SELECT ALL col2 * + col1 + + ( - col2 ) * 2 - 17 FROM tab1 ---- 1039 1279 439 onlyif mysql # use DIV operator for integer division query I rowsort label-838 SELECT DISTINCT col2 + - col2 DIV - col0 FROM tab1 ---- 57 72 97 skipif mysql # not compatible query I rowsort label-838 SELECT DISTINCT col2 + - col2 / - col0 FROM tab1 ---- 57 72 97 query I rowsort SELECT DISTINCT - col1 * col1 * col1 + ( + tab0.col0 * col2 ) AS col0 FROM tab0 ---- -635264 -746273 -912638 onlyif mysql # use DIV operator for integer division query I rowsort label-840 SELECT + ( 64 ) DIV + cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-840 SELECT + ( 64 ) / + cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-841 SELECT DISTINCT + col2 DIV ( + col1 ) FROM tab2 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-841 SELECT DISTINCT + col2 / ( + col1 ) FROM tab2 AS cor0 ---- 0 2 query I rowsort SELECT 72 + - col0 * - col2 AS col1 FROM tab1 AS cor0 ---- 234 3720 7752 query I rowsort SELECT DISTINCT - + col0 * 77 FROM tab0 AS cor0 ---- -1848 -2695 -6853 query I rowsort SELECT DISTINCT - 79 FROM tab2, tab1 cor0 ---- -79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-845 SELECT + col1 * - CAST( col0 AS SIGNED ) + - col1 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-845 SELECT + col1 * - CAST ( col0 AS INTEGER ) + - col1 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT cor0.col1 + - ( - col1 ) + col1 FROM tab2 AS cor0 ---- 177 51 93 query I rowsort SELECT + col0 + 51 FROM tab0 AS cor0 ---- 140 75 86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + col2 col0 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT col1 * ( - 6 ) AS col2 FROM tab0 ---- -516 -546 -582 query I rowsort SELECT DISTINCT - 67 * cor0.col1 AS col1 FROM tab1, tab1 AS cor0 ---- -1742 -670 -871 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-851 SELECT CAST( NULL AS SIGNED ) - + 50 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-851 SELECT CAST ( NULL AS INTEGER ) - + 50 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT 20 + - 72 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 9500afe5646d620d5e8943351a29d082 onlyif mysql # use DIV operator for integer division query I rowsort label-853 SELECT - cor0.col0 DIV - 99 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-853 SELECT - cor0.col0 / - 99 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c onlyif mysql # use DIV operator for integer division query I rowsort label-854 SELECT DISTINCT - ( + col1 ) DIV col0 AS col0 FROM tab1 ---- -8 0 skipif mysql # not compatible query I rowsort label-854 SELECT DISTINCT - ( + col1 ) / col0 AS col0 FROM tab1 ---- -8 0 query I rowsort SELECT + 93 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde query I rowsort SELECT DISTINCT 80 * + 78 AS col0 FROM tab0 ---- 6240 query I rowsort SELECT ALL - 44 + cor0.col2 FROM tab0 AS cor0 ---- -11 -43 38 query I rowsort SELECT DISTINCT - 95 * col0 AS col1 FROM tab2 AS cor0 ---- -665 -7410 -7505 query I rowsort SELECT DISTINCT + 98 * + col0 AS col1 FROM tab1 AS cor0 ---- 294 6272 7840 query I rowsort SELECT ALL 93 * + col1 AS col2 FROM tab0 AS cor0 ---- 7998 8463 9021 query I rowsort SELECT + + col0 + + col2 * col0 AS col1 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT ALL + + cor0.col2 * col0 + 34 * col1 AS col1 FROM tab1 AS cor0 ---- 1046 3988 8122 query I rowsort SELECT + + col2 * - cor0.col2 + col1 FROM tab1 AS cor0 ---- -2890 -3239 -9203 query I rowsort SELECT + col2 * + 28 FROM tab1 AS cor0 ---- 1512 1596 2688 onlyif mysql # use DIV operator for integer division query I rowsort label-865 SELECT DISTINCT col1 + col1 DIV col2 FROM tab1 cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-865 SELECT DISTINCT col1 + col1 / col2 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + col2 * - ( + col0 ) AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col2 + 8 col0 FROM tab2 AS cor0 ---- -18 -19 -30 query I rowsort SELECT ALL col2 * ( col1 ) * col1 AS col0 FROM tab0 cor0 ---- 244068 679042 9409 query I rowsort SELECT - cor1.col2 * 89 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 79cd8a4e75d6d7556780bc6a05c4373d onlyif mysql # use DIV operator for integer division query I rowsort label-870 SELECT - + col0 DIV + col1 + + col0 DIV col2 AS col2 FROM tab0 AS cor0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-870 SELECT - + col0 / + col1 + + col0 / col2 AS col2 FROM tab0 AS cor0 ---- 0 1 35 query I rowsort SELECT + ( + col2 ) * + col0 + - 63 * 46 * - col1 FROM tab1 cor0 ---- 32628 45354 75510 query I rowsort SELECT 28 + + col0 * cor0.col2 FROM tab0 AS cor0 ---- 63 7326 820 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col2 ) + - col2 col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 * + cor0.col2 + + col1 + ( col1 ) FROM tab0 cor0 ---- -2666 -7280 97 query I rowsort SELECT + - col2 + col1 * col1 * - 46 + col0 AS col2 FROM tab2 AS cor0 ---- -13253 -160074 -44226 query I rowsort SELECT + col2 + 91 * + col2 AS col1 FROM tab1 cor0 ---- 4968 5244 8832 query I rowsort SELECT - ( ( col1 ) ) + + col2 AS col2 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT 48 * - col1 FROM tab1 cor0 ---- -1248 -480 -624 query I rowsort SELECT + cor0.col1 * col2 * col1 FROM tab1 cor0 ---- 16224 36504 5700 query I rowsort SELECT + 78 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 onlyif mysql # use DIV operator for integer division query I rowsort label-881 SELECT - + cor0.col1 DIV col0 AS col0 FROM tab2 AS cor0 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-881 SELECT - + cor0.col1 / col0 AS col0 FROM tab2 AS cor0 ---- -4 0 0 query I rowsort SELECT DISTINCT 15 + - col0 * + col0 AS col1 FROM tab1 AS cor0 ---- -4081 -6385 6 query I rowsort SELECT DISTINCT - 88 * col2 * col2 FROM tab0 AS cor0 ---- -591712 -88 -95832 query I rowsort SELECT ALL + + 59 + + col1 FROM tab2 cor0 ---- 118 76 90 query I rowsort SELECT + col0 + 26 * col2 FROM tab1 cor0 ---- 1407 1546 2576 query I rowsort SELECT ALL + 27 * 47 AS col1 FROM tab1 AS cor0 ---- 1269 1269 1269 query I rowsort SELECT DISTINCT + 30 * + col2 FROM tab2 AS cor0 ---- 1140 780 810 query I rowsort SELECT + 31 * - col2 AS col1 FROM tab0 AS cor0 ---- -1023 -2542 -31 query I rowsort SELECT ALL + col1 + ( + col2 ) * col2 + 49 AS col2 FROM tab0 ---- 1224 147 6864 query I rowsort SELECT ALL col0 + + 54 + - tab0.col0 FROM tab0 ---- 54 54 54 query I rowsort SELECT ALL - col1 * - col1 + + col1 + col2 FROM tab2 AS cor0 ---- 1019 344 3566 query I rowsort SELECT ALL - - col1 + - ( - col0 ) AS col2 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL + 21 * 47 FROM tab0 ---- 987 987 987 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-894 SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( - col2 ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-894 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( - col2 ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + col2 * + col1 + - col0 * ( 33 ) AS col1 FROM tab0 ---- -1058 2046 4525 query I rowsort SELECT DISTINCT 96 AS col1 FROM tab0, tab2 AS cor0 ---- 96 query I rowsort SELECT DISTINCT + col0 * + 38 + 3 AS col1 FROM tab1 AS cor0 ---- 117 2435 3043 query I rowsort SELECT DISTINCT + + col2 * + cor0.col2 + ( + col2 ) FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT DISTINCT - cor0.col0 * + ( - col0 ) + - col1 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT DISTINCT + col0 * - tab0.col1 + col2 FROM tab0 ---- -2031 -3394 -8017 onlyif mysql # use DIV operator for integer division query I rowsort label-901 SELECT col2 DIV - col2 + + ( - col1 * col2 ) AS col0 FROM tab1 ---- -1249 -1405 -571 skipif mysql # not compatible query I rowsort label-901 SELECT col2 / - col2 + + ( - col1 * col2 ) AS col0 FROM tab1 ---- -1249 -1405 -571 query I rowsort SELECT - col2 * - col2 + - col2 AS col1 FROM tab1 ---- 2862 3192 9120 query I rowsort SELECT + cor0.col0 + + 99 FROM tab1 AS cor0 ---- 102 163 179 query I rowsort SELECT DISTINCT - col0 * ( - col0 ) FROM tab2 ---- 49 6084 6241 query I rowsort SELECT ALL - col2 * 3 * 98 AS col1 FROM tab2 ---- -11172 -7644 -7938 query I rowsort SELECT DISTINCT 18 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 18 query I rowsort SELECT ALL cor0.col0 + col1 AS col1 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT + tab2.col1 + col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL 46 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 31818c9d4d325eb248735c97cb1dce39 query I rowsort SELECT DISTINCT col1 * + col2 + + col2 * - col0 * col1 AS col0 FROM tab1 AS cor0 ---- -2808 -35910 -98592 query I rowsort SELECT cor0.col2 + - 36 AS col1 FROM tab1 cor0 ---- 18 21 60 query I rowsort SELECT ALL + col1 * - cor0.col2 - 0 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL - cor0.col1 * - col0 + - col2 + col2 * 23 FROM tab1 AS cor0 ---- 1266 1894 3152 query I rowsort SELECT 75 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e61b59795204c348103a58c0a8e4ce16 query I rowsort SELECT DISTINCT - col1 + - col1 + + col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT - 97 AS col1 FROM tab1 cor0 ---- -97 -97 -97 query I rowsort SELECT - - col1 + 4 AS col0 FROM tab2 AS cor0 ---- 21 35 63 query I rowsort SELECT - 47 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 6942a0d9558277afd0d00408d65cf5aa query I rowsort SELECT ALL + + col0 + - col1 * col0 AS col1 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT ALL + col1 + col0 - + col2 AS col0 FROM tab1 AS cor0 ---- -25 -3 17 query I rowsort SELECT - col1 + + col1 + - col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT - cor0.col2 + col1 + col1 FROM tab0 AS cor0 ---- 100 139 193 query I rowsort SELECT ALL - col1 + col2 * ( + col0 + + col1 * 74 ) FROM tab0 ---- 210718 559395 7116 onlyif mysql # use DIV operator for integer division query I rowsort label-924 SELECT ALL col2 * col2 + + 9 DIV col1 FROM tab1 ---- 2916 3249 9216 skipif mysql # not compatible query I rowsort label-924 SELECT ALL col2 * col2 + + 9 / col1 FROM tab1 ---- 2916 3249 9216 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-925 SELECT DISTINCT + + col0 * col0 * CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-925 SELECT DISTINCT + + col0 * col0 * CAST ( NULL AS INTEGER ) + col2 FROM tab0 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-926 SELECT col2 + + col2 DIV col2 AS col0 FROM tab1 cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-926 SELECT col2 + + col2 / col2 AS col0 FROM tab1 cor0 ---- 55 58 97 onlyif mysql # use DIV operator for integer division query I rowsort label-927 SELECT - col0 DIV + col0 + - 64 * - 55 * col2 AS col1 FROM tab2 AS cor0 ---- 133759 91519 95039 skipif mysql # not compatible query I rowsort label-927 SELECT - col0 / + col0 + - 64 * - 55 * col2 AS col1 FROM tab2 AS cor0 ---- 133759 91519 95039 onlyif mysql # use DIV operator for integer division query I rowsort label-928 SELECT DISTINCT + 48 + col1 DIV col0 FROM tab2 AS cor0 ---- 48 52 skipif mysql # not compatible query I rowsort label-928 SELECT DISTINCT + 48 + col1 / col0 FROM tab2 AS cor0 ---- 48 52 query I rowsort SELECT cor0.col2 * col1 - + col2 * - 75 AS col0 FROM tab0 AS cor0 ---- 13612 172 5313 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + 53 + 73 col1 FROM tab2 AS cor0 ---- 133 204 205 query I rowsort SELECT + cor0.col2 * col1 + ( - col2 ) AS col2 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT col0 + ( 13 ) FROM tab0 AS cor0 ---- 102 37 48 query I rowsort SELECT DISTINCT - + col1 - ( + col1 ) FROM tab1 AS cor0 ---- -20 -26 -52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-934 SELECT DISTINCT + col1 * + CAST( 45 AS SIGNED ) FROM tab2 AS cor0 ---- 1395 2655 765 skipif mysql # not compatible query I rowsort label-934 SELECT DISTINCT + col1 * + CAST ( 45 AS INTEGER ) FROM tab2 AS cor0 ---- 1395 2655 765 query I rowsort SELECT + col1 + 4 AS col2 FROM tab0 AS cor0 ---- 101 90 95 query I rowsort SELECT - - col1 + 42 * col1 AS col0 FROM tab2 AS cor0 ---- 1333 2537 731 query I rowsort SELECT ALL col2 * col2 + col1 AS col2 FROM tab0 cor0 ---- 1175 6815 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * - col1 - col2 col2 FROM tab1 AS cor0 ---- 24 583 944 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-939 SELECT ALL + + col1 + CAST( NULL AS SIGNED ) / col1 + + col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-939 SELECT ALL + + col1 + CAST ( NULL AS INTEGER ) / col1 + + col1 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 27 * col2 + + ( + tab0.col0 ) AS col2 FROM tab0 ---- 2303 62 915 query I rowsort SELECT ALL 17 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e0dd9155e4d67132637a04c18ef46b2a query I rowsort SELECT ALL + 77 * col0 * col1 + col0 * col1 - col0 AS col0 FROM tab2 ---- 104675 16919 358878 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + + col0 * - col2 col1 FROM tab2 ---- -182 -1950 -2923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-944 SELECT + col1 + col1 * CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-944 SELECT + col1 + col1 * CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 70 * + col2 FROM tab2 AS cor0 ---- 1820 1890 2660 query I rowsort SELECT + - 32 * - col2 AS col1 FROM tab1 cor0 ---- 1728 1824 3072 query I rowsort SELECT - - col2 * 7 - col1 AS col0 FROM tab2 AS cor0 ---- 123 158 249 onlyif mysql # use DIV operator for integer division query I rowsort label-948 SELECT + col0 DIV col2 + col2 * col2 FROM tab0 AS cor0 ---- 1089 36 6725 skipif mysql # not compatible query I rowsort label-948 SELECT + col0 / col2 + col2 * col2 FROM tab0 AS cor0 ---- 1089 36 6725 query I rowsort SELECT DISTINCT - 26 AS col1 FROM tab1 ---- -26 query I rowsort SELECT 22 * - ( cor1.col0 ) * - 2 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to c663284b26aadb8c19c1eeacca30e475 onlyif mysql # use DIV operator for integer division query I rowsort label-951 SELECT - col1 + - 39 DIV 88 FROM tab0 cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-951 SELECT - col1 + - 39 / 88 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT + - col1 * - 33 + + cor0.col0 * + col0 AS col1 FROM tab0 AS cor0 ---- 10924 3414 4426 query I rowsort SELECT ( col1 ) + - tab0.col2 AS col2 FROM tab0 ---- 53 9 96 query I rowsort SELECT - 21 AS col2 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1 query I rowsort SELECT ALL tab0.col1 * + tab0.col1 AS col0 FROM tab0 ---- 7396 8281 9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * - col1 * col0 col2 FROM tab2 ---- 106097 1519 358956 onlyif mysql # use DIV operator for integer division query I rowsort label-957 SELECT DISTINCT col0 + col2 * + col0 DIV col0 AS col1 FROM tab1 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-957 SELECT DISTINCT col0 + col2 * + col0 / col0 AS col1 FROM tab1 ---- 121 176 57 query I rowsort SELECT ALL col2 * - col0 AS col2 FROM tab2 WHERE NULL >= ( NULL ) ---- query I rowsort SELECT ALL col1 FROM tab1 WHERE NOT - col0 NOT IN ( col0 ) ---- query III rowsort SELECT * FROM tab2 WHERE NULL > ( col1 + + col1 ) ---- query I rowsort SELECT ALL - col2 * - tab1.col1 * + col0 AS col0 FROM tab1 ---- 36480 4212 99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + tab0.col2 * - col2 col2 FROM tab0 ---- -26136 -35 -598436 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col0 + + col1 col1 FROM tab0 ---- 2150 3492 8190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + col1 col2 FROM tab2 ---- 0 query I rowsort SELECT - col0 + col2 + - col0 FROM tab2 ---- -120 -130 13 query I rowsort SELECT col1 * - col1 * - col1 AS col0 FROM tab0 ---- 636056 753571 912673 query I rowsort SELECT - col0 AS col0 FROM tab0 WHERE - col0 + - col2 / + col1 BETWEEN ( + tab0.col2 ) AND NULL ---- query I rowsort SELECT DISTINCT + col1 / + tab0.col2 FROM tab0 WHERE NULL NOT IN ( - col2 ) ---- query III rowsort SELECT ALL * FROM tab0 WHERE NULL > ( NULL ) ---- query I rowsort SELECT DISTINCT col2 + - col2 FROM tab0 WHERE NULL NOT IN ( + col2 / col1 ) ---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col0 + col2 * col0 ) ---- query I rowsort SELECT DISTINCT - col2 - - col0 FROM tab1 ---- -16 -51 7 query I rowsort SELECT col0 + - col1 * col2 * - col2 AS col0 FROM tab0 ---- 132 611973 93678 query III rowsort SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( col1 * + col1 * col2 ) ---- query I rowsort SELECT DISTINCT + tab2.col2 + - col1 * col1 FROM tab2 ---- -251 -3455 -934 query I rowsort SELECT col0 * col0 AS col0 FROM tab0 WHERE NOT ( col1 * col2 ) >= ( NULL ) ---- query I rowsort SELECT DISTINCT + - col0 + - cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0 ---- -1328 -1407 -634 query I rowsort SELECT ALL + - col2 * + col0 + + col1 AS col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT + 30 * + col1 FROM tab1 AS cor0 ---- 300 390 780 query I rowsort SELECT ALL + ( - col2 ) * + col0 FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT + col1 + col0 * col1 * col1 FROM tab0 AS cor0 ---- 177590 329412 737100 query I rowsort SELECT col2 + + col0 * - col0 FROM tab0 AS cor0 ---- -1224 -543 -7839 query I rowsort SELECT + 61 * + tab2.col2 AS col2 FROM tab2 ---- 1586 1647 2318 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 59 col2 FROM tab0 ---- 59 59 59 onlyif mysql # use DIV operator for integer division query I rowsort label-985 SELECT - tab1.col2 + col1 DIV + col0 FROM tab1 ---- -46 -57 -96 skipif mysql # not compatible query I rowsort label-985 SELECT - tab1.col2 + col1 / + col0 FROM tab1 ---- -46 -57 -96 query I rowsort SELECT - 30 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb query I rowsort SELECT + cor0.col2 + col1 * + col0 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT + ( col2 ) - + col1 * + col0 AS col2 FROM tab1 AS cor0 ---- -24 -583 -944 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-989 SELECT - 10 * + 7 + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-989 SELECT - 10 * + 7 + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-990 SELECT - col1 * ( col2 ) + 33 DIV col0 AS col2 FROM tab0 AS cor0 ---- -2837 -7462 -97 skipif mysql # not compatible query I rowsort label-990 SELECT - col1 * ( col2 ) + 33 / col0 AS col2 FROM tab0 AS cor0 ---- -2837 -7462 -97 query I rowsort SELECT + - col2 * col1 * - col2 FROM tab1 AS cor0 ---- 119808 32490 75816 query I rowsort SELECT DISTINCT ( - col1 ) * + cor0.col2 AS col1 FROM tab0 cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-993 SELECT - col1 + - col0 DIV - col0 FROM tab2 AS cor0 ---- -16 -30 -58 skipif mysql # not compatible query I rowsort label-993 SELECT - col1 + - col0 / - col0 FROM tab2 AS cor0 ---- -16 -30 -58 onlyif mysql # use DIV operator for integer division query I rowsort label-994 SELECT + - col2 + col1 DIV - col0 AS col1 FROM tab2 AS cor0 ---- -26 -31 -38 skipif mysql # not compatible query I rowsort label-994 SELECT + - col2 + col1 / - col0 AS col1 FROM tab2 AS cor0 ---- -26 -31 -38 query I rowsort SELECT ALL - col2 * + col2 * + col0 FROM tab2 AS cor0 ---- -114076 -5103 -52728 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 * + cor1.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to f41ff9722a9faac08fe6a2f7ee7c03b7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 60 * - cor0.col0 col2 FROM tab2 AS cor0 ---- 420 4680 4740 query I rowsort SELECT col1 * - col1 + - col2 AS col0 FROM tab0 AS cor0 ---- -7429 -8363 -9410 onlyif mysql # use DIV operator for integer division query I rowsort label-999 SELECT DISTINCT + 29 DIV col0 AS col2 FROM tab1 AS cor0 ---- 0 9 skipif mysql # not compatible query I rowsort label-999 SELECT DISTINCT + 29 / col0 AS col2 FROM tab1 AS cor0 ---- 0 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * - col0 col2 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT + 98 * cor0.col2 + - cor0.col0 + - cor0.col2 FROM tab2 AS cor0 ---- 2444 2612 3607 query I rowsort SELECT + col0 + - col0 * col1 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT DISTINCT + ( + col0 ) * col0 + + col2 * col0 AS col1 FROM tab1 AS cor0 ---- 14080 171 7744 query I rowsort SELECT ALL 65 + + col2 FROM tab0 AS cor0 ---- 147 66 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 23 - col1 col1 FROM tab0 cor0 ---- -63 -68 -74 query I rowsort SELECT ALL - col2 * cor0.col0 + cor0.col1 AS col0 FROM tab0 cor0 ---- -706 -7207 62 query I rowsort SELECT ALL col1 * col2 + col0 * col2 FROM tab0 AS cor0 ---- 132 14760 3630 onlyif mysql # use DIV operator for integer division query I rowsort label-1008 SELECT col1 * tab1.col2 DIV + tab1.col1 - col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1008 SELECT col1 * tab1.col2 / + tab1.col1 - col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL col1 + ( + cor0.col1 ) * + cor0.col0 + - col0 AS col2 FROM tab1 AS cor0 ---- 101 586 973 query I rowsort SELECT - - 16 * col1 - + col2 AS col1 FROM tab1 cor0 ---- 103 112 362 query I rowsort SELECT DISTINCT - + col1 + - 90 FROM tab2 cor0 ---- -107 -121 -149 query I rowsort SELECT + - col0 * col2 - col2 * col0 AS col2 FROM tab2 AS cor0 ---- -378 -4056 -6004 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1013 SELECT ALL - CAST( NULL AS SIGNED ) + col0 * col0 * + cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1013 SELECT ALL - CAST ( NULL AS INTEGER ) + col0 * col0 * + cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 0 + col2 * col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT 76 + - col1 + col2 AS col2 FROM tab0 AS cor0 ---- -20 23 67 query I rowsort SELECT cor1.col2 * - cor1.col1 FROM tab2, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 6bd277b8320ae6f8c3fe593411d2dcf6 onlyif mysql # use DIV operator for integer division query I rowsort label-1017 SELECT ALL col1 * col0 + col1 * col2 DIV - cor0.col0 col1 FROM tab2 AS cor0 ---- 1335 4583 98 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1017 SELECT ALL col1 * col0 + col1 * col2 / - cor0.col0 col1 FROM tab2 AS cor0 ---- 1335 4583 98 onlyif mysql # use DIV operator for integer division query I rowsort label-1018 SELECT + - ( + 85 ) + - col2 DIV + col0 FROM tab1 cor0 ---- -103 -85 -86 skipif mysql # not compatible query I rowsort label-1018 SELECT + - ( + 85 ) + - col2 / + col0 FROM tab1 cor0 ---- -103 -85 -86 query I rowsort SELECT DISTINCT + col1 + col1 * col2 + col2 * col1 * col2 FROM tab1 ---- 121069 33070 77246 query I rowsort SELECT DISTINCT col1 * + tab1.col1 + + tab1.col1 + + col1 * col0 AS col1 FROM tab1 ---- 1222 750 780 query I rowsort SELECT ALL + col0 + + ( - col2 ) AS col1 FROM tab2 ---- -20 41 52 query I rowsort SELECT + 42 * col1 + col1 AS col1 FROM tab2 ---- 1333 2537 731 query I rowsort SELECT ( 11 * col2 ) + - col2 + col2 AS col0 FROM tab0 ---- 11 363 902 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 1 col0 FROM tab0 ---- 1 1 1 query I rowsort SELECT + ( 21 ) AS col2 FROM tab2 ---- 21 21 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 col2 FROM tab1, tab2 cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( cor0.col2 ) * - col0 + + cor0.col2 col1 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT - - 81 + 74 + - col0 FROM tab0 AS cor0 ---- 120 131 66 query I rowsort SELECT DISTINCT - col2 * col1 + + col1 * col2 * col1 AS col0 FROM tab0 ---- 241230 671580 9312 query I rowsort SELECT + cor0.col2 * - col2 - col2 FROM tab1 cor0 ---- -2970 -3306 -9312 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col2 + col0 AND NULL ---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 + + col1 AND - col2 * col2 + - col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-1033 SELECT DISTINCT - col2 DIV + col0 + - tab2.col1 * - col2 col0 FROM tab2 ---- 1534 646 834 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1033 SELECT DISTINCT - col2 / + col0 + - tab2.col1 * - col2 col0 FROM tab2 ---- 1534 646 834 query I rowsort SELECT ALL col2 * - col0 + col1 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT + col0 + col0 * + col0 * col1 FROM tab2 ---- 106176 1526 359034 query I rowsort SELECT col1 AS col1 FROM tab1 WHERE NULL >= NULL ---- query I rowsort SELECT col0 * col2 + col0 * tab1.col2 * col0 FROM tab1 ---- 237120 622080 648 query I rowsort SELECT DISTINCT col1 * - col1 + + col0 FROM tab1 ---- -36 -673 -89 query I rowsort SELECT + col2 + - col2 + - col1 AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + - col0 col0 FROM tab2 AS cor0 WHERE NULL > NULL ---- query I rowsort SELECT tab0.col2 * - col0 - + col2 AS col2 FROM tab0 ---- -36 -7380 -825 onlyif mysql # use DIV operator for integer division query I rowsort label-1042 SELECT col1 * tab0.col0 DIV - col2 + col0 AS col1 FROM tab0 ---- -3360 -38 -9 skipif mysql # not compatible query I rowsort label-1042 SELECT col1 * tab0.col0 / - col2 + col0 AS col1 FROM tab0 ---- -3360 -38 -9 query I rowsort SELECT + col0 * col1 + - col2 AS col1 FROM tab0 ---- 2031 3394 8017 query I rowsort SELECT tab2.col1 * col0 * col0 - col1 FROM tab2 ---- 106080 1488 358897 query IIIIII rowsort SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT - cor0.col2 <= ( cor0.col1 ) ---- query I rowsort SELECT + col2 * + col0 + col1 AS col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT col2 + tab0.col0 * - col1 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT - col1 + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0 ---- -2942 -3259 -9229 query I rowsort SELECT ALL col2 + + col2 - - col2 * cor0.col2 * cor0.col2 FROM tab1 AS cor0 ---- 157572 185307 884928 query I rowsort SELECT DISTINCT - - col0 - col0 FROM tab0 cor0 ---- 0 query I rowsort SELECT DISTINCT - col0 + col1 + - col2 AS col1 FROM tab0 AS cor0 ---- -80 29 61 onlyif mysql # use DIV operator for integer division query I rowsort label-1052 SELECT - col2 + + col2 DIV col2 AS col1 FROM tab1 cor0 ---- -53 -56 -95 skipif mysql # not compatible query I rowsort label-1052 SELECT - col2 + + col2 / col2 AS col1 FROM tab1 cor0 ---- -53 -56 -95 onlyif mysql # use DIV operator for integer division query I rowsort label-1053 SELECT DISTINCT - + col0 DIV col1 + col0 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-1053 SELECT DISTINCT - + col0 / col1 + col0 FROM tab0 AS cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 * + col2 - + cor0.col0 col1 FROM tab1 AS cor0 ---- -2919 -3313 -9296 onlyif mysql # use DIV operator for integer division query I rowsort label-1055 SELECT - col2 DIV - col1 - - tab0.col2 AS col2 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-1055 SELECT - col2 / - col1 - - tab0.col2 AS col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL + cor0.col1 + + cor0.col2 * col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT - + col0 * - col2 + + cor0.col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1566 4218 8928 query I rowsort SELECT ALL - col2 * col2 + col1 + + cor0.col0 * col0 AS col2 FROM tab0 cor0 ---- -427 1288 1321 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 ) OR ( NULL ) IN ( col1 ) ---- query I rowsort SELECT ALL + 77 AS col1 FROM tab2 ---- 77 77 77 onlyif mysql # use DIV operator for integer division query I rowsort label-1061 SELECT ALL col1 * col2 DIV + col1 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-1061 SELECT ALL col1 * col2 / + col1 FROM tab0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1062 SELECT + CAST( ( + col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-1062 SELECT + CAST ( ( + col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT ( + col1 ) * + tab2.col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT DISTINCT - - tab1.col1 AS col2 FROM tab1, tab2, tab2 AS cor0 ---- 10 13 26 query I rowsort SELECT + ( cor0.col0 ) * 46 + col0 * - col1 FROM tab1 AS cor0 ---- 2304 2640 60 query I rowsort SELECT + 28 * col2 AS col1 FROM tab2 cor0 ---- 1064 728 756 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1067 SELECT + col2 * + cor0.col2 + col2 * cor0.col0 * CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 109056 39729 7128 skipif mysql # not compatible query I rowsort label-1067 SELECT + col2 * + cor0.col2 + col2 * cor0.col0 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 109056 39729 7128 query I rowsort SELECT + col2 * ( + ( - col0 ) ) + - col1 AS col2 FROM tab0 cor0 ---- -132 -7389 -878 onlyif mysql # use DIV operator for integer division query I rowsort label-1069 SELECT + cor0.col1 * + 46 + cor0.col0 DIV col2 col0 FROM tab1 AS cor0 ---- 1196 461 598 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1069 SELECT + cor0.col1 * + 46 + cor0.col0 / col2 col0 FROM tab1 AS cor0 ---- 1196 461 598 query I rowsort SELECT ( + cor1.col0 ) FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT ALL - ( 10 ) * cor0.col0 FROM tab2, tab1 cor0 ---- 9 values hashing to 61078693a69c9f1a2095d9ffa3080946 query I rowsort SELECT col2 * col1 + + cor0.col1 + + col1 AS col0 FROM tab1 AS cor0 ---- 1274 1456 590 onlyif mysql # use DIV operator for integer division query I rowsort label-1073 SELECT ALL + col0 + - col0 DIV - col2 FROM tab0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-1073 SELECT ALL + col0 + - col0 / - col2 FROM tab0 ---- 24 70 90 query I rowsort SELECT DISTINCT - col1 - + ( col0 + + col1 ) FROM tab0 AS cor0 ---- -196 -229 -271 query I rowsort SELECT + col0 + + col1 + + col1 * cor0.col2 AS col2 FROM tab0 cor0 ---- 229 2948 7642 query I rowsort SELECT DISTINCT col2 * ( col0 ) + col2 + 88 * - 34 FROM tab0 cor0 ---- -2167 -2956 4388 query I rowsort SELECT DISTINCT 1 + col2 FROM tab1 AS cor0 ---- 55 58 97 onlyif mysql # use DIV operator for integer division query I rowsort label-1078 SELECT ALL + ( - col2 ) DIV col1 + + cor0.col0 col0 FROM tab1 AS cor0 ---- 1 59 73 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1078 SELECT ALL + ( - col2 ) / col1 + + cor0.col0 col0 FROM tab1 AS cor0 ---- 1 59 73 query I rowsort SELECT + - col1 * - ( col0 + - col1 ) * col2 AS col1 FROM tab1 AS cor0 ---- -32292 30780 83616 query I rowsort SELECT DISTINCT - 92 + col0 * col2 FROM tab0 AS cor0 ---- -57 700 7206 query I rowsort SELECT - col0 * ( - col1 ) + col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT DISTINCT - col0 + + 58 FROM tab0 cor0 ---- -31 23 34 query I rowsort SELECT ALL 51 + - 8 FROM tab0 cor0 ---- 43 43 43 query I rowsort SELECT - col0 * cor0.col1 + - col0 * ( - col0 ) FROM tab1 AS cor0 ---- -69 3456 5360 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1085 SELECT DISTINCT + CAST( + ( col1 ) AS SIGNED ) * ( - col1 ) * - col1 - + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 17573 2117 936 skipif mysql # not compatible query I rowsort label-1085 SELECT DISTINCT + CAST ( + ( col1 ) AS INTEGER ) * ( - col1 ) * - col1 - + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 17573 2117 936 query I rowsort SELECT ALL + tab0.col1 + ( col1 ) AS col2 FROM tab0 ---- 172 182 194 query I rowsort SELECT + col1 * 37 - 79 AS col1 FROM tab0 ---- 3103 3288 3510 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + + col1 * tab1.col1 col2 FROM tab1 ---- 156 650 90 query I rowsort SELECT - col1 * + ( tab2.col0 + + col2 ) AS col2 FROM tab2 ---- -1054 -1989 -6136 query I rowsort SELECT 72 + - cor0.col0 * - ( col0 ) AS col1 FROM tab0 AS cor0 ---- 1297 648 7993 onlyif mysql # use DIV operator for integer division query I rowsort label-1091 SELECT + - col1 * col2 DIV 10 FROM tab2 AS cor0 ---- -153 -64 -83 skipif mysql # not compatible query I rowsort label-1091 SELECT + - col1 * col2 / 10 FROM tab2 AS cor0 ---- -153 -64 -83 query I rowsort SELECT + 12 + - col2 * - col2 AS col0 FROM tab0 AS cor0 ---- 1101 13 6736 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1093 SELECT ALL - CAST( - col0 AS SIGNED ) * col1 FROM tab0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-1093 SELECT ALL - CAST ( - col0 AS INTEGER ) * col1 FROM tab0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 * cor0.col2 * + col0 + 46 col2 FROM tab0 AS cor0 ---- 26182 598482 81 query I rowsort SELECT - ( cor1.col2 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to b5a4102107e5ebd26e341538f4fede1e query I rowsort SELECT ALL ( + col2 ) * tab0.col1 - col1 FROM tab0 ---- 0 2752 7371 onlyif mysql # use DIV operator for integer division query I rowsort label-1097 SELECT - - 20 * - col1 DIV col1 + - col0 FROM tab2 AS cor0 ---- -27 -98 -99 skipif mysql # not compatible query I rowsort label-1097 SELECT - - 20 * - col1 / col1 + - col0 FROM tab2 AS cor0 ---- -27 -98 -99 query I rowsort SELECT cor0.col0 * col2 + - col1 + + cor0.col2 FROM tab0 AS cor0 ---- -61 7289 739 query I rowsort SELECT ( + 55 ) * tab2.col1 * - col0 + + col0 - + col0 AS col1 FROM tab2 ---- -11935 -253110 -73865 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1100 SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 / col1 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-1100 SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 / col1 FROM tab1 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1101 SELECT ALL + CAST( NULL AS DECIMAL ) + col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1101 SELECT ALL + CAST ( NULL AS REAL ) + col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + col1 * + cor0.col0 + 24 * + col1 FROM tab0 cor0 ---- 10283 4128 5723 query I rowsort SELECT DISTINCT - col2 + - tab1.col2 AS col2 FROM tab1 ---- -108 -114 -192 query I rowsort SELECT 18 * tab1.col0 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 53392ea3b6bfc532646309214a364024 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1105 SELECT CAST( 53 AS SIGNED ) + + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -109 -3595 -7627 skipif mysql # not compatible query I rowsort label-1105 SELECT CAST ( 53 AS INTEGER ) + + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -109 -3595 -7627 query I rowsort SELECT DISTINCT + 27 AS col1 FROM tab1 AS cor0 ---- 27 query I rowsort SELECT ALL - + col1 * 40 AS col2 FROM tab0 AS cor0 ---- -3440 -3640 -3880 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1108 SELECT ALL + CAST( NULL AS SIGNED ) + tab0.col2 AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1108 SELECT ALL + CAST ( NULL AS INTEGER ) + tab0.col2 AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 70 FROM tab2, tab0 AS cor0 ---- 70 query I rowsort SELECT DISTINCT - ( + ( cor0.col0 ) ) AS col0 FROM tab1, tab2, tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT col0 * col0 + - 40 AS col0 FROM tab2 AS cor0 ---- 6044 6201 9 query I rowsort SELECT DISTINCT ( col1 ) * - col1 + col0 * col1 FROM tab2 cor0 ---- -744 1054 1121 query I rowsort SELECT + + 81 AS col2 FROM tab1 AS cor0 ---- 81 81 81 query I rowsort SELECT ALL + - col1 + + cor0.col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1115 SELECT col0 + col1 DIV col2 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-1115 SELECT col0 + col1 / col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT + 64 * cor0.col1 FROM tab2 cor0 ---- 1088 1984 3776 query I rowsort SELECT DISTINCT + 91 * + col2 * + 61 FROM tab2 AS cor0 ---- 144326 149877 210938 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1118 SELECT - col1 + col0 * CAST( ( col2 ) AS SIGNED ) * + col0 FROM tab0 AS cor0 ---- 1128 18922 649431 skipif mysql # not compatible query I rowsort label-1118 SELECT - col1 + col0 * CAST ( ( col2 ) AS INTEGER ) * + col0 FROM tab0 AS cor0 ---- 1128 18922 649431 query I rowsort SELECT ALL + - 58 + col1 FROM tab2 AS cor0 ---- -27 -41 1 onlyif mysql # use DIV operator for integer division query I rowsort label-1120 SELECT + + 16 DIV - col1 AS col2 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1120 SELECT + + 16 / - col1 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + cor0.col0 * + col1 + col0 * - 98 * - cor0.col0 AS col0 FROM tab1 AS cor0 ---- 402048 628240 960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * col1 + col0 col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL - 1 + + col2 FROM tab1 AS cor0 ---- 53 56 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 - col2 * 79 col2 FROM tab1 AS cor0 ---- -4320 -4560 -7680 query I rowsort SELECT ALL + col2 * col1 * + 41 + - col2 FROM tab1 AS cor0 ---- 23313 51072 57510 query I rowsort SELECT - - 29 AS col2 FROM tab2 cor0 ---- 29 29 29 query I rowsort SELECT DISTINCT - col1 - - col1 AS col0 FROM tab1 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * 31 col2 FROM tab1 AS cor0 ---- 310 403 806 onlyif mysql # use DIV operator for integer division query I rowsort label-1129 SELECT ALL 91 DIV 2 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 skipif mysql # not compatible query I rowsort label-1129 SELECT ALL 91 / 2 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 query I rowsort SELECT DISTINCT col1 * - 55 AS col2 FROM tab1 ---- -1430 -550 -715 query I rowsort SELECT - - col2 * - col1 * + col1 AS col2 FROM tab0 AS cor0 ---- -244068 -679042 -9409 skipif mysql # not compatible query I rowsort SELECT ALL col1 + + CAST ( + 9 AS REAL ) * col1 FROM tab1 AS cor0 ---- 100 130 260 query I rowsort SELECT DISTINCT + - col0 * col2 - + col1 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT DISTINCT col1 - 49 FROM tab1 AS cor0 ---- -23 -36 -39 query I rowsort SELECT - + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT col0 * + ( - col2 ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL - col0 * col1 * ( col1 ) FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT + col0 * - 1 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL + col0 * 33 + 77 FROM tab1 AS cor0 ---- 176 2189 2717 query I rowsort SELECT + 96 AS col2 FROM tab2, tab2 cor0 ---- 9 values hashing to 22c5141a629f0ef396738ee2c8be6303 query I rowsort SELECT DISTINCT col2 + col0 * + col0 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT ALL + 71 + col2 - - col1 AS col1 FROM tab1 AS cor0 ---- 138 151 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + 12 ) + - col2 col0 FROM tab0 AS cor0 ---- -21 -70 11 query I rowsort SELECT - 93 * + cor0.col2 FROM tab2, tab1 cor0 ---- 9 values hashing to 422f4e2f0985cdf768ce4b415c3c42a5 query I rowsort SELECT cor0.col0 + - cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT + col0 * col0 + + col0 AS col0 FROM tab1 AS cor0 ---- 12 4160 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-1147 SELECT DISTINCT - col2 + col1 DIV - col1 AS col1 FROM tab1 AS cor0 ---- -55 -58 -97 skipif mysql # not compatible query I rowsort label-1147 SELECT DISTINCT - col2 + col1 / - col1 AS col1 FROM tab1 AS cor0 ---- -55 -58 -97 query I rowsort SELECT ALL + 93 * + 68 + - cor0.col2 FROM tab2 AS cor0 ---- 6286 6297 6298 query I rowsort SELECT ALL + 65 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2 ---- 81 values hashing to 1654646feeae82f39d2f564fe4ea26c2 query I rowsort SELECT DISTINCT col1 * 3 AS col2 FROM tab1 ---- 30 39 78 query I rowsort SELECT ALL - - 91 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 3003 7462 91 query I rowsort SELECT col1 + + col2 * - col0 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT DISTINCT + + 57 + cor0.col0 * cor0.col1 FROM tab1 cor0 ---- 1097 135 697 onlyif mysql # use DIV operator for integer division query I rowsort label-1154 SELECT ALL + col0 DIV - cor0.col2 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-1154 SELECT ALL + col0 / - cor0.col2 FROM tab0 AS cor0 ---- -1 -35 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1155 SELECT ALL - ( col2 ) DIV + col0 FROM tab1 AS cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-1155 SELECT ALL - ( col2 ) / + col0 FROM tab1 AS cor0 ---- -1 -18 0 query I rowsort SELECT + + ( - col2 ) * + col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT ALL - col0 + col1 AS col2 FROM tab1 cor0 ---- -54 -67 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( col2 ) col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL + tab1.col2 * ( tab1.col0 ) FROM tab1 ---- 162 3648 7680 query I rowsort SELECT ( col0 ) - ( col2 ) AS col1 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT + tab2.col0 * + col1 + 70 FROM tab2 ---- 1413 287 4672 onlyif mysql # use DIV operator for integer division query I rowsort label-1162 SELECT + + col0 + CAST( col0 AS SIGNED ) DIV col0 FROM tab2 AS cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-1162 SELECT + + col0 + CAST ( col0 AS INTEGER ) / col0 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT DISTINCT + + col0 + - 17 FROM tab2 cor0 ---- -10 61 62 query I rowsort SELECT DISTINCT - 99 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- -99 query I rowsort SELECT DISTINCT col2 * col1 + col1 AS col0 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT DISTINCT col1 * + col0 * tab2.col0 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT DISTINCT + - col2 + ( 31 ) * + col0 AS col1 FROM tab0 AS cor0 ---- 1084 2677 711 query I rowsort SELECT + + col1 + - col0 * ( col0 ) AS col0 FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT - tab0.col2 + - 64 AS col1 FROM tab0 ---- -146 -65 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-1170 SELECT ALL 20 DIV + col1 AS col2 FROM tab2 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-1170 SELECT ALL 20 / + col1 AS col2 FROM tab2 ---- 0 0 1 query I rowsort SELECT DISTINCT + 97 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 97 query I rowsort SELECT ALL 12 * + col1 * 74 AS col2 FROM tab2 ---- 15096 27528 52392 query I rowsort SELECT - 50 + - col2 * + cor0.col1 * + col0 FROM tab2 AS cor0 ---- -119702 -51084 -5909 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1174 SELECT - col2 + - col1 * CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 ---- 7363 8199 9408 skipif mysql # not compatible query I rowsort label-1174 SELECT - col2 + - col1 * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 ---- 7363 8199 9408 query I rowsort SELECT + 47 + + 42 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 query I rowsort SELECT col2 + - col1 + + col0 AS col1 FROM tab2 ---- 100 3 45 query I rowsort SELECT ALL col0 + 33 * + col2 FROM tab0 ---- 1113 2795 68 query I rowsort SELECT DISTINCT + col2 * 81 + col0 AS col1 FROM tab0 AS cor0 ---- 116 2697 6731 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - cor0.col1 + - col2 * - col2 col0 FROM tab2 cor0 ---- 1461 735 760 query I rowsort SELECT - - col0 * + ( col1 ) + + 73 FROM tab1 AS cor0 ---- 1113 151 713 onlyif mysql # use DIV operator for integer division query I rowsort label-1181 SELECT + + 55 + 9 DIV col0 AS col2 FROM tab1 AS cor0 ---- 55 55 58 skipif mysql # not compatible query I rowsort label-1181 SELECT + + 55 + 9 / col0 AS col2 FROM tab1 AS cor0 ---- 55 55 58 query I rowsort SELECT DISTINCT - col2 * 84 AS col1 FROM tab1 AS cor0 ---- -4536 -4788 -8064 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * col1 + col1 * col2 * cor0.col0 col0 FROM tab1 AS cor0 ---- 100009 36580 4888 query I rowsort SELECT + ( - 79 ) FROM tab2 AS cor0 ---- -79 -79 -79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1185 SELECT CAST( NULL AS SIGNED ) - + 43 / col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1185 SELECT CAST ( NULL AS INTEGER ) - + 43 / col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT col0 * col1 + col0 AS col1 FROM tab2 AS cor0 ---- 1422 224 4680 onlyif mysql # use DIV operator for integer division query I rowsort label-1187 SELECT + 31 * col0 * col0 - + cor0.col1 DIV - col1 AS col1 FROM tab2 AS cor0 ---- 1520 188605 193472 skipif mysql # not compatible query I rowsort label-1187 SELECT + 31 * col0 * col0 - + cor0.col1 / - col1 AS col1 FROM tab2 AS cor0 ---- 1520 188605 193472 query I rowsort SELECT + + cor0.col0 - + col2 * col0 AS col2 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT + ( col1 ) * + col2 - ( col2 + col0 ) FROM tab1 AS cor0 ---- 1072 1347 449 onlyif mysql # use DIV operator for integer division query I rowsort label-1190 SELECT + CAST( col0 AS SIGNED ) DIV + col0 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1190 SELECT + CAST ( col0 AS INTEGER ) / + col0 FROM tab1 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 22 + cor0.col0 col1 FROM tab1 cor0 ---- -19 42 58 query I rowsort SELECT + col1 * - col1 + - col0 FROM tab0 ---- -7420 -8370 -9444 onlyif mysql # use DIV operator for integer division query I rowsort label-1193 SELECT + col2 * ( + col0 ) + + 12 + col2 DIV tab1.col1 AS col1 FROM tab1 ---- 176 3665 7699 skipif mysql # not compatible query I rowsort label-1193 SELECT + col2 * ( + col0 ) + + 12 + col2 / tab1.col1 AS col1 FROM tab1 ---- 176 3665 7699 onlyif mysql # use DIV operator for integer division query I rowsort label-1194 SELECT DISTINCT - ( tab2.col2 ) - col2 DIV - 68 FROM tab2 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-1194 SELECT DISTINCT - ( tab2.col2 ) - col2 / - 68 FROM tab2 ---- -26 -27 -38 query I rowsort SELECT 17 * col1 AS col2 FROM tab1 ---- 170 221 442 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1196 SELECT DISTINCT CAST( + col0 + col1 AS SIGNED ) AS col0 FROM tab1 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-1196 SELECT DISTINCT CAST ( + col0 + col1 AS INTEGER ) AS col0 FROM tab1 ---- 29 74 93 query I rowsort SELECT - col0 * - cor0.col0 + ( + cor0.col2 ) AS col1 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT DISTINCT + + 38 * col1 + cor0.col2 FROM tab0 AS cor0 ---- 3301 3540 3687 query I rowsort SELECT ALL + + col1 * col0 - ( col2 ) FROM tab0 cor0 ---- 2031 3394 8017 query I rowsort SELECT - - col0 * col2 + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT + col0 * col1 + - col1 * + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - cor0.col0 * - col2 + col0 * + 12 FROM tab0 AS cor0 ---- 1080 455 8366 query I rowsort SELECT + ( 46 ) FROM tab1 ---- 46 46 46 query I rowsort SELECT ALL - 35 * - col0 + + col2 * col1 + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 1563 2867 4144 query I rowsort SELECT ALL - col1 - + col2 FROM tab1 cor0 ---- -109 -67 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-1206 SELECT DISTINCT + - col1 DIV - col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-1206 SELECT DISTINCT + - col1 / - col2 FROM tab0 AS cor0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col0 * col2 col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT - col2 * 20 AS col1 FROM tab0 AS cor0 ---- -1640 -20 -660 query I rowsort SELECT col0 + col0 * 51 AS col0 FROM tab0 cor0 ---- 1248 1820 4628 query I rowsort SELECT col2 * - 74 AS col0 FROM tab2 AS cor0 ---- -1924 -1998 -2812 query I rowsort SELECT ALL + col2 * 66 * - col0 FROM tab2 AS cor0 ---- -12474 -133848 -198132 query I rowsort SELECT + + col0 + + col0 * - col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT - 21 AS col1 FROM tab2, tab2 cor0 ---- -21 query I rowsort SELECT ALL - - 90 AS col2 FROM tab0 AS cor0 ---- 90 90 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 9 col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b query I rowsort SELECT ALL - - 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 19 col0 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 86c53e8567a17c8d91fc5aff119e0498 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 36 col2 FROM tab0 ---- 36 36 36 query I rowsort SELECT - + col2 * + 16 AS col1 FROM tab0 cor0 ---- -1312 -16 -528 query I rowsort SELECT ALL col1 + ( col0 ) FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT + col2 * 19 AS col2 FROM tab2 cor0 ---- 494 513 722 onlyif mysql # use DIV operator for integer division query I rowsort label-1222 SELECT DISTINCT - cor0.col2 DIV + col0 AS col2 FROM tab2 AS cor0 ---- -3 0 skipif mysql # not compatible query I rowsort label-1222 SELECT DISTINCT - cor0.col2 / + col0 AS col2 FROM tab2 AS cor0 ---- -3 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1223 SELECT + col1 + CAST( NULL AS DECIMAL ) * col0 * col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1223 SELECT + col1 + CAST ( NULL AS REAL ) * col0 * col0 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 * col0 + - col2 col1 FROM tab0 AS cor0 ---- -1226 -609 -8003 query I rowsort SELECT + + col0 * - col2 + + cor0.col0 + cor0.col2 AS col1 FROM tab2 AS cor0 ---- -155 -1924 -2885 query I rowsort SELECT 91 + col0 AS col0 FROM tab2 ---- 169 170 98 query I rowsort SELECT ALL cor0.col0 + 88 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 287dcd3d8c882946ae1dcb56d13f4488 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 79 col2 FROM tab1 ---- 79 79 79 onlyif mysql # use DIV operator for integer division query I rowsort label-1229 SELECT tab2.col0 DIV col1 + - col0 FROM tab2 ---- -7 -75 -77 skipif mysql # not compatible query I rowsort label-1229 SELECT tab2.col0 / col1 + - col0 FROM tab2 ---- -7 -75 -77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 35 col0 FROM tab2 ---- 35 query I rowsort SELECT ALL - 63 AS col1 FROM tab0 ---- -63 -63 -63 query I rowsort SELECT DISTINCT + col0 + - ( col0 ) FROM tab0 ---- 0 query I rowsort SELECT DISTINCT + col1 + - col0 * + ( + col0 + ( + ( col0 ) ) ) AS col1 FROM tab1 ---- -12787 -8182 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 * cor0.col2 col0 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT - col2 * + col0 + col0 * col1 + col1 FROM tab2 AS cor0 ---- -1642 2633 59 query I rowsort SELECT ALL - + col0 * - 6 FROM tab1 AS cor0 ---- 18 384 480 onlyif mysql # use DIV operator for integer division query I rowsort label-1237 SELECT DISTINCT col2 * col0 DIV col2 AS col0 FROM tab0 cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-1237 SELECT DISTINCT col2 * col0 / col2 AS col0 FROM tab0 cor0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1238 SELECT + + col1 + CAST( - col2 AS SIGNED ) + - col0 col2 FROM tab0 AS cor0 ---- -80 29 61 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1238 SELECT + + col1 + CAST ( - col2 AS INTEGER ) + - col0 col2 FROM tab0 AS cor0 ---- -80 29 61 query I rowsort SELECT col2 + - col2 * + col1 AS col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT ALL - col1 * + 37 AS col0 FROM tab0 AS cor0 ---- -3182 -3367 -3589 query I rowsort SELECT DISTINCT + cor0.col0 * 10 + + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 264 385 979 query I rowsort SELECT DISTINCT + col0 * - ( - 69 ) FROM tab2 AS cor0 ---- 483 5382 5451 query I rowsort SELECT ALL col1 + - ( col0 ) FROM tab2 cor0 ---- -19 -62 24 query I rowsort SELECT - - cor0.col2 - cor0.col0 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT DISTINCT - + col2 + + 93 FROM tab2 AS cor0 ---- 55 66 67 query I rowsort SELECT + ( - col1 ) - col2 FROM tab2 ---- -55 -58 -85 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2 ---- 3645 values hashing to f3ede863c793df0de5c26c654290b3b7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1248 SELECT + CAST( col1 AS SIGNED ) * cor0.col1 * col2 + + 15 FROM tab1 AS cor0 ---- 16239 36519 5715 skipif mysql # not compatible query I rowsort label-1248 SELECT + CAST ( col1 AS INTEGER ) * cor0.col1 * col2 + + 15 FROM tab1 AS cor0 ---- 16239 36519 5715 query I rowsort SELECT 98 * cor0.col0 + col1 FROM tab1 AS cor0 ---- 320 6282 7853 query I rowsort SELECT ALL + + 63 * + col1 - - col0 AS col2 FROM tab2 cor0 ---- 1150 1960 3795 query I rowsort SELECT col2 + - cor0.col1 * col2 * - col0 FROM tab0 AS cor0 ---- 3396 664200 68145 query I rowsort SELECT ALL + + 70 * + col2 FROM tab2 cor0 ---- 1820 1890 2660 query I rowsort SELECT DISTINCT + + 59 AS col2 FROM tab1, tab1 AS cor0 ---- 59 query I rowsort SELECT DISTINCT col2 * + col2 + + cor0.col2 * + col1 FROM tab0 AS cor0 ---- 14186 3927 98 query I rowsort SELECT + col2 + + cor0.col0 AS col1 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT ALL - + col1 + + col0 AS col1 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT + + col0 - col1 FROM tab0 AS cor0 ---- -2 -62 query I rowsort SELECT ALL - cor0.col0 * col0 + ( - col1 ) * col2 FROM tab0 cor0 ---- -1322 -15383 -3414 onlyif mysql # use DIV operator for integer division query I rowsort label-1259 SELECT + 52 DIV + col1 + + ( - col1 ) AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-1259 SELECT + 52 / + col1 + + ( - col1 ) AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-1260 SELECT ALL col0 * - col2 + ( col1 ) DIV + col1 AS col1 FROM tab1 AS cor0 ---- -161 -3647 -7679 skipif mysql # not compatible query I rowsort label-1260 SELECT ALL col0 * - col2 + ( col1 ) / + col1 AS col1 FROM tab1 AS cor0 ---- -161 -3647 -7679 query I rowsort SELECT DISTINCT - col2 * col2 - col0 FROM tab2 AS cor0 ---- -1523 -736 -754 query I rowsort SELECT DISTINCT 42 + - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -40 41 9 query I rowsort SELECT ALL 11 * col2 * col1 FROM tab0 AS cor0 ---- 1067 31218 82082 query I rowsort SELECT ALL + - ( - col2 ) AS col0 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1265 SELECT + ( + col2 ) + CAST( + col0 AS SIGNED ) FROM tab0 cor0 ---- 171 36 57 skipif mysql # not compatible query I rowsort label-1265 SELECT + ( + col2 ) + CAST ( + col0 AS INTEGER ) FROM tab0 cor0 ---- 171 36 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1266 SELECT ALL + col1 * col2 + - CAST( NULL AS DECIMAL ) / - 12 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-1266 SELECT ALL + col1 * col2 + - CAST ( NULL AS REAL ) / - 12 col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 + - ( col0 ) AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col2 * - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT + ( - col1 ) * col1 + + 64 * 52 + col1 FROM tab0 AS cor0 ---- -3982 -4862 -5984 query I rowsort SELECT DISTINCT + 38 + - col1 FROM tab2 AS cor0 ---- -21 21 7 query I rowsort SELECT cor0.col1 * col1 + + cor0.col1 FROM tab0 AS cor0 ---- 7482 8372 9506 onlyif mysql # use DIV operator for integer division query I rowsort label-1272 SELECT + cor0.col2 DIV 7 + col1 AS col2 FROM tab2 AS cor0 ---- 22 34 62 skipif mysql # not compatible query I rowsort label-1272 SELECT + cor0.col2 / 7 + col1 AS col2 FROM tab2 AS cor0 ---- 22 34 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 31 * col1 col1 FROM tab2 cor0 ---- -1829 -527 -961 query I rowsort SELECT DISTINCT + col0 * + 76 + col1 * - col1 FROM tab2 AS cor0 ---- -429 2447 5715 query I rowsort SELECT + col1 * - col2 + col0 - - ( - col2 + col0 ) AS col0 FROM tab2 AS cor0 ---- -1404 -526 -850 query I rowsort SELECT ALL col1 * + col0 + + tab1.col0 AS col1 FROM tab1 ---- 1120 704 81 query I rowsort SELECT col1 * - col1 + + col1 * - col0 * col1 FROM tab0 AS cor0 ---- -184900 -338724 -745290 query I rowsort SELECT - 63 * + ( + tab1.col2 ) + col1 * - col0 * + tab1.col1 AS col1 FROM tab1 ---- -19568 -5430 -9991 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1279 SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1279 SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 90 * col1 col2 FROM tab2 ---- 1530 2790 5310 onlyif mysql # use DIV operator for integer division query I rowsort label-1281 SELECT ALL + col0 DIV + tab0.col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1281 SELECT ALL + col0 / + tab0.col1 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1282 SELECT DISTINCT - col0 DIV col1 AS col2 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-1282 SELECT DISTINCT - col0 / col1 AS col2 FROM tab0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1283 SELECT ALL col0 DIV tab1.col2 AS col0 FROM tab1 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-1283 SELECT ALL col0 / tab1.col2 AS col0 FROM tab1 ---- 0 0 1 query I rowsort SELECT col1 + - col0 + col0 AS col0 FROM tab0 ---- 86 91 97 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL > + col2 + col1 * col1 * - col1 + col2 * + col1 ---- query I rowsort SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT col0 NOT BETWEEN - col0 AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-1287 SELECT col2 DIV col0 + col0 AS col2 FROM tab0 ---- 25 35 89 skipif mysql # not compatible query I rowsort label-1287 SELECT col2 / col0 + col0 AS col2 FROM tab0 ---- 25 35 89 query I rowsort SELECT + col2 * - col0 * + tab0.col0 FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT col0 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col1 ) ---- query I rowsort SELECT ALL col0 + col0 + col2 FROM tab2 ---- 182 196 41 query I rowsort SELECT ALL col1 + col2 + + col1 AS col1 FROM tab2 ---- 144 72 89 query I rowsort SELECT + col2 * - col1 * col2 FROM tab1 ---- -119808 -32490 -75816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 col1 FROM tab1 WHERE ( NULL ) <= col2 + + col0 ---- query I rowsort SELECT - col2 + col2 * col0 AS col2 FROM tab2 ---- 162 2002 2964 query I rowsort SELECT - tab0.col1 * col0 * + col1 FROM tab0 WHERE ( - col0 ) IN ( tab0.col2 + col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + col2 * + col2 col2 FROM tab2 ---- 17576 19683 54872 onlyif mysql # use DIV operator for integer division query I rowsort label-1297 SELECT ALL col2 + col0 DIV - col0 + + tab2.col1 FROM tab2 ---- 54 57 84 skipif mysql # not compatible query I rowsort label-1297 SELECT ALL col2 + col0 / - col0 + + tab2.col1 FROM tab2 ---- 54 57 84 onlyif mysql # use DIV operator for integer division query I rowsort label-1298 SELECT col1 DIV + col1 + col2 * col1 FROM tab1 ---- 1249 1405 571 skipif mysql # not compatible query I rowsort label-1298 SELECT col1 / + col1 + col2 * col1 FROM tab1 ---- 1249 1405 571 query I rowsort SELECT DISTINCT + col0 + + col0 + tab1.col2 FROM tab1 ---- 185 256 60 onlyif mysql # use DIV operator for integer division query I rowsort label-1300 SELECT DISTINCT tab1.col2 DIV tab1.col1 col2 FROM tab1 ---- 2 5 7 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1300 SELECT DISTINCT tab1.col2 / tab1.col1 col2 FROM tab1 ---- 2 5 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1301 SELECT col2 * col0 + CAST( - 81 AS SIGNED ) * col2 FROM tab1 AS cor0 ---- -4212 -96 -969 skipif mysql # not compatible query I rowsort label-1301 SELECT col2 * col0 + CAST ( - 81 AS INTEGER ) * col2 FROM tab1 AS cor0 ---- -4212 -96 -969 query I rowsort SELECT + 28 + col0 AS col0 FROM tab2 AS cor0 ---- 106 107 35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 79 * col0 - 63 col0 FROM tab2 AS cor0 ---- 490 6099 6178 query I rowsort SELECT - col0 * col0 * - ( - col0 ) + - col0 FROM tab2 AS cor0 ---- -350 -474630 -493118 query I rowsort SELECT DISTINCT col2 - - col0 AS col1 FROM tab2 ---- 104 117 34 query III rowsort SELECT * FROM tab0 AS cor0 WHERE + col0 = cor0.col0 * - col1 * + col1 + col2 + col0 ---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN col2 AND - col1 * col1 ---- query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT DISTINCT col1 * + col1 * - col1 AS col2 FROM tab0 WHERE NOT NULL IN ( col1 / col2 ) ---- query I rowsort SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 + col2 ---- query III rowsort SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2 ---- query I rowsort SELECT + col1 + + col1 * col0 * - col2 FROM tab2 ---- -119593 -51017 -5828 query I rowsort SELECT col2 + cor0.col2 FROM tab0 AS cor0 WHERE NOT + col1 <> col0 + + col1 ---- query I rowsort SELECT DISTINCT col2 + col0 * col1 AS col1 FROM tab2 ---- 1381 244 4628 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL = col1 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-1316 SELECT + 61 DIV 20 AS col0 FROM tab0 cor0 ---- 3 3 3 skipif mysql # not compatible query I rowsort label-1316 SELECT + 61 / 20 AS col0 FROM tab0 cor0 ---- 3 3 3 onlyif mysql # use DIV operator for integer division query I rowsort label-1317 SELECT ALL col2 DIV - 39 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1317 SELECT ALL col2 / - 39 FROM tab2 ---- 0 0 0 query I rowsort SELECT ( col2 * col1 ) FROM tab0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT 97 - + col2 AS col2 FROM tab2 ---- 59 70 71 onlyif mysql # use DIV operator for integer division query I rowsort label-1320 SELECT - 46 + 56 DIV + tab1.col0 AS col0 FROM tab1 ---- -28 -46 -46 skipif mysql # not compatible query I rowsort label-1320 SELECT - 46 + 56 / + tab1.col0 AS col0 FROM tab1 ---- -28 -46 -46 query I rowsort SELECT DISTINCT tab2.col2 * + 58 FROM tab2 ---- 1508 1566 2204 query I rowsort SELECT + ( + tab0.col2 ) AS col0 FROM tab0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1323 SELECT + + CAST( + 14 AS SIGNED ) FROM tab0 AS cor0 ---- 14 14 14 skipif mysql # not compatible query I rowsort label-1323 SELECT + + CAST ( + 14 AS INTEGER ) FROM tab0 AS cor0 ---- 14 14 14 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1324 SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1324 SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT - ( 86 ) + col0 AS col1 FROM tab1 AS cor0 ---- -22 -6 -83 query I rowsort SELECT col0 + tab0.col0 * + col1 AS col0 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT - + 11 * cor0.col2 + - col2 FROM tab0 cor0 ---- -12 -396 -984 onlyif mysql # use DIV operator for integer division query I rowsort label-1328 SELECT + + col2 + + col2 DIV 76 AS col0 FROM tab0 AS cor0 ---- 1 33 83 skipif mysql # not compatible query I rowsort label-1328 SELECT + + col2 + + col2 / 76 AS col0 FROM tab0 AS cor0 ---- 1 33 83 onlyif mysql # use DIV operator for integer division query I rowsort label-1329 SELECT ALL + col0 * CAST( col1 AS SIGNED ) + - col0 DIV col2 + - col1 AS col0 FROM tab0 AS cor0 ---- 1978 3263 8007 skipif mysql # not compatible query I rowsort label-1329 SELECT ALL + col0 * CAST ( col1 AS INTEGER ) + - col0 / col2 + - col1 AS col0 FROM tab0 AS cor0 ---- 1978 3263 8007 onlyif mysql # use DIV operator for integer division query I rowsort label-1330 SELECT DISTINCT cor0.col2 DIV col1 + - col2 - - col2 AS col1 FROM tab0 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1330 SELECT DISTINCT cor0.col2 / col1 + - col2 - - col2 AS col1 FROM tab0 cor0 ---- 0 query I rowsort SELECT ALL col0 * + ( + col2 ) * - col0 FROM tab1 AS cor0 ---- -233472 -486 -614400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1332 SELECT cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1332 SELECT cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 * + 50 + - col1 * + col0 FROM tab0 AS cor0 ---- -1645 -3649 -864 query I rowsort SELECT DISTINCT - cor0.col0 + 75 FROM tab1 cor0 ---- -5 11 72 query I rowsort SELECT ALL cor0.col2 + - col0 * + col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT ALL + - col2 - 14 AS col2 FROM tab1 AS cor0 ---- -110 -68 -71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 85 * + cor0.col2 col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 89a31ca0154a7b2ea2c188150f7fd4e5 query I rowsort SELECT ALL + ( - 58 ) AS col0 FROM tab2 AS cor0 ---- -58 -58 -58 onlyif mysql # use DIV operator for integer division query I rowsort label-1339 SELECT + 47 DIV + col1 FROM tab2 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-1339 SELECT + 47 / + col1 FROM tab2 AS cor0 ---- 0 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * - 53 + col1 col0 FROM tab1 AS cor0 ---- 2888 3031 5101 query I rowsort SELECT + ( + col1 ) * - col2 + col0 * + cor0.col2 FROM tab0 AS cor0 ---- -164 -2046 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( col0 ) col1 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT 83 + - ( + tab1.col1 ) FROM tab1 ---- 57 70 73 query I rowsort SELECT ALL - + ( - col2 ) AS col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT + - 88 * - col1 AS col2 FROM tab1 AS cor0 ---- 1144 2288 880 query I rowsort SELECT DISTINCT + col2 * ( col1 ) * - col1 FROM tab0 ---- -244068 -679042 -9409 query I rowsort SELECT col2 * tab2.col1 + - tab2.col2 FROM tab2 ---- 1508 608 810 query I rowsort SELECT + col2 * col0 + tab2.col1 * + tab2.col1 * + tab2.col1 FROM tab2 ---- 207407 29980 7915 onlyif mysql # use DIV operator for integer division query I rowsort label-1349 SELECT DISTINCT col1 + + col0 DIV col0 AS col1 FROM tab0 AS cor0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-1349 SELECT DISTINCT col1 + + col0 / col0 AS col1 FROM tab0 AS cor0 ---- 87 92 98 onlyif mysql # use DIV operator for integer division query I rowsort label-1350 SELECT col1 DIV ( + ( + col2 ) ) AS col0 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1350 SELECT col1 / ( + ( + col2 ) ) AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 * ( + col0 ) FROM tab0 cor0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT - col2 * col0 + col1 AS col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT + col1 + + col1 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 195 205 264 onlyif mysql # use DIV operator for integer division query I rowsort label-1354 SELECT col1 + - cor0.col2 DIV - 98 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-1354 SELECT col1 + - cor0.col2 / - 98 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + col2 + - col2 * - cor0.col0 FROM tab0 AS cor0 ---- 36 7380 825 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * ( + col1 ) * + col2 col2 FROM tab2 AS cor0 ---- 119652 51034 5859 skipif mysql # not compatible query I rowsort SELECT col1 * CAST ( - cor0.col2 AS REAL ) + cor0.col0 FROM tab0 cor0 ---- -2814 -62 -7373 onlyif mysql # use DIV operator for integer division query I rowsort label-1358 SELECT ALL + col2 DIV col1 FROM tab1 cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-1358 SELECT ALL + col2 / col1 FROM tab1 cor0 ---- 2 5 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1359 SELECT ALL - cor0.col1 + CAST( NULL AS DECIMAL ) * col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1359 SELECT ALL - cor0.col1 + CAST ( NULL AS REAL ) * col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 * + ( - 35 ) AS col0 FROM tab0 AS cor0 ---- -1225 -3115 -840 query I rowsort SELECT DISTINCT + 90 + col0 AS col2 FROM tab0 ---- 114 125 179 query I rowsort SELECT 98 + + col0 + - col1 FROM tab2 ---- 117 160 74 query I rowsort SELECT DISTINCT tab0.col1 * + 68 FROM tab0 ---- 5848 6188 6596 query I rowsort SELECT ALL cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT DISTINCT col1 + - 76 AS col1 FROM tab2 ---- -17 -45 -59 query I rowsort SELECT ALL col1 * col0 * col2 AS col2 FROM tab1 AS cor0 ---- 36480 4212 99840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1367 SELECT DISTINCT col0 + CAST( + 82 AS SIGNED ) FROM tab2 AS cor0 ---- 160 161 89 skipif mysql # not compatible query I rowsort label-1367 SELECT DISTINCT col0 + CAST ( + 82 AS INTEGER ) FROM tab2 AS cor0 ---- 160 161 89 onlyif mysql # use DIV operator for integer division query I rowsort label-1368 SELECT - cor0.col0 DIV col1 col1 FROM tab1 AS cor0 ---- -6 -6 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1368 SELECT - cor0.col0 / col1 col1 FROM tab1 AS cor0 ---- -6 -6 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1369 SELECT col1 + - 50 DIV col2 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-1369 SELECT col1 + - 50 / col2 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1370 SELECT DISTINCT + cor0.col1 * - CAST( - cor0.col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 7396 8281 9409 skipif mysql # not compatible query I rowsort label-1370 SELECT DISTINCT + cor0.col1 * - CAST ( - cor0.col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT col2 + - 69 AS col1 FROM tab1 ---- -12 -15 27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + - col0 + col2 col0 FROM tab1 ---- 105 112 50 query I rowsort SELECT ALL + col0 + col0 * col1 AS col0 FROM tab0 ---- 2088 3430 8188 query IIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) >= NULL ---- query I rowsort SELECT - col2 * + col0 + col1 AS col2 FROM tab2 AS cor0 ---- -158 -1969 -2985 onlyif mysql # use DIV operator for integer division query I rowsort label-1376 SELECT + col2 * col0 DIV col0 AS col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-1376 SELECT + col2 * col0 / col0 AS col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL - col0 * - col2 * col1 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT - cor0.col2 + col1 * + col0 * col1 AS col2 FROM tab1 cor0 ---- 13424 1974 6343 query I rowsort SELECT + col1 * cor0.col1 + + col1 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 10234 15743 9506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * - col2 + col0 col1 FROM tab2 AS cor0 ---- -1365 -598 -722 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + - col1 * - cor0.col2 * col1 col1 FROM tab2 AS cor0 ---- 10999 25978 90565 query I rowsort SELECT col0 * + col0 + + col0 AS col0 FROM tab1 AS cor0 ---- 12 4160 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-1383 SELECT DISTINCT 80 DIV tab2.col0 + col0 AS col0 FROM tab2 ---- 18 79 80 skipif mysql # not compatible query I rowsort label-1383 SELECT DISTINCT 80 / tab2.col0 + col0 AS col0 FROM tab2 ---- 18 79 80 query I rowsort SELECT DISTINCT ( + col2 ) * + col1 + col0 AS col2 FROM tab0 ---- 132 2862 7551 onlyif mysql # use DIV operator for integer division query I rowsort label-1385 SELECT DISTINCT - col2 + col2 * - cor0.col1 DIV col1 FROM tab2 AS cor0 ---- -52 -54 -76 skipif mysql # not compatible query I rowsort label-1385 SELECT DISTINCT - col2 + col2 * - cor0.col1 / col1 FROM tab2 AS cor0 ---- -52 -54 -76 query I rowsort SELECT ALL + - col2 + - col1 + + col0 FROM tab2 cor0 ---- -51 -7 24 query I rowsort SELECT DISTINCT - col0 + col1 + + col0 AS col2 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT col0 * - col2 * col2 - + col0 FROM tab0 AS cor0 ---- -26160 -598525 -70 query I rowsort SELECT ALL - 66 + col0 AS col1 FROM tab2 AS cor0 ---- -59 12 13 query I rowsort SELECT + + col2 * col0 - col0 AS col2 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT + - 20 * + col1 AS col2 FROM tab2 AS cor0 ---- -1180 -340 -620 query I rowsort SELECT ALL col0 * cor0.col0 + col2 AS col2 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT DISTINCT - + 79 - col1 * - col2 AS col0 FROM tab0 AS cor0 ---- 18 2759 7383 query I rowsort SELECT DISTINCT + col1 * - col2 + col1 AS col0 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT cor0.col2 + - col2 AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT col2 * + cor0.col2 * - col2 + col1 AS col0 FROM tab2 AS cor0 ---- -17517 -19652 -54855 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col0 - cor0.col2 col1 FROM tab0 AS cor0 ---- 2031 3394 8017 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 * cor0.col0 - + col2 col0 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT + + 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 query I rowsort SELECT 17 + col2 AS col2 FROM tab0 AS cor0 ---- 18 50 99 query I rowsort SELECT + - col0 * - ( col0 ) + col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT + col0 + - col0 * + col2 AS col2 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT + + col0 + + col1 * col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL - col2 + col1 * col0 FROM tab2 cor0 ---- 1305 190 4576 query I rowsort SELECT ALL + 12 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6 query I rowsort SELECT DISTINCT - cor0.col0 - - col2 * 69 AS col1 FROM tab2 AS cor0 ---- 1716 1856 2543 query I rowsort SELECT - col2 * + ( col2 + + col1 ) * - col1 AS col0 FROM tab0 AS cor0 ---- 1290926 337722 9506 query I rowsort SELECT DISTINCT ( 17 ) FROM tab0 AS cor0 ---- 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + - 38 * col2 col1 FROM tab0 AS cor0 ---- -1278 -3205 -73 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( col2 AS REAL ) col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL 86 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 query I rowsort SELECT DISTINCT - 8 AS col0 FROM tab1 AS cor0 ---- -8 query I rowsort SELECT DISTINCT - cor0.col0 + - col0 * col1 AS col1 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT DISTINCT + cor0.col1 * + col2 * col0 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT - - 73 * - col1 + - col0 AS col0 FROM tab1 AS cor0 ---- -1029 -1901 -794 onlyif mysql # use DIV operator for integer division query I rowsort label-1416 SELECT ALL - cor0.col0 DIV + 69 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to 721682d0719de924079c33bd72eef789 skipif mysql # not compatible query I rowsort label-1416 SELECT ALL - cor0.col0 / + 69 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to 721682d0719de924079c33bd72eef789 query I rowsort SELECT ALL - 82 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to ce62f59690969f4492d78eb57c3181f0 query I rowsort SELECT + cor0.col1 * - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - 84 * + col2 FROM tab0 AS cor0 ---- -2772 -6888 -84 query I rowsort SELECT ALL 34 * - tab1.col2 FROM tab1 ---- -1836 -1938 -3264 query I rowsort SELECT + ( - col2 ) + + ( + ( col0 ) + - 49 ) FROM tab0 ---- -15 -42 -58 query I rowsort SELECT - col1 * col0 + cor0.col2 * col1 FROM tab0 AS cor0 ---- -3298 -637 774 query I rowsort SELECT DISTINCT col2 + + col0 + - ( col0 ) * 57 AS col1 FROM tab2 AS cor0 ---- -365 -4342 -4386 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1424 SELECT DISTINCT col0 * + ( - col2 * col1 ) - - CAST( NULL AS SIGNED ) * + cor0.col1 AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1424 SELECT DISTINCT col0 * + ( - col2 * col1 ) - - CAST ( NULL AS INTEGER ) * + cor0.col1 AS col0 FROM tab2 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1425 SELECT ALL + 54 DIV - col2 AS col2 FROM tab1 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-1425 SELECT ALL + 54 / - col2 AS col2 FROM tab1 ---- -1 0 0 query I rowsort SELECT + col0 * - 66 AS col2 FROM tab1 ---- -198 -4224 -5280 query I rowsort SELECT ALL 47 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d query I rowsort SELECT ALL + cor0.col1 + - col0 * col0 FROM tab1 AS cor0 ---- -4086 -6387 17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1429 SELECT ALL CAST( NULL AS SIGNED ) * col0 + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1429 SELECT ALL CAST ( NULL AS INTEGER ) * col0 + col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + + col1 * + 71 FROM tab0 AS cor0 ---- 6106 6461 6887 query I rowsort SELECT + 73 + col2 + col0 AS col2 FROM tab0 AS cor0 ---- 109 130 244 query I rowsort SELECT + col0 * col2 * - col1 AS col1 FROM tab2 ---- -119652 -51034 -5859 onlyif mysql # use DIV operator for integer division query I rowsort label-1433 SELECT col1 * 78 DIV col0 FROM tab2 ---- 16 345 59 skipif mysql # not compatible query I rowsort label-1433 SELECT col1 * 78 / col0 FROM tab2 ---- 16 345 59 query I rowsort SELECT DISTINCT + col0 + - 58 AS col0 FROM tab1 ---- -55 22 6 onlyif mysql # use DIV operator for integer division query I rowsort label-1435 SELECT + + ( col1 ) DIV - col0 FROM tab2 AS cor0 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-1435 SELECT + + ( col1 ) / - col0 FROM tab2 AS cor0 ---- -4 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1436 SELECT + - col2 + - col1 - col0 DIV col0 FROM tab0 AS cor0 ---- -120 -174 -99 skipif mysql # not compatible query I rowsort label-1436 SELECT + - col2 + - col1 - col0 / col0 FROM tab0 AS cor0 ---- -120 -174 -99 onlyif mysql # use DIV operator for integer division query I rowsort label-1437 SELECT col1 DIV + col0 col2 FROM tab2 AS cor0 ---- 0 0 4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1437 SELECT col1 / + col0 col2 FROM tab2 AS cor0 ---- 0 0 4 query I rowsort SELECT - col2 * - 94 * + cor0.col1 + 71 AS col0 FROM tab2 AS cor0 ---- 144267 60795 78749 skipif mysql # not compatible query I rowsort SELECT - - CAST ( 8 AS REAL ) + + col0 FROM tab0 AS cor0 ---- 32 43 97 query I rowsort SELECT cor0.col1 * - ( col1 ) + col1 * + col0 AS col0 FROM tab0 AS cor0 ---- -182 -5332 -6014 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1441 SELECT - CAST( + cor0.col0 AS SIGNED ) + + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1441 SELECT - CAST ( + cor0.col0 AS INTEGER ) + + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1442 SELECT col0 * 44 DIV + col0 + + col2 AS col0 FROM tab0 ---- 126 45 77 skipif mysql # not compatible query I rowsort label-1442 SELECT col0 * 44 / + col0 + + col2 AS col0 FROM tab0 ---- 126 45 77 query I rowsort SELECT DISTINCT - + col1 - 28 FROM tab0 AS cor0 ---- -114 -119 -125 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 43 col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 199105619049271147956de52e7f5ed4 query I rowsort SELECT + tab1.col2 * - col0 * - 77 AS col1 FROM tab1 ---- 12474 280896 591360 query I rowsort SELECT ALL + col2 * - col1 - + col0 AS col1 FROM tab2 cor0 ---- -1612 -725 -844 query I rowsort SELECT ALL col0 * col2 + 60 * cor0.col2 + + col0 FROM tab1 AS cor0 ---- 13520 3405 7132 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1448 SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1448 SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 ---- NULL query I rowsort SELECT ALL - + col0 + 41 AS col2 FROM tab2 AS cor0 ---- -37 -38 34 onlyif mysql # use DIV operator for integer division query I rowsort label-1450 SELECT ALL + cor0.col1 DIV ( 47 ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1450 SELECT ALL + cor0.col1 / ( 47 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT col0 + 10 FROM tab1 AS cor0 ---- 13 74 90 onlyif mysql # use DIV operator for integer division query I rowsort label-1452 SELECT ALL + ( + 44 ) + col2 DIV - ( cor0.col0 ) FROM tab1 AS cor0 ---- 26 43 44 skipif mysql # not compatible query I rowsort label-1452 SELECT ALL + ( + 44 ) + col2 / - ( cor0.col0 ) FROM tab1 AS cor0 ---- 26 43 44 query I rowsort SELECT ALL col0 * col0 + col2 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT ALL - + ( - 81 ) AS col0 FROM tab0 AS cor0 ---- 81 81 81 onlyif mysql # use DIV operator for integer division query I rowsort label-1455 SELECT DISTINCT 94 + cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0 ---- 112 94 95 skipif mysql # not compatible query I rowsort label-1455 SELECT DISTINCT 94 + cor0.col2 / col0 AS col2 FROM tab1 AS cor0 ---- 112 94 95 query I rowsort SELECT ALL + 36 * col0 + col0 * - ( + col1 ) AS col1 FROM tab2 AS cor0 ---- -1794 1501 35 query I rowsort SELECT DISTINCT - 17 AS col0 FROM tab2 cor0 ---- -17 query I rowsort SELECT DISTINCT - col1 - + col0 * col1 AS col0 FROM tab0 AS cor0 ---- -2150 -3492 -8190 query I rowsort SELECT ALL + - 33 AS col2 FROM tab0 AS cor0 ---- -33 -33 -33 query I rowsort SELECT ALL - col2 + 29 + - 76 FROM tab2 ---- -73 -74 -85 query I rowsort SELECT ALL tab2.col0 * - col1 * col1 + + col0 FROM tab2 ---- -22752 -271440 -6720 query I rowsort SELECT DISTINCT - 75 + col2 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- -1519 -751 -804 onlyif mysql # use DIV operator for integer division query I rowsort label-1463 SELECT 84 - - cor0.col2 DIV col0 FROM tab2 AS cor0 ---- 84 84 87 skipif mysql # not compatible query I rowsort label-1463 SELECT 84 - - cor0.col2 / col0 FROM tab2 AS cor0 ---- 84 84 87 query I rowsort SELECT ALL + - ( + col0 ) * ( ( - col2 ) ) + - col0 AS col2 FROM tab1 cor0 ---- 159 3584 7600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + - col0 * col1 col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 - + col2 col0 FROM tab1 AS cor0 ---- -108 -114 -192 query I rowsort SELECT - col0 + + col1 * + col1 AS col1 FROM tab2 AS cor0 ---- 210 3403 954 onlyif mysql # use DIV operator for integer division query I rowsort label-1468 SELECT DISTINCT - 30 DIV + col1 FROM tab1 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-1468 SELECT DISTINCT - 30 / + col1 FROM tab1 AS cor0 ---- -1 -2 -3 query I rowsort SELECT + + cor0.col2 - col0 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT ALL - col0 + + col2 * - col1 AS col0 FROM tab1 cor0 ---- -1328 -1407 -634 query I rowsort SELECT + ( - col0 ) + + ( + col1 ) * col2 * - ( - col2 ) + - col0 FROM tab1 AS cor0 ---- 119648 32362 75810 query I rowsort SELECT + ( + 28 ) * - col2 * tab0.col2 AS col1 FROM tab0 ---- -188272 -28 -30492 query I rowsort SELECT + col2 * col1 + ( 78 ) + - col2 * + 65 AS col0 FROM tab1 AS cor0 ---- -2028 -3057 -4914 query I rowsort SELECT ALL - - col0 + + col2 * + ( col1 + cor0.col0 ) FROM tab1 AS cor0 ---- 1569 4282 9008 query I rowsort SELECT ALL + 70 AS col1 FROM tab1 AS cor0 ---- 70 70 70 query I rowsort SELECT ALL + col2 * 16 - - col2 AS col2 FROM tab2 AS cor0 ---- 442 459 646 query I rowsort SELECT DISTINCT + + col2 - col0 FROM tab1 cor0 ---- -7 16 51 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT DISTINCT - + col0 * CAST ( - col1 AS REAL ) col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL + 95 * 82 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to cfcb9439388473e8ebef190aa97623ec query I rowsort SELECT DISTINCT - 93 + - col2 FROM tab0 ---- -126 -175 -94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 1 col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to da8a72a7967c0c73d91239275230aed9 query I rowsort SELECT col1 - 70 FROM tab0 AS cor0 ---- 16 21 27 query I rowsort SELECT col0 + + col2 - 24 FROM tab0 AS cor0 ---- 12 147 33 query I rowsort SELECT + - col2 * - 34 + col2 FROM tab1 AS cor0 ---- 1890 1995 3360 query I rowsort SELECT DISTINCT + col0 * col1 * - 22 FROM tab0 AS cor0 ---- -178178 -45408 -74690 onlyif mysql # use DIV operator for integer division query I rowsort label-1486 SELECT DISTINCT - col1 + - col1 DIV - 96 AS col1 FROM tab0 AS cor0 ---- -86 -91 -96 skipif mysql # not compatible query I rowsort label-1486 SELECT DISTINCT - col1 + - col1 / - 96 AS col1 FROM tab0 AS cor0 ---- -86 -91 -96 query I rowsort SELECT - col0 + - ( col2 ) AS col1 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT - col0 + 91 * 99 * col0 + - cor0.col0 FROM tab2 AS cor0 ---- 63049 702546 711553 query I rowsort SELECT - col2 + + col0 + col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT - 88 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to eb8cbefa7d831e1a0183e919e2caef32 query I rowsort SELECT DISTINCT 63 * - col2 + 93 FROM tab2 ---- -1545 -1608 -2301 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 39 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 39 onlyif mysql # use DIV operator for integer division query I rowsort label-1493 SELECT - col1 * 96 DIV + col1 + - col1 AS col1 FROM tab1 AS cor0 ---- -106 -109 -122 skipif mysql # not compatible query I rowsort label-1493 SELECT - col1 * 96 / + col1 + - col1 AS col1 FROM tab1 AS cor0 ---- -106 -109 -122 onlyif mysql # use DIV operator for integer division query I rowsort label-1494 SELECT - col0 + - CAST( - col1 AS SIGNED ) - col2 DIV + col0 AS col2 FROM tab0 AS cor0 ---- 2 61 62 skipif mysql # not compatible query I rowsort label-1494 SELECT - col0 + - CAST ( - col1 AS INTEGER ) - col2 / + col0 AS col2 FROM tab0 AS cor0 ---- 2 61 62 query I rowsort SELECT DISTINCT - cor0.col0 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + col2 * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT ALL + col0 * 15 AS col0 FROM tab0 ---- 1335 360 525 query I rowsort SELECT - 95 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 cor3 ---- 243 values hashing to 7f375e73ca6bbe6b79001c2cbb1efee5 onlyif mysql # use DIV operator for integer division query I rowsort label-1499 SELECT col2 * - cor0.col1 DIV col1 FROM tab1 AS cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-1499 SELECT col2 * - cor0.col1 / col1 FROM tab1 AS cor0 ---- -54 -57 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1500 SELECT ALL - + CAST( NULL AS SIGNED ) * 30 + 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-1500 SELECT ALL - + CAST ( NULL AS INTEGER ) * 30 + col1 col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 57 * tab2.col1 * - 52 FROM tab2 ---- -174876 -50388 -91884 query I rowsort SELECT ALL + - col1 * + col0 AS col0 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-1503 SELECT + col2 DIV - cor0.col1 AS col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-1503 SELECT + col2 / - cor0.col1 AS col1 FROM tab1 AS cor0 ---- -2 -5 -7 onlyif mysql # use DIV operator for integer division query I rowsort label-1504 SELECT ALL + col1 DIV + cor0.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-1504 SELECT ALL + col1 / + cor0.col0 col1 FROM tab0 AS cor0 ---- 1 2 3 query I rowsort SELECT DISTINCT + ( 17 ) * - col2 * col2 AS col0 FROM tab0 AS cor0 ---- -114308 -17 -18513 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * + col1 col2 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - + ( + col1 ) + - col0 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT 46 * - col1 FROM tab1 AS cor0 ---- -1196 -460 -598 query I rowsort SELECT ALL + 90 + - col1 * + col1 AS col1 FROM tab0 AS cor0 ---- -7306 -8191 -9319 query I rowsort SELECT + cor0.col1 + 55 * + col2 FROM tab0 AS cor0 ---- 152 1901 4601 query I rowsort SELECT + tab2.col2 * + col0 AS col1 FROM tab2 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-1512 SELECT + + col1 DIV col1 AS col1 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1512 SELECT + + col1 / col1 AS col1 FROM tab2 AS cor0 ---- 1 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1513 SELECT - CAST( NULL AS SIGNED ) / - 88 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1513 SELECT - CAST ( NULL AS INTEGER ) / - 88 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1514 SELECT cor0.col0 DIV 4 + 80 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 109a0cce5be3fb14002c728a6a2f108e skipif mysql # not compatible query I rowsort label-1514 SELECT cor0.col0 / 4 + 80 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 109a0cce5be3fb14002c728a6a2f108e query I rowsort SELECT DISTINCT + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1 ---- 17 31 59 query I rowsort SELECT 46 + + cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to e6d5b948d3e0c870da27f720e1b62142 onlyif mysql # use DIV operator for integer division query I rowsort label-1517 SELECT col0 + - col1 DIV + ( + ( + col1 ) ) AS col0 FROM tab2 AS cor0 ---- 6 77 78 skipif mysql # not compatible query I rowsort label-1517 SELECT col0 + - col1 / + ( + ( + col1 ) ) AS col0 FROM tab2 AS cor0 ---- 6 77 78 query I rowsort SELECT col1 + - col2 - col0 * + col2 AS col0 FROM tab1 AS cor0 ---- -190 -3695 -7763 onlyif mysql # use DIV operator for integer division query I rowsort label-1519 SELECT ALL + col1 DIV ( + col2 ) col0 FROM tab1 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1519 SELECT ALL + col1 / ( + col2 ) col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT - col1 + - ( col2 ) FROM tab2 cor0 ---- -55 -58 -85 query I rowsort SELECT ALL + cor0.col1 - 10 FROM tab0 AS cor0 ---- 76 81 87 query I rowsort SELECT + + col1 * - col0 + col0 * cor0.col0 AS col1 FROM tab2 cor0 ---- -168 1482 4898 query I rowsort SELECT - - col0 + - col2 * col0 AS col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT + cor0.col1 * 35 + - cor0.col1 * + col2 FROM tab2 AS cor0 ---- -51 248 531 query I rowsort SELECT DISTINCT - col2 - + 76 FROM tab2 AS cor0 ---- -102 -103 -114 skipif mysql # not compatible query I rowsort SELECT - cor0.col2 * - 37 * col1 + col0 * + CAST ( - ( col2 ) AS REAL ) FROM tab2 cor0 ---- 20900 30780 54730 query I rowsort SELECT col0 * - col0 + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -42 -6006 -6162 query I rowsort SELECT ALL + + col2 + - col2 * - col2 AS col1 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT + - cor0.col0 * - col1 + ( col1 ) AS col0 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT - col2 * - ( - col2 ) - col0 AS col2 FROM tab2 cor0 ---- -1523 -736 -754 query I rowsort SELECT DISTINCT ( - col0 ) + + col0 + ( + col0 ) FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT + 80 + col2 FROM tab0 cor0 ---- 113 162 81 query I rowsort SELECT ALL + col1 * col2 + + cor0.col0 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT DISTINCT 55 + 69 FROM tab0 cor0 ---- 124 query I rowsort SELECT ALL ( - col2 ) * + cor0.col2 + col0 AS col1 FROM tab1 AS cor0 ---- -2913 -3185 -9136 onlyif mysql # use DIV operator for integer division query I rowsort label-1536 SELECT ALL + ( col0 ) DIV + col2 FROM tab0 AS cor0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-1536 SELECT ALL + ( col0 ) / + col2 FROM tab0 AS cor0 ---- 0 1 35 query I rowsort SELECT DISTINCT + ( col0 ) + + col0 AS col1 FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT col2 + ( - col0 ) AS col0 FROM tab0 AS cor0 ---- -34 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-1539 SELECT col2 * col2 + + cor0.col1 DIV + 59 FROM tab1 AS cor0 ---- 2916 3249 9216 skipif mysql # not compatible query I rowsort label-1539 SELECT col2 * col2 + + cor0.col1 / + 59 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT ALL 26 + col1 * + col0 AS col2 FROM tab0 AS cor0 ---- 2090 3421 8125 query I rowsort SELECT DISTINCT - 9 + col2 * col1 AS col0 FROM tab1 AS cor0 ---- 1239 1395 561 query I rowsort SELECT ALL + - col1 * col0 * col2 + 3 FROM tab0 AS cor0 ---- -3392 -664115 -68109 onlyif mysql # use DIV operator for integer division query I rowsort label-1543 SELECT + CAST( - col0 AS SIGNED ) + + col0 DIV - 73 AS col1 FROM tab2 AS cor0 ---- -7 -79 -80 skipif mysql # not compatible query I rowsort label-1543 SELECT + CAST ( - col0 AS INTEGER ) + + col0 / - 73 AS col1 FROM tab2 AS cor0 ---- -7 -79 -80 query I rowsort SELECT + - 11 AS col1 FROM tab1 AS cor0 ---- -11 -11 -11 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1545 SELECT DISTINCT - col0 + CAST( + col2 * col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -34 1065 6635 skipif mysql # not compatible query I rowsort label-1545 SELECT DISTINCT - col0 + CAST ( + col2 * col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -34 1065 6635 query I rowsort SELECT ALL col0 * col2 - 17 AS col0 FROM tab1 AS cor0 ---- 145 3631 7663 query I rowsort SELECT ALL - col2 + + 92 * 80 FROM tab0 cor0 ---- 7278 7327 7359 query I rowsort SELECT + col2 * + col1 - + 51 FROM tab0 AS cor0 ---- 2787 46 7411 query I rowsort SELECT ALL + + col2 + + 24 AS col0 FROM tab0 AS cor0 ---- 106 25 57 query I rowsort SELECT - cor0.col2 + 82 * + 62 FROM tab2 AS cor0 ---- 5046 5057 5058 onlyif mysql # use DIV operator for integer division query I rowsort label-1551 SELECT ALL - col1 DIV - 38 FROM tab2 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-1551 SELECT ALL - col1 / - 38 FROM tab2 AS cor0 ---- 0 0 1 query I rowsort SELECT + col0 + ( col1 ) AS col2 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT - col1 - + col1 * + 68 FROM tab0 ---- -5934 -6279 -6693 query I rowsort SELECT DISTINCT - col2 * col1 - col1 FROM tab0 ---- -194 -2924 -7553 query I rowsort SELECT DISTINCT 46 - - col2 * col0 FROM tab0 ---- 7344 81 838 query I rowsort SELECT ALL + ( + col1 ) * ( col2 * col1 ) AS col2 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT - tab0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT tab1.col0 + col1 * col0 AS col2 FROM tab1 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 39 * tab2.col1 col0 FROM tab2 ---- 1209 2301 663 query I rowsort SELECT ALL ( - col1 ) * + col2 AS col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT + col2 + col1 * ( + col1 * col2 ) FROM tab1 cor0 ---- 16320 36558 5757 query I rowsort SELECT - + col0 * + col2 + + 1 AS col2 FROM tab1 cor0 ---- -161 -3647 -7679 query I rowsort SELECT + + 10 + col1 AS col1 FROM tab0 AS cor0 ---- 101 107 96 query I rowsort SELECT - + col0 * col1 + col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT ALL + - 37 + + col1 AS col2 FROM tab2 AS cor0 ---- -20 -6 22 query I rowsort SELECT DISTINCT - ( col0 ) * + 5 FROM tab0 cor0 ---- -120 -175 -445 onlyif mysql # use DIV operator for integer division query I rowsort label-1567 SELECT - cor0.col0 DIV + col1 + - 43 + col1 * col0 AS col0 FROM tab1 AS cor0 ---- 35 591 991 skipif mysql # not compatible query I rowsort label-1567 SELECT - cor0.col0 / + col1 + - 43 + col1 * col0 AS col0 FROM tab1 AS cor0 ---- 35 591 991 query I rowsort SELECT - + 24 + col1 * 48 + + col2 FROM tab2 AS cor0 ---- 1491 2834 830 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 4 col1 FROM tab1, tab0 AS cor0 ---- 4 query I rowsort SELECT - col2 * col1 + - col2 * - col1 * col1 AS col2 FROM tab0 ---- 241230 671580 9312 query I rowsort SELECT ALL - cor0.col2 * + 15 FROM tab2 AS cor0 ---- -390 -405 -570 query IIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab1 cor2 ---- 972 values hashing to 980274175fafec015a83080672486a9a query I rowsort SELECT col0 * 32 AS col0 FROM tab0 AS cor0 ---- 1120 2848 768 query I rowsort SELECT ALL + + col2 - ( - 97 ) FROM tab0 AS cor0 ---- 130 179 98 query I rowsort SELECT DISTINCT + cor0.col1 * col2 * - col2 FROM tab2 AS cor0 ---- -22599 -24548 -39884 onlyif mysql # use DIV operator for integer division query I rowsort label-1576 SELECT ALL - 56 DIV col0 col2 FROM tab1 AS cor0 ---- -18 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1576 SELECT ALL - 56 / col0 col2 FROM tab1 AS cor0 ---- -18 0 0 query I rowsort SELECT 15 + 93 FROM tab0 AS cor0 ---- 108 108 108 query I rowsort SELECT DISTINCT + - ( + col0 ) * col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL 26 + 38 * col2 FROM tab0 AS cor0 ---- 1280 3142 64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - ( col1 ) * + col0 col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL - - 37 AS col1 FROM tab2 AS cor0 ---- 37 37 37 query I rowsort SELECT - 81 * + 12 * col2 + 73 + - col2 AS col2 FROM tab0 AS cor0 ---- -32036 -79713 -900 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * + col1 * col2 col1 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT ALL 96 * + col1 FROM tab0 AS cor0 ---- 8256 8736 9312 query I rowsort SELECT + 43 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 query I rowsort SELECT tab0.col2 - - col0 * tab0.col1 AS col0 FROM tab0 ---- 2097 3396 8181 skipif mysql # not compatible query I rowsort SELECT ( 12 ) - + col1 * + CAST ( - col0 AS REAL ) FROM tab1 AS cor0 ---- 1052 652 90 query I rowsort SELECT DISTINCT 39 + col0 + col0 FROM tab0 AS cor0 ---- 109 217 87 query I rowsort SELECT DISTINCT 5 * - col0 + - col0 AS col0 FROM tab1 AS cor0 ---- -18 -384 -480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1590 SELECT CAST( NULL AS SIGNED ) * - 81 + + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1590 SELECT CAST ( NULL AS INTEGER ) * - 81 + + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 68 + - col1 * cor0.col2 FROM tab0 AS cor0 ---- -2770 -29 -7394 query I rowsort SELECT - - 99 * ( cor0.col1 * + col0 ) AS col2 FROM tab0 AS cor0 ---- 204336 336105 801801 query I rowsort SELECT - cor0.col0 + - 93 AS col0 FROM tab2 AS cor0 ---- -100 -171 -172 query I rowsort SELECT - cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 onlyif mysql # use DIV operator for integer division query I rowsort label-1595 SELECT - + 93 + col0 DIV - cor0.col1 col0 FROM tab1 AS cor0 ---- -93 -99 -99 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1595 SELECT - + 93 + col0 / - cor0.col1 col0 FROM tab1 AS cor0 ---- -93 -99 -99 query I rowsort SELECT + + cor0.col0 * + col2 + col2 AS col0 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT + - 76 * + col1 + ( - 44 ) - col2 FROM tab0 AS cor0 ---- -6613 -7042 -7417 query I rowsort SELECT + ( + col2 ) * + col2 + - col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT - ( 18 * + col2 ) FROM tab1 ---- -1026 -1728 -972 query I rowsort SELECT ALL - col2 + tab0.col0 * - col1 AS col2 FROM tab0 ---- -2097 -3396 -8181 query I rowsort SELECT 63 + col0 FROM tab1 ---- 127 143 66 query I rowsort SELECT + col1 * col0 * cor0.col0 FROM tab1 AS cor0 ---- 234 40960 83200 query I rowsort SELECT - - col1 * + cor0.col0 AS col0 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT + cor0.col2 * + 26 FROM tab1 AS cor0 ---- 1404 1482 2496 query I rowsort SELECT ALL + - col1 + + col1 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + - col1 + 4 FROM tab1 cor0 ---- -22 -6 -9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1607 SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) * + 12 + + col1 * - ( col1 + - col2 ) * col1 AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1607 SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) * + 12 + + col1 * - ( col1 + - col2 ) * col1 AS col2 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * + col2 * col1 col2 FROM tab0 AS cor0 ---- 3395 664118 68112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + col1 * cor0.col0 col1 FROM tab1 AS cor0 ---- 1120 704 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1610 SELECT ALL col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1610 SELECT ALL col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col0 * - 42 + cor0.col1 * col1 FROM tab1 cor0 ---- 2788 3529 802 query I rowsort SELECT col1 * 71 AS col2 FROM tab2 cor0 ---- 1207 2201 4189 onlyif mysql # use DIV operator for integer division query I rowsort label-1613 SELECT ALL - col2 * 48 DIV + col2 - col2 AS col2 FROM tab1 AS cor0 ---- -102 -105 -144 skipif mysql # not compatible query I rowsort label-1613 SELECT ALL - col2 * 48 / + col2 - col2 AS col2 FROM tab1 AS cor0 ---- -102 -105 -144 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col0 + - tab1.col0 col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT col1 + - ( 18 ) FROM tab2 AS cor0 ---- -1 13 41 query I rowsort SELECT + - col0 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col1 * + 71 FROM tab0 ---- -6106 -6461 -6887 query I rowsort SELECT DISTINCT - col1 * 43 FROM tab1 AS cor0 ---- -1118 -430 -559 query I rowsort SELECT DISTINCT col0 - 1 FROM tab2 AS cor0 ---- 6 77 78 query I rowsort SELECT + - col1 + col2 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -29 -61 80 query I rowsort SELECT + + 63 * col0 + - col2 * + col0 AS col2 FROM tab2 AS cor0 ---- 1975 252 2886 query I rowsort SELECT DISTINCT + + ( col0 ) AS col1 FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT - 17 + + col0 + + 95 * - 46 AS col2 FROM tab0 cor0 ---- -4298 -4352 -4363 onlyif mysql # use DIV operator for integer division query I rowsort label-1624 SELECT ALL - col2 DIV col0 col1 FROM tab2 AS cor0 ---- -3 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1624 SELECT ALL - col2 / col0 col1 FROM tab2 AS cor0 ---- -3 0 0 query I rowsort SELECT - + ( col0 ) + 40 * + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 117 2496 3120 query I rowsort SELECT ALL + col0 - ( col1 ) AS col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT - cor0.col0 + - 97 FROM tab2 AS cor0 ---- -104 -175 -176 query I rowsort SELECT DISTINCT - - col0 * + cor0.col2 + + 32 FROM tab1 AS cor0 ---- 194 3680 7712 query I rowsort SELECT 48 * - col2 - col0 FROM tab1 ---- -2595 -2800 -4688 query I rowsort SELECT 34 * - col1 AS col2 FROM tab2 ---- -1054 -2006 -578 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col0 + + col0 col2 FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT tab0.col1 + + 95 AS col2 FROM tab0, tab0 cor0 ---- 9 values hashing to 9076ec394c2c32931f8c8423ec9c6888 query I rowsort SELECT - 32 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to ef8f93119983b962f4c81381ebf4b1e6 query I rowsort SELECT DISTINCT 47 * + tab2.col1 AS col2 FROM tab2 ---- 1457 2773 799 query I rowsort SELECT + col2 * - ( - col1 ) AS col0 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT - 48 FROM tab2, tab1 cor0 ---- 9 values hashing to 31c94943c073954e4ca20b170ab61f8c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1637 SELECT col1 * - col1 + col1 + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 ---- -33 -596 -60 skipif mysql # not compatible query I rowsort label-1637 SELECT col1 * - col1 + col1 + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 ---- -33 -596 -60 query I rowsort SELECT + 84 * + col0 + col1 FROM tab2 AS cor0 ---- 619 6611 6653 query I rowsort SELECT + col1 + + 56 + + col2 FROM tab0 AS cor0 ---- 154 175 229 query I rowsort SELECT DISTINCT col1 + + col1 * - col2 - col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT 64 + - 70 + + col0 FROM tab0 cor0 ---- 18 29 83 query I rowsort SELECT - cor0.col2 * col1 + + col2 * - col1 - - col2 AS col2 FROM tab1 AS cor0 ---- -1083 -2400 -2754 query I rowsort SELECT ALL - col2 * - col0 + col2 AS col1 FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-1644 SELECT + 17 DIV + col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1644 SELECT + 17 / + col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1645 SELECT ALL - col1 DIV + col2 + - CAST( 52 AS SIGNED ) AS col2 FROM tab1 ---- -52 -52 -52 skipif mysql # not compatible query I rowsort label-1645 SELECT ALL - col1 / + col2 + - CAST ( 52 AS INTEGER ) AS col2 FROM tab1 ---- -52 -52 -52 onlyif mysql # use DIV operator for integer division query I rowsort label-1646 SELECT DISTINCT + - col2 DIV col1 + 60 AS col1 FROM tab0 AS cor0 ---- 60 skipif mysql # not compatible query I rowsort label-1646 SELECT DISTINCT + - col2 / col1 + 60 AS col1 FROM tab0 AS cor0 ---- 60 query I rowsort SELECT DISTINCT + + 6 * + col2 FROM tab0 AS cor0 ---- 198 492 6 onlyif mysql # use DIV operator for integer division query I rowsort label-1648 SELECT - 11 * col0 + col1 + - col1 DIV - col0 AS col0 FROM tab2 AS cor0 ---- -42 -799 -852 skipif mysql # not compatible query I rowsort label-1648 SELECT - 11 * col0 + col1 + - col1 / - col0 AS col0 FROM tab2 AS cor0 ---- -42 -799 -852 query I rowsort SELECT - - col2 + cor0.col2 - - col0 AS col1 FROM tab0 AS cor0 ---- 253 37 90 query I rowsort SELECT - col1 * - col0 * col2 + - ( cor0.col0 ) FROM tab1 AS cor0 ---- 36416 4209 99760 query I rowsort SELECT DISTINCT + col2 * col0 * col0 + - 9 FROM tab0 AS cor0 ---- 1216 18999 649513 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1652 SELECT DISTINCT 27 + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1652 SELECT DISTINCT 27 + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - - col2 - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT DISTINCT col2 + + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT + col2 + + ( ( - col0 ) ) * - ( col0 ) FROM tab2 ---- 6110 6279 76 query I rowsort SELECT col2 - - ( + col2 ) FROM tab2 ---- 52 54 76 query I rowsort SELECT col0 * ( + 66 ) AS col2 FROM tab2 cor0 ---- 462 5148 5214 query I rowsort SELECT ALL + col2 * + col1 * - col0 AS col1 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT ALL + + 26 + cor0.col0 FROM tab2 AS cor0 ---- 104 105 33 query I rowsort SELECT DISTINCT - 55 * - cor0.col1 FROM tab2 AS cor0 ---- 1705 3245 935 query I rowsort SELECT ALL - 91 * 77 + + col2 * col1 FROM tab2 AS cor0 ---- -5473 -6170 -6361 query I rowsort SELECT DISTINCT 70 + col2 * - col0 FROM tab0 AS cor0 ---- -722 -7228 35 query I rowsort SELECT - 29 + - 40 AS col2 FROM tab2 AS cor0 ---- -69 -69 -69 query I rowsort SELECT DISTINCT + cor0.col1 * + col0 AS col1 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + 50 + col0 FROM tab0 AS cor0 ---- 139 74 85 query I rowsort SELECT ALL + + ( col0 ) * col2 + + col0 * + col2 FROM tab0 AS cor0 ---- 14596 1584 70 query I rowsort SELECT - ( 6 ) AS col2 FROM tab2 AS cor0 ---- -6 -6 -6 onlyif mysql # use DIV operator for integer division query I rowsort label-1668 SELECT ALL - col1 * col1 + col1 DIV + CAST( col1 AS SIGNED ) + col0 col1 FROM tab0 cor0 ---- -7371 -8191 -9373 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1668 SELECT ALL - col1 * col1 + col1 / + CAST ( col1 AS INTEGER ) + col0 col1 FROM tab0 cor0 ---- -7371 -8191 -9373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 63 - - col1 col2 FROM tab1 AS cor0 ---- 73 76 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 75 * - col0 col2 FROM tab2 AS cor0 ---- -525 -5850 -5925 query I rowsort SELECT DISTINCT - col1 + 86 FROM tab2 AS cor0 ---- 27 55 69 query I rowsort SELECT ALL cor0.col2 * - ( cor0.col2 ) FROM tab0 AS cor0 ---- -1 -1089 -6724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 + cor0.col1 col1 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT 86 + - col0 FROM tab2 ---- 7 79 8 query I rowsort SELECT DISTINCT + 93 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1676 SELECT + col2 * CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1676 SELECT + col2 * CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col0 * col1 + + 64 + col2 * + tab2.col2 col2 FROM tab2 ---- 1010 2851 5342 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1678 SELECT + col2 * - CAST( NULL AS DECIMAL ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1678 SELECT + col2 * - CAST ( NULL AS REAL ) FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1679 SELECT + - col2 * + ( col2 ) + col2 DIV + 95 FROM tab1 AS cor0 ---- -2916 -3249 -9215 skipif mysql # not compatible query I rowsort label-1679 SELECT + - col2 * + ( col2 ) + col2 / + 95 FROM tab1 AS cor0 ---- -2916 -3249 -9215 query I rowsort SELECT DISTINCT + col1 + col0 * 23 FROM tab0 AS cor0 ---- 2138 638 902 query I rowsort SELECT ALL tab2.col0 * 11 + col1 * col1 FROM tab2 ---- 1038 1158 4339 query I rowsort SELECT ALL - col0 + - 71 FROM tab2 ---- -149 -150 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-1683 SELECT ALL + col2 + + col1 + + tab1.col1 DIV + col2 AS col2 FROM tab1 ---- 109 67 80 skipif mysql # not compatible query I rowsort label-1683 SELECT ALL + col2 + + col1 + + tab1.col1 / + col2 AS col2 FROM tab1 ---- 109 67 80 query I rowsort SELECT + 49 FROM tab0, tab0 cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT ALL - 65 * col1 FROM tab1 ---- -1690 -650 -845 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1686 SELECT ALL + CAST( - col0 AS SIGNED ) FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-1686 SELECT ALL + CAST ( - col0 AS INTEGER ) FROM tab0 ---- -24 -35 -89 query I rowsort SELECT ALL + 58 * col0 + col1 + col0 * - tab1.col2 AS col1 FROM tab1 ---- -3027 38 74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 66 + 82 * tab2.col2 * col0 col0 FROM tab2 ---- 15432 166230 246098 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1689 SELECT ALL + CAST( col2 * + col1 AS SIGNED ) FROM tab1 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-1689 SELECT ALL + CAST ( col2 * + col1 AS INTEGER ) FROM tab1 ---- 1248 1404 570 query I rowsort SELECT - 71 + 67 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5784540a5af6ca2be84399d314acd2fd query I rowsort SELECT DISTINCT - - 39 * col2 AS col2 FROM tab0 AS cor0 ---- 1287 3198 39 query I rowsort SELECT DISTINCT + cor0.col1 * - tab1.col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 737dbb26f65dd374aa3c71dabdd3903c query I rowsort SELECT DISTINCT + cor0.col2 * col1 + ( col2 + col2 ) AS col1 FROM tab0 AS cor0 ---- 2904 7626 99 query I rowsort SELECT - + 55 * - col1 AS col2 FROM tab2 AS cor0 ---- 1705 3245 935 query I rowsort SELECT DISTINCT + 5 + + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 15 18 31 query I rowsort SELECT + 35 * - col1 AS col1 FROM tab0 AS cor0 ---- -3010 -3185 -3395 query I rowsort SELECT + - 9 * - col1 FROM tab0 AS cor0 ---- 774 819 873 query I rowsort SELECT ALL - 35 AS col2 FROM tab1 cor0 ---- -35 -35 -35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 + - col1 * cor0.col2 * cor0.col1 col0 FROM tab0 AS cor0 ---- -244044 -678953 -9374 query I rowsort SELECT ALL - - cor0.col1 + + col2 AS col0 FROM tab2 AS cor0 ---- 55 58 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 49 + + col0 * + 34 col2 FROM tab0 cor0 ---- 1239 3075 865 onlyif mysql # use DIV operator for integer division query I rowsort label-1702 SELECT ALL + col2 * col2 + ( - ( cor0.col2 ) ) * cor0.col0 + cor0.col1 DIV col2 FROM tab1 AS cor0 ---- -399 1536 2754 skipif mysql # not compatible query I rowsort label-1702 SELECT ALL + col2 * col2 + ( - ( cor0.col2 ) ) * cor0.col0 + cor0.col1 / col2 FROM tab1 AS cor0 ---- -399 1536 2754 query I rowsort SELECT ALL - 21 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * tab0.col0 col1 FROM tab0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort SELECT col2 * col1 * + CAST ( + col2 AS REAL ) + col1 * tab0.col2 AS col1 FROM tab0 ---- 194 619346 96492 query I rowsort SELECT DISTINCT + - cor0.col0 + - col2 AS col0 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT DISTINCT - - col2 * + 41 FROM tab1 AS cor0 ---- 2214 2337 3936 query I rowsort SELECT - col1 * - 63 AS col2 FROM tab2 AS cor0 ---- 1071 1953 3717 query I rowsort SELECT DISTINCT - cor0.col2 + + col2 * + 61 * col0 FROM tab0 AS cor0 ---- 2134 445096 48279 query I rowsort SELECT cor0.col2 * + col0 + + col2 AS col1 FROM tab2 cor0 ---- 2054 216 3040 query I rowsort SELECT ALL + col2 + col1 + col2 AS col2 FROM tab2 AS cor0 ---- 111 85 93 query I rowsort SELECT DISTINCT - + 17 * col1 + col2 + 41 FROM tab2 AS cor0 ---- -210 -459 -936 query I rowsort SELECT - ( + col2 ) * col2 + col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 onlyif mysql # use DIV operator for integer division query I rowsort label-1714 SELECT + cor0.col1 DIV - col1 + - col1 * - ( col0 ) FROM tab2 AS cor0 ---- 1342 216 4601 skipif mysql # not compatible query I rowsort label-1714 SELECT + cor0.col1 / - col1 + - col1 * - ( col0 ) FROM tab2 AS cor0 ---- 1342 216 4601 query I rowsort SELECT - ( col2 ) * col2 + col2 * - cor0.col2 * col1 FROM tab2 cor0 ---- -23328 -25992 -40560 onlyif mysql # use DIV operator for integer division query I rowsort label-1716 SELECT DISTINCT col2 + cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-1716 SELECT DISTINCT col2 + cor0.col1 / col1 AS col0 FROM tab0 AS cor0 ---- 2 34 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 76 col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to f8b6589bc7503fc720ca5430e3569317 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1718 SELECT + - CAST( 21 AS SIGNED ) * - col0 - + ( - col2 ) FROM tab2 AS cor0 ---- 1664 1697 174 skipif mysql # not compatible query I rowsort label-1718 SELECT + - CAST ( 21 AS INTEGER ) * - col0 - + ( - col2 ) FROM tab2 AS cor0 ---- 1664 1697 174 query I rowsort SELECT + cor0.col0 * 89 AS col1 FROM tab2 AS cor0 ---- 623 6942 7031 query I rowsort SELECT ( col2 ) - + col2 * 8 FROM tab1 AS cor0 ---- -378 -399 -672 onlyif mysql # use DIV operator for integer division query I rowsort label-1721 SELECT + ( + 14 ) DIV col1 + + col2 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-1721 SELECT + ( + 14 ) / col1 + + col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT col2 * + ( col2 ) FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT - + ( + col1 ) * col0 + + col2 * col2 FROM tab1 AS cor0 ---- 2609 2838 8176 onlyif mysql # use DIV operator for integer division query I rowsort label-1724 SELECT ALL - ( + col0 ) DIV col0 AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1724 SELECT ALL - ( + col0 ) / col0 AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ( col1 ) + col0 * - col0 AS col0 FROM tab2 cor0 ---- -18 -6025 -6224 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 97 + col1 * - col2 col0 FROM tab2 AS cor0 ---- -1437 -549 -740 query I rowsort SELECT cor0.col2 * 97 + cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 578c0ea5e6e07577d421f9455f5898c4 query I rowsort SELECT - ( - 52 + - tab2.col0 ) AS col1 FROM tab2 ---- 130 131 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col2 + + col2 * col0 * col0 col0 FROM tab1 ---- 233529 540 614496 query I rowsort SELECT + + ( - col1 ) + + col0 AS col2 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT - - ( cor0.col1 ) + col2 * + 60 * - col2 AS col2 FROM tab1 cor0 ---- -174934 -194930 -552947 onlyif mysql # use DIV operator for integer division query I rowsort label-1732 SELECT - col1 DIV + col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1732 SELECT - col1 / + col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT + col2 * - col2 * col0 FROM tab2 cor0 ---- -114076 -5103 -52728 query I rowsort SELECT - 82 * col0 AS col1 FROM tab1 cor0 ---- -246 -5248 -6560 query I rowsort SELECT ALL + 51 + - col0 FROM tab2 AS cor0 ---- -27 -28 44 query I rowsort SELECT - - cor0.col1 + + col1 * - col0 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT + cor0.col0 * + col2 + + col1 FROM tab2 cor0 ---- 2087 220 3019 skipif mysql # not compatible query I rowsort SELECT ALL CAST ( col0 AS REAL ) FROM tab2 ---- 7 78 79 query I rowsort SELECT DISTINCT 89 AS col2 FROM tab0, tab1 AS cor0 ---- 89 onlyif mysql # use DIV operator for integer division query I rowsort label-1740 SELECT DISTINCT - cor0.col0 + - cor0.col2 + CAST( 0 AS SIGNED ) DIV col2 FROM tab1 AS cor0 ---- -121 -176 -57 skipif mysql # not compatible query I rowsort label-1740 SELECT DISTINCT - cor0.col0 + - cor0.col2 + CAST ( 0 AS INTEGER ) / col2 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT ALL + + 67 AS col2 FROM tab1 AS cor0 ---- 67 67 67 query I rowsort SELECT - cor0.col1 * cor0.col1 * - 99 + + col2 FROM tab1 AS cor0 ---- 16827 66978 9957 query I rowsort SELECT DISTINCT + 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 73 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1744 SELECT + col2 * + CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1744 SELECT + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1745 SELECT DISTINCT - col1 DIV + 17 FROM tab0 AS cor0 ---- -5 skipif mysql # not compatible query I rowsort label-1745 SELECT DISTINCT - col1 / + 17 FROM tab0 AS cor0 ---- -5 query I rowsort SELECT ALL col0 * + ( col2 ) AS col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT - 79 AS col0 FROM tab0 ---- -79 -79 -79 query I rowsort SELECT ALL + 40 * col2 AS col1 FROM tab0 ---- 1320 3280 40 query I rowsort SELECT ALL - - col1 + - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT cor0.col2 + + 51 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to db6cbbee96b881aa41829d0e085fb27e query I rowsort SELECT DISTINCT col0 + - col1 * - col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT + + 82 * cor0.col0 + col1 * col1 + - 12 * - col2 FROM tab1 AS cor0 ---- 1570 6032 7881 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + ( + 22 ) + col2 col0 FROM tab0 AS cor0 ---- -21 11 60 query I rowsort SELECT + 68 + cor0.col0 * cor0.col0 FROM tab1 AS cor0 ---- 4164 6468 77 query I rowsort SELECT ALL ( + col0 ) - col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT 46 + + col1 * col0 * col1 AS col0 FROM tab2 AS cor0 ---- 22877 271564 6773 query I rowsort SELECT ALL - ( + col0 ) * - col0 FROM tab2 AS cor0 ---- 49 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 93 * + col0 col1 FROM tab2 AS cor0 ---- -651 -7254 -7347 query I rowsort SELECT ALL + col0 * - ( + col0 + 32 ) FROM tab2 AS cor0 ---- -273 -8580 -8769 query I rowsort SELECT DISTINCT ( cor0.col2 ) * col1 - - 17 FROM tab2 AS cor0 ---- 1551 663 854 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1761 SELECT ALL - + CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1761 SELECT ALL - + CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 + - 18 AS col0 FROM tab0 AS cor0 ---- -17 15 64 query I rowsort SELECT DISTINCT - cor0.col2 - - col2 AS col1 FROM tab2 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1764 SELECT - - CAST( + 73 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 73 73 73 skipif mysql # not compatible query I rowsort label-1764 SELECT - - CAST ( + 73 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 73 73 73 query I rowsort SELECT + 44 * 29 * col1 AS col0 FROM tab2 AS cor0 ---- 21692 39556 75284 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 41 col0 FROM tab1 AS cor0 ---- -41 query I rowsort SELECT - ( cor0.col2 ) + + col0 AS col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT ALL - col0 + 42 * - cor0.col1 FROM tab0 cor0 ---- -3636 -3911 -4109 onlyif mysql # use DIV operator for integer division query I rowsort label-1769 SELECT + ( col2 ) DIV + 85 - 11 FROM tab0 AS cor0 ---- -11 -11 -11 skipif mysql # not compatible query I rowsort label-1769 SELECT + ( col2 ) / + 85 - 11 FROM tab0 AS cor0 ---- -11 -11 -11 query I rowsort SELECT + + 43 - + cor0.col1 * + cor0.col2 FROM tab2 cor0 ---- -1491 -603 -794 query I rowsort SELECT ALL tab0.col1 * + 70 AS col2 FROM tab0 ---- 6020 6370 6790 onlyif mysql # use DIV operator for integer division query I rowsort label-1772 SELECT 54 DIV cor0.col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c skipif mysql # not compatible query I rowsort label-1772 SELECT 54 / cor0.col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c query I rowsort SELECT + ( - 51 ) * - col1 * 14 FROM tab2 AS cor0 ---- 12138 22134 42126 query I rowsort SELECT DISTINCT cor0.col2 * col0 + cor0.col0 FROM tab2 cor0 ---- 196 2106 3081 query I rowsort SELECT ALL + - 31 * col1 FROM tab2 AS cor0 ---- -1829 -527 -961 query I rowsort SELECT + col1 * + 16 AS col1 FROM tab1 cor0 ---- 160 208 416 query I rowsort SELECT DISTINCT - + col0 * 78 FROM tab0 cor0 ---- -1872 -2730 -6942 onlyif mysql # use DIV operator for integer division query I rowsort label-1778 SELECT ALL - col0 + - cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0 ---- -11 -64 -80 skipif mysql # not compatible query I rowsort label-1778 SELECT ALL - col0 + - cor0.col1 / col0 AS col2 FROM tab1 AS cor0 ---- -11 -64 -80 query I rowsort SELECT + col0 + - cor0.col1 * - 64 FROM tab2 cor0 ---- 1167 1991 3854 query I rowsort SELECT - cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc onlyif mysql # use DIV operator for integer division query I rowsort label-1781 SELECT - col0 + ( col1 ) DIV col0 FROM tab1 ---- -64 -80 5 skipif mysql # not compatible query I rowsort label-1781 SELECT - col0 + ( col1 ) / col0 FROM tab1 ---- -64 -80 5 query I rowsort SELECT ALL - 49 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae query I rowsort SELECT + 73 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3933a906d17a820ccf95467e2206df8f query I rowsort SELECT 43 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 query I rowsort SELECT - col2 - - col2 * - col1 FROM tab1 ---- -1344 -1458 -627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1786 SELECT ALL - col0 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1786 SELECT ALL - col0 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1, tab1 AS cor2 ---- 81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1788 SELECT ALL - + col1 + 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-1788 SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + col1 + + 75 FROM tab2 AS cor0 ---- 106 134 92 query I rowsort SELECT DISTINCT + - col0 * 52 FROM tab2 AS cor0 ---- -364 -4056 -4108 query I rowsort SELECT ALL - 25 + + col2 AS col2 FROM tab1 AS cor0 ---- 29 32 71 query I rowsort SELECT DISTINCT - col0 + cor0.col0 * 98 AS col1 FROM tab0 AS cor0 ---- 2328 3395 8633 query I rowsort SELECT ALL col2 * - col2 + + col2 * cor0.col2 - - col1 AS col2 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT - - ( - col1 ) * 20 * 16 AS col2 FROM tab2 AS cor0 ---- -18880 -5440 -9920 query I rowsort SELECT DISTINCT col0 * col0 + col0 * - col0 * col0 - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -13281 -41651 -697130 query I rowsort SELECT ALL + 28 + col2 FROM tab0 AS cor0 ---- 110 29 61 query I rowsort SELECT DISTINCT + - col1 + + col2 * col0 AS col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT ALL - + cor0.col0 - - col0 * 13 FROM tab0 cor0 ---- 1068 288 420 query I rowsort SELECT + col0 * 21 FROM tab1 AS cor0 ---- 1344 1680 63 onlyif mysql # use DIV operator for integer division query I rowsort label-1800 SELECT col2 DIV + ( col1 * - col2 ) col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1800 SELECT col2 / + ( col1 * - col2 ) col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 99 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- -99 query I rowsort SELECT ( - ( - col2 ) ) + col2 AS col1 FROM tab2 cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT + col0 * - col2 + - col0 * - cor0.col0 - + col1 FROM tab2 AS cor0 ---- -171 3222 3997 query I rowsort SELECT 44 * + cor0.col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 61d015e5790b2a2315b298499d31736c query I rowsort SELECT - 32 * + col0 + + col0 FROM tab2 AS cor0 ---- -217 -2418 -2449 query I rowsort SELECT - - ( - col2 ) * col0 + col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT ALL + cor0.col0 + - col0 + col1 AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT + - ( + col0 ) - col1 AS col0 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT DISTINCT col0 + + ( + col1 ) FROM tab0 ---- 110 132 180 query I rowsort SELECT DISTINCT tab1.col1 + 84 AS col1 FROM tab1 ---- 110 94 97 query I rowsort SELECT DISTINCT - + col1 * col0 - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -2150 -3492 -8190 query I rowsort SELECT ALL + col0 + - 53 AS col0 FROM tab0 ---- -18 -29 36 query I rowsort SELECT - col1 * - col0 + - col0 AS col2 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT ALL 13 * col1 AS col1 FROM tab0 ---- 1118 1183 1261 query I rowsort SELECT + 49 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to a40d8754a5be3ce2309c61bfd3e00197 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col2 + - col0 ) col0 FROM tab0 ---- -34 -7 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1817 SELECT - col2 * col0 + - CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1817 SELECT - col2 * col0 + - CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT cor0.col2 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 26 27 38 query I rowsort SELECT ALL 28 * col2 FROM tab2 ---- 1064 728 756 query I rowsort SELECT ALL ( + tab2.col1 ) + col1 * + col1 FROM tab2 ---- 306 3540 992 query I rowsort SELECT col2 * + cor0.col2 + 90 AS col2 FROM tab0 AS cor0 ---- 1179 6814 91 onlyif mysql # use DIV operator for integer division query I rowsort label-1822 SELECT - col0 + - 69 + - 72 DIV col0 FROM tab2 ---- -147 -148 -86 skipif mysql # not compatible query I rowsort label-1822 SELECT - col0 + - 69 + - 72 / col0 FROM tab2 ---- -147 -148 -86 query I rowsort SELECT ALL - col1 + + col1 + - col2 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT + col2 + tab2.col0 + col0 FROM tab2 ---- 182 196 41 query I rowsort SELECT DISTINCT + col1 + col1 * col2 * + col0 AS col2 FROM tab1 AS cor0 ---- 36490 4238 99853 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1826 SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1826 SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL query I rowsort SELECT + col0 * + ( cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ( - col2 ) + - col2 - ( 3 ) * + col2 FROM tab1 cor0 ---- -270 -285 -480 query I rowsort SELECT + + col1 * + col1 + - col2 * + col1 FROM tab2 AS cor0 ---- -357 124 1947 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 3 + col0 col0 FROM tab1 AS cor0 ---- 6 67 83 query I rowsort SELECT - ( + col1 ) * col2 + ( - col1 ) * col2 + - 86 AS col2 FROM tab1 cor0 ---- -1226 -2582 -2894 query I rowsort SELECT col2 + + col1 + - col2 AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - col2 + cor0.col0 - col1 FROM tab0 AS cor0 ---- -63 -84 -95 onlyif mysql # use DIV operator for integer division query I rowsort label-1834 SELECT DISTINCT + 97 DIV + col0 FROM tab2 ---- 1 13 skipif mysql # not compatible query I rowsort label-1834 SELECT DISTINCT + 97 / + col0 FROM tab2 ---- 1 13 query I rowsort SELECT cor1.col0 FROM tab0, tab0 cor0, tab0 cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd onlyif mysql # use DIV operator for integer division query I rowsort label-1836 SELECT DISTINCT + + col1 DIV + 50 AS col1 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1836 SELECT DISTINCT + + col1 / + 50 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL - - cor0.col2 * - col1 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - - 32 * + col1 FROM tab0 AS cor0 ---- 2752 2912 3104 query I rowsort SELECT + col1 * - 36 AS col1 FROM tab1 AS cor0 ---- -360 -468 -936 onlyif mysql # use DIV operator for integer division query I rowsort label-1840 SELECT - - col1 DIV 35 FROM tab0 AS cor0 ---- 2 2 2 skipif mysql # not compatible query I rowsort label-1840 SELECT - - col1 / 35 FROM tab0 AS cor0 ---- 2 2 2 query I rowsort SELECT tab2.col1 - + 8 FROM tab2 ---- 23 51 9 query I rowsort SELECT ALL cor0.col1 + + ( + col1 ) AS col0 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT DISTINCT - - cor0.col1 * - col1 AS col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT ALL + - col0 + col0 * 96 AS col1 FROM tab0 AS cor0 ---- 2280 3325 8455 query I rowsort SELECT - + col0 * ( + col1 ) AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-1846 SELECT + + col2 DIV 32 FROM tab1 AS cor0 ---- 1 1 3 skipif mysql # not compatible query I rowsort label-1846 SELECT + + col2 / 32 FROM tab1 AS cor0 ---- 1 1 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * tab0.col0 col0 FROM tab0 ---- -1225 -576 -7921 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-1849 SELECT + - col1 DIV - ( + col1 * col0 ) + - col0 AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-1849 SELECT + - col1 / - ( + col1 * col0 ) + - col0 AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 53 9 96 onlyif mysql # use DIV operator for integer division query I rowsort label-1851 SELECT + cor0.col1 DIV - col1 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1851 SELECT + cor0.col1 / - col1 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-1852 SELECT + 30 DIV - cor0.col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1852 SELECT + 30 / - cor0.col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1853 SELECT + - cor0.col1 DIV + cor0.col2 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-1853 SELECT + - cor0.col1 / + cor0.col2 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT 24 + + col0 AS col0 FROM tab0 AS cor0 ---- 113 48 59 query I rowsort SELECT + 17 * col0 + col0 FROM tab0 AS cor0 ---- 1602 432 630 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1856 SELECT ALL - col0 * - cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1856 SELECT ALL - col0 * - cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col1 + cor0.col1 * col2 * + col1 FROM tab1 cor0 ---- 16211 36478 5690 onlyif mysql # use DIV operator for integer division query I rowsort label-1858 SELECT DISTINCT + 19 - col0 DIV + ( - 42 ) AS col0 FROM tab0 AS cor0 ---- 19 21 skipif mysql # not compatible query I rowsort label-1858 SELECT DISTINCT + 19 - col0 / + ( - 42 ) AS col0 FROM tab0 AS cor0 ---- 19 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * - col0 - + col2 * + ( col0 ) col2 FROM tab2 AS cor0 ---- -238 -8112 -9243 query I rowsort SELECT ALL - col2 + + col2 * cor0.col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT DISTINCT + - ( cor0.col1 ) FROM tab0 cor0 ---- -86 -91 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1862 SELECT 89 + - col2 + CAST( NULL AS SIGNED ) * - col2 col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1862 SELECT 89 + - col2 + CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 * 14 AS col1 FROM tab2 AS cor0 ---- 1092 1106 98 query I rowsort SELECT ALL - col2 * col1 + 15 FROM tab2 AS cor0 ---- -1519 -631 -822 query I rowsort SELECT DISTINCT + col2 * - ( col1 ) FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-1866 SELECT col2 + col0 DIV + tab2.col1 FROM tab2 ---- 27 27 42 skipif mysql # not compatible query I rowsort label-1866 SELECT col2 + col0 / + tab2.col1 FROM tab2 ---- 27 27 42 onlyif mysql # use DIV operator for integer division query I rowsort label-1867 SELECT ALL - - 50 DIV ( + col0 ) FROM tab2 AS cor0 ---- 0 0 7 skipif mysql # not compatible query I rowsort label-1867 SELECT ALL - - 50 / ( + col0 ) FROM tab2 AS cor0 ---- 0 0 7 query I rowsort SELECT - col2 * - col0 - - col0 FROM tab2 AS cor0 ---- 196 2106 3081 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 13 col1 FROM tab1 AS cor0 ---- 13 13 13 query I rowsort SELECT - 72 * col1 + - col0 + + col2 AS col1 FROM tab0 AS cor0 ---- -6183 -6559 -7018 query I rowsort SELECT DISTINCT + col2 * + col2 * col2 AS col1 FROM tab2 AS cor0 ---- 17576 19683 54872 query I rowsort SELECT - 43 * + col1 + col2 FROM tab2 AS cor0 ---- -1306 -2511 -693 query I rowsort SELECT 44 + + col0 + - col1 FROM tab2 AS cor0 ---- 106 20 63 onlyif mysql # use DIV operator for integer division query I rowsort label-1874 SELECT col2 DIV ( col2 ) AS col0 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1874 SELECT col2 / ( col2 ) AS col0 FROM tab0 ---- 1 1 1 query I rowsort SELECT tab2.col1 * + col1 + - tab2.col2 AS col2 FROM tab2 ---- 251 3455 934 query I rowsort SELECT + ( col1 ) + col0 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL - - 80 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 6dd5038be71dffa82f5ceba787caab91 query I rowsort SELECT + 94 * ( col0 ) AS col2 FROM tab0 ---- 2256 3290 8366 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 43 col1 FROM tab1 ---- 43 query I rowsort SELECT cor0.col1 + + col0 * col2 AS col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL + 1 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 90 col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 27 values hashing to c0d96679aba507520916e8654e5a6618 onlyif mysql # use DIV operator for integer division query I rowsort label-1883 SELECT + - col2 + CAST( col1 AS SIGNED ) DIV col1 FROM tab0 AS cor0 ---- -32 -81 0 skipif mysql # not compatible query I rowsort label-1883 SELECT + - col2 + CAST ( col1 AS INTEGER ) / col1 FROM tab0 AS cor0 ---- -32 -81 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1884 SELECT ALL - - col2 * - CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif mysql # not compatible query I rowsort label-1884 SELECT ALL - - col2 * - CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + col2 + ( - ( cor0.col1 ) + - col2 ) AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT - - col2 * + col0 * 76 - + col1 FROM tab1 AS cor0 ---- 12286 277238 583667 query I rowsort SELECT ALL + col2 * - 16 AS col2 FROM tab0 AS cor0 ---- -1312 -16 -528 query I rowsort SELECT col1 * + 67 AS col2 FROM tab1 ---- 1742 670 871 query I rowsort SELECT ALL + - ( - cor0.col1 ) * col1 AS col2 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT DISTINCT + ( tab0.col2 ) * col0 * 31 FROM tab0 ---- 1085 226238 24552 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab2 cor2 ---- 3645 values hashing to 28412d50061391eec23a02d0efcfb3f9 query I rowsort SELECT ALL 50 + + col1 AS col1 FROM tab0 ---- 136 141 147 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1893 SELECT - - 42 * col0 + - CAST( - 88 AS SIGNED ) * col0 FROM tab2 cor0 ---- 10140 10270 910 skipif mysql # not compatible query I rowsort label-1893 SELECT - - 42 * col0 + - CAST ( - 88 AS INTEGER ) * col0 FROM tab2 cor0 ---- 10140 10270 910 query I rowsort SELECT DISTINCT - col1 * col1 + 40 AS col2 FROM tab1 AS cor0 ---- -129 -60 -636 query I rowsort SELECT DISTINCT col2 * + col1 + - col0 * - col0 AS col2 FROM tab2 ---- 6887 7618 886 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1896 SELECT ALL + tab0.col0 * + col2 + CAST( NULL AS SIGNED ) * - col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1896 SELECT ALL + tab0.col0 * + col2 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1897 SELECT ALL - tab1.col1 + col0 * ( + col2 ) DIV col0 FROM tab1 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-1897 SELECT ALL - tab1.col1 + col0 * ( + col2 ) / col0 FROM tab1 ---- 28 47 83 query I rowsort SELECT DISTINCT col1 * - col1 + 8 FROM tab0 AS cor0 ---- -7388 -8273 -9401 query I rowsort SELECT + - col0 * - col0 + 35 AS col0 FROM tab1 AS cor0 ---- 4131 44 6435 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1900 SELECT col0 * col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1900 SELECT col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col2 + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1902 SELECT + 52 DIV - cor0.col1 - 62 AS col0 FROM tab1 AS cor0 ---- -64 -66 -67 skipif mysql # not compatible query I rowsort label-1902 SELECT + 52 / - cor0.col1 - 62 AS col0 FROM tab1 AS cor0 ---- -64 -66 -67 query I rowsort SELECT ALL col1 * 43 AS col1 FROM tab0 AS cor0 ---- 3698 3913 4171 query I rowsort SELECT col0 * col0 + + cor0.col1 FROM tab1 AS cor0 ---- 35 4106 6413 query I rowsort SELECT + col0 + 13 AS col1 FROM tab0 AS cor0 ---- 102 37 48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + 0 * col0 * col1 col2 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT - + cor0.col0 + - 86 FROM tab0 AS cor0 ---- -110 -121 -175 query I rowsort SELECT DISTINCT + - col0 + - ( + col0 ) * col2 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT - col1 + ( + col0 ) AS col2 FROM tab1 AS cor0 ---- -23 54 67 onlyif mysql # use DIV operator for integer division query I rowsort label-1910 SELECT DISTINCT + col0 DIV 49 + 73 * + col1 FROM tab2 AS cor0 ---- 1242 2263 4308 skipif mysql # not compatible query I rowsort label-1910 SELECT DISTINCT + col0 / 49 + 73 * + col1 FROM tab2 AS cor0 ---- 1242 2263 4308 query I rowsort SELECT + col0 * - col0 + ( - col1 ) AS col1 FROM tab0 AS cor0 ---- -1322 -662 -8012 query I rowsort SELECT ALL ( - tab0.col2 ) + col0 * col2 * col0 AS col2 FROM tab0 ---- 1224 18975 649440 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + + col1 col0 FROM tab1 ---- 109 67 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + col2 + col2 ) * + tab1.col1 col2 FROM tab1 ---- 1140 2496 2808 onlyif mysql # use DIV operator for integer division query I rowsort label-1915 SELECT - col1 DIV cor0.col1 + col0 * + col2 col2 FROM tab0 AS cor0 ---- 34 7297 791 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1915 SELECT - col1 / cor0.col1 + col0 * + col2 col2 FROM tab0 AS cor0 ---- 34 7297 791 query I rowsort SELECT - col0 - - 39 FROM tab2 cor0 ---- -39 -40 32 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1917 SELECT + + col0 * CAST( - col2 * col1 AS SIGNED ) + col2 FROM tab0 AS cor0 ---- -3394 -664036 -68079 skipif mysql # not compatible query I rowsort label-1917 SELECT + + col0 * CAST ( - col2 * col1 AS INTEGER ) + col2 FROM tab0 AS cor0 ---- -3394 -664036 -68079 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 + col1 col1 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT ALL 27 + tab2.col1 * col0 FROM tab2 ---- 1370 244 4629 query I rowsort SELECT ALL + col2 * + col0 + - col0 AS col0 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT - ( col0 ) + cor0.col1 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT col1 + 95 AS col0 FROM tab1 AS cor0 ---- 105 108 121 query I rowsort SELECT - col2 * - 44 FROM tab0 ---- 1452 3608 44 query I rowsort SELECT + col0 * 41 FROM tab2 ---- 287 3198 3239 query I rowsort SELECT DISTINCT - 58 * - ( + tab2.col0 ) * col2 AS col1 FROM tab2 ---- 10962 117624 174116 query I rowsort SELECT - 94 * col2 AS col1 FROM tab1 AS cor0 ---- -5076 -5358 -9024 query I rowsort SELECT - + 31 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac query I rowsort SELECT 32 * - col1 FROM tab2 cor0 ---- -1888 -544 -992 query I rowsort SELECT - col0 * + col0 + col2 * + col0 FROM tab2 ---- -3239 -4056 140 onlyif mysql # use DIV operator for integer division query I rowsort label-1930 SELECT DISTINCT 3 DIV - tab0.col0 AS col1 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-1930 SELECT DISTINCT 3 / - tab0.col0 AS col1 FROM tab0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1931 SELECT + 87 DIV - 54 + col2 FROM tab1 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-1931 SELECT + 87 / - 54 + col2 FROM tab1 ---- 53 56 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * 85 + col0 * + 96 col0 FROM tab1 ---- 33 704 880 onlyif mysql # use DIV operator for integer division query I rowsort label-1933 SELECT DISTINCT + col0 + col1 DIV ( 22 ) AS col1 FROM tab1 ---- 4 64 80 skipif mysql # not compatible query I rowsort label-1933 SELECT DISTINCT + col0 + col1 / ( 22 ) AS col1 FROM tab1 ---- 4 64 80 query I rowsort SELECT + 67 * + col2 AS col0 FROM tab2 AS cor0 ---- 1742 1809 2546 query I rowsort SELECT + - col2 * - col1 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT - + 73 FROM tab1 cor0 ---- -73 -73 -73 onlyif mysql # use DIV operator for integer division query I rowsort label-1937 SELECT ALL col0 DIV col2 + col2 FROM tab0 AS cor0 ---- 33 36 83 skipif mysql # not compatible query I rowsort label-1937 SELECT ALL col0 / col2 + col2 FROM tab0 AS cor0 ---- 33 36 83 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( 64 AS REAL ) * + col1 - 21 FROM tab1 AS cor0 ---- 1643 619 811 query I rowsort SELECT 45 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 onlyif mysql # use DIV operator for integer division query I rowsort label-1940 SELECT col0 + - 62 DIV - col0 FROM tab0 cor0 ---- 26 36 89 skipif mysql # not compatible query I rowsort label-1940 SELECT col0 + - 62 / - col0 FROM tab0 cor0 ---- 26 36 89 query I rowsort SELECT DISTINCT cor0.col1 - col1 AS col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ( - col0 ) * cor0.col2 + col1 * + col2 FROM tab0 AS cor0 ---- 164 2046 62 query I rowsort SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 1 33 82 query I rowsort SELECT ( + ( col0 ) ) * - tab1.col2 + 61 AS col2 FROM tab1 ---- -101 -3587 -7619 query I rowsort SELECT DISTINCT col2 + col1 * col0 AS col0 FROM tab0 AS cor0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 75 + - col2 col1 FROM tab1 AS cor0 ---- -21 18 21 query I rowsort SELECT DISTINCT + col2 + - col1 * col1 AS col1 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT ALL + + col1 * - col1 + 81 * col2 AS col0 FROM tab0 AS cor0 ---- -1639 -4723 -9328 query I rowsort SELECT col1 + - col1 AS col1 FROM tab1 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - 0 ) col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL + 4 * col2 FROM tab0 ---- 132 328 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + + col0 + + col1 col1 FROM tab1 AS cor0 ---- 131 189 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1953 SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1953 SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL cor0.col2 * + cor0.col2 FROM tab0 AS cor0 ---- 1 1089 6724 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1955 SELECT DISTINCT - cor0.col2 + - CAST( NULL AS SIGNED ) * 2 + - col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1955 SELECT DISTINCT - cor0.col2 + - CAST ( NULL AS INTEGER ) * 2 + - col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + col1 + - 88 * col1 + col1 FROM tab1 AS cor0 ---- -1118 -2236 -860 query I rowsort SELECT ALL - col1 - col2 * col1 * - col2 AS col1 FROM tab0 AS cor0 ---- 0 611793 93568 query I rowsort SELECT DISTINCT - cor0.col1 * 23 + + 55 FROM tab0 AS cor0 ---- -1923 -2038 -2176 query I rowsort SELECT ( - col1 ) * tab2.col0 * col1 FROM tab2 ---- -22831 -271518 -6727 query I rowsort SELECT 95 - tab1.col2 * col2 AS col1 FROM tab1 ---- -2821 -3154 -9121 query I rowsort SELECT + tab2.col2 + - col2 - + 11 FROM tab2 ---- -11 -11 -11 query I rowsort SELECT DISTINCT col2 + col1 - col1 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL tab2.col0 * 38 * 16 FROM tab2, tab0 AS cor0 ---- 9 values hashing to a6ace5d937bec64961977570b337e95f skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT DISTINCT col2 + - col2 * ( + col1 ) * ( 78 ) AS col1 FROM tab2 ---- -119626 -50350 -65259 query I rowsort SELECT 15 * 26 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 348b947a305a9f1d9104777deace8203 query I rowsort SELECT ALL + col1 + col0 * + 28 * col2 FROM tab0 ---- 1077 204435 22262 query I rowsort SELECT + - col2 + + ( col1 ) * col0 AS col2 FROM tab2 AS cor0 ---- 1305 190 4576 onlyif mysql # use DIV operator for integer division query I rowsort label-1969 SELECT cor0.col2 DIV ( + cor0.col1 * - col1 ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1969 SELECT cor0.col2 / ( + cor0.col1 * - col1 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + cor0.col1 * - col1 + - col0 FROM tab0 AS cor0 ---- -7420 -8370 -9444 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + tab0.col2 * ( tab0.col0 ) col2 FROM tab0 ---- 0 7209 768 query I rowsort SELECT + tab2.col1 + + col2 + 85 AS col0 FROM tab2 ---- 140 143 170 query I rowsort SELECT DISTINCT col1 + + 59 + col1 * + tab0.col2 AS col1 FROM tab0 ---- 253 2983 7612 query I rowsort SELECT DISTINCT - col2 + + 89 + col0 FROM tab1 ---- 38 73 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * + col2 + - 58 * + col2 col2 FROM tab2 ---- -1755 -3536 -5206 query I rowsort SELECT col0 * - ( col1 * - col1 + + ( col2 ) * - col2 ) AS col1 FROM tab0 ---- 1335445 203640 329350 query I rowsort SELECT col0 + 3 * col1 * col1 FROM tab2 ---- 10521 2890 946 query I rowsort SELECT DISTINCT - col1 * 66 * + 11 + - col2 * 66 + + col0 * - col1 AS col2 FROM tab0 ---- -66678 -73883 -79577 query I rowsort SELECT col1 * col0 + cor0.col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT ALL + col2 * - col0 + - col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT - col2 + - 75 FROM tab2 AS cor0 ---- -101 -102 -113 query I rowsort SELECT DISTINCT 4 + + col2 * + col0 AS col2 FROM tab0 AS cor0 ---- 39 7302 796 query I rowsort SELECT + col0 + - col0 * col1 AS col0 FROM tab1 cor0 ---- -576 -75 -960 query I rowsort SELECT ALL ( col1 ) * col1 + col1 AS col0 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT + col2 * col2 + col1 * 59 AS col0 FROM tab0 AS cor0 ---- 12093 5724 6163 query I rowsort SELECT DISTINCT - + 17 + col2 * - col1 FROM tab0 AS cor0 ---- -114 -2855 -7479 query I rowsort SELECT ALL + - ( - 24 ) * col0 FROM tab0 AS cor0 ---- 2136 576 840 query I rowsort SELECT - + col1 + cor0.col2 * col1 AS col1 FROM tab0 AS cor0 ---- 0 2752 7371 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 30 col0 FROM tab1 AS cor0 ---- -30 -30 -30 onlyif mysql # use DIV operator for integer division query I rowsort label-1990 SELECT ALL + col0 + col1 DIV - col1 FROM tab0 AS cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-1990 SELECT ALL + col0 + col1 / - col1 FROM tab0 AS cor0 ---- 23 34 88 query I rowsort SELECT - 99 * + col1 + + col1 + col1 FROM tab2 AS cor0 ---- -1649 -3007 -5723 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1992 SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-1992 SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 65 + 73 col0 FROM tab2 AS cor0 ---- 138 138 138 query I rowsort SELECT + col0 + - col0 * col2 FROM tab1 ---- -159 -3584 -7600 query I rowsort SELECT + - col0 + cor0.col1 AS col2 FROM tab2 AS cor0 ---- -19 -62 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 12 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 query I rowsort SELECT + col1 - col2 * - ( col0 ) AS col1 FROM tab2 ---- 2087 220 3019 onlyif mysql # use DIV operator for integer division query I rowsort label-1998 SELECT - 91 DIV 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b skipif mysql # not compatible query I rowsort label-1998 SELECT - 91 / 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1999 SELECT DISTINCT + 24 + + cor0.col1 * CAST( NULL AS SIGNED ) * - 81 AS col0 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1999 SELECT DISTINCT + 24 + + cor0.col1 * CAST ( NULL AS INTEGER ) * - 81 AS col0 FROM tab1 cor0 ---- NULL query I rowsort SELECT + 51 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 133 52 84 query I rowsort SELECT DISTINCT + - col1 + col0 * 42 + col0 * - col1 FROM tab1 AS cor0 ---- 2038 22 2307 onlyif mysql # use DIV operator for integer division query I rowsort label-2002 SELECT DISTINCT - 26 + col0 DIV col2 FROM tab0 AS cor0 ---- -25 -26 9 skipif mysql # not compatible query I rowsort label-2002 SELECT DISTINCT - 26 + col0 / col2 FROM tab0 AS cor0 ---- -25 -26 9 onlyif mysql # use DIV operator for integer division query I rowsort label-2003 SELECT ALL - - col1 DIV col1 - + ( 94 ) * + col0 AS col0 FROM tab0 AS cor0 ---- -2255 -3289 -8365 skipif mysql # not compatible query I rowsort label-2003 SELECT ALL - - col1 / col1 - + ( 94 ) * + col0 AS col0 FROM tab0 AS cor0 ---- -2255 -3289 -8365 query I rowsort SELECT ALL - col0 * col0 - ( 71 ) AS col1 FROM tab1 AS cor0 ---- -4167 -6471 -80 query I rowsort SELECT ALL cor0.col0 * - col0 * - col2 + col1 * + col1 AS col1 FROM tab1 cor0 ---- 1162 233572 614569 query I rowsort SELECT DISTINCT - - col2 + col1 * + cor0.col1 FROM tab0 AS cor0 ---- 7429 8363 9410 query I rowsort SELECT ALL col1 + col1 * cor0.col0 FROM tab1 AS cor0 ---- 104 1053 650 onlyif mysql # use DIV operator for integer division query I rowsort label-2008 SELECT DISTINCT - - col2 DIV - cor0.col0 + - col0 FROM tab1 AS cor0 ---- -21 -64 -81 skipif mysql # not compatible query I rowsort label-2008 SELECT DISTINCT - - col2 / - cor0.col0 + - col0 FROM tab1 AS cor0 ---- -21 -64 -81 query I rowsort SELECT 86 AS col2 FROM tab0, tab1 cor0 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 query I rowsort SELECT ALL - col2 * cor0.col1 AS col0 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + col2 + ( - col2 ) AS col0 FROM tab1 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2012 SELECT - col0 DIV ( + col0 ) - - col2 * + ( col2 ) AS col0 FROM tab2 AS cor0 ---- 1443 675 728 skipif mysql # not compatible query I rowsort label-2012 SELECT - col0 / ( + col0 ) - - col2 * + ( col2 ) AS col0 FROM tab2 AS cor0 ---- 1443 675 728 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2013 SELECT ALL col0 + + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2013 SELECT ALL col0 + + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 + col2 + + 34 * + col0 FROM tab1 cor0 ---- 130 2223 2803 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col0 * + col1 col1 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-2016 SELECT DISTINCT - - col1 + + 37 DIV col1 + - col0 AS col2 FROM tab2 AS cor0 ---- -19 -60 25 skipif mysql # not compatible query I rowsort label-2016 SELECT DISTINCT - - col1 + + 37 / col1 + - col0 AS col2 FROM tab2 AS cor0 ---- -19 -60 25 onlyif mysql # use DIV operator for integer division query I rowsort label-2017 SELECT + col1 DIV + col0 - col1 DIV + 84 AS col0 FROM tab0 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-2017 SELECT + col1 / + col0 - col1 / + 84 AS col0 FROM tab0 AS cor0 ---- 0 1 2 query I rowsort SELECT col0 + col2 * cor0.col2 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT + + col1 * - col2 + + col2 + col2 * - col2 FROM tab0 AS cor0 ---- -14104 -3894 -97 query I rowsort SELECT - 65 * - col1 + col1 * - col2 FROM tab1 AS cor0 ---- -403 286 80 query I rowsort SELECT ALL col0 * + col2 + + col1 * + col2 AS col1 FROM tab0 ---- 132 14760 3630 onlyif mysql # use DIV operator for integer division query I rowsort label-2022 SELECT + 41 DIV 70 AS col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2022 SELECT + 41 / 70 AS col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT col2 * 13 AS col0 FROM tab2 ---- 338 351 494 query I rowsort SELECT DISTINCT - tab2.col1 * + col2 + tab2.col0 + - 89 FROM tab2 ---- -1545 -656 -919 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2025 SELECT + col2 + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2025 SELECT + col2 + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 + + col2 * + 94 AS col0 FROM tab1 ---- 5102 5368 9037 query I rowsort SELECT 46 * col0 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 141 3008 3760 onlyif mysql # use DIV operator for integer division query I rowsort label-2028 SELECT ALL + + 54 DIV - col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2028 SELECT ALL + + 54 / - col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL 49 * col2 AS col2 FROM tab1 ---- 2646 2793 4704 query I rowsort SELECT ALL - cor0.col1 * + cor0.col1 FROM tab1 cor0 ---- -100 -169 -676 query I rowsort SELECT ALL col1 * + col2 * 68 FROM tab0 AS cor0 ---- 192984 507416 6596 query I rowsort SELECT 83 + + 37 + cor0.col2 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1 ---- 81 values hashing to 6571b106152067cd96da42c3b2517af6 query I rowsort SELECT + col1 * - 96 FROM tab0 AS cor0 ---- -8256 -8736 -9312 onlyif mysql # use DIV operator for integer division query I rowsort label-2034 SELECT DISTINCT col0 DIV CAST( col1 AS SIGNED ) + col2 FROM tab2 AS cor0 ---- 27 42 skipif mysql # not compatible query I rowsort label-2034 SELECT DISTINCT col0 / CAST ( col1 AS INTEGER ) + col2 FROM tab2 AS cor0 ---- 27 42 query I rowsort SELECT DISTINCT - col1 * 32 AS col2 FROM tab2 AS cor0 ---- -1888 -544 -992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 80 col0 FROM tab2 AS cor0 ---- -80 -80 -80 query I rowsort SELECT ALL - 90 * col2 + col0 AS col1 FROM tab0 ---- -2946 -55 -7291 query I rowsort SELECT ALL 98 * + col2 + tab1.col2 + + col0 AS col0 FROM tab1 ---- 5349 5707 9584 query I rowsort SELECT cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT DISTINCT 29 * col0 + col0 * - 39 AS col0 FROM tab1 cor0 ---- -30 -640 -800 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 37 * cor0.col1 col2 FROM tab0 AS cor0 ---- 3182 3367 3589 query I rowsort SELECT ( col2 ) + + col2 * 46 FROM tab0 cor0 ---- 1551 3854 47 query I rowsort SELECT DISTINCT - col1 * 24 FROM tab2 AS cor0 ---- -1416 -408 -744 query I rowsort SELECT + col0 * 58 FROM tab2 AS cor0 ---- 406 4524 4582 query I rowsort SELECT - ( 77 * + col0 ) AS col1 FROM tab2 ---- -539 -6006 -6083 query I rowsort SELECT - 43 * - col2 AS col0 FROM tab1 AS cor0 ---- 2322 2451 4128 query I rowsort SELECT - 83 * - col2 FROM tab1 cor0 ---- 4482 4731 7968 query I rowsort SELECT cor0.col0 * col2 * col1 + col2 - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 3395 664118 68112 onlyif mysql # use DIV operator for integer division query I rowsort label-2049 SELECT - tab2.col2 + tab2.col2 DIV 87 + col1 FROM tab2 ---- -21 33 4 skipif mysql # not compatible query I rowsort label-2049 SELECT - tab2.col2 + tab2.col2 / 87 + col1 FROM tab2 ---- -21 33 4 query I rowsort SELECT ALL - ( col0 ) + col0 * + 81 AS col0 FROM tab2 cor0 ---- 560 6240 6320 onlyif mysql # use DIV operator for integer division query I rowsort label-2051 SELECT - - col0 DIV col0 col2 FROM tab0 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2051 SELECT - - col0 / col0 col2 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT + - col2 + col2 + col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ( + cor0.col1 ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT + col2 * col2 + col1 * col2 FROM tab2 AS cor0 ---- 1566 2090 2210 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * - ( - col1 ) + - col2 col1 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT - + col2 + + 44 AS col1 FROM tab1 AS cor0 ---- -10 -13 -52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 32 col1 FROM tab2 AS cor0 ---- 32 32 32 query I rowsort SELECT + 76 * col1 * - col0 FROM tab1 cor0 ---- -48640 -5928 -79040 query I rowsort SELECT cor0.col1 * col0 + col0 FROM tab1 cor0 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + tab0.col1 col1 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT + col1 * + col1 * + col2 - - col1 FROM tab2 WHERE NOT NULL NOT IN ( - col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * - col0 + + col2 col0 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT ALL col1 FROM tab0 WHERE NULL IN ( col2 + col2 ) ---- query I rowsort SELECT DISTINCT col0 + col2 * col1 AS col1 FROM tab0 ---- 132 2862 7551 onlyif mysql # use DIV operator for integer division query I rowsort label-2065 SELECT col1 DIV col0 - col0 AS col0 FROM tab0 AS cor0 ---- -21 -33 -88 skipif mysql # not compatible query I rowsort label-2065 SELECT col1 / col0 - col0 AS col0 FROM tab0 AS cor0 ---- -21 -33 -88 query I rowsort SELECT DISTINCT - col2 * col2 * + col0 - col2 * + col1 AS col2 FROM tab0 AS cor0 ---- -132 -28974 -605898 query I rowsort SELECT DISTINCT col2 * + col0 FROM tab0 WHERE ( - col0 ) NOT IN ( - tab0.col0 * - col1 ) ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * col1 * - col2 + col1 col0 FROM tab2 ---- -22568 -24531 -39825 query I rowsort SELECT DISTINCT col0 * + col0 + col1 * col2 * tab0.col2 AS col2 FROM tab0 ---- 1322 619805 94230 query I rowsort SELECT col1 * col1 + + col2 FROM tab2 ---- 327 3507 988 query I rowsort SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2 * - col2 + - col0 + + col0 ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= ( NULL ) ---- query I rowsort SELECT col1 * col1 * - col1 FROM tab2 ---- -205379 -29791 -4913 query I rowsort SELECT + col1 * col2 * - col2 - col2 AS col0 FROM tab2 ---- -22626 -24586 -39910 query I rowsort SELECT DISTINCT tab2.col1 * + col0 + col0 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT ALL col0 * col1 + tab2.col1 * col1 AS col2 FROM tab2 ---- 1178 1632 8083 query I rowsort SELECT DISTINCT + - cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 - - cor0.col2 col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT + col0 * col2 - + col1 * col2 AS col1 FROM tab0 AS cor0 ---- -164 -2046 -62 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN col0 * col1 / + col2 AND ( NULL ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 * - cor0.col1 - + cor0.col0 col2 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT ALL - col0 * tab1.col2 - - col2 AS col0 FROM tab1 ---- -108 -3591 -7584 query IIIIIIIII rowsort SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab2 WHERE NOT cor0.col1 >= NULL ---- query I rowsort SELECT + col1 + + 89 FROM tab0 AS cor0 ---- 175 180 186 query I rowsort SELECT DISTINCT - - col2 * col2 + + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT ALL + col0 - - 56 AS col0 FROM tab1 AS cor0 ---- 120 136 59 query I rowsort SELECT ALL - + col0 + col2 * - col0 AS col1 FROM tab0 cor0 ---- -70 -7387 -816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * 52 col2 FROM tab2 AS cor0 ---- 1612 3068 884 query I rowsort SELECT 6 + col1 AS col1 FROM tab2 ---- 23 37 65 query IIIIIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab0 AS cor2, tab1 ---- 13122 values hashing to c83d60372eaca049b1c9b62b0ca89fc1 query I rowsort SELECT DISTINCT + col1 + - col0 * col0 AS col0 FROM tab0 AS cor0 ---- -1128 -490 -7830 query I rowsort SELECT + col1 + col1 * - 66 FROM tab2 AS cor0 ---- -1105 -2015 -3835 query I rowsort SELECT DISTINCT cor0.col1 * cor0.col0 FROM tab2 cor0 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-2094 SELECT ALL - col2 DIV 40 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2094 SELECT ALL - col2 / 40 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2095 SELECT DISTINCT - col0 * + col2 + col0 DIV - tab0.col1 AS col1 FROM tab0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-2095 SELECT DISTINCT - col0 * + col2 + col0 / - tab0.col1 AS col1 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT ALL col0 * col2 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 3395 664118 68112 onlyif mysql # use DIV operator for integer division query I rowsort label-2097 SELECT DISTINCT + + col0 DIV 64 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-2097 SELECT DISTINCT + + col0 / 64 FROM tab0 AS cor0 ---- 0 1 query I rowsort SELECT ALL + col2 + 3 FROM tab1 AS cor0 ---- 57 60 99 query I rowsort SELECT + col1 * 18 + + col2 + col0 AS col0 FROM tab2 AS cor0 ---- 1166 423 592 query I rowsort SELECT col1 * + 89 AS col2 FROM tab1 cor0 ---- 1157 2314 890 query I rowsort SELECT DISTINCT col2 * col1 FROM tab1 WHERE NULL <> col0 ---- query I rowsort SELECT + col1 + col2 + + col2 * tab1.col1 AS col2 FROM tab1 ---- 1357 1484 637 query I rowsort SELECT DISTINCT tab1.col0 * + col1 + - tab1.col1 AS col2 FROM tab1 ---- 1027 52 630 query III rowsort SELECT * FROM tab0 WHERE ( col1 ) NOT IN ( - col2 + col2 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT col2 + + col2 * + tab2.col2 FROM tab2 ---- 1482 702 756 query I rowsort SELECT DISTINCT + col2 + - tab1.col1 AS col1 FROM tab1 WHERE ( col0 ) NOT IN ( + col2 * - col2 + - col1 * + col1 ) ---- 28 47 83 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 * col2 ) ---- query III rowsort SELECT * FROM tab0 WHERE NULL > col2 ---- query I rowsort SELECT DISTINCT - col1 * col2 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + col0 ---- query I rowsort SELECT tab0.col0 * + col0 + col0 FROM tab0 ---- 1260 600 8010 query I rowsort SELECT col0 * + col2 + tab2.col2 * - col1 * col1 + col0 FROM tab2 ---- -25751 -7901 -88400 query I rowsort SELECT + ( - col0 ) * - ( - col1 ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL 8 + + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 41 9 90 query I rowsort SELECT + ( 75 ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to e61b59795204c348103a58c0a8e4ce16 query I rowsort SELECT ALL + col0 * - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-2116 SELECT DISTINCT - 63 DIV + col2 FROM tab1 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-2116 SELECT DISTINCT - 63 / + col2 FROM tab1 AS cor0 ---- -1 0 query I rowsort SELECT ALL tab0.col0 + - col1 * + col0 AS col2 FROM tab0 ---- -2040 -3360 -8010 query I rowsort SELECT - col0 FROM tab0 WHERE ( NULL ) <= NULL ---- query I rowsort SELECT DISTINCT 79 * - col2 FROM tab0 AS cor0 ---- -2607 -6478 -79 query I rowsort SELECT ALL - col1 + + ( - col2 ) - + col0 * + col2 FROM tab0 AS cor0 ---- -133 -7471 -911 query I rowsort SELECT + col2 * 35 + col2 FROM tab1 cor0 ---- 1944 2052 3456 query I rowsort SELECT DISTINCT - col2 + 94 AS col2 FROM tab2 AS cor0 ---- 56 67 68 query I rowsort SELECT ALL - - col0 * 33 + + col0 + col0 FROM tab1 AS cor0 ---- 105 2240 2800 onlyif mysql # use DIV operator for integer division query I rowsort label-2124 SELECT DISTINCT + col2 DIV - col0 + + col0 + + cor0.col2 * col1 FROM tab0 AS cor0 ---- 132 2861 7551 skipif mysql # not compatible query I rowsort label-2124 SELECT DISTINCT + col2 / - col0 + + col0 + + cor0.col2 * col1 FROM tab0 AS cor0 ---- 132 2861 7551 query I rowsort SELECT ALL + - cor0.col2 + col0 AS col2 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT DISTINCT col2 * - col1 + - col0 AS col0 FROM tab1 AS cor0 ---- -1328 -1407 -634 query I rowsort SELECT DISTINCT 44 * + col1 * ( - 71 + col2 ) AS col0 FROM tab1 ---- -19448 -6160 14300 query I rowsort SELECT - col2 + col1 * 80 FROM tab0 AS cor0 ---- 6847 7198 7759 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + col1 * - col2 col0 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT - col2 + col2 * + 0 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT - 77 * 48 + col0 - col1 AS col0 FROM tab0 AS cor0 ---- -3698 -3758 -3758 query I rowsort SELECT - - ( - 81 ) * col1 + + col1 * col1 AS col2 FROM tab1 AS cor0 ---- -1430 -710 -884 onlyif mysql # use DIV operator for integer division query I rowsort label-2133 SELECT DISTINCT - col2 * + col2 DIV col2 + - col0 FROM tab0 ---- -171 -36 -57 skipif mysql # not compatible query I rowsort label-2133 SELECT DISTINCT - col2 * + col2 / col2 + - col0 FROM tab0 ---- -171 -36 -57 query I rowsort SELECT 59 * - cor0.col1 FROM tab1 cor0 ---- -1534 -590 -767 query I rowsort SELECT - 11 + + col0 * col2 FROM tab0 AS cor0 ---- 24 7287 781 query I rowsort SELECT DISTINCT 37 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 ---- 37 query I rowsort SELECT DISTINCT 75 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1 ---- 75 query I rowsort SELECT ( col0 ) * - 35 + col2 AS col2 FROM tab0 ---- -1224 -3033 -807 query I rowsort SELECT DISTINCT 65 * col0 FROM tab2 ---- 455 5070 5135 query I rowsort SELECT + - 42 * cor0.col0 FROM tab0 cor0 ---- -1008 -1470 -3738 query I rowsort SELECT ALL - ( col2 + - col1 ) AS col2 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT ALL + - col2 * col0 + + col0 FROM tab0 AS cor0 ---- -7209 -768 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * col2 * tab2.col0 col1 FROM tab2 ---- 1323 158184 237158 onlyif mysql # use DIV operator for integer division query I rowsort label-2144 SELECT ALL 88 DIV col1 AS col0 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-2144 SELECT ALL 88 / col1 AS col0 FROM tab0 ---- 0 0 1 query I rowsort SELECT + col0 + col2 * + col2 FROM tab2 ---- 1523 736 754 query I rowsort SELECT ALL cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 15 col1 FROM tab2 ---- 15 15 15 query I rowsort SELECT - ( + col1 ) * cor0.col2 + - col2 AS col2 FROM tab0 cor0 ---- -2871 -7544 -98 query I rowsort SELECT cor0.col0 * - 83 + - cor0.col1 FROM tab1 AS cor0 ---- -275 -5322 -6653 query I rowsort SELECT ALL - ( 56 ) + - col1 AS col2 FROM tab2 AS cor0 ---- -115 -73 -87 query I rowsort SELECT ALL + 32 + col0 AS col1 FROM tab1 AS cor0 ---- 112 35 96 onlyif mysql # use DIV operator for integer division query I rowsort label-2152 SELECT - - 6 + + col0 DIV - col0 AS col1 FROM tab0 AS cor0 ---- 5 5 5 skipif mysql # not compatible query I rowsort label-2152 SELECT - - 6 + + col0 / - col0 AS col1 FROM tab0 AS cor0 ---- 5 5 5 query I rowsort SELECT - ( + col1 ) * cor0.col1 * col1 AS col2 FROM tab1 cor0 ---- -1000 -17576 -2197 query I rowsort SELECT + 1 + col2 * - cor0.col1 FROM tab0 AS cor0 ---- -2837 -7461 -96 query I rowsort SELECT - 33 * col0 + col2 FROM tab2 AS cor0 ---- -204 -2548 -2569 query I rowsort SELECT + col1 * + col0 - ( + col0 * + col1 ) FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT + cor0.col0 * + 80 FROM tab1 AS cor0 ---- 240 5120 6400 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 ---- 3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7 query I rowsort SELECT ALL + col2 * col0 * col2 AS col0 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT DISTINCT 85 + col0 FROM tab0 ---- 109 120 174 onlyif mysql # use DIV operator for integer division query I rowsort label-2161 SELECT ALL - col0 DIV col1 + col0 + col0 AS col1 FROM tab2 ---- 14 154 155 skipif mysql # not compatible query I rowsort label-2161 SELECT ALL - col0 / col1 + col0 + col0 AS col1 FROM tab2 ---- 14 154 155 query I rowsort SELECT + + col1 * col1 + + col2 * + col1 + col2 AS col0 FROM tab0 cor0 ---- 10267 15825 9507 query I rowsort SELECT + - col0 + + cor0.col2 + + ( + col2 ) FROM tab1 AS cor0 ---- 105 112 50 query I rowsort SELECT DISTINCT + + col0 + col1 * - ( cor0.col0 ) * col2 AS col1 FROM tab0 AS cor0 ---- -3360 -664029 -68088 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col2 + - 8 col1 FROM tab1 AS cor0 ---- 154 3640 7672 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab0.col2 * + col1 col0 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT + tab1.col2 + - col2 * 35 AS col2 FROM tab1 ---- -1836 -1938 -3264 onlyif mysql # use DIV operator for integer division query I rowsort label-2168 SELECT + - col1 DIV - col0 FROM tab0 cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-2168 SELECT + - col1 / - col0 FROM tab0 cor0 ---- 1 2 3 query I rowsort SELECT + 12 * + col0 FROM tab0 AS cor0 ---- 1068 288 420 query I rowsort SELECT ALL col0 * + 1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL col0 * 4 AS col2 FROM tab0 AS cor0 ---- 140 356 96 query I rowsort SELECT ALL - 16 * col2 AS col1 FROM tab2 cor0 ---- -416 -432 -608 query I rowsort SELECT + + 66 * + col1 FROM tab0 AS cor0 ---- 5676 6006 6402 query I rowsort SELECT cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-2175 SELECT DISTINCT + col2 DIV + 65 FROM tab0 cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-2175 SELECT DISTINCT + col2 / + 65 FROM tab0 cor0 ---- 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2176 SELECT DISTINCT 52 DIV col1 + - col2 AS col0 FROM tab0 cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-2176 SELECT DISTINCT 52 / col1 + - col2 AS col0 FROM tab0 cor0 ---- -1 -33 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-2177 SELECT ALL col1 * cor0.col1 + cor0.col0 DIV + 29 FROM tab2 AS cor0 ---- 291 3483 961 skipif mysql # not compatible query I rowsort label-2177 SELECT ALL col1 * cor0.col1 + cor0.col0 / + 29 FROM tab2 AS cor0 ---- 291 3483 961 query I rowsort SELECT + + ( 39 ) + col2 * - 96 FROM tab2 AS cor0 ---- -2457 -2553 -3609 query I rowsort SELECT DISTINCT - cor0.col2 * - col0 + - col1 FROM tab2 AS cor0 ---- 158 1969 2985 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2180 SELECT - + CAST( NULL AS SIGNED ) + 18 * - col2 / 11 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2180 SELECT - + CAST ( NULL AS INTEGER ) + 18 * - col2 / 11 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 19 * + col1 AS col0 FROM tab0 AS cor0 ---- 1634 1729 1843 query I rowsort SELECT DISTINCT + col2 + + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 67 col1 FROM tab1 AS cor0 ---- 67 query I rowsort SELECT DISTINCT - 82 + col0 FROM tab1 AS cor0 ---- -18 -2 -79 query I rowsort SELECT DISTINCT + ( ( col0 ) ) - col1 * - col2 * + col0 FROM tab2 AS cor0 ---- 119730 51113 5866 query I rowsort SELECT ALL - ( + col0 ) * + cor0.col1 + + ( cor0.col2 ) AS col0 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT ALL - ( 87 ) * - col0 FROM tab0 AS cor0 ---- 2088 3045 7743 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 23 + + col0 col1 FROM tab1 AS cor0 ---- 103 26 87 query I rowsort SELECT ALL - ( - 79 ) * col1 AS col2 FROM tab0 AS cor0 ---- 6794 7189 7663 query I rowsort SELECT ALL cor0.col0 * col0 AS col0 FROM tab1 cor0 ---- 4096 6400 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 95 col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 query I rowsort SELECT + 10 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- 30 640 800 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 71 col0 FROM tab1, tab0 AS cor0 ---- 71 onlyif mysql # use DIV operator for integer division query I rowsort label-2194 SELECT ALL col0 + + col0 * col2 DIV 89 col2 FROM tab2 AS cor0 ---- 100 112 9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2194 SELECT ALL col0 + + col0 * col2 / 89 col2 FROM tab2 AS cor0 ---- 100 112 9 query I rowsort SELECT + 42 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442 query I rowsort SELECT ( ( - col2 ) ) FROM tab1 ---- -54 -57 -96 query I rowsort SELECT - - col0 + + col0 FROM tab0 cor0 ---- 178 48 70 query I rowsort SELECT ALL - + cor0.col0 + col2 AS col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT + col0 + - 33 * + col1 FROM tab1 AS cor0 ---- -266 -349 -855 query I rowsort SELECT ALL - col0 + + ( col0 + - col1 ) AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * 78 - col0 col1 FROM tab2 cor0 ---- 1950 2099 2885 onlyif mysql # use DIV operator for integer division query I rowsort label-2202 SELECT + - col2 + - col0 DIV - col1 AS col1 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-2202 SELECT + - col2 + - col0 / - col1 AS col1 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT ALL + - col2 + col0 * cor0.col2 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT DISTINCT + cor0.col1 * col0 + - col2 - - col0 AS col1 FROM tab2 cor0 ---- 1384 197 4654 query I rowsort SELECT DISTINCT - col2 * - 64 + + col1 AS col1 FROM tab1 AS cor0 ---- 3482 3658 6157 query I rowsort SELECT cor0.col0 + + col1 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - col1 * - col2 + + col0 + - col1 AS col0 FROM tab1 AS cor0 ---- 1315 1381 624 query I rowsort SELECT ALL + col0 * - ( - col1 ) AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - cor0.col2 * ( + cor0.col2 ) AS col0 FROM tab1 cor0 ---- -2916 -3249 -9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 33 col2 FROM tab1 ---- -33 -33 -33 query I rowsort SELECT 96 * - tab0.col2 AS col2 FROM tab0 ---- -3168 -7872 -96 query I rowsort SELECT DISTINCT + 64 + col2 AS col2 FROM tab0 ---- 146 65 97 query I rowsort SELECT col0 * - col1 - tab1.col2 FROM tab1 ---- -1136 -132 -697 query I rowsort SELECT - 78 * col2 AS col0 FROM tab1 ---- -4212 -4446 -7488 query I rowsort SELECT DISTINCT - tab2.col0 + col2 AS col1 FROM tab2 ---- -41 -52 20 query I rowsort SELECT ALL + 51 FROM tab2, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5 onlyif mysql # use DIV operator for integer division query I rowsort label-2217 SELECT DISTINCT col2 DIV - col0 + col1 + 45 FROM tab1 ---- 53 55 57 skipif mysql # not compatible query I rowsort label-2217 SELECT DISTINCT col2 / - col0 + col1 + 45 FROM tab1 ---- 53 55 57 query I rowsort SELECT 28 * 7 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 140c563b705c847a9763df60c43c8baa query I rowsort SELECT col2 - - 57 FROM tab0 ---- 139 58 90 query I rowsort SELECT ALL - cor0.col1 * + col1 * 32 FROM tab1 cor0 ---- -21632 -3200 -5408 query I rowsort SELECT + col0 + ( + 92 ) * col0 * + ( col2 ) FROM tab1 AS cor0 ---- 14907 335680 706640 query I rowsort SELECT ALL + cor0.col1 - - 93 FROM tab0 AS cor0 ---- 179 184 190 query I rowsort SELECT + col0 + ( 0 ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT ALL + 69 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 query I rowsort SELECT DISTINCT tab2.col2 * col0 * 49 FROM tab2 ---- 147098 9261 99372 query I rowsort SELECT ALL - 23 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5 query I rowsort SELECT DISTINCT + 85 * tab2.col0 * 83 FROM tab2 ---- 49385 550290 557345 query I rowsort SELECT DISTINCT + ( col0 ) + 28 AS col0 FROM tab2 AS cor0 ---- 106 107 35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col0 * + tab0.col1 col1 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 09a48fec24dd5ded01e53ec00cd6a7a1 onlyif mysql # use DIV operator for integer division query I rowsort label-2230 SELECT DISTINCT + col1 * cor0.col0 + + 73 DIV - 21 FROM tab0 AS cor0 ---- 2061 3392 8096 skipif mysql # not compatible query I rowsort label-2230 SELECT DISTINCT + col1 * cor0.col0 + + 73 / - 21 FROM tab0 AS cor0 ---- 2061 3392 8096 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + col0 col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT - cor0.col0 + + cor0.col1 * - ( col1 ) AS col2 FROM tab2 AS cor0 ---- -3559 -368 -968 onlyif mysql # use DIV operator for integer division query I rowsort label-2233 SELECT + cor0.col0 DIV + col0 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2233 SELECT + cor0.col0 / + col0 FROM tab0 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2234 SELECT - col1 DIV col1 + + col0 * - col0 FROM tab2 ---- -50 -6085 -6242 skipif mysql # not compatible query I rowsort label-2234 SELECT - col1 / col1 + + col0 * - col0 FROM tab2 ---- -50 -6085 -6242 query I rowsort SELECT DISTINCT - ( + 57 ) + col0 FROM tab1 AS cor0 ---- -54 23 7 query I rowsort SELECT col1 + - col0 * - col2 AS col2 FROM tab0 AS cor0 ---- 132 7389 878 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2237 SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 * col1 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2237 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 * col1 AS col1 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( cor0.col2 ) * + col2 col0 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT + col1 * col2 - + cor0.col2 FROM tab2 AS cor0 ---- 1508 608 810 onlyif mysql # use DIV operator for integer division query I rowsort label-2240 SELECT - + col2 DIV - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 5 69 87 skipif mysql # not compatible query I rowsort label-2240 SELECT - + col2 / - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 5 69 87 query I rowsort SELECT ALL - col2 * ( col2 ) + - col0 FROM tab1 AS cor0 ---- -2919 -3313 -9296 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2242 SELECT DISTINCT + CAST( 87 AS SIGNED ) * cor0.col1 + 48 col0 FROM tab2 AS cor0 ---- 1527 2745 5181 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2242 SELECT DISTINCT + CAST ( 87 AS INTEGER ) * cor0.col1 + 48 col0 FROM tab2 AS cor0 ---- 1527 2745 5181 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2243 SELECT - - col1 + - col0 * CAST( NULL AS SIGNED ) * - 70 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2243 SELECT - - col1 + - col0 * CAST ( NULL AS INTEGER ) * - 70 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 9 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to ebef7303942834ca1e6ca8604ec18a07 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 22 col2 FROM tab0, tab2 AS cor0 ---- 22 query I rowsort SELECT - col0 + 5 AS col0 FROM tab0 ---- -19 -30 -84 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 84 + col2 col2 FROM tab0 ---- 117 166 85 query I rowsort SELECT + - col2 * col1 + 35 AS col1 FROM tab0 cor0 ---- -2803 -62 -7427 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2249 SELECT - + cor0.col0 * col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2249 SELECT - + cor0.col0 * col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + ( col2 ) + + 15 AS col1 FROM tab1 AS cor0 ---- 111 69 72 onlyif mysql # use DIV operator for integer division query I rowsort label-2251 SELECT + - 77 * - col1 + - col1 DIV 67 + col2 AS col1 FROM tab1 AS cor0 ---- 1097 2056 827 skipif mysql # not compatible query I rowsort label-2251 SELECT + - 77 * - col1 + - col1 / 67 + col2 AS col1 FROM tab1 AS cor0 ---- 1097 2056 827 query I rowsort SELECT - 3 + + col0 AS col2 FROM tab0 AS cor0 ---- 21 32 86 query I rowsort SELECT 50 + col0 AS col0 FROM tab2 AS cor0 ---- 128 129 57 query I rowsort SELECT - 19 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4 query I rowsort SELECT - col2 * col2 + - col1 AS col2 FROM tab0 AS cor0 ---- -1175 -6815 -98 query I rowsort SELECT DISTINCT - - 45 AS col2 FROM tab1 cor0 ---- 45 query I rowsort SELECT DISTINCT ( col2 ) + - 99 + col1 FROM tab1 cor0 ---- -19 -32 10 query I rowsort SELECT - 30 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- -1920 -2400 -90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2259 SELECT ALL - 37 * - col2 * + CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2259 SELECT ALL - 37 * - col2 * + CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - col0 + + ( ( + col1 ) * - col1 ) - - col0 * + col1 AS col2 FROM tab2 AS cor0 ---- -751 1043 975 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2261 SELECT DISTINCT col2 * col1 + CAST( NULL AS SIGNED ) col2 FROM tab2 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2261 SELECT DISTINCT col2 * col1 + CAST ( NULL AS INTEGER ) col2 FROM tab2 ---- NULL query I rowsort SELECT DISTINCT 63 + - col1 FROM tab0 ---- -23 -28 -34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2263 SELECT - + CAST( - col0 AS SIGNED ) - + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -2913 -3185 -9136 skipif mysql # not compatible query I rowsort label-2263 SELECT - + CAST ( - col0 AS INTEGER ) - + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT + cor0.col0 * + 37 * col2 - - col0 * + col2 * + cor0.col2 FROM tab2 AS cor0 ---- 12096 127764 225150 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2265 SELECT + + CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2265 SELECT + + CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2266 SELECT CAST( 1 AS SIGNED ) * + col2 AS col0 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-2266 SELECT CAST ( 1 AS INTEGER ) * + col2 AS col0 FROM tab0 ---- 1 33 82 query I rowsort SELECT + ( + 52 ) AS col2 FROM tab1 ---- 52 52 52 query I rowsort SELECT DISTINCT ( col2 + col1 ) AS col0 FROM tab2 ---- 55 58 85 query I rowsort SELECT + 76 * col0 + + tab2.col0 + 9 AS col2 FROM tab2 ---- 548 6015 6092 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2270 SELECT - + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2270 SELECT - + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 * - 48 * - col2 FROM tab1 AS cor0 ---- 27360 59904 67392 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 * ( + col2 ) + - col0 * col0 col2 FROM tab1 AS cor0 ---- -15616 -2925 -7345 query I rowsort SELECT DISTINCT + col0 + col2 * - ( + col1 ) AS col2 FROM tab0 AS cor0 ---- -2814 -62 -7373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 + + col0 col1 FROM tab2 cor0 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + ( 57 ) col2 FROM tab1 AS cor0 ---- 171 3648 4560 onlyif mysql # use DIV operator for integer division query I rowsort label-2276 SELECT DISTINCT col0 - col0 DIV 60 FROM tab2 ---- 7 77 78 skipif mysql # not compatible query I rowsort label-2276 SELECT DISTINCT col0 - col0 / 60 FROM tab2 ---- 7 77 78 query I rowsort SELECT tab0.col0 * - col1 + col0 * col0 + - ( + col0 + col1 ) * 29 AS col0 FROM tab0 ---- -4678 -5398 -5998 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2278 SELECT - col1 + - CAST( + col2 AS SIGNED ) * - col2 * + col2 FROM tab0 cor0 ---- -96 35851 551277 skipif mysql # not compatible query I rowsort label-2278 SELECT - col1 + - CAST ( + col2 AS INTEGER ) * - col2 * + col2 FROM tab0 cor0 ---- -96 35851 551277 query I rowsort SELECT - col1 * + 37 FROM tab0 ---- -3182 -3367 -3589 onlyif mysql # use DIV operator for integer division query I rowsort label-2280 SELECT ALL - col0 DIV 16 + col0 * 44 AS col2 FROM tab0 ---- 1055 1538 3911 skipif mysql # not compatible query I rowsort label-2280 SELECT ALL - col0 / 16 + col0 * 44 AS col2 FROM tab0 ---- 1055 1538 3911 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + 78 + col2 * + col1 * + ( + col1 ) col0 FROM tab1 ---- 16382 36585 5842 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2282 SELECT DISTINCT col1 * col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2282 SELECT DISTINCT col1 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2283 SELECT - + 8 DIV cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2283 SELECT - + 8 / cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + 59 + col2 AS col2 FROM tab2 AS cor0 ---- 85 86 97 onlyif mysql # use DIV operator for integer division query I rowsort label-2285 SELECT + + col2 DIV col2 col0 FROM tab1 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2285 SELECT + + col2 / col2 col0 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT col1 * cor0.col2 * + ( - col0 ) + col0 AS col1 FROM tab0 AS cor0 ---- -3360 -664029 -68088 query I rowsort SELECT + - cor0.col0 * - cor0.col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT ALL - col1 + - col1 * col1 AS col0 FROM tab0 AS cor0 ---- -7482 -8372 -9506 query I rowsort SELECT + 47 + col1 FROM tab1 ---- 57 60 73 query I rowsort SELECT tab2.col0 * + col2 * col1 AS col1 FROM tab2 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-2291 SELECT ALL - col0 + - col0 DIV col1 + col0 * col2 * ( + col1 + - col2 ) col0 FROM tab2 AS cor0 ---- -63125 66845 749 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2291 SELECT ALL - col0 + - col0 / col1 + col0 * col2 * ( + col1 + - col2 ) col0 FROM tab2 AS cor0 ---- -63125 66845 749 query I rowsort SELECT ALL 42 * col1 FROM tab2 ---- 1302 2478 714 query I rowsort SELECT + 10 * + cor0.col0 + 62 FROM tab2 cor0 ---- 132 842 852 query I rowsort SELECT ALL - - col1 + - col1 + + 99 AS col0 FROM tab1 AS cor0 ---- 99 99 99 query I rowsort SELECT DISTINCT col2 * - col2 - 67 AS col0 FROM tab2 AS cor0 ---- -1511 -743 -796 query I rowsort SELECT - cor0.col1 * - 43 FROM tab0, tab1 AS cor0 ---- 9 values hashing to ca3b5386786f44a3c284894966f3d484 query I rowsort SELECT - col0 * + col2 + col1 AS col0 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT DISTINCT + col2 * + col1 + + ( + col1 ) AS col0 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT ALL + ( - col0 ) + col2 AS col1 FROM tab1 AS cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-2300 SELECT DISTINCT + - col0 + col0 DIV - col1 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-2300 SELECT DISTINCT + - col0 + col0 / - col1 col0 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT + col2 * - 85 AS col0 FROM tab2 AS cor0 ---- -2210 -2295 -3230 query I rowsort SELECT - cor0.col0 * col2 AS col0 FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL col0 + - 85 AS col1 FROM tab2 cor0 ---- -6 -7 -78 query I rowsort SELECT ALL + col1 * 45 + - 93 * + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -4182 1110 1638 query I rowsort SELECT DISTINCT col0 * - col2 + col1 AS col0 FROM tab0 cor0 ---- -706 -7207 62 query I rowsort SELECT ALL col0 * cor0.col1 AS col2 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT col2 * - ( + col1 ) FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT - + col0 * - ( cor0.col0 ) - + col0 AS col0 FROM tab1 cor0 ---- 4032 6 6320 query I rowsort SELECT DISTINCT - 78 + col2 FROM tab0 AS cor0 ---- -45 -77 4 query I rowsort SELECT DISTINCT + + col0 + + 83 FROM tab1 AS cor0 ---- 147 163 86 query I rowsort SELECT ALL - + ( cor0.col2 ) - - cor0.col2 AS col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT + 28 + - 17 FROM tab2 AS cor0 ---- 11 11 11 query I rowsort SELECT ALL + + ( + col2 ) + col0 * - ( col2 * - cor0.col1 ) FROM tab1 AS cor0 ---- 36537 4266 99936 query I rowsort SELECT + col0 * 60 + + col0 FROM tab1 AS cor0 ---- 183 3904 4880 query I rowsort SELECT DISTINCT + col0 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + + ( - 77 ) AS col0 FROM tab1 AS cor0 ---- -77 -77 -77 query I rowsort SELECT ALL + col0 * cor0.col1 + - col0 AS col2 FROM tab1 cor0 ---- 576 75 960 query I rowsort SELECT + col0 * + cor0.col1 + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT ALL - - 77 * col0 FROM tab2 AS cor0 ---- 539 6006 6083 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2320 SELECT DISTINCT - - CAST( - col2 AS SIGNED ) + col2 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-2320 SELECT DISTINCT - - CAST ( - col2 AS INTEGER ) + col2 FROM tab1 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 + + col0 col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT ALL col2 - 52 AS col1 FROM tab1 ---- 2 44 5 query I rowsort SELECT DISTINCT + col1 + 56 FROM tab1 cor0 ---- 66 69 82 query I rowsort SELECT DISTINCT + col0 + col0 * cor0.col1 FROM tab0 cor0 ---- 2088 3430 8188 query I rowsort SELECT ALL - - 77 + col0 * - col0 AS col2 FROM tab0 AS cor0 ---- -1148 -499 -7844 query I rowsort SELECT DISTINCT ( 49 ) * col1 - col2 AS col1 FROM tab1 AS cor0 ---- 1220 433 541 query I rowsort SELECT + 99 + + col0 FROM tab1 AS cor0 ---- 102 163 179 query I rowsort SELECT ALL - col2 * col0 * col0 - col0 FROM tab0 AS cor0 ---- -1260 -19032 -649611 query I rowsort SELECT DISTINCT 84 * + col0 AS col0 FROM tab1 cor0 ---- 252 5376 6720 query I rowsort SELECT ALL - col1 + + 74 FROM tab1 AS cor0 ---- 48 61 64 query I rowsort SELECT ALL 17 * col2 * 81 FROM tab2 AS cor0 ---- 35802 37179 52326 onlyif mysql # use DIV operator for integer division query I rowsort label-2332 SELECT + 6 DIV cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to e1e0cfc6d15933eb424ade504a2163bc skipif mysql # not compatible query I rowsort label-2332 SELECT + 6 / cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to e1e0cfc6d15933eb424ade504a2163bc query I rowsort SELECT DISTINCT - 33 + - col0 AS col1 FROM tab2 AS cor0 ---- -111 -112 -40 query I rowsort SELECT 15 FROM tab0, tab1 cor0 ---- 9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd query I rowsort SELECT ALL + col2 * + cor0.col2 - + col0 AS col1 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT DISTINCT col2 * 52 + + col0 FROM tab2 ---- 1411 1430 2055 query I rowsort SELECT DISTINCT 1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2338 SELECT col0 DIV - col1 + col2 AS col2 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-2338 SELECT col0 / - col1 + col2 AS col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT - col0 * - col0 + - col1 * - 86 * col1 FROM tab1 ---- 12696 20934 58145 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2340 SELECT DISTINCT col2 * CAST( + col2 AS SIGNED ) AS col1 FROM tab2 ---- 1444 676 729 skipif mysql # not compatible query I rowsort label-2340 SELECT DISTINCT col2 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-2341 SELECT col0 DIV - 29 AS col1 FROM tab1 AS cor0 ---- -2 -2 0 skipif mysql # not compatible query I rowsort label-2341 SELECT col0 / - 29 AS col1 FROM tab1 AS cor0 ---- -2 -2 0 query I rowsort SELECT - col2 * - cor0.col2 FROM tab2 cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-2343 SELECT ( col2 ) DIV - col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2343 SELECT ( col2 ) / - col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2344 SELECT + + CAST( col0 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort label-2344 SELECT + + CAST ( col0 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT 49 AS col1 FROM tab1, tab1 cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT - col2 + + col1 * - col1 FROM tab0 ---- -7429 -8363 -9410 query I rowsort SELECT ( - tab0.col2 ) AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to b5a4102107e5ebd26e341538f4fede1e query I rowsort SELECT + 17 * - col0 AS col0 FROM tab0 ---- -1513 -408 -595 query I rowsort SELECT ALL - tab0.col0 * + 31 FROM tab0 ---- -1085 -2759 -744 query I rowsort SELECT col0 + + 36 AS col0 FROM tab0 AS cor0 ---- 125 60 71 query I rowsort SELECT ALL + ( + col1 ) * col2 * - 90 AS col1 FROM tab0 AS cor0 ---- -255420 -671580 -8730 query I rowsort SELECT DISTINCT - col0 + - 69 FROM tab0 AS cor0 ---- -104 -158 -93 query I rowsort SELECT col1 * + col0 + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT + + col0 + ( + col2 ) AS col2 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT ( - col2 ) * - col2 AS col0 FROM tab2 ---- 1444 676 729 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 * - cor1.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 819d50aeaf27d8e4e8dec203fb8f53ce query I rowsort SELECT ALL 92 + + col0 FROM tab2 ---- 170 171 99 query I rowsort SELECT DISTINCT - ( col2 ) * col2 AS col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT DISTINCT + col2 * col2 + + col2 FROM tab2 AS cor0 ---- 1482 702 756 onlyif mysql # use DIV operator for integer division query I rowsort label-2360 SELECT ALL - cor0.col1 + + col2 DIV 85 + + 51 * col2 AS col0 FROM tab1 AS cor0 ---- 2728 2897 4884 skipif mysql # not compatible query I rowsort label-2360 SELECT ALL - cor0.col1 + + col2 / 85 + + 51 * col2 AS col0 FROM tab1 AS cor0 ---- 2728 2897 4884 query I rowsort SELECT DISTINCT - 32 * + col0 FROM tab1 cor0 ---- -2048 -2560 -96 query I rowsort SELECT DISTINCT - - col2 * col1 + col2 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2363 SELECT DISTINCT col2 * cor0.col0 + - CAST( + col2 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0 ---- 169 2080 3043 skipif mysql # not compatible query I rowsort label-2363 SELECT DISTINCT col2 * cor0.col0 + - CAST ( + col2 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0 ---- 169 2080 3043 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2364 SELECT - col1 + CAST( + 62 AS SIGNED ) * - col0 - 56 FROM tab2 AS cor0 ---- -4951 -4971 -521 skipif mysql # not compatible query I rowsort label-2364 SELECT - col1 + CAST ( + 62 AS INTEGER ) * - col0 - 56 FROM tab2 AS cor0 ---- -4951 -4971 -521 query I rowsort SELECT ALL + col1 * - ( - col2 ) AS col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT cor0.col1 + + col2 + col1 FROM tab2 AS cor0 ---- 144 72 89 query I rowsort SELECT + col0 * col2 + col1 * - col0 + ( - col1 ) FROM tab2 AS cor0 ---- -2633 -59 1642 query I rowsort SELECT 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a query I rowsort SELECT + col1 + + col2 * - col1 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT + col2 - ( + 23 * - col0 ) FROM tab1 AS cor0 ---- 123 1529 1936 query I rowsort SELECT + col0 - - 35 FROM tab0 cor0 ---- 124 59 70 query I rowsort SELECT col1 * 20 + + col0 FROM tab1 AS cor0 ---- 264 340 523 query I rowsort SELECT + + col2 * ( - cor0.col0 ) * cor0.col0 - + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -233536 -489 -614480 query I rowsort SELECT - - col1 * + col1 + - col1 * + col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 93 * - 79 + col0 + - col1 col1 FROM tab2 AS cor0 ---- 7323 7366 7409 query I rowsort SELECT ALL + 12 * 31 FROM tab1 AS cor0 ---- 372 372 372 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2377 SELECT - CAST( NULL AS DECIMAL ) + + col0 / col1 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2377 SELECT - CAST ( NULL AS REAL ) + + col0 / col1 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 * - col2 + + col1 * col1 FROM tab2 AS cor0 ---- -1155 232 2805 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 + - 49 * - col2 col0 FROM tab2 cor0 ---- 1330 1352 1941 query I rowsort SELECT + 17 * col0 AS col2 FROM tab0 AS cor0 ---- 1513 408 595 query I rowsort SELECT - col0 * + col0 + + col2 FROM tab1 AS cor0 ---- -4039 -6304 45 query I rowsort SELECT DISTINCT col1 * 23 + - col2 FROM tab1 cor0 ---- 173 203 544 onlyif mysql # use DIV operator for integer division query I rowsort label-2383 SELECT ALL col2 * - ( - ( + col0 ) ) + ( col1 ) DIV + col0 + - ( + cor0.col1 ) FROM tab1 AS cor0 ---- 144 3638 7667 skipif mysql # not compatible query I rowsort label-2383 SELECT ALL col2 * - ( - ( + col0 ) ) + ( col1 ) / + col0 + - ( + cor0.col1 ) FROM tab1 AS cor0 ---- 144 3638 7667 query I rowsort SELECT ALL + col0 * ( cor0.col1 ) + - col0 - col0 FROM tab1 AS cor0 ---- 512 72 880 query I rowsort SELECT 56 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to b5ba4b44e3deadce1edb30e76df61200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2386 SELECT ALL col2 * col0 * + CAST( 21 AS SIGNED ) AS col0 FROM tab1 ---- 161280 3402 76608 skipif mysql # not compatible query I rowsort label-2386 SELECT ALL col2 * col0 * + CAST ( 21 AS INTEGER ) AS col0 FROM tab1 ---- 161280 3402 76608 query I rowsort SELECT - col0 - col1 AS col0 FROM tab0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT - col0 * col0 + - col0 FROM tab2 AS cor0 ---- -56 -6162 -6320 query I rowsort SELECT ALL + - col0 * col1 - col0 AS col1 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT + col0 * - col2 + + col2 + col0 FROM tab1 AS cor0 ---- -105 -3527 -7504 query I rowsort SELECT DISTINCT + col2 * col2 + - col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT tab1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT DISTINCT cor0.col2 - + col1 AS col2 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - col1 * col1 + - col0 * - cor0.col2 FROM tab0 AS cor0 ---- -6604 -9374 -983 query I rowsort SELECT ALL + col1 + col2 AS col1 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT ALL + col2 * + col0 * - cor0.col2 + + col1 FROM tab2 AS cor0 ---- -114059 -5072 -52669 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 - col2 * col0 ---- query I rowsort SELECT - col2 * col2 + col2 - - col2 AS col0 FROM tab1 AS cor0 WHERE NULL > + col2 + col0 ---- query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - col1 - + col2 >= - col2 + col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2400 SELECT DISTINCT - col0 + cor0.col0 DIV + col1 FROM tab2 AS cor0 ---- -7 -75 -77 skipif mysql # not compatible query I rowsort label-2400 SELECT DISTINCT - col0 + cor0.col0 / + col1 FROM tab2 AS cor0 ---- -7 -75 -77 query I rowsort SELECT tab2.col1 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT - col1 * col1 - col2 FROM tab0 ---- -7429 -8363 -9410 query I rowsort SELECT - col1 + - tab2.col0 AS col2 FROM tab2 ---- -137 -38 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-2404 SELECT DISTINCT - tab1.col2 DIV - col0 AS col2 FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-2404 SELECT DISTINCT - tab1.col2 / - col0 AS col2 FROM tab1 ---- 0 1 18 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col1 - + col1 col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col1 + col1 * col0 + col2 * cor0.col2 AS col1 FROM tab1 cor0 ---- 10269 3020 3899 query I rowsort SELECT DISTINCT + col2 * + col2 + col0 * - col1 * + col2 FROM tab0 AS cor0 ---- -3394 -657394 -67023 query I rowsort SELECT col0 + + col0 * + col0 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT + col0 + - col0 + - col0 * cor0.col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-2410 SELECT ( col2 ) DIV col0 FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-2410 SELECT ( col2 ) / col0 FROM tab1 ---- 0 1 18 onlyif mysql # use DIV operator for integer division query I rowsort label-2411 SELECT DISTINCT col1 + col2 * col2 DIV col1 AS col0 FROM tab1 ---- 138 334 721 skipif mysql # not compatible query I rowsort label-2411 SELECT DISTINCT col1 + col2 * col2 / col1 AS col0 FROM tab1 ---- 138 334 721 query I rowsort SELECT ALL + tab1.col1 + col1 FROM tab1 ---- 20 26 52 query I rowsort SELECT DISTINCT + tab1.col0 * - col2 * + col0 + - col1 FROM tab1 ---- -233482 -512 -614413 query I rowsort SELECT col1 + + tab2.col2 * - col2 AS col0 FROM tab2 ---- -1427 -617 -698 onlyif mysql # use DIV operator for integer division query I rowsort label-2415 SELECT col0 DIV col2 + col0 DIV col1 AS col0 FROM tab1 ---- 0 6 7 skipif mysql # not compatible query I rowsort label-2415 SELECT col0 / col2 + col0 / col1 AS col0 FROM tab1 ---- 0 6 7 query I rowsort SELECT col0 * - col2 - + tab0.col2 * - tab0.col2 FROM tab0 ---- -34 -574 297 query I rowsort SELECT + col2 * + tab0.col1 + col1 - + col1 * col2 AS col0 FROM tab0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - tab2.col1 col1 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT col1 * tab1.col0 * - tab1.col1 AS col1 FROM tab1 ---- -13520 -2028 -6400 query III rowsort SELECT * FROM tab1 WHERE NULL BETWEEN ( col1 * - col1 ) AND NULL ---- query I rowsort SELECT + col2 * - tab0.col0 * col2 + + col1 AS col0 FROM tab0 ---- -26050 -598345 62 onlyif mysql # use DIV operator for integer division query I rowsort label-2422 SELECT col2 DIV - col0 + - col1 + + col2 FROM tab2 AS cor0 ---- -33 -7 21 skipif mysql # not compatible query I rowsort label-2422 SELECT col2 / - col0 + - col1 + + col2 FROM tab2 AS cor0 ---- -33 -7 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + + col2 * col1 col1 FROM tab0 ---- 194 2924 7553 query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( - col1 + + col2 ) BETWEEN NULL AND ( - col2 * col1 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT col0 + + col1 + + col1 AS col0 FROM tab0 ---- 196 229 271 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + col1 * col2 * col2 <> - col2 - col1 ---- query I rowsort SELECT + col2 * col2 * col2 FROM tab0 ---- 1 35937 551368 query I rowsort SELECT ALL + cor0.col0 FROM tab0, tab2, tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT + col2 * col2 + + col0 FROM tab1 ---- 2919 3313 9296 onlyif mysql # use DIV operator for integer division query I rowsort label-2430 SELECT ALL + col0 DIV + col0 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2430 SELECT ALL + col0 / + col0 FROM tab0 cor0 ---- 1 1 1 query I rowsort SELECT ALL - cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 query I rowsort SELECT - - 0 + col1 AS col1 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT + 50 + cor0.col2 FROM tab1 AS cor0 ---- 104 107 146 query I rowsort SELECT DISTINCT + 14 + col0 * - col0 - - col2 AS col0 FROM tab1 AS cor0 ---- -4025 -6290 59 query I rowsort SELECT ALL + + col1 - + cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col1 * - col2 - + 32 AS col0 FROM tab1 cor0 ---- 1216 1372 538 query I rowsort SELECT + cor0.col0 * col2 + 83 * - col2 FROM tab2 AS cor0 ---- -130 -152 -2052 query I rowsort SELECT + col1 FROM tab2 WHERE NOT ( NULL ) IN ( + col1 ) ---- query I rowsort SELECT + col1 FROM tab0 WHERE NULL NOT IN ( col2 * - col0 ) ---- query I rowsort SELECT col1 + - col2 * + col2 FROM tab1 ---- -2890 -3239 -9203 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) BETWEEN NULL AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2442 SELECT DISTINCT tab1.col0 + col0 DIV - col0 AS col2 FROM tab1 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-2442 SELECT DISTINCT tab1.col0 + col0 / - col0 AS col2 FROM tab1 ---- 2 63 79 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col1 * + col0 ) ---- query I rowsort SELECT DISTINCT - col2 + + col0 * - col2 AS col0 FROM tab0 ---- -36 -7380 -825 query I rowsort SELECT - col0 + col1 - - col2 AS col1 FROM tab2 ---- -24 51 7 query I rowsort SELECT DISTINCT col0 * - col0 + - col0 FROM tab2 ---- -56 -6162 -6320 query I rowsort SELECT tab0.col2 + - col1 * col0 AS col0 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT DISTINCT + col1 * col2 * + col1 FROM tab2 AS cor0 ---- 10982 25947 90506 onlyif mysql # use DIV operator for integer division query I rowsort label-2449 SELECT + cor0.col1 DIV - col0 AS col1 FROM tab2 AS cor0 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-2449 SELECT + cor0.col1 / - col0 AS col1 FROM tab2 AS cor0 ---- -4 0 0 query I rowsort SELECT + tab1.col2 AS col1 FROM tab1 WHERE NULL = - col2 + - col2 / - col2 + col2 ---- query I rowsort SELECT DISTINCT col2 + col1 FROM tab2 WHERE NULL BETWEEN col1 AND col2 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * - col1 + tab0.col0 col0 FROM tab0 ---- -2814 -62 -7373 onlyif mysql # use DIV operator for integer division query I rowsort label-2453 SELECT col2 DIV + col1 + col0 * - col2 FROM tab2 ---- -189 -2028 -3000 skipif mysql # not compatible query I rowsort label-2453 SELECT col2 / + col1 + col0 * - col2 FROM tab2 ---- -189 -2028 -3000 query I rowsort SELECT col0 * + col0 * col0 + - col2 AS col2 FROM tab2 ---- 316 474526 493001 query I rowsort SELECT col1 + + col1 * - col0 AS col0 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT col0 * - col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col2 AND NULL ---- query III rowsort SELECT * FROM tab0 WHERE NOT + col2 * - col2 + col1 * col1 - - col1 <> ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2458 SELECT ALL col1 DIV - col1 + - col0 + + col0 DIV col0 FROM tab2 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-2458 SELECT ALL col1 / - col1 + - col0 + + col0 / col0 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT 11 * col1 + 6 FROM tab2 cor0 ---- 193 347 655 query I rowsort SELECT ( tab2.col0 ) - + col0 * col0 AS col0 FROM tab2 ---- -42 -6006 -6162 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - - col2 col0 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT col1 * + 82 AS col2 FROM tab1 AS cor0 ---- 1066 2132 820 query I rowsort SELECT - col1 * + col0 + ( cor0.col1 ) FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT ALL col2 * 71 + - col0 AS col2 FROM tab0 AS cor0 ---- 2319 36 5733 query I rowsort SELECT + ( - col2 ) * - col2 FROM tab0 ---- 1 1089 6724 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1, tab0 cor0, tab2 AS cor1 ---- 972 values hashing to 9600bdf5bac0caec3229e87170cc40b3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 41 * - tab0.col0 col0 FROM tab0 ---- 1435 3649 984 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2468 SELECT - - CAST( col0 AS SIGNED ) FROM tab1 cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-2468 SELECT - - CAST ( col0 AS INTEGER ) FROM tab1 cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-2469 SELECT ( col0 ) * col0 DIV col0 FROM tab2 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-2469 SELECT ( col0 ) * col0 / col0 FROM tab2 ---- 7 78 79 query I rowsort SELECT ALL - 58 + + col2 FROM tab1 AS cor0 ---- -1 -4 38 onlyif mysql # use DIV operator for integer division query I rowsort label-2471 SELECT + 1 DIV + cor0.col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-2471 SELECT + 1 / + cor0.col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT DISTINCT + + 36 + col0 FROM tab2 AS cor0 ---- 114 115 43 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 60 + col1 col1 FROM tab0 AS cor0 ---- 26 31 37 query I rowsort SELECT DISTINCT - - cor0.col2 - + 77 FROM tab2 AS cor0 ---- -39 -50 -51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2475 SELECT ALL ( - col2 ) * + col0 + - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2475 SELECT ALL ( - col2 ) * + col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 * 44 FROM tab1 AS cor0 ---- 1144 440 572 query I rowsort SELECT + ( 90 ) AS col2 FROM tab1 ---- 90 90 90 query I rowsort SELECT ALL - + col0 + - col1 * - col0 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT col0 + + col2 * cor0.col2 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT DISTINCT + - 1 + + col1 * col1 FROM tab1 AS cor0 ---- 168 675 99 query I rowsort SELECT ALL col1 * + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # use DIV operator for integer division query I rowsort label-2482 SELECT ALL - 52 DIV - col0 FROM tab1 ---- 0 0 17 skipif mysql # not compatible query I rowsort label-2482 SELECT ALL - 52 / - col0 FROM tab1 ---- 0 0 17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2483 SELECT ALL - CAST( NULL AS SIGNED ) / + tab1.col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2483 SELECT ALL - CAST ( NULL AS INTEGER ) / + tab1.col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL ( + tab1.col2 + tab1.col0 ) * col2 AS col0 FROM tab1 ---- 16896 3078 6897 query I rowsort SELECT ALL 39 * - col2 AS col2 FROM tab1 ---- -2106 -2223 -3744 query I rowsort SELECT col1 * - cor0.col1 - col2 FROM tab1 AS cor0 ---- -157 -265 -730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 98 * col0 col2 FROM tab1 cor0 ---- 294 6272 7840 onlyif mysql # use DIV operator for integer division query I rowsort label-2488 SELECT ALL - - cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-2488 SELECT ALL - - cor0.col2 / + col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 onlyif mysql # use DIV operator for integer division query I rowsort label-2489 SELECT + 35 DIV - col1 + col2 * - col1 FROM tab2 AS cor0 ---- -1534 -648 -838 skipif mysql # not compatible query I rowsort label-2489 SELECT + 35 / - col1 + col2 * - col1 FROM tab2 AS cor0 ---- -1534 -648 -838 query I rowsort SELECT - 68 * - col0 FROM tab0 AS cor0 ---- 1632 2380 6052 query I rowsort SELECT - col2 + + ( + col1 ) * - col1 AS col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT - - col2 * col0 + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 15360 324 7296 query I rowsort SELECT - cor0.col1 + + ( + col0 ) FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT - col2 * 71 AS col1 FROM tab0 AS cor0 ---- -2343 -5822 -71 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2495 SELECT + col2 * + CAST( cor0.col0 AS SIGNED ) col0 FROM tab2 AS cor0 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2495 SELECT + col2 * + CAST ( cor0.col0 AS INTEGER ) col0 FROM tab2 AS cor0 ---- 189 2028 3002 skipif mysql # not compatible query I rowsort SELECT DISTINCT - - CAST ( col2 AS REAL ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL 12 + cor0.col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 970cfcf355594cc92de8508314ff04f9 query I rowsort SELECT col2 + - tab2.col0 * - col1 * + col1 AS col0 FROM tab2 ---- 22869 271544 6754 query I rowsort SELECT DISTINCT - 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 ---- -70 onlyif mysql # use DIV operator for integer division query I rowsort label-2500 SELECT DISTINCT + col0 DIV 29 + 67 AS col0 FROM tab2 AS cor0 ---- 67 69 skipif mysql # not compatible query I rowsort label-2500 SELECT DISTINCT + col0 / 29 + 67 AS col0 FROM tab2 AS cor0 ---- 67 69 query I rowsort SELECT col1 + 17 * + 62 FROM tab0 AS cor0 ---- 1140 1145 1151 onlyif mysql # use DIV operator for integer division query I rowsort label-2502 SELECT DISTINCT + col1 DIV + 40 + - col2 * + col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 skipif mysql # not compatible query I rowsort label-2502 SELECT DISTINCT + col1 / + 40 + - col2 * + col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL - col2 * 80 + - 76 AS col2 FROM tab0 AS cor0 ---- -156 -2716 -6636 query I rowsort SELECT - col1 + 84 AS col0 FROM tab2 AS cor0 ---- 25 53 67 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2505 SELECT col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2505 SELECT col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + col2 * 61 + col2 + cor0.col2 FROM tab2 AS cor0 ---- 1638 1701 2394 query I rowsort SELECT + cor0.col1 + + cor0.col1 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT DISTINCT col1 + 71 FROM tab2 AS cor0 ---- 102 130 88 onlyif mysql # use DIV operator for integer division query I rowsort label-2509 SELECT cor0.col2 DIV - 54 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2509 SELECT cor0.col2 / - 54 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + col0 + col1 - + col2 AS col0 FROM tab0 AS cor0 ---- 131 77 98 query I rowsort SELECT + + col0 * 65 + - 8 * col0 AS col2 FROM tab2 cor0 ---- 399 4446 4503 query I rowsort SELECT DISTINCT - - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT - col1 + - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT DISTINCT ( + ( + cor0.col0 ) ) AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT 67 + + col2 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- 102 7365 859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + col1 col1 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT ALL + col1 + cor0.col0 * col0 FROM tab0 AS cor0 ---- 1322 662 8012 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2518 SELECT + + CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2518 SELECT + + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + cor0.col2 * + col0 + + col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT - tab1.col2 - col1 * 68 AS col1 FROM tab1 ---- -1822 -737 -980 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 54 col2 FROM tab1 cor0 ---- 54 query I rowsort SELECT DISTINCT + + ( + col0 ) * ( - col0 * - cor0.col1 ) + 5 * + col2 FROM tab1 AS cor0 ---- 41245 504 83680 query I rowsort SELECT DISTINCT + - cor0.col2 * + col1 + col2 * + col1 + + col2 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT ALL + + 71 * - col1 * + ( - col1 ) AS col1 FROM tab2 AS cor0 ---- 20519 247151 68231 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 67 * - col2 + - col0 col2 FROM tab0 AS cor0 ---- -102 -2235 -5583 onlyif mysql # use DIV operator for integer division query I rowsort label-2526 SELECT DISTINCT 26 + col0 DIV - 85 FROM tab2 AS cor0 ---- 26 skipif mysql # not compatible query I rowsort label-2526 SELECT DISTINCT 26 + col0 / - 85 FROM tab2 AS cor0 ---- 26 onlyif mysql # use DIV operator for integer division query I rowsort label-2527 SELECT 76 DIV col0 col2 FROM tab2 ---- 0 0 10 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2527 SELECT 76 / col0 col2 FROM tab2 ---- 0 0 10 query I rowsort SELECT ALL col0 * + 91 + col2 AS col2 FROM tab0 AS cor0 ---- 2217 3186 8181 query I rowsort SELECT ALL col0 * + 43 + - col2 AS col2 FROM tab2 AS cor0 ---- 274 3328 3359 query I rowsort SELECT DISTINCT col0 + - col1 * cor0.col1 - - col1 * + col2 AS col0 FROM tab0 AS cor0 ---- -4534 -730 -9277 query I rowsort SELECT col2 + tab2.col2 * - col1 - col2 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT col0 * col2 * 47 - col2 FROM tab0 ---- 1644 342924 37191 query I rowsort SELECT DISTINCT col0 - tab0.col0 AS col1 FROM tab0 ---- 0 query I rowsort SELECT 45 + col1 FROM tab2 ---- 104 62 76 query I rowsort SELECT + col2 + col2 * - 81 AS col2 FROM tab1 ---- -4320 -4560 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 - col0 col2 FROM tab0 ---- -110 -132 -180 query I rowsort SELECT + tab2.col2 - tab2.col1 * + ( - col0 + col2 ) FROM tab2 ---- -593 3094 735 query I rowsort SELECT - cor0.col0 * col2 + + col0 AS col0 FROM tab1 cor0 ---- -159 -3584 -7600 query I rowsort SELECT DISTINCT - 53 * - col1 * ( col1 ) AS col2 FROM tab0 ---- 391988 438893 498677 query I rowsort SELECT + - 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d onlyif mysql # use DIV operator for integer division query I rowsort label-2541 SELECT DISTINCT + tab1.col2 DIV - 71 AS col2 FROM tab1, tab2 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-2541 SELECT DISTINCT + tab1.col2 / - 71 AS col2 FROM tab1, tab2 AS cor0 ---- -1 0 query I rowsort SELECT ALL col0 + - tab1.col2 * col1 FROM tab1 ---- -1168 -1401 -506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2543 SELECT CAST( + col1 AS SIGNED ) + - col2 FROM tab2 AS cor0 ---- -21 33 4 skipif mysql # not compatible query I rowsort label-2543 SELECT CAST ( + col1 AS INTEGER ) + - col2 FROM tab2 AS cor0 ---- -21 33 4 onlyif mysql # use DIV operator for integer division query I rowsort label-2544 SELECT + col0 DIV + col1 - + col1 * - tab2.col1 FROM tab2 ---- 293 3482 961 skipif mysql # not compatible query I rowsort label-2544 SELECT + col0 / + col1 - + col1 * - tab2.col1 FROM tab2 ---- 293 3482 961 query I rowsort SELECT col1 * ( col1 ) + tab2.col0 * col1 + + ( - col1 ) * + col1 AS col2 FROM tab2 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-2546 SELECT DISTINCT + col0 + + cor0.col2 DIV + 90 AS col1 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-2546 SELECT DISTINCT + col0 + + cor0.col2 / + 90 AS col1 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-2547 SELECT ALL - col1 + - col1 * 79 DIV col1 FROM tab1 cor0 ---- -105 -89 -92 skipif mysql # not compatible query I rowsort label-2547 SELECT ALL - col1 + - col1 * 79 / col1 FROM tab1 cor0 ---- -105 -89 -92 onlyif mysql # use DIV operator for integer division query I rowsort label-2548 SELECT DISTINCT col2 * - col0 + + col1 DIV - col1 FROM tab0 ---- -36 -7299 -793 skipif mysql # not compatible query I rowsort label-2548 SELECT DISTINCT col2 * - col0 + + col1 / - col1 FROM tab0 ---- -36 -7299 -793 query I rowsort SELECT ALL tab2.col2 * - 1 * - col1 FROM tab2 ---- 1534 646 837 query I rowsort SELECT DISTINCT - ( tab1.col2 ) * col0 FROM tab1 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * cor0.col1 col0 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + 35 * tab1.col2 AS col2 FROM tab1 ---- 1890 1995 3360 query I rowsort SELECT tab1.col1 + col2 * 79 FROM tab1 ---- 4292 4513 7597 query I rowsort SELECT ALL - - 27 * col2 - col2 AS col2 FROM tab0 AS cor0 ---- 2132 26 858 query I rowsort SELECT ALL 71 AS col1 FROM tab2 AS cor0 ---- 71 71 71 query I rowsort SELECT DISTINCT + + col0 + col0 * + col2 FROM tab1 AS cor0 ---- 165 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 3 col1 FROM tab1 cor0 ---- 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + col0 * + cor0.col0 col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT - col2 * - cor0.col0 AS col0 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT 24 * - col1 AS col2 FROM tab2 AS cor0 ---- -1416 -408 -744 query I rowsort SELECT ALL + + 43 AS col0 FROM tab1 AS cor0 ---- 43 43 43 query I rowsort SELECT ALL + ( + cor0.col0 ) AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2563 SELECT + CAST( + 16 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 16 16 16 skipif mysql # not compatible query I rowsort label-2563 SELECT + CAST ( + 16 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 16 16 16 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2564 SELECT cor1.col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-2564 SELECT cor1.col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - - ( + col1 ) * col0 + 9 FROM tab2 AS cor0 ---- 1352 226 4611 onlyif mysql # use DIV operator for integer division query I rowsort label-2566 SELECT - cor0.col2 - col0 * col0 DIV + 60 AS col2 FROM tab1 AS cor0 ---- -125 -202 -54 skipif mysql # not compatible query I rowsort label-2566 SELECT - cor0.col2 - col0 * col0 / + 60 AS col2 FROM tab1 AS cor0 ---- -125 -202 -54 query I rowsort SELECT col0 * col0 - col1 AS col1 FROM tab2 AS cor0 ---- 18 6025 6224 onlyif mysql # use DIV operator for integer division query I rowsort label-2568 SELECT - - col1 DIV + cor0.col2 + col2 - col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-2568 SELECT - - col1 / + cor0.col2 + col2 - col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2569 SELECT DISTINCT ( tab1.col1 ) + + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-2569 SELECT DISTINCT ( tab1.col1 ) + + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 ---- NULL query I rowsort SELECT - col1 * + tab2.col2 * + col2 AS col1 FROM tab2 ---- -22599 -24548 -39884 onlyif mysql # use DIV operator for integer division query I rowsort label-2571 SELECT - ( col0 ) DIV col0 AS col1 FROM tab0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2571 SELECT - ( col0 ) / col0 AS col1 FROM tab0 ---- -1 -1 -1 query I rowsort SELECT + 32 * - col2 + - ( 61 ) - + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1356 -932 -971 query I rowsort SELECT cor0.col1 AS col0 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # use DIV operator for integer division query I rowsort label-2574 SELECT - - col0 * - col0 + 27 DIV - cor0.col0 FROM tab2 AS cor0 ---- -52 -6084 -6241 skipif mysql # not compatible query I rowsort label-2574 SELECT - - col0 * - col0 + 27 / - cor0.col0 FROM tab2 AS cor0 ---- -52 -6084 -6241 query I rowsort SELECT ALL + - cor0.col0 + col2 AS col1 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT ALL col2 * + col2 - - ( col0 ) AS col2 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT + col1 + - 19 FROM tab1 AS cor0 ---- -6 -9 7 query I rowsort SELECT ALL - col0 * ( col1 * cor0.col0 ) FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT ALL + col0 * col0 * tab2.col0 AS col1 FROM tab2 ---- 343 474552 493039 query I rowsort SELECT ALL + cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # use DIV operator for integer division query I rowsort label-2581 SELECT col0 * 97 DIV - col1 + col2 FROM tab1 AS cor0 ---- -500 -563 43 skipif mysql # not compatible query I rowsort label-2581 SELECT col0 * 97 / - col1 + col2 FROM tab1 AS cor0 ---- -500 -563 43 query I rowsort SELECT col1 + col0 * + 88 AS col2 FROM tab2 AS cor0 ---- 647 6923 6969 query I rowsort SELECT DISTINCT + col0 * + cor0.col2 + col1 - col0 FROM tab1 cor0 ---- 185 3594 7613 query I rowsort SELECT 39 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2585 SELECT ALL + CAST( NULL AS SIGNED ) + - 25 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2585 SELECT ALL + CAST ( NULL AS INTEGER ) + - 25 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col0 * 79 - col1 FROM tab1 cor0 ---- 211 5046 6307 onlyif mysql # use DIV operator for integer division query I rowsort label-2587 SELECT DISTINCT col0 + col2 DIV col1 AS col1 FROM tab2 AS cor0 ---- 7 78 81 skipif mysql # not compatible query I rowsort label-2587 SELECT DISTINCT col0 + col2 / col1 AS col1 FROM tab2 AS cor0 ---- 7 78 81 query I rowsort SELECT - + col1 + - 67 * - col2 FROM tab1 AS cor0 ---- 3592 3809 6419 query I rowsort SELECT + col1 * ( col1 ) * col0 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT DISTINCT + - 47 AS col1 FROM tab0 AS cor0 ---- -47 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0, tab0 cor0, tab1 cor1 ---- 972 values hashing to 5621675b1bd32b061d284d0444c76601 query I rowsort SELECT DISTINCT col2 * + 29 FROM tab0 ---- 2378 29 957 query I rowsort SELECT - ( 42 ) * - col0 AS col1 FROM tab2 AS cor0 ---- 294 3276 3318 query I rowsort SELECT ( 43 ) AS col2 FROM tab2 AS cor0 ---- 43 43 43 query I rowsort SELECT ( + ( + cor0.col2 ) ) * col2 AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT - col0 * col0 * + col1 AS col1 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT 74 + + col1 * - col1 FROM tab2 ---- -215 -3407 -887 query I rowsort SELECT - 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 520dc393896969e02a72ab6c5d92126b query I rowsort SELECT - 67 * - col1 + - cor0.col0 * 99 FROM tab2 AS cor0 ---- -3769 -6682 1384 query I rowsort SELECT 3 * + col1 FROM tab1 ---- 30 39 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 24 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 797d0f7c145f8ac623924448c714bbcc query I rowsort SELECT DISTINCT + col0 + tab2.col0 + + 90 FROM tab2 ---- 104 246 248 query I rowsort SELECT ALL col1 * col1 * ( - col0 ) + + col0 * - col2 AS col0 FROM tab0 ---- -178296 -329350 -744307 onlyif mysql # use DIV operator for integer division query I rowsort label-2604 SELECT ALL col0 DIV - col1 + col1 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-2604 SELECT ALL col0 / - col1 + col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT + col2 + + 88 FROM tab2 AS cor0 ---- 114 115 126 query I rowsort SELECT + 12 * col0 AS col2 FROM tab0 cor0 ---- 1068 288 420 query I rowsort SELECT DISTINCT col1 - ( col2 ) AS col0 FROM tab2 ---- -21 33 4 query I rowsort SELECT ALL 55 - col2 FROM tab2 ---- 17 28 29 query I rowsort SELECT ALL + + ( + col1 ) * + col0 * + col0 AS col2 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT - 56 - - cor0.col0 AS col1 FROM tab0 AS cor0 ---- -21 -32 33 query I rowsort SELECT 98 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 105 176 177 query I rowsort SELECT + col2 * + col1 + - col0 * ( col1 ) AS col0 FROM tab0 AS cor0 ---- -3298 -637 774 query I rowsort SELECT ALL - + 27 AS col2 FROM tab0 AS cor0 ---- -27 -27 -27 query I rowsort SELECT DISTINCT ( + tab0.col2 * col0 ) - - col1 AS col0 FROM tab0 ---- 132 7389 878 onlyif mysql # use DIV operator for integer division query I rowsort label-2615 SELECT 82 DIV 21 AS col2 FROM tab2 ---- 3 3 3 skipif mysql # not compatible query I rowsort label-2615 SELECT 82 / 21 AS col2 FROM tab2 ---- 3 3 3 query I rowsort SELECT DISTINCT 53 - tab0.col2 * col0 AS col1 FROM tab0 ---- -7245 -739 18 query I rowsort SELECT 69 * col0 + 51 * 37 FROM tab2 ---- 2370 7269 7338 query I rowsort SELECT - cor0.col2 * cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to c52f276f0448e9317aa4a2c462e0bab5 query I rowsort SELECT + col1 * + tab2.col0 + - ( + col0 ) FROM tab2 ---- 1264 210 4524 query I rowsort SELECT ALL + 15 + - col2 FROM tab0 ---- -18 -67 14 query I rowsort SELECT DISTINCT + - col1 - col0 AS col0 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT DISTINCT + ( + col1 ) * ( col0 ) FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT col0 + col0 * 18 * - cor0.col2 FROM tab2 AS cor0 ---- -3395 -36426 -53957 query I rowsort SELECT ALL - col0 * + col0 * 14 + + 36 * - col0 FROM tab0 cor0 ---- -114098 -18410 -8928 query I rowsort SELECT DISTINCT 86 - col0 FROM tab2 AS cor0 ---- 7 79 8 query I rowsort SELECT DISTINCT - + cor0.col2 * + col0 - 61 FROM tab1 AS cor0 ---- -223 -3709 -7741 onlyif mysql # use DIV operator for integer division query I rowsort label-2627 SELECT - + col1 DIV col1 - col0 * - 24 * + col1 AS col0 FROM tab0 AS cor0 ---- 194375 49535 81479 skipif mysql # not compatible query I rowsort label-2627 SELECT - + col1 / col1 - col0 * - 24 * + col1 AS col0 FROM tab0 AS cor0 ---- 194375 49535 81479 query I rowsort SELECT ALL + 53 + + col2 * + col2 AS col2 FROM tab2 cor0 ---- 1497 729 782 query I rowsort SELECT ALL 30 * col1 + ( col0 ) FROM tab2 AS cor0 ---- 1848 589 937 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 5 * cor0.col1 col2 FROM tab0 AS cor0 ---- 430 455 485 query I rowsort SELECT + col2 * + col0 + - 6 FROM tab2 AS cor0 ---- 183 2022 2996 query I rowsort SELECT ALL - col1 * + 78 AS col0 FROM tab1 ---- -1014 -2028 -780 onlyif mysql # use DIV operator for integer division query I rowsort label-2633 SELECT + col2 DIV tab1.col1 - - col1 * col2 FROM tab1 ---- 1255 1406 575 skipif mysql # not compatible query I rowsort label-2633 SELECT + col2 / tab1.col1 - - col1 * col2 FROM tab1 ---- 1255 1406 575 query I rowsort SELECT + - cor0.col1 + ( - col0 ) * col2 FROM tab2 AS cor0 ---- -2087 -220 -3019 onlyif mysql # use DIV operator for integer division query I rowsort label-2635 SELECT - col0 DIV col0 AS col0 FROM tab1 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2635 SELECT - col0 / col0 AS col0 FROM tab1 cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT ( - 73 ) AS col1 FROM tab2 AS cor0 ---- -73 onlyif mysql # use DIV operator for integer division query I rowsort label-2637 SELECT - + col0 * 1 DIV col0 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2637 SELECT - + col0 * 1 / col0 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL - cor0.col1 FROM tab2, tab0 AS cor0 WHERE NULL <= NULL ---- query I rowsort SELECT + + 3 * col2 AS col0 FROM tab2 AS cor0 ---- 114 78 81 query I rowsort SELECT DISTINCT + 68 AS col2 FROM tab1 AS cor0 ---- 68 query I rowsort SELECT DISTINCT ( col2 ) + - cor0.col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT 24 * col1 + col0 FROM tab1 ---- 304 392 627 query I rowsort SELECT ALL - ( - 49 ) * + col2 AS col0 FROM tab2 cor0 ---- 1274 1323 1862 query I rowsort SELECT DISTINCT - ( col1 ) * col1 AS col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT - col0 + 80 FROM tab1 AS cor0 ---- 0 16 77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 47 col2 FROM tab2 AS cor0 ---- 47 47 47 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2647 SELECT CAST( NULL AS SIGNED ) * - col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2647 SELECT CAST ( NULL AS INTEGER ) * - col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + tab1.col2 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-2649 SELECT ALL + col2 + 71 DIV col0 FROM tab0 AS cor0 ---- 3 35 82 skipif mysql # not compatible query I rowsort label-2649 SELECT ALL + col2 + 71 / col0 FROM tab0 AS cor0 ---- 3 35 82 query I rowsort SELECT DISTINCT + + 82 * + col1 AS col2 FROM tab0 cor0 ---- 7052 7462 7954 onlyif mysql # use DIV operator for integer division query I rowsort label-2651 SELECT col1 * ( - col2 ) DIV col1 AS col1 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-2651 SELECT col1 * ( - col2 ) / col1 AS col1 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT 35 * - 72 FROM tab1 cor0 ---- -2520 -2520 -2520 query I rowsort SELECT ALL 45 * + cor0.col2 + col2 FROM tab1 AS cor0 ---- 2484 2622 4416 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col1 * col0 col2 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2655 SELECT ALL - CAST( - col0 AS SIGNED ) * col0 FROM tab0 AS cor0 ---- 1225 576 7921 skipif mysql # not compatible query I rowsort label-2655 SELECT ALL - CAST ( - col0 AS INTEGER ) * col0 FROM tab0 AS cor0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-2656 SELECT cor0.col0 DIV + col0 AS col2 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2656 SELECT cor0.col0 / + col0 AS col2 FROM tab2 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2657 SELECT DISTINCT + col1 + - col1 DIV - col1 AS col0 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-2657 SELECT DISTINCT + col1 + - col1 / - col1 AS col0 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT DISTINCT + cor0.col2 * + cor0.col0 AS col1 FROM tab1, tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT 12 - - cor0.col0 AS col2 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to ba5c0c61c95a71558ba23090196069ec onlyif mysql # use DIV operator for integer division query I rowsort label-2660 SELECT + 52 + + col1 DIV col2 AS col1 FROM tab1 AS cor0 ---- 52 52 52 skipif mysql # not compatible query I rowsort label-2660 SELECT + 52 + + col1 / col2 AS col1 FROM tab1 AS cor0 ---- 52 52 52 onlyif mysql # use DIV operator for integer division query I rowsort label-2661 SELECT DISTINCT + 66 DIV + tab0.col0 AS col1 FROM tab0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-2661 SELECT DISTINCT + 66 / + tab0.col0 AS col1 FROM tab0 ---- 0 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 46 * + col2 col1 FROM tab0 AS cor0 ---- 1518 3772 46 query I rowsort SELECT ALL col1 - ( - ( col2 ) + - 46 ) FROM tab0 AS cor0 ---- 144 165 219 onlyif mysql # use DIV operator for integer division query I rowsort label-2664 SELECT DISTINCT col0 DIV + col1 + col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-2664 SELECT DISTINCT col0 / + col1 + col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL col0 * + ( 63 ) + col2 FROM tab1 cor0 ---- 243 4089 5136 query I rowsort SELECT - col0 * col0 + + col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 onlyif mysql # use DIV operator for integer division query I rowsort label-2667 SELECT col2 * ( col0 ) + + col2 DIV + col2 FROM tab0 AS cor0 ---- 36 7299 793 skipif mysql # not compatible query I rowsort label-2667 SELECT col2 * ( col0 ) + + col2 / + col2 FROM tab0 AS cor0 ---- 36 7299 793 query I rowsort SELECT DISTINCT + col1 * + ( col0 ) + - col2 AS col2 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT col1 + ( col2 ) AS col2 FROM tab2 AS cor0 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-2670 SELECT ALL - - col0 * ( col0 ) + col1 - - col0 DIV + 33 AS col0 FROM tab1 cor0 ---- 35 4107 6415 skipif mysql # not compatible query I rowsort label-2670 SELECT ALL - - col0 * ( col0 ) + col1 - - col0 / + 33 AS col0 FROM tab1 cor0 ---- 35 4107 6415 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * - 65 + 41 col0 FROM tab0 AS cor0 ---- -1519 -2234 -5744 query I rowsort SELECT - col0 + ( + 4 ) * col1 FROM tab0 ---- 275 320 353 query I rowsort SELECT col2 * 67 FROM tab0 ---- 2211 5494 67 query I rowsort SELECT ALL + + 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to cadd876c26338fc58b9297e74fc324d8 query I rowsort SELECT ( + col2 + + ( col0 ) ) FROM tab2 ---- 104 117 34 query I rowsort SELECT DISTINCT + + col0 * 11 FROM tab2 cor0 ---- 77 858 869 query I rowsort SELECT cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT cor0.col1 + col1 AS col1 FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT - - cor0.col2 + + ( - col2 ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + ( - 14 ) FROM tab1 ---- -14 -14 -14 query I rowsort SELECT DISTINCT 38 FROM tab2, tab2 AS cor0 ---- 38 query I rowsort SELECT - col2 * - cor0.col2 + + col0 AS col0 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT DISTINCT - cor0.col2 + cor0.col1 * 11 AS col1 FROM tab1, tab2 cor0 ---- 149 314 623 query I rowsort SELECT ALL ( + col0 ) AS col0 FROM tab2 cor0 ---- 7 78 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2685 SELECT CAST( NULL AS SIGNED ) + - 59 / col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2685 SELECT CAST ( NULL AS INTEGER ) + - 59 / col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( cor0.col1 ) + col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - + ( col0 ) * + col2 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - col0 + + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1612 -725 -844 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2689 SELECT ( col0 ) + CAST( NULL AS SIGNED ) * col0 * col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2689 SELECT ( col0 ) + CAST ( NULL AS INTEGER ) * col0 * col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col1 * col0 + cor0.col1 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT + col2 + + col2 * - col0 * col1 FROM tab2 AS cor0 ---- -119626 -50996 -5832 query I rowsort SELECT DISTINCT + tab1.col0 * col2 AS col0 FROM tab1 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2693 SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2693 SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - - 48 * col2 FROM tab2 AS cor0 ---- 1248 1296 1824 query I rowsort SELECT + 47 + + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 101 104 143 onlyif mysql # use DIV operator for integer division query I rowsort label-2696 SELECT ALL - 66 * col1 + - col1 DIV 89 AS col1 FROM tab0 ---- -5676 -6007 -6403 skipif mysql # not compatible query I rowsort label-2696 SELECT ALL - 66 * col1 + - col1 / 89 AS col1 FROM tab0 ---- -5676 -6007 -6403 query I rowsort SELECT col1 * - cor0.col1 * col2 + col0 FROM tab2 AS cor0 ---- -10903 -25940 -90428 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + col1 ) * - col2 + - cor0.col2 * col1 col1 FROM tab0 AS cor0 ---- -14924 -194 -5676 onlyif mysql # use DIV operator for integer division query I rowsort label-2699 SELECT DISTINCT 69 + cor0.col2 DIV - 98 FROM tab0 AS cor0 ---- 69 skipif mysql # not compatible query I rowsort label-2699 SELECT DISTINCT 69 + cor0.col2 / - 98 FROM tab0 AS cor0 ---- 69 query I rowsort SELECT ALL ( 95 ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e query I rowsort SELECT ALL 9 * + col2 AS col2 FROM tab0 cor0 ---- 297 738 9 query I rowsort SELECT - col2 * + 15 + col2 * col0 AS col1 FROM tab0 AS cor0 ---- 20 297 6068 query I rowsort SELECT ALL + - col1 + col0 * col1 + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 1892 3201 7917 query I rowsort SELECT DISTINCT + col0 + + ( 5 ) AS col2 FROM tab2 AS cor0 ---- 12 83 84 query I rowsort SELECT cor0.col2 * - ( + 53 ) + - col1 AS col1 FROM tab0 AS cor0 ---- -150 -1835 -4437 query I rowsort SELECT ALL col2 * col1 + - 89 * + col2 + - 63 AS col2 FROM tab1 AS cor0 ---- -3465 -4566 -7359 query I rowsort SELECT DISTINCT - + cor0.col1 * + ( 90 ) FROM tab0 cor0 ---- -7740 -8190 -8730 query I rowsort SELECT + col2 * + 74 AS col1 FROM tab0 AS cor0 ---- 2442 6068 74 query I rowsort SELECT DISTINCT cor0.col1 + 28 * - col1 * + col0 AS col0 FROM tab1 AS cor0 ---- -17910 -2158 -29107 query I rowsort SELECT - - cor0.col2 * ( - col2 ) AS col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 onlyif mysql # use DIV operator for integer division query I rowsort label-2711 SELECT ALL + col2 + + col1 DIV + 35 AS col2 FROM tab0 AS cor0 ---- 3 35 84 skipif mysql # not compatible query I rowsort label-2711 SELECT ALL + col2 + + col1 / + 35 AS col2 FROM tab0 AS cor0 ---- 3 35 84 query I rowsort SELECT ALL - col1 + col1 + + 93 FROM tab0 ---- 93 93 93 query I rowsort SELECT ALL + + ( + cor0.col0 ) FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2714 SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * 32 AS col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2714 SELECT DISTINCT - - CAST ( NULL AS REAL ) * 32 AS col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT 34 * 30 - + col0 AS col1 FROM tab1 AS cor0 ---- 1017 940 956 query I rowsort SELECT ALL - - 97 * col0 FROM tab0 AS cor0 ---- 2328 3395 8633 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * cor0.col2 + col1 col0 FROM tab2 AS cor0 ---- -1475 -629 -806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + 87 col1 FROM tab2 AS cor0 ---- 8 80 9 skipif mysql # not compatible query I rowsort SELECT - CAST ( + ( col0 ) AS REAL ) FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL 35 + + col0 AS col1 FROM tab1 AS cor0 ---- 115 38 99 query I rowsort SELECT ALL col0 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT ALL col2 * col0 * cor0.col1 + col0 AS col2 FROM tab1 AS cor0 ---- 36544 4215 99920 query I rowsort SELECT ALL + + 64 + + col2 AS col1 FROM tab2 AS cor0 ---- 102 90 91 query I rowsort SELECT ( + col2 * col2 ) FROM tab1 ---- 2916 3249 9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - + col1 col1 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT col1 * cor0.col2 * - col0 AS col2 FROM tab0 cor0 ---- -3395 -664118 -68112 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2727 SELECT + col1 * CAST( NULL AS SIGNED ) + - col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2727 SELECT + col1 * CAST ( NULL AS INTEGER ) + - col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + cor0.col1 - + 74 FROM tab2 cor0 ---- -15 -43 -57 query I rowsort SELECT DISTINCT - + cor0.col2 - - col0 FROM tab0 AS cor0 ---- -9 34 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2730 SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) * - col0 - col1 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2730 SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) * - col0 - col1 FROM tab2 cor0 ---- NULL query I rowsort SELECT ALL - col2 + ( col2 ) + - col1 AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-2732 SELECT ALL col0 DIV col1 + 8 AS col0 FROM tab0 cor0 ---- 8 8 8 skipif mysql # not compatible query I rowsort label-2732 SELECT ALL col0 / col1 + 8 AS col0 FROM tab0 cor0 ---- 8 8 8 query I rowsort SELECT DISTINCT col1 + + ( + col0 ) AS col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ALL - - col0 * - cor0.col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * + col2 col1 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT + col1 * col1 + col0 * - col1 + - col0 FROM tab2 AS cor0 ---- -1133 -1199 737 query I rowsort SELECT DISTINCT - + col1 - 12 * 40 AS col1 FROM tab2 AS cor0 ---- -497 -511 -539 query I rowsort SELECT col1 - - col2 * - col0 * col0 AS col1 FROM tab1 ---- -233462 -460 -614387 query I rowsort SELECT col2 + tab1.col0 + + ( + col0 ) AS col1 FROM tab1 ---- 185 256 60 query IIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2 ---- 972 values hashing to 8420206d6932c454f05a38de634b3cb5 query I rowsort SELECT 13 + 5 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query I rowsort SELECT ALL + + col0 * col2 - - 19 * col0 * - ( col0 + cor0.col1 ) FROM tab1 AS cor0 ---- -133680 -1491 -86336 query I rowsort SELECT - - col2 + col2 * - col0 AS col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT - cor0.col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1 ---- -7 -78 -79 query I rowsort SELECT ALL + col1 + 1 FROM tab1 ---- 11 14 27 query I rowsort SELECT ALL + 22 * - col0 AS col1 FROM tab0 ---- -1958 -528 -770 query I rowsort SELECT ALL - 46 - - col1 FROM tab2 cor0 ---- -15 -29 13 query I rowsort SELECT ALL - 49 + + col0 FROM tab1 AS cor0 ---- -46 15 31 query I rowsort SELECT DISTINCT + + ( + cor0.col2 ) AS col1 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * col1 + ( cor0.col0 ) col0 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT DISTINCT col2 * - col0 + col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT DISTINCT 4 - col1 * ( col1 + col2 ) AS col2 FROM tab1 cor0 ---- -1413 -2076 -666 query I rowsort SELECT + - 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5a567947d14593676e3825756f8e6130 onlyif mysql # use DIV operator for integer division query I rowsort label-2754 SELECT col0 DIV tab0.col0 + - ( + col1 * col0 ) FROM tab0 ---- -2063 -3394 -8098 skipif mysql # not compatible query I rowsort label-2754 SELECT col0 / tab0.col0 + - ( + col1 * col0 ) FROM tab0 ---- -2063 -3394 -8098 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 67 col2 FROM tab0 AS cor0 ---- 67 67 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - cor0.col0 + col2 col0 FROM tab0 cor0 ---- -34 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-2757 SELECT + cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2757 SELECT + cor0.col2 / col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT ALL - 84 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f query I rowsort SELECT ALL 66 * - col0 AS col0 FROM tab1 ---- -198 -4224 -5280 query I rowsort SELECT col0 + + 69 FROM tab1 AS cor0 ---- 133 149 72 query I rowsort SELECT ALL col1 - 10 AS col2 FROM tab2 AS cor0 ---- 21 49 7 query I rowsort SELECT ALL tab0.col2 * + 5 FROM tab0 ---- 165 410 5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2764 SELECT ALL - col2 * + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 skipif mysql # not compatible query I rowsort label-2764 SELECT ALL - col2 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT - - col2 * + ( col1 ) + col1 FROM tab1 AS cor0 ---- 1261 1430 580 onlyif mysql # use DIV operator for integer division query I rowsort label-2766 SELECT DISTINCT col1 DIV col2 + + col0 * - col1 * col1 FROM tab0 AS cor0 ---- -177502 -329218 -737008 skipif mysql # not compatible query I rowsort label-2766 SELECT DISTINCT col1 / col2 + + col0 * - col1 * col1 FROM tab0 AS cor0 ---- -177502 -329218 -737008 query I rowsort SELECT + 90 * - cor0.col0 AS col1 FROM tab0, tab0 cor0 ---- 9 values hashing to 706fc94ac13483aa92e97935f72089d0 query I rowsort SELECT DISTINCT + 44 FROM tab2, tab1, tab0 AS cor0 ---- 44 query I rowsort SELECT ALL + col0 * 49 + - tab0.col2 AS col2 FROM tab0 ---- 1143 1714 4279 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( 61 ) * + col1 + - ( - col2 ) col1 FROM tab2 ---- 1075 1918 3625 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col0 + col0 col0 FROM tab1 cor0 ---- 1120 704 81 query I rowsort SELECT + - col1 * col2 - col2 FROM tab2 AS cor0 ---- -1560 -684 -864 query I rowsort SELECT DISTINCT - 90 + cor0.col1 * - col1 FROM tab0 AS cor0 ---- -7486 -8371 -9499 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 73 col1 FROM tab0 cor0 ---- -73 -73 -73 query I rowsort SELECT col1 + - col0 * col1 AS col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 onlyif mysql # use DIV operator for integer division query I rowsort label-2776 SELECT DISTINCT - col1 * col2 DIV + 2 AS col0 FROM tab1 AS cor0 ---- -285 -624 -702 skipif mysql # not compatible query I rowsort label-2776 SELECT DISTINCT - col1 * col2 / + 2 AS col0 FROM tab1 AS cor0 ---- -285 -624 -702 query I rowsort SELECT ALL col0 * + col0 + + 2 * col2 AS col1 FROM tab0 AS cor0 ---- 1227 642 8085 query I rowsort SELECT DISTINCT tab2.col0 + + 87 * + col1 FROM tab2 ---- 1558 2704 5211 query I rowsort SELECT 91 * col0 + col1 + col0 AS col0 FROM tab0 ---- 2294 3317 8279 onlyif mysql # use DIV operator for integer division query I rowsort label-2780 SELECT ALL + col1 DIV tab0.col0 + - col2 * - 13 FROM tab0 ---- 1067 15 432 skipif mysql # not compatible query I rowsort label-2780 SELECT ALL + col1 / tab0.col0 + - col2 * - 13 FROM tab0 ---- 1067 15 432 query I rowsort SELECT col1 + - col2 + + col2 FROM tab1 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2782 SELECT CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2782 SELECT CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2783 SELECT - - CAST( NULL AS SIGNED ) * col1 + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2783 SELECT - - CAST ( NULL AS INTEGER ) * col1 + col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2784 SELECT ALL CAST( NULL AS SIGNED ) - - col2 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-2784 SELECT ALL CAST ( NULL AS INTEGER ) - - col2 col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2785 SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2785 SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab0 ---- NULL query I rowsort SELECT DISTINCT - ( - 36 ) FROM tab1 ---- 36 onlyif mysql # use DIV operator for integer division query I rowsort label-2787 SELECT col0 * col1 DIV + col0 + 52 FROM tab2 AS cor0 ---- 111 69 83 skipif mysql # not compatible query I rowsort label-2787 SELECT col0 * col1 / + col0 + 52 FROM tab2 AS cor0 ---- 111 69 83 query I rowsort SELECT 4 * - ( col0 * col2 ) AS col1 FROM tab1 AS cor0 ---- -14592 -30720 -648 query I rowsort SELECT DISTINCT tab1.col2 + tab1.col2 * tab1.col2 AS col2 FROM tab1 ---- 2970 3306 9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + col2 * col1 col0 FROM tab1 ---- 1344 1458 627 query I rowsort SELECT col2 - - col1 * tab2.col1 FROM tab2 ---- 327 3507 988 query I rowsort SELECT 77 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to d7b027bca5d37c67e29013904def8125 query I rowsort SELECT col1 + col0 + col1 AS col2 FROM tab2 ---- 113 196 69 query I rowsort SELECT ALL - cor0.col0 * 66 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 6e79ae544e0c71adfc130f8679335693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 31 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to c3c6f92f0ca72d71793339f88a57e336 query I rowsort SELECT - + col0 + + 65 * col0 AS col2 FROM tab1 cor0 ---- 192 4096 5120 query I rowsort SELECT - col2 * col2 + + col1 FROM tab2 ---- -1427 -617 -698 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 84 + + tab2.col1 col0 FROM tab2 ---- -25 -53 -67 query I rowsort SELECT DISTINCT col0 * tab0.col1 + col2 AS col0 FROM tab0 ---- 2097 3396 8181 onlyif mysql # use DIV operator for integer division query I rowsort label-2800 SELECT ALL ( + col0 ) DIV + ( col2 ) FROM tab1 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-2800 SELECT ALL ( + col0 ) / + ( col2 ) FROM tab1 ---- 0 0 1 query I rowsort SELECT ALL - - col2 * 17 FROM tab0 AS cor0 ---- 1394 17 561 query I rowsort SELECT - col2 * + col2 + col1 + col2 * 32 FROM tab2 AS cor0 ---- -211 166 215 onlyif mysql # use DIV operator for integer division query I rowsort label-2803 SELECT - + col2 DIV ( + 44 ) + col2 * ( - col1 ) AS col1 FROM tab0 AS cor0 ---- -2838 -7463 -97 skipif mysql # not compatible query I rowsort label-2803 SELECT - + col2 / ( + 44 ) + col2 * ( - col1 ) AS col1 FROM tab0 AS cor0 ---- -2838 -7463 -97 query I rowsort SELECT - col1 - ( - col1 ) * - col0 FROM tab1 cor0 ---- -104 -1053 -650 query I rowsort SELECT + col1 + col0 * + col2 FROM tab0 AS cor0 ---- 132 7389 878 skipif mysql # not compatible query I rowsort SELECT + col0 * - CAST ( col1 AS REAL ) + col0 AS col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT - col0 + - 43 + col1 FROM tab1 ---- -110 -20 -97 query I rowsort SELECT ALL + col1 - - col0 * - tab1.col2 AS col1 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT - col1 + ( + col0 ) FROM tab1 ---- -23 54 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 - + col2 col2 FROM tab1 ---- -28 -47 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2811 SELECT DISTINCT + col0 * CAST( NULL AS DECIMAL ) + + col1 - - col1 * + 39 col2 FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2811 SELECT DISTINCT + col0 * CAST ( NULL AS REAL ) + + col1 - - col1 * + 39 col2 FROM tab1 ---- NULL query I rowsort SELECT DISTINCT + cor1.col0 FROM tab0, tab0 cor0, tab1 AS cor1 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-2813 SELECT col1 DIV - 66 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2813 SELECT col1 / - 66 FROM tab1 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2814 SELECT DISTINCT - col1 - + col1 DIV - col0 AS col1 FROM tab1 ---- -10 -13 -18 skipif mysql # not compatible query I rowsort label-2814 SELECT DISTINCT - col1 - + col1 / - col0 AS col1 FROM tab1 ---- -10 -13 -18 query I rowsort SELECT ALL - col0 - - 63 FROM tab1 ---- -1 -17 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2816 SELECT col1 * CAST( col1 * + col0 AS SIGNED ) + col2 * col0 + cor0.col2 FROM tab1 AS cor0 ---- 10105 21296 2244 skipif mysql # not compatible query I rowsort label-2816 SELECT col1 * CAST ( col1 * + col0 AS INTEGER ) + col2 * col0 + cor0.col2 FROM tab1 AS cor0 ---- 10105 21296 2244 query I rowsort SELECT ALL + col2 - col1 * tab0.col0 AS col2 FROM tab0 ---- -2031 -3394 -8017 onlyif mysql # use DIV operator for integer division query I rowsort label-2818 SELECT + - col1 + - cor0.col1 * cor0.col2 DIV - col0 + + col0 AS col0 FROM tab1 cor0 ---- 445 62 82 skipif mysql # not compatible query I rowsort label-2818 SELECT + - col1 + - cor0.col1 * cor0.col2 / - col0 + + col0 AS col0 FROM tab1 cor0 ---- 445 62 82 query I rowsort SELECT DISTINCT + 52 + ( col1 ) FROM tab1 AS cor0 ---- 62 65 78 query I rowsort SELECT DISTINCT - + col2 * + col0 AS col1 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT 55 * col0 + - col0 AS col1 FROM tab0 AS cor0 ---- 1296 1890 4806 query I rowsort SELECT + - 70 * - 0 + + col2 + - col1 FROM tab1 AS cor0 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-2823 SELECT - cor0.col1 DIV - cor0.col2 col1 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2823 SELECT - cor0.col1 / - cor0.col2 col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + 19 + col2 * - col2 + 99 FROM tab2 AS cor0 ---- -1326 -558 -611 query I rowsort SELECT - + ( + col0 ) + - col2 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT - col1 * - col0 * col2 + 85 - cor0.col0 FROM tab1 cor0 ---- 36501 4294 99845 query I rowsort SELECT ALL + col2 * col0 * col2 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT DISTINCT - - cor0.col1 * col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT col1 * col2 + - col0 * + col1 FROM tab1 cor0 ---- -70 1326 208 query I rowsort SELECT ALL ( - ( - col0 ) ) + + 19 FROM tab0 AS cor0 ---- 108 43 54 query I rowsort SELECT - 96 * - col1 FROM tab2 AS cor0 ---- 1632 2976 5664 query I rowsort SELECT - cor0.col1 + col2 * 68 * 12 FROM tab2 AS cor0 ---- 21157 22001 30991 query I rowsort SELECT + 32 + + col0 FROM tab0 AS cor0 ---- 121 56 67 query I rowsort SELECT - col0 * cor0.col2 + + col0 FROM tab1 cor0 ---- -159 -3584 -7600 query I rowsort SELECT DISTINCT - - col0 + col2 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT ALL col1 * - col0 + 35 FROM tab2 AS cor0 ---- -1308 -182 -4567 query I rowsort SELECT ALL + + 10 + col2 FROM tab0 AS cor0 ---- 11 43 92 query I rowsort SELECT + + col1 + - col1 * - col0 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT DISTINCT + cor0.col2 * 25 + + col0 FROM tab1 AS cor0 ---- 1353 1489 2480 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab1.col0 * col2 col2 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT ALL + + col1 + + ( col1 ) FROM tab1 AS cor0 ---- 20 26 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + col2 * + col0 col0 FROM tab0 AS cor0 ---- 34 7216 759 onlyif mysql # use DIV operator for integer division query I rowsort label-2843 SELECT DISTINCT + 75 DIV - col1 AS col1 FROM tab1 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-2843 SELECT DISTINCT + 75 / - col1 AS col1 FROM tab1 ---- -2 -5 -7 query I rowsort SELECT - ( + col2 * col0 ) FROM tab1 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 1 - col1 col2 FROM tab0 ---- -85 -90 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-2846 SELECT + 53 DIV col1 + col2 FROM tab1 ---- 100 56 62 skipif mysql # not compatible query I rowsort label-2846 SELECT + 53 / col1 + col2 FROM tab1 ---- 100 56 62 query I rowsort SELECT col1 + + col1 * - col1 AS col1 FROM tab1 ---- -156 -650 -90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * col0 * ( + tab1.col2 ) col1 FROM tab1 ---- 233472 486 614400 query I rowsort SELECT ALL - 24 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to f2e40f6e5cdbc2877843191cb261975f query I rowsort SELECT + 16 + - col0 FROM tab0 AS cor0 ---- -19 -73 -8 query I rowsort SELECT ALL - col1 * cor0.col1 + ( - col1 ) FROM tab2 AS cor0 ---- -306 -3540 -992 query I rowsort SELECT - + 37 AS col2 FROM tab0 cor0 ---- -37 -37 -37 query I rowsort SELECT DISTINCT - - 64 + col1 FROM tab2 cor0 ---- 123 81 95 query I rowsort SELECT + cor0.col0 * - 95 FROM tab2 AS cor0 ---- -665 -7410 -7505 query I rowsort SELECT ALL - + col2 * 82 AS col0 FROM tab2 AS cor0 ---- -2132 -2214 -3116 onlyif mysql # use DIV operator for integer division query I rowsort label-2856 SELECT DISTINCT + - col1 DIV - col0 + col1 FROM tab1 cor0 ---- 10 13 34 skipif mysql # not compatible query I rowsort label-2856 SELECT DISTINCT + - col1 / - col0 + col1 FROM tab1 cor0 ---- 10 13 34 query I rowsort SELECT DISTINCT col0 * 41 FROM tab0 AS cor0 ---- 1435 3649 984 query I rowsort SELECT - 24 * + tab0.col1 FROM tab0 ---- -2064 -2184 -2328 query I rowsort SELECT ALL - 23 AS col0 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5 onlyif mysql # use DIV operator for integer division query I rowsort label-2860 SELECT - col0 DIV + 1 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-2860 SELECT - col0 / + 1 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT ALL 12 + 64 FROM tab1 AS cor0 ---- 76 76 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col1 ) col0 FROM tab2 cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT col2 - + col1 * + col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( col2 AS REAL ) * + col0 AS col2 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + - col2 * + 4 AS col2 FROM tab0 AS cor0 ---- -132 -328 -4 query I rowsort SELECT + col2 + - col2 * col2 AS col0 FROM tab1 AS cor0 ---- -2862 -3192 -9120 query I rowsort SELECT 25 - - 32 AS col1 FROM tab1 AS cor0 ---- 57 57 57 query I rowsort SELECT ALL - ( - 30 ) + - col1 FROM tab1 AS cor0 ---- 17 20 4 query I rowsort SELECT DISTINCT 72 + ( col2 ) * + 24 FROM tab1 AS cor0 ---- 1368 1440 2376 query I rowsort SELECT ALL + 56 * ( col2 ) * + 9 + col0 AS col0 FROM tab1 cor0 ---- 27219 28792 48464 query I rowsort SELECT ALL - cor0.col0 + 38 * col1 AS col2 FROM tab1 AS cor0 ---- 316 414 985 query I rowsort SELECT - - ( 37 ) AS col1 FROM tab1 AS cor0 ---- 37 37 37 query I rowsort SELECT - col0 + - col2 * col0 AS col1 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT DISTINCT + col1 * col0 + + cor0.col0 * 56 + col0 FROM tab2 AS cor0 ---- 5846 616 9048 query I rowsort SELECT ( + cor0.col1 ) + col0 * col0 FROM tab1 cor0 ---- 35 4106 6413 onlyif mysql # use DIV operator for integer division query I rowsort label-2876 SELECT ALL - + col2 + - cor0.col0 DIV col2 FROM tab0 AS cor0 ---- -33 -36 -83 skipif mysql # not compatible query I rowsort label-2876 SELECT ALL - + col2 + - cor0.col0 / col2 FROM tab0 AS cor0 ---- -33 -36 -83 query I rowsort SELECT ALL - tab0.col0 * col1 - col1 AS col0 FROM tab0 ---- -2150 -3492 -8190 query I rowsort SELECT ALL + col0 + + ( col0 ) * col1 + - col0 FROM tab1 AS cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 21 * - col1 + - col1 * 46 col0 FROM tab0 AS cor0 ---- -2150 -2275 -2425 onlyif mysql # use DIV operator for integer division query I rowsort label-2880 SELECT DISTINCT + 43 DIV col1 AS col2 FROM tab1 AS cor0 ---- 1 3 4 skipif mysql # not compatible query I rowsort label-2880 SELECT DISTINCT + 43 / col1 AS col2 FROM tab1 AS cor0 ---- 1 3 4 query I rowsort SELECT + 78 * + col0 + - cor0.col0 - + col0 AS col0 FROM tab0 AS cor0 ---- 1824 2660 6764 query I rowsort SELECT 97 + + cor0.col0 - col2 AS col2 FROM tab1 AS cor0 ---- 104 46 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * - col1 + col1 col2 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT DISTINCT col2 * + 74 AS col0 FROM tab1 AS cor0 ---- 3996 4218 7104 query I rowsort SELECT - - col1 * - col2 + - col0 FROM tab1 AS cor0 ---- -1328 -1407 -634 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 8 col0 FROM tab1 AS cor0 ---- 8 8 8 query I rowsort SELECT col2 * + col0 * cor0.col2 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT col0 - col0 * - ( col0 ) FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT 11 * col1 + 9 * + col0 AS col1 FROM tab0 cor0 ---- 1162 1382 1802 query I rowsort SELECT ( + 87 ) + col2 AS col1 FROM tab2 ---- 113 114 125 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2891 SELECT CAST( NULL AS SIGNED ) * - 33 + - tab1.col2 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2891 SELECT CAST ( NULL AS INTEGER ) * - 33 + - tab1.col2 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT 6 + + tab0.col2 FROM tab0 ---- 39 7 88 query I rowsort SELECT ALL + + 43 * + cor0.col0 FROM tab0 AS cor0 ---- 1032 1505 3827 query I rowsort SELECT + col2 * col0 + - ( - col2 ) * col1 AS col2 FROM tab1 AS cor0 ---- 1566 4218 8928 query I rowsort SELECT ( - tab1.col1 ) * + col2 FROM tab1 ---- -1248 -1404 -570 onlyif mysql # use DIV operator for integer division query I rowsort label-2896 SELECT col2 * 2 + tab0.col0 DIV - col2 AS col0 FROM tab0 ---- -33 163 66 skipif mysql # not compatible query I rowsort label-2896 SELECT col2 * 2 + tab0.col0 / - col2 AS col0 FROM tab0 ---- -33 163 66 query I rowsort SELECT + col1 * + col1 * + ( col0 * col2 ) + 68 * col0 AS col1 FROM tab0 ---- 331695 5859264 60440790 query I rowsort SELECT ALL + col0 * 36 * col2 FROM tab2 ---- 108072 6804 73008 query I rowsort SELECT - + col1 * ( - col0 ) FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - 53 + cor0.col1 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 1eb6a55287d084b6067f8c640a7f53e5 query I rowsort SELECT ALL + ( col0 + col2 ) * col1 FROM tab2 ---- 1054 1989 6136 onlyif mysql # use DIV operator for integer division query I rowsort label-2902 SELECT DISTINCT + cor0.col2 + 47 * - cor0.col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0 ---- -20 -21 -9 skipif mysql # not compatible query I rowsort label-2902 SELECT DISTINCT + cor0.col2 + 47 * - cor0.col0 / cor0.col0 AS col0 FROM tab2 AS cor0 ---- -20 -21 -9 query I rowsort SELECT DISTINCT + col2 + + col2 * col0 AS col1 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT ALL 56 * col1 FROM tab0 ---- 4816 5096 5432 onlyif mysql # use DIV operator for integer division query I rowsort label-2905 SELECT - col1 * col0 DIV - col1 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-2905 SELECT - col1 * col0 / - col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT - ( - col2 ) * col0 AS col0 FROM tab0 ---- 35 7298 792 query I rowsort SELECT - ( cor0.col0 ) + - col2 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT DISTINCT - 14 + col0 FROM tab0 AS cor0 ---- 10 21 75 query I rowsort SELECT + col0 * + 96 + + 65 FROM tab0 AS cor0 ---- 2369 3425 8609 query I rowsort SELECT col0 + - col2 * - 98 * col1 AS col1 FROM tab0 ---- 278148 731365 9541 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2, tab1 cor3 ---- 3645 values hashing to ca91d1f523a87017f672304548e91a77 query I rowsort SELECT + col2 + col1 + - 98 AS col2 FROM tab0 AS cor0 ---- 0 21 75 query I rowsort SELECT - - col1 + - 51 + col2 FROM tab0 AS cor0 ---- 122 47 68 query I rowsort SELECT + cor0.col1 * + col0 + + col0 * col0 * 44 AS col2 FROM tab2 cor0 ---- 2373 272298 275947 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2915 SELECT + col1 + - CAST( NULL AS SIGNED ) - 67 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2915 SELECT + col1 + - CAST ( NULL AS INTEGER ) - 67 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 + - col1 * col2 + ( + 89 * col0 ) FROM tab1 cor0 ---- -1134 5190 5952 query I rowsort SELECT DISTINCT + col2 * col2 + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 2970 3306 9312 onlyif mysql # use DIV operator for integer division query I rowsort label-2918 SELECT + CAST( col1 AS SIGNED ) + + col0 DIV col0 col0 FROM tab1 AS cor0 ---- 11 14 27 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2918 SELECT + CAST ( col1 AS INTEGER ) + + col0 / col0 col0 FROM tab1 AS cor0 ---- 11 14 27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 65 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 8bef2ea1f05f3514633f851312bdd805 query I rowsort SELECT - col0 + col0 * - 87 FROM tab0 AS cor0 ---- -2112 -3080 -7832 query I rowsort SELECT ALL - tab2.col0 + col1 * + col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 * col0 ) ---- query I rowsort SELECT DISTINCT col2 * col2 + - col2 FROM tab1 WHERE NOT + col2 > NULL ---- query I rowsort SELECT - - col0 * col2 * - col2 AS col0 FROM tab1 AS cor0 ---- -207936 -737280 -8748 query I rowsort SELECT DISTINCT - tab1.col1 FROM tab1, tab0, tab2 AS cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * - col0 col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2926 SELECT + - col1 * CAST( NULL AS SIGNED ) + + col1 col0 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2926 SELECT + - col1 * CAST ( NULL AS INTEGER ) + + col1 col0 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 + - col1 * col1 AS col0 FROM tab0 ---- -7363 -8199 -9408 query I rowsort SELECT + + 9 * - col2 AS col2 FROM tab1 AS cor0 ---- -486 -513 -864 onlyif mysql # use DIV operator for integer division query I rowsort label-2929 SELECT ALL col2 DIV + tab0.col2 AS col0 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2929 SELECT ALL col2 / + tab0.col2 AS col0 FROM tab0 ---- 1 1 1 query I rowsort SELECT 50 * + 79 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 1f9ec43222a485488dfab5c31a100035 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2931 SELECT DISTINCT + col0 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 cor0 ---- -23 54 67 skipif mysql # not compatible query I rowsort label-2931 SELECT DISTINCT + col0 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT ( 16 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 16 onlyif mysql # use DIV operator for integer division query I rowsort label-2933 SELECT col1 DIV + col1 - 80 AS col0 FROM tab0 ---- -79 -79 -79 skipif mysql # not compatible query I rowsort label-2933 SELECT col1 / + col1 - 80 AS col0 FROM tab0 ---- -79 -79 -79 query I rowsort SELECT + tab2.col0 + col1 AS col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL + col0 - tab0.col1 * + ( col1 ) FROM tab0 ---- -7372 -8192 -9374 onlyif mysql # use DIV operator for integer division query I rowsort label-2936 SELECT col1 DIV - 68 + - col2 FROM tab1 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-2936 SELECT col1 / - 68 + - col2 FROM tab1 ---- -54 -57 -96 query I rowsort SELECT ALL col2 * col2 - - col2 AS col0 FROM tab1 ---- 2970 3306 9312 query I rowsort SELECT ALL + 31 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to c3c6f92f0ca72d71793339f88a57e336 query I rowsort SELECT + col2 * ( col1 ) FROM tab0 ---- 2838 7462 97 query I rowsort SELECT + 91 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + col1 + + col2 col2 FROM tab2 ---- 144 72 89 query I rowsort SELECT ALL - 89 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 924a74d31360fa4301c953b423a4710e query I rowsort SELECT ALL - cor2.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to c569638e8a09ff819458d62ddbde994c query I rowsort SELECT DISTINCT col0 + 76 AS col1 FROM tab0 AS cor0 ---- 100 111 165 query I rowsort SELECT ALL col2 + - ( tab1.col1 ) * col1 AS col1 FROM tab1 ---- -43 -622 -73 query I rowsort SELECT col1 * - col0 + - 11 + - tab0.col1 AS col1 FROM tab0 ---- -2161 -3503 -8201 query I rowsort SELECT - 26 + tab1.col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 20cf7db9645cb08dd9248b9166f184b0 query I rowsort SELECT ( col2 + + col0 ) * - col2 AS col2 FROM tab0 ---- -14022 -1881 -36 query I rowsort SELECT DISTINCT col2 + 77 + + col0 AS col0 FROM tab1 ---- 134 198 253 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2950 SELECT DISTINCT + CAST( col2 AS SIGNED ) * col0 + + col0 * 56 FROM tab2 ---- 581 6396 7426 skipif mysql # not compatible query I rowsort label-2950 SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col0 + + col0 * 56 FROM tab2 ---- 581 6396 7426 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2951 SELECT DISTINCT + CAST( + tab1.col0 + col0 AS SIGNED ) * - ( 93 ) col2 FROM tab1 ---- -11904 -14880 -558 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2951 SELECT DISTINCT + CAST ( + tab1.col0 + col0 AS INTEGER ) * - ( 93 ) col2 FROM tab1 ---- -11904 -14880 -558 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + col2 * - col0 ) col2 FROM tab1 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2953 SELECT CAST( col1 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0 ---- 137 38 96 skipif mysql # not compatible query I rowsort label-2953 SELECT CAST ( col1 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-2954 SELECT - ( col2 ) DIV + col2 + ( - col0 ) DIV col0 AS col2 FROM tab1 AS cor0 ---- -2 -2 -2 skipif mysql # not compatible query I rowsort label-2954 SELECT - ( col2 ) / + col2 + ( - col0 ) / col0 AS col2 FROM tab1 AS cor0 ---- -2 -2 -2 onlyif mysql # use DIV operator for integer division query I rowsort label-2955 SELECT DISTINCT col0 DIV + col0 + tab1.col1 AS col0 FROM tab1 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-2955 SELECT DISTINCT col0 / + col0 + tab1.col1 AS col0 FROM tab1 ---- 11 14 27 onlyif mysql # use DIV operator for integer division query I rowsort label-2956 SELECT 62 + 47 DIV col1 FROM tab0 ---- 62 62 62 skipif mysql # not compatible query I rowsort label-2956 SELECT 62 + 47 / col1 FROM tab0 ---- 62 62 62 query I rowsort SELECT 88 * + col1 FROM tab2 AS cor0 ---- 1496 2728 5192 query I rowsort SELECT - col0 + col2 * - col0 AS col2 FROM tab0 cor0 ---- -70 -7387 -816 query I rowsort SELECT DISTINCT + - col2 + col0 + + ( - 47 ) FROM tab2 AS cor0 ---- -6 -67 5 query I rowsort SELECT ALL - col1 - + col1 FROM tab2 cor0 ---- -118 -34 -62 query I rowsort SELECT + ( col2 ) * + 12 FROM tab2 AS cor0 ---- 312 324 456 query I rowsort SELECT DISTINCT - col1 * col0 * col2 AS col1 FROM tab0 AS cor0 ---- -3395 -664118 -68112 onlyif mysql # use DIV operator for integer division query I rowsort label-2963 SELECT 0 * col1 DIV + col0 col1 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2963 SELECT 0 * col1 / + col0 col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + 0 - col2 * + col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT col1 * + col0 AS col0 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT + 91 AS col1 FROM tab0 cor0 ---- 91 91 91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * + col2 - - col2 col2 FROM tab0 AS cor0 ---- 1122 2 6806 onlyif mysql # use DIV operator for integer division query I rowsort label-2968 SELECT - col2 + - 11 DIV - col0 + + col2 AS col1 FROM tab1 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-2968 SELECT - col2 + - 11 / - col0 + + col2 AS col1 FROM tab1 ---- 0 0 3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2969 SELECT ALL + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2969 SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col0 + tab2.col1 * - 74 * col2 FROM tab2 ---- -113438 -47725 -61931 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col2 + CAST ( col1 + col0 AS REAL ) AS col1 FROM tab0 ---- 131 77 98 query I rowsort SELECT + col2 * + col1 * - col1 AS col1 FROM tab1 ---- -16224 -36504 -5700 query I rowsort SELECT DISTINCT col0 + + 56 AS col0 FROM tab1 ---- 120 136 59 query I rowsort SELECT ALL col2 + + 38 FROM tab2 ---- 64 65 76 query I rowsort SELECT + 22 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 7dda382e7c08428abac8600fd696eb3e query I rowsort SELECT ALL + col0 * - 44 + 64 + col1 * + col0 AS col1 FROM tab1 ---- -2112 -2416 10 query I rowsort SELECT - 50 AS col1 FROM tab0, tab2 cor0 ---- 9 values hashing to c7432a968c8352c12996dfa54dd4b9e8 query I rowsort SELECT - col1 * col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -1136 -132 -697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - ( col0 ) * col1 col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * - col0 + col2 * col2 col2 FROM tab1 AS cor0 ---- 2609 2838 8176 query I rowsort SELECT ALL - col1 * ( + col2 ) FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT ALL col2 - - col2 AS col0 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT ALL col0 + col0 * col2 AS col0 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT DISTINCT - col1 * col1 + col0 AS col0 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT DISTINCT - - 13 * + cor0.col2 - + col0 FROM tab2 AS cor0 ---- 260 344 415 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2986 SELECT + CAST( NULL AS DECIMAL ) + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2986 SELECT + CAST ( NULL AS REAL ) + col0 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2987 SELECT ALL - col1 + - 63 DIV col1 FROM tab0 cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-2987 SELECT ALL - col1 + - 63 / col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT + col1 * + col1 + col2 FROM tab2 AS cor0 ---- 327 3507 988 query I rowsort SELECT + 79 * + col2 AS col1 FROM tab0 cor0 ---- 2607 6478 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 + + col2 col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - 86 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da query I rowsort SELECT + col2 + + cor0.col1 * + col0 * - col1 AS col1 FROM tab0 AS cor0 ---- -177471 -329314 -736927 query I rowsort SELECT ALL - - 42 + - col2 AS col0 FROM tab1 AS cor0 ---- -12 -15 -54 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 79 col0 FROM tab1 AS cor0 ---- 79 query I rowsort SELECT DISTINCT 20 * + col2 FROM tab1 AS cor0 ---- 1080 1140 1920 query I rowsort SELECT DISTINCT 86 + + col0 * 39 FROM tab0 AS cor0 ---- 1022 1451 3557 query I rowsort SELECT DISTINCT - - col0 * cor0.col2 AS col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - 71 + col2 AS col2 FROM tab0 AS cor0 ---- -38 -70 11 onlyif mysql # use DIV operator for integer division query I rowsort label-2999 SELECT - - col1 + col1 DIV 35 + col1 * - col0 FROM tab2 AS cor0 ---- -1326 -186 -4542 skipif mysql # not compatible query I rowsort label-2999 SELECT - - col1 + col1 / 35 + col1 * - col0 FROM tab2 AS cor0 ---- -1326 -186 -4542 query I rowsort SELECT cor0.col2 * 91 + + col1 - - col0 FROM tab1 AS cor0 ---- 4943 5261 8829 query I rowsort SELECT DISTINCT - - col1 * col1 * - cor0.col2 FROM tab0 AS cor0 ---- -244068 -679042 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-3002 SELECT DISTINCT - col0 DIV 78 + col0 * - col2 + col1 DIV col0 AS col2 FROM tab2 AS cor0 ---- -185 -2029 -3003 skipif mysql # not compatible query I rowsort label-3002 SELECT DISTINCT - col0 / 78 + col0 * - col2 + col1 / col0 AS col2 FROM tab2 AS cor0 ---- -185 -2029 -3003 query I rowsort SELECT - cor0.col2 + ( col2 ) * - col2 FROM tab2 AS cor0 ---- -1482 -702 -756 query I rowsort SELECT ALL col1 * + 5 FROM tab2 cor0 ---- 155 295 85 query I rowsort SELECT + col2 + - ( 3 ) - col1 AS col1 FROM tab2 AS cor0 ---- -36 -7 18 query I rowsort SELECT ALL + col0 * - ( - col1 ) AS col2 FROM tab1 AS cor0 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-3007 SELECT DISTINCT + - cor0.col1 DIV 73 AS col1 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-3007 SELECT DISTINCT + - cor0.col1 / 73 AS col1 FROM tab1 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 95 col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 query I rowsort SELECT - 14 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to d321461994ba49c3a70fa6373032fc94 query I rowsort SELECT - col1 - col2 * col1 * col0 AS col0 FROM tab2 AS cor0 ---- -119711 -51051 -5890 query I rowsort SELECT DISTINCT - col2 + + cor0.col0 * cor0.col2 + + col1 FROM tab2 AS cor0 ---- 193 2061 2981 query I rowsort SELECT - cor1.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT ALL + cor0.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT ALL + col2 + ( 96 ) AS col2 FROM tab1 cor0 ---- 150 153 192 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT DISTINCT - cor0.col1 + CAST ( - col2 + + col2 AS REAL ) col1 FROM tab2 AS cor0 ---- -17 -31 -59 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab2 cor3 ---- 3645 values hashing to f7d7f8e55c3be4391aa225222961d676 query I rowsort SELECT ALL - 68 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5febf382d36d6e0191889c41b928786f query I rowsort SELECT - + col1 - + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT + - 72 * - 54 + - col2 FROM tab0 AS cor0 ---- 3806 3855 3887 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3020 SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3020 SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- NULL query I rowsort SELECT DISTINCT + col2 - col0 * col1 AS col0 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL - 60 + col1 * - cor0.col1 FROM tab1 AS cor0 ---- -160 -229 -736 query I rowsort SELECT + 88 + col0 FROM tab0 ---- 112 123 177 query I rowsort SELECT ALL - 35 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 6d967b3bac2e01a0318865f682f9a97b query I rowsort SELECT ALL + col2 * + col0 - col0 * - 5 FROM tab2 AS cor0 ---- 224 2418 3397 query I rowsort SELECT DISTINCT - + col1 + + col0 * ( ( col2 ) ) AS col1 FROM tab2 cor0 ---- 158 1969 2985 query I rowsort SELECT - 31 AS col1 FROM tab0, tab2, tab1 cor0 ---- 27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( cor0.col1 ) * - col0 col0 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 68 * col0 col0 FROM tab1 AS cor0 ---- -204 -4352 -5440 query I rowsort SELECT - ( col1 ) * - col2 AS col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT cor0.col1 + col0 + 29 FROM tab1 AS cor0 ---- 103 122 58 query I rowsort SELECT DISTINCT tab0.col0 * + col0 - col1 FROM tab0 ---- 1128 490 7830 query I rowsort SELECT - col1 * - col0 + - 32 - col0 AS col1 FROM tab2 ---- 1232 178 4492 query I rowsort SELECT DISTINCT + tab1.col0 - tab1.col0 FROM tab1 ---- 0 query I rowsort SELECT 49 + + col2 * col1 AS col1 FROM tab2 AS cor0 ---- 1583 695 886 query I rowsort SELECT ALL 73 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 3933a906d17a820ccf95467e2206df8f query I rowsort SELECT - col1 * - col1 + 94 FROM tab1 AS cor0 ---- 194 263 770 query I rowsort SELECT + col1 * + 41 + 79 AS col1 FROM tab0 AS cor0 ---- 3605 3810 4056 query I rowsort SELECT + col0 * + 91 + + col1 * - col1 AS col2 FROM tab2 cor0 ---- -324 3617 6900 query I rowsort SELECT ALL + + col2 * + col1 - col2 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT - cor1.col0 + - 36 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 09e0c9c574cd20b323411b5229062789 onlyif mysql # use DIV operator for integer division query I rowsort label-3042 SELECT DISTINCT + 89 DIV col0 FROM tab1 cor0 ---- 1 29 skipif mysql # not compatible query I rowsort label-3042 SELECT DISTINCT + 89 / col0 FROM tab1 cor0 ---- 1 29 query I rowsort SELECT DISTINCT + 89 + + 13 * - col0 AS col2 FROM tab2 AS cor0 ---- -2 -925 -938 query I rowsort SELECT ALL - col0 * 95 * col2 AS col2 FROM tab0 cor0 ---- -3325 -693310 -75240 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3045 SELECT ALL - + col1 * - cor0.col0 + CAST( + col2 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0 ---- 240 4288 8720 skipif mysql # not compatible query I rowsort label-3045 SELECT ALL - + col1 * - cor0.col0 + CAST ( + col2 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0 ---- 240 4288 8720 onlyif mysql # use DIV operator for integer division query I rowsort label-3046 SELECT DISTINCT 61 + col0 DIV + ( col1 + + col2 ) AS col2 FROM tab0 AS cor0 ---- 61 skipif mysql # not compatible query I rowsort label-3046 SELECT DISTINCT 61 + col0 / + ( col1 + + col2 ) AS col2 FROM tab0 AS cor0 ---- 61 query I rowsort SELECT DISTINCT + 91 + cor0.col1 FROM tab1 AS cor0 ---- 101 104 117 query I rowsort SELECT 16 + - col1 AS col1 FROM tab2 AS cor0 ---- -1 -15 -43 query I rowsort SELECT ALL - + col2 + + col2 * + col1 AS col0 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 onlyif mysql # use DIV operator for integer division query I rowsort label-3051 SELECT ALL - ( + col0 ) DIV col2 FROM tab1 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-3051 SELECT ALL - ( + col0 ) / col2 FROM tab1 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3052 SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-3052 SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT + - cor0.col1 * cor0.col0 + ( col0 ) FROM tab0 AS cor0 ---- -2040 -3360 -8010 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3054 SELECT ALL col2 * + CAST( NULL AS SIGNED ) + col0 + - col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3054 SELECT ALL col2 * + CAST ( NULL AS INTEGER ) + col0 + - col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + 46 + col2 * cor0.col1 col0 FROM tab2 AS cor0 ---- 1159 4280 5122 query I rowsort SELECT col0 + - col0 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL - tab2.col1 * + tab2.col1 FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT - tab2.col1 * + col0 - 81 * + col2 AS col0 FROM tab2 ---- -2404 -4421 -6708 onlyif mysql # use DIV operator for integer division query I rowsort label-3059 SELECT - cor0.col2 DIV col2 + + col1 AS col0 FROM tab0 AS cor0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-3059 SELECT - cor0.col2 / col2 + + col1 AS col0 FROM tab0 AS cor0 ---- 85 90 96 onlyif mysql # use DIV operator for integer division query I rowsort label-3060 SELECT ALL cor0.col1 * 37 DIV - col1 + - cor0.col1 * + cor0.col0 * col1 FROM tab0 AS cor0 ---- -177541 -329352 -737046 skipif mysql # not compatible query I rowsort label-3060 SELECT ALL cor0.col1 * 37 / - col1 + - cor0.col1 * + cor0.col0 * col1 FROM tab0 AS cor0 ---- -177541 -329352 -737046 query I rowsort SELECT DISTINCT - col0 + col2 - cor0.col0 FROM tab0 AS cor0 ---- -15 -69 -96 query I rowsort SELECT + col2 + - 53 AS col1 FROM tab0 AS cor0 ---- -20 -52 29 query I rowsort SELECT col0 * col0 + + col0 AS col2 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT ALL - + 52 * col0 + - col1 FROM tab0 AS cor0 ---- -1334 -1917 -4719 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 11 - col2 col0 FROM tab2 AS cor0 ---- -37 -38 -49 query I rowsort SELECT ALL col1 * cor0.col1 * col0 + 28 AS col2 FROM tab1 cor0 ---- 13548 2056 6428 query I rowsort SELECT DISTINCT - + ( + col0 ) AS col2 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL - 31 * col2 + - col2 FROM tab1 AS cor0 ---- -1728 -1824 -3072 query I rowsort SELECT - col1 * cor0.col0 + - col2 AS col0 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT - col0 * - col1 - - col1 FROM tab1 ---- 104 1053 650 query I rowsort SELECT col2 + col2 * col1 AS col2 FROM tab2 ---- 1560 684 864 onlyif mysql # use DIV operator for integer division query I rowsort label-3072 SELECT DISTINCT + tab1.col2 DIV col1 + - col1 FROM tab1 ---- -24 -5 -6 skipif mysql # not compatible query I rowsort label-3072 SELECT DISTINCT + tab1.col2 / col1 + - col1 FROM tab1 ---- -24 -5 -6 query I rowsort SELECT + ( col1 ) + col0 + col1 AS col2 FROM tab2 ---- 113 196 69 query I rowsort SELECT - col2 * - col2 * col1 + - col0 FROM tab2 AS cor0 ---- 22592 24469 39806 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3075 SELECT - col0 + + col1 + CAST( col2 AS SIGNED ) FROM tab2 ---- -24 51 7 skipif mysql # not compatible query I rowsort label-3075 SELECT - col0 + + col1 + CAST ( col2 AS INTEGER ) FROM tab2 ---- -24 51 7 query I rowsort SELECT DISTINCT + ( + col2 ) + 69 AS col2 FROM tab2 ---- 107 95 96 query I rowsort SELECT DISTINCT - cor0.col0 FROM tab1, tab0, tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - ( - col0 ) * + 55 + col1 * - col0 * + col1 FROM tab1 AS cor0 ---- -1863 -2880 -9120 query I rowsort SELECT DISTINCT tab1.col0 * col1 + + 39 FROM tab1 ---- 1079 117 679 query I rowsort SELECT ALL 19 + + col0 * + col2 FROM tab2 ---- 2047 208 3021 query I rowsort SELECT ALL + 48 * + col2 + - col2 FROM tab0 ---- 1551 3854 47 query I rowsort SELECT ALL - cor0.col0 + col2 + col2 FROM tab0 AS cor0 ---- -33 42 75 query I rowsort SELECT - + col2 + + cor0.col1 * col1 AS col2 FROM tab0 cor0 ---- 7363 8199 9408 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3084 SELECT - col2 + + CAST( col2 AS SIGNED ) FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3084 SELECT - col2 + + CAST ( col2 AS INTEGER ) FROM tab1 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3085 SELECT + CAST( NULL AS DECIMAL ) * 25 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3085 SELECT + CAST ( NULL AS REAL ) * 25 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + 99 + - col0 FROM tab1 cor0 ---- -102 -163 -179 query I rowsort SELECT + - cor1.col0 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT tab0.col0 * tab0.col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to e1120e7b687b32270ef70393236e7341 query I rowsort SELECT ALL + col0 + 80 * col2 AS col2 FROM tab1 AS cor0 ---- 4323 4624 7760 query I rowsort SELECT DISTINCT cor0.col1 + + 60 * col2 + + 95 FROM tab1 cor0 ---- 3361 3525 5868 query I rowsort SELECT DISTINCT + + cor0.col0 * 24 AS col1 FROM tab0 AS cor0 ---- 2136 576 840 query I rowsort SELECT ALL + - col2 + col0 AS col0 FROM tab0 AS cor0 ---- -9 34 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * 76 + + col1 col0 FROM tab1 AS cor0 ---- -4078 -4322 -7283 query I rowsort SELECT 8 AS col2 FROM tab0 cor0 ---- 8 8 8 onlyif mysql # use DIV operator for integer division query I rowsort label-3095 SELECT ALL - - col0 DIV + cor0.col2 - + col1 FROM tab1 AS cor0 ---- -13 -26 -9 skipif mysql # not compatible query I rowsort label-3095 SELECT ALL - - col0 / + cor0.col2 - + col1 FROM tab1 AS cor0 ---- -13 -26 -9 query I rowsort SELECT 81 * - col1 AS col2 FROM tab0 cor0 ---- -6966 -7371 -7857 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * cor0.col2 col1 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT - + 90 * + cor0.col0 * col0 FROM tab2 AS cor0 ---- -4410 -547560 -561690 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3099 SELECT ALL - CAST( 31 AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0 ---- 1829 527 961 skipif mysql # not compatible query I rowsort label-3099 SELECT ALL - CAST ( 31 AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0 ---- 1829 527 961 onlyif mysql # use DIV operator for integer division query I rowsort label-3100 SELECT DISTINCT - ( + col0 ) + - cor0.col1 DIV + col2 AS col0 FROM tab0 AS cor0 ---- -132 -26 -90 skipif mysql # not compatible query I rowsort label-3100 SELECT DISTINCT - ( + col0 ) + - cor0.col1 / + col2 AS col0 FROM tab0 AS cor0 ---- -132 -26 -90 query I rowsort SELECT - col0 * ( - col0 ) AS col2 FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3102 SELECT + CAST( col0 AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-3102 SELECT + CAST ( col0 AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - 65 * - ( col1 * col2 + + 29 ) FROM tab1 ---- 38935 83005 93145 query I rowsort SELECT ALL ( 55 + col1 ) AS col0 FROM tab2 ---- 114 72 86 query I rowsort SELECT + - 85 AS col1 FROM tab0 AS cor0 ---- -85 -85 -85 query I rowsort SELECT - col2 + + col0 * ( - cor0.col1 * col0 ) AS col1 FROM tab1 AS cor0 ---- -288 -41017 -83296 query I rowsort SELECT + - col1 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ( + cor0.col0 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 query I rowsort SELECT - - col0 * cor0.col1 * col0 FROM tab1 AS cor0 ---- 234 40960 83200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3110 SELECT - - col1 * col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3110 SELECT - - col1 * col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3111 SELECT ALL + cor0.col2 DIV - cor0.col0 col2 FROM tab1 AS cor0 ---- -1 -18 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3111 SELECT ALL + cor0.col2 / - cor0.col0 col2 FROM tab1 AS cor0 ---- -1 -18 0 query I rowsort SELECT DISTINCT - cor0.col2 * col0 + 86 FROM tab0 AS cor0 ---- -706 -7212 51 query I rowsort SELECT col1 * - col0 + - 5 FROM tab2 cor0 ---- -1348 -222 -4607 query I rowsort SELECT - - col1 + - col0 * col0 AS col0 FROM tab1 AS cor0 ---- -4086 -6387 17 query I rowsort SELECT - col0 + col0 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- 1190 552 7832 query I rowsort SELECT DISTINCT - + col2 * 78 + col2 * + col1 FROM tab2 AS cor0 ---- -1269 -2318 -494 onlyif mysql # use DIV operator for integer division query I rowsort label-3117 SELECT + col2 + - 20 DIV + cor0.col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-3117 SELECT + col2 + - 20 / + cor0.col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT - cor0.col1 * - col1 AS col2 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT - + col2 * 70 FROM tab2 cor0 ---- -1820 -1890 -2660 skipif mysql # not compatible query I rowsort SELECT - CAST ( col1 AS REAL ) * - col2 AS col0 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT col1 + + 75 * 94 * col2 AS col0 FROM tab2 ---- 183359 190381 267917 onlyif mysql # use DIV operator for integer division query I rowsort label-3122 SELECT ALL - col0 + - col1 DIV 17 FROM tab0 AS cor0 ---- -29 -40 -94 skipif mysql # not compatible query I rowsort label-3122 SELECT ALL - col0 + - col1 / 17 FROM tab0 AS cor0 ---- -29 -40 -94 query I rowsort SELECT DISTINCT + - cor0.col1 * ( - col1 ) + col2 FROM tab1 AS cor0 ---- 157 265 730 query I rowsort SELECT ALL - col1 - col2 * col0 AS col1 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT DISTINCT - - col2 * col1 - cor0.col2 * col0 AS col1 FROM tab1 AS cor0 ---- -3078 -6432 1242 query I rowsort SELECT ALL - col1 * - ( + col2 ) FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT + 35 * cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 39655f91f5cbe034099e5bb645fbc434 query I rowsort SELECT DISTINCT - cor0.col1 * + 14 AS col2 FROM tab0, tab0 AS cor0 ---- -1204 -1274 -1358 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * - tab1.col2 col1 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT - col0 + - 93 FROM tab2 ---- -100 -171 -172 query I rowsort SELECT col0 * + ( + col2 ) + + col2 AS col0 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT - cor0.col1 * 65 FROM tab1 AS cor0 ---- -1690 -650 -845 query I rowsort SELECT col2 - ( + col2 * tab1.col0 ) FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT + col2 * col1 + col2 + + col1 FROM tab1 AS cor0 ---- 1357 1484 637 query I rowsort SELECT 0 + - col2 * + col0 * col0 AS col2 FROM tab1 AS cor0 ---- -233472 -486 -614400 query I rowsort SELECT DISTINCT col0 + col0 * + 84 * col2 FROM tab2 ---- 15883 170430 252247 query I rowsort SELECT ALL + col0 + + col1 * - 71 * ( col2 ) - + ( - col2 ) AS col1 FROM tab0 AS cor0 ---- -201441 -529631 -6851 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + + col1 + ( + col1 ) col2 FROM tab1 cor0 ---- -44 -54 49 query I rowsort SELECT - 35 + tab0.col2 AS col2 FROM tab0 ---- -2 -34 47 query I rowsort SELECT ALL col2 * + col1 + ( - 76 ) + col0 AS col2 FROM tab0 ---- 2786 56 7475 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * col0 col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL + ( + cor0.col1 ) * - col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT - + col2 + col1 * - 52 FROM tab1 AS cor0 ---- -1406 -577 -772 query I rowsort SELECT DISTINCT + cor0.col1 + - cor0.col0 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT ( + col2 ) + col0 AS col0 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT ALL + + 32 AS col2 FROM tab2 AS cor0 ---- 32 32 32 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3147 SELECT cor0.col0 + - CAST( - ( col1 ) AS SIGNED ) * - 52 AS col1 FROM tab0 AS cor0 ---- -4448 -4643 -5009 skipif mysql # not compatible query I rowsort label-3147 SELECT cor0.col0 + - CAST ( - ( col1 ) AS INTEGER ) * - 52 AS col1 FROM tab0 AS cor0 ---- -4448 -4643 -5009 query I rowsort SELECT - + cor0.col0 + - col2 * - cor0.col1 FROM tab1 cor0 ---- 1168 1401 506 query I rowsort SELECT ALL 3 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 3e22859a313d85a6146c6df5f23d77cf skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + - col0 * 19 col1 FROM tab1 AS cor0 ---- -111 -1273 -1616 query I rowsort SELECT ALL col0 * + ( + col0 ) - col0 AS col0 FROM tab0 AS cor0 ---- 1190 552 7832 query I rowsort SELECT 4 + - col2 FROM tab1 AS cor0 ---- -50 -53 -92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + + col1 * col2 col1 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT + 44 + tab2.col0 FROM tab2 ---- 122 123 51 query I rowsort SELECT DISTINCT 59 + - col2 * col0 * + tab1.col1 FROM tab1 ---- -36421 -4153 -99781 onlyif mysql # use DIV operator for integer division query I rowsort label-3156 SELECT ( col2 ) DIV - col1 AS col0 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-3156 SELECT ( col2 ) / - col1 AS col0 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT DISTINCT + ( cor0.col2 ) * - col2 FROM tab2 AS cor0 ---- -1444 -676 -729 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 24 * ( - col0 ) col1 FROM tab0 AS cor0 ---- 2136 576 840 onlyif mysql # use DIV operator for integer division query I rowsort label-3159 SELECT - - ( col0 ) DIV col1 AS col2 FROM tab2 cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-3159 SELECT - - ( col0 ) / col1 AS col2 FROM tab2 cor0 ---- 0 1 4 query I rowsort SELECT DISTINCT 54 + ( + col0 ) FROM tab2 AS cor0 ---- 132 133 61 query I rowsort SELECT DISTINCT - cor0.col2 + - col2 * + cor0.col1 + + 73 * - col2 FROM tab0 cor0 ---- -13530 -171 -5280 onlyif mysql # use DIV operator for integer division query I rowsort label-3162 SELECT - 14 DIV + col0 FROM tab2 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-3162 SELECT - 14 / + col0 FROM tab2 AS cor0 ---- -2 0 0 query I rowsort SELECT DISTINCT - ( col0 ) * col0 * 15 FROM tab1 AS cor0 ---- -135 -61440 -96000 query I rowsort SELECT DISTINCT ( cor0.col2 ) * 12 * + col2 FROM tab2 AS cor0 ---- 17328 8112 8748 query I rowsort SELECT ALL - - cor0.col1 + col0 AS col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT 38 * - col0 FROM tab2 AS cor0 ---- -266 -2964 -3002 query I rowsort SELECT ALL 44 * + col0 FROM tab0 AS cor0 ---- 1056 1540 3916 query I rowsort SELECT + - col1 + col0 - 63 * col2 FROM tab0 AS cor0 ---- -125 -2141 -5168 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3169 SELECT ALL CAST( NULL AS SIGNED ) - - col2 / col0 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3169 SELECT ALL CAST ( NULL AS INTEGER ) - - col2 / col0 AS col1 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3170 SELECT - ( - col0 ) - col2 DIV + ( - tab1.col0 ) AS col1 FROM tab1 ---- 21 64 81 skipif mysql # not compatible query I rowsort label-3170 SELECT - ( - col0 ) - col2 / + ( - tab1.col0 ) AS col1 FROM tab1 ---- 21 64 81 query I rowsort SELECT DISTINCT 67 - - 17 FROM tab2 ---- 84 query I rowsort SELECT ALL ( + 36 ) - col0 * - 61 AS col1 FROM tab2 ---- 463 4794 4855 query I rowsort SELECT 40 + 46 - + col0 AS col2 FROM tab2 ---- 7 79 8 query I rowsort SELECT ALL - cor0.col1 * - col1 AS col2 FROM tab1 cor0 ---- 100 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-3175 SELECT col0 DIV col1 + col0 DIV - tab1.col2 FROM tab1 ---- 0 5 6 skipif mysql # not compatible query I rowsort label-3175 SELECT col0 / col1 + col0 / - tab1.col2 FROM tab1 ---- 0 5 6 query I rowsort SELECT DISTINCT - col1 * col0 + + col0 AS col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 onlyif mysql # use DIV operator for integer division query I rowsort label-3177 SELECT - col2 + - col0 DIV - col2 col0 FROM tab1 cor0 ---- -54 -56 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3177 SELECT - col2 + - col0 / - col2 col0 FROM tab1 cor0 ---- -54 -56 -96 query I rowsort SELECT DISTINCT + + col2 * col1 * - col0 AS col1 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT col2 + - col1 * - col0 AS col2 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT + col0 * col1 - - col1 AS col1 FROM tab1 AS cor0 ---- 104 1053 650 onlyif mysql # use DIV operator for integer division query I rowsort label-3181 SELECT + col1 DIV + col0 + + col0 * + cor0.col1 + - col1 DIV col0 FROM tab2 AS cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-3181 SELECT + col1 / + col0 + + col0 * + cor0.col1 + - col1 / col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - col0 * col0 + + cor0.col2 * col2 FROM tab0 AS cor0 ---- -1197 -1224 513 query I rowsort SELECT ALL + col2 - col2 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + 98 AS col1 FROM tab0 cor0 ---- 98 98 98 query I rowsort SELECT DISTINCT + 11 FROM tab2 AS cor0 ---- 11 query I rowsort SELECT 15 * col2 AS col2 FROM tab1 AS cor0 ---- 1440 810 855 query I rowsort SELECT + 82 * - col0 + + col2 FROM tab2 cor0 ---- -547 -6370 -6440 query I rowsort SELECT DISTINCT - + cor0.col1 - + col1 * cor0.col2 AS col2 FROM tab1 cor0 ---- -1261 -1430 -580 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 89 + + col2 * + col1 col2 FROM tab0 AS cor0 ---- 186 2927 7551 query I rowsort SELECT + col1 + + col2 AS col1 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT col2 - col1 * - col1 FROM tab0 ---- 7429 8363 9410 query I rowsort SELECT + 83 + 67 FROM tab1 ---- 150 150 150 query I rowsort SELECT - col0 * col1 * col0 AS col0 FROM tab1 ---- -234 -40960 -83200 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( 27 + col1 ) * + col2 * + col2 col2 FROM tab0 ---- 123057 124 793432 query I rowsort SELECT DISTINCT - col0 + + tab2.col2 * col1 * - tab2.col0 FROM tab2 ---- -119730 -51113 -5866 query I rowsort SELECT col0 + + col0 - - col2 AS col2 FROM tab2 ---- 182 196 41 query I rowsort SELECT 49 + + 16 + tab0.col1 AS col2 FROM tab0 ---- 151 156 162 query I rowsort SELECT DISTINCT + ( - col2 * - col2 ) + + col1 * col1 AS col0 FROM tab2 ---- 1690 1733 4157 query I rowsort SELECT DISTINCT col0 * col0 + tab1.col1 * tab1.col2 AS col0 FROM tab1 ---- 1413 4666 7648 query I rowsort SELECT DISTINCT col0 + + 80 * col2 FROM tab0 ---- 115 2664 6649 query I rowsort SELECT col2 * tab1.col2 + + col0 AS col2 FROM tab1 ---- 2919 3313 9296 query I rowsort SELECT ALL 76 * col0 + - col2 AS col1 FROM tab2 AS cor0 ---- 505 5902 5966 query I rowsort SELECT ALL - 41 + col2 * - col2 FROM tab1 AS cor0 ---- -2957 -3290 -9257 query I rowsort SELECT ALL - + col0 + - col2 AS col0 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT + tab1.col1 + - col0 + + col0 FROM tab1 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-3206 SELECT + col2 * - col0 - col0 DIV tab1.col1 FROM tab1 ---- -162 -3654 -7686 skipif mysql # not compatible query I rowsort label-3206 SELECT + col2 * - col0 - col0 / tab1.col1 FROM tab1 ---- -162 -3654 -7686 query I rowsort SELECT DISTINCT - tab1.col2 * - col0 + col1 FROM tab1 ---- 188 3658 7693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + col0 * tab1.col2 col0 FROM tab1 ---- 159 3584 7600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + col1 * + tab0.col2 col1 FROM tab0 ---- 0 2752 7371 query I rowsort SELECT - col2 * col0 + + col2 * + col0 - col1 FROM tab1 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * - col2 + col1 * - tab2.col1 * + col0 col2 FROM tab2 ---- -22185 -269984 -5890 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - col0 col1 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3213 SELECT + col1 + col0 DIV - col0 AS col1 FROM tab1 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-3213 SELECT + col1 + col0 / - col0 AS col1 FROM tab1 ---- 12 25 9 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - col2 * + col0 ) ---- 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 col0 * + tab0.col2 AS col0 FROM tab0 ---- 35 7298 792 query I rowsort SELECT col2 * col1 + col0 FROM tab2 ---- 1612 725 844 query I rowsort SELECT DISTINCT col2 * col2 FROM tab2 WHERE NOT + col1 * col1 + - col2 > NULL ---- query I rowsort SELECT ALL col0 * - col2 * + tab0.col2 AS col1 FROM tab0 ---- -26136 -35 -598436 query I rowsort SELECT - tab1.col1 * + col2 FROM tab1 WHERE NOT - col0 + - col2 * col2 BETWEEN ( + tab1.col1 + col1 ) AND ( + col1 / col2 + col0 * - col1 ) ---- -1248 -1404 -570 query I rowsort SELECT - col1 AS col1 FROM tab2 WHERE NULL NOT IN ( col1 + - col1 ) ---- query I rowsort SELECT ALL - col0 + + col2 * col2 AS col2 FROM tab2 ---- 1365 598 722 query I rowsort SELECT - col2 * + col1 + + col2 + - col0 FROM tab2 AS cor0 ---- -1586 -687 -817 query I rowsort SELECT DISTINCT + - col0 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT ALL + col2 * - cor0.col1 + cor0.col1 AS col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT - col0 + + col1 + - cor0.col1 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT col1 + col2 * - col1 * cor0.col2 + + col2 * col0 FROM tab2 AS cor0 ---- -21529 -22379 -37797 query I rowsort SELECT col1 + cor0.col1 AS col1 FROM tab0 cor0 ---- 172 182 194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - col0 * - col2 + + col1 + - col1 col1 FROM tab2 cor0 ---- -1323 -158184 -237158 query I rowsort SELECT + ( col0 ) * + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - col0 * col2 + + col2 AS col1 FROM tab0 cor0 ---- -34 -7216 -759 query I rowsort SELECT + 63 FROM tab2 cor0 ---- 63 63 63 query I rowsort SELECT - col2 + - col2 * - col2 FROM tab1 AS cor0 ---- 2862 3192 9120 query I rowsort SELECT - 77 + + 74 AS col0 FROM tab2 cor0 ---- -3 -3 -3 query I rowsort SELECT ( col2 ) + - col2 * - col2 FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT ALL - - col0 + col2 * + col2 AS col0 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT ALL - - 70 * 77 FROM tab2 AS cor0 ---- 5390 5390 5390 query I rowsort SELECT DISTINCT + cor0.col0 + + col1 * col0 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-3239 SELECT 30 * col1 DIV col0 + - col1 * + col1 FROM tab1 AS cor0 ---- -165 -416 -96 skipif mysql # not compatible query I rowsort label-3239 SELECT 30 * col1 / col0 + - col1 * + col1 FROM tab1 AS cor0 ---- -165 -416 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-3240 SELECT DISTINCT - cor0.col2 - ( cor0.col1 ) DIV + col2 FROM tab1 cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-3240 SELECT DISTINCT - cor0.col2 - ( cor0.col1 ) / + col2 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT ALL cor0.col0 + 23 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 1536 1920 72 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 * - 85 * + cor0.col1 col2 FROM tab2 AS cor0 ---- -130390 -54910 -71145 query I rowsort SELECT DISTINCT - col2 + cor0.col0 * + col2 * col0 FROM tab2 AS cor0 ---- 1296 158158 237120 query I rowsort SELECT ALL - col0 * + cor0.col1 - cor0.col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-3245 SELECT + ( col1 + + col1 ) DIV - col1 FROM tab0 ---- -2 -2 -2 skipif mysql # not compatible query I rowsort label-3245 SELECT + ( col1 + + col1 ) / - col1 FROM tab0 ---- -2 -2 -2 query I rowsort SELECT + - cor0.col0 * - col0 * + 3 + + col0 AS col0 FROM tab0 AS cor0 ---- 1752 23852 3710 query I rowsort SELECT DISTINCT - tab0.col0 + + 96 AS col1 FROM tab0, tab1 AS cor0 ---- 61 7 72 query I rowsort SELECT - cor0.col1 * 1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 query I rowsort SELECT col0 * col0 + + col1 + col1 AS col1 FROM tab1 ---- 4116 61 6426 query I rowsort SELECT + tab0.col2 * + ( col2 ) * - col2 AS col1 FROM tab0 ---- -1 -35937 -551368 query I rowsort SELECT DISTINCT 3 AS col2 FROM tab1, tab0 AS cor0 ---- 3 query I rowsort SELECT col0 * - 74 FROM tab1 ---- -222 -4736 -5920 query I rowsort SELECT col2 + - ( - cor0.col0 ) FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-3254 SELECT col0 + + col2 DIV - col0 FROM tab2 ---- 4 78 79 skipif mysql # not compatible query I rowsort label-3254 SELECT col0 + + col2 / - col0 FROM tab2 ---- 4 78 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3255 SELECT col2 / + CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3255 SELECT col2 / + CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - 7 FROM tab1, tab0 AS cor0 ---- 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3257 SELECT col0 + + CAST( - 13 AS SIGNED ) + + col0 FROM tab1 ---- -7 115 147 skipif mysql # not compatible query I rowsort label-3257 SELECT col0 + + CAST ( - 13 AS INTEGER ) + + col0 FROM tab1 ---- -7 115 147 query I rowsort SELECT - ( 78 ) * - col2 - col2 * col2 FROM tab2 AS cor0 ---- 1352 1377 1520 query I rowsort SELECT ALL - tab0.col2 + 82 AS col2 FROM tab0 ---- 0 49 81 query I rowsort SELECT DISTINCT col2 * 87 - col0 FROM tab1 ---- 4695 4895 8272 onlyif mysql # use DIV operator for integer division query I rowsort label-3261 SELECT + 64 + - 26 DIV col1 FROM tab0 AS cor0 ---- 64 64 64 skipif mysql # not compatible query I rowsort label-3261 SELECT + 64 + - 26 / col1 FROM tab0 AS cor0 ---- 64 64 64 onlyif mysql # use DIV operator for integer division query I rowsort label-3262 SELECT ALL - - 71 DIV + 83 col1 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3262 SELECT ALL - - 71 / + 83 col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 + + col2 + col2 FROM tab0 ---- 152 255 99 query I rowsort SELECT ALL + ( col1 ) + + col1 AS col0 FROM tab0 ---- 172 182 194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 - + cor0.col2 col2 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL + 13 + - col0 AS col2 FROM tab0 AS cor0 ---- -11 -22 -76 query I rowsort SELECT DISTINCT - col2 * 19 - col0 * + col2 FROM tab1 AS cor0 ---- -1188 -4731 -9504 onlyif mysql # use DIV operator for integer division query I rowsort label-3268 SELECT + - col1 - cor0.col0 DIV cor0.col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-3268 SELECT + - col1 - cor0.col0 / cor0.col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT ALL + ( + col0 ) + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-3270 SELECT ALL col1 DIV + col1 + col2 AS col0 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-3270 SELECT ALL col1 / + col1 + col2 AS col0 FROM tab0 AS cor0 ---- 2 34 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 * 52 + col0 * - col1 * cor0.col1 col1 FROM tab1 AS cor0 ---- -14196 -3380 -6920 query I rowsort SELECT - col0 + - col1 * 66 AS col1 FROM tab2 ---- -1201 -2053 -3972 onlyif mysql # use DIV operator for integer division query I rowsort label-3273 SELECT + col2 DIV + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-3273 SELECT + col2 / + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 0 0 2 query I rowsort SELECT ALL + + cor0.col2 * col0 AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT col2 * 11 FROM tab1 AS cor0 ---- 1056 594 627 query I rowsort SELECT + col0 * ( 91 + - col0 ) AS col2 FROM tab1 AS cor0 ---- 1728 264 880 onlyif mysql # use DIV operator for integer division query I rowsort label-3277 SELECT - - col2 DIV col1 col0 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3277 SELECT - - col2 / col1 col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 * - 42 FROM tab2 AS cor0 ---- 1302 2478 714 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * - 21 col0 FROM tab0 cor0 ---- -1806 -1911 -2037 query I rowsort SELECT DISTINCT + 81 * - col1 AS col0 FROM tab0 ---- -6966 -7371 -7857 query I rowsort SELECT ALL col1 * - 17 AS col1 FROM tab0 cor0 ---- -1462 -1547 -1649 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3282 SELECT DISTINCT - col2 * + CAST( - 89 AS SIGNED ) + - col2 FROM tab0 AS cor0 ---- 2904 7216 88 skipif mysql # not compatible query I rowsort label-3282 SELECT DISTINCT - col2 * + CAST ( - 89 AS INTEGER ) + - col2 FROM tab0 AS cor0 ---- 2904 7216 88 query I rowsort SELECT ALL - cor0.col0 * - ( cor0.col2 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - cor0.col2 * - cor0.col1 * - 70 FROM tab2, tab1 AS cor0 ---- -39900 -87360 -98280 query I rowsort SELECT ALL + 57 * + col2 + + ( col0 ) FROM tab2 AS cor0 ---- 1546 1560 2245 query I rowsort SELECT DISTINCT - 77 + - col0 FROM tab0 cor0 ---- -101 -112 -166 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3287 SELECT + - col0 * - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3287 SELECT + - col0 * - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 - - 34 AS col2 FROM tab0 AS cor0 ---- 120 125 131 onlyif mysql # use DIV operator for integer division query I rowsort label-3289 SELECT DISTINCT + cor1.col2 DIV + cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 0 1 2 33 82 skipif mysql # not compatible query I rowsort label-3289 SELECT DISTINCT + cor1.col2 / + cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 0 1 2 33 82 query I rowsort SELECT - + col0 + + cor0.col1 * col1 AS col1 FROM tab1 AS cor0 ---- 36 673 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 76 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 30b8941a700cffd5b983116383bd42d5 query I rowsort SELECT DISTINCT + 81 * col2 FROM tab0 AS cor0 ---- 2673 6642 81 query I rowsort SELECT ALL - + col0 + 3 * + col2 FROM tab0 AS cor0 ---- -32 157 75 query I rowsort SELECT DISTINCT - + 83 * col2 AS col0 FROM tab0 AS cor0 ---- -2739 -6806 -83 query I rowsort SELECT DISTINCT 18 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 18 query I rowsort SELECT 33 + + col2 * col2 + - 48 FROM tab0 AS cor0 ---- -14 1074 6709 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3297 SELECT ALL + col1 * col1 - CAST( + col1 * + col2 AS SIGNED ) FROM tab1 AS cor0 ---- -1079 -470 -728 skipif mysql # not compatible query I rowsort label-3297 SELECT ALL + col1 * col1 - CAST ( + col1 * + col2 AS INTEGER ) FROM tab1 AS cor0 ---- -1079 -470 -728 query I rowsort SELECT col1 + - col1 AS col0 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT cor0.col2 * + col0 * + col1 + 25 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 3420 666168 68937 query I rowsort SELECT DISTINCT + ( - col1 ) + - col1 AS col0 FROM tab2 ---- -118 -34 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-3301 SELECT DISTINCT + 65 + col0 DIV - col0 FROM tab0 ---- 64 skipif mysql # not compatible query I rowsort label-3301 SELECT DISTINCT + 65 + col0 / - col0 FROM tab0 ---- 64 query I rowsort SELECT - - ( + col0 ) + + col1 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT col2 * col2 + + cor0.col0 FROM tab0 AS cor0 ---- 1113 36 6813 onlyif mysql # use DIV operator for integer division query I rowsort label-3304 SELECT 66 DIV - col0 + 9 FROM tab2 ---- 0 9 9 skipif mysql # not compatible query I rowsort label-3304 SELECT 66 / - col0 + 9 FROM tab2 ---- 0 9 9 query I rowsort SELECT ALL + - col0 * - ( col2 ) FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-3306 SELECT ALL - ( + col2 ) DIV 48 FROM tab0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-3306 SELECT ALL - ( + col2 ) / 48 FROM tab0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3307 SELECT DISTINCT - + col0 + col1 DIV col0 AS col1 FROM tab2 AS cor0 ---- -3 -78 -79 skipif mysql # not compatible query I rowsort label-3307 SELECT DISTINCT - + col0 + col1 / col0 AS col1 FROM tab2 AS cor0 ---- -3 -78 -79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3308 SELECT col0 / CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3308 SELECT col0 / CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 50 * col1 FROM tab1 cor0 ---- 1300 500 650 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 53 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to fede6033dee346dbd272085c05724fda query I rowsort SELECT + + 76 + - 1 FROM tab2 AS cor0 ---- 75 75 75 query I rowsort SELECT - tab0.col2 * col0 + col2 * col2 * 26 AS col0 FROM tab0 ---- -9 167526 27522 query I rowsort SELECT 13 * - 12 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 30bd01bac0dd44c8ca377e4489d11556 query I rowsort SELECT ALL tab0.col2 * + ( + col0 ) + - col0 FROM tab0 ---- 0 7209 768 query I rowsort SELECT col2 * + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT ALL - + ( + col2 ) - - col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT ALL - - 55 + col2 * - col1 FROM tab1 AS cor0 ---- -1193 -1349 -515 onlyif mysql # use DIV operator for integer division query I rowsort label-3318 SELECT + col2 DIV - col2 col0 FROM tab1 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3318 SELECT + col2 / - col2 col0 FROM tab1 ---- -1 -1 -1 query I rowsort SELECT - col1 * - 13 * col2 FROM tab0 ---- 1261 36894 97006 query I rowsort SELECT col1 + - 27 + col1 * col2 FROM tab1 ---- 1234 1403 553 query I rowsort SELECT DISTINCT - tab0.col0 + tab0.col2 + - ( - tab0.col2 ) FROM tab0 ---- -33 42 75 query I rowsort SELECT - 74 * - 11 + col2 * cor0.col1 AS col2 FROM tab1 cor0 ---- 1384 2062 2218 query I rowsort SELECT DISTINCT - col1 * + col1 + cor0.col0 FROM tab2 cor0 ---- -210 -3403 -954 query I rowsort SELECT ALL col2 + + col0 * + cor0.col0 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT + 74 + - ( col0 ) AS col0 FROM tab1 cor0 ---- -6 10 71 query I rowsort SELECT DISTINCT - col1 * col0 + + col0 FROM tab2 cor0 ---- -1264 -210 -4524 query I rowsort SELECT ALL - + col1 * - col0 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-3328 SELECT + col0 DIV - ( - cor0.col1 ) + col1 DIV - col0 FROM tab1 AS cor0 ---- -8 6 6 skipif mysql # not compatible query I rowsort label-3328 SELECT + col0 / - ( - cor0.col1 ) + col1 / - col0 FROM tab1 AS cor0 ---- -8 6 6 query I rowsort SELECT + + 60 * col0 + - col1 FROM tab2 AS cor0 ---- 389 4621 4723 query I rowsort SELECT col1 * - 54 AS col1 FROM tab1 cor0 ---- -1404 -540 -702 query I rowsort SELECT + + ( - 26 ) FROM tab0 AS cor0 ---- -26 -26 -26 query I rowsort SELECT - ( col1 ) * - col2 - 63 FROM tab0 AS cor0 ---- 2775 34 7399 query I rowsort SELECT DISTINCT + col1 * col0 * col1 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT DISTINCT + - 70 FROM tab2 cor0 ---- -70 onlyif mysql # use DIV operator for integer division query I rowsort label-3335 SELECT 86 DIV col0 AS col2 FROM tab1 AS cor0 ---- 1 1 28 skipif mysql # not compatible query I rowsort label-3335 SELECT 86 / col0 AS col2 FROM tab1 AS cor0 ---- 1 1 28 onlyif mysql # use DIV operator for integer division query I rowsort label-3336 SELECT - col0 DIV - cor0.col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3336 SELECT - col0 / - cor0.col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - - 2 * - col1 * 68 FROM tab2 cor0 ---- -2312 -4216 -8024 query I rowsort SELECT + cor0.col0 * + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3339 SELECT ALL CAST( NULL AS SIGNED ) * + 37 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3339 SELECT ALL CAST ( NULL AS INTEGER ) * + 37 AS col1 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 63 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 38764a6e696d1a6b5095e29ef84959c0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + - col1 + - col2 col2 FROM tab0 AS cor0 ---- -63 -84 -95 onlyif mysql # use DIV operator for integer division query I rowsort label-3342 SELECT ALL + col0 DIV - 85 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3342 SELECT ALL + col0 / - 85 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 9 * col0 FROM tab1 ---- 27 576 720 query I rowsort SELECT ALL + col2 + 90 * + col2 AS col0 FROM tab0 AS cor0 ---- 3003 7462 91 onlyif mysql # use DIV operator for integer division query I rowsort label-3345 SELECT DISTINCT col0 + - 74 DIV - col0 AS col1 FROM tab1 AS cor0 ---- 27 65 80 skipif mysql # not compatible query I rowsort label-3345 SELECT DISTINCT col0 + - 74 / - col0 AS col1 FROM tab1 AS cor0 ---- 27 65 80 query I rowsort SELECT ALL - col1 * + col0 + cor0.col0 FROM tab0 cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT + - cor0.col0 + + cor0.col1 FROM tab2 AS cor0 ---- -19 -62 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + 4 col2 FROM tab0 AS cor0 ---- 28 39 93 onlyif mysql # use DIV operator for integer division query I rowsort label-3349 SELECT DISTINCT col0 DIV ( col2 + col0 ) AS col1 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-3349 SELECT DISTINCT col0 / ( col2 + col0 ) AS col1 FROM tab2 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * - 90 col1 FROM tab2 AS cor0 ---- -2340 -2430 -3420 query I rowsort SELECT DISTINCT - col2 * col2 + + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1566 -2090 -2210 query I rowsort SELECT + col1 * ( 52 ) FROM tab0 AS cor0 ---- 4472 4732 5044 onlyif mysql # use DIV operator for integer division query I rowsort label-3353 SELECT ALL col2 DIV + 15 FROM tab0 AS cor0 ---- 0 2 5 skipif mysql # not compatible query I rowsort label-3353 SELECT ALL col2 / + 15 FROM tab0 AS cor0 ---- 0 2 5 query I rowsort SELECT col2 * - col1 + - 81 FROM tab2 ---- -1615 -727 -918 query I rowsort SELECT - col1 * - col2 - + ( - col2 ) AS col2 FROM tab0 ---- 2871 7544 98 onlyif mysql # use DIV operator for integer division query I rowsort label-3356 SELECT col1 - + col2 DIV col0 AS col0 FROM tab2 ---- 17 28 59 skipif mysql # not compatible query I rowsort label-3356 SELECT col1 - + col2 / col0 AS col0 FROM tab2 ---- 17 28 59 query I rowsort SELECT ALL col1 * - 62 - 96 FROM tab2 cor0 ---- -1150 -2018 -3754 query I rowsort SELECT DISTINCT col2 * + 10 AS col0 FROM tab2 AS cor0 ---- 260 270 380 query I rowsort SELECT ALL - col1 * - ( col2 ) * + col2 + col1 AS col1 FROM tab0 AS cor0 ---- 194 611975 93740 query I rowsort SELECT + col1 * ( + 65 ) FROM tab2 AS cor0 ---- 1105 2015 3835 query I rowsort SELECT + col2 * - 31 AS col1 FROM tab2 AS cor0 ---- -1178 -806 -837 query I rowsort SELECT ALL tab1.col2 - - col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT - col2 - 76 FROM tab0 AS cor0 ---- -109 -158 -77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + - col2 col1 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3365 SELECT ALL - - col0 DIV col1 col1 FROM tab1 AS cor0 ---- 0 6 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3365 SELECT ALL - - col0 / col1 col1 FROM tab1 AS cor0 ---- 0 6 6 query I rowsort SELECT ALL + 60 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1d2ab302ae60f95b15e68cf89083b162 query I rowsort SELECT DISTINCT - + col1 - - col0 * - col2 FROM tab1 AS cor0 ---- -188 -3658 -7693 query I rowsort SELECT DISTINCT ( 42 ) + col1 FROM tab0 ---- 128 133 139 query I rowsort SELECT - + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab0, tab2 cor1 ---- 81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5 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 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT DISTINCT + 26 AS col0 FROM tab2 ---- 26 query I rowsort SELECT 80 + tab2.col2 FROM tab2 ---- 106 107 118 query I rowsort SELECT col1 * col1 + - col1 FROM tab1 AS cor0 ---- 156 650 90 onlyif mysql # use DIV operator for integer division query I rowsort label-3374 SELECT DISTINCT + col0 DIV - col1 col1 FROM tab2 AS cor0 ---- -1 -4 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3374 SELECT DISTINCT + col0 / - col1 col1 FROM tab2 AS cor0 ---- -1 -4 0 query I rowsort SELECT DISTINCT - 42 * - col0 AS col0 FROM tab2 AS cor0 ---- 294 3276 3318 query I rowsort SELECT 59 AS col2 FROM tab1 AS cor0 ---- 59 59 59 query I rowsort SELECT - col0 + - col1 * col0 AS col2 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT ALL - - 78 - col1 AS col1 FROM tab0 AS cor0 ---- -13 -19 -8 onlyif mysql # use DIV operator for integer division query I rowsort label-3379 SELECT DISTINCT + - col0 DIV + col1 AS col2 FROM tab1 AS cor0 ---- -6 0 skipif mysql # not compatible query I rowsort label-3379 SELECT DISTINCT + - col0 / + col1 AS col2 FROM tab1 AS cor0 ---- -6 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3380 SELECT - CAST( NULL AS SIGNED ) * + col1 + col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3380 SELECT - CAST ( NULL AS INTEGER ) * + col1 + col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 * + 48 + - cor0.col0 AS col0 FROM tab0 cor0 ---- 4104 4279 4621 query I rowsort SELECT - + 26 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1 ---- 27 values hashing to 4e49eac022daeae6f88f610644ba3754 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3383 SELECT ALL + col1 + CAST( - 74 * + col0 AS SIGNED ) AS col2 FROM tab1 ---- -196 -4726 -5907 skipif mysql # not compatible query I rowsort label-3383 SELECT ALL + col1 + CAST ( - 74 * + col0 AS INTEGER ) AS col2 FROM tab1 ---- -196 -4726 -5907 query I rowsort SELECT ALL + 18 + tab2.col1 AS col0 FROM tab2, tab0 cor0 ---- 9 values hashing to 479ee0ffa7a4bf8de5f9831bec6cee23 query I rowsort SELECT ALL ( - col1 + + col2 ) FROM tab2 ---- -33 -4 21 query I rowsort SELECT ALL - + col1 + 80 FROM tab2 AS cor0 ---- 21 49 63 onlyif mysql # use DIV operator for integer division query I rowsort label-3387 SELECT + + ( ( - col2 ) ) DIV + 23 + col2 * - col2 * + 81 AS col1 FROM tab1 AS cor0 ---- -236198 -263171 -746500 skipif mysql # not compatible query I rowsort label-3387 SELECT + + ( ( - col2 ) ) / + 23 + col2 * - col2 * + 81 AS col1 FROM tab1 AS cor0 ---- -236198 -263171 -746500 query I rowsort SELECT + - 69 + col1 * col2 AS col1 FROM tab0 AS cor0 ---- 2769 28 7393 onlyif mysql # use DIV operator for integer division query I rowsort label-3389 SELECT ALL - + 4 DIV + col1 + col2 * col0 + - col1 DIV cor0.col1 AS col2 FROM tab2 AS cor0 ---- 188 2027 3001 skipif mysql # not compatible query I rowsort label-3389 SELECT ALL - + 4 / + col1 + col2 * col0 + - col1 / cor0.col1 AS col2 FROM tab2 AS cor0 ---- 188 2027 3001 query I rowsort SELECT DISTINCT + 23 + - cor0.col1 * col0 - col0 AS col2 FROM tab2 cor0 ---- -1399 -201 -4657 query I rowsort SELECT ALL col1 * 67 + col0 * col1 + col0 * + col0 FROM tab0 AS cor0 ---- 11119 22117 8402 query I rowsort SELECT col1 + tab0.col1 * col2 AS col1 FROM tab0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT 11 * + tab2.col1 FROM tab2 ---- 187 341 649 query I rowsort SELECT ALL - - col0 * - col2 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT + col1 * + col0 * col0 + + col0 FROM tab0 cor0 ---- 118860 49560 720900 query I rowsort SELECT + - cor0.col2 * - col2 * col1 AS col1 FROM tab1 AS cor0 ---- 119808 32490 75816 query I rowsort SELECT DISTINCT + col2 + ( - col0 ) * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- 216 3705 7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 69 col1 FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 2810c3097fe4771e273cfff903357b40 query I rowsort SELECT DISTINCT - col2 + + 90 FROM tab1 cor0 ---- -6 33 36 query I rowsort SELECT ALL - col1 * - col2 - - col1 AS col1 FROM tab0 AS cor0 ---- 194 2924 7553 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3401 SELECT DISTINCT col0 * - CAST( - col0 + + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -1488 -178 -2170 skipif mysql # not compatible query I rowsort label-3401 SELECT DISTINCT col0 * - CAST ( - col0 + + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -1488 -178 -2170 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * col1 - 36 col2 FROM tab0 cor0 ---- 7360 8245 9373 onlyif mysql # use DIV operator for integer division query I rowsort label-3403 SELECT + + cor0.col1 + col1 DIV col0 AS col0 FROM tab1 AS cor0 ---- 10 13 34 skipif mysql # not compatible query I rowsort label-3403 SELECT + + cor0.col1 + col1 / col0 AS col0 FROM tab1 AS cor0 ---- 10 13 34 query I rowsort SELECT ALL - + col0 * 71 FROM tab0 AS cor0 ---- -1704 -2485 -6319 query I rowsort SELECT DISTINCT - + col0 * + cor0.col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + cor0.col1 - + col0 * ( + col2 ) FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # use DIV operator for integer division query I rowsort label-3407 SELECT col1 DIV - 98 AS col1 FROM tab2 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3407 SELECT col1 / - 98 AS col1 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT + col0 + + col0 + cor0.col2 * + col2 FROM tab1 AS cor0 ---- 2922 3377 9376 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3409 SELECT - - col2 * 36 + col2 + + 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-3409 SELECT - - col2 * 36 + col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3410 SELECT + + CAST( - 0 AS SIGNED ) - col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-3410 SELECT + + CAST ( - 0 AS INTEGER ) - col2 FROM tab0 AS cor0 ---- -1 -33 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-3411 SELECT col0 DIV + tab0.col0 AS col0 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3411 SELECT col0 / + tab0.col0 AS col0 FROM tab0 ---- 1 1 1 query I rowsort SELECT + col0 * + ( col0 ) FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT col1 - - ( col0 + + col0 ) FROM tab0 AS cor0 ---- 134 167 269 query I rowsort SELECT - cor0.col0 * + 11 AS col0 FROM tab0 AS cor0 ---- -264 -385 -979 query I rowsort SELECT DISTINCT + - col1 * col2 * + col1 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT col0 * + col0 * + col0 FROM tab2 ---- 343 474552 493039 query I rowsort SELECT DISTINCT + + col1 + col2 * - col2 AS col0 FROM tab1 AS cor0 ---- -2890 -3239 -9203 onlyif mysql # use DIV operator for integer division query I rowsort label-3418 SELECT - ( col0 ) + cor0.col2 DIV + col0 AS col2 FROM tab2 AS cor0 ---- -4 -78 -79 skipif mysql # not compatible query I rowsort label-3418 SELECT - ( col0 ) + cor0.col2 / + col0 AS col2 FROM tab2 AS cor0 ---- -4 -78 -79 query I rowsort SELECT DISTINCT - col1 * - col0 + - 62 FROM tab2 AS cor0 ---- 1281 155 4540 onlyif mysql # use DIV operator for integer division query I rowsort label-3420 SELECT ALL + + cor0.col2 DIV + col1 col1 FROM tab2 AS cor0 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3420 SELECT ALL + + cor0.col2 / + col1 col1 FROM tab2 AS cor0 ---- 0 0 2 onlyif mysql # use DIV operator for integer division query I rowsort label-3421 SELECT - cor0.col2 DIV col1 + CAST( + col1 AS SIGNED ) * col0 FROM tab2 AS cor0 ---- 1341 217 4602 skipif mysql # not compatible query I rowsort label-3421 SELECT - cor0.col2 / col1 + CAST ( + col1 AS INTEGER ) * col0 FROM tab2 AS cor0 ---- 1341 217 4602 query I rowsort SELECT + - cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -1040 -640 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-3423 SELECT ALL col1 * tab2.col1 DIV col1 FROM tab2 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-3423 SELECT ALL col1 * tab2.col1 / col1 FROM tab2 ---- 17 31 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3424 SELECT DISTINCT CAST( - 23 AS SIGNED ) * + col1 FROM tab1 ---- -230 -299 -598 skipif mysql # not compatible query I rowsort label-3424 SELECT DISTINCT CAST ( - 23 AS INTEGER ) * + col1 FROM tab1 ---- -230 -299 -598 query I rowsort SELECT ALL - - col0 + col2 * - col2 - col0 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT + 63 + - col0 AS col0 FROM tab0 AS cor0 ---- -26 28 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 10 + col1 * col2 col2 FROM tab1 AS cor0 ---- 1258 1414 580 query I rowsort SELECT ALL + ( + col1 * col2 ) FROM tab1 ---- 1248 1404 570 query I rowsort SELECT - - col2 * + col1 - - col1 * 78 * cor0.col1 FROM tab0 AS cor0 ---- 579726 653380 733999 query I rowsort SELECT ALL 48 * col0 + + col1 AS col1 FROM tab1 cor0 ---- 170 3082 3853 query I rowsort SELECT - + cor0.col2 * + col0 * 75 - cor0.col0 FROM tab1 AS cor0 ---- -12153 -273664 -576080 query I rowsort SELECT ALL col2 * col2 + - 90 FROM tab2 AS cor0 ---- 1354 586 639 query I rowsort SELECT DISTINCT col2 * col2 + + 20 + - ( col0 ) FROM tab2 AS cor0 ---- 1385 618 742 query I rowsort SELECT ALL + ( - cor0.col0 ) * + col1 AS col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + 88 * - col2 * - col0 - col2 AS col2 FROM tab1 cor0 ---- 14202 320967 675744 query I rowsort SELECT + + col1 * - cor0.col0 * - col2 + + col2 AS col0 FROM tab0 AS cor0 ---- 3396 664200 68145 query I rowsort SELECT - - cor0.col2 - col0 AS col1 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT ( + col0 ) + - col0 FROM tab1 cor0 ---- 0 query I rowsort SELECT DISTINCT col0 + 22 + col0 FROM tab1 ---- 150 182 28 query I rowsort SELECT ALL col0 * - col1 * tab1.col1 FROM tab1 ---- -13520 -2028 -6400 query I rowsort SELECT - col2 + 63 * + cor0.col0 AS col0 FROM tab0 cor0 ---- 1479 2204 5525 onlyif mysql # use DIV operator for integer division query I rowsort label-3442 SELECT + col1 + - 70 DIV col1 FROM tab1 cor0 ---- 24 3 8 skipif mysql # not compatible query I rowsort label-3442 SELECT + col1 + - 70 / col1 FROM tab1 cor0 ---- 24 3 8 query I rowsort SELECT + col2 * - col2 + ( + col0 ) FROM tab0 AS cor0 ---- -1065 -6635 34 onlyif mysql # use DIV operator for integer division query I rowsort label-3444 SELECT + - col1 DIV - 61 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3444 SELECT + - col1 / - 61 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 50 col1 FROM tab2 AS cor0 ---- 50 50 50 query I rowsort SELECT ALL col1 + col2 * + cor0.col1 * - col2 AS col2 FROM tab2 cor0 ---- -22568 -24531 -39825 query I rowsort SELECT 22 * col1 AS col0 FROM tab1 cor0 ---- 220 286 572 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 11 + - cor0.col2 col2 FROM tab0 AS cor0 ---- -12 -44 -93 query I rowsort SELECT ALL 49 * col0 FROM tab2 AS cor0 ---- 343 3822 3871 onlyif mysql # use DIV operator for integer division query I rowsort label-3450 SELECT DISTINCT + 13 DIV + col0 AS col2 FROM tab1 AS cor0 ---- 0 4 skipif mysql # not compatible query I rowsort label-3450 SELECT DISTINCT + 13 / + col0 AS col2 FROM tab1 AS cor0 ---- 0 4 query I rowsort SELECT - 34 * + 81 FROM tab1 AS cor0 ---- -2754 -2754 -2754 query I rowsort SELECT ALL cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT + + ( + 88 ) * col2 AS col0 FROM tab1 AS cor0 ---- 4752 5016 8448 query I rowsort SELECT DISTINCT - + ( - 77 ) AS col0 FROM tab2 AS cor0 ---- 77 query I rowsort SELECT ALL + 79 * + col1 FROM tab0 AS cor0 ---- 6794 7189 7663 query I rowsort SELECT ALL - + ( col0 ) + col0 AS col1 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3457 SELECT DISTINCT - + CAST( 39 AS SIGNED ) FROM tab2 AS cor0 ---- -39 skipif mysql # not compatible query I rowsort label-3457 SELECT DISTINCT - + CAST ( 39 AS INTEGER ) FROM tab2 AS cor0 ---- -39 query I rowsort SELECT ALL - col0 * + 14 + + col1 * + col2 AS col2 FROM tab2 AS cor0 ---- -460 442 739 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3459 SELECT - + CAST( col2 AS SIGNED ) + - col0 AS col1 FROM tab0 cor0 ---- -171 -36 -57 skipif mysql # not compatible query I rowsort label-3459 SELECT - + CAST ( col2 AS INTEGER ) + - col0 AS col1 FROM tab0 cor0 ---- -171 -36 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3460 SELECT ALL CAST( + 52 AS SIGNED ) * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1612 3068 884 skipif mysql # not compatible query I rowsort label-3460 SELECT ALL CAST ( + 52 AS INTEGER ) * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1612 3068 884 query I rowsort SELECT DISTINCT + ( - 64 ) * - cor0.col1 FROM tab2 AS cor0 ---- 1088 1984 3776 onlyif mysql # use DIV operator for integer division query I rowsort label-3462 SELECT DISTINCT col1 * + ( + col0 ) + + col1 DIV + 19 AS col1 FROM tab2 AS cor0 ---- 1343 218 4605 skipif mysql # not compatible query I rowsort label-3462 SELECT DISTINCT col1 * + ( + col0 ) + + col1 / + 19 AS col1 FROM tab2 AS cor0 ---- 1343 218 4605 query I rowsort SELECT ALL 15 * + col0 AS col0 FROM tab2 AS cor0 ---- 105 1170 1185 onlyif mysql # use DIV operator for integer division query I rowsort label-3464 SELECT DISTINCT - 82 DIV + col0 + col1 * ( cor0.col1 ) * col0 + ( + ( + col0 ) ) FROM tab1 AS cor0 ---- 13599 2004 6463 skipif mysql # not compatible query I rowsort label-3464 SELECT DISTINCT - 82 / + col0 + col1 * ( cor0.col1 ) * col0 + ( + ( + col0 ) ) FROM tab1 AS cor0 ---- 13599 2004 6463 query I rowsort SELECT DISTINCT - + 5 + 27 FROM tab0 AS cor0 ---- 22 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3466 SELECT ALL - CAST( col1 AS SIGNED ) * col1 + + col2 FROM tab2 AS cor0 ---- -251 -3455 -934 skipif mysql # not compatible query I rowsort label-3466 SELECT ALL - CAST ( col1 AS INTEGER ) * col1 + + col2 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT - - 99 AS col1 FROM tab0 AS cor0 ---- 99 99 99 query I rowsort SELECT DISTINCT cor0.col0 + - ( + col1 ) FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL + 22 + col1 * ( col0 * - col1 ) FROM tab1 AS cor0 ---- -13498 -2006 -6378 query I rowsort SELECT DISTINCT - ( - col2 ) + col0 * 65 * - col2 FROM tab0 cor0 ---- -2274 -474288 -51447 query I rowsort SELECT ALL + col1 * - col2 + 57 FROM tab2 AS cor0 ---- -1477 -589 -780 query I rowsort SELECT col0 - - 51 AS col1 FROM tab1 AS cor0 ---- 115 131 54 query I rowsort SELECT ALL + col0 * ( - col0 ) * + col1 + cor0.col2 FROM tab2 AS cor0 ---- -106059 -1492 -358930 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3474 SELECT DISTINCT - + col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3474 SELECT DISTINCT - + col2 * CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 ---- NULL query I rowsort SELECT DISTINCT + - col2 * cor0.col2 * + col2 + col2 FROM tab1 cor0 ---- -157410 -185136 -884640 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * ( + 71 ) + col2 col2 FROM tab1 AS cor0 ---- -3780 -3990 -6720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + cor0.col1 col1 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL - col1 * - 5 * col2 + col0 FROM tab1 AS cor0 ---- 2914 6320 7023 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 23 + + 81 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ef6e63aeed2581a168f07646d258f666 query I rowsort SELECT + col0 + col1 * col0 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT DISTINCT + col2 - - 48 * - col2 FROM tab1 AS cor0 ---- -2538 -2679 -4512 query I rowsort SELECT + col1 * + 50 + 27 AS col0 FROM tab2 AS cor0 ---- 1577 2977 877 onlyif mysql # use DIV operator for integer division query I rowsort label-3483 SELECT ALL col0 DIV - col1 col1 FROM tab1 ---- -6 -6 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3483 SELECT ALL col0 / - col1 col1 FROM tab1 ---- -6 -6 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3484 SELECT col1 DIV + col0 col0 FROM tab2 ---- 0 0 4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3484 SELECT col1 / + col0 col0 FROM tab2 ---- 0 0 4 query I rowsort SELECT DISTINCT - tab0.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-3486 SELECT ALL - col0 DIV col1 + col0 * col1 FROM tab2 ---- 1339 217 4601 skipif mysql # not compatible query I rowsort label-3486 SELECT ALL - col0 / col1 + col0 * col1 FROM tab2 ---- 1339 217 4601 query I rowsort SELECT - col1 * col1 + + col2 + col2 AS col2 FROM tab2 AS cor0 ---- -213 -3429 -907 query I rowsort SELECT ALL - 50 * col0 FROM tab0 AS cor0 ---- -1200 -1750 -4450 query I rowsort SELECT 63 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 38764a6e696d1a6b5095e29ef84959c0 query I rowsort SELECT - tab0.col2 * - ( col0 ) + + col2 * + tab0.col1 AS col1 FROM tab0 ---- 132 14760 3630 query I rowsort SELECT ALL tab0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT + cor0.col2 + - 72 * - col0 FROM tab1 AS cor0 ---- 270 4665 5856 query I rowsort SELECT DISTINCT 23 * - 37 FROM tab1, tab2 AS cor0 ---- -851 query I rowsort SELECT DISTINCT - - cor0.col0 * col0 AS col0 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT + col2 + col2 - - col1 AS col1 FROM tab1 cor0 ---- 124 134 205 query I rowsort SELECT ALL - + col1 * - col1 * cor0.col1 AS col2 FROM tab0 AS cor0 ---- 636056 753571 912673 query I rowsort SELECT + + col0 + - col0 * col2 + - cor0.col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT - col1 * col0 + col1 + col1 * - col2 FROM tab1 AS cor0 ---- -1200 -1456 -2275 query I rowsort SELECT ALL + 11 AS col1 FROM tab0 AS cor0 ---- 11 11 11 query I rowsort SELECT + ( - col2 ) * + col0 + + col1 * + col0 + - col1 * col0 AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 80 - col1 * + col1 col1 FROM tab0 AS cor0 ---- -7316 -8201 -9329 query I rowsort SELECT - col2 * + col1 + col1 + col2 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL + col0 + col2 + col0 FROM tab1 ---- 185 256 60 query I rowsort SELECT + col1 + col0 - - col1 * cor0.col2 FROM tab0 AS cor0 ---- 229 2948 7642 query I rowsort SELECT - cor0.col1 * cor0.col0 + cor0.col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 2f89eda69fa2cad4a45613ed49706fac query I rowsort SELECT DISTINCT - 62 + col0 FROM tab1 ---- -59 18 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 18 * - 29 col0 FROM tab2 AS cor0 ---- -522 -522 -522 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3508 SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3508 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL col0 * - col0 * col0 FROM tab0 AS cor0 ---- -13824 -42875 -704969 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3510 SELECT - CAST( ( col0 ) AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-3510 SELECT - CAST ( ( col0 ) AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT cor0.col0 * 13 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 5f7729099a7a1ec77ed9570d8cdd3d45 query I rowsort SELECT 70 * ( - col0 ) + + col1 * + col1 AS col2 FROM tab0 ---- 2051 5716 6959 query I rowsort SELECT DISTINCT ( + 99 ) AS col1 FROM tab1 ---- 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3514 SELECT ALL + CAST( NULL AS SIGNED ) * + 1 * + col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3514 SELECT ALL + CAST ( NULL AS INTEGER ) * + 1 * + col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - 53 + 67 FROM tab2 ---- 14 14 14 query I rowsort SELECT DISTINCT 85 * - col0 AS col1 FROM tab0 AS cor0 ---- -2040 -2975 -7565 query I rowsort SELECT ALL + 55 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0 query I rowsort SELECT + 13 + col1 * col0 FROM tab2 AS cor0 ---- 1356 230 4615 query I rowsort SELECT ALL - 51 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- -357 -3978 -4029 query III rowsort SELECT * FROM tab1 WHERE col0 NOT BETWEEN col1 * col1 - - col0 * col0 AND NULL ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query III rowsort SELECT DISTINCT * FROM tab0 WHERE col2 >= NULL ---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col1 * col2 ) ---- query I rowsort SELECT + col0 * + cor0.col1 + - col0 FROM tab1 AS cor0 ---- 576 75 960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - col2 col0 FROM tab2 AS cor0 ---- -21 33 4 onlyif mysql # use DIV operator for integer division query I rowsort label-3525 SELECT ALL cor0.col2 * + 74 + - col2 + col2 DIV - 90 FROM tab1 AS cor0 ---- 3942 4161 7007 skipif mysql # not compatible query I rowsort label-3525 SELECT ALL cor0.col2 * + 74 + - col2 + col2 / - 90 FROM tab1 AS cor0 ---- 3942 4161 7007 query I rowsort SELECT DISTINCT - col2 + - 64 FROM tab1 AS cor0 ---- -118 -121 -160 query I rowsort SELECT DISTINCT + 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 72 query I rowsort SELECT ALL + + col0 + 52 AS col2 FROM tab2 cor0 ---- 130 131 59 query I rowsort SELECT ALL + col2 * + 19 FROM tab1 AS cor0 ---- 1026 1083 1824 query I rowsort SELECT DISTINCT col1 * 60 * + col1 AS col1 FROM tab2 AS cor0 ---- 17340 208860 57660 onlyif mysql # use DIV operator for integer division query I rowsort label-3531 SELECT ALL col0 DIV 79 FROM tab0 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3531 SELECT ALL col0 / 79 FROM tab0 cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT - - ( col2 ) + 23 FROM tab0 AS cor0 ---- 105 24 56 query I rowsort SELECT - col0 * + col1 * + col1 + - 48 FROM tab2 AS cor0 ---- -22879 -271566 -6775 onlyif mysql # use DIV operator for integer division query I rowsort label-3534 SELECT + - col1 DIV col2 + ( + col0 ) AS col1 FROM tab0 AS cor0 ---- -62 22 88 skipif mysql # not compatible query I rowsort label-3534 SELECT + - col1 / col2 + ( + col0 ) AS col1 FROM tab0 AS cor0 ---- -62 22 88 query I rowsort SELECT DISTINCT + col2 - 18 FROM tab0 ---- -17 15 64 onlyif mysql # use DIV operator for integer division query I rowsort label-3536 SELECT ( - ( tab2.col1 ) ) DIV col0 + + col1 - - col1 FROM tab2 ---- 118 34 58 skipif mysql # not compatible query I rowsort label-3536 SELECT ( - ( tab2.col1 ) ) / col0 + + col1 - - col1 FROM tab2 ---- 118 34 58 query I rowsort SELECT 21 + + 17 AS col1 FROM tab1 ---- 38 38 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3538 SELECT ALL CAST( + col0 AS SIGNED ) - + col0 AS col1 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3538 SELECT ALL CAST ( + col0 AS INTEGER ) - + col0 AS col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT tab2.col1 + - col1 * 90 AS col0 FROM tab2 ---- -1513 -2759 -5251 query I rowsort SELECT - col0 + - col0 + - col2 * col1 FROM tab0 AS cor0 ---- -167 -2886 -7640 query I rowsort SELECT ALL + 95 * - col2 FROM tab2 AS cor0 ---- -2470 -2565 -3610 query I rowsort SELECT DISTINCT col1 + + col2 + + col1 FROM tab2 AS cor0 ---- 144 72 89 query I rowsort SELECT tab0.col1 * cor0.col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd query I rowsort SELECT + - 86 * col0 + - col2 FROM tab2 AS cor0 ---- -629 -6734 -6832 query I rowsort SELECT ( - col1 ) * + 85 + col0 * col1 AS col0 FROM tab0 AS cor0 ---- -4850 -5246 364 query I rowsort SELECT - col0 * col2 * - tab0.col1 + - col1 * tab0.col0 AS col2 FROM tab0 ---- 0 656019 66048 query I rowsort SELECT DISTINCT 44 + col1 AS col1 FROM tab0 ---- 130 135 141 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 44 + col2 col1 FROM tab2 ---- -17 -18 -6 query I rowsort SELECT DISTINCT - col1 * + col2 + + col1 * - col2 FROM tab2 ---- -1292 -1674 -3068 query I rowsort SELECT ALL + - 29 * cor0.col0 FROM tab1 AS cor0 ---- -1856 -2320 -87 query I rowsort SELECT ALL + 70 * + col2 + - 45 + ( + col0 ) AS col0 FROM tab0 AS cor0 ---- 2289 5784 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col1 * + col2 col2 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT col1 * + col1 * + col2 FROM tab2 ---- 10982 25947 90506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3554 SELECT DISTINCT + 40 / col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3554 SELECT DISTINCT + 40 / col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 ---- NULL query I rowsort SELECT DISTINCT + col0 + + 92 AS col1 FROM tab2 AS cor0 ---- 170 171 99 query I rowsort SELECT col1 * ( + 36 ) AS col1 FROM tab1 AS cor0 ---- 360 468 936 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3557 SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) + col1 col0 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3557 SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) + col1 col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL col2 * 30 * - 65 + + col0 AS col2 FROM tab2 AS cor0 ---- -50622 -52643 -74021 onlyif mysql # use DIV operator for integer division query I rowsort label-3559 SELECT - col1 DIV 64 + - col0 FROM tab0 AS cor0 ---- -25 -36 -90 skipif mysql # not compatible query I rowsort label-3559 SELECT - col1 / 64 + - col0 FROM tab0 AS cor0 ---- -25 -36 -90 query I rowsort SELECT + col0 + ( col1 ) AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT + col2 * 46 AS col0 FROM tab0 AS cor0 ---- 1518 3772 46 query I rowsort SELECT ALL - col0 - ( + col2 ) FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT - col0 + 34 * col1 * - cor0.col1 FROM tab0 AS cor0 ---- -251488 -281643 -319941 onlyif mysql # use DIV operator for integer division query I rowsort label-3564 SELECT ALL - col1 DIV cor0.col1 + col1 FROM tab2 cor0 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-3564 SELECT ALL - col1 / cor0.col1 + col1 FROM tab2 cor0 ---- 16 30 58 onlyif mysql # use DIV operator for integer division query I rowsort label-3565 SELECT ALL + 71 DIV - col2 + col1 AS col2 FROM tab1 ---- 13 25 9 skipif mysql # not compatible query I rowsort label-3565 SELECT ALL + 71 / - col2 + col1 AS col2 FROM tab1 ---- 13 25 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 11 * - col2 col0 FROM tab2 AS cor0 ---- -286 -297 -418 query I rowsort SELECT 18 + 32 AS col1 FROM tab1 ---- 50 50 50 query I rowsort SELECT DISTINCT + 14 * + 33 + - col0 * + col2 AS col1 FROM tab1 cor0 ---- -3186 -7218 300 query I rowsort SELECT DISTINCT col1 + 5 * col0 * - col1 FROM tab1 AS cor0 ---- -3190 -364 -5187 query I rowsort SELECT ALL 69 + + col2 * col0 FROM tab1 AS cor0 ---- 231 3717 7749 onlyif mysql # use DIV operator for integer division query I rowsort label-3571 SELECT DISTINCT 54 DIV ( col2 ) AS col0 FROM tab1 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-3571 SELECT DISTINCT 54 / ( col2 ) AS col0 FROM tab1 AS cor0 ---- 0 1 query I rowsort SELECT ALL 67 AS col1 FROM tab0 AS cor0 ---- 67 67 67 query I rowsort SELECT + cor0.col0 * - 32 AS col0 FROM tab1 AS cor0 ---- -2048 -2560 -96 query I rowsort SELECT DISTINCT - - col1 + 28 AS col1 FROM tab2 AS cor0 ---- 45 59 87 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3575 SELECT DISTINCT - col0 + ( cor0.col1 ) * CAST( col0 AS SIGNED ) FROM tab0 AS cor0 ---- 2040 3360 8010 skipif mysql # not compatible query I rowsort label-3575 SELECT DISTINCT - col0 + ( cor0.col1 ) * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 ---- 2040 3360 8010 query I rowsort SELECT ALL 98 * - col1 AS col0 FROM tab2 AS cor0 ---- -1666 -3038 -5782 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3577 SELECT ALL - + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-3577 SELECT ALL - + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT - - 8 AS col1 FROM tab1 cor0 ---- 8 query I rowsort SELECT ALL - - 24 * + col1 AS col0 FROM tab1 AS cor0 ---- 240 312 624 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 92 + ( col0 ) * + cor0.col2 col0 FROM tab0 AS cor0 ---- 127 7390 884 query I rowsort SELECT ALL + col1 * 77 AS col0 FROM tab2 AS cor0 ---- 1309 2387 4543 query I rowsort SELECT + 38 + col0 * + col1 AS col2 FROM tab1 AS cor0 ---- 1078 116 678 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 79 * col2 + - ( ( - col0 ) ) col1 FROM tab2 AS cor0 ---- 2132 2140 3081 query I rowsort SELECT DISTINCT 78 * col0 + 51 FROM tab0 AS cor0 ---- 1923 2781 6993 query I rowsort SELECT col0 * col1 + + 50 AS col2 FROM tab1 cor0 ---- 1090 128 690 onlyif mysql # use DIV operator for integer division query I rowsort label-3586 SELECT - col1 DIV col2 - - ( 28 ) FROM tab0 AS cor0 ---- -69 26 27 skipif mysql # not compatible query I rowsort label-3586 SELECT - col1 / col2 - - ( 28 ) FROM tab0 AS cor0 ---- -69 26 27 query I rowsort SELECT DISTINCT + - 39 - col1 FROM tab1 AS cor0 ---- -49 -52 -65 query I rowsort SELECT - 53 + col1 FROM tab2 AS cor0 ---- -22 -36 6 query I rowsort SELECT DISTINCT + 86 + col2 * col2 + - 52 AS col2 FROM tab2 cor0 ---- 1478 710 763 query I rowsort SELECT + col0 * col0 - - col1 FROM tab2 ---- 6143 6258 80 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2, tab2 AS cor1 ---- 3645 values hashing to bb6428239bf7f3ea361f6a10500a581d query I rowsort SELECT ALL ( - col2 ) AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT - + 32 * + col2 * + col0 FROM tab0 AS cor0 ---- -1120 -233536 -25344 query I rowsort SELECT + - col0 * cor0.col2 AS col0 FROM tab2 cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-3595 SELECT DISTINCT 77 DIV + 91 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-3595 SELECT DISTINCT 77 / + 91 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT + + 37 * - col2 AS col0 FROM tab1 AS cor0 ---- -1998 -2109 -3552 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 21 col1 FROM tab1 AS cor0 ---- -21 -21 -21 query I rowsort SELECT + cor0.col1 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT DISTINCT + 84 * - cor0.col2 + 67 AS col2 FROM tab1 AS cor0 ---- -4469 -4721 -7997 query I rowsort SELECT col1 * - col1 + 30 FROM tab1 AS cor0 ---- -139 -646 -70 query I rowsort SELECT DISTINCT tab2.col1 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2 ---- 17 31 59 query I rowsort SELECT ALL + col0 * + 97 + col1 FROM tab2 AS cor0 ---- 710 7625 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 + 84 * + 55 col0 FROM tab1 cor0 ---- 4630 4633 4646 onlyif mysql # use DIV operator for integer division query I rowsort label-3604 SELECT ALL + col1 + + cor0.col1 DIV - col1 col0 FROM tab0 AS cor0 ---- 85 90 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3604 SELECT ALL + col1 + + cor0.col1 / - col1 col0 FROM tab0 AS cor0 ---- 85 90 96 query I rowsort SELECT DISTINCT - 4 FROM tab1, tab0 AS cor0, tab1 cor1 ---- -4 query I rowsort SELECT + cor0.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT + - col0 * + col1 + col2 * col1 FROM tab1 AS cor0 ---- -70 1326 208 query I rowsort SELECT ALL + 33 + 90 * cor0.col2 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cb0a0537abdaf41c474a6eff790ffe28 onlyif mysql # use DIV operator for integer division query I rowsort label-3609 SELECT cor0.col1 * CAST( - col0 AS SIGNED ) + col1 + col0 DIV col0 AS col1 FROM tab0 AS cor0 ---- -1977 -3297 -8007 skipif mysql # not compatible query I rowsort label-3609 SELECT cor0.col1 * CAST ( - col0 AS INTEGER ) + col1 + col0 / col0 AS col1 FROM tab0 AS cor0 ---- -1977 -3297 -8007 query I rowsort SELECT ALL tab2.col0 + - tab2.col2 * ( - tab2.col1 ) AS col2 FROM tab2 ---- 1612 725 844 onlyif mysql # use DIV operator for integer division query I rowsort label-3611 SELECT DISTINCT - col0 DIV - ( + col1 ) + - col0 col1 FROM tab0 AS cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3611 SELECT DISTINCT - col0 / - ( + col1 ) + - col0 col1 FROM tab0 AS cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col1 * 25 * col2 col2 FROM tab0 AS cor0 ---- 186459 2328 70864 query I rowsort SELECT ALL - tab0.col0 * - col2 * - col1 AS col2 FROM tab0 ---- -3395 -664118 -68112 onlyif mysql # use DIV operator for integer division query I rowsort label-3614 SELECT DISTINCT col0 * + col2 DIV + col2 AS col0 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3614 SELECT DISTINCT col0 * + col2 / + col2 AS col0 FROM tab0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-3615 SELECT tab0.col1 DIV col0 + col1 AS col1 FROM tab0 ---- 89 92 99 skipif mysql # not compatible query I rowsort label-3615 SELECT tab0.col1 / col0 + col1 AS col1 FROM tab0 ---- 89 92 99 query I rowsort SELECT - + col1 + - col1 * + col0 AS col1 FROM tab2 cor0 ---- -1360 -248 -4661 query I rowsort SELECT + - col1 * 93 AS col0 FROM tab1 cor0 ---- -1209 -2418 -930 query I rowsort SELECT + col2 * 47 AS col2 FROM tab0 AS cor0 ---- 1551 3854 47 query I rowsort SELECT + - 7 * col1 FROM tab0 AS cor0 ---- -602 -637 -679 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3620 SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-3620 SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 ---- NULL query I rowsort SELECT ALL + - cor0.col2 AS col2 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + col1 * col1 col2 FROM tab2 ---- 22831 271518 6727 query I rowsort SELECT - 90 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to f6f26b9a04da14807208b93d507095c5 query I rowsort SELECT - + ( + col0 ) * col1 + 36 AS col0 FROM tab2 AS cor0 ---- -1307 -181 -4566 query I rowsort SELECT - col2 + - col0 + - col2 FROM tab0 AS cor0 ---- -253 -37 -90 query I rowsort SELECT + + 26 * + 76 + - col1 FROM tab0 AS cor0 ---- 1879 1885 1890 query I rowsort SELECT DISTINCT + 73 * + cor2.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2 ---- 511 5694 5767 query I rowsort SELECT + 65 AS col0 FROM tab1 ---- 65 65 65 query I rowsort SELECT - ( - 51 ) * col0 AS col0 FROM tab2 AS cor0 ---- 357 3978 4029 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3630 SELECT DISTINCT CAST( NULL AS SIGNED ) / col1 + col0 AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-3630 SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 + col0 AS col0 FROM tab1 ---- NULL query I rowsort SELECT + 67 - + col0 FROM tab2 ---- -11 -12 60 query I rowsort SELECT ALL ( + tab2.col1 ) + + col2 FROM tab2 ---- 55 58 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( col2 * + ( col0 ) ) col2 FROM tab0 ---- 35 7298 792 query I rowsort SELECT 14 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 409c1790b702540dd9dc067c1965b7c0 query I rowsort SELECT ALL col1 + + col1 * + ( col2 ) AS col2 FROM tab0 ---- 194 2924 7553 query I rowsort SELECT ALL + 5 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 6035628694bdea36f584f3649088551d query I rowsort SELECT cor0.col1 * 79 + col1 FROM tab2 AS cor0 ---- 1360 2480 4720 onlyif mysql # use DIV operator for integer division query I rowsort label-3638 SELECT + col1 DIV - col2 - + 38 * + col0 FROM tab1 AS cor0 ---- -114 -2432 -3040 skipif mysql # not compatible query I rowsort label-3638 SELECT + col1 / - col2 - + 38 * + col0 FROM tab1 AS cor0 ---- -114 -2432 -3040 onlyif mysql # use DIV operator for integer division query I rowsort label-3639 SELECT col0 DIV 44 + ( col2 * CAST( 63 AS SIGNED ) ) col1 FROM tab1 cor0 ---- 3402 3592 6049 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3639 SELECT col0 / 44 + ( col2 * CAST ( 63 AS INTEGER ) ) col1 FROM tab1 cor0 ---- 3402 3592 6049 skipif mysql # not compatible query I rowsort SELECT + col2 - + CAST ( col2 AS REAL ) * col0 AS col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT - + col2 * 50 + + col2 AS col0 FROM tab1 cor0 ---- -2646 -2793 -4704 query I rowsort SELECT - 51 + + tab1.col0 FROM tab1 ---- -48 13 29 query I rowsort SELECT - + col1 + + col0 AS col2 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT + 0 - col0 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT DISTINCT + cor0.col2 + - col1 * 20 * 25 FROM tab1 cor0 ---- -12946 -4943 -6404 query I rowsort SELECT ALL + col2 + col2 * - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT ALL cor0.col1 + col2 * - cor0.col2 FROM tab0 AS cor0 ---- -1003 -6633 96 query I rowsort SELECT + + col0 * ( - 25 ) FROM tab1 AS cor0 ---- -1600 -2000 -75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 col2 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT - col2 + col1 + + col1 FROM tab0 AS cor0 ---- 100 139 193 query I rowsort SELECT - cor0.col0 + 3 * + col0 * col2 FROM tab2 AS cor0 ---- 560 6006 8927 onlyif mysql # use DIV operator for integer division query I rowsort label-3652 SELECT col0 + - col1 DIV - col0 AS col0 FROM tab1 cor0 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-3652 SELECT col0 + - col1 / - col0 AS col0 FROM tab1 cor0 ---- 11 64 80 query I rowsort SELECT ( - col0 ) + + col2 AS col1 FROM tab1 ---- -7 16 51 query I rowsort SELECT - 3 - col2 FROM tab1 ---- -57 -60 -99 query I rowsort SELECT DISTINCT col0 * + col2 + 20 FROM tab2 ---- 2048 209 3022 query I rowsort SELECT DISTINCT - tab2.col1 + tab2.col2 AS col0 FROM tab2 ---- -33 -4 21 query I rowsort SELECT DISTINCT 51 + - col0 AS col0 FROM tab0 ---- -38 16 27 onlyif mysql # use DIV operator for integer division query I rowsort label-3658 SELECT DISTINCT 46 DIV tab1.col0 FROM tab1 ---- 0 15 skipif mysql # not compatible query I rowsort label-3658 SELECT DISTINCT 46 / tab1.col0 FROM tab1 ---- 0 15 query I rowsort SELECT + 6 AS col2 FROM tab0 ---- 6 6 6 query I rowsort SELECT + tab2.col2 * - col1 + col0 + - col1 FROM tab2 ---- -1515 -584 -861 query I rowsort SELECT ALL col1 + col0 * col0 AS col1 FROM tab1 ---- 35 4106 6413 query I rowsort SELECT - col1 * col1 * tab2.col0 AS col1 FROM tab2 ---- -22831 -271518 -6727 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * tab2.col1 col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT tab1.col2 * col2 * - col2 AS col2 FROM tab1 ---- -157464 -185193 -884736 query III rowsort SELECT * FROM tab0 WHERE NULL <= ( + tab0.col0 ) ---- query I rowsort SELECT col0 * - col2 * - col0 FROM tab1 ---- 233472 486 614400 query I rowsort SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT NULL <> ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-3668 SELECT - col0 DIV col0 + - col2 * col1 FROM tab1 ---- -1249 -1405 -571 skipif mysql # not compatible query I rowsort label-3668 SELECT - col0 / col0 + - col2 * col1 FROM tab1 ---- -1249 -1405 -571 query I rowsort SELECT DISTINCT - col0 * - col2 * col0 FROM tab2 ---- 1323 158184 237158 query I rowsort SELECT DISTINCT + col1 + col0 + col0 * col2 FROM tab1 ---- 191 3722 7773 query III rowsort SELECT ALL * FROM tab1 WHERE col0 + col2 * col0 IN ( col2 + + tab1.col2 * - col0 + - col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-3672 SELECT col0 DIV col1 - - col0 FROM tab2 ---- 7 79 83 skipif mysql # not compatible query I rowsort label-3672 SELECT col0 / col1 - - col0 FROM tab2 ---- 7 79 83 onlyif mysql # use DIV operator for integer division query I rowsort label-3673 SELECT ALL col1 + - col0 DIV col2 AS col2 FROM tab0 ---- 62 86 90 skipif mysql # not compatible query I rowsort label-3673 SELECT ALL col1 + - col0 / col2 AS col2 FROM tab0 ---- 62 86 90 query I rowsort SELECT col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2 ---- query I rowsort SELECT ALL col0 + col1 * - tab1.col1 FROM tab1 ---- -36 -673 -89 query I rowsort SELECT ALL col1 * + col2 + - col1 FROM tab0 ---- 0 2752 7371 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + col2 IN ( + col1 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT - col0 * - col0 AS col2 FROM tab0 WHERE col2 * - col0 NOT BETWEEN col1 AND col2 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-3679 SELECT ALL + tab1.col0 + col0 DIV + col0 FROM tab1 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-3679 SELECT ALL + tab1.col0 + col0 / + col0 FROM tab1 ---- 4 65 81 onlyif mysql # use DIV operator for integer division query I rowsort label-3680 SELECT DISTINCT tab0.col0 DIV - col1 AS col0 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-3680 SELECT DISTINCT tab0.col0 / - col1 AS col0 FROM tab0 ---- 0 query I rowsort SELECT + col0 + + col0 + col0 * - col1 * tab2.col1 FROM tab2 ---- -22673 -271362 -6713 query I rowsort SELECT + - col1 * cor0.col0 * ( + col0 ) AS col1 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT ALL + col1 * - col0 * - tab0.col1 AS col2 FROM tab0 ---- 177504 329315 737009 onlyif mysql # use DIV operator for integer division query I rowsort label-3684 SELECT ALL col2 * col1 DIV col2 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-3684 SELECT ALL col2 * col1 / col2 FROM tab1 ---- 10 13 26 query I rowsort SELECT DISTINCT - tab1.col1 * col0 AS col2 FROM tab1 WHERE NOT NULL IN ( col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-3686 SELECT ALL + col2 DIV col0 AS col1 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3686 SELECT ALL + col2 / col0 AS col1 FROM tab0 ---- 0 0 1 query I rowsort SELECT DISTINCT + col0 + + col2 + col2 AS col0 FROM tab1 ---- 111 178 272 query I rowsort SELECT col0 + col0 * - col1 - + tab2.col2 AS col1 FROM tab2 ---- -1302 -237 -4550 onlyif mysql # use DIV operator for integer division query I rowsort label-3689 SELECT ALL + tab1.col2 DIV col0 AS col0 FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-3689 SELECT ALL + tab1.col2 / col0 AS col0 FROM tab1 ---- 0 1 18 query I rowsort SELECT - col0 * col1 + col0 FROM tab1 ---- -576 -75 -960 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3691 SELECT ALL + col0 + + col0 + - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3691 SELECT ALL + col0 + + col0 + - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - 72 + col0 AS col2 FROM tab0 AS cor0 ---- -37 -48 17 query I rowsort SELECT ALL + col1 - - col1 * col2 AS col0 FROM tab2 ---- 1593 663 868 query I rowsort SELECT DISTINCT - + col2 + + cor0.col2 FROM tab0 cor0 ---- 0 query I rowsort SELECT ALL + col0 * col2 + - col2 * - col1 FROM tab0 AS cor0 ---- 132 14760 3630 onlyif mysql # use DIV operator for integer division query I rowsort label-3696 SELECT - tab1.col0 DIV - 49 + - col0 + tab1.col2 AS col2 FROM tab1 ---- -6 17 51 skipif mysql # not compatible query I rowsort label-3696 SELECT - tab1.col0 / - 49 + - col0 + tab1.col2 AS col2 FROM tab1 ---- -6 17 51 query I rowsort SELECT - 26 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 47d0574274146de273829785364ada39 onlyif mysql # use DIV operator for integer division query I rowsort label-3698 SELECT DISTINCT + cor0.col2 DIV cor0.col0 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-3698 SELECT DISTINCT + cor0.col2 / cor0.col0 FROM tab0 AS cor0 ---- 0 1 query I rowsort SELECT + col0 * - col0 + - 94 AS col1 FROM tab1 AS cor0 ---- -103 -4190 -6494 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 59 * col0 + + col1 * col1 col1 FROM tab0 AS cor0 ---- 3030 5980 7344 query I rowsort SELECT ALL - col2 * + col2 * - ( cor0.col1 ) AS col2 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT DISTINCT - - cor0.col1 * - cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT ALL col0 + - col0 + + col1 AS col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT + 15 + - cor0.col2 FROM tab0 AS cor0 ---- -18 -67 14 query I rowsort SELECT DISTINCT - 47 - col2 FROM tab0 AS cor0 ---- -129 -48 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-3706 SELECT DISTINCT - 59 DIV col1 + + col1 DIV + 11 FROM tab2 AS cor0 ---- -2 1 4 skipif mysql # not compatible query I rowsort label-3706 SELECT DISTINCT - 59 / col1 + + col1 / + 11 FROM tab2 AS cor0 ---- -2 1 4 query I rowsort SELECT 0 * col1 * 41 AS col1 FROM tab0 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 - - cor0.col2 col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 49 * col0 FROM tab2 cor0 ---- 343 3822 3871 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * - tab2.col1 + 9 col0 FROM tab2 ---- -280 -3472 -952 query I rowsort SELECT - col2 * + 49 * col1 AS col2 FROM tab1 AS cor0 ---- -27930 -61152 -68796 query I rowsort SELECT + col2 * - col0 + - col1 AS col0 FROM tab1 AS cor0 ---- -188 -3658 -7693 query I rowsort SELECT DISTINCT - + col0 + col1 * + col0 FROM tab0 cor0 ---- 2040 3360 8010 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3714 SELECT DISTINCT + - col1 * + ( col1 ) + col1 + CAST( NULL AS SIGNED ) * col0 * + cor0.col0 col2 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3714 SELECT DISTINCT + - col1 * + ( col1 ) + col1 + CAST ( NULL AS INTEGER ) * col0 * + cor0.col0 col2 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * col1 * 31 col1 FROM tab2 AS cor0 ---- 107911 29791 8959 query I rowsort SELECT ALL + 61 * + col0 * cor0.col0 + col1 * + col0 FROM tab2 cor0 ---- 3206 375726 382044 query I rowsort SELECT DISTINCT ( 71 ) * col2 + ( cor0.col1 ) + col1 * - cor0.col2 FROM tab2 AS cor0 ---- 1111 2069 371 query I rowsort SELECT DISTINCT ( - 54 ) FROM tab0 ---- -54 skipif mysql # not compatible query I rowsort SELECT + CAST ( col2 AS REAL ) FROM tab2 cor0 ---- 26 27 38 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-3721 SELECT DISTINCT - + 77 DIV cor0.col0 + col0 * - col0 FROM tab2 AS cor0 ---- -60 -6084 -6241 skipif mysql # not compatible query I rowsort label-3721 SELECT DISTINCT - + 77 / cor0.col0 + col0 * - col0 FROM tab2 AS cor0 ---- -60 -6084 -6241 query I rowsort SELECT DISTINCT + col1 + + col2 * cor0.col1 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT - 66 + cor0.col1 FROM tab1 AS cor0 ---- -40 -53 -56 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col1 * 7 col1 FROM tab0 AS cor0 ---- -602 -637 -679 query I rowsort SELECT DISTINCT + 95 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 95 query I rowsort SELECT DISTINCT - - 99 * + cor0.col0 * 82 FROM tab0, tab1, tab1 AS cor0 ---- 24354 519552 649440 query I rowsort SELECT 46 * tab1.col2 FROM tab1 ---- 2484 2622 4416 query I rowsort SELECT + col0 * + 84 * col2 AS col1 FROM tab0 cor0 ---- 2940 613032 66528 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2 ---- 972 values hashing to 0a9194f200a4220e419d35c461f9fcfe query I rowsort SELECT - - col1 * - ( col1 ) FROM tab1 AS cor0 ---- -100 -169 -676 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2 ---- 3645 values hashing to 773bb916e463ebc075d701108532badb onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3732 SELECT DISTINCT + CAST( 69 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0 ---- 102 151 70 skipif mysql # not compatible query I rowsort label-3732 SELECT DISTINCT + CAST ( 69 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0 ---- 102 151 70 query I rowsort SELECT col2 * - col1 + - col2 + + ( + 83 ) FROM tab2 cor0 ---- -1477 -601 -781 query I rowsort SELECT ALL + + col2 + + ( + col2 ) AS col0 FROM tab1 cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT + - 10 + + cor0.col0 AS col0 FROM tab0 cor0 ---- 14 25 79 query I rowsort SELECT + col2 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT DISTINCT + - col0 * - col0 + - col1 AS col1 FROM tab2 AS cor0 ---- 18 6025 6224 query I rowsort SELECT ALL + ( col0 ) + + col0 * 28 AS col2 FROM tab2 AS cor0 ---- 203 2262 2291 query I rowsort SELECT - + 92 * - col0 - + col1 FROM tab1 AS cor0 ---- 250 5878 7347 query I rowsort SELECT DISTINCT + col2 * - cor0.col1 + ( - 84 ) + + col2 FROM tab1 AS cor0 ---- -1236 -1434 -597 query I rowsort SELECT - 83 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to d55748f39f403ec273099c0d87b0bfbb query I rowsort SELECT 48 FROM tab1, tab1 cor0 ---- 9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b query I rowsort SELECT + col2 + col2 * 78 FROM tab1 AS cor0 ---- 4266 4503 7584 query I rowsort SELECT + col0 * + col2 + ( 35 ) * cor0.col0 FROM tab1 AS cor0 ---- 10480 267 5888 query I rowsort SELECT DISTINCT - col0 * col2 * - 25 + col2 FROM tab1 ---- 192096 4104 91257 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 14 col0 FROM tab0 cor0 ---- 14 14 14 query I rowsort SELECT - col2 + + col2 + 74 AS col0 FROM tab1 AS cor0 ---- 74 74 74 query I rowsort SELECT col2 * col0 + col2 + ( col2 ) * col2 FROM tab2 cor0 ---- 2730 4484 945 query I rowsort SELECT + col0 * - col2 - col2 AS col1 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT DISTINCT - + 85 FROM tab1 AS cor0 ---- -85 query I rowsort SELECT + col1 * col2 * + ( + 34 ) FROM tab2 AS cor0 ---- 21964 28458 52156 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( col1 ) col1 FROM tab0 cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-3753 SELECT ( - col1 ) - - 43 DIV + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -10 -12 -13 skipif mysql # not compatible query I rowsort label-3753 SELECT ( - col1 ) - - 43 / + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -10 -12 -13 query I rowsort SELECT DISTINCT + - cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2 ---- -10 -13 -26 query I rowsort SELECT - col1 * - 27 + col2 AS col0 FROM tab1 cor0 ---- 327 447 756 query I rowsort SELECT DISTINCT - col2 * col1 + + 82 * - col2 - - col2 * - col1 AS col1 FROM tab0 AS cor0 ---- -21648 -276 -8382 query I rowsort SELECT ALL - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to b5a4102107e5ebd26e341538f4fede1e query I rowsort SELECT - ( col2 * - 57 ) FROM tab2 ---- 1482 1539 2166 onlyif mysql # use DIV operator for integer division query I rowsort label-3759 SELECT - + col0 + + cor0.col0 DIV + cor0.col1 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-3759 SELECT - + col0 + + cor0.col0 / + cor0.col1 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-3760 SELECT ( 47 ) DIV col1 AS col1 FROM tab1 AS cor0 ---- 1 3 4 skipif mysql # not compatible query I rowsort label-3760 SELECT ( 47 ) / col1 AS col1 FROM tab1 AS cor0 ---- 1 3 4 query I rowsort SELECT ALL - cor0.col2 FROM tab1, tab0 cor0, tab0, tab1 AS cor1 ---- 81 values hashing to 87af467938ef355540b8de24db1bf3b8 query I rowsort SELECT + tab0.col1 + - tab0.col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6 onlyif mysql # use DIV operator for integer division query I rowsort label-3763 SELECT + 0 DIV + col2 AS col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3763 SELECT + 0 / + col2 AS col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3764 SELECT DISTINCT col0 DIV 61 AS col0 FROM tab2 ---- 0 1 skipif mysql # not compatible query I rowsort label-3764 SELECT DISTINCT col0 / 61 AS col0 FROM tab2 ---- 0 1 query I rowsort SELECT ALL + 31 * cor0.col0 FROM tab2 cor0 ---- 217 2418 2449 query I rowsort SELECT + 10 + tab0.col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 24c26605033a0df541155182699cad42 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3767 SELECT DISTINCT - CAST( + 33 AS SIGNED ) + + cor0.col1 AS col0 FROM tab1, tab0, tab1 AS cor0 ---- -20 -23 -7 skipif mysql # not compatible query I rowsort label-3767 SELECT DISTINCT - CAST ( + 33 AS INTEGER ) + + cor0.col1 AS col0 FROM tab1, tab0, tab1 AS cor0 ---- -20 -23 -7 query I rowsort SELECT ALL cor0.col1 + cor0.col0 AS col2 FROM tab2 cor0 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col2 * 66 - - col2 col0 FROM tab0 AS cor0 ---- -2145 -5330 -65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3770 SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3770 SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0 ---- NULL query I rowsort SELECT 83 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 002a717a3d902d97220759065fb107c3 query I rowsort SELECT + col1 + col0 * + 11 FROM tab0 AS cor0 ---- 1070 350 482 query I rowsort SELECT ALL - 1 + + 33 AS col0 FROM tab1 cor0 ---- 32 32 32 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 18 col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 09afafec657a5e9f082beb6a16ec85de query I rowsort SELECT 84 * col2 + col0 * col2 + - col0 * col0 FROM tab1 ---- 4340 4689 9344 query I rowsort SELECT col0 * - 60 + col1 AS col2 FROM tab0 AS cor0 ---- -1354 -2003 -5249 onlyif mysql # use DIV operator for integer division query I rowsort label-3777 SELECT ALL - col0 DIV col1 + + col0 AS col0 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3777 SELECT ALL - col0 / col1 + + col0 AS col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + col2 * col1 - + col0 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT - 38 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to e571541ae40cb0ddaca16e11f4359507 onlyif mysql # use DIV operator for integer division query I rowsort label-3780 SELECT + + col2 + 6 DIV + col2 AS col1 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-3780 SELECT + + col2 + 6 / + col2 AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT ( col1 ) * col0 * 10 - - col1 AS col0 FROM tab0 AS cor0 ---- 20726 34047 81081 query I rowsort SELECT ALL + 54 * + 49 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7f7601dbe86259ac1be0ba24c74ff480 query I rowsort SELECT DISTINCT - tab1.col2 * - ( 52 + + cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8d87aec551ceee4f20b11b53ccb8bf3b query I rowsort SELECT + 92 + - col1 FROM tab2 ---- 33 61 75 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3785 SELECT + tab1.col0 * - CAST( + 89 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cb10cde269b3bc987dceeadbf879a2a0 skipif mysql # not compatible query I rowsort label-3785 SELECT + tab1.col0 * - CAST ( + 89 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cb10cde269b3bc987dceeadbf879a2a0 query I rowsort SELECT - col2 + col0 * ( + col1 ) * col2 AS col0 FROM tab1 AS cor0 ---- 36423 4158 99744 query I rowsort SELECT 75 * col1 AS col2 FROM tab2 AS cor0 ---- 1275 2325 4425 query I rowsort SELECT + 90 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to 96f7a90428db93f472e0d219bab64853 query I rowsort SELECT ALL - + col2 + ( + col1 ) - - col0 AS col0 FROM tab0 AS cor0 ---- 131 77 98 query I rowsort SELECT - + col0 * 37 FROM tab2 AS cor0 ---- -259 -2886 -2923 query I rowsort SELECT DISTINCT col2 * 16 AS col0 FROM tab1 AS cor0 ---- 1536 864 912 query I rowsort SELECT + - col1 + col2 * + 36 AS col2 FROM tab0 cor0 ---- -61 1102 2861 query I rowsort SELECT DISTINCT - - col1 * col0 AS col2 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - cor0.col1 + ( cor0.col0 + col0 ) FROM tab0 AS cor0 ---- -27 -38 87 query I rowsort SELECT DISTINCT 34 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 + - ( + col2 ) * col0 col0 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT DISTINCT + + cor0.col1 + - col2 - + col0 AS col0 FROM tab2 cor0 ---- -100 -3 -45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3798 SELECT DISTINCT col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-3798 SELECT DISTINCT col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT + col1 * - 70 AS col0 FROM tab1 AS cor0 ---- -1820 -700 -910 onlyif mysql # use DIV operator for integer division query I rowsort label-3800 SELECT DISTINCT col1 DIV - 35 FROM tab2 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-3800 SELECT DISTINCT col1 / - 35 FROM tab2 AS cor0 ---- -1 0 query I rowsort SELECT DISTINCT col0 * + col0 * + col2 FROM tab2 AS cor0 ---- 1323 158184 237158 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3802 SELECT + + col1 + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3802 SELECT + + col1 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( col2 ) * cor0.col1 + col2 + col0 AS col1 FROM tab0 AS cor0 ---- -2781 -61 -7291 query I rowsort SELECT + 13 * ( col1 * + col2 ) AS col2 FROM tab2 AS cor0 ---- 10881 19942 8398 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3805 SELECT + CAST( NULL AS DECIMAL ) * ( + col1 ) - CAST( 97 * + col2 AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3805 SELECT + CAST ( NULL AS REAL ) * ( + col1 ) - CAST ( 97 * + col2 AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 * - 72 + - col0 AS col2 FROM tab2 AS cor0 ---- 1145 2225 4170 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3807 SELECT DISTINCT + col1 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-3807 SELECT DISTINCT + col1 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT ALL - col1 * - cor0.col1 + + 6 FROM tab1 cor0 ---- 106 175 682 query I rowsort SELECT DISTINCT - col0 * col0 + - ( - col2 ) FROM tab1 cor0 ---- -4039 -6304 45 query I rowsort SELECT 58 * + col2 AS col2 FROM tab2 AS cor0 ---- 1508 1566 2204 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - col0 ) col2 FROM tab2 AS cor0 ---- -7 -78 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col1 * + col1 col1 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT + - 15 + col2 * cor0.col1 AS col0 FROM tab0 cor0 ---- 2823 7447 82 query I rowsort SELECT DISTINCT 6 + col0 * col1 FROM tab2 ---- 1349 223 4608 query I rowsort SELECT ALL 91 + 56 FROM tab0 ---- 147 147 147 query I rowsort SELECT ( col0 ) * col0 AS col0 FROM tab0 ---- 1225 576 7921 query I rowsort SELECT ALL 9 + + col1 * col1 * col0 AS col2 FROM tab1 ---- 13529 2037 6409 query I rowsort SELECT ALL col0 + - col2 * col0 AS col1 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-3819 SELECT ( - 94 ) + col1 - - col2 * col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -115 -61 -90 skipif mysql # not compatible query I rowsort label-3819 SELECT ( - 94 ) + col1 - - col2 * col0 / - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -115 -61 -90 onlyif mysql # use DIV operator for integer division query I rowsort label-3820 SELECT col1 DIV 45 + 99 AS col0 FROM tab0 ---- 100 101 101 skipif mysql # not compatible query I rowsort label-3820 SELECT col1 / 45 + 99 AS col0 FROM tab0 ---- 100 101 101 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 30 * + 74 col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to a14a27eac19f68a063b429247abd0ff7 query I rowsort SELECT col2 * col0 * - 91 + col2 * 83 + 91 AS col0 FROM tab2 ---- -14867 -182299 -269937 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3823 SELECT 80 * col1 + col1 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- -182 4042 7663 skipif mysql # not compatible query I rowsort label-3823 SELECT 80 * col1 + col1 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- -182 4042 7663 query I rowsort SELECT - 49 + + col2 AS col1 FROM tab2 AS cor0 ---- -11 -22 -23 onlyif mysql # use DIV operator for integer division query I rowsort label-3825 SELECT col1 DIV tab1.col2 + col1 AS col1 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-3825 SELECT col1 / tab1.col2 + col1 AS col1 FROM tab1 ---- 10 13 26 query I rowsort SELECT DISTINCT + col2 * 69 AS col1 FROM tab0 ---- 2277 5658 69 query I rowsort SELECT ALL + + col0 * + 72 + - col1 FROM tab1 cor0 ---- 190 4598 5747 query I rowsort SELECT + ( 5 ) * + col2 + + ( cor0.col2 ) FROM tab1 AS cor0 ---- 324 342 576 query I rowsort SELECT 78 * 15 AS col1 FROM tab0 ---- 1170 1170 1170 query I rowsort SELECT 99 * + col2 + - col0 AS col1 FROM tab1 ---- 5343 5579 9424 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3831 SELECT - col0 * tab1.col0 * - ( - col1 ) + + tab1.col1 * - CAST( - col1 AS SIGNED ) FROM tab1 ---- -40860 -83031 442 skipif mysql # not compatible query I rowsort label-3831 SELECT - col0 * tab1.col0 * - ( - col1 ) + + tab1.col1 * - CAST ( - col1 AS INTEGER ) FROM tab1 ---- -40860 -83031 442 query I rowsort SELECT ALL - + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT DISTINCT - cor0.col1 * - 34 FROM tab1, tab2 cor0 ---- 1054 2006 578 query I rowsort SELECT col0 * 68 FROM tab0 ---- 1632 2380 6052 onlyif mysql # use DIV operator for integer division query I rowsort label-3835 SELECT col1 * + cor0.col1 + - col2 * col0 DIV 30 AS col0 FROM tab2 AS cor0 ---- 189 3414 955 skipif mysql # not compatible query I rowsort label-3835 SELECT col1 * + cor0.col1 + - col2 * col0 / 30 AS col0 FROM tab2 AS cor0 ---- 189 3414 955 query I rowsort SELECT DISTINCT + - col2 + ( + col2 ) AS col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT + cor0.col1 + cor0.col2 * + cor0.col1 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT + col2 + cor0.col2 * + col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2 ---- -10 -13 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-3840 SELECT - col2 - 66 DIV 94 AS col1 FROM tab2 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-3840 SELECT - col2 - 66 / 94 AS col1 FROM tab2 ---- -26 -27 -38 query I rowsort SELECT tab1.col0 * - 71 - ( col2 ) FROM tab1 ---- -267 -4601 -5776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col0 * cor0.col2 col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to e1120e7b687b32270ef70393236e7341 query I rowsort SELECT ( col0 ) + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1456 -567 -830 onlyif mysql # use DIV operator for integer division query I rowsort label-3844 SELECT DISTINCT 54 DIV col1 - tab0.col0 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-3844 SELECT DISTINCT 54 / col1 - tab0.col0 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT - ( 42 ) + - col2 FROM tab2 AS cor0 ---- -68 -69 -80 query I rowsort SELECT + col2 * 14 - col1 AS col1 FROM tab2 AS cor0 ---- 305 347 515 query I rowsort SELECT - col1 + + 86 FROM tab0 AS cor0 ---- -11 -5 0 query I rowsort SELECT + - col1 - col0 * col0 AS col1 FROM tab2 AS cor0 ---- -6143 -6258 -80 query I rowsort SELECT DISTINCT - 25 FROM tab1 cor0 ---- -25 query I rowsort SELECT 8 * col0 + + col1 AS col1 FROM tab1 AS cor0 ---- 50 522 653 query I rowsort SELECT 2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 535345c50a19fdab97ce05d1837b1f09 query I rowsort SELECT + col1 * + 6 AS col2 FROM tab1 AS cor0 ---- 156 60 78 onlyif mysql # use DIV operator for integer division query I rowsort label-3853 SELECT ALL 86 DIV col0 FROM tab2 ---- 1 1 12 skipif mysql # not compatible query I rowsort label-3853 SELECT ALL 86 / col0 FROM tab2 ---- 1 1 12 query I rowsort SELECT ALL - cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 onlyif mysql # use DIV operator for integer division query I rowsort label-3855 SELECT DISTINCT - col1 * col2 + col0 DIV 27 FROM tab0 AS cor0 ---- -2838 -7459 -96 skipif mysql # not compatible query I rowsort label-3855 SELECT DISTINCT - col1 * col2 + col0 / 27 FROM tab0 AS cor0 ---- -2838 -7459 -96 query I rowsort SELECT DISTINCT + 92 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 92 onlyif mysql # use DIV operator for integer division query I rowsort label-3857 SELECT DISTINCT - - col0 + + col2 DIV ( 32 ) + - col2 FROM tab0 AS cor0 ---- -8 34 9 skipif mysql # not compatible query I rowsort label-3857 SELECT DISTINCT - - col0 + + col2 / ( 32 ) + - col2 FROM tab0 AS cor0 ---- -8 34 9 query I rowsort SELECT - 10 * + col1 + - 86 * 2 AS col1 FROM tab2 AS cor0 ---- -342 -482 -762 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + col2 ) - + tab0.col1 * + 66 * + col0 col1 FROM tab0 ---- -136191 -224069 -534452 query I rowsort SELECT + 90 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 5d25a546acf3ae171e731e50adc0112e onlyif mysql # use DIV operator for integer division query I rowsort label-3861 SELECT DISTINCT col2 DIV + col1 + + 84 * col2 + + col2 FROM tab1 ---- 4592 4850 8167 skipif mysql # not compatible query I rowsort label-3861 SELECT DISTINCT col2 / + col1 + + 84 * col2 + + col2 FROM tab1 ---- 4592 4850 8167 query I rowsort SELECT col2 * col0 + col1 + col2 * col1 FROM tab1 ---- 1592 4228 8941 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 - - col1 col1 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT DISTINCT col0 + col2 - tab2.col0 FROM tab2 ---- 26 27 38 query I rowsort SELECT ALL + 87 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 8661ffbd1a72897c495405c53b816e50 query I rowsort SELECT - 63 - 8 FROM tab2, tab1 AS cor0 ---- 9 values hashing to e72f95c346714d3065a96d67a6fd5062 onlyif mysql # use DIV operator for integer division query I rowsort label-3867 SELECT ALL - cor0.col0 * - col0 + - 59 DIV col2 + cor0.col2 FROM tab0 AS cor0 ---- 1167 608 8003 skipif mysql # not compatible query I rowsort label-3867 SELECT ALL - cor0.col0 * - col0 + - 59 / col2 + cor0.col2 FROM tab0 AS cor0 ---- 1167 608 8003 query I rowsort SELECT DISTINCT - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT DISTINCT - 16 * tab1.col0 + tab1.col2 AS col1 FROM tab1 ---- -1184 -967 6 onlyif mysql # use DIV operator for integer division query I rowsort label-3870 SELECT DISTINCT col0 + col0 DIV 62 FROM tab2 ---- 7 79 80 skipif mysql # not compatible query I rowsort label-3870 SELECT DISTINCT col0 + col0 / 62 FROM tab2 ---- 7 79 80 query I rowsort SELECT DISTINCT col1 * tab2.col0 + + col1 AS col0 FROM tab2 ---- 1360 248 4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 62 + - cor0.col0 col0 FROM tab0 AS cor0 ---- -27 27 38 query I rowsort SELECT col0 * 20 AS col2 FROM tab2 ---- 140 1560 1580 query I rowsort SELECT DISTINCT cor0.col0 * tab2.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 9 values hashing to eb103eabe531563e672e54874d056f9f onlyif mysql # use DIV operator for integer division query I rowsort label-3875 SELECT - col2 * ( col0 ) * - col1 + col2 DIV tab2.col1 FROM tab2 ---- 119652 51036 5859 skipif mysql # not compatible query I rowsort label-3875 SELECT - col2 * ( col0 ) * - col1 + col2 / tab2.col1 FROM tab2 ---- 119652 51036 5859 query I rowsort SELECT - 50 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to faf91d5263c18db4877a3c30c47e2487 query I rowsort SELECT 64 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 60ab040e931c5c85db7ba19364eacc8e onlyif mysql # use DIV operator for integer division query I rowsort label-3878 SELECT DISTINCT col2 DIV 48 + + col0 AS col1 FROM tab1 ---- 4 65 82 skipif mysql # not compatible query I rowsort label-3878 SELECT DISTINCT col2 / 48 + + col0 AS col1 FROM tab1 ---- 4 65 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + + col2 col2 FROM tab1 ---- 109 67 80 query I rowsort SELECT - + col2 + 0 AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT + col1 + + 93 AS col2 FROM tab1 ---- 103 106 119 query I rowsort SELECT - col0 - + 25 AS col2 FROM tab2 ---- -103 -104 -32 query I rowsort SELECT - + ( - col0 ) + - cor0.col0 AS col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT ( col0 ) + + col2 AS col1 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + 4 + + col1 FROM tab2 ---- 21 35 63 onlyif mysql # use DIV operator for integer division query I rowsort label-3886 SELECT ALL col1 + + col0 DIV - col1 FROM tab1 AS cor0 ---- 26 4 7 skipif mysql # not compatible query I rowsort label-3886 SELECT ALL col1 + + col0 / - col1 FROM tab1 AS cor0 ---- 26 4 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3887 SELECT + CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-3887 SELECT + CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ALL + cor0.col0 + ( col1 + - ( - cor0.col0 ) ) * + col0 FROM tab1 AS cor0 ---- 4800 7520 90 query I rowsort SELECT - + ( - col1 ) + + col2 FROM tab2 AS cor0 ---- 55 58 85 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( + col2 AS REAL ) FROM tab0 AS cor0 ---- -1 -33 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-3891 SELECT ALL - col2 DIV col0 + col2 AS col2 FROM tab1 cor0 ---- 36 57 95 skipif mysql # not compatible query I rowsort label-3891 SELECT ALL - col2 / col0 + col2 AS col2 FROM tab1 cor0 ---- 36 57 95 query I rowsort SELECT ALL - cor0.col0 * - 29 - - col2 AS col0 FROM tab0 AS cor0 ---- 1016 2663 729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3893 SELECT ALL - CAST( - col0 AS SIGNED ) * col1 AS col2 FROM tab2 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-3893 SELECT ALL - CAST ( - col0 AS INTEGER ) * col1 AS col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT ALL - ( tab1.col1 * - col0 ) AS col1 FROM tab1 ---- 1040 640 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3895 SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col0 + col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3895 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col0 + col1 FROM tab2 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3896 SELECT + ( - ( col1 ) ) + col2 DIV col2 FROM tab1 AS cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-3896 SELECT + ( - ( col1 ) ) + col2 / col2 FROM tab1 AS cor0 ---- -12 -25 -9 query I rowsort SELECT ALL + ( 31 ) * + col2 * col2 FROM tab0 ---- 208444 31 33759 query I rowsort SELECT ALL - col2 * - ( + col0 ) AS col2 FROM tab1 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 98 col2 FROM tab0 AS cor0 ---- 98 98 98 query I rowsort SELECT - 84 * col2 AS col1 FROM tab2 AS cor0 ---- -2184 -2268 -3192 onlyif mysql # use DIV operator for integer division query I rowsort label-3901 SELECT ALL 59 DIV col1 + + ( + col2 ) * col1 FROM tab1 AS cor0 ---- 1252 1406 575 skipif mysql # not compatible query I rowsort label-3901 SELECT ALL 59 / col1 + + ( + col2 ) * col1 FROM tab1 AS cor0 ---- 1252 1406 575 query I rowsort SELECT DISTINCT + + col0 * + col0 - col2 FROM tab1 AS cor0 ---- -45 4039 6304 query I rowsort SELECT ALL - col2 * col0 * col1 + col2 * col0 AS col1 FROM tab2 AS cor0 ---- -117624 -48032 -5670 query I rowsort SELECT ALL + + col2 * col0 + 30 FROM tab2 cor0 ---- 2058 219 3032 query I rowsort SELECT ALL - 44 * col2 + col0 FROM tab1 AS cor0 ---- -2373 -2444 -4144 query I rowsort SELECT - col0 * - col2 + - ( col2 ) * - col1 FROM tab2 AS cor0 ---- 1026 3562 3648 query I rowsort SELECT ALL 49 - cor0.col0 * - col0 FROM tab1 AS cor0 ---- 4145 58 6449 query I rowsort SELECT ALL - + 29 + - col2 + - 49 * col0 AS col1 FROM tab2 AS cor0 ---- -3877 -3938 -399 query I rowsort SELECT DISTINCT 93 + - col1 * - 82 AS col1 FROM tab2 cor0 ---- 1487 2635 4931 query I rowsort SELECT + 2 * col0 * col2 + ( - 1 ) AS col1 FROM tab0 ---- 14595 1583 69 query I rowsort SELECT ALL 63 AS col2 FROM tab2 ---- 63 63 63 query I rowsort SELECT + col1 + ( - col2 ) AS col0 FROM tab0 ---- 53 9 96 query I rowsort SELECT - 65 * col1 AS col1 FROM tab0 AS cor0 ---- -5590 -5915 -6305 query I rowsort SELECT + + 40 * + col1 AS col0 FROM tab1 AS cor0 ---- 1040 400 520 query I rowsort SELECT + - 43 * + col2 FROM tab2 AS cor0 ---- -1118 -1161 -1634 query I rowsort SELECT DISTINCT - col0 + + 76 * + 17 AS col0 FROM tab0 AS cor0 ---- 1203 1257 1268 onlyif mysql # use DIV operator for integer division query I rowsort label-3917 SELECT + - col0 + col2 + 29 DIV cor0.col1 FROM tab1 AS cor0 ---- -5 18 52 skipif mysql # not compatible query I rowsort label-3917 SELECT + - col0 + col2 + 29 / cor0.col1 FROM tab1 AS cor0 ---- -5 18 52 query I rowsort SELECT + col2 + col0 - 99 AS col2 FROM tab2 AS cor0 ---- -65 18 5 query I rowsort SELECT + cor0.col0 * col1 + - col0 * col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col2 * 8 + 66 FROM tab1 AS cor0 ---- 498 522 834 query I rowsort SELECT + cor0.col0 + + col1 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT ALL + col0 * 24 AS col2 FROM tab0 AS cor0 ---- 2136 576 840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3923 SELECT col0 + CAST( 90 AS SIGNED ) FROM tab0 ---- 114 125 179 skipif mysql # not compatible query I rowsort label-3923 SELECT col0 + CAST ( 90 AS INTEGER ) FROM tab0 ---- 114 125 179 query I rowsort SELECT ALL - col2 + + col0 + cor0.col0 FROM tab0 AS cor0 ---- 15 69 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + col0 + cor0.col1 col2 FROM tab1 AS cor0 ---- 131 189 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3926 SELECT - - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3926 SELECT - - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + cor0.col0 + 5 AS col1 FROM tab1 AS cor0 ---- 69 8 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3928 SELECT ALL + cor0.col1 * + CAST( NULL AS SIGNED ) * - cor1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-3928 SELECT ALL + cor0.col1 * + CAST ( NULL AS INTEGER ) * - cor1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - - 32 + 47 * col0 FROM tab1 AS cor0 ---- 173 3040 3792 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2, tab2 AS cor3 ---- 3645 values hashing to 162169e743caf7b1ab855c7985eb36ff onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3931 SELECT + col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3931 SELECT + col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + cor0.col1 * 43 AS col0 FROM tab1 AS cor0 ---- 1118 430 559 query I rowsort SELECT + cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT - 72 * col1 * - col1 + col1 * col0 FROM tab0 AS cor0 ---- 534576 604331 680843 query I rowsort SELECT + 15 + - col0 * - col2 AS col1 FROM tab0 AS cor0 ---- 50 7313 807 onlyif mysql # use DIV operator for integer division query I rowsort label-3936 SELECT - + ( col1 ) DIV + col0 + + ( + 59 ) col2 FROM tab0 cor0 ---- 56 57 58 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3936 SELECT - + ( col1 ) / + col0 + + ( + 59 ) col2 FROM tab0 cor0 ---- 56 57 58 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3937 SELECT CAST( NULL AS SIGNED ) - 83 AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-3937 SELECT CAST ( NULL AS INTEGER ) - 83 AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT col0 * - ( + col2 ) FROM tab1 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3939 SELECT col2 * CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3939 SELECT col2 * CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3940 SELECT cor0.col1 DIV 62 FROM tab1, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-3940 SELECT cor0.col1 / 62 FROM tab1, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT col0 - 73 AS col2 FROM tab2 cor0 ---- -66 5 6 query I rowsort SELECT ALL + - col0 + - ( + col1 ) AS col0 FROM tab0 AS cor0 ---- -110 -132 -180 onlyif mysql # use DIV operator for integer division query I rowsort label-3943 SELECT DISTINCT col2 - + col2 DIV + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 52 89 skipif mysql # not compatible query I rowsort label-3943 SELECT DISTINCT col2 - + col2 / + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 52 89 query I rowsort SELECT DISTINCT + 20 - 26 FROM tab0, tab1 AS cor0 ---- -6 query I rowsort SELECT DISTINCT ( col1 ) * + col0 AS col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL + col0 + - col1 * + cor0.col2 * + 7 AS col0 FROM tab1 AS cor0 ---- -3926 -8656 -9825 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 57 + - cor0.col1 col2 FROM tab2 AS cor0 ---- -2 26 40 query I rowsort SELECT - 63 * + col0 FROM tab2 AS cor0 ---- -441 -4914 -4977 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3949 SELECT ALL CAST( + 20 + + col0 AS SIGNED ) AS col2 FROM tab2 ---- 27 98 99 skipif mysql # not compatible query I rowsort label-3949 SELECT ALL CAST ( + 20 + + col0 AS INTEGER ) AS col2 FROM tab2 ---- 27 98 99 onlyif mysql # use DIV operator for integer division query I rowsort label-3950 SELECT - cor0.col0 DIV + cor0.col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3950 SELECT - cor0.col0 / + cor0.col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * 79 col2 FROM tab0 AS cor0 ---- -2607 -6478 -79 query I rowsort SELECT ALL - - col2 + col1 + - col1 AS col1 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT ALL col2 * cor0.col1 + cor0.col2 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT cor0.col2 * + ( + col0 + col2 ) * - col1 FROM tab2 AS cor0 ---- -159536 -28458 -75582 query I rowsort SELECT DISTINCT + + col2 + - 14 FROM tab1 AS cor0 ---- 40 43 82 query I rowsort SELECT + - col2 * - col0 AS col2 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT - tab1.col2 + tab1.col2 AS col0 FROM tab1 ---- 0 query I rowsort SELECT ( + col2 ) * - col0 * + col1 FROM tab1 ---- -36480 -4212 -99840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3959 SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-3959 SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT - col2 * - ( - 43 ) FROM tab0 ---- -1419 -3526 -43 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 95 col0 FROM tab1 ---- -95 -95 -95 onlyif mysql # use DIV operator for integer division query I rowsort label-3962 SELECT + 16 DIV + tab0.col1 - - col1 AS col0 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-3962 SELECT + 16 / + tab0.col1 - - col1 AS col0 FROM tab0 ---- 86 91 97 query I rowsort SELECT - ( - col1 ) * col1 + 0 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT + 9 * 4 FROM tab0 ---- 36 36 36 query I rowsort SELECT + col2 - + col0 AS col2 FROM tab1 ---- -7 16 51 query I rowsort SELECT 61 + col0 AS col0 FROM tab1 ---- 125 141 64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 68 * + col0 + col0 col1 FROM tab0 ---- 1656 2415 6141 query I rowsort SELECT ALL - tab0.col0 + col2 + + tab0.col1 AS col1 FROM tab0 ---- 63 84 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * + col2 col2 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT ALL col1 * col1 - + col2 * - col2 AS col2 FROM tab1 AS cor0 ---- 3349 3592 9385 query I rowsort SELECT DISTINCT - col0 * + col1 + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1264 -210 -4524 onlyif mysql # use DIV operator for integer division query I rowsort label-3972 SELECT + - 46 + col1 DIV 75 FROM tab1 AS cor0 ---- -46 -46 -46 skipif mysql # not compatible query I rowsort label-3972 SELECT + - 46 + col1 / 75 FROM tab1 AS cor0 ---- -46 -46 -46 query I rowsort SELECT ( 9 ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b query I rowsort SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT - col1 < + col0 * tab2.col0 ---- query I rowsort SELECT + tab1.col0 + col1 * col2 + col1 FROM tab1 ---- 1341 1433 644 query III rowsort SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) NOT IN ( col0 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT + col1 - + col1 * tab2.col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL ---- query I rowsort SELECT tab0.col1 + - col1 * - col1 * col2 AS col2 FROM tab0 ---- 244154 679133 9506 query I rowsort SELECT ALL tab0.col0 * col0 * - col0 + col1 AS col0 FROM tab0 ---- -13738 -42778 -704878 query I rowsort SELECT ALL tab2.col0 + col2 AS col1 FROM tab2 ---- 104 117 34 query I rowsort SELECT ALL col1 * col2 + - col2 AS col1 FROM tab2 WHERE NOT - col0 NOT IN ( col2 ) ---- query III rowsort SELECT * FROM tab0 WHERE NOT - col0 BETWEEN col1 AND col2 / col2 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT ALL col0 * col2 + - col1 * 39 FROM tab0 AS cor0 ---- -2562 -3748 3749 query I rowsort SELECT ALL col1 - col1 * col0 AS col0 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT col1 - - tab1.col0 FROM tab1 WHERE ( NULL ) NOT IN ( + col2 + tab1.col0 ) ---- query III rowsort SELECT * FROM tab0 WHERE NOT NULL <> col2 * col2 ---- query I rowsort SELECT + col1 + + col1 - col2 AS col1 FROM tab1 ---- -2 -37 -70 query I rowsort SELECT col1 - col0 * + col0 AS col2 FROM tab2 ---- -18 -6025 -6224 query I rowsort SELECT col0 * + col1 + + col2 AS col2 FROM tab1 AS cor0 ---- 1136 132 697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 / + col1 col2 FROM tab2 AS cor0 WHERE NULL > + col1 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-3991 SELECT DISTINCT col0 DIV + col2 - - tab0.col2 * - col0 AS col0 FROM tab0 ---- -7297 -792 0 skipif mysql # not compatible query I rowsort label-3991 SELECT DISTINCT col0 / + col2 - - tab0.col2 * - col0 AS col0 FROM tab0 ---- -7297 -792 0 query I rowsort SELECT - tab2.col0 * - col1 - col0 * col0 AS col0 FROM tab2 ---- -1482 -4898 168 query IIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0 WHERE ( NULL ) <> NULL ---- query III rowsort SELECT * FROM tab0 AS cor0 WHERE - col2 * - col1 * - col1 NOT BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT ALL + col2 + - cor0.col1 * col1 AS col1 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT ALL cor0.col2 * cor0.col2 * - col1 AS col0 FROM tab1 AS cor0 ---- -119808 -32490 -75816 query I rowsort SELECT - col2 + + col0 * col2 * - col0 + col0 FROM tab2 AS cor0 ---- -1343 -158132 -237117 query III rowsort SELECT * FROM tab1 WHERE NOT ( col2 + col2 ) = ( NULL ) ---- query III rowsort SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col0 * - col2 + + col2 ) AND NULL ---- query I rowsort SELECT ALL - col0 * - col2 + tab0.col1 FROM tab0 ---- 132 7389 878 query I rowsort SELECT tab1.col2 - + col0 * + tab1.col2 AS col2 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT + col0 + - col2 * col0 FROM tab1 ---- -159 -3584 -7600 query I rowsort SELECT col1 + col1 * col0 * - col0 + + tab1.col2 * col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( - col1 + col1 ) AND NULL ---- query I rowsort SELECT ALL + col1 * tab2.col0 + - tab2.col1 FROM tab2 ---- 1326 186 4543 query I rowsort SELECT ALL - col0 * - tab0.col1 * tab0.col1 AS col2 FROM tab0 ---- 177504 329315 737009 query I rowsort SELECT ALL - col2 + - col2 * + col2 AS col0 FROM tab1 ---- -2970 -3306 -9312 query I rowsort SELECT ALL - cor0.col1 * cor0.col2 + + col0 AS col2 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT ALL tab2.col0 + col2 * + col0 * + col2 AS col2 FROM tab2 ---- 114155 5110 52806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 2 + - col2 col1 FROM tab1 AS cor0 ---- -52 -55 -94 skipif mysql # not compatible query I rowsort SELECT CAST ( - 11 AS REAL ) * - cor0.col0 FROM tab2 cor0 ---- 77 858 869 query I rowsort SELECT ALL 60 * 76 FROM tab1, tab0 AS cor0 ---- 9 values hashing to dd01ce1af9e44de2d7c5346e4762cf75 onlyif mysql # use DIV operator for integer division query I rowsort label-4012 SELECT ALL - col2 DIV col1 + ( + col2 + 40 ) AS col2 FROM tab1 ---- 129 92 92 skipif mysql # not compatible query I rowsort label-4012 SELECT ALL - col2 / col1 + ( + col2 + 40 ) AS col2 FROM tab1 ---- 129 92 92 query I rowsort SELECT ALL + ( cor0.col2 ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT DISTINCT + ( cor0.col1 ) AS col2 FROM tab2, tab1 cor0 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( col0 ) * col2 col2 FROM tab2 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-4016 SELECT ALL col2 DIV 5 AS col0 FROM tab1 ---- 10 11 19 skipif mysql # not compatible query I rowsort label-4016 SELECT ALL col2 / 5 AS col0 FROM tab1 ---- 10 11 19 query I rowsort SELECT DISTINCT - cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- -86 -91 -97 query I rowsort SELECT DISTINCT - col0 * - col1 * col2 + + col0 + - ( - col0 ) * col1 FROM tab1 cor0 ---- 100960 37184 4293 query I rowsort SELECT ALL + col1 * 81 + + cor0.col1 FROM tab0 cor0 ---- 7052 7462 7954 query I rowsort SELECT DISTINCT 61 AS col0 FROM tab0, tab0 AS cor0 ---- 61 query I rowsort SELECT DISTINCT - col1 * + col0 + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT + 13 + - col1 AS col0 FROM tab0 ---- -73 -78 -84 query I rowsort SELECT ALL + tab0.col2 - - tab0.col0 AS col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT DISTINCT + 9 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 9 query I rowsort SELECT DISTINCT cor0.col0 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT + - 22 + - col0 * + ( + col2 ) FROM tab1 cor0 ---- -184 -3670 -7702 query I rowsort SELECT ALL - + 32 AS col0 FROM tab0 cor0 ---- -32 -32 -32 onlyif mysql # use DIV operator for integer division query I rowsort label-4028 SELECT DISTINCT - + 92 + col2 DIV col0 FROM tab0 AS cor0 ---- -91 -92 skipif mysql # not compatible query I rowsort label-4028 SELECT DISTINCT - + 92 + col2 / col0 FROM tab0 AS cor0 ---- -91 -92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + 29 col2 FROM tab1 AS cor0 ---- 16 19 3 query I rowsort SELECT ALL - + cor0.col2 + - col1 AS col1 FROM tab1 cor0 ---- -109 -67 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4031 SELECT DISTINCT + + col2 * CAST( 0 AS SIGNED ) FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4031 SELECT DISTINCT + + col2 * CAST ( 0 AS INTEGER ) FROM tab1 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + col0 + ( cor0.col0 + - col1 ) * 88 AS col0 FROM tab0 AS cor0 ---- -5421 -5432 -87 query I rowsort SELECT DISTINCT col1 * col1 + col0 FROM tab1 cor0 ---- 164 249 679 onlyif mysql # use DIV operator for integer division query I rowsort label-4034 SELECT DISTINCT + cor0.col2 DIV + 2 AS col2 FROM tab1 AS cor0 ---- 27 28 48 skipif mysql # not compatible query I rowsort label-4034 SELECT DISTINCT + cor0.col2 / + 2 AS col2 FROM tab1 AS cor0 ---- 27 28 48 onlyif mysql # use DIV operator for integer division query I rowsort label-4035 SELECT + col2 DIV - col0 col0 FROM tab2 cor0 ---- -3 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4035 SELECT + col2 / - col0 col0 FROM tab2 cor0 ---- -3 0 0 query I rowsort SELECT ALL + col0 * + col1 + - 93 FROM tab2 AS cor0 ---- 124 1250 4509 query I rowsort SELECT + + col2 * 83 + col1 FROM tab2 AS cor0 ---- 2217 2272 3171 query I rowsort SELECT + col2 + 37 * col0 FROM tab0 AS cor0 ---- 1296 3375 921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 - col2 col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT + col2 + + cor0.col1 * - 11 FROM tab0 AS cor0 ---- -1066 -913 -919 query I rowsort SELECT + tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT - ( + cor0.col0 ) AS col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT - 98 * cor0.col2 AS col1 FROM tab2 AS cor0 ---- -2548 -2646 -3724 skipif mysql # not compatible query I rowsort SELECT - CAST ( + col1 AS REAL ) FROM tab0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT 89 * col0 FROM tab1 ---- 267 5696 7120 query I rowsort SELECT - - 51 FROM tab2 AS cor0 ---- 51 51 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col2 col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT 6 + col1 FROM tab0 cor0 ---- 103 92 97 onlyif mysql # use DIV operator for integer division query I rowsort label-4049 SELECT - col1 DIV + col1 + - col0 AS col0 FROM tab2 AS cor0 ---- -79 -8 -80 skipif mysql # not compatible query I rowsort label-4049 SELECT - col1 / + col1 + - col0 AS col0 FROM tab2 AS cor0 ---- -79 -8 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 * + 60 * + col0 col2 FROM tab2 AS cor0 ---- -13020 -276120 -80580 query I rowsort SELECT + - cor0.col2 + - col2 AS col0 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT + cor0.col2 * 91 FROM tab1 AS cor0 ---- 4914 5187 8736 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4053 SELECT ALL - col0 * CAST( - 41 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0 ---- 2009 249444 255881 skipif mysql # not compatible query I rowsort label-4053 SELECT ALL - col0 * CAST ( - 41 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0 ---- 2009 249444 255881 query I rowsort SELECT + col0 + 49 + col2 AS col0 FROM tab0 AS cor0 ---- 106 220 85 query I rowsort SELECT - 83 * + cor0.col1 FROM tab2 AS cor0 ---- -1411 -2573 -4897 query I rowsort SELECT 85 + + 33 FROM tab2 AS cor0 ---- 118 118 118 query IIIIII rowsort SELECT * FROM tab1, tab0 AS cor0 WHERE NOT cor0.col2 > NULL ---- query I rowsort SELECT col2 + - col2 * tab1.col2 AS col2 FROM tab1 ---- -2862 -3192 -9120 query I rowsort SELECT 12 FROM tab1, tab1 cor0 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 onlyif mysql # use DIV operator for integer division query I rowsort label-4060 SELECT - + cor0.col1 + + cor0.col2 DIV cor0.col1 AS col1 FROM tab2 cor0 ---- -15 -31 -59 skipif mysql # not compatible query I rowsort label-4060 SELECT - + cor0.col1 + + cor0.col2 / cor0.col1 AS col1 FROM tab2 cor0 ---- -15 -31 -59 query I rowsort SELECT + cor0.col2 * 16 FROM tab2 AS cor0 ---- 416 432 608 query I rowsort SELECT ALL 84 * col2 + col0 AS col2 FROM tab2 AS cor0 ---- 2262 2275 3271 query I rowsort SELECT DISTINCT col1 * + 30 AS col0 FROM tab0 AS cor0 ---- 2580 2730 2910 query I rowsort SELECT + 32 * + cor0.col2 AS col2 FROM tab2 cor0 ---- 1216 832 864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( 63 ) * col1 + - col2 col0 FROM tab1 AS cor0 ---- 1584 573 723 onlyif mysql # use DIV operator for integer division query I rowsort label-4066 SELECT DISTINCT 47 DIV 66 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4066 SELECT DISTINCT 47 / 66 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4067 SELECT 86 + col0 DIV col2 AS col0 FROM tab1 AS cor0 ---- 86 86 87 skipif mysql # not compatible query I rowsort label-4067 SELECT 86 + col0 / col2 AS col0 FROM tab1 AS cor0 ---- 86 86 87 query I rowsort SELECT - 32 * - col0 AS col2 FROM tab2 AS cor0 ---- 224 2496 2528 query I rowsort SELECT ALL - ( + 48 ) AS col0 FROM tab1 cor0 ---- -48 -48 -48 query I rowsort SELECT - + 88 * col0 FROM tab0 AS cor0 ---- -2112 -3080 -7832 query I rowsort SELECT DISTINCT col0 * cor0.col1 + col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT DISTINCT - col2 * + col0 + col0 AS col1 FROM tab0 AS cor0 ---- -7209 -768 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4073 SELECT + col2 DIV - 20 - - col1 FROM tab1 AS cor0 ---- 24 8 9 skipif mysql # not compatible query I rowsort label-4073 SELECT + col2 / - 20 - - col1 FROM tab1 AS cor0 ---- 24 8 9 onlyif mysql # use DIV operator for integer division query I rowsort label-4074 SELECT ALL col2 DIV 44 AS col1 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-4074 SELECT ALL col2 / 44 AS col1 FROM tab0 ---- 0 0 1 query I rowsort SELECT + col2 + - cor0.col2 * + ( col2 ) * + col1 FROM tab0 AS cor0 ---- -611802 -93621 -96 query I rowsort SELECT ALL col2 - - 34 AS col1 FROM tab1 ---- 130 88 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4077 SELECT tab1.col2 * + CAST( col0 + - col0 AS SIGNED ) AS col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4077 SELECT tab1.col2 * + CAST ( col0 + - col0 AS INTEGER ) AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT col2 * + ( + 70 ) * tab2.col1 + + 42 AS col2 FROM tab2 ---- 107422 45262 58632 query I rowsort SELECT ALL col0 * col2 + - 64 FROM tab2 ---- 125 1964 2938 query I rowsort SELECT col2 + - 49 AS col0 FROM tab0 AS cor0 ---- -16 -48 33 query I rowsort SELECT 78 * - col1 * - 48 + col0 + col1 * - ( 52 ) AS col1 FROM tab0 AS cor0 ---- 317536 336061 358159 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + col0 ) + col0 * - col0 + col2 col1 FROM tab2 AS cor0 ---- -15 -5980 -6124 onlyif mysql # use DIV operator for integer division query I rowsort label-4083 SELECT DISTINCT - + col2 DIV + col0 AS col1 FROM tab0 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-4083 SELECT DISTINCT - + col2 / + col0 AS col1 FROM tab0 AS cor0 ---- -1 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4084 SELECT - col0 + + col1 + CAST( - col1 * + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -2002 -3333 -8097 skipif mysql # not compatible query I rowsort label-4084 SELECT - col0 + + col1 + CAST ( - col1 * + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -2002 -3333 -8097 query I rowsort SELECT ALL 51 * + col2 AS col2 FROM tab2 AS cor0 ---- 1326 1377 1938 query I rowsort SELECT - col2 + col1 + - col2 AS col0 FROM tab0 AS cor0 ---- -73 20 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 11 col0 FROM tab0 AS cor0 ---- 11 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + - col0 * cor0.col2 col2 FROM tab0 cor0 ---- -706 -7207 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4089 SELECT ALL + col0 + CAST( - 73 AS SIGNED ) FROM tab1 cor0 ---- -70 -9 7 skipif mysql # not compatible query I rowsort label-4089 SELECT ALL + col0 + CAST ( - 73 AS INTEGER ) FROM tab1 cor0 ---- -70 -9 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4090 SELECT ALL + col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4090 SELECT ALL + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4091 SELECT - + col2 + CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4091 SELECT - + col2 + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4092 SELECT DISTINCT + col1 + + CAST( - col1 AS SIGNED ) * col0 FROM tab0 AS cor0 ---- -1978 -3298 -8008 skipif mysql # not compatible query I rowsort label-4092 SELECT DISTINCT + col1 + + CAST ( - col1 AS INTEGER ) * col0 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT - col1 * col0 + - 94 * - col0 AS col1 FROM tab0 AS cor0 ---- -105 192 267 query I rowsort SELECT DISTINCT + + col0 * ( - col2 ) + + col0 * - 67 + - ( - col0 ) * col2 AS col0 FROM tab2 AS cor0 ---- -469 -5226 -5293 onlyif mysql # use DIV operator for integer division query I rowsort label-4095 SELECT - - 70 DIV cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 107ce4ce80d92ff52a0bf815dc3b40cb skipif mysql # not compatible query I rowsort label-4095 SELECT - - 70 / cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 107ce4ce80d92ff52a0bf815dc3b40cb skipif mysql # not compatible query I rowsort SELECT + col2 * CAST ( + 12 * - cor0.col1 AS REAL ) FROM tab2 cor0 ---- -10044 -18408 -7752 onlyif mysql # use DIV operator for integer division query I rowsort label-4097 SELECT DISTINCT col1 DIV + ( + col2 + + col0 ) FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4097 SELECT DISTINCT col1 / + ( + col2 + + col0 ) FROM tab1 AS cor0 ---- 0 query I rowsort SELECT + cor0.col2 * cor0.col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8 query I rowsort SELECT cor0.col1 * + 18 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7e0133c96ed640160c5c8ffdf8c7bed2 query I rowsort SELECT col2 + - 38 * col2 + + ( - col0 ) AS col2 FROM tab2 cor0 ---- -1006 -1040 -1485 query I rowsort SELECT - - 37 * - col0 + + col0 * col0 + + col1 AS col0 FROM tab1 AS cor0 ---- -76 1738 3453 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4102 SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 col2 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4102 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + col2 * 99 FROM tab0 cor0 ---- 3267 8118 99 query I rowsort SELECT col1 + - col1 * - col0 + - 57 * col0 FROM tab2 cor0 ---- -151 -3143 215 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + - 28 + tab0.col0 * 32 col1 FROM tab0 ---- 1127 2909 764 query I rowsort SELECT DISTINCT - cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-4107 SELECT DISTINCT ( 74 ) * - col1 * col0 + + ( col2 ) DIV - col1 AS col2 FROM tab1 AS cor0 ---- -47365 -5774 -76967 skipif mysql # not compatible query I rowsort label-4107 SELECT DISTINCT ( 74 ) * - col1 * col0 + + ( col2 ) / - col1 AS col2 FROM tab1 AS cor0 ---- -47365 -5774 -76967 onlyif mysql # use DIV operator for integer division query I rowsort label-4108 SELECT ALL - col1 DIV + col2 AS col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4108 SELECT ALL - col1 / + col2 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - ( 78 ) AS col1 FROM tab1 AS cor0 ---- -78 -78 -78 query I rowsort SELECT DISTINCT ( col1 ) * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-4111 SELECT - 14 DIV - col0 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4111 SELECT - 14 / - col0 AS col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4112 SELECT ALL + col1 + + 71 DIV col1 FROM tab2 AS cor0 ---- 21 33 60 skipif mysql # not compatible query I rowsort label-4112 SELECT ALL + col1 + + 71 / col1 FROM tab2 AS cor0 ---- 21 33 60 query I rowsort SELECT ALL - ( - 1 ) FROM tab1 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-4114 SELECT DISTINCT col2 DIV - col0 AS col0 FROM tab0 cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-4114 SELECT DISTINCT col2 / - col0 AS col0 FROM tab0 cor0 ---- -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - col1 ) + 17 col1 FROM tab2 AS cor0 ---- 34 48 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4116 SELECT ALL + CAST( NULL AS SIGNED ) * - 37 * col2 AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4116 SELECT ALL + CAST ( NULL AS INTEGER ) * - 37 * col2 AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - col1 + + col0 * col1 AS col2 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT ALL col2 + cor0.col1 * col2 AS col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT + col2 + col2 - 93 FROM tab2 AS cor0 ---- -17 -39 -41 query I rowsort SELECT col0 * + col1 + col2 AS col2 FROM tab2 AS cor0 ---- 1381 244 4628 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + col2 + cor0.col2 * + col0 col0 FROM tab0 AS cor0 ---- 14596 1584 70 query I rowsort SELECT DISTINCT - col1 * col2 - + ( 39 ) AS col0 FROM tab1 AS cor0 ---- -1287 -1443 -609 query I rowsort SELECT col0 * col0 - col1 AS col2 FROM tab1 ---- -17 4086 6387 query I rowsort SELECT ALL 96 * 11 + tab2.col0 - ( 51 * - col2 ) AS col1 FROM tab2 ---- 2440 2460 3073 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4125 SELECT ALL + CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4125 SELECT ALL + CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - 76 + 36 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 01aad4539198a6509248e086869f90a6 query I rowsort SELECT - + col1 * - col2 + col1 + 38 FROM tab2 AS cor0 ---- 1631 701 906 query I rowsort SELECT + col2 + - col1 + ( 52 * + col1 ) AS col1 FROM tab1 AS cor0 ---- 1380 567 759 onlyif mysql # use DIV operator for integer division query I rowsort label-4129 SELECT + - col1 + + col0 * - ( cor0.col0 ) + + col1 DIV col0 FROM tab2 AS cor0 ---- -6143 -6258 -76 skipif mysql # not compatible query I rowsort label-4129 SELECT + - col1 + + col0 * - ( cor0.col0 ) + + col1 / col0 FROM tab2 AS cor0 ---- -6143 -6258 -76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4130 SELECT DISTINCT col1 * col0 + + 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-4130 SELECT DISTINCT col1 * col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + col2 ) col2 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 75 col1 FROM tab2 ---- 75 query I rowsort SELECT + + 30 * - col2 + col2 * cor0.col1 + col0 AS col2 FROM tab1 AS cor0 ---- -1076 -1552 -213 onlyif mysql # use DIV operator for integer division query I rowsort label-4134 SELECT - col2 * col1 DIV + col1 FROM tab2 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-4134 SELECT - col2 * col1 / + col1 FROM tab2 ---- -26 -27 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + + tab0.col1 * ( - col0 ) col0 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT tab2.col0 + tab2.col1 * col1 * col0 FROM tab2 ---- 22910 271596 6734 query I rowsort SELECT + 44 + col0 AS col1 FROM tab1 ---- 108 124 47 query I rowsort SELECT + 77 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to d7b027bca5d37c67e29013904def8125 query I rowsort SELECT DISTINCT - 9 + col2 * col0 AS col0 FROM tab0 ---- 26 7289 783 query I rowsort SELECT - col0 + + col2 * + tab2.col0 FROM tab2 ---- 182 1950 2923 query I rowsort SELECT - cor0.col2 * - col1 * - col1 FROM tab0 cor0 ---- -244068 -679042 -9409 query I rowsort SELECT - col0 * + 86 * - col1 FROM tab1 AS cor0 ---- 55040 6708 89440 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 30 * - cor0.col1 + - col0 col1 FROM tab0 AS cor0 ---- -2604 -2819 -2945 query I rowsort SELECT + 83 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c query I rowsort SELECT - ( + cor0.col2 ) AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to b5a4102107e5ebd26e341538f4fede1e onlyif mysql # use DIV operator for integer division query I rowsort label-4146 SELECT ALL + col1 + col0 DIV + col2 FROM tab0 AS cor0 ---- 132 86 92 skipif mysql # not compatible query I rowsort label-4146 SELECT ALL + col1 + col0 / + col2 FROM tab0 AS cor0 ---- 132 86 92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 26 col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 28 col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97 query I rowsort SELECT DISTINCT - col1 - 72 FROM tab1 cor0 ---- -82 -85 -98 query I rowsort SELECT DISTINCT 5 * col0 FROM tab0 cor0 ---- 120 175 445 query I rowsort SELECT ALL col1 + - cor0.col1 + + col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT - col0 - + 46 FROM tab1 AS cor0 ---- -110 -126 -49 query I rowsort SELECT ALL + + col0 * cor0.col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - + col0 * 44 FROM tab0 AS cor0 ---- -1056 -1540 -3916 onlyif mysql # use DIV operator for integer division query I rowsort label-4155 SELECT DISTINCT 24 DIV col2 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4155 SELECT DISTINCT 24 / col2 FROM tab1 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 * + 83 + - col0 * - col0 col1 FROM tab1 AS cor0 ---- 14368 4491 8827 query I rowsort SELECT DISTINCT + - col0 * ( - col2 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL 95 + 33 FROM tab1 AS cor0 ---- 128 128 128 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4159 SELECT ALL - + col1 + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4159 SELECT ALL - + col1 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4160 SELECT col1 * col2 + - col2 * + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4160 SELECT col1 * col2 + - col2 * + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4161 SELECT + CAST( - 10 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to f68f33032846e21ee6b2c668fc10355e skipif mysql # not compatible query I rowsort label-4161 SELECT + CAST ( - 10 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to f68f33032846e21ee6b2c668fc10355e query I rowsort SELECT DISTINCT - col1 * ( + col1 ) AS col1 FROM tab1 AS cor0 ---- -100 -169 -676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * - 33 * col1 col1 FROM tab0 ---- -244068 -273273 -310497 query I rowsort SELECT + 49 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT DISTINCT col0 + + ( col1 ) FROM tab0 ---- 110 132 180 query I rowsort SELECT + tab0.col2 - + col0 FROM tab0 ---- -34 -7 9 query I rowsort SELECT col0 - + 68 FROM tab2 ---- -61 10 11 query I rowsort SELECT ( 43 ) * + col0 AS col1 FROM tab2 ---- 301 3354 3397 query I rowsort SELECT + col1 + col1 * 79 FROM tab0 cor0 ---- 6880 7280 7760 query I rowsort SELECT DISTINCT col0 + + 56 FROM tab2 ---- 134 135 63 query I rowsort SELECT ALL col2 + 5 AS col1 FROM tab0 ---- 38 6 87 query I rowsort SELECT ALL - ( + col1 ) * - col2 + - col2 AS col2 FROM tab1 AS cor0 ---- 1152 1350 513 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( + col0 AS REAL ) FROM tab1 ---- 3 64 80 query I rowsort SELECT ( + col0 ) * - col0 AS col1 FROM tab1 ---- -4096 -6400 -9 query I rowsort SELECT - + col2 + cor0.col1 * - 61 FROM tab2 AS cor0 ---- -1075 -1918 -3625 query I rowsort SELECT ALL 90 * + col1 - - col1 AS col2 FROM tab1 ---- 1183 2366 910 query I rowsort SELECT - col0 * - col0 + - 65 AS col2 FROM tab0 AS cor0 ---- 1160 511 7856 query I rowsort SELECT ( + col2 ) * - col2 + 51 FROM tab1 AS cor0 ---- -2865 -3198 -9165 query I rowsort SELECT - 27 * col1 * 4 + col2 FROM tab0 AS cor0 ---- -10475 -9255 -9746 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4180 SELECT - col1 * col2 * CAST( NULL AS SIGNED ) + - 69 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4180 SELECT - col1 * col2 * CAST ( NULL AS INTEGER ) + - 69 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col2 * - col0 + + col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4182 SELECT ALL - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4182 SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * - ( col1 ) + col0 AS col1 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT DISTINCT - cor0.col2 + - 77 AS col2 FROM tab1 AS cor0 ---- -131 -134 -173 query I rowsort SELECT DISTINCT + cor0.col2 * + 23 AS col0 FROM tab2 AS cor0 ---- 598 621 874 query I rowsort SELECT ALL + col0 * 83 + + col2 FROM tab1 cor0 ---- 303 5369 6736 query I rowsort SELECT ALL + col2 * - col0 + - cor0.col2 + + col1 * col1 * - cor0.col0 AS col1 FROM tab0 cor0 ---- -178329 -329351 -744389 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + cor0.col1 * + col2 - - 49 * col2 col1 FROM tab1 AS cor0 ---- 1242 2223 3456 query I rowsort SELECT DISTINCT + col1 + col1 + - col2 FROM tab2 AS cor0 ---- -4 35 92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4190 SELECT DISTINCT + col1 * + CAST( + 11 AS SIGNED ) * col0 + ( - 29 ) AS col2 FROM tab1 AS cor0 ---- 11411 7011 829 skipif mysql # not compatible query I rowsort label-4190 SELECT DISTINCT + col1 * + CAST ( + 11 AS INTEGER ) * col0 + ( - 29 ) AS col2 FROM tab1 AS cor0 ---- 11411 7011 829 onlyif mysql # use DIV operator for integer division query I rowsort label-4191 SELECT - col0 DIV + col1 + + 51 AS col0 FROM tab1 AS cor0 ---- 45 45 51 skipif mysql # not compatible query I rowsort label-4191 SELECT - col0 / + col1 + + 51 AS col0 FROM tab1 AS cor0 ---- 45 45 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * ( 29 ) + - col1 col2 FROM tab0 cor0 ---- -2580 -2730 -2910 query I rowsort SELECT ALL cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT - col0 * ( col0 ) + col1 FROM tab1 AS cor0 ---- -4086 -6387 17 query I rowsort SELECT DISTINCT col2 * col2 + col1 AS col0 FROM tab2 AS cor0 ---- 1461 735 760 query I rowsort SELECT ALL + cor0.col2 * + 37 AS col2 FROM tab2 AS cor0 ---- 1406 962 999 query I rowsort SELECT - col0 + 61 FROM tab2 cor0 ---- -17 -18 54 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4198 SELECT CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4198 SELECT CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4199 SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4199 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4200 SELECT + CAST( col0 AS SIGNED ) + - col0 * 31 col2 FROM tab1 cor0 ---- -1920 -2400 -90 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4200 SELECT + CAST ( col0 AS INTEGER ) + - col0 * 31 col2 FROM tab1 cor0 ---- -1920 -2400 -90 query I rowsort SELECT ALL col0 + + 57 FROM tab0 AS cor0 ---- 146 81 92 query I rowsort SELECT ALL - ( + 1 ) * col0 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT - ( - 19 ) FROM tab2 AS cor0 ---- 19 19 19 query I rowsort SELECT - col0 * + ( + col0 * col2 ) AS col0 FROM tab1 cor0 ---- -233472 -486 -614400 query I rowsort SELECT ALL col1 * - col1 + + ( col1 ) * - col2 FROM tab0 cor0 ---- -10234 -15743 -9506 query I rowsort SELECT ALL + - col1 + - col2 AS col0 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT ALL + 73 + + col1 * + col2 FROM tab1 AS cor0 ---- 1321 1477 643 query I rowsort SELECT + - cor0.col1 + cor0.col0 FROM tab0 AS cor0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - ( + col2 ) * - 29 + col2 col0 FROM tab1 cor0 ---- -1512 -1596 -2688 query I rowsort SELECT DISTINCT 29 * - tab2.col0 AS col2 FROM tab2 ---- -203 -2262 -2291 query I rowsort SELECT 36 * col0 + - col1 - col1 FROM tab2 cor0 ---- 190 2690 2810 onlyif mysql # use DIV operator for integer division query I rowsort label-4212 SELECT col0 DIV + 10 col1 FROM tab0 AS cor0 ---- 2 3 8 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4212 SELECT col0 / + 10 col1 FROM tab0 AS cor0 ---- 2 3 8 query I rowsort SELECT ALL col1 - ( col1 ) AS col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT - 84 + + cor0.col0 * cor0.col1 FROM tab2 AS cor0 ---- 1259 133 4518 query I rowsort SELECT - + col0 - - 91 FROM tab2 AS cor0 ---- 12 13 84 query I rowsort SELECT DISTINCT - 16 + cor0.col1 * col0 FROM tab1 AS cor0 ---- 1024 62 624 query I rowsort SELECT DISTINCT - col0 + - col2 * + col0 + + col2 * col2 AS col2 FROM tab0 AS cor0 ---- -663 -69 273 query I rowsort SELECT ALL - - col1 + col2 * col0 AS col0 FROM tab2 cor0 ---- 2087 220 3019 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4219 SELECT - ( - col1 ) * + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4219 SELECT - ( - col1 ) * + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4220 SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-4220 SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT + - col2 + cor0.col1 AS col1 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL - + col1 * - 75 FROM tab2 AS cor0 ---- 1275 2325 4425 query I rowsort SELECT ALL - col2 * + 35 + col2 FROM tab2 ---- -1292 -884 -918 query I rowsort SELECT tab2.col1 * 0 + col0 + col0 AS col2 FROM tab2 ---- 14 156 158 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4225 SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-4225 SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT + col1 + col1 - - col2 * - cor0.col0 FROM tab0 AS cor0 ---- -620 -7116 159 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * 54 col2 FROM tab2 AS cor0 ---- -378 -4212 -4266 query I rowsort SELECT - - ( 44 ) + col0 AS col2 FROM tab2 AS cor0 ---- 122 123 51 query I rowsort SELECT ALL - ( + col1 ) + - col0 FROM tab1 AS cor0 ---- -29 -74 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-4230 SELECT DISTINCT + - 99 DIV + col1 + cor0.col2 + + col1 * col1 AS col2 FROM tab2 AS cor0 ---- 322 3506 985 skipif mysql # not compatible query I rowsort label-4230 SELECT DISTINCT + - 99 / + col1 + cor0.col2 + + col1 * col1 AS col2 FROM tab2 AS cor0 ---- 322 3506 985 query I rowsort SELECT 62 * + col0 - col2 FROM tab0 AS cor0 ---- 1455 2169 5436 query IIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 243 values hashing to ce53c0e8839c969b0513568da6eb2c4b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4233 SELECT DISTINCT cor0.col2 - col1 * + CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0 ---- -1305 -190 -4576 skipif mysql # not compatible query I rowsort label-4233 SELECT DISTINCT cor0.col2 - col1 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0 ---- -1305 -190 -4576 query I rowsort SELECT ALL + + col0 + col0 + - col0 * - cor0.col1 FROM tab2 AS cor0 ---- 1501 231 4758 query I rowsort SELECT + 79 * col2 FROM tab2 AS cor0 ---- 2054 2133 3002 query I rowsort SELECT ALL col0 * cor0.col0 + + 27 AS col2 FROM tab1 AS cor0 ---- 36 4123 6427 query I rowsort SELECT + cor0.col1 * - col0 + col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT - 97 * cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 314c62f4703dbe5ed9875d56c5704779 query I rowsort SELECT ALL - cor0.col2 * ( ( col2 ) ) FROM tab2 AS cor0 ---- -1444 -676 -729 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + - col1 + + col2 col0 FROM tab1 ---- -17 25 3 query I rowsort SELECT DISTINCT + 56 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 56 query I rowsort SELECT + cor0.col2 + - cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to b7821935060d89a6627d6d11f2da0658 query I rowsort SELECT ALL + col1 * + col2 * col1 FROM tab2 AS cor0 ---- 10982 25947 90506 onlyif mysql # use DIV operator for integer division query I rowsort label-4244 SELECT DISTINCT - col1 + + 69 DIV - 46 FROM tab2 AS cor0 ---- -18 -32 -60 skipif mysql # not compatible query I rowsort label-4244 SELECT DISTINCT - col1 + + 69 / - 46 FROM tab2 AS cor0 ---- -18 -32 -60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4245 SELECT DISTINCT + col1 * - cor0.col2 * ( - col2 ) + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4245 SELECT DISTINCT + col1 * - cor0.col2 * ( - col2 ) + CAST ( NULL AS REAL ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + + 60 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT DISTINCT col0 - + cor0.col1 AS col1 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT col1 + - ( - col0 ) * - col0 FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT DISTINCT - - cor0.col2 * - 36 + col1 AS col2 FROM tab0 cor0 ---- -1102 -2861 61 query I rowsort SELECT - col0 + - col1 * - col0 AS col1 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT ALL + 64 AS col1 FROM tab0 ---- 64 64 64 query I rowsort SELECT ALL + 47 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- 1128 1645 4183 onlyif mysql # use DIV operator for integer division query I rowsort label-4253 SELECT + 34 DIV - col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4253 SELECT + 34 / - col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4254 SELECT DISTINCT col2 DIV tab2.col1 + - col1 AS col1 FROM tab2 ---- -15 -31 -59 skipif mysql # not compatible query I rowsort label-4254 SELECT DISTINCT col2 / tab2.col1 + - col1 AS col1 FROM tab2 ---- -15 -31 -59 query I rowsort SELECT 65 * + col2 AS col1 FROM tab2 AS cor0 ---- 1690 1755 2470 query I rowsort SELECT - col2 + + 87 FROM tab0 cor0 ---- 5 54 86 query I rowsort SELECT ALL 92 * + tab1.col0 * + col2 AS col2 FROM tab1 ---- 14904 335616 706560 query I rowsort SELECT + ( col1 ) * col1 + col1 FROM tab0 AS cor0 ---- 7482 8372 9506 query I rowsort SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab1, tab1 AS cor0 ---- 7 78 79 query I rowsort SELECT col0 * col1 * col0 AS col1 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT + 97 * - col1 + + col0 * - col1 AS col2 FROM tab0 ---- -10406 -12804 -16926 onlyif mysql # use DIV operator for integer division query I rowsort label-4262 SELECT ( + col2 ) + + tab2.col2 DIV + col0 + col2 AS col1 FROM tab2 ---- 52 57 76 skipif mysql # not compatible query I rowsort label-4262 SELECT ( + col2 ) + + tab2.col2 / + col0 + col2 AS col1 FROM tab2 ---- 52 57 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * + 22 col1 FROM tab0 AS cor0 ---- -1958 -528 -770 onlyif mysql # use DIV operator for integer division query I rowsort label-4264 SELECT + - col1 * - col1 * col2 + col0 DIV col1 + - col0 * - col1 FROM tab1 cor0 ---- 17270 36582 6346 skipif mysql # not compatible query I rowsort label-4264 SELECT + - col1 * - col1 * col2 + col0 / col1 + - col0 * - col1 FROM tab1 cor0 ---- 17270 36582 6346 onlyif mysql # use DIV operator for integer division query I rowsort label-4265 SELECT + - col2 + col2 * col1 DIV - col0 AS col2 FROM tab0 AS cor0 ---- -151 -165 -3 skipif mysql # not compatible query I rowsort label-4265 SELECT + - col2 + col2 * col1 / - col0 AS col2 FROM tab0 AS cor0 ---- -151 -165 -3 query I rowsort SELECT + ( ( + col2 ) ) * + tab1.col0 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT - - ( + cor0.col2 ) * - col2 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- -1406 -650 -702 query I rowsort SELECT DISTINCT - - tab2.col1 FROM tab2, tab1, tab1 AS cor0 ---- 17 31 59 query I rowsort SELECT - col0 * - col0 + col1 * - col2 AS col0 FROM tab1 cor0 ---- -1395 3526 5152 query I rowsort SELECT + 33 * col0 + - col1 FROM tab0 AS cor0 ---- 1058 2846 706 query I rowsort SELECT DISTINCT - col0 - col0 AS col2 FROM tab1 cor0 ---- -128 -160 -6 query I rowsort SELECT DISTINCT 67 AS col0 FROM tab2, tab2 AS cor0 ---- 67 query I rowsort SELECT 52 * 32 FROM tab1 ---- 1664 1664 1664 query I rowsort SELECT - 74 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5a567947d14593676e3825756f8e6130 onlyif mysql # use DIV operator for integer division query I rowsort label-4275 SELECT + col0 * col2 DIV + 51 FROM tab1 AS cor0 ---- 150 3 71 skipif mysql # not compatible query I rowsort label-4275 SELECT + col0 * col2 / + 51 FROM tab1 AS cor0 ---- 150 3 71 query I rowsort SELECT - + col0 * 53 AS col2 FROM tab1 AS cor0 ---- -159 -3392 -4240 onlyif mysql # use DIV operator for integer division query I rowsort label-4277 SELECT - col0 + 32 DIV 5 AS col1 FROM tab0 AS cor0 ---- -18 -29 -83 skipif mysql # not compatible query I rowsort label-4277 SELECT - col0 + 32 / 5 AS col1 FROM tab0 AS cor0 ---- -18 -29 -83 query I rowsort SELECT - col2 - + 42 AS col2 FROM tab1 AS cor0 ---- -138 -96 -99 query I rowsort SELECT - + col1 - + ( - col2 + + col0 ) FROM tab2 AS cor0 ---- -11 -111 -58 query I rowsort SELECT 71 FROM tab1, tab0 AS cor0 ---- 9 values hashing to c1aace5d5fe27721cc925552513c85c0 onlyif mysql # use DIV operator for integer division query I rowsort label-4281 SELECT DISTINCT - col1 * col0 * + col1 + - col2 DIV - col0 - + col1 AS col0 FROM tab1 AS cor0 ---- -13532 -2036 -6410 skipif mysql # not compatible query I rowsort label-4281 SELECT DISTINCT - col1 * col0 * + col1 + - col2 / - col0 - + col1 AS col0 FROM tab1 AS cor0 ---- -13532 -2036 -6410 query I rowsort SELECT - col1 * + col0 + - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -104 -1053 -650 onlyif mysql # use DIV operator for integer division query I rowsort label-4283 SELECT - col2 * - col0 + + col0 - + col1 DIV - col0 col0 FROM tab1 AS cor0 ---- 173 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4283 SELECT - col2 * - col0 + + col0 - + col1 / - col0 col0 FROM tab1 AS cor0 ---- 173 3712 7760 query I rowsort SELECT ALL cor0.col1 FROM tab2, tab2 cor0 CROSS JOIN tab0 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d onlyif mysql # use DIV operator for integer division query I rowsort label-4285 SELECT DISTINCT - - col0 * col0 + + cor0.col1 DIV col1 - col1 FROM tab1 AS cor0 ---- -16 4087 6388 skipif mysql # not compatible query I rowsort label-4285 SELECT DISTINCT - - col0 * col0 + + cor0.col1 / col1 - col1 FROM tab1 AS cor0 ---- -16 4087 6388 onlyif mysql # use DIV operator for integer division query I rowsort label-4286 SELECT col0 DIV col2 - + cor0.col2 * + col1 FROM tab1 cor0 ---- -1248 -1404 -569 skipif mysql # not compatible query I rowsort label-4286 SELECT col0 / col2 - + cor0.col2 * + col1 FROM tab1 cor0 ---- -1248 -1404 -569 query I rowsort SELECT DISTINCT - - col2 - col1 AS col1 FROM tab0 cor0 ---- -53 -9 -96 query I rowsort SELECT + col0 * col1 + + col1 * - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -598 540 871 query I rowsort SELECT ALL + cor0.col2 * - cor0.col2 + + col1 FROM tab1 AS cor0 ---- -2890 -3239 -9203 query I rowsort SELECT DISTINCT ( - col2 ) + tab0.col1 FROM tab0 ---- 53 9 96 query I rowsort SELECT col1 * col0 * + col0 AS col0 FROM tab0 AS cor0 ---- 118825 49536 720811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 97 * col2 col1 FROM tab1 cor0 ---- 5238 5529 9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * col1 * col1 col1 FROM tab2 AS cor0 ---- 22831 271518 6727 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 + - col1 col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT col0 * cor0.col0 AS col1 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT DISTINCT - col0 * + col1 + col1 + col2 AS col2 FROM tab0 AS cor0 ---- -1945 -3297 -7926 query I rowsort SELECT ALL - col1 + - col1 * col0 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT DISTINCT - 8 * col1 AS col2 FROM tab2 AS cor0 ---- -136 -248 -472 query I rowsort SELECT DISTINCT + 42 + - col1 AS col2 FROM tab2 AS cor0 ---- -17 11 25 onlyif mysql # use DIV operator for integer division query I rowsort label-4300 SELECT ALL - col1 * col2 DIV + col1 + 73 AS col0 FROM tab2 cor0 ---- 35 46 47 skipif mysql # not compatible query I rowsort label-4300 SELECT ALL - col1 * col2 / + col1 + 73 AS col0 FROM tab2 cor0 ---- 35 46 47 query I rowsort SELECT ALL - + 16 AS col0 FROM tab2 AS cor0 ---- -16 -16 -16 query I rowsort SELECT col1 + - 85 * col0 AS col1 FROM tab1 ---- -229 -5430 -6787 query I rowsort SELECT - ( + col0 ) - col0 AS col1 FROM tab2 ---- -14 -156 -158 onlyif mysql # use DIV operator for integer division query I rowsort label-4304 SELECT DISTINCT + col2 * col2 DIV - col2 AS col0 FROM tab1 cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-4304 SELECT DISTINCT + col2 * col2 / - col2 AS col0 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT ( cor0.col2 ) * - ( col2 ) FROM tab2 cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT col0 * col0 - 29 FROM tab2 ---- 20 6055 6212 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 61 + col1 col1 FROM tab0 ---- 147 152 158 query I rowsort SELECT + tab1.col0 + + col2 * - 64 - ( tab1.col1 ) * - tab1.col0 * + col2 AS col1 FROM tab1 ---- 32896 759 93776 query I rowsort SELECT + + 90 * + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 2340 2430 3420 query I rowsort SELECT ALL - 29 AS col2 FROM tab1 cor0 ---- -29 -29 -29 query I rowsort SELECT 32 * col2 AS col0 FROM tab0 AS cor0 ---- 1056 2624 32 onlyif mysql # use DIV operator for integer division query I rowsort label-4312 SELECT ALL + tab0.col0 DIV - tab0.col1 + 93 * col1 col0 FROM tab0 ---- 7998 8463 9021 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4312 SELECT ALL + tab0.col0 / - tab0.col1 + 93 * col1 col0 FROM tab0 ---- 7998 8463 9021 query I rowsort SELECT ALL col0 + col0 * + 44 FROM tab2 ---- 315 3510 3555 query I rowsort SELECT ALL ( - 6 + - col1 ) AS col0 FROM tab1 ---- -16 -19 -32 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 80 * + cor0.col2 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 22b9425e09ee8bd0a2a63c6f914fa897 query I rowsort SELECT col1 * - 32 + col1 FROM tab2 ---- -1829 -527 -961 query I rowsort SELECT - ( 97 * tab0.col1 ) + col0 FROM tab0 ---- -8318 -8738 -9374 query I rowsort SELECT DISTINCT cor0.col2 + col1 * col1 + 96 AS col2 FROM tab2 cor0 ---- 1084 3603 423 query I rowsort SELECT ALL 67 * 64 FROM tab2 AS cor0 ---- 4288 4288 4288 query I rowsort SELECT + 52 + - 23 FROM tab2 AS cor0 ---- 29 29 29 query I rowsort SELECT ALL + - col1 + 17 FROM tab1 AS cor0 ---- -9 4 7 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab1 AS cor2 ---- 3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d query I rowsort SELECT DISTINCT 31 AS col2 FROM tab2, tab2 AS cor0 ---- 31 query I rowsort SELECT ( - col2 ) * - col0 AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + col0 + - 66 FROM tab1 cor0 ---- -2 -63 14 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 13 + 17 col0 FROM tab1 ---- 30 30 30 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4327 SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col0 FROM tab2 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-4327 SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 ---- 17 31 59 query I rowsort SELECT DISTINCT cor0.col2 - col1 AS col2 FROM tab0 cor0 ---- -53 -9 -96 query I rowsort SELECT DISTINCT col0 - + ( + col0 ) * - col0 FROM tab2 cor0 ---- 56 6162 6320 onlyif mysql # use DIV operator for integer division query I rowsort label-4330 SELECT - 43 * ( col0 ) + + ( + col1 ) DIV + col0 AS col1 FROM tab1 cor0 ---- -121 -2752 -3440 skipif mysql # not compatible query I rowsort label-4330 SELECT - 43 * ( col0 ) + + ( + col1 ) / + col0 AS col1 FROM tab1 cor0 ---- -121 -2752 -3440 query I rowsort SELECT DISTINCT 44 + col1 FROM tab1 AS cor0 ---- 54 57 70 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( 21 AS REAL ) FROM tab0 ---- 21 query I rowsort SELECT + 61 * - 86 AS col2 FROM tab1 ---- -5246 -5246 -5246 query I rowsort SELECT ALL - + 83 * col0 AS col0 FROM tab1 AS cor0 ---- -249 -5312 -6640 query I rowsort SELECT DISTINCT 18 * col0 AS col2 FROM tab0 ---- 1602 432 630 query I rowsort SELECT col2 * - 29 * col0 FROM tab0 ---- -1015 -211642 -22968 query I rowsort SELECT - col1 + + ( - col0 ) + col1 * + ( + 39 + col2 ) FROM tab1 ---- 1662 2389 886 query I rowsort SELECT + cor0.col1 + - 6 FROM tab0 AS cor0 ---- 80 85 91 query I rowsort SELECT col2 + + 82 * cor0.col1 FROM tab2 AS cor0 ---- 1432 2569 4864 query I rowsort SELECT DISTINCT + col1 + 16 + col1 FROM tab0 AS cor0 ---- 188 198 210 query I rowsort SELECT + cor0.col0 - + ( 16 + col1 ) FROM tab1 AS cor0 ---- -39 38 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col0 + - cor0.col2 * col2 col0 FROM tab0 cor0 ---- -1065 -6635 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + + ( + 43 ) + + col0 * ( - col1 ) col2 FROM tab2 AS cor0 ---- -1379 -181 -4637 onlyif mysql # use DIV operator for integer division query I rowsort label-4344 SELECT + col1 + col0 * col1 DIV + col1 + - col2 * - col1 * col0 FROM tab0 AS cor0 ---- 3527 664298 68222 skipif mysql # not compatible query I rowsort label-4344 SELECT + col1 + col0 * col1 / + col1 + - col2 * - col1 * col0 FROM tab0 AS cor0 ---- 3527 664298 68222 query I rowsort SELECT ALL + 28 * - 24 AS col0 FROM tab2, tab0 cor0 ---- 9 values hashing to f7681518203a513babd825aec9e0c2ad query I rowsort SELECT 95 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e query I rowsort SELECT - cor0.col2 + col1 + 61 FROM tab0 AS cor0 ---- 114 157 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col0 col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT - + col0 * col0 + + col0 AS col0 FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT - - col0 + 83 FROM tab0 AS cor0 ---- 107 118 172 query I rowsort SELECT ALL - cor0.col2 * cor0.col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT - 21 * col0 + col2 AS col2 FROM tab0 AS cor0 ---- -1787 -471 -734 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col2 + + col1 col1 FROM tab0 ---- 119 173 98 query I rowsort SELECT - col2 * 67 AS col1 FROM tab1 ---- -3618 -3819 -6432 query I rowsort SELECT 71 FROM tab0, tab1 cor0 ---- 9 values hashing to c1aace5d5fe27721cc925552513c85c0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col0 + col0 * col1 col2 FROM tab0 ---- 2088 3430 8188 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4357 SELECT + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-4357 SELECT + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - - 87 FROM tab0 AS cor0 ---- 87 87 87 query I rowsort SELECT - 15 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2 query I rowsort SELECT + tab1.col1 - - ( - ( col0 ) + col0 * - 99 ) AS col2 FROM tab1 ---- -274 -6390 -7987 query I rowsort SELECT - col2 * 39 FROM tab0 AS cor0 ---- -1287 -3198 -39 query I rowsort SELECT + col1 + + ( + cor0.col0 ) * + col0 AS col1 FROM tab0 AS cor0 ---- 1322 662 8012 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * 27 * - col1 col0 FROM tab1 AS cor0 ---- -15390 -33696 -37908 query I rowsort SELECT + cor0.col1 * col2 + cor0.col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT - col0 * + col0 + - cor0.col1 - cor0.col0 AS col0 FROM tab1 AS cor0 ---- -38 -4170 -6493 query I rowsort SELECT ALL 54 * col2 * col1 + + 47 AS col1 FROM tab0 ---- 153299 402995 5285 query I rowsort SELECT DISTINCT tab1.col2 * - tab1.col1 + tab1.col1 FROM tab1 ---- -1235 -1378 -560 query I rowsort SELECT DISTINCT - ( 83 ) + - col0 * col2 FROM tab1 ---- -245 -3731 -7763 query I rowsort SELECT ALL 34 AS col2 FROM tab0, tab2 cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 onlyif mysql # use DIV operator for integer division query I rowsort label-4370 SELECT DISTINCT + col1 DIV 83 AS col2 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-4370 SELECT DISTINCT + col1 / 83 AS col2 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT ALL 54 * col1 + col2 FROM tab0 AS cor0 ---- 4677 4996 5239 query I rowsort SELECT + 50 + - col2 AS col0 FROM tab2 AS cor0 ---- 12 23 24 query I rowsort SELECT 90 + col2 AS col0 FROM tab0 AS cor0 ---- 123 172 91 query I rowsort SELECT 38 + - col2 AS col1 FROM tab2 AS cor0 ---- 0 11 12 query I rowsort SELECT ALL - 5 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e query I rowsort SELECT DISTINCT + 61 * col2 FROM tab0 ---- 2013 5002 61 onlyif mysql # use DIV operator for integer division query I rowsort label-4377 SELECT + - 74 + - col2 DIV col0 AS col1 FROM tab0 AS cor0 ---- -74 -74 -75 skipif mysql # not compatible query I rowsort label-4377 SELECT + - 74 + - col2 / col0 AS col1 FROM tab0 AS cor0 ---- -74 -74 -75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 3 + + col0 * - col1 col1 FROM tab0 cor0 ---- -2061 -3392 -8096 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4379 SELECT ALL cor0.col0 * CAST( NULL AS SIGNED ) / col2 + - col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4379 SELECT ALL cor0.col0 * CAST ( NULL AS INTEGER ) / col2 + - col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col0 * cor0.col1 + col2 col1 FROM tab1 AS cor0 ---- 1136 132 697 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4381 SELECT + cor0.col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4381 SELECT + cor0.col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT col2 * - ( ( - col2 ) ) + + col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT + col1 * + ( col0 ) FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT - col2 * 66 * col1 FROM tab2 AS cor0 ---- -101244 -42636 -55242 query I rowsort SELECT DISTINCT 20 AS col0 FROM tab0, tab1 cor0, tab1 cor1 ---- 20 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4386 SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4386 SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + + col1 * - cor0.col1 AS col2 FROM tab0 cor0 ---- -7396 -8281 -9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * + col2 + col1 col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT ALL col1 + - ( - col2 ) FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL col0 * - 36 FROM tab2 AS cor0 ---- -252 -2808 -2844 query I rowsort SELECT - col1 * + 31 FROM tab0 AS cor0 ---- -2666 -2821 -3007 query I rowsort SELECT DISTINCT 40 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 40 query I rowsort SELECT ALL - col2 + - 78 FROM tab0 AS cor0 ---- -111 -160 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-4394 SELECT col1 DIV - col0 - col2 AS col2 FROM tab1 ---- -57 -62 -96 skipif mysql # not compatible query I rowsort label-4394 SELECT col1 / - col0 - col2 AS col2 FROM tab1 ---- -57 -62 -96 query I rowsort SELECT ALL - ( 28 ) AS col2 FROM tab1 AS cor0 ---- -28 -28 -28 query I rowsort SELECT + - ( 38 ) * col2 AS col1 FROM tab0 cor0 ---- -1254 -3116 -38 query I rowsort SELECT ( - col2 ) * - col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-4398 SELECT + ( + 89 ) DIV col0 AS col1 FROM tab1 AS cor0 ---- 1 1 29 skipif mysql # not compatible query I rowsort label-4398 SELECT + ( + 89 ) / col0 AS col1 FROM tab1 AS cor0 ---- 1 1 29 query I rowsort SELECT - col2 * - cor0.col2 AS col2 FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT ALL 64 * - col1 FROM tab1 cor0 ---- -1664 -640 -832 query I rowsort SELECT 32 + + cor0.col1 AS col2 FROM tab2, tab0 cor0, tab1 cor1 ---- 27 values hashing to cd933cce9b2800a703a1f6d02012505e query I rowsort SELECT ALL + tab0.col1 * 74 AS col0 FROM tab0 ---- 6364 6734 7178 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col1 * ( 52 ) col2 FROM tab2 AS cor0 ---- 11284 239304 69836 query I rowsort SELECT DISTINCT - col0 * - col0 * 98 FROM tab0 AS cor0 ---- 120050 56448 776258 onlyif mysql # use DIV operator for integer division query I rowsort label-4405 SELECT + 88 * cor0.col1 + + col1 DIV - col2 FROM tab0 AS cor0 ---- 7566 8007 8439 skipif mysql # not compatible query I rowsort label-4405 SELECT + 88 * cor0.col1 + + col1 / - col2 FROM tab0 AS cor0 ---- 7566 8007 8439 onlyif mysql # use DIV operator for integer division query I rowsort label-4406 SELECT DISTINCT + col0 + col0 DIV - 96 AS col1 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-4406 SELECT DISTINCT + col0 + col0 / - 96 AS col1 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-4407 SELECT col1 * + col1 + ( 46 ) DIV + col2 col2 FROM tab1 AS cor0 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4407 SELECT col1 * + col1 + ( 46 ) / + col2 col2 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT col2 * col1 + + col1 * - col1 FROM tab0 AS cor0 ---- -4558 -819 -9312 query I rowsort SELECT ALL + - 79 FROM tab0 AS cor0 ---- -79 -79 -79 query I rowsort SELECT ( + tab1.col2 ) * + col1 AS col2 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT + ( - 21 ) FROM tab1 ---- -21 -21 -21 onlyif mysql # use DIV operator for integer division query I rowsort label-4412 SELECT - 92 * col2 + ( + col2 ) * col2 + + 60 * col1 DIV + col1 FROM tab2 AS cor0 ---- -1656 -1695 -1992 skipif mysql # not compatible query I rowsort label-4412 SELECT - 92 * col2 + ( + col2 ) * col2 + + 60 * col1 / + col1 FROM tab2 AS cor0 ---- -1656 -1695 -1992 query I rowsort SELECT DISTINCT + + 11 * + col2 * + col1 AS col2 FROM tab2 cor0 ---- 16874 7106 9207 onlyif mysql # use DIV operator for integer division query I rowsort label-4414 SELECT ALL + col1 + - cor0.col0 DIV + col2 AS col1 FROM tab0 AS cor0 ---- 62 86 90 skipif mysql # not compatible query I rowsort label-4414 SELECT ALL + col1 + - cor0.col0 / + col2 AS col1 FROM tab0 AS cor0 ---- 62 86 90 query I rowsort SELECT col1 * + col2 + 78 AS col2 FROM tab0 cor0 ---- 175 2916 7540 onlyif mysql # use DIV operator for integer division query I rowsort label-4416 SELECT - + col0 DIV + col0 FROM tab0 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4416 SELECT - + col0 / + col0 FROM tab0 cor0 ---- -1 -1 -1 query I rowsort SELECT ALL - + col0 * + col0 AS col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT - cor0.col0 + + 34 AS col2 FROM tab2 AS cor0 ---- -44 -45 27 query I rowsort SELECT + - cor0.col2 * col0 AS col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 11 - col1 * + col2 col0 FROM tab1 AS cor0 ---- -1259 -1415 -581 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4421 SELECT DISTINCT + - CAST( - col0 AS SIGNED ) + col1 - col1 AS col2 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-4421 SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) + col1 - col1 AS col2 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT - ( col2 ) + - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT + + 70 FROM tab0 AS cor0 ---- 70 70 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 46 * + 96 - col2 col2 FROM tab2 AS cor0 ---- 4378 4389 4390 query I rowsort SELECT DISTINCT - 76 + + col1 + + ( 69 ) FROM tab0 AS cor0 ---- 79 84 90 query I rowsort SELECT ALL - + col2 * col2 - + col1 * 86 AS col1 FROM tab0 AS cor0 ---- -14550 -8343 -8485 onlyif mysql # use DIV operator for integer division query I rowsort label-4427 SELECT DISTINCT 75 DIV - col1 + - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -21 -33 -60 skipif mysql # not compatible query I rowsort label-4427 SELECT DISTINCT 75 / - col1 + - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -21 -33 -60 query I rowsort SELECT ALL + 78 * col2 FROM tab1 cor0 ---- 4212 4446 7488 query I rowsort SELECT DISTINCT + 80 + col1 AS col1 FROM tab2 AS cor0 ---- 111 139 97 query I rowsort SELECT - 82 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1066 -2132 -820 query I rowsort SELECT + tab0.col2 - + col0 AS col1 FROM tab0 ---- -34 -7 9 query I rowsort SELECT + 14 + 59 * col0 AS col2 FROM tab2 ---- 427 4616 4675 query I rowsort SELECT - col2 + - 32 FROM tab1 AS cor0 ---- -128 -86 -89 query I rowsort SELECT ALL cor0.col0 - col0 * - col2 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT DISTINCT - - cor0.col2 * + 71 * cor0.col1 + col0 FROM tab1 AS cor0 ---- 40534 88688 99687 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4436 SELECT DISTINCT - + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4436 SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL - col2 * - 84 FROM tab1 ---- 4536 4788 8064 query I rowsort SELECT DISTINCT - col0 * 46 FROM tab1 AS cor0 ---- -138 -2944 -3680 query I rowsort SELECT + col1 * - 69 + - col0 FROM tab1 AS cor0 ---- -1797 -754 -977 onlyif mysql # use DIV operator for integer division query I rowsort label-4440 SELECT - col1 + + col1 DIV cor0.col2 + - col0 * col2 * col1 AS col1 FROM tab0 AS cor0 ---- -3395 -664208 -68196 skipif mysql # not compatible query I rowsort label-4440 SELECT - col1 + + col1 / cor0.col2 + - col0 * col2 * col1 AS col1 FROM tab0 AS cor0 ---- -3395 -664208 -68196 query I rowsort SELECT + - col2 + 15 * 89 - + col0 AS col2 FROM tab1 AS cor0 ---- 1159 1214 1278 query I rowsort SELECT DISTINCT + ( col2 ) - col2 * col0 * col0 AS col2 FROM tab0 ---- -1224 -18975 -649440 query I rowsort SELECT DISTINCT col1 * + 31 + cor0.col2 * col0 FROM tab0 AS cor0 ---- 10119 3042 3458 query I rowsort SELECT ALL + cor0.col2 * 36 * - 98 + - col1 * col2 - - col2 * + col0 FROM tab0 cor0 ---- -118470 -289460 -3590 query I rowsort SELECT DISTINCT + - col0 * 83 + ( + col2 ) FROM tab2 AS cor0 ---- -554 -6448 -6519 query I rowsort SELECT 99 + cor0.col1 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 5af2d9f1c6b54eefe74f9caec88591bc query I rowsort SELECT - 31 * - 6 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 7c201b64e0e5870bf1ece59e22cba4f7 query I rowsort SELECT - + 27 * 60 AS col1 FROM tab1 AS cor0 ---- -1620 -1620 -1620 query I rowsort SELECT + - cor0.col1 * col1 + - col2 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT + col2 * col0 + col2 * - cor0.col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4451 SELECT - + CAST( NULL AS SIGNED ) + + col0 * col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4451 SELECT - + CAST ( NULL AS INTEGER ) + + col0 * col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col0 + + 51 FROM tab1 AS cor0 ---- 115 131 54 onlyif mysql # use DIV operator for integer division query I rowsort label-4453 SELECT col2 + cor0.col1 DIV cor0.col1 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-4453 SELECT col2 + cor0.col1 / cor0.col1 FROM tab1 AS cor0 ---- 55 58 97 query I rowsort SELECT - col0 + - 99 * col2 FROM tab0 ---- -134 -3291 -8207 query I rowsort SELECT col0 * ( col2 ) AS col2 FROM tab0 ---- 35 7298 792 query I rowsort SELECT - col2 + - ( cor0.col0 ) * + col1 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT ALL tab0.col2 + 60 + 16 * - col0 * col2 FROM tab0 ---- -116626 -12579 -499 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4458 SELECT - CAST( NULL AS SIGNED ) * - col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4458 SELECT - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 * ( + col1 + col0 ) AS col1 FROM tab0 ---- 12804 16380 9460 query I rowsort SELECT ALL - 13 AS col0 FROM tab0 AS cor0 ---- -13 -13 -13 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * - cor0.col2 col0 FROM tab1 AS cor0 ---- -2916 -3249 -9216 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4462 SELECT DISTINCT - CAST( ( + col1 ) AS SIGNED ) FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-4462 SELECT DISTINCT - CAST ( ( + col1 ) AS INTEGER ) FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4463 SELECT + CAST( - cor0.col2 AS SIGNED ) + + cor0.col1 * - col0 AS col2 FROM tab0 cor0 ---- -2097 -3396 -8181 skipif mysql # not compatible query I rowsort label-4463 SELECT + CAST ( - cor0.col2 AS INTEGER ) + + cor0.col1 * - col0 AS col2 FROM tab0 cor0 ---- -2097 -3396 -8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * - col2 col0 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT + col2 * col2 + col1 * 17 + col2 * + 78 * 61 FROM tab0 ---- 159565 398427 6408 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4466 SELECT ALL + 80 + 76 * cor1.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-4466 SELECT ALL + 80 + 76 * cor1.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 query I rowsort SELECT ALL - tab0.col0 * col0 * + ( - tab0.col2 + col2 * col0 ) AS col1 FROM tab0 ---- -41650 -437184 -57157936 query I rowsort SELECT + 47 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d query I rowsort SELECT DISTINCT + 4 + cor0.col1 * + 29 AS col2 FROM tab2 AS cor0 ---- 1715 497 903 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4471 SELECT ALL cor0.col2 * col2 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4471 SELECT ALL cor0.col2 * col2 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 6 FROM tab2, tab0, tab0 AS cor0 ---- -6 query I rowsort SELECT 35 * cor0.col1 AS col1 FROM tab1 cor0 ---- 350 455 910 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4474 SELECT + col0 + CAST( NULL AS SIGNED ) / - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4474 SELECT + col0 + CAST ( NULL AS INTEGER ) / - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4475 SELECT CAST( col0 AS SIGNED ) * - col2 + + col0 AS col1 FROM tab1 AS cor0 ---- -159 -3584 -7600 skipif mysql # not compatible query I rowsort label-4475 SELECT CAST ( col0 AS INTEGER ) * - col2 + + col0 AS col1 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT DISTINCT + col1 * col0 * - col1 + - col0 * col0 AS col2 FROM tab1 AS cor0 ---- -10496 -19920 -2037 query I rowsort SELECT - 90 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to f6f26b9a04da14807208b93d507095c5 query I rowsort SELECT + 49 + col1 FROM tab2 AS cor0 ---- 108 66 80 query I rowsort SELECT + col1 * col2 + + col1 FROM tab1 ---- 1261 1430 580 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( col1 ) * col0 * - ( - 48 ) + col2 col2 FROM tab0 AS cor0 ---- -162959 -388670 -99039 query I rowsort SELECT - cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT - 74 - tab1.col1 * + col1 AS col2 FROM tab1 ---- -174 -243 -750 query I rowsort SELECT 44 * - col2 FROM tab2 ---- -1144 -1188 -1672 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4484 SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4484 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT + + cor0.col0 + col1 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - + 43 * - col1 * col0 AS col0 FROM tab0 AS cor0 ---- 145985 348257 88752 query I rowsort SELECT ALL + 28 - col1 * col2 FROM tab0 cor0 ---- -2810 -69 -7434 query I rowsort SELECT ALL - col2 * + col0 * - col2 FROM tab1 AS cor0 ---- 207936 737280 8748 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 34 col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT DISTINCT col1 + cor0.col1 * - col1 FROM tab2 AS cor0 ---- -272 -3422 -930 query I rowsort SELECT DISTINCT + - col1 * - col2 + col1 * col0 AS col2 FROM tab0 AS cor0 ---- 15561 3492 4902 query I rowsort SELECT ALL ( - col1 ) + - col0 * + 93 * + col2 AS col1 FROM tab0 cor0 ---- -3352 -678805 -73742 query I rowsort SELECT ALL + 73 * + col1 FROM tab0 AS cor0 ---- 6278 6643 7081 query I rowsort SELECT ALL - + col1 * - col0 + - col0 AS col0 FROM tab2 AS cor0 ---- 1264 210 4524 onlyif mysql # use DIV operator for integer division query I rowsort label-4495 SELECT DISTINCT - + col1 + - col0 DIV + col1 AS col2 FROM tab1 AS cor0 ---- -16 -19 -26 skipif mysql # not compatible query I rowsort label-4495 SELECT DISTINCT - + col1 + - col0 / + col1 AS col2 FROM tab1 AS cor0 ---- -16 -19 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-4496 SELECT ALL + - col0 * + col1 + + col2 DIV + col1 col0 FROM tab1 AS cor0 ---- -1033 -635 -76 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4496 SELECT ALL + - col0 * + col1 + + col2 / + col1 col0 FROM tab1 AS cor0 ---- -1033 -635 -76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + - 73 * + col1 col2 FROM tab1 ---- -1895 -666 -869 query I rowsort SELECT ALL - ( ( + tab2.col1 ) ) * - col2 + - 10 FROM tab2 ---- 1524 636 827 query I rowsort SELECT tab1.col1 - col2 * - col2 FROM tab1 ---- 2942 3259 9229 query I rowsort SELECT 33 + + col0 FROM tab1 ---- 113 36 97 query I rowsort SELECT ALL + - col2 + col1 * 43 - col0 FROM tab1 AS cor0 ---- 1061 309 383 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + tab2.col1 col2 FROM tab2 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * 48 col1 FROM tab0 cor0 ---- 1152 1680 4272 query I rowsort SELECT + cor0.col0 + col1 - - col1 * col1 AS col0 FROM tab2 AS cor0 ---- 3618 385 999 query I rowsort SELECT + col0 + + col1 + col1 * + col1 AS col0 FROM tab0 AS cor0 ---- 7506 8461 9541 query I rowsort SELECT ALL col0 * 20 + col0 AS col1 FROM tab2 AS cor0 ---- 147 1638 1659 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col0 * 81 col1 FROM tab0 AS cor0 ---- -1944 -2835 -7209 query I rowsort SELECT - col1 + + 50 AS col0 FROM tab0 AS cor0 ---- -36 -41 -47 query I rowsort SELECT ALL - - col1 * 78 FROM tab0 AS cor0 ---- 6708 7098 7566 query I rowsort SELECT + col1 * - col1 + - col1 AS col0 FROM tab0 AS cor0 ---- -7482 -8372 -9506 query I rowsort SELECT ALL - col1 - + ( col1 ) FROM tab0 ---- -172 -182 -194 query I rowsort SELECT ALL col0 + - ( - col1 ) AS col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT + 38 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7 query I rowsort SELECT DISTINCT col0 * tab2.col1 + + ( tab2.col1 ) FROM tab2 ---- 1360 248 4661 query I rowsort SELECT - col0 + ( + col2 ) * cor0.col1 + col1 FROM tab2 AS cor0 ---- 1515 584 861 query I rowsort SELECT - col0 * - 0 + col0 * + col2 - - col2 * tab0.col0 AS col2 FROM tab0 ---- 14596 1584 70 query I rowsort SELECT DISTINCT - col0 - + 53 FROM tab2 ---- -131 -132 -60 query I rowsort SELECT DISTINCT + 56 * col1 + - col2 * ( + col2 ) + - ( + col0 ) FROM tab0 ---- -1717 3703 5396 query I rowsort SELECT ALL - tab2.col0 + col0 * tab2.col2 FROM tab2 ---- 182 1950 2923 query I rowsort SELECT col1 + col0 * + 29 FROM tab2 ---- 2308 2321 234 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 78 col2 FROM tab0 ---- -78 query I rowsort SELECT ALL + 34 AS col0 FROM tab1 ---- 34 34 34 query I rowsort SELECT - col1 * - col1 * - ( col0 + col2 ) FROM tab1 ---- -12100 -29744 -38532 query I rowsort SELECT - ( - col0 ) * - ( tab0.col1 ) AS col0 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + - cor0.col2 + - 3 AS col1 FROM tab2 AS cor0 ---- -29 -30 -41 query I rowsort SELECT - col0 * + 24 FROM tab0 AS cor0 ---- -2136 -576 -840 query I rowsort SELECT DISTINCT - cor0.col2 * ( col2 ) AS col2 FROM tab0 cor0 ---- -1 -1089 -6724 query I rowsort SELECT - - col2 + + ( + col0 ) + + col0 FROM tab2 AS cor0 ---- 182 196 41 query I rowsort SELECT ALL ( tab2.col1 ) AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT ALL + cor0.col0 + + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT ALL - - col0 * 64 FROM tab2 AS cor0 ---- 448 4992 5056 query I rowsort SELECT ALL + + col0 + + col1 AS col0 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT + col2 * + col1 + - col1 + col2 AS col0 FROM tab2 AS cor0 ---- 1501 667 833 query I rowsort SELECT DISTINCT - cor0.col1 * - 86 + col1 FROM tab2 AS cor0 ---- 1479 2697 5133 onlyif mysql # use DIV operator for integer division query I rowsort label-4535 SELECT ALL 21 DIV col1 + - col0 AS col2 FROM tab1 AS cor0 ---- -3 -62 -79 skipif mysql # not compatible query I rowsort label-4535 SELECT ALL 21 / col1 + - col0 AS col2 FROM tab1 AS cor0 ---- -3 -62 -79 query I rowsort SELECT ( + 35 ) FROM tab1 ---- 35 35 35 query I rowsort SELECT DISTINCT - + 57 + col2 * col1 FROM tab2 AS cor0 ---- 1477 589 780 query I rowsort SELECT DISTINCT 22 - - col2 FROM tab0 AS cor0 ---- 104 23 55 query I rowsort SELECT - cor0.col2 * ( + cor0.col0 ) AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - + 23 FROM tab2 AS cor0 ---- -23 onlyif mysql # use DIV operator for integer division query I rowsort label-4541 SELECT ALL + - 22 * col2 DIV - col2 FROM tab0 AS cor0 ---- 22 22 22 skipif mysql # not compatible query I rowsort label-4541 SELECT ALL + - 22 * col2 / - col2 FROM tab0 AS cor0 ---- 22 22 22 query I rowsort SELECT DISTINCT + - 48 - col2 AS col2 FROM tab0 AS cor0 ---- -130 -49 -81 query I rowsort SELECT col0 * - ( col0 ) - col2 FROM tab1 AS cor0 ---- -4153 -63 -6496 query I rowsort SELECT DISTINCT - 33 + + col1 AS col2 FROM tab1 AS cor0 ---- -20 -23 -7 query I rowsort SELECT ALL col1 * col0 + + 79 AS col0 FROM tab1 AS cor0 ---- 1119 157 719 query I rowsort SELECT + cor0.col2 - col0 * + col1 AS col1 FROM tab1 cor0 ---- -24 -583 -944 query I rowsort SELECT DISTINCT + col2 + - cor0.col1 * - 75 FROM tab0 cor0 ---- 6483 6907 7276 query I rowsort SELECT ALL - + col0 * col0 - 88 FROM tab0 AS cor0 ---- -1313 -664 -8009 query I rowsort SELECT ALL cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2 ---- 243 values hashing to de2705ff0bb8b4f714dafb07497c6119 query I rowsort SELECT ALL col1 + col1 * + col1 AS col1 FROM tab1 AS cor0 ---- 110 182 702 query I rowsort SELECT ALL + col0 * - col2 - - col2 * cor0.col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + 97 - + col1 AS col1 FROM tab2 AS cor0 ---- -114 -128 -156 query I rowsort SELECT DISTINCT - col0 - - col2 * col1 * 60 FROM tab0 ---- 170256 447631 5785 query I rowsort SELECT + 98 + - col2 AS col0 FROM tab1 cor0 ---- 2 41 44 query I rowsort SELECT ALL - col0 * - col0 - - col2 AS col1 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT col2 * cor0.col0 + - cor0.col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT - 76 * + col0 + - col1 FROM tab0 AS cor0 ---- -1910 -2757 -6855 onlyif mysql # use DIV operator for integer division query I rowsort label-4558 SELECT - 42 DIV col2 + - 35 * col2 DIV col0 AS col0 FROM tab1 AS cor0 ---- -31 -42 -630 skipif mysql # not compatible query I rowsort label-4558 SELECT - 42 / col2 + - 35 * col2 / col0 AS col0 FROM tab1 AS cor0 ---- -31 -42 -630 query I rowsort SELECT DISTINCT + col0 + + col1 + + 31 * col0 AS col1 FROM tab0 AS cor0 ---- 1217 2939 854 query I rowsort SELECT + col0 * - col0 * + ( col2 ) FROM tab0 cor0 ---- -1225 -19008 -649522 query I rowsort SELECT - ( cor0.col0 ) * 79 AS col1 FROM tab2 AS cor0 ---- -553 -6162 -6241 query I rowsort SELECT + col1 + - col2 * col1 * 56 AS col2 FROM tab1 AS cor0 ---- -31910 -69875 -78598 query I rowsort SELECT + cor0.col0 - - cor0.col1 AS col2 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT + col2 + 59 AS col2 FROM tab1 AS cor0 ---- 113 116 155 query I rowsort SELECT 17 FROM tab2 cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 43298e43365fccb5146ea32003753c92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( - 72 ) + cor1.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 1e89d4caac43c937412f6e8ceb08cffc onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4567 SELECT - CAST( + ( + col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-4567 SELECT - CAST ( + ( + col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT - - 69 * 14 FROM tab0 cor0 ---- 966 966 966 query I rowsort SELECT ALL + 27 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4570 SELECT DISTINCT CAST( col2 AS SIGNED ) * + col0 AS col2 FROM tab2 ---- 189 2028 3002 skipif mysql # not compatible query I rowsort label-4570 SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col0 AS col2 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT + cor0.col1 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL - - ( + col2 ) FROM tab2 cor0 ---- 26 27 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4573 SELECT ALL + CAST( NULL AS SIGNED ) * - col0 col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4573 SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4574 SELECT DISTINCT - - col2 DIV - col0 FROM tab2 cor0 ---- -3 0 skipif mysql # not compatible query I rowsort label-4574 SELECT DISTINCT - - col2 / - col0 FROM tab2 cor0 ---- -3 0 query I rowsort SELECT - ( - 30 * - col1 ) AS col1 FROM tab0 ---- -2580 -2730 -2910 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4576 SELECT ALL + CAST( + col0 AS SIGNED ) FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-4576 SELECT ALL + CAST ( + col0 AS INTEGER ) FROM tab0 ---- 24 35 89 query I rowsort SELECT - col0 + + 4 * col2 AS col1 FROM tab0 AS cor0 ---- -31 108 239 onlyif mysql # use DIV operator for integer division query I rowsort label-4578 SELECT col0 DIV - ( 22 ) + - col2 * - col1 AS col2 FROM tab0 AS cor0 ---- 2837 7458 96 skipif mysql # not compatible query I rowsort label-4578 SELECT col0 / - ( 22 ) + - col2 * - col1 AS col2 FROM tab0 AS cor0 ---- 2837 7458 96 query I rowsort SELECT col1 + + ( col0 + + col1 ) AS col2 FROM tab1 AS cor0 ---- 106 55 84 onlyif mysql # use DIV operator for integer division query I rowsort label-4580 SELECT + col1 * + 60 + 70 DIV col1 FROM tab2 AS cor0 ---- 1024 1862 3541 skipif mysql # not compatible query I rowsort label-4580 SELECT + col1 * + 60 + 70 / col1 FROM tab2 AS cor0 ---- 1024 1862 3541 query I rowsort SELECT + - cor0.col2 + ( col1 ) * col0 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL - cor0.col2 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT cor0.col2 - - col0 * - 87 AS col0 FROM tab1 AS cor0 ---- -207 -5511 -6864 query I rowsort SELECT col2 * ( 32 ) + col0 FROM tab0 cor0 ---- 1080 2713 67 query I rowsort SELECT DISTINCT col1 * ( ( col2 ) ) + cor0.col2 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT - col1 + + 49 * col2 AS col2 FROM tab1 AS cor0 ---- 2620 2783 4691 onlyif mysql # use DIV operator for integer division query I rowsort label-4587 SELECT DISTINCT + + col1 * 13 DIV - col2 FROM tab1 AS cor0 ---- -1 -2 -6 skipif mysql # not compatible query I rowsort label-4587 SELECT DISTINCT + + col1 * 13 / - col2 FROM tab1 AS cor0 ---- -1 -2 -6 query I rowsort SELECT cor0.col1 * ( + 66 ) FROM tab2 AS cor0 ---- 1122 2046 3894 query I rowsort SELECT DISTINCT ( + col2 ) * + col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - cor1.col0 FROM tab2, tab2 AS cor0, tab0 cor1 ---- -24 -35 -89 query I rowsort SELECT DISTINCT - - 74 + - 4 FROM tab2 AS cor0 ---- 70 query I rowsort SELECT DISTINCT col0 + + 43 AS col2 FROM tab1 ---- 107 123 46 query I rowsort SELECT + col0 * + col0 + col2 + + col2 * col2 * col0 FROM tab0 AS cor0 ---- 1261 26745 606439 onlyif mysql # use DIV operator for integer division query I rowsort label-4594 SELECT - + col2 + cor0.col2 * + ( - col2 ) - - cor0.col2 DIV - col0 AS col1 FROM tab1 AS cor0 ---- -2988 -3306 -9313 skipif mysql # not compatible query I rowsort label-4594 SELECT - + col2 + cor0.col2 * + ( - col2 ) - - cor0.col2 / - col0 AS col1 FROM tab1 AS cor0 ---- -2988 -3306 -9313 query I rowsort SELECT + col1 * col0 + + col2 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT ALL + + 42 + cor0.col2 + cor0.col1 * - cor0.col1 FROM tab1 AS cor0 ---- -1 -31 -580 onlyif mysql # use DIV operator for integer division query I rowsort label-4597 SELECT DISTINCT - col0 + tab1.col0 DIV 99 AS col1 FROM tab1 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-4597 SELECT DISTINCT - col0 + tab1.col0 / 99 AS col1 FROM tab1 ---- -3 -64 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-4598 SELECT DISTINCT 78 DIV - col1 col0 FROM tab1 ---- -3 -6 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4598 SELECT DISTINCT 78 / - col1 col0 FROM tab1 ---- -3 -6 -7 query I rowsort SELECT ALL 14 - 60 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d query I rowsort SELECT - col1 + - col2 + col1 * col1 AS col2 FROM tab1 AS cor0 ---- 33 596 60 query I rowsort SELECT col1 - - col0 * + col1 * + col1 AS col2 FROM tab0 ---- 177590 329412 737100 query I rowsort SELECT - tab0.col2 - tab0.col0 FROM tab0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-4603 SELECT DISTINCT - ( + col2 ) DIV col2 + - col1 DIV col0 FROM tab0 ---- -2 -3 -4 skipif mysql # not compatible query I rowsort label-4603 SELECT DISTINCT - ( + col2 ) / col2 + - col1 / col0 FROM tab0 ---- -2 -3 -4 query I rowsort SELECT + 77 + col1 FROM tab0 ---- 163 168 174 query I rowsort SELECT DISTINCT + col2 + col2 * + col2 FROM tab2 ---- 1482 702 756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col0 + tab1.col0 col1 FROM tab1 ---- 128 160 6 query I rowsort SELECT ALL - col1 + - col2 * col1 + col2 * + col0 AS col2 FROM tab1 AS cor0 ---- -1268 3068 6419 query I rowsort SELECT ALL + + col2 * col0 * col1 + col1 AS col1 FROM tab0 AS cor0 ---- 3492 664209 68198 query I rowsort SELECT DISTINCT - col0 + - cor0.col0 AS col1 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT DISTINCT + col2 * + col1 * + col0 AS col2 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT col2 + - 50 FROM tab2 ---- -12 -23 -24 query I rowsort SELECT - ( - col2 ) + tab0.col0 AS col2 FROM tab0 ---- 171 36 57 query I rowsort SELECT + - ( + col1 ) + + col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 50 AS col0 FROM tab2 AS cor0 ---- 50 query I rowsort SELECT ALL - - col1 + - 21 + - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -40 -83 3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4616 SELECT - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4616 SELECT - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 72 * col1 * + col1 + col0 * - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -534576 -604331 -680843 onlyif mysql # use DIV operator for integer division query I rowsort label-4618 SELECT DISTINCT cor0.col1 + + col1 DIV - col1 FROM tab2 AS cor0 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-4618 SELECT DISTINCT cor0.col1 + + col1 / - col1 FROM tab2 AS cor0 ---- 16 30 58 query I rowsort SELECT + - 12 * + col0 + col2 - + col2 AS col1 FROM tab0 cor0 ---- -1068 -288 -420 onlyif mysql # use DIV operator for integer division query I rowsort label-4620 SELECT DISTINCT + - col0 + + col1 DIV + col1 + col1 col1 FROM tab2 cor0 ---- -18 -61 25 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4620 SELECT DISTINCT + - col0 + + col1 / + col1 + col1 col1 FROM tab2 cor0 ---- -18 -61 25 query I rowsort SELECT DISTINCT + 30 + col1 * col0 AS col0 FROM tab1 AS cor0 ---- 1070 108 670 query I rowsort SELECT + col0 - + col1 * col0 AS col0 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT DISTINCT + - 79 + col0 FROM tab1 AS cor0 ---- -15 -76 1 onlyif mysql # use DIV operator for integer division query I rowsort label-4624 SELECT ALL - col2 + + col0 DIV + col0 FROM tab2 AS cor0 ---- -25 -26 -37 skipif mysql # not compatible query I rowsort label-4624 SELECT ALL - col2 + + col0 / + col0 FROM tab2 AS cor0 ---- -25 -26 -37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( col2 ) * cor0.col2 col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT - + col0 + - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT - col2 + + col0 * + cor0.col1 * col0 FROM tab2 AS cor0 ---- 106059 1492 358930 query I rowsort SELECT 94 + + col1 FROM tab0 ---- 180 185 191 query I rowsort SELECT ALL - + ( - col1 ) AS col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT ALL + col2 + col0 * col0 + col0 AS col1 FROM tab0 AS cor0 ---- 1261 633 8092 query I rowsort SELECT + 69 + + col0 * col2 FROM tab2 AS cor0 ---- 2097 258 3071 query I rowsort SELECT ( - col0 * + tab0.col1 ) AS col2 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - cor0.col2 FROM tab0, tab1 cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT + - ( 71 ) + + col2 + + ( + col1 ) AS col2 FROM tab2 cor0 ---- -13 -16 14 query I rowsort SELECT DISTINCT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-4636 SELECT DISTINCT - col0 + + col0 DIV - col0 + - col2 FROM tab0 ---- -172 -37 -58 skipif mysql # not compatible query I rowsort label-4636 SELECT DISTINCT - col0 + + col0 / - col0 + - col2 FROM tab0 ---- -172 -37 -58 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4637 SELECT CAST( col1 AS SIGNED ) + cor0.col0 FROM tab0 AS cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-4637 SELECT CAST ( col1 AS INTEGER ) + cor0.col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT col0 * col0 + + col0 FROM tab0 ---- 1260 600 8010 query I rowsort SELECT tab0.col1 * + tab0.col1 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 51855bb230a34802a628192d3e332a79 query I rowsort SELECT 71 * col1 + - ( col0 ) AS col1 FROM tab1 AS cor0 ---- 1843 646 843 query I rowsort SELECT - col1 * - col1 + col0 * + col0 AS col0 FROM tab2 AS cor0 ---- 1010 6530 9565 query I rowsort SELECT + 65 + 59 AS col2 FROM tab2 ---- 124 124 124 query I rowsort SELECT col2 * + 23 FROM tab0 ---- 1886 23 759 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 54 * 51 + + col2 col2 FROM tab0 cor0 ---- 2755 2787 2836 query I rowsort SELECT DISTINCT 80 FROM tab2, tab0, tab1 AS cor0 ---- 80 query I rowsort SELECT DISTINCT 9 * - col1 * col0 FROM tab1 ---- -5760 -702 -9360 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4647 SELECT + col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4647 SELECT + col0 / CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4648 SELECT ALL col1 DIV col0 col1 FROM tab0 ---- 1 2 3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4648 SELECT ALL col1 / col0 col1 FROM tab0 ---- 1 2 3 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab2, tab2 cor0, tab0 AS cor1 ---- 972 values hashing to deaaa983f771be544ffdc26f04a18657 query I rowsort SELECT ALL 33 AS col2 FROM tab2, tab0 cor0, tab0 cor1 ---- 27 values hashing to 76da8bc7cae18ecf856438f872430c80 query I rowsort SELECT - col1 + - col2 * tab2.col1 AS col1 FROM tab2 ---- -1593 -663 -868 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + + 69 col0 FROM tab0 ---- 155 160 166 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 43 * 10 col1 FROM tab0, tab2 cor0 ---- 9 values hashing to 7b533d1b3b9c4b8030def0ab6c47733e query I rowsort SELECT ALL col0 * + col1 * ( - col2 * col1 ) AS col2 FROM tab0 ---- -329315 -5857632 -60434738 onlyif mysql # use DIV operator for integer division query I rowsort label-4655 SELECT ALL + cor0.col0 DIV 86 FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4655 SELECT ALL + cor0.col0 / 86 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT col0 * 74 AS col1 FROM tab2 AS cor0 ---- 518 5772 5846 query I rowsort SELECT ALL - + col1 + 83 * cor0.col1 FROM tab1 AS cor0 ---- 1066 2132 820 query I rowsort SELECT col2 * col2 * + 83 FROM tab1 AS cor0 ---- 242028 269667 764928 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 query I rowsort SELECT ALL + col2 + - 12 * 3 AS col2 FROM tab1 AS cor0 ---- 18 21 60 query I rowsort SELECT DISTINCT + col0 * + ( - 5 ) FROM tab0 AS cor0 ---- -120 -175 -445 onlyif mysql # use DIV operator for integer division query I rowsort label-4662 SELECT ALL + col1 DIV + tab0.col2 AS col1 FROM tab0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-4662 SELECT ALL + col1 / + tab0.col2 AS col1 FROM tab0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * - ( col1 ) col0 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT + cor0.col1 * + 49 AS col1 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 52c61602ac25245163742fa5de4d910a query I rowsort SELECT + - ( + col1 ) + col0 AS col1 FROM tab2 cor0 ---- -24 19 62 onlyif mysql # use DIV operator for integer division query I rowsort label-4666 SELECT 92 DIV col1 AS col1 FROM tab0 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-4666 SELECT 92 / col1 AS col1 FROM tab0 AS cor0 ---- 0 1 1 query I rowsort SELECT - ( - tab0.col2 ) AS col0 FROM tab0 ---- 1 33 82 query I rowsort SELECT 93 + col2 FROM tab0 ---- 126 175 94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4669 SELECT - CAST( + 27 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -27 -27 -27 skipif mysql # not compatible query I rowsort label-4669 SELECT - CAST ( + 27 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -27 -27 -27 query I rowsort SELECT DISTINCT + + ( + 0 ) * + col2 + ( col0 ) FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort SELECT ALL + + 60 + + col2 + CAST ( - 54 AS REAL ) FROM tab1 AS cor0 ---- 102 60 63 query I rowsort SELECT + + 48 + col2 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- 2076 237 3050 query I rowsort SELECT + - 55 AS col1 FROM tab1 AS cor0 ---- -55 -55 -55 query I rowsort SELECT DISTINCT 14 * + col2 AS col2 FROM tab1 ---- 1344 756 798 onlyif mysql # use DIV operator for integer division query I rowsort label-4675 SELECT ALL - - col1 DIV col1 + - col1 FROM tab2 AS cor0 ---- -16 -30 -58 skipif mysql # not compatible query I rowsort label-4675 SELECT ALL - - col1 / col1 + - col1 FROM tab2 AS cor0 ---- -16 -30 -58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col2 * - col0 col2 FROM tab2 cor0 ---- 1323 158184 237158 skipif mysql # not compatible query I rowsort SELECT - col0 * CAST ( + col0 AS REAL ) AS col1 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT col0 * tab0.col2 - - col1 * - col0 FROM tab0 ---- -1272 -3360 -801 query I rowsort SELECT col2 * cor0.col2 + col1 * 51 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 17835 37392 8349 skipif mysql # not compatible query I rowsort SELECT col0 * col0 / CAST ( - col0 AS REAL ) + col0 / col0 + 24 AS col1 FROM tab2 AS cor0 ---- -53 -54 18 onlyif mysql # use DIV operator for integer division query I rowsort label-4681 SELECT DISTINCT - col1 DIV cor0.col1 AS col1 FROM tab1 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-4681 SELECT DISTINCT - col1 / cor0.col1 AS col1 FROM tab1 AS cor0 ---- -1 query I rowsort SELECT + + col0 * col0 AS col0 FROM tab1 cor0 ---- 4096 6400 9 query I rowsort SELECT - cor0.col0 * col1 + - ( col1 + - col2 ) FROM tab2 AS cor0 ---- -1322 -221 -4635 query I rowsort SELECT + col1 * + col1 - 54 FROM tab1 AS cor0 ---- 115 46 622 query I rowsort SELECT DISTINCT cor2.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- 24 35 89 query I rowsort SELECT col2 + 9 AS col2 FROM tab1 AS cor0 ---- 105 63 66 query I rowsort SELECT + 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 query I rowsort SELECT - - 77 * + col1 + + col2 AS col2 FROM tab2 AS cor0 ---- 1347 2414 4569 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23 query I rowsort SELECT + cor0.col0 * 26 AS col1 FROM tab2 AS cor0 ---- 182 2028 2054 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4691 SELECT + ( - col2 ) + cor0.col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4691 SELECT + ( - col2 ) + cor0.col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL ( + 20 ) AS col2 FROM tab0 AS cor0 ---- 20 20 20 query I rowsort SELECT DISTINCT 5 FROM tab1, tab0 AS cor0 ---- 5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4694 SELECT DISTINCT + col0 * - col1 * CAST( + col0 * + col2 AS SIGNED ) FROM tab1 AS cor0 ---- -12636 -2334720 -7987200 skipif mysql # not compatible query I rowsort label-4694 SELECT DISTINCT + col0 * - col1 * CAST ( + col0 * + col2 AS INTEGER ) FROM tab1 AS cor0 ---- -12636 -2334720 -7987200 query I rowsort SELECT ALL + 20 AS col1 FROM tab1 cor0 ---- 20 20 20 query I rowsort SELECT cor0.col1 + cor0.col0 + - col2 AS col2 FROM tab2 AS cor0 ---- 11 111 58 onlyif mysql # use DIV operator for integer division query I rowsort label-4697 SELECT - 31 DIV col0 FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-4697 SELECT - 31 / col0 FROM tab2 ---- -4 0 0 query I rowsort SELECT DISTINCT ( - 50 * + col1 ) AS col2 FROM tab0 ---- -4300 -4550 -4850 query I rowsort SELECT ALL + ( - 89 + - col0 ) FROM tab1 ---- -153 -169 -92 query I rowsort SELECT col1 + col2 * 97 AS col2 FROM tab0 AS cor0 ---- 194 3287 8045 onlyif mysql # use DIV operator for integer division query I rowsort label-4701 SELECT ALL 15 DIV col1 AS col1 FROM tab1 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-4701 SELECT ALL 15 / col1 AS col1 FROM tab1 ---- 0 1 1 query I rowsort SELECT ALL 66 + col1 + 83 * + 80 FROM tab0 ---- 6792 6797 6803 query I rowsort SELECT ALL 13 * col0 + - col2 FROM tab1 ---- -15 775 944 query I rowsort SELECT ALL col2 + col2 - ( - col0 ) AS col2 FROM tab1 ---- 111 178 272 query I rowsort SELECT ALL - col1 * - col2 + - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 2814 62 7373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 94 * + col0 + 99 col0 FROM tab0 AS cor0 ---- 2355 3389 8465 query I rowsort SELECT + col2 + col0 * ( cor0.col2 ) * col2 + 27 FROM tab1 AS cor0 ---- 208020 737403 8829 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - tab1.col1 col0 FROM tab1 ---- -1040 -640 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-4709 SELECT ALL cor0.col0 DIV + cor0.col0 FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4709 SELECT ALL cor0.col0 / + cor0.col0 FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - 93 * + col2 FROM tab1 AS cor0 ---- -5022 -5301 -8928 query I rowsort SELECT DISTINCT - 5 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- -5 query I rowsort SELECT DISTINCT - col1 + - tab0.col2 + + 44 AS col1 FROM tab0 ---- -129 -54 -75 query I rowsort SELECT - col0 * 43 AS col0 FROM tab2 ---- -301 -3354 -3397 query I rowsort SELECT - - tab1.col0 + 37 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 2e5b711c0420b1a4cad0bab97947883b query I rowsort SELECT ALL col0 + col0 * + col1 AS col1 FROM tab1 ---- 1120 704 81 query I rowsort SELECT - col2 * - ( col0 + col1 ) AS col0 FROM tab2 ---- 1026 3562 3648 onlyif mysql # use DIV operator for integer division query I rowsort label-4717 SELECT ALL tab1.col2 * + CAST( + col2 AS SIGNED ) + - col1 DIV 29 FROM tab1 ---- 2916 3249 9216 skipif mysql # not compatible query I rowsort label-4717 SELECT ALL tab1.col2 * + CAST ( + col2 AS INTEGER ) + - col1 / 29 FROM tab1 ---- 2916 3249 9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 83 * col2 col2 FROM tab0 cor0 ---- 2739 6806 83 onlyif mysql # use DIV operator for integer division query I rowsort label-4719 SELECT col2 * col2 DIV col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-4719 SELECT col2 * col2 / col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL + - 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-4721 SELECT DISTINCT + 68 + ( - col2 ) DIV - cor0.col1 FROM tab2 AS cor0 ---- 68 70 skipif mysql # not compatible query I rowsort label-4721 SELECT DISTINCT + 68 + ( - col2 ) / - cor0.col1 FROM tab2 AS cor0 ---- 68 70 query I rowsort SELECT DISTINCT + + col0 + - col2 * col2 + + col2 AS col1 FROM tab2 AS cor0 ---- -1327 -572 -695 query I rowsort SELECT + ( - ( col0 ) ) + + col0 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - + col1 * - 28 + col1 AS col1 FROM tab0 AS cor0 ---- 2494 2639 2813 onlyif mysql # use DIV operator for integer division query I rowsort label-4725 SELECT ( col1 ) DIV col0 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-4725 SELECT ( col1 ) / col0 FROM tab2 AS cor0 ---- 0 0 4 query I rowsort SELECT DISTINCT - col0 + 1 * col0 + - 76 AS col1 FROM tab0 AS cor0 ---- -76 query I rowsort SELECT ALL - 67 AS col0 FROM tab1 AS cor0 ---- -67 -67 -67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 62 + cor0.col2 col0 FROM tab2 AS cor0 ---- 100 88 89 query I rowsort SELECT + - ( 72 ) AS col2 FROM tab1 AS cor0 ---- -72 -72 -72 query I rowsort SELECT ALL + 48 * col1 + col2 FROM tab0 AS cor0 ---- 4161 4450 4657 query I rowsort SELECT ALL + col2 * + col0 + col1 AS col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT cor0.col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( col1 - col0 ) ---- query I rowsort SELECT DISTINCT col2 * col2 + + col2 AS col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT + col1 * + col1 * - col2 AS col0 FROM tab1 ---- -16224 -36504 -5700 query I rowsort SELECT col2 FROM tab2 WHERE NULL NOT IN ( tab2.col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4736 SELECT ALL - tab2.col1 DIV col1 AS col1 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4736 SELECT ALL - tab2.col1 / col1 AS col1 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT + col2 * - col0 + + col1 AS col1 FROM tab0 WHERE NOT NULL IN ( tab0.col2 + col0 ) ---- query I rowsort SELECT + tab1.col1 * col2 + col1 * col2 AS col2 FROM tab1 ---- 1140 2496 2808 onlyif mysql # use DIV operator for integer division query I rowsort label-4739 SELECT - col2 DIV + col1 + col2 - col2 * + col2 FROM tab1 ---- -2864 -3197 -9127 skipif mysql # not compatible query I rowsort label-4739 SELECT - col2 / + col1 + col2 - col2 * + col2 FROM tab1 ---- -2864 -3197 -9127 query I rowsort SELECT col0 * col1 * + col0 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT col2 + col2 + - tab0.col1 AS col1 FROM tab0 ---- -20 -95 73 query I rowsort SELECT - col1 * col1 + col0 * col2 + col2 AS col2 FROM tab0 ---- -6571 -901 -9373 query I rowsort SELECT DISTINCT + col0 / tab2.col1 FROM tab2 WHERE NULL NOT IN ( col2 ) ---- query I rowsort SELECT ALL col0 * + col2 + col2 + + col2 * col1 AS col0 FROM tab1 ---- 1620 4275 9024 query I rowsort SELECT col0 + + col1 + + col0 AS col1 FROM tab1 ---- 138 173 32 query I rowsort SELECT - tab0.col2 * - col2 + col2 AS col0 FROM tab0 ---- 1122 2 6806 query I rowsort SELECT DISTINCT - col0 * col2 + + col2 * + col0 AS col1 FROM tab0 ---- 0 query I rowsort SELECT ALL + tab1.col2 * + col0 AS col1 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - col0 + col0 * + col0 * - col1 + + col0 FROM tab0 ---- -118825 -49536 -720811 onlyif mysql # use DIV operator for integer division query I rowsort label-4750 SELECT - col1 + + col2 DIV + col0 FROM tab2 ---- -17 -28 -59 skipif mysql # not compatible query I rowsort label-4750 SELECT - col1 + + col2 / + col0 FROM tab2 ---- -17 -28 -59 query I rowsort SELECT ALL + tab0.col1 * - col2 + + col2 AS col1 FROM tab0 ---- -2805 -7380 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-4752 SELECT ALL - + col0 DIV + col1 AS col1 FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-4752 SELECT ALL - + col0 / + col1 AS col1 FROM tab1 AS cor0 ---- -6 -6 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4753 SELECT + + col1 * - col0 + - col2 DIV - col2 AS col2 FROM tab1 AS cor0 ---- -1039 -639 -77 skipif mysql # not compatible query I rowsort label-4753 SELECT + + col1 * - col0 + - col2 / - col2 AS col2 FROM tab1 AS cor0 ---- -1039 -639 -77 query I rowsort SELECT col1 FROM tab2 cor0 WHERE NULL IN ( col0 ) OR ( NULL ) > - cor0.col1 * col0 ---- query I rowsort SELECT + + col1 + - col1 AS col1 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 * col2 + - col2 AS col1 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT DISTINCT - col2 + - tab2.col2 FROM tab2 ---- -52 -54 -76 onlyif mysql # use DIV operator for integer division query I rowsort label-4758 SELECT ALL col1 * col0 DIV col1 + + col2 AS col2 FROM tab1 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-4758 SELECT ALL col1 * col0 / col1 + + col2 AS col2 FROM tab1 ---- 121 176 57 query I rowsort SELECT - tab0.col2 + - col2 + - col0 FROM tab0 ---- -253 -37 -90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col1 * col2 col0 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT - col1 * + tab1.col1 + col2 AS col1 FROM tab1 ---- -43 -622 -73 onlyif mysql # use DIV operator for integer division query I rowsort label-4762 SELECT col0 - - col0 DIV + col0 AS col0 FROM tab1 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-4762 SELECT col0 - - col0 / + col0 AS col0 FROM tab1 ---- 4 65 81 query I rowsort SELECT ALL col0 FROM tab1 WHERE NULL IN ( col2 - tab1.col1 ) ---- query I rowsort SELECT col0 * + tab1.col2 + col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT + col2 * + col0 * - tab0.col0 + col1 FROM tab0 ---- -1128 -18922 -649431 onlyif mysql # use DIV operator for integer division query I rowsort label-4766 SELECT ALL - + col2 DIV + col2 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4766 SELECT ALL - + col2 / + col2 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 query III rowsort SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col2 AND ( - col0 ) ---- query III rowsort SELECT * FROM tab0 WHERE NULL < ( - col2 ) ---- query I rowsort SELECT col1 + + 25 * col2 FROM tab2 AS cor0 ---- 706 709 967 query I rowsort SELECT col1 + 48 FROM tab0 cor0 ---- 134 139 145 query I rowsort SELECT col1 + + col1 * 93 FROM tab0 AS cor0 ---- 8084 8554 9118 query I rowsort SELECT - col1 + + ( cor0.col1 ) AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT cor0.col0 * - col2 AS col0 FROM tab0 cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-4774 SELECT - col0 + col2 DIV + col1 AS col2 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-4774 SELECT - col0 + col2 / + col1 AS col2 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT DISTINCT - col2 * tab1.col0 - col2 * col2 FROM tab1 ---- -16896 -3078 -6897 query I rowsort SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 + - col1 + - col0 / - col0 AND NULL ---- query III rowsort SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( + col0 * - col2 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * col1 * + col2 col1 FROM tab0 ---- 611884 93654 97 query I rowsort SELECT + tab2.col0 + + tab2.col1 * col2 * + col0 FROM tab2 ---- 119730 51113 5866 query I rowsort SELECT tab2.col2 * - tab2.col0 AS col1 FROM tab2 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-4781 SELECT col2 DIV tab1.col2 - - col1 * - col2 FROM tab1 ---- -1247 -1403 -569 skipif mysql # not compatible query I rowsort label-4781 SELECT col2 / tab1.col2 - - col1 * - col2 FROM tab1 ---- -1247 -1403 -569 query III rowsort SELECT ALL * FROM tab1 WHERE NOT col2 <= NULL ---- query I rowsort SELECT tab0.col0 * + col1 - - tab0.col0 AS col0 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT + col1 * col0 * tab1.col1 + + col2 * tab1.col2 FROM tab1 ---- 22736 4944 9649 query I rowsort SELECT + col0 * - col2 * ( + col0 ) + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -1190 -18984 -649433 query I rowsort SELECT ALL + 11 * col2 + - col0 * + col0 + col1 FROM tab2 AS cor0 ---- -5739 -5806 279 query I rowsort SELECT col2 * tab1.col1 * col0 + - col2 FROM tab1 ---- 36423 4158 99744 query I rowsort SELECT + col1 * - cor0.col2 + cor0.col2 * col0 AS col1 FROM tab0 AS cor0 ---- -164 -2046 -62 query I rowsort SELECT ALL - 85 + - cor1.col0 FROM tab1, tab2 cor0, tab0 AS cor1, tab2 cor2 ---- 81 values hashing to 4d78a0d255766fd4e6981c1927e47999 query I rowsort SELECT + ( 90 ) AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 96f7a90428db93f472e0d219bab64853 query I rowsort SELECT - ( + col1 ) - - col0 AS col1 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT ALL + ( col2 ) * + col0 + col2 * 30 FROM tab1 cor0 ---- 10560 1782 5358 query I rowsort SELECT + col2 + ( col0 ) + col2 FROM tab2 AS cor0 ---- 130 155 61 onlyif mysql # use DIV operator for integer division query I rowsort label-4794 SELECT - + cor0.col0 DIV cor0.col2 + col1 AS col1 FROM tab1 AS cor0 ---- 13 26 9 skipif mysql # not compatible query I rowsort label-4794 SELECT - + cor0.col0 / cor0.col2 + col1 AS col1 FROM tab1 AS cor0 ---- 13 26 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 56 col1 FROM tab0 AS cor0 ---- 56 query I rowsort SELECT + col0 - col1 * col0 AS col1 FROM tab2 ---- -1264 -210 -4524 query I rowsort SELECT tab1.col1 + + col1 * + tab1.col0 FROM tab1 ---- 104 1053 650 query I rowsort SELECT - 75 * - 18 FROM tab2 ---- 1350 1350 1350 query I rowsort SELECT 17 + + col1 FROM tab1 AS cor0 ---- 27 30 43 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4800 SELECT DISTINCT CAST( col0 AS SIGNED ) * + tab0.col0 + - col2 * - col2 * + col0 FROM tab0 ---- 1260 26712 606357 skipif mysql # not compatible query I rowsort label-4800 SELECT DISTINCT CAST ( col0 AS INTEGER ) * + tab0.col0 + - col2 * - col2 * + col0 FROM tab0 ---- 1260 26712 606357 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + + col2 - - cor0.col1 * ( 56 + + col0 ) col2 FROM tab0 AS cor0 ---- 13195 6880 8827 query I rowsort SELECT ALL + cor0.col2 * 46 AS col1 FROM tab1 AS cor0 ---- 2484 2622 4416 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4803 SELECT CAST( NULL AS SIGNED ) - - col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4803 SELECT CAST ( NULL AS INTEGER ) - - col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4804 SELECT ALL - CAST( + col1 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-4804 SELECT ALL - CAST ( + col1 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT - - 35 + col2 FROM tab2 AS cor0 ---- 61 62 73 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4806 SELECT DISTINCT + CAST( - 23 AS SIGNED ) * cor0.col2 col1 FROM tab1 AS cor0 ---- -1242 -1311 -2208 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4806 SELECT DISTINCT + CAST ( - 23 AS INTEGER ) * cor0.col2 col1 FROM tab1 AS cor0 ---- -1242 -1311 -2208 query I rowsort SELECT + 44 + 35 AS col1 FROM tab1 AS cor0 ---- 79 79 79 query I rowsort SELECT DISTINCT - + cor0.col0 + - 47 FROM tab2 AS cor0 ---- -125 -126 -54 onlyif mysql # use DIV operator for integer division query I rowsort label-4809 SELECT ALL col2 DIV 3 FROM tab1 AS cor0 ---- 18 19 32 skipif mysql # not compatible query I rowsort label-4809 SELECT ALL col2 / 3 FROM tab1 AS cor0 ---- 18 19 32 query I rowsort SELECT 60 FROM tab0, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 1d2ab302ae60f95b15e68cf89083b162 query I rowsort SELECT 51 * - col1 * - 93 + cor0.col0 AS col0 FROM tab1 cor0 ---- 123321 47494 61739 query I rowsort SELECT 48 * + col2 FROM tab2 AS cor0 ---- 1248 1296 1824 query I rowsort SELECT col2 * - col0 + col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT + 59 + - cor0.col0 FROM tab0, tab0 cor0 ---- 9 values hashing to c0f81d19070d2f180dbe0a7cfe658735 query I rowsort SELECT ALL + - col2 * ( + col0 ) + - col2 + col0 AS col0 FROM tab2 AS cor0 ---- -1976 -209 -2961 query I rowsort SELECT ALL + col2 + - 44 AS col1 FROM tab0 AS cor0 ---- -11 -43 38 query I rowsort SELECT DISTINCT + col2 + ( col0 ) FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT cor0.col1 * 12 * - 70 FROM tab0 cor0 ---- -72240 -76440 -81480 onlyif mysql # use DIV operator for integer division query I rowsort label-4819 SELECT + col1 DIV - ( col0 ) FROM tab1 AS cor0 ---- -8 0 0 skipif mysql # not compatible query I rowsort label-4819 SELECT + col1 / - ( col0 ) FROM tab1 AS cor0 ---- -8 0 0 query I rowsort SELECT ALL - col2 * 76 + - col1 * - col2 AS col0 FROM tab1 AS cor0 ---- -2700 -3762 -6048 query I rowsort SELECT + col1 * + 48 FROM tab0 AS cor0 ---- 4128 4368 4656 query I rowsort SELECT DISTINCT col2 + col2 * ( + col2 ) AS col1 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT DISTINCT + col1 * - ( col0 ) AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT + + cor0.col2 + ( + 44 ) FROM tab2 AS cor0 ---- 70 71 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4825 SELECT ALL + - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4825 SELECT ALL + - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + tab2.col0 + + 82 AS col0 FROM tab2 ---- 160 161 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4827 SELECT ALL col2 * CAST( NULL AS SIGNED ) - col0 / + cor0.col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4827 SELECT ALL col2 * CAST ( NULL AS INTEGER ) - col0 / + cor0.col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col0 + cor0.col1 * ( col1 ) FROM tab1 AS cor0 ---- 36 673 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4829 SELECT ALL - + col2 + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4829 SELECT ALL - + col2 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 + 18 AS col1 FROM tab2 cor0 ---- 35 49 77 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4831 SELECT DISTINCT - - col0 * CAST( col2 * col1 AS SIGNED ) FROM tab1 AS cor0 ---- 36480 4212 99840 skipif mysql # not compatible query I rowsort label-4831 SELECT DISTINCT - - col0 * CAST ( col2 * col1 AS INTEGER ) FROM tab1 AS cor0 ---- 36480 4212 99840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4832 SELECT DISTINCT + - col2 + CAST( ( - col0 ) AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0 ---- -1136 -132 -697 skipif mysql # not compatible query I rowsort label-4832 SELECT DISTINCT + - col2 + CAST ( ( - col0 ) AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT ALL - + col2 - - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL + col2 + + ( - col1 ) * + cor0.col0 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL + + cor0.col0 * + ( - col2 ) * - cor0.col0 AS col1 FROM tab0 AS cor0 ---- 1225 19008 649522 query I rowsort SELECT DISTINCT + - 16 + - col1 FROM tab0 AS cor0 ---- -102 -107 -113 query I rowsort SELECT - cor0.col1 + - cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 33a363dd7a3986c56a25bebd7167c42e query I rowsort SELECT 38 * col0 FROM tab0 cor0 ---- 1330 3382 912 query I rowsort SELECT ALL - 6 * 5 + col1 AS col2 FROM tab1 AS cor0 ---- -17 -20 -4 query I rowsort SELECT DISTINCT + 41 + 47 AS col0 FROM tab0 AS cor0 ---- 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + + col2 col0 FROM tab2 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4842 SELECT + - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-4842 SELECT + - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT ALL 34 + col1 FROM tab2 AS cor0 ---- 51 65 93 onlyif mysql # use DIV operator for integer division query I rowsort label-4844 SELECT - cor0.col1 DIV - col0 + col1 * + col0 FROM tab2 AS cor0 ---- 1343 221 4602 skipif mysql # not compatible query I rowsort label-4844 SELECT - cor0.col1 / - col0 + col1 * + col0 FROM tab2 AS cor0 ---- 1343 221 4602 query I rowsort SELECT DISTINCT 24 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 24 query I rowsort SELECT ALL col2 - - col1 * col0 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ALL - col0 * col0 + 55 AS col2 FROM tab0 ---- -1170 -521 -7866 query I rowsort SELECT ALL col2 + + ( + col2 ) FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT ALL col0 * col2 * 76 FROM tab1 ---- 12312 277248 583680 query I rowsort SELECT 61 + + col1 AS col1 FROM tab2 ---- 120 78 92 query I rowsort SELECT DISTINCT 33 + col1 * - ( - 73 ) FROM tab0 ---- 6311 6676 7114 query I rowsort SELECT + tab1.col1 * col1 * col1 AS col2 FROM tab1 ---- 1000 17576 2197 query I rowsort SELECT ALL cor0.col0 * 78 + - col2 AS col2 FROM tab1 AS cor0 ---- 180 4935 6144 query I rowsort SELECT DISTINCT + - col1 * - col2 + col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT - 63 * col2 * col0 AS col2 FROM tab2 ---- -11907 -127764 -189126 query I rowsort SELECT DISTINCT - + 7 * - col2 + col0 FROM tab2 AS cor0 ---- 196 260 345 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 13 col1 FROM tab1 ---- -13 -13 -13 query I rowsort SELECT + 70 FROM tab1, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to c76157a7a7ec18de56823b2058b49f32 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 cor0, tab0 AS cor1, tab0, tab0 cor2 ---- 3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5 query I rowsort SELECT DISTINCT + + tab1.col0 + 34 FROM tab1, tab2, tab2 AS cor0 ---- 114 37 98 query I rowsort SELECT DISTINCT + - col2 - + 48 * col0 FROM tab0 AS cor0 ---- -1185 -1681 -4354 query I rowsort SELECT + col1 * col1 + + col2 + col0 FROM tab0 ---- 7453 8452 9445 query I rowsort SELECT + col2 * + col2 * 27 AS col1 FROM tab2 ---- 18252 19683 38988 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4864 SELECT - col2 * + CAST( col0 + - col0 AS SIGNED ) FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4864 SELECT - col2 * + CAST ( col0 + - col0 AS INTEGER ) FROM tab1 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4865 SELECT DISTINCT + col0 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 14 156 158 skipif mysql # not compatible query I rowsort label-4865 SELECT DISTINCT + col0 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT col0 + ( ( col0 ) + col0 ) FROM tab2 AS cor0 ---- 21 234 237 query I rowsort SELECT ALL + col0 * - 44 FROM tab0 AS cor0 ---- -1056 -1540 -3916 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4868 SELECT ALL + cor0.col1 * CAST( NULL AS SIGNED ) + + ( + col2 ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4868 SELECT ALL + cor0.col1 * CAST ( NULL AS INTEGER ) + + ( + col2 ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 * + col2 + - col2 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT - + ( - cor0.col1 ) * - cor0.col2 * - 31 + cor0.col0 FROM tab1 cor0 ---- 17734 38768 43527 query I rowsort SELECT col0 * + col2 + + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT ALL - 62 + - 59 + - col2 * - 94 FROM tab1 AS cor0 ---- 4955 5237 8903 query I rowsort SELECT ALL ( col1 ) + col1 FROM tab0 cor0 ---- 172 182 194 query I rowsort SELECT DISTINCT - 63 AS col1 FROM tab0 AS cor0 ---- -63 query I rowsort SELECT - col1 * - 81 AS col1 FROM tab0 ---- 6966 7371 7857 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4876 SELECT ALL CAST( 40 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3 skipif mysql # not compatible query I rowsort label-4876 SELECT ALL CAST ( 40 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3 query I rowsort SELECT + 24 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT + col2 * col0 + - col1 + + 96 FROM tab2 AS cor0 ---- 2065 254 3081 query I rowsort SELECT DISTINCT col2 + + 47 FROM tab1 AS cor0 ---- 101 104 143 query I rowsort SELECT - + col1 * 51 FROM tab2 AS cor0 ---- -1581 -3009 -867 query I rowsort SELECT ALL + cor1.col2 AS col1 FROM tab2, tab0 cor0, tab0 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT - 47 - col1 FROM tab0 AS cor0 ---- -133 -138 -144 query I rowsort SELECT DISTINCT - 32 * + cor0.col2 FROM tab0 cor0 ---- -1056 -2624 -32 query I rowsort SELECT ALL + 33 + + col1 FROM tab0 AS cor0 ---- 119 124 130 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * - col1 col1 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT col1 * - col2 * col2 AS col1 FROM tab1 AS cor0 ---- -119808 -32490 -75816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 + col2 col0 FROM tab1 AS cor0 ---- 28 47 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 + col1 * 26 * + cor0.col2 col2 FROM tab2 AS cor0 ---- 16834 21789 39910 query I rowsort SELECT 79 + - col2 * - 54 AS col0 FROM tab0 AS cor0 ---- 133 1861 4507 onlyif mysql # use DIV operator for integer division query I rowsort label-4890 SELECT ALL col1 * col1 DIV + cor0.col1 - + col0 * col0 FROM tab2 AS cor0 ---- -18 -6025 -6224 skipif mysql # not compatible query I rowsort label-4890 SELECT ALL col1 * col1 / + cor0.col1 - + col0 * col0 FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT + - 64 * + 69 AS col2 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to bb552265eee2a04faaca699d6f36a6ac onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4892 SELECT - col2 + CAST( col0 AS SIGNED ) * - cor0.col1 + + col0 FROM tab1 AS cor0 ---- -1056 -129 -633 skipif mysql # not compatible query I rowsort label-4892 SELECT - col2 + CAST ( col0 AS INTEGER ) * - cor0.col1 + + col0 FROM tab1 AS cor0 ---- -1056 -129 -633 query I rowsort SELECT + + col2 + - col2 * + col2 FROM tab1 AS cor0 ---- -2862 -3192 -9120 query I rowsort SELECT DISTINCT cor1.col2 * 16 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 1536 864 912 query I rowsort SELECT ALL - 71 * col0 FROM tab1 ---- -213 -4544 -5680 onlyif mysql # use DIV operator for integer division query I rowsort label-4896 SELECT - + col2 DIV col1 - col1 FROM tab2 AS cor0 ---- -19 -31 -59 skipif mysql # not compatible query I rowsort label-4896 SELECT - + col2 / col1 - col1 FROM tab2 AS cor0 ---- -19 -31 -59 query I rowsort SELECT cor0.col1 * col2 + - col0 + - col1 FROM tab1 AS cor0 ---- 1155 1375 496 query I rowsort SELECT + col2 * ( - 1 ) FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT col0 * - 25 * + col2 + - col2 * - col2 FROM tab2 cor0 ---- -3996 -50024 -73606 onlyif mysql # use DIV operator for integer division query I rowsort label-4900 SELECT DISTINCT cor0.col2 DIV - col1 + col2 * - col1 AS col0 FROM tab1 AS cor0 ---- -1255 -1406 -575 skipif mysql # not compatible query I rowsort label-4900 SELECT DISTINCT cor0.col2 / - col1 + col2 * - col1 AS col0 FROM tab1 AS cor0 ---- -1255 -1406 -575 query I rowsort SELECT + col0 * + col2 * + ( + col1 * - cor0.col2 ) AS col1 FROM tab2 AS cor0 ---- -158193 -1939292 -3110952 query I rowsort SELECT + 33 * col1 AS col0 FROM tab2 AS cor0 ---- 1023 1947 561 query I rowsort SELECT - - 44 + col0 AS col0 FROM tab0 AS cor0 ---- 133 68 79 query I rowsort SELECT + col0 * - col2 + + col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT ALL + col1 + col1 * col1 * col1 FROM tab2 AS cor0 ---- 205438 29822 4930 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4906 SELECT ALL col1 + + col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4906 SELECT ALL col1 + + col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4907 SELECT DISTINCT 13 DIV + col0 AS col2 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-4907 SELECT DISTINCT 13 / + col0 AS col2 FROM tab0 ---- 0 query I rowsort SELECT - col0 * col2 * 74 FROM tab1 AS cor0 ---- -11988 -269952 -568320 query I rowsort SELECT tab2.col0 * - col0 - col2 * col0 FROM tab2 ---- -238 -8112 -9243 query I rowsort SELECT col0 + + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + ( cor0.col1 ) * col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT tab0.col2 + + tab0.col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT cor1.col1 * + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 4a2f25e7025075a0ce048be425c35957 query I rowsort SELECT + + col1 * cor0.col2 AS col1 FROM tab0 cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort SELECT DISTINCT col1 * + CAST ( 78 AS REAL ) * - col1 FROM tab1 ---- -13182 -52728 -7800 query I rowsort SELECT ALL col0 + col0 * - col0 + col2 AS col1 FROM tab0 ---- -1189 -519 -7750 query I rowsort SELECT + 65 AS col0 FROM tab0 ---- 65 65 65 query I rowsort SELECT 98 + col0 AS col0 FROM tab0 AS cor0 ---- 122 133 187 onlyif mysql # use DIV operator for integer division query I rowsort label-4919 SELECT + - 46 * ( col1 ) + col2 * + cor0.col0 + - cor0.col2 DIV - ( col0 ) AS col1 FROM tab1 AS cor0 ---- -1016 3188 7083 skipif mysql # not compatible query I rowsort label-4919 SELECT + - 46 * ( col1 ) + col2 * + cor0.col0 + - cor0.col2 / - ( col0 ) AS col1 FROM tab1 AS cor0 ---- -1016 3188 7083 query I rowsort SELECT col1 * tab1.col2 - col1 * 5 FROM tab1 ---- 1183 1274 520 query I rowsort SELECT - + col0 * - col0 * + col1 FROM tab0 cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT - ( ( + col0 ) ) + + col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT 37 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 cor2 ---- 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4924 SELECT ALL + CAST( NULL AS SIGNED ) * col0 * - col1 + col1 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4924 SELECT ALL + CAST ( NULL AS INTEGER ) * col0 * - col1 + col1 AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + col1 * col2 + + col1 * col2 FROM tab1 ---- 1140 2496 2808 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 cor1 ---- 972 values hashing to a8481bfbfcb330825976c5896e54bc19 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4927 SELECT + col2 + + col1 * col2 * CAST( col1 * + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 181656 7059494 867616 skipif mysql # not compatible query I rowsort label-4927 SELECT + col2 + + col1 * col2 * CAST ( col1 * + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 181656 7059494 867616 query I rowsort SELECT ALL - + col1 + - ( - col2 ) FROM tab0 AS cor0 ---- -53 -9 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4929 SELECT + + CAST( NULL AS SIGNED ) * - col0 + - col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4929 SELECT + + CAST ( NULL AS INTEGER ) * - col0 + - col1 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 15 * col0 AS col1 FROM tab2 AS cor0 ---- 105 1170 1185 query I rowsort SELECT DISTINCT - + cor0.col0 + - col2 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT + col0 * - 11 + - col0 AS col2 FROM tab2 AS cor0 ---- -84 -936 -948 query I rowsort SELECT ALL - ( + col2 ) - + col0 * 1 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT + + 98 * - col2 * + col2 + + ( col1 ) FROM tab2 cor0 ---- -141495 -66189 -71411 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + cor0.col1 col2 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL - col0 * + col2 + - col2 AS col2 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT - - col0 * + col0 + col1 * - col0 FROM tab0 AS cor0 ---- -1488 -178 -2170 onlyif mysql # use DIV operator for integer division query I rowsort label-4938 SELECT - ( 54 ) DIV - cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to eff82df49d5880477456e4901e030e04 skipif mysql # not compatible query I rowsort label-4938 SELECT - ( 54 ) / - cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to eff82df49d5880477456e4901e030e04 query I rowsort SELECT ALL - col0 * col0 + + col2 FROM tab0 AS cor0 ---- -1224 -543 -7839 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col1 col2 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT + + 9 * + col0 + + 47 FROM tab2 AS cor0 ---- 110 749 758 query I rowsort SELECT DISTINCT - 92 + col0 - col0 * col1 AS col2 FROM tab0 cor0 ---- -2132 -3452 -8102 query I rowsort SELECT + cor0.col0 + ( col0 ) * - col1 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT ALL - col1 * - 93 AS col0 FROM tab2 AS cor0 ---- 1581 2883 5487 onlyif mysql # use DIV operator for integer division query I rowsort label-4945 SELECT DISTINCT + col0 DIV + 80 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4945 SELECT DISTINCT + col0 / + 80 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL - cor0.col2 + 29 FROM tab2 cor0 ---- -9 2 3 query I rowsort SELECT + - col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -121 -176 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-4948 SELECT + col0 DIV - 90 AS col2 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4948 SELECT + col0 / - 90 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT col0 + 75 FROM tab2 ---- 153 154 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 * 53 col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 50b30f82362dcc3395e29d5b7046c8aa onlyif mysql # use DIV operator for integer division query I rowsort label-4951 SELECT - - col0 - ( - col1 ) DIV col0 FROM tab1 AS cor0 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-4951 SELECT - - col0 - ( - col1 ) / col0 FROM tab1 AS cor0 ---- 11 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + col0 * cor0.col1 col0 FROM tab2 cor0 ---- 1360 248 4661 query I rowsort SELECT DISTINCT + col0 - - 18 FROM tab2 AS cor0 ---- 25 96 97 query I rowsort SELECT ALL col0 * 40 AS col0 FROM tab2 AS cor0 ---- 280 3120 3160 query I rowsort SELECT ALL - cor0.col1 * 92 + 54 AS col0 FROM tab1 AS cor0 ---- -1142 -2338 -866 query I rowsort SELECT DISTINCT - col2 * 82 - 81 AS col0 FROM tab1 cor0 ---- -4509 -4755 -7953 query I rowsort SELECT ALL + col1 * + 67 + - 22 AS col2 FROM tab2 AS cor0 ---- 1117 2055 3931 query I rowsort SELECT + + 22 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1, tab0, tab1 AS cor2 ---- 243 values hashing to f10165a092a8197ed57ae9ede3983477 query I rowsort SELECT DISTINCT + col0 * - 42 + - cor0.col0 FROM tab1 cor0 ---- -129 -2752 -3440 query I rowsort SELECT - col0 + + col0 * 64 FROM tab2 AS cor0 ---- 441 4914 4977 query I rowsort SELECT + cor0.col2 + - cor0.col1 AS col0 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT + + col1 * col1 + cor0.col2 * - cor0.col0 * col0 + - cor0.col1 FROM tab2 AS cor0 ---- -154762 -236886 -393 query I rowsort SELECT ALL + + ( col1 ) * + col0 FROM tab1 AS cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + col0 ) + - col2 * - col1 * col0 col0 FROM tab2 AS cor0 ---- 119730 51113 5866 query I rowsort SELECT DISTINCT + + 7 FROM tab2 AS cor0 ---- 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4966 SELECT ALL col2 * - 9 + + col2 + CAST( col1 AS SIGNED ) * + col1 FROM tab2 AS cor0 ---- -15 3273 745 skipif mysql # not compatible query I rowsort label-4966 SELECT ALL col2 * - 9 + + col2 + CAST ( col1 AS INTEGER ) * + col1 FROM tab2 AS cor0 ---- -15 3273 745 query I rowsort SELECT DISTINCT + - 52 + + cor0.col1 * + col2 FROM tab2 AS cor0 ---- 1482 594 785 query I rowsort SELECT ALL 96 * - 96 - - col1 FROM tab0 AS cor0 ---- -9119 -9125 -9130 query I rowsort SELECT DISTINCT - 96 + + cor0.col0 * col2 FROM tab0 cor0 ---- -61 696 7202 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col0 * col1 - + col1 col2 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT ALL + col2 * col0 + + col2 AS col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT + - col1 + + 32 AS col2 FROM tab0 AS cor0 ---- -54 -59 -65 query I rowsort SELECT ALL col2 + + 7 FROM tab2 ---- 33 34 45 query I rowsort SELECT DISTINCT + col1 + 51 FROM tab0 ---- 137 142 148 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 - + ( 77 + col2 ) * ( - col2 ) col0 FROM tab2 ---- 2756 2815 4449 query I rowsort SELECT - + col0 + 11 FROM tab0 AS cor0 ---- -13 -24 -78 query I rowsort SELECT col2 * + ( col2 + - col0 ) AS col0 FROM tab2 ---- -1352 -1558 540 query I rowsort SELECT + col0 * + ( 67 ) AS col0 FROM tab0 cor0 ---- 1608 2345 5963 query I rowsort SELECT col0 + + col0 * - col1 FROM tab0 cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT - cor0.col1 + ( + col0 ) * col1 AS col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT ALL tab0.col2 * col1 * + tab0.col0 + - col2 AS col2 FROM tab0 ---- 3394 664036 68079 query I rowsort SELECT ALL col0 + col0 * + col2 AS col1 FROM tab0 ---- 70 7387 816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4983 SELECT ALL ( - col1 ) * - col2 * CAST( NULL AS SIGNED ) + ( + col0 + col1 ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4983 SELECT ALL ( - col1 ) * - col2 * CAST ( NULL AS INTEGER ) + ( + col0 + col1 ) AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL + tab1.col2 + tab1.col1 * - tab1.col1 AS col0 FROM tab1 ---- -43 -622 -73 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4985 SELECT ALL + ( 3 ) * - col2 + - CAST( - col2 AS SIGNED ) * col1 * 3 AS col2 FROM tab0 ---- 22140 288 8415 skipif mysql # not compatible query I rowsort label-4985 SELECT ALL + ( 3 ) * - col2 + - CAST ( - col2 AS INTEGER ) * col1 * 3 AS col2 FROM tab0 ---- 22140 288 8415 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4986 SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 41 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4986 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 41 AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL + ( + 54 ) + - col2 FROM tab0 AS cor0 ---- -28 21 53 query I rowsort SELECT ALL 55 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0 query I rowsort SELECT DISTINCT tab1.col2 * - tab1.col2 AS col0 FROM tab1 ---- -2916 -3249 -9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 * - col1 col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL + col2 + cor0.col1 * + cor0.col0 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT + + ( cor0.col2 ) + + 38 FROM tab1 cor0 ---- 134 92 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * + col0 col1 FROM tab0 cor0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT + 41 * col2 + col1 FROM tab0 AS cor0 ---- 138 1439 3453 query I rowsort SELECT ALL + col2 + - col0 * + col1 * + 46 AS col1 FROM tab0 AS cor0 ---- -156169 -372472 -94911 query I rowsort SELECT ( col1 ) * + col0 + col0 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT col1 + - col0 * ( col2 ) - - col0 AS col2 FROM tab1 AS cor0 ---- -133 -3574 -7587 query I rowsort SELECT + 99 * col1 AS col0 FROM tab1 ---- 1287 2574 990 query I rowsort SELECT - 65 + + cor0.col1 FROM tab1 AS cor0 ---- -39 -52 -55 query I rowsort SELECT + col0 * col1 + - 92 AS col2 FROM tab2 AS cor0 ---- 125 1251 4510 onlyif mysql # use DIV operator for integer division query I rowsort label-5001 SELECT ALL ( col0 ) DIV + col2 - col0 AS col1 FROM tab1 ---- -3 -63 -80 skipif mysql # not compatible query I rowsort label-5001 SELECT ALL ( col0 ) / + col2 - col0 AS col1 FROM tab1 ---- -3 -63 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-5002 SELECT + cor0.col1 + col0 DIV 49 AS col0 FROM tab2 AS cor0 ---- 18 31 60 skipif mysql # not compatible query I rowsort label-5002 SELECT + cor0.col1 + col0 / 49 AS col0 FROM tab2 AS cor0 ---- 18 31 60 query I rowsort SELECT - col0 * col1 + ( 81 ) FROM tab0 AS cor0 ---- -1983 -3314 -8018 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 5 col0 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e query I rowsort SELECT DISTINCT - tab2.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- -26 -27 -38 query I rowsort SELECT + cor0.col2 * col0 + - 6 * 86 AS col1 FROM tab0 AS cor0 ---- -481 276 6782 query I rowsort SELECT + col2 + 73 FROM tab0 AS cor0 ---- 106 155 74 query I rowsort SELECT - + col0 * 13 + - col1 FROM tab1 AS cor0 ---- -1053 -65 -842 query I rowsort SELECT col1 * col1 + 74 AS col1 FROM tab0 AS cor0 ---- 7470 8355 9483 query I rowsort SELECT - + col1 * col2 - - col0 AS col1 FROM tab0 cor0 ---- -2814 -62 -7373 onlyif mysql # use DIV operator for integer division query I rowsort label-5011 SELECT + col2 DIV + col0 + - col2 FROM tab1 AS cor0 ---- -36 -57 -95 skipif mysql # not compatible query I rowsort label-5011 SELECT + col2 / + col0 + - col2 FROM tab1 AS cor0 ---- -36 -57 -95 query I rowsort SELECT col2 * ( col2 ) + + col0 AS col0 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT - 93 * - tab2.col2 AS col0 FROM tab2 ---- 2418 2511 3534 query I rowsort SELECT DISTINCT + col1 + 67 AS col0 FROM tab0 AS cor0 ---- 153 158 164 query I rowsort SELECT - cor0.col0 + ( 44 ) * col2 AS col2 FROM tab2 AS cor0 ---- 1066 1181 1593 query I rowsort SELECT ( + 41 ) FROM tab2, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 query I rowsort SELECT col1 + + col1 * cor0.col1 FROM tab1 AS cor0 ---- 110 182 702 query I rowsort SELECT + + col2 * ( + col2 ) AS col2 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT - 28 + + 73 AS col0 FROM tab2 AS cor0 ---- 45 45 45 query I rowsort SELECT ALL col2 + - col1 * - col1 * col1 AS col0 FROM tab1 cor0 ---- 1057 17630 2293 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col2 ) + col1 * - col2 * + col0 col0 FROM tab1 AS cor0 ---- -36423 -4158 -99744 onlyif mysql # use DIV operator for integer division query I rowsort label-5022 SELECT cor0.col1 DIV 78 col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5022 SELECT cor0.col1 / 78 col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 query I rowsort SELECT + col1 * - 88 FROM tab1 cor0 ---- -1144 -2288 -880 query I rowsort SELECT + + 34 * col0 AS col0 FROM tab0 AS cor0 ---- 1190 3026 816 query I rowsort SELECT DISTINCT - col2 * + 81 * col2 FROM tab2 ---- -116964 -54756 -59049 query I rowsort SELECT + 33 * - 41 + col1 * + tab0.col2 FROM tab0 ---- -1256 1485 6109 query I rowsort SELECT + 70 * + col2 AS col1 FROM tab1 AS cor0 ---- 3780 3990 6720 query I rowsort SELECT ALL cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT + + 71 * col0 + + col0 AS col0 FROM tab1 AS cor0 ---- 216 4608 5760 query I rowsort SELECT col2 * cor0.col2 + + cor0.col1 FROM tab2 AS cor0 ---- 1461 735 760 query I rowsort SELECT 6 AS col0 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04 query I rowsort SELECT DISTINCT - ( + col2 ) * - col1 + cor0.col0 FROM tab0 cor0 ---- 132 2862 7551 query I rowsort SELECT DISTINCT - 1 + - col0 - + col2 FROM tab1 AS cor0 ---- -122 -177 -58 query I rowsort SELECT ALL + ( - 26 ) FROM tab2 AS cor0 ---- -26 -26 -26 query I rowsort SELECT ALL - col2 + - col1 AS col0 FROM tab2 cor0 ---- -55 -58 -85 query I rowsort SELECT col0 * col0 * + col2 + - col1 * - col2 FROM tab1 AS cor0 ---- 1890 234042 615648 query I rowsort SELECT DISTINCT + 93 * 67 + col0 + col1 FROM tab0 AS cor0 ---- 6341 6363 6411 onlyif mysql # use DIV operator for integer division query I rowsort label-5038 SELECT - + 46 * col0 + col2 DIV 44 col0 FROM tab2 AS cor0 ---- -322 -3588 -3634 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5038 SELECT - + 46 * col0 + col2 / 44 col0 FROM tab2 AS cor0 ---- -322 -3588 -3634 query I rowsort SELECT ALL - - col2 + - col0 AS col1 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT ALL 99 + - col1 AS col1 FROM tab1 AS cor0 ---- 73 86 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 * + col0 col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT 70 - + col1 FROM tab1 AS cor0 ---- 44 57 60 onlyif mysql # use DIV operator for integer division query I rowsort label-5043 SELECT ALL 28 DIV col1 FROM tab2 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5043 SELECT ALL 28 / col1 FROM tab2 cor0 ---- 0 0 1 query I rowsort SELECT ALL ( - cor0.col1 ) + - col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT - + col2 * cor0.col0 * 35 + 35 * col0 AS col0 FROM tab1 AS cor0 ---- -125440 -266000 -5565 query I rowsort SELECT DISTINCT 29 AS col0 FROM tab1 AS cor0 ---- 29 query I rowsort SELECT DISTINCT + + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 16 + - 11 col2 FROM tab2 ---- 5 5 5 query I rowsort SELECT DISTINCT + col1 * col1 + col1 * - tab0.col1 FROM tab0 ---- 0 query I rowsort SELECT - - 94 + + col0 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 2158 3489 8193 query I rowsort SELECT ALL - col0 + - col0 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-5052 SELECT ALL + col2 * 65 DIV col1 FROM tab1 AS cor0 ---- 135 370 480 skipif mysql # not compatible query I rowsort label-5052 SELECT ALL + col2 * 65 / col1 FROM tab1 AS cor0 ---- 135 370 480 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + col1 * 3 col2 FROM tab0 AS cor0 ---- 184 234 256 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5054 SELECT - + col0 + + CAST( NULL AS SIGNED ) * - 87 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5054 SELECT - + col0 + + CAST ( NULL AS INTEGER ) * - 87 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col1 * + col2 col1 FROM tab2 ---- 119652 51034 5859 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5056 SELECT - col0 - CAST( ( col2 ) AS SIGNED ) * - 68 AS col2 FROM tab0 cor0 ---- 2220 33 5487 skipif mysql # not compatible query I rowsort label-5056 SELECT - col0 - CAST ( ( col2 ) AS INTEGER ) * - 68 AS col2 FROM tab0 cor0 ---- 2220 33 5487 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5057 SELECT ALL - col2 * - CAST( - col0 AS SIGNED ) + + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -706 -7207 62 skipif mysql # not compatible query I rowsort label-5057 SELECT ALL - col2 * - CAST ( - col0 AS INTEGER ) + + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT col2 * - 92 - col2 FROM tab0 AS cor0 ---- -3069 -7626 -93 query I rowsort SELECT ALL col0 * + 16 + + col1 * cor0.col1 * col2 FROM tab2 AS cor0 ---- 12246 26059 91754 query I rowsort SELECT DISTINCT + col1 * col2 * - cor0.col1 - col0 FROM tab1 AS cor0 ---- -16304 -36507 -5764 query I rowsort SELECT ALL 98 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2 query I rowsort SELECT ALL - - cor0.col1 + col0 AS col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL col2 * ( col2 * col0 ) + col2 AS col2 FROM tab0 ---- 26169 36 598518 query I rowsort SELECT 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to 53b2f139a07f856ac44a1158efd4e63d skipif mysql # not compatible query I rowsort SELECT + + col1 + - CAST ( col0 AS REAL ) AS col2 FROM tab2 cor0 ---- -19 -62 24 query I rowsort SELECT - - col1 + col1 * col1 FROM tab0 AS cor0 ---- 7482 8372 9506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5067 SELECT CAST( NULL AS SIGNED ) + + col1 - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5067 SELECT CAST ( NULL AS INTEGER ) + + col1 - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 + + 87 FROM tab2 AS cor0 ---- 165 166 94 query I rowsort SELECT ALL cor0.col0 + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT ALL + - 13 * cor0.col2 FROM tab2 AS cor0 ---- -338 -351 -494 query I rowsort SELECT + 44 * ( cor0.col2 ) + - col2 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -3116 363 43 query I rowsort SELECT ALL col1 + ( col1 ) + col2 * 34 FROM tab0 ---- 1294 228 2970 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab0.col2 + tab0.col1 col2 FROM tab0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 col1 FROM tab2, tab1 cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 onlyif mysql # use DIV operator for integer division query I rowsort label-5075 SELECT + tab0.col1 + ( col1 ) DIV - col0 - col2 AS col0 FROM tab0 ---- 50 8 94 skipif mysql # not compatible query I rowsort label-5075 SELECT + tab0.col1 + ( col1 ) / - col0 - col2 AS col0 FROM tab0 ---- 50 8 94 query I rowsort SELECT ALL + 60 + 93 AS col0 FROM tab1 AS cor0 ---- 153 153 153 query I rowsort SELECT DISTINCT - + col0 + col0 * cor0.col0 * - ( - 59 ) FROM tab2 AS cor0 ---- 2884 358878 368140 query I rowsort SELECT ALL col1 * 9 AS col1 FROM tab0 AS cor0 ---- 774 819 873 query I rowsort SELECT + - col0 * - col2 + - col0 * + col0 FROM tab2 cor0 ---- -3239 -4056 140 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5080 SELECT ALL - CAST( col0 AS SIGNED ) * - col2 FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-5080 SELECT ALL - CAST ( col0 AS INTEGER ) * - col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL + - ( - col2 ) + col0 AS col1 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT 82 + - col1 FROM tab1 AS cor0 ---- 56 69 72 onlyif mysql # use DIV operator for integer division query I rowsort label-5083 SELECT ALL - col0 * col0 + col1 - col1 DIV - col1 AS col0 FROM tab2 AS cor0 ---- -17 -6024 -6223 skipif mysql # not compatible query I rowsort label-5083 SELECT ALL - col0 * col0 + col1 - col1 / - col1 AS col0 FROM tab2 AS cor0 ---- -17 -6024 -6223 query I rowsort SELECT DISTINCT ( - col2 ) * col1 - - col1 AS col1 FROM tab0 AS cor0 ---- -2752 -7371 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5085 SELECT + col2 DIV - ( col1 ) FROM tab2 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-5085 SELECT + col2 / - ( col1 ) FROM tab2 AS cor0 ---- -2 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5086 SELECT ALL 98 DIV col0 FROM tab2 ---- 1 1 14 skipif mysql # not compatible query I rowsort label-5086 SELECT ALL 98 / col0 FROM tab2 ---- 1 1 14 onlyif mysql # use DIV operator for integer division query I rowsort label-5087 SELECT DISTINCT + - cor0.col2 DIV col2 + col0 AS col2 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-5087 SELECT DISTINCT + - cor0.col2 / col2 + col0 AS col2 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT DISTINCT + cor0.col2 * col0 + 98 AS col1 FROM tab0 AS cor0 ---- 133 7396 890 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * - col0 col0 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT + 26 + + col0 * - col0 FROM tab1 AS cor0 ---- -4070 -6374 17 query I rowsort SELECT ALL + - 65 + + col0 * + col1 FROM tab1 AS cor0 ---- 13 575 975 query I rowsort SELECT ALL + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5093 SELECT + col0 + + CAST( col1 AS SIGNED ) * cor0.col0 + CAST( NULL AS SIGNED ) * col2 * col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5093 SELECT + col0 + + CAST ( col1 AS INTEGER ) * cor0.col0 + CAST ( NULL AS INTEGER ) * col2 * col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT cor0.col0 * 54 AS col1 FROM tab1 AS cor0 ---- 162 3456 4320 onlyif mysql # use DIV operator for integer division query I rowsort label-5095 SELECT ALL col0 * - col1 * col2 + col0 DIV tab2.col1 + col1 AS col1 FROM tab2 ---- -119592 -51013 -5828 skipif mysql # not compatible query I rowsort label-5095 SELECT ALL col0 * - col1 * col2 + col0 / tab2.col1 + col1 AS col1 FROM tab2 ---- -119592 -51013 -5828 query I rowsort SELECT ALL - - col1 + - col1 * 32 FROM tab2 AS cor0 ---- -1829 -527 -961 query I rowsort SELECT DISTINCT col0 * + 28 AS col0 FROM tab1 AS cor0 ---- 1792 2240 84 onlyif mysql # use DIV operator for integer division query I rowsort label-5098 SELECT - cor0.col0 * 57 DIV + col2 FROM tab1 cor0 ---- -3 -47 -64 skipif mysql # not compatible query I rowsort label-5098 SELECT - cor0.col0 * 57 / + col2 FROM tab1 cor0 ---- -3 -47 -64 query I rowsort SELECT DISTINCT cor0.col0 + col0 * col1 AS col2 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT ALL - 15 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc onlyif mysql # use DIV operator for integer division query I rowsort label-5101 SELECT col1 - col2 DIV col2 AS col1 FROM tab0 AS cor0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-5101 SELECT col1 - col2 / col2 AS col1 FROM tab0 AS cor0 ---- 85 90 96 query I rowsort SELECT ALL - col1 + cor0.col1 * cor0.col2 * col2 FROM tab1 AS cor0 ---- 119795 32480 75790 query I rowsort SELECT - + col1 * + col2 + - col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 onlyif mysql # use DIV operator for integer division query I rowsort label-5104 SELECT + - col0 DIV + col0 + - col1 col0 FROM tab2 AS cor0 ---- -18 -32 -60 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5104 SELECT + - col0 / + col0 + - col1 col0 FROM tab2 AS cor0 ---- -18 -32 -60 query I rowsort SELECT + col1 * col2 - - col0 AS col0 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT + cor0.col2 * - cor0.col1 + - col1 AS col2 FROM tab2 AS cor0 ---- -1593 -663 -868 onlyif mysql # use DIV operator for integer division query I rowsort label-5107 SELECT - col2 * col2 * + cor0.col0 - col0 * cor0.col2 DIV - col1 col1 FROM tab1 AS cor0 ---- -207572 -736690 -8742 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5107 SELECT - col2 * col2 * + cor0.col0 - col0 * cor0.col2 / - col1 col1 FROM tab1 AS cor0 ---- -207572 -736690 -8742 query I rowsort SELECT ALL col0 * + col1 + col1 FROM tab0 ---- 2150 3492 8190 query III rowsort SELECT * FROM tab1 WHERE + col2 * - col1 < ( NULL ) ---- query I rowsort SELECT - col2 FROM tab1 WHERE NULL <= NULL ---- query I rowsort SELECT + col1 * col1 + - col1 FROM tab2 ---- 272 3422 930 query I rowsort SELECT ALL 83 * col1 FROM tab1 ---- 1079 2158 830 query I rowsort SELECT ALL col1 * - col2 * - col1 AS col1 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT DISTINCT col1 + col2 * col1 * + col0 FROM tab1 AS cor0 ---- 36490 4238 99853 query I rowsort SELECT DISTINCT - + col0 + + col1 * + col2 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT ALL col0 * - col1 - - col0 AS col2 FROM tab2 ---- -1264 -210 -4524 query I rowsort SELECT ALL cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT tab0.col0 + + col0 AS col1 FROM tab0 ---- 178 48 70 onlyif mysql # use DIV operator for integer division query I rowsort label-5119 SELECT ALL col2 - tab0.col0 DIV col2 FROM tab0 ---- -34 33 81 skipif mysql # not compatible query I rowsort label-5119 SELECT ALL col2 - tab0.col0 / col2 FROM tab0 ---- -34 33 81 query I rowsort SELECT ALL - col2 + tab2.col2 * col2 AS col2 FROM tab2 ---- 1406 650 702 query I rowsort SELECT ALL + col2 * - col1 * - col1 FROM tab2 ---- 10982 25947 90506 onlyif mysql # use DIV operator for integer division query I rowsort label-5122 SELECT 58 DIV + col0 - 57 AS col2 FROM tab0 ---- -55 -56 -57 skipif mysql # not compatible query I rowsort label-5122 SELECT 58 / + col0 - 57 AS col2 FROM tab0 ---- -55 -56 -57 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL > col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-5124 SELECT ALL - col0 DIV + col0 + tab0.col0 AS col1 FROM tab0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-5124 SELECT ALL - col0 / + col0 + tab0.col0 AS col1 FROM tab0 ---- 23 34 88 query I rowsort SELECT col1 * tab1.col1 - col0 AS col1 FROM tab1 ---- 36 673 89 query I rowsort SELECT ALL + col0 * + col2 * tab0.col0 AS col2 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT col2 - - col1 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND + col2 ---- query I rowsort SELECT - col1 FROM tab0 WHERE ( NULL ) NOT IN ( + col2 ) ---- query I rowsort SELECT - col0 AS col0 FROM tab2 WHERE + col2 * + col1 IN ( - col1 ) ---- query I rowsort SELECT col1 + col1 + col2 AS col0 FROM tab1 ---- 106 122 77 query I rowsort SELECT - col2 * - col0 * - tab0.col2 + - col1 * col0 * + tab0.col0 + + col1 AS col2 FROM tab0 ---- -118763 -1319156 -75586 query I rowsort SELECT col1 * - col0 + col0 * - col2 FROM tab0 ---- -15397 -2856 -3430 onlyif mysql # use DIV operator for integer division query I rowsort label-5133 SELECT DISTINCT - col2 + - col2 DIV - tab0.col0 FROM tab0 ---- -1 -32 -82 skipif mysql # not compatible query I rowsort label-5133 SELECT DISTINCT - col2 + - col2 / - tab0.col0 FROM tab0 ---- -1 -32 -82 query I rowsort SELECT + col2 * + col1 * - col1 + + col1 * col2 AS col1 FROM tab1 ---- -14976 -35100 -5130 query I rowsort SELECT DISTINCT + tab2.col0 + - tab2.col0 * col1 FROM tab2 ---- -1264 -210 -4524 query I rowsort SELECT ALL - col2 + + tab1.col2 * + tab1.col0 FROM tab1 ---- 108 3591 7584 query I rowsort SELECT ALL + 19 + 7 FROM tab2, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to ede8226bb7e602e221f9d98345b4da37 query I rowsort SELECT + + col0 + + cor0.col0 FROM tab1 cor0 ---- 128 160 6 query I rowsort SELECT ALL - col2 * col2 + 3 FROM tab1 AS cor0 ---- -2913 -3246 -9213 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5140 SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0, tab2 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-5140 SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0, tab2 AS cor1 ---- NULL query I rowsort SELECT DISTINCT - col2 + - col1 * - 31 + col0 FROM tab2 ---- 1881 568 941 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab0.col2 col0 FROM tab0, tab0 cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 + + col2 * cor0.col0 col2 FROM tab1 AS cor0 ---- 3748 7849 838 query I rowsort SELECT DISTINCT - col0 * - 66 + 71 FROM tab1 AS cor0 ---- 269 4295 5351 query I rowsort SELECT col0 + 12 AS col0 FROM tab0 AS cor0 ---- 101 36 47 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5146 SELECT ALL - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5146 SELECT ALL - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 * col2 + - col1 * - col2 FROM tab2 AS cor0 ---- 1292 1674 3068 query I rowsort SELECT DISTINCT + col2 * 88 AS col1 FROM tab2 cor0 ---- 2288 2376 3344 query I rowsort SELECT - col1 * ( ( col2 ) * + ( + tab0.col2 ) ) AS col1 FROM tab0 ---- -611884 -93654 -97 query I rowsort SELECT col0 + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-5151 SELECT DISTINCT - col2 DIV col2 + col1 * - col2 * + col0 FROM tab1 AS cor0 ---- -36481 -4213 -99841 skipif mysql # not compatible query I rowsort label-5151 SELECT DISTINCT - col2 / col2 + col1 * - col2 * + col0 FROM tab1 AS cor0 ---- -36481 -4213 -99841 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5152 SELECT ALL - - col1 * CAST( NULL AS SIGNED ) * cor0.col1 + col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5152 SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) * cor0.col1 + col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5153 SELECT + - col0 / CAST( NULL AS SIGNED ) + + col2 + + col2 * + cor0.col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5153 SELECT + - col0 / CAST ( NULL AS INTEGER ) + + col2 + + col2 * + cor0.col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 * 59 col1 FROM tab0 AS cor0 ---- -5074 -5369 -5723 onlyif mysql # use DIV operator for integer division query I rowsort label-5155 SELECT DISTINCT + col0 DIV - col1 AS col2 FROM tab1 AS cor0 ---- -6 0 skipif mysql # not compatible query I rowsort label-5155 SELECT DISTINCT + col0 / - col1 AS col2 FROM tab1 AS cor0 ---- -6 0 query I rowsort SELECT 6 * - col1 AS col0 FROM tab2 ---- -102 -186 -354 onlyif mysql # use DIV operator for integer division query I rowsort label-5157 SELECT DISTINCT cor0.col2 DIV - 67 + + 62 AS col2 FROM tab2 AS cor0 ---- 62 skipif mysql # not compatible query I rowsort label-5157 SELECT DISTINCT cor0.col2 / - 67 + + 62 AS col2 FROM tab2 AS cor0 ---- 62 onlyif mysql # use DIV operator for integer division query I rowsort label-5158 SELECT ALL - - col1 DIV cor0.col1 AS col0 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5158 SELECT ALL - - col1 / cor0.col1 AS col0 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + col2 + + 26 * + col1 FROM tab2 AS cor0 ---- 1560 480 833 query I rowsort SELECT - col1 * 64 + col0 AS col1 FROM tab0 cor0 ---- -5480 -5735 -6173 query I rowsort SELECT DISTINCT 73 + 74 * + col1 FROM tab2 AS cor0 ---- 1331 2367 4439 query I rowsort SELECT - - ( + 28 ) FROM tab0 AS cor0 ---- 28 28 28 query I rowsort SELECT DISTINCT + + 71 + + col0 FROM tab0 AS cor0 ---- 106 160 95 query I rowsort SELECT - - col1 + 8 FROM tab2 cor0 ---- 25 39 67 query I rowsort SELECT + - ( - col1 ) + col0 * col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT ALL + 60 * col2 + - col1 + - 51 FROM tab0 AS cor0 ---- -88 1843 4778 query I rowsort SELECT ALL col1 - 58 AS col0 FROM tab1 AS cor0 ---- -32 -45 -48 query I rowsort SELECT + - 36 * + col0 AS col1 FROM tab0 AS cor0 ---- -1260 -3204 -864 query I rowsort SELECT DISTINCT + ( 39 ) AS col0 FROM tab2 AS cor0 ---- 39 query I rowsort SELECT DISTINCT + + col2 - cor0.col1 FROM tab0 cor0 ---- -53 -9 -96 query I rowsort SELECT - 53 + col0 * - col2 * col0 FROM tab1 AS cor0 ---- -233525 -539 -614453 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + + col2 col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT + - 25 * + col1 + + 73 AS col0 FROM tab1 AS cor0 ---- -177 -252 -577 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 + - col0 col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT + col0 * cor0.col2 - col1 AS col0 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT DISTINCT + col2 * + cor0.col2 + + col1 AS col1 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT - 22 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to fae46f8148b02964f7145eb6ed5819f9 query I rowsort SELECT + cor0.col2 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 ---- 243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 44 col0 FROM tab0 ---- 44 44 44 query I rowsort SELECT + 80 * - col2 FROM tab2 AS cor0 ---- -2080 -2160 -3040 query I rowsort SELECT ALL + ( col1 ) * - col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + + 49 * + col2 AS col2 FROM tab0 AS cor0 ---- 1617 4018 49 query I rowsort SELECT - 99 + + cor0.col1 AS col2 FROM tab1 AS cor0 ---- -73 -86 -89 query I rowsort SELECT DISTINCT 74 * + col2 FROM tab1 AS cor0 ---- 3996 4218 7104 query I rowsort SELECT - ( - col1 ) + - col2 * + col1 AS col1 FROM tab0 ---- -2752 -7371 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col0 * + col0 + 33 - + 60 col2 FROM tab2 AS cor0 ---- -6111 -6268 -76 query I rowsort SELECT - + ( - col2 ) * - ( col0 ) FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL 96 * - col0 + 25 AS col2 FROM tab0 cor0 ---- -2279 -3335 -8519 query I rowsort SELECT ALL + 80 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to 6dd5038be71dffa82f5ceba787caab91 query I rowsort SELECT + + col0 - + col1 AS col2 FROM tab0 AS cor0 ---- -2 -62 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-5191 SELECT 94 DIV col2 + - 77 AS col1 FROM tab0 ---- -75 -76 17 skipif mysql # not compatible query I rowsort label-5191 SELECT 94 / col2 + - 77 AS col1 FROM tab0 ---- -75 -76 17 query I rowsort SELECT - col0 * col2 * - col1 + col1 AS col0 FROM tab1 cor0 ---- 36490 4238 99853 onlyif mysql # use DIV operator for integer division query I rowsort label-5193 SELECT DISTINCT col2 DIV - 49 + col2 col1 FROM tab1 ---- 53 56 95 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5193 SELECT DISTINCT col2 / - 49 + col2 col1 FROM tab1 ---- 53 56 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 - - 62 col0 FROM tab1 ---- -34 5 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5195 SELECT - - CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5195 SELECT - - CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 93 AS col1 FROM tab0 AS cor0 ---- -93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5197 SELECT ALL + - CAST( NULL AS SIGNED ) 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-5197 SELECT ALL + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col1 * - 59 + + col0 + + col0 AS col2 FROM tab1 ---- 1540 718 927 query I rowsort SELECT + cor1.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT - ( + col2 ) * + cor0.col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT + 86 AS col0 FROM tab1 AS cor0 ---- 86 query I rowsort SELECT + 98 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to f9dee8c21116f1aed64ac5160e190809 query I rowsort SELECT DISTINCT + col1 * 63 AS col0 FROM tab1 AS cor0 ---- 1638 630 819 query I rowsort SELECT ALL + cor0.col2 * - 23 * col1 + col2 FROM tab0 AS cor0 ---- -171544 -2230 -65241 query I rowsort SELECT + col1 + - 27 * col0 FROM tab1 cor0 ---- -1718 -2147 -55 query I rowsort SELECT + - ( + col0 ) * col0 - 62 * 3 FROM tab2 AS cor0 ---- -235 -6270 -6427 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + tab0.col1 * col2 col1 FROM tab0 ---- 194 2924 7553 query I rowsort SELECT - ( 92 ) * tab1.col0 - 22 AS col2 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1 ---- 81 values hashing to 0fea4abfe1be8918447f83f65ff98a31 onlyif mysql # use DIV operator for integer division query I rowsort label-5209 SELECT col1 + ( + col1 ) DIV col2 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-5209 SELECT col1 + ( + col1 ) / col2 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT - 81 * + col0 FROM tab0 AS cor0 ---- -1944 -2835 -7209 query I rowsort SELECT DISTINCT + col1 + - col0 * col2 * + col0 FROM tab0 AS cor0 ---- -1128 -18922 -649431 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5212 SELECT ALL - - col2 * - col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5212 SELECT ALL - - col2 * - col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5213 SELECT DISTINCT - 30 + col2 DIV + col1 col1 FROM tab1 ---- -23 -25 -28 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5213 SELECT DISTINCT - 30 + col2 / + col1 col1 FROM tab1 ---- -23 -25 -28 query I rowsort SELECT DISTINCT - 11 * + 9 AS col1 FROM tab0, tab2 cor0 ---- -99 query I rowsort SELECT + 12 * + col0 AS col2 FROM tab2 AS cor0 ---- 84 936 948 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( col1 + - col1 ) col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT + col0 * + ( + cor0.col2 ) FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT - + col2 + - 97 FROM tab1 AS cor0 ---- -151 -154 -193 query I rowsort SELECT - col2 + - 18 * - 93 FROM tab2 AS cor0 ---- 1636 1647 1648 query I rowsort SELECT ALL + col0 * col1 + 15 + col2 FROM tab0 AS cor0 ---- 2112 3411 8196 query I rowsort SELECT ALL - 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 258bc565c64924d905a55eaaa6e57547 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5222 SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-5222 SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5223 SELECT ALL + CAST( - col2 AS SIGNED ) + - col1 FROM tab0 AS cor0 ---- -119 -173 -98 skipif mysql # not compatible query I rowsort label-5223 SELECT ALL + CAST ( - col2 AS INTEGER ) + - col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT DISTINCT + 25 FROM tab0, tab1 cor0 ---- 25 onlyif mysql # use DIV operator for integer division query I rowsort label-5225 SELECT + tab0.col2 DIV col1 + col2 DIV col1 AS col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5225 SELECT + tab0.col2 / col1 + col2 / col1 AS col1 FROM tab0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5226 SELECT col2 + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 ---- 104 117 34 skipif mysql # not compatible query I rowsort label-5226 SELECT col2 + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-5227 SELECT DISTINCT - tab1.col0 DIV - 68 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 0 1 skipif mysql # not compatible query I rowsort label-5227 SELECT DISTINCT - tab1.col0 / - 68 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 0 1 query I rowsort SELECT - col2 * + col2 + 1 + + col0 FROM tab1 AS cor0 ---- -2912 -3184 -9135 query I rowsort SELECT - 54 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342 query I rowsort SELECT ALL + ( - col2 + + col2 ) * + 83 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT col0 + col2 - 3 AS col0 FROM tab2 ---- 101 114 31 query I rowsort SELECT ( col2 ) * + ( + ( col0 ) ) FROM tab2 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - cor0.col0 ) * ( col2 ) + cor0.col0 col2 FROM tab2 AS cor0 ---- 196 2106 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-5234 SELECT + col0 DIV - col0 AS col0 FROM tab2 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5234 SELECT + col0 / - col0 AS col0 FROM tab2 cor0 ---- -1 -1 -1 query I rowsort SELECT col2 + + col2 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT - 51 AS col0 FROM tab0 AS cor0 ---- -51 -51 -51 onlyif mysql # use DIV operator for integer division query I rowsort label-5237 SELECT - col0 DIV + col2 + - col2 col0 FROM tab1 AS cor0 ---- -54 -58 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5237 SELECT - col0 / + col2 + - col2 col0 FROM tab1 AS cor0 ---- -54 -58 -96 query I rowsort SELECT DISTINCT - + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- -10 -13 -26 query I rowsort SELECT ALL col2 * - ( + 97 + + col2 ) FROM tab0 ---- -14678 -4290 -98 query I rowsort SELECT DISTINCT - col1 * - ( 47 ) * tab1.col2 FROM tab1 ---- 26790 58656 65988 query I rowsort SELECT 64 * 0 + + tab0.col2 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 onlyif mysql # use DIV operator for integer division query I rowsort label-5242 SELECT DISTINCT + col0 + tab2.col1 DIV col1 FROM tab2 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-5242 SELECT DISTINCT + col0 + tab2.col1 / col1 FROM tab2 ---- 79 8 80 onlyif mysql # use DIV operator for integer division query I rowsort label-5243 SELECT ALL 67 + col0 DIV + tab2.col1 FROM tab2 ---- 67 68 71 skipif mysql # not compatible query I rowsort label-5243 SELECT ALL 67 + col0 / + tab2.col1 FROM tab2 ---- 67 68 71 query I rowsort SELECT - - cor0.col0 + col0 AS col0 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT ALL - + 33 AS col0 FROM tab1 AS cor0 ---- -33 -33 -33 query I rowsort SELECT - col1 + - ( cor0.col2 ) AS col0 FROM tab1 cor0 ---- -109 -67 -80 query I rowsort SELECT ALL + col2 * col1 + col2 + + col2 FROM tab0 AS cor0 ---- 2904 7626 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col2 ) * col2 + - col2 col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT DISTINCT - + ( + cor0.col1 ) * - col1 + - ( - 63 ) FROM tab2 AS cor0 ---- 1024 352 3544 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab1.col0 * - col0 + + col1 * + 71 col2 FROM tab1 ---- -3386 -5477 1837 query I rowsort SELECT col1 - - tab2.col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT tab0.col2 * + col2 * + col1 AS col1 FROM tab0 ---- 611884 93654 97 query I rowsort SELECT - col2 * + 80 FROM tab2 AS cor0 ---- -2080 -2160 -3040 query I rowsort SELECT - col1 + + col2 * + 88 * + col2 FROM tab0 AS cor0 ---- -9 591621 95746 query I rowsort SELECT DISTINCT + 32 + cor0.col1 * + 44 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 1176 472 604 query I rowsort SELECT ALL - ( + 37 ) AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ed4644af7729c2425ea6cc3d84c6504f query I rowsort SELECT ALL - col0 * 9 + + ( + col2 ) FROM tab1 AS cor0 ---- -519 -624 27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + col1 col0 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT col2 * - ( col1 ) FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * + cor0.col0 col2 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT ALL + - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 * - 43 col1 FROM tab1 AS cor0 ---- -2322 -2451 -4128 query I rowsort SELECT + col2 + col1 * + col0 AS col1 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT + col2 + col0 * + col1 FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT - col1 + + ( cor0.col1 ) * - col0 FROM tab0 AS cor0 ---- -2150 -3492 -8190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 + - 6 * cor0.col1 + col2 col0 FROM tab1 AS cor0 ---- -76 31 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 + col2 col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT - 46 AS col0 FROM tab1, tab2 AS cor0 ---- -46 query I rowsort SELECT ALL 94 * - 16 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 538764eed0c5c81a0a1c76e75b6acbc3 query I rowsort SELECT - col0 * ( 36 ) AS col0 FROM tab2 AS cor0 ---- -252 -2808 -2844 onlyif mysql # use DIV operator for integer division query I rowsort label-5271 SELECT - - col2 DIV 1 AS col1 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-5271 SELECT - - col2 / 1 AS col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL cor0.col1 * + col2 + col2 AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT ALL 1 + col0 FROM tab1 AS cor0 ---- 4 65 81 query I rowsort SELECT DISTINCT - 79 * + col2 * - cor0.col0 FROM tab0 AS cor0 ---- 2765 576542 62568 onlyif mysql # use DIV operator for integer division query I rowsort label-5275 SELECT DISTINCT + + col2 DIV 53 FROM tab2 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5275 SELECT DISTINCT + + col2 / 53 FROM tab2 cor0 ---- 0 query I rowsort SELECT cor0.col1 * + col0 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-5277 SELECT col0 + - cor0.col0 DIV col2 col1 FROM tab1 cor0 ---- 3 63 80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5277 SELECT col0 + - cor0.col0 / col2 col1 FROM tab1 cor0 ---- 3 63 80 onlyif mysql # use DIV operator for integer division query I rowsort label-5278 SELECT DISTINCT - col1 DIV 34 AS col1 FROM tab0 ---- -2 skipif mysql # not compatible query I rowsort label-5278 SELECT DISTINCT - col1 / 34 AS col1 FROM tab0 ---- -2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( cor0.col2 ) * + col0 col1 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT + - 31 * + col2 * col1 FROM tab2 AS cor0 ---- -20026 -25947 -47554 query I rowsort SELECT - - 58 * cor0.col1 * - col0 AS col2 FROM tab1 cor0 ---- -37120 -4524 -60320 onlyif mysql # use DIV operator for integer division query I rowsort label-5282 SELECT DISTINCT + col2 - col2 DIV col0 AS col0 FROM tab0 AS cor0 ---- 1 32 82 skipif mysql # not compatible query I rowsort label-5282 SELECT DISTINCT + col2 - col2 / col0 AS col0 FROM tab0 AS cor0 ---- 1 32 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5283 SELECT DISTINCT + ( + col1 ) + CAST( NULL AS SIGNED ) * ( - col0 ) * ( - col0 * col1 ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5283 SELECT DISTINCT + ( + col1 ) + CAST ( NULL AS INTEGER ) * ( - col0 ) * ( - col0 * col1 ) AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT col1 * + col2 + - 89 * + col0 AS col0 FROM tab2 AS cor0 ---- -5408 -6385 214 query I rowsort SELECT ALL 28 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 108 31 92 query I rowsort SELECT DISTINCT - 28 AS col0 FROM tab1 AS cor0 ---- -28 query I rowsort SELECT ALL + - col2 + - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -164 -2 -66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 * col2 col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT DISTINCT col2 * - col2 + 73 * + col0 * col1 FROM tab1 AS cor0 ---- 2778 43471 66704 onlyif mysql # use DIV operator for integer division query I rowsort label-5290 SELECT - col0 DIV + col0 + - 19 FROM tab0 AS cor0 ---- -20 -20 -20 skipif mysql # not compatible query I rowsort label-5290 SELECT - col0 / + col0 + - 19 FROM tab0 AS cor0 ---- -20 -20 -20 query I rowsort SELECT - + 2 * + col1 + col1 * col2 AS col2 FROM tab2 AS cor0 ---- 1416 612 775 query I rowsort SELECT + col0 * col1 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + - col0 + + col1 col0 FROM tab1 AS cor0 ---- 29 3 77 query I rowsort SELECT ALL - - 69 FROM tab0 AS cor0 ---- 69 69 69 query I rowsort SELECT + col0 + col2 * ( + col0 ) * + col0 FROM tab1 AS cor0 ---- 233536 489 614480 query I rowsort SELECT DISTINCT + 50 + + tab0.col0 FROM tab0 ---- 139 74 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + 59 col1 FROM tab2 AS cor0 ---- 21 32 33 query I rowsort SELECT + 66 * - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 13fd559b80d38b5466f414e70b7a2b4f query I rowsort SELECT + + 69 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 onlyif mysql # use DIV operator for integer division query I rowsort label-5300 SELECT ALL 70 DIV + 87 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5300 SELECT ALL 70 / + 87 FROM tab0 ---- 0 0 0 query I rowsort SELECT + cor0.col1 * - col0 AS col1 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL + col1 * - col1 * col0 AS col2 FROM tab2 ---- -22831 -271518 -6727 query I rowsort SELECT + 34 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT DISTINCT 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 68 query I rowsort SELECT - col1 + + col2 * col0 AS col1 FROM tab2 AS cor0 ---- 158 1969 2985 onlyif mysql # use DIV operator for integer division query I rowsort label-5306 SELECT - col2 DIV col2 AS col1 FROM tab1 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5306 SELECT - col2 / col2 AS col1 FROM tab1 cor0 ---- -1 -1 -1 query I rowsort SELECT - col1 * - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-5308 SELECT - + col0 DIV - cor0.col2 AS col1 FROM tab1 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5308 SELECT - + col0 / - cor0.col2 AS col1 FROM tab1 cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * - 12 col0 FROM tab2 ---- -204 -372 -708 query I rowsort SELECT ALL col1 + - 95 * + cor0.col0 FROM tab1 AS cor0 ---- -259 -6070 -7587 query I rowsort SELECT + col2 + + 93 FROM tab2 AS cor0 ---- 119 120 131 query I rowsort SELECT DISTINCT - col0 * + col1 + + cor0.col2 AS col1 FROM tab2 AS cor0 ---- -1305 -190 -4576 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5313 SELECT ALL ( + 81 ) * col2 * CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5313 SELECT ALL ( + 81 ) * col2 * CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5314 SELECT DISTINCT ( - 27 ) DIV + col1 FROM tab1 ---- -1 -2 skipif mysql # not compatible query I rowsort label-5314 SELECT DISTINCT ( - 27 ) / + col1 FROM tab1 ---- -1 -2 query I rowsort SELECT ( 52 + - col1 ) AS col1 FROM tab2 ---- -7 21 35 query I rowsort SELECT - ( 19 ) + col1 AS col2 FROM tab2 AS cor0 ---- -2 12 40 query I rowsort SELECT + + col2 + + 23 FROM tab0 AS cor0 ---- 105 24 56 query I rowsort SELECT ALL cor0.col1 * ( 27 ) AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 098e9cb5f58dfd24b8b1b40ed212b109 query I rowsort SELECT + + ( + cor0.col2 ) * - col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT - 89 + - col1 AS col1 FROM tab2 AS cor0 ---- -106 -120 -148 query I rowsort SELECT + 44 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d onlyif mysql # use DIV operator for integer division query I rowsort label-5322 SELECT ALL - col1 DIV + 87 + + col2 * + CAST( + col2 * col1 + + col2 AS SIGNED ) AS col1 FROM tab1 ---- 129024 35739 78732 skipif mysql # not compatible query I rowsort label-5322 SELECT ALL - col1 / + 87 + + col2 * + CAST ( + col2 * col1 + + col2 AS INTEGER ) AS col1 FROM tab1 ---- 129024 35739 78732 query I rowsort SELECT col2 + 54 FROM tab0 AS cor0 ---- 136 55 87 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5324 SELECT DISTINCT col0 * + 11 * - col1 + - CAST( col0 AS SIGNED ) AS col0 FROM tab2 ---- -14852 -2394 -50700 skipif mysql # not compatible query I rowsort label-5324 SELECT DISTINCT col0 * + 11 * - col1 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 ---- -14852 -2394 -50700 query I rowsort SELECT DISTINCT + 66 * col2 * + tab1.col2 + 13 FROM tab1 ---- 192469 214447 608269 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 59 + col2 * tab2.col0 col0 FROM tab2 ---- 2087 248 3061 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5327 SELECT ALL - CAST( NULL AS DECIMAL ) / - 78 + + cor0.col2 * ( col1 + + col0 ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5327 SELECT ALL - CAST ( NULL AS REAL ) / - 78 + + cor0.col2 * ( col1 + + col0 ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 3 * + 85 + - col2 FROM tab1 AS cor0 ---- 159 198 201 query I rowsort SELECT + col2 * - 14 - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -111 -1239 -548 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 55 + col1 * col2 col0 FROM tab2 AS cor0 ---- 1589 701 892 query I rowsort SELECT ALL + - 31 FROM tab0 AS cor0 ---- -31 -31 -31 query I rowsort SELECT 72 + col2 + col0 FROM tab0 AS cor0 ---- 108 129 243 query I rowsort SELECT DISTINCT - - col0 * + col2 + - ( 22 * col0 + + ( col1 ) ) AS col1 FROM tab2 AS cor0 ---- 1247 253 4 query I rowsort SELECT + + col1 + ( - ( + col1 ) ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 + col2 * - col2 AS col1 FROM tab1 AS cor0 ---- -2942 -3259 -9229 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5336 SELECT DISTINCT + col2 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 ---- -34 -7 9 skipif mysql # not compatible query I rowsort label-5336 SELECT DISTINCT + col2 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT ALL + 25 * + col2 * + col2 + col1 AS col2 FROM tab1 AS cor0 ---- 230413 72926 81235 onlyif mysql # use DIV operator for integer division query I rowsort label-5338 SELECT ALL - cor0.col1 DIV - 8 FROM tab2 cor0 ---- 2 3 7 skipif mysql # not compatible query I rowsort label-5338 SELECT ALL - cor0.col1 / - 8 FROM tab2 cor0 ---- 2 3 7 query I rowsort SELECT DISTINCT - ( + 29 ) * col0 AS col2 FROM tab0 AS cor0 ---- -1015 -2581 -696 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5340 SELECT - tab1.col1 - + CAST( NULL AS DECIMAL ) / - col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5340 SELECT - tab1.col1 - + CAST ( NULL AS REAL ) / - col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 * col0 * + 60 - - tab1.col1 FROM tab1 ---- 245770 384013 566 query I rowsort SELECT ALL col0 - + tab1.col1 AS col2 FROM tab1 ---- -23 54 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 72 + col0 col2 FROM tab2 AS cor0 ---- -65 6 7 query I rowsort SELECT DISTINCT + col0 - + col2 FROM tab2 cor0 ---- -20 41 52 query I rowsort SELECT ALL - + 77 * + col0 + - cor0.col2 FROM tab1 AS cor0 ---- -285 -4985 -6256 onlyif mysql # use DIV operator for integer division query I rowsort label-5346 SELECT DISTINCT + + 44 + + col1 * 3 DIV + 90 FROM tab1 AS cor0 ---- 44 skipif mysql # not compatible query I rowsort label-5346 SELECT DISTINCT + + 44 + + col1 * 3 / + 90 FROM tab1 AS cor0 ---- 44 query I rowsort SELECT DISTINCT col2 * col1 * col2 AS col1 FROM tab0 cor0 ---- 611884 93654 97 query I rowsort SELECT DISTINCT - ( col2 * col2 ) FROM tab0 ---- -1 -1089 -6724 query I rowsort SELECT - tab1.col2 * + col1 + - tab1.col2 FROM tab1 ---- -1344 -1458 -627 query I rowsort SELECT DISTINCT - - col2 + + ( - 63 ) * col0 + col0 AS col1 FROM tab1 AS cor0 ---- -132 -3911 -4864 query I rowsort SELECT ALL + cor0.col2 * - ( col0 ) * - col1 + - col1 FROM tab1 AS cor0 ---- 36470 4186 99827 query I rowsort SELECT + col2 * 39 AS col0 FROM tab0 AS cor0 ---- 1287 3198 39 query I rowsort SELECT DISTINCT col0 + col0 * - col1 AS col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT col2 + + col2 * col1 AS col1 FROM tab1 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5355 SELECT DISTINCT col1 * + col0 * CAST( 14 AS SIGNED ) FROM tab2 ---- 18802 3038 64428 skipif mysql # not compatible query I rowsort label-5355 SELECT DISTINCT col1 * + col0 * CAST ( 14 AS INTEGER ) FROM tab2 ---- 18802 3038 64428 query I rowsort SELECT ALL ( 8 ) + col2 FROM tab1 AS cor0 ---- 104 62 65 query I rowsort SELECT DISTINCT + + 24 AS col0 FROM tab2 cor0 ---- 24 query I rowsort SELECT - - ( - 78 ) FROM tab1 AS cor0 ---- -78 -78 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-5359 SELECT DISTINCT - col1 DIV - col0 AS col1 FROM tab2 ---- 0 4 skipif mysql # not compatible query I rowsort label-5359 SELECT DISTINCT - col1 / - col0 AS col1 FROM tab2 ---- 0 4 query I rowsort SELECT + col0 * + cor0.col1 + col1 AS col0 FROM tab1 AS cor0 ---- 104 1053 650 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + col0 col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - + col1 + col2 * col1 AS col0 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT + - 11 + 6 AS col1 FROM tab0 AS cor0 ---- -5 -5 -5 onlyif mysql # use DIV operator for integer division query I rowsort label-5364 SELECT DISTINCT 73 + - 77 DIV col1 FROM tab0 AS cor0 ---- 73 skipif mysql # not compatible query I rowsort label-5364 SELECT DISTINCT 73 + - 77 / col1 FROM tab0 AS cor0 ---- 73 query I rowsort SELECT ALL col0 * col1 + + 37 * tab1.col1 AS col1 FROM tab1 ---- 1010 1040 1521 onlyif mysql # use DIV operator for integer division query I rowsort label-5366 SELECT DISTINCT col0 + + ( ( + col2 ) ) + - 95 * col2 DIV + tab0.col2 AS col1 FROM tab0 ---- -38 -59 76 skipif mysql # not compatible query I rowsort label-5366 SELECT DISTINCT col0 + + ( ( + col2 ) ) + - 95 * col2 / + tab0.col2 AS col1 FROM tab0 ---- -38 -59 76 query I rowsort SELECT tab1.col2 * 74 AS col0 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 8beb80e210565ce919902bb9699f2b83 query I rowsort SELECT + 57 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query I rowsort SELECT 91 * + ( + cor0.col2 ) FROM tab0 AS cor0 ---- 3003 7462 91 query I rowsort SELECT DISTINCT + + 0 + + col0 * + col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT + - col2 + 25 * + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 148 1924 1937 query I rowsort SELECT DISTINCT - + 92 AS col1 FROM tab2 AS cor0 ---- -92 query I rowsort SELECT + col2 * - 68 AS col0 FROM tab2 AS cor0 ---- -1768 -1836 -2584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col1 + - col2 ) col1 FROM tab2 ---- -21 33 4 onlyif mysql # use DIV operator for integer division query I rowsort label-5375 SELECT DISTINCT - col0 + col0 + + col1 DIV col2 AS col0 FROM tab0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-5375 SELECT DISTINCT - col0 + col0 + + col1 / col2 AS col0 FROM tab0 ---- 1 2 97 query I rowsort SELECT - ( - col1 ) + + col0 FROM tab0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col2 * col1 col1 FROM tab2 ---- 1534 646 837 query I rowsort SELECT DISTINCT - 13 + - 84 + - col0 FROM tab1 ---- -100 -161 -177 onlyif mysql # use DIV operator for integer division query I rowsort label-5379 SELECT DISTINCT col0 DIV - col0 + - col0 + col2 * col1 FROM tab0 ---- 2813 61 7372 skipif mysql # not compatible query I rowsort label-5379 SELECT DISTINCT col0 / - col0 + - col0 + col2 * col1 FROM tab0 ---- 2813 61 7372 query I rowsort SELECT DISTINCT + tab1.col2 * 69 AS col1 FROM tab1 ---- 3726 3933 6624 query I rowsort SELECT DISTINCT cor0.col2 FROM tab0, tab2, tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL - ( 76 ) FROM tab0 AS cor0 ---- -76 -76 -76 query I rowsort SELECT ( tab1.col2 ) * + col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT 71 * col0 AS col1 FROM tab2 ---- 497 5538 5609 query I rowsort SELECT col1 * col2 + tab1.col1 * - col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT - col1 + + col1 * + col1 + col1 FROM tab2 ---- 289 3481 961 query I rowsort SELECT ( 98 + col0 ) FROM tab2 ---- 105 176 177 onlyif mysql # use DIV operator for integer division query I rowsort label-5388 SELECT + 68 DIV col1 col2 FROM tab2 AS cor0 ---- 1 2 4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5388 SELECT + 68 / col1 col2 FROM tab2 AS cor0 ---- 1 2 4 onlyif mysql # use DIV operator for integer division query I rowsort label-5389 SELECT DISTINCT cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-5389 SELECT DISTINCT cor0.col2 / col0 AS col0 FROM tab0 AS cor0 ---- 0 1 query I rowsort SELECT DISTINCT 54 * - col2 AS col2 FROM tab2 cor0 ---- -1404 -1458 -2052 onlyif mysql # use DIV operator for integer division query I rowsort label-5391 SELECT ALL + 52 DIV - col0 AS col2 FROM tab0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-5391 SELECT ALL + 52 / - col0 AS col2 FROM tab0 ---- -1 -2 0 query I rowsort SELECT DISTINCT + + 43 + col0 AS col2 FROM tab1 AS cor0 ---- 107 123 46 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + cor0.col2 + cor0.col2 col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col1 + - ( col1 ) FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5395 SELECT DISTINCT - col1 + + ( - col1 + tab0.col0 ) DIV col0 FROM tab0 ---- -88 -91 -98 skipif mysql # not compatible query I rowsort label-5395 SELECT DISTINCT - col1 + + ( - col1 + tab0.col0 ) / col0 FROM tab0 ---- -88 -91 -98 query I rowsort SELECT ALL col1 + - col1 + cor0.col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - + cor0.col2 + col1 * + cor0.col0 * + col1 AS col2 FROM tab1 AS cor0 ---- 13424 1974 6343 query I rowsort SELECT col1 + + 55 * col1 AS col1 FROM tab1 AS cor0 ---- 1456 560 728 query I rowsort SELECT ALL - + col0 * - col1 + col0 FROM tab0 cor0 ---- 2088 3430 8188 query I rowsort SELECT col2 * - col1 + - 9 * - col2 FROM tab0 AS cor0 ---- -2541 -6724 -88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5401 SELECT col0 * CAST( NULL AS SIGNED ) - - 66 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5401 SELECT col0 * CAST ( NULL AS INTEGER ) - - 66 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - ( + 82 ) + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -3 -4 -75 query I rowsort SELECT DISTINCT + 29 + - 1 FROM tab2 cor0 ---- 28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( col1 ) * - col0 + cor0.col1 col2 FROM tab1 cor0 ---- 104 1053 650 query I rowsort SELECT - col2 + + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -20 41 52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5406 SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 32 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5406 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 32 FROM tab2 cor0 ---- NULL query I rowsort SELECT ALL + cor0.col1 * - col0 * - cor0.col0 AS col2 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT + cor0.col2 + + 97 + col2 FROM tab2 AS cor0 ---- 149 151 173 query I rowsort SELECT + + col1 + cor0.col2 + - col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT + col1 * + ( - col0 ) + - col1 + 68 FROM tab2 AS cor0 ---- -1292 -180 -4593 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col0 * - ( + tab0.col1 ) col2 FROM tab0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT ( - 7 ) AS col2 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1 ---- -7 query I rowsort SELECT DISTINCT - + cor0.col1 * + col2 + col0 AS col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT - 42 - - tab2.col1 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to bef5d0ea6570dac62fad53f83995ef3f query I rowsort SELECT + col2 * - col1 + - col2 AS col1 FROM tab1 AS cor0 ---- -1344 -1458 -627 onlyif mysql # use DIV operator for integer division query I rowsort label-5416 SELECT col2 DIV - ( col1 * cor0.col1 ) + - 27 col1 FROM tab0 AS cor0 ---- -27 -27 -27 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5416 SELECT col2 / - ( col1 * cor0.col1 ) + - 27 col1 FROM tab0 AS cor0 ---- -27 -27 -27 query I rowsort SELECT ALL 98 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to f9dee8c21116f1aed64ac5160e190809 query I rowsort SELECT + + col0 * - col2 + - col2 - 3 FROM tab0 AS cor0 ---- -39 -7383 -828 query I rowsort SELECT - col1 + cor0.col1 * + col1 * + 19 + + col2 AS col2 FROM tab0 cor0 ---- 140471 157330 178675 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 1 col1 FROM tab2 cor0 ---- 1 1 1 query I rowsort SELECT ALL - 1 + cor0.col1 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 8ab94d0462630d38ff9a83cd53e4a84b query I rowsort SELECT 97 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to c73fa6978df8525c99d6bc792bb27123 query I rowsort SELECT - tab1.col1 * - col1 * ( + col2 * col0 ) AS col2 FROM tab1 ---- 109512 1297920 364800 onlyif mysql # use DIV operator for integer division query I rowsort label-5424 SELECT + col0 + col1 - + 33 DIV 34 FROM tab1 AS cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-5424 SELECT + col0 + col1 - + 33 / 34 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT - - col1 * col2 + col1 + - ( + col2 ) FROM tab1 AS cor0 ---- 1165 1376 523 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 34 + + col0 + 96 col2 FROM tab1 AS cor0 ---- 126 142 65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5427 SELECT + tab2.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5427 SELECT + tab2.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - - ( - 90 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to f6f26b9a04da14807208b93d507095c5 query I rowsort SELECT + 15 - - tab2.col0 FROM tab2 ---- 22 93 94 query I rowsort SELECT 25 - - col2 AS col1 FROM tab1 ---- 121 79 82 query I rowsort SELECT + 53 + + 88 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to f127c88dbadbed59c64310450c6f0695 query I rowsort SELECT ALL 79 - col0 * + col2 FROM tab0 ---- -713 -7219 44 query I rowsort SELECT + + col2 + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT 91 AS col2 FROM tab1, tab0 cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5435 SELECT ALL - col2 + + CAST( NULL AS SIGNED ) col1 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5435 SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col1 + col1 + - 21 AS col1 FROM tab0 ---- 151 161 173 query I rowsort SELECT DISTINCT col2 + + col0 + col1 FROM tab0 ---- 133 143 262 query I rowsort SELECT ALL - col1 + 89 AS col0 FROM tab0 ---- -2 -8 3 query I rowsort SELECT - col0 + - ( 15 ) FROM tab2 AS cor0 ---- -22 -93 -94 query I rowsort SELECT - col1 * ( col1 ) - cor0.col0 * + ( cor0.col1 * col1 ) AS col2 FROM tab2 AS cor0 ---- -23120 -274999 -7688 query I rowsort SELECT - ( cor0.col2 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT - col2 + + 77 * + ( + cor0.col0 ) AS col2 FROM tab2 cor0 ---- 512 5980 6045 query I rowsort SELECT DISTINCT ( 59 * col0 ) FROM tab0 ---- 1416 2065 5251 query I rowsort SELECT + - ( + 34 ) * col2 AS col1 FROM tab1 AS cor0 ---- -1836 -1938 -3264 query I rowsort SELECT + - col1 + - col1 * col2 AS col0 FROM tab1 AS cor0 ---- -1261 -1430 -580 onlyif mysql # use DIV operator for integer division query I rowsort label-5446 SELECT ALL col0 * + col1 + 58 DIV - ( + col2 * + CAST( 77 AS SIGNED ) + + col1 ) AS col1 FROM tab2 cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-5446 SELECT ALL col0 * + col1 + 58 / - ( + col2 * + CAST ( 77 AS INTEGER ) + + col1 ) AS col1 FROM tab2 cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort SELECT ALL - col0 * - col1 + - CAST ( col1 AS REAL ) FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT ALL - ( col1 + tab2.col1 ) AS col0 FROM tab2 ---- -118 -34 -62 query I rowsort SELECT ALL - ( + 20 ) * tab2.col2 FROM tab2 ---- -520 -540 -760 query I rowsort SELECT ALL col1 * ( - col2 ) AS col0 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT - cor0.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- -17 -31 -59 query I rowsort SELECT ALL col2 + + col1 + + tab2.col0 AS col0 FROM tab2 ---- 134 163 65 query I rowsort SELECT tab1.col1 * - 4 * col0 AS col0 FROM tab1 ---- -2560 -312 -4160 onlyif mysql # use DIV operator for integer division query I rowsort label-5454 SELECT ALL - col1 + col0 DIV - col0 FROM tab0 AS cor0 ---- -87 -92 -98 skipif mysql # not compatible query I rowsort label-5454 SELECT ALL - col1 + col0 / - col0 FROM tab0 AS cor0 ---- -87 -92 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 34 * + cor0.col1 col2 FROM tab2 AS cor0 ---- 1054 2006 578 query I rowsort SELECT DISTINCT - ( - col0 ) * - col2 * - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT - + 90 * + ( - col0 ) * cor0.col1 FROM tab0 cor0 ---- 185760 305550 728910 query I rowsort SELECT ALL 49 + + col0 AS col2 FROM tab2 cor0 ---- 127 128 56 query I rowsort SELECT - col1 + + col1 * + col2 FROM tab1 AS cor0 ---- 1235 1378 560 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5460 SELECT DISTINCT + CAST( col1 AS SIGNED ) * + col0 FROM tab2 AS cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-5460 SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL col2 * col1 + - col2 * col1 * col2 FROM tab2 AS cor0 ---- -21762 -23902 -38350 query I rowsort SELECT DISTINCT + 28 * - col0 FROM tab2 AS cor0 ---- -196 -2184 -2212 query I rowsort SELECT DISTINCT - 27 * 76 FROM tab2 AS cor0 ---- -2052 query I rowsort SELECT DISTINCT 19 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + col0 col0 FROM tab1 cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-5466 SELECT DISTINCT col2 * - col0 + col1 DIV + CAST( 29 AS SIGNED ) AS col1 FROM tab2 ---- -188 -2026 -3002 skipif mysql # not compatible query I rowsort label-5466 SELECT DISTINCT col2 * - col0 + col1 / + CAST ( 29 AS INTEGER ) AS col1 FROM tab2 ---- -188 -2026 -3002 query I rowsort SELECT - 39 * - col1 FROM tab0 AS cor0 ---- 3354 3549 3783 query I rowsort SELECT ALL 14 + cor0.col1 FROM tab1 AS cor0 ---- 24 27 40 query I rowsort SELECT DISTINCT + + col1 + + col0 * + col2 AS col2 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT - cor0.col1 * cor0.col1 AS col2 FROM tab1, tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT - cor0.col1 * + cor0.col1 + 53 * + col1 * + 51 FROM tab2 cor0 ---- 155996 45662 82832 query I rowsort SELECT - col1 + 55 * + col1 AS col1 FROM tab1 AS cor0 ---- 1404 540 702 onlyif mysql # use DIV operator for integer division query I rowsort label-5473 SELECT DISTINCT - cor0.col0 + CAST( + 45 AS SIGNED ) DIV - col0 FROM tab0 cor0 ---- -25 -36 -89 skipif mysql # not compatible query I rowsort label-5473 SELECT DISTINCT - cor0.col0 + CAST ( + 45 AS INTEGER ) / - col0 FROM tab0 cor0 ---- -25 -36 -89 query I rowsort SELECT DISTINCT + col2 + 78 * + 37 FROM tab0 ---- 2887 2919 2968 query I rowsort SELECT - col2 * tab2.col0 + - tab2.col1 AS col2 FROM tab2 ---- -2087 -220 -3019 query I rowsort SELECT col2 * + tab1.col0 + + col0 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT ALL - col2 + + cor0.col1 * + col0 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT ALL - col1 * ( + cor0.col2 ) + col1 + + 8 FROM tab0 AS cor0 ---- -2744 -7363 8 query I rowsort SELECT DISTINCT 26 AS col1 FROM tab0, tab0 AS cor0 ---- 26 query I rowsort SELECT ALL + - col1 + - ( col2 ) AS col1 FROM tab1 cor0 ---- -109 -67 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-5481 SELECT - + col1 * 46 + + 51 DIV - col2 FROM tab1 AS cor0 ---- -1196 -460 -598 skipif mysql # not compatible query I rowsort label-5481 SELECT - + col1 * 46 + + 51 / - col2 FROM tab1 AS cor0 ---- -1196 -460 -598 query I rowsort SELECT ALL + col2 * + col2 - col0 * col0 AS col0 FROM tab2 AS cor0 ---- -4797 -5408 680 query I rowsort SELECT ALL + col0 * 9 + col0 AS col0 FROM tab0 AS cor0 ---- 240 350 890 query I rowsort SELECT DISTINCT - 0 * col1 AS col2 FROM tab2 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5485 SELECT ALL CAST( - col0 AS SIGNED ) * col1 * col2 FROM tab1 AS cor0 ---- -36480 -4212 -99840 skipif mysql # not compatible query I rowsort label-5485 SELECT ALL CAST ( - col0 AS INTEGER ) * col1 * col2 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT + col1 * 4 FROM tab2 AS cor0 ---- 124 236 68 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5487 SELECT DISTINCT + CAST( - 21 AS SIGNED ) + col2 * + col0 AS col2 FROM tab0 AS cor0 ---- 14 7277 771 skipif mysql # not compatible query I rowsort label-5487 SELECT DISTINCT + CAST ( - 21 AS INTEGER ) + col2 * + col0 AS col2 FROM tab0 AS cor0 ---- 14 7277 771 query I rowsort SELECT ALL - ( + cor0.col2 ) + + col2 AS col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT + 72 * col0 + + col2 AS col1 FROM tab1 AS cor0 ---- 270 4665 5856 query I rowsort SELECT ALL - - ( cor0.col1 ) * - cor0.col0 AS col1 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * ( + col1 ) col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL col2 + ( col1 ) FROM tab0 ---- 119 173 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5493 SELECT ALL + col0 / CAST( NULL AS SIGNED ) + col1 / + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5493 SELECT ALL + col0 / CAST ( NULL AS INTEGER ) + col1 / + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT col0 * tab2.col0 + + col1 FROM tab2 ---- 6143 6258 80 query I rowsort SELECT - 53 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d query I rowsort SELECT + col1 * + col2 - col2 AS col2 FROM tab0 ---- 2805 7380 96 onlyif mysql # use DIV operator for integer division query I rowsort label-5497 SELECT + 27 DIV + col0 - - col0 * - ( 60 * - col2 ) FROM tab0 AS cor0 ---- 2100 437880 47521 skipif mysql # not compatible query I rowsort label-5497 SELECT + 27 / + col0 - - col0 * - ( 60 * - col2 ) FROM tab0 AS cor0 ---- 2100 437880 47521 onlyif mysql # use DIV operator for integer division query I rowsort label-5498 SELECT ALL col1 + + col2 + col0 DIV - 28 AS col2 FROM tab0 AS cor0 ---- 119 170 97 skipif mysql # not compatible query I rowsort label-5498 SELECT ALL col1 + + col2 + col0 / - 28 AS col2 FROM tab0 AS cor0 ---- 119 170 97 query I rowsort SELECT DISTINCT + + 54 + + col0 * col1 * + ( col2 + col0 ) FROM tab1 AS cor0 ---- 183094 4500 77494 onlyif mysql # use DIV operator for integer division query I rowsort label-5500 SELECT ALL ( col0 ) * - col1 - col0 DIV cor0.col0 FROM tab2 cor0 ---- -1344 -218 -4603 skipif mysql # not compatible query I rowsort label-5500 SELECT ALL ( col0 ) * - col1 - col0 / cor0.col0 FROM tab2 cor0 ---- -1344 -218 -4603 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 20 + col2 col1 FROM tab0 AS cor0 ---- -19 13 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * cor0.col1 + + col1 * + col1 col2 FROM tab1 AS cor0 ---- 1209 740 754 query I rowsort SELECT - ( - col2 ) + ( + col0 * + cor0.col1 ) FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT + - col1 + - 58 FROM tab1 AS cor0 ---- -68 -71 -84 onlyif mysql # use DIV operator for integer division query I rowsort label-5505 SELECT - col1 + col2 DIV col0 FROM tab1 ---- -10 -12 -8 skipif mysql # not compatible query I rowsort label-5505 SELECT - col1 + col2 / col0 FROM tab1 ---- -10 -12 -8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5506 SELECT + tab1.col1 / col0 + + CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5506 SELECT + tab1.col1 / col0 + + CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to 6193516da5556fc054f35e0d2f4e5372 query I rowsort SELECT DISTINCT + col2 + - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT + col2 * cor0.col0 + - col0 AS col1 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT + col0 * 81 FROM tab1 AS cor0 ---- 243 5184 6480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5511 SELECT DISTINCT - + col0 * CAST( NULL AS SIGNED ) / - cor0.col0 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5511 SELECT DISTINCT - + col0 * CAST ( NULL AS INTEGER ) / - cor0.col0 AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL + col0 * - 20 FROM tab1 AS cor0 ---- -1280 -1600 -60 query I rowsort SELECT ALL + tab2.col0 AS col1 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT DISTINCT 35 FROM tab1, tab0, tab2 cor0 ---- 35 onlyif mysql # use DIV operator for integer division query I rowsort label-5515 SELECT + cor0.col1 * col2 + + col2 - 37 DIV - col1 FROM tab1 AS cor0 ---- 1346 1459 630 skipif mysql # not compatible query I rowsort label-5515 SELECT + cor0.col1 * col2 + + col2 - 37 / - col1 FROM tab1 AS cor0 ---- 1346 1459 630 query I rowsort SELECT + 17 + - col0 * 30 AS col1 FROM tab2 AS cor0 ---- -193 -2323 -2353 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5517 SELECT DISTINCT CAST( NULL AS SIGNED ) + 44 AS col2 FROM tab0, tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5517 SELECT DISTINCT CAST ( NULL AS INTEGER ) + 44 AS col2 FROM tab0, tab1 AS cor0 ---- NULL query I rowsort SELECT col1 + - cor0.col1 * col1 AS col2 FROM tab0 AS cor0 ---- -7310 -8190 -9312 query I rowsort SELECT - cor0.col1 * - ( - col2 ) FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT col2 + + ( + col2 ) FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT - cor0.col0 + 28 FROM tab0 AS cor0 ---- -61 -7 4 query I rowsort SELECT + col2 + + cor0.col0 * + col0 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT + col1 + + 46 * ( col2 ) AS col2 FROM tab0 AS cor0 ---- 143 1604 3863 query I rowsort SELECT col1 + - tab2.col1 * col1 AS col1 FROM tab2 ---- -272 -3422 -930 query I rowsort SELECT - 14 * col0 AS col2 FROM tab0 ---- -1246 -336 -490 query I rowsort SELECT ALL + col1 * - ( 11 ) + + col2 * + col0 * 12 FROM tab0 AS cor0 ---- -647 8558 86575 query I rowsort SELECT ALL + col1 + col2 * - col1 FROM tab2 AS cor0 ---- -1475 -629 -806 onlyif mysql # use DIV operator for integer division query I rowsort label-5528 SELECT + cor0.col0 DIV cor0.col0 - - 6 FROM tab2 cor0 ---- 7 7 7 skipif mysql # not compatible query I rowsort label-5528 SELECT + cor0.col0 / cor0.col0 - - 6 FROM tab2 cor0 ---- 7 7 7 onlyif mysql # use DIV operator for integer division query I rowsort label-5529 SELECT ALL + col1 + + 16 DIV + col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-5529 SELECT ALL + col1 + + 16 / + col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + + col0 + col2 * + col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL + col1 * + col2 + col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT DISTINCT + col0 * + col0 + col2 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT - + 87 AS col1 FROM tab2 cor0 ---- -87 -87 -87 query I rowsort SELECT + col2 * - 4 AS col1 FROM tab2 AS cor0 ---- -104 -108 -152 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5535 SELECT CAST( + 2 AS SIGNED ) + col1 FROM tab2 cor0 ---- 19 33 61 skipif mysql # not compatible query I rowsort label-5535 SELECT CAST ( + 2 AS INTEGER ) + col1 FROM tab2 cor0 ---- 19 33 61 query I rowsort SELECT col2 + ( 49 + col2 ) FROM tab2 ---- 101 103 125 query I rowsort SELECT + col0 + 44 FROM tab1 ---- 108 124 47 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5538 SELECT CAST( NULL AS SIGNED ) + col2 * col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5538 SELECT CAST ( NULL AS INTEGER ) + col2 * col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5539 SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col2 * cor0.col2 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5539 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col2 * cor0.col2 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- NULL query I rowsort SELECT DISTINCT - - 57 + + col2 AS col2 FROM tab2 AS cor0 ---- 83 84 95 onlyif mysql # use DIV operator for integer division query I rowsort label-5541 SELECT ALL + col0 + col1 * col1 DIV 54 col1 FROM tab1 AS cor0 ---- 15 65 83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5541 SELECT ALL + col0 + col1 * col1 / 54 col1 FROM tab1 AS cor0 ---- 15 65 83 query I rowsort SELECT ALL - 59 + - col2 AS col0 FROM tab2 AS cor0 ---- -85 -86 -97 query I rowsort SELECT - + col0 + col0 * - col0 AS col0 FROM tab2 cor0 ---- -56 -6162 -6320 query I rowsort SELECT DISTINCT 80 + col1 * cor0.col1 FROM tab1 AS cor0 ---- 180 249 756 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5545 SELECT DISTINCT - cor0.col2 + + col0 - - CAST( ( - col1 ) AS SIGNED ) * - 45 AS col2 FROM tab1 AS cor0 ---- 1119 457 569 skipif mysql # not compatible query I rowsort label-5545 SELECT DISTINCT - cor0.col2 + + col0 - - CAST ( ( - col1 ) AS INTEGER ) * - 45 AS col2 FROM tab1 AS cor0 ---- 1119 457 569 query I rowsort SELECT DISTINCT - col0 + + cor0.col2 AS col1 FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT DISTINCT + 19 * col0 * col0 - - ( col2 ) FROM tab1 AS cor0 ---- 121696 225 77881 query I rowsort SELECT + col1 + tab1.col0 * - col2 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT - - col2 * col2 + + 83 FROM tab1 AS cor0 ---- 2999 3332 9299 query I rowsort SELECT - cor0.col1 + - col1 FROM tab1 cor0 ---- -20 -26 -52 query I rowsort SELECT - ( col1 ) * col0 + + cor0.col1 AS col0 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT - 81 + + col0 AS col1 FROM tab2 ---- -2 -3 -74 onlyif mysql # use DIV operator for integer division query I rowsort label-5553 SELECT - cor0.col2 DIV cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-5553 SELECT - cor0.col2 / cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5554 SELECT - CAST( + 37 AS SIGNED ) * - tab1.col0 * + tab1.col0 + tab1.col0 FROM tab1 ---- 151616 236880 336 skipif mysql # not compatible query I rowsort label-5554 SELECT - CAST ( + 37 AS INTEGER ) * - tab1.col0 * + tab1.col0 + tab1.col0 FROM tab1 ---- 151616 236880 336 query I rowsort SELECT DISTINCT + ( + col2 ) * tab0.col0 FROM tab0 ---- 35 7298 792 query I rowsort SELECT - ( - col0 ) + col1 * - col0 FROM tab1 AS cor0 ---- -576 -75 -960 onlyif mysql # use DIV operator for integer division query I rowsort label-5557 SELECT ALL - - col0 + - 69 DIV - col0 FROM tab1 AS cor0 ---- 26 65 80 skipif mysql # not compatible query I rowsort label-5557 SELECT ALL - - col0 + - 69 / - col0 FROM tab1 AS cor0 ---- 26 65 80 query I rowsort SELECT + col0 * 62 FROM tab2 AS cor0 ---- 434 4836 4898 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + ( + col2 ) col1 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT + col2 + + tab1.col0 * col2 AS col0 FROM tab1 ---- 216 3705 7776 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5561 SELECT DISTINCT + 52 + col1 * - CAST( 11 AS SIGNED ) AS col2 FROM tab2 ---- -135 -289 -597 skipif mysql # not compatible query I rowsort label-5561 SELECT DISTINCT + 52 + col1 * - CAST ( 11 AS INTEGER ) AS col2 FROM tab2 ---- -135 -289 -597 query I rowsort SELECT DISTINCT 70 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 70 onlyif mysql # use DIV operator for integer division query I rowsort label-5563 SELECT - cor0.col1 * 41 * + 41 + - col0 - + 28 DIV 10 AS col0 FROM tab0 cor0 ---- -144592 -153062 -163094 skipif mysql # not compatible query I rowsort label-5563 SELECT - cor0.col1 * 41 * + 41 + - col0 - + 28 / 10 AS col0 FROM tab0 cor0 ---- -144592 -153062 -163094 query I rowsort SELECT DISTINCT + 86 + col1 FROM tab1 ---- 112 96 99 query I rowsort SELECT DISTINCT ( - 23 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- -23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab2.col0 * ( ( col0 ) * col1 ) col0 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT DISTINCT col1 * ( + col0 ) * + col2 FROM tab2 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-5568 SELECT ALL - col1 DIV cor0.col1 - - cor0.col0 AS col2 FROM tab0 AS cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-5568 SELECT ALL - col1 / cor0.col1 - - cor0.col0 AS col2 FROM tab0 AS cor0 ---- 23 34 88 onlyif mysql # use DIV operator for integer division query I rowsort label-5569 SELECT - cor0.col1 DIV 26 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc skipif mysql # not compatible query I rowsort label-5569 SELECT - cor0.col1 / 26 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 + - ( - col0 ) col0 FROM tab2 AS cor0 ---- -24 19 62 onlyif mysql # use DIV operator for integer division query I rowsort label-5571 SELECT ALL + col2 DIV + 9 AS col2 FROM tab0 AS cor0 ---- 0 3 9 skipif mysql # not compatible query I rowsort label-5571 SELECT ALL + col2 / + 9 AS col2 FROM tab0 AS cor0 ---- 0 3 9 query I rowsort SELECT cor0.col2 * cor0.col2 + + col1 + col1 FROM tab1 AS cor0 ---- 2968 3269 9242 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 + - col0 col0 FROM tab0 AS cor0 ---- -34 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-5574 SELECT + col1 + col2 + col1 DIV col1 FROM tab1 AS cor0 ---- 110 68 81 skipif mysql # not compatible query I rowsort label-5574 SELECT + col1 + col2 + col1 / col1 FROM tab1 AS cor0 ---- 110 68 81 onlyif mysql # use DIV operator for integer division query I rowsort label-5575 SELECT 47 DIV - col1 + col0 FROM tab2 ---- 6 77 78 skipif mysql # not compatible query I rowsort label-5575 SELECT 47 / - col1 + col0 FROM tab2 ---- 6 77 78 query I rowsort SELECT DISTINCT + ( - tab1.col0 ) AS col0 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT DISTINCT + cor0.col1 * col2 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT + 52 * cor0.col1 AS col1 FROM tab1 AS cor0 ---- 1352 520 676 query I rowsort SELECT + col2 * 69 AS col1 FROM tab2 AS cor0 ---- 1794 1863 2622 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 95 * 41 * + col2 col0 FROM tab0 AS cor0 ---- 128535 319390 3895 query I rowsort SELECT ALL 48 * - ( col2 ) FROM tab2 AS cor0 ---- -1248 -1296 -1824 query I rowsort SELECT - + ( ( col0 ) ) FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL col1 * col1 * + cor0.col2 + + col1 * col0 FROM tab2 AS cor0 ---- 12325 26164 95108 query I rowsort SELECT + - col0 * col2 + cor0.col1 + col2 * - col2 FROM tab0 AS cor0 ---- -13931 -1795 61 query I rowsort SELECT + col2 * col0 AS col0 FROM tab0 cor0 ---- 35 7298 792 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5586 SELECT ALL - col1 + col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- 0 2752 7371 skipif mysql # not compatible query I rowsort label-5586 SELECT ALL - col1 + col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT 42 - + col1 * ( col0 ) AS col0 FROM tab2 AS cor0 ---- -1301 -175 -4560 query I rowsort SELECT - + 30 + col0 + + col2 * - col1 FROM tab0 cor0 ---- -2844 -7403 -92 query I rowsort SELECT cor0.col0 * + col0 + - 87 * - 34 FROM tab2 AS cor0 ---- 3007 9042 9199 query I rowsort SELECT ALL - 14 AS col0 FROM tab2 AS cor0 ---- -14 -14 -14 query I rowsort SELECT ALL 13 + - cor0.col2 FROM tab2 AS cor0 ---- -13 -14 -25 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5592 SELECT DISTINCT - - col0 * col0 + - CAST( NULL AS SIGNED ) / col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5592 SELECT DISTINCT - - col0 * col0 + - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + col2 + + col1 + cor0.col2 FROM tab2 AS cor0 ---- 111 85 93 query I rowsort SELECT ALL ( col2 ) * - col1 + col0 * col2 FROM tab2 AS cor0 ---- -648 2356 494 query I rowsort SELECT + + 40 AS col1 FROM tab0 cor0 ---- 40 40 40 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col2 ) + 12 col1 FROM tab1 AS cor0 ---- 108 66 69 query I rowsort SELECT DISTINCT + cor0.col2 * - col1 * + 94 + col1 * - cor0.col1 FROM tab2 AS cor0 ---- -147677 -61013 -79639 query I rowsort SELECT + cor0.col2 - + 67 FROM tab0, tab1 AS cor0 ---- 9 values hashing to c820ea85cc8e83989e761a3d41efb118 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + cor0.col1 col1 FROM tab1 AS cor0 ---- 20 26 52 onlyif mysql # use DIV operator for integer division query I rowsort label-5600 SELECT ALL + cor0.col0 DIV col0 + col0 * + col0 * col1 FROM tab2 AS cor0 ---- 106098 1520 358957 skipif mysql # not compatible query I rowsort label-5600 SELECT ALL + cor0.col0 / col0 + col0 * + col0 * col1 FROM tab2 AS cor0 ---- 106098 1520 358957 query I rowsort SELECT + col1 * - ( col2 ) + col1 AS col2 FROM tab0 cor0 ---- -2752 -7371 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * col0 + - col2 col2 FROM tab2 AS cor0 ---- 22 6058 6203 query I rowsort SELECT - col1 * 71 + + 1 * + col0 FROM tab0 AS cor0 ---- -6082 -6372 -6852 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5604 SELECT + - col0 * + CAST( + 49 AS SIGNED ) * col0 - + col0 AS col0 FROM tab1 AS cor0 ---- -200768 -313680 -444 skipif mysql # not compatible query I rowsort label-5604 SELECT + - col0 * + CAST ( + 49 AS INTEGER ) * col0 - + col0 AS col0 FROM tab1 AS cor0 ---- -200768 -313680 -444 query I rowsort SELECT DISTINCT + col0 + col2 * 74 FROM tab0 ---- 109 2466 6157 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + - tab1.col2 col2 FROM tab1 ---- 0 query I rowsort SELECT ALL col0 + + col0 * col1 AS col0 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT ALL 80 * col2 + - ( ( - col1 ) ) AS col1 FROM tab1 ---- 4346 4570 7693 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5609 SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-5609 SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 69 * + col0 col2 FROM tab1 AS cor0 ---- 207 4416 5520 query I rowsort SELECT - - col1 * 35 AS col0 FROM tab0 AS cor0 ---- 3010 3185 3395 query I rowsort SELECT ALL + + col0 + cor0.col0 AS col2 FROM tab1 cor0 ---- 128 160 6 onlyif mysql # use DIV operator for integer division query I rowsort label-5613 SELECT DISTINCT - cor0.col0 DIV col1 AS col0 FROM tab2 AS cor0 ---- -1 -4 0 skipif mysql # not compatible query I rowsort label-5613 SELECT DISTINCT - cor0.col0 / col1 AS col0 FROM tab2 AS cor0 ---- -1 -4 0 query I rowsort SELECT 79 * col0 AS col2 FROM tab1 AS cor0 ---- 237 5056 6320 onlyif mysql # use DIV operator for integer division query I rowsort label-5615 SELECT DISTINCT + ( - ( - col1 ) ) - - col2 DIV - col0 FROM tab0 AS cor0 ---- 85 91 97 skipif mysql # not compatible query I rowsort label-5615 SELECT DISTINCT + ( - ( - col1 ) ) - - col2 / - col0 FROM tab0 AS cor0 ---- 85 91 97 query I rowsort SELECT ALL - 65 * ( cor0.col0 ) + ( + col2 ) * + col0 * col0 FROM tab2 AS cor0 ---- 153114 232023 868 query I rowsort SELECT DISTINCT - + col1 - col2 AS col2 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT ALL + + 66 * cor0.col0 AS col1 FROM tab1 cor0 ---- 198 4224 5280 query I rowsort SELECT + + 17 * col1 FROM tab1 AS cor0 ---- 170 221 442 query I rowsort SELECT DISTINCT ( ( col2 ) ) * 53 + + col1 FROM tab2 AS cor0 ---- 1437 1462 2031 query I rowsort SELECT DISTINCT - col1 - 91 FROM tab0 AS cor0 ---- -177 -182 -188 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5622 SELECT ALL - col0 * - CAST( - col1 AS SIGNED ) + + col2 AS col1 FROM tab1 ---- -24 -583 -944 skipif mysql # not compatible query I rowsort label-5622 SELECT ALL - col0 * - CAST ( - col1 AS INTEGER ) + + col2 AS col1 FROM tab1 ---- -24 -583 -944 query I rowsort SELECT + col0 + ( 80 * - col1 ) AS col1 FROM tab2 ---- -1281 -2473 -4642 query I rowsort SELECT ALL col0 + + ( col0 ) * col2 AS col2 FROM tab0 ---- 70 7387 816 query I rowsort SELECT ALL + + cor0.col2 + 45 * + col2 AS col1 FROM tab2 AS cor0 ---- 1196 1242 1748 query I rowsort SELECT DISTINCT - - 30 * col0 AS col0 FROM tab0 AS cor0 ---- 1050 2670 720 query I rowsort SELECT DISTINCT - + ( ( + col0 ) ) * + 57 AS col0 FROM tab2 cor0 ---- -399 -4446 -4503 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5628 SELECT ALL - ( - cor0.col0 ) + - col0 * - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5628 SELECT ALL - ( - cor0.col0 ) + - col0 * - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5629 SELECT DISTINCT - ( - col2 ) - + col2 * CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0 ---- -36423 -4158 -99744 skipif mysql # not compatible query I rowsort label-5629 SELECT DISTINCT - ( - col2 ) - + col2 * CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0 ---- -36423 -4158 -99744 query I rowsort SELECT - 56 FROM tab1, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80 query I rowsort SELECT DISTINCT - 41 FROM tab2, tab0 AS cor0 ---- -41 query I rowsort SELECT + tab1.col1 FROM tab1, tab0 cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * - col0 col1 FROM tab0 cor0 ---- 1225 576 7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5634 SELECT DISTINCT tab0.col0 * + CAST( NULL AS SIGNED ) FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-5634 SELECT DISTINCT tab0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL query I rowsort SELECT + col2 * - col0 - col1 * + col0 AS col1 FROM tab0 ---- -15397 -2856 -3430 query I rowsort SELECT - 40 * col1 * + cor0.col0 FROM tab1 AS cor0 ---- -25600 -3120 -41600 query I rowsort SELECT cor0.col2 - col1 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab2 cor1 ---- 972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859 query I rowsort SELECT ( 93 ) AS col1 FROM tab0 AS cor0 ---- 93 93 93 query I rowsort SELECT DISTINCT - 16 AS col1 FROM tab1 cor0 ---- -16 query I rowsort SELECT DISTINCT + cor0.col2 + + col1 + - ( 93 + col2 ) AS col1 FROM tab2 AS cor0 ---- -34 -62 -76 query I rowsort SELECT col0 * col1 + - ( - col0 * col1 ) + col2 AS col0 FROM tab2 AS cor0 ---- 2724 461 9230 query I rowsort SELECT + - 92 AS col2 FROM tab2 AS cor0 ---- -92 -92 -92 query I rowsort SELECT - 66 + + col2 * - 59 FROM tab1 AS cor0 ---- -3252 -3429 -5730 onlyif mysql # use DIV operator for integer division query I rowsort label-5645 SELECT + col1 DIV - 57 AS col0 FROM tab2 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-5645 SELECT + col1 / - 57 AS col0 FROM tab2 AS cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5646 SELECT + col0 DIV - ( col1 ) AS col0 FROM tab2 AS cor0 ---- -1 -4 0 skipif mysql # not compatible query I rowsort label-5646 SELECT + col0 / - ( col1 ) AS col0 FROM tab2 AS cor0 ---- -1 -4 0 query I rowsort SELECT ALL ( - col0 + 82 ) * tab0.col1 FROM tab0 ---- -637 4559 4988 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5648 SELECT - - col2 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-5648 SELECT - - col2 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-5649 SELECT - col0 DIV col0 + col0 AS col1 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-5649 SELECT - col0 / col0 + col0 AS col1 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort SELECT DISTINCT + cor0.col0 * CAST ( col1 AS REAL ) FROM tab1 AS cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + + 0 col0 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-5652 SELECT DISTINCT - col1 * 89 DIV col2 + - cor0.col1 * col1 AS col0 FROM tab0 cor0 ---- -18042 -7627 -8379 skipif mysql # not compatible query I rowsort label-5652 SELECT DISTINCT - col1 * 89 / col2 + - cor0.col1 * col1 AS col0 FROM tab0 cor0 ---- -18042 -7627 -8379 query I rowsort SELECT col0 + 30 AS col1 FROM tab1 AS cor0 ---- 110 33 94 query I rowsort SELECT col1 + 55 FROM tab2 AS cor0 ---- 114 72 86 query I rowsort SELECT ALL col0 * 0 + col1 AS col0 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + col2 * 94 * col1 - - col0 * 5 AS col2 FROM tab1 AS cor0 ---- 117712 131991 53900 onlyif mysql # use DIV operator for integer division query I rowsort label-5657 SELECT col2 * 97 + - col2 DIV col1 FROM tab1 AS cor0 ---- 5236 5524 9305 skipif mysql # not compatible query I rowsort label-5657 SELECT col2 * 97 + - col2 / col1 FROM tab1 AS cor0 ---- 5236 5524 9305 query I rowsort SELECT DISTINCT - cor0.col1 + 32 FROM tab1 AS cor0 ---- 19 22 6 query I rowsort SELECT ALL - 57 * 68 + col2 AS col2 FROM tab2 AS cor0 ---- -3838 -3849 -3850 query I rowsort SELECT + col2 + 43 AS col2 FROM tab0 AS cor0 ---- 125 44 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( - col1 ) * - col0 col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT - ( cor0.col2 * 65 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to 9e3b6d280c4f16ade677101863c06a28 query I rowsort SELECT DISTINCT + ( + col0 ) * + cor0.col0 FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5664 SELECT + CAST( + 2 AS SIGNED ) FROM tab2 AS cor0 ---- 2 2 2 skipif mysql # not compatible query I rowsort label-5664 SELECT + CAST ( + 2 AS INTEGER ) FROM tab2 AS cor0 ---- 2 2 2 query I rowsort SELECT ALL cor1.col1 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT DISTINCT cor0.col0 + - col1 * + col1 AS col2 FROM tab1 AS cor0 ---- -36 -673 -89 query I rowsort SELECT ALL + + 48 * + col2 AS col0 FROM tab0 AS cor0 ---- 1584 3936 48 query I rowsort SELECT 73 - col1 AS col1 FROM tab0 cor0 ---- -13 -18 -24 query I rowsort SELECT - 4 + - 62 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to a408108d423d7784b7d610cb779e515a query I rowsort SELECT + ( ( col1 ) + - col0 ) AS col1 FROM tab0 ---- 2 62 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5671 SELECT ALL - col1 * col1 + + CAST( NULL AS SIGNED ) col1 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5671 SELECT ALL - col1 * col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5672 SELECT ALL + col1 DIV - col1 + + CAST( col0 AS SIGNED ) FROM tab1 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-5672 SELECT ALL + col1 / - col1 + + CAST ( col0 AS INTEGER ) FROM tab1 ---- 2 63 79 query I rowsort SELECT + cor0.col1 + - col1 FROM tab0 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 - - col0 col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT + + col0 * col2 * - col2 + + col2 AS col0 FROM tab1 AS cor0 ---- -207879 -737184 -8694 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 36 + + col1 + col1 col2 FROM tab1 AS cor0 ---- 56 62 88 query I rowsort SELECT ALL + + ( - 67 ) AS col0 FROM tab2 AS cor0 ---- -67 -67 -67 query I rowsort SELECT DISTINCT + - col0 + - 38 FROM tab2 AS cor0 ---- -116 -117 -45 query I rowsort SELECT + ( + 60 ) FROM tab2 AS cor0 ---- 60 60 60 skipif mysql # not compatible query I rowsort SELECT ALL + + col1 * - ( + col0 ) - + CAST ( 22 AS REAL ) * + col0 FROM tab2 AS cor0 ---- -3081 -371 -6318 query I rowsort SELECT col0 + - 74 AS col1 FROM tab0 AS cor0 ---- -39 -50 15 query I rowsort SELECT DISTINCT + col2 * - col0 + col2 + + col1 FROM tab0 AS cor0 ---- -673 -7125 63 query I rowsort SELECT - + col1 * - col0 - + col0 AS col1 FROM tab2 cor0 ---- 1264 210 4524 query I rowsort SELECT ALL + ( 18 ) * col2 + - 44 FROM tab1 cor0 ---- 1684 928 982 onlyif mysql # use DIV operator for integer division query I rowsort label-5685 SELECT col2 * ( + col1 ) DIV - 85 - - col1 DIV col0 FROM tab0 AS cor0 ---- -30 -86 1 skipif mysql # not compatible query I rowsort label-5685 SELECT col2 * ( + col1 ) / - 85 - - col1 / col0 FROM tab0 AS cor0 ---- -30 -86 1 query I rowsort SELECT DISTINCT - ( col1 ) + - col1 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT ( cor0.col1 ) * col0 AS col1 FROM tab1 cor0 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-5688 SELECT + 4 DIV col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5688 SELECT + 4 / col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * cor0.col1 - cor0.col1 AS col1 FROM tab2 cor0 ---- 272 3422 930 onlyif mysql # use DIV operator for integer division query I rowsort label-5690 SELECT DISTINCT 86 DIV col0 + col2 * col1 FROM tab1 ---- 1249 1432 571 skipif mysql # not compatible query I rowsort label-5690 SELECT DISTINCT 86 / col0 + col2 * col1 FROM tab1 ---- 1249 1432 571 query I rowsort SELECT + + col0 + col1 * col2 AS col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT + 77 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 051bf10c50e061d74ad0a4d205a1c622 query I rowsort SELECT DISTINCT 17 + col2 * + col1 AS col2 FROM tab1 ---- 1265 1421 587 query I rowsort SELECT ALL - tab1.col1 * - tab1.col2 FROM tab1, tab2 cor0, tab0, tab2 cor1 ---- 81 values hashing to 940f1e7270a057eb303b3443f91e7ee3 onlyif mysql # use DIV operator for integer division query I rowsort label-5695 SELECT + col1 * 38 DIV - col0 + + 21 AS col0 FROM tab0 ---- -115 -17 -84 skipif mysql # not compatible query I rowsort label-5695 SELECT + col1 * 38 / - col0 + + 21 AS col0 FROM tab0 ---- -115 -17 -84 query I rowsort SELECT ALL tab0.col1 + tab0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 30f96c938ee95872f59e2a087590314f query I rowsort SELECT ALL - 64 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 100c625e45715c20368551989514ba64 query I rowsort SELECT DISTINCT - - 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 68 query I rowsort SELECT ALL + col1 * - col1 + col2 * col1 + - col1 * 74 AS col0 FROM tab1 cor0 ---- -1196 -270 117 query I rowsort SELECT DISTINCT - col2 + - 8 FROM tab2 AS cor0 ---- -34 -35 -46 query I rowsort SELECT ALL + - col0 * col1 + 62 AS col1 FROM tab1 cor0 ---- -16 -578 -978 query I rowsort SELECT DISTINCT + cor2.col1 FROM tab2, tab0 AS cor0, tab2 cor1, tab1 AS cor2 ---- 10 13 26 query I rowsort SELECT ALL col0 * + 12 * col0 FROM tab1 ---- 108 49152 76800 query I rowsort SELECT ALL - 34 FROM tab2, tab1 cor0 ---- 9 values hashing to 40442a74794ded4c78101eefe525a5bb query I rowsort SELECT ALL - cor0.col1 * - 41 FROM tab1 cor0 ---- 1066 410 533 query I rowsort SELECT ALL col1 + 33 AS col0 FROM tab0 AS cor0 ---- 119 124 130 query I rowsort SELECT 73 * - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to b8ed8ab0baacb8f3308669db8c62d323 onlyif mysql # use DIV operator for integer division query I rowsort label-5708 SELECT DISTINCT - col1 * 32 DIV col2 AS col1 FROM tab0 ---- -3104 -35 -83 skipif mysql # not compatible query I rowsort label-5708 SELECT DISTINCT - col1 * 32 / col2 AS col1 FROM tab0 ---- -3104 -35 -83 query I rowsort SELECT cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT - 67 + + col2 AS col2 FROM tab1 AS cor0 ---- -10 -13 29 query I rowsort SELECT ALL - ( cor1.col0 ) AS col2 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT ALL - - 76 + + col0 AS col2 FROM tab0 cor0 ---- 100 111 165 query I rowsort SELECT + 17 + - col0 AS col1 FROM tab2 AS cor0 ---- -61 -62 10 query I rowsort SELECT ALL 42 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e onlyif mysql # use DIV operator for integer division query I rowsort label-5715 SELECT ALL ( col1 + - col0 ) DIV + col0 FROM tab0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-5715 SELECT ALL ( col1 + - col0 ) / + col0 FROM tab0 ---- 0 1 2 query I rowsort SELECT + - 69 * col1 - + ( - col0 ) * + col1 * + col2 AS col0 FROM tab1 AS cor0 ---- 2418 35790 98943 query I rowsort SELECT DISTINCT col0 * + col0 + ( 44 + col1 ) AS col2 FROM tab1 AS cor0 ---- 4150 6457 79 query I rowsort SELECT ALL + 1 + col0 FROM tab0 cor0 ---- 25 36 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col0 + - col1 col0 FROM tab0 AS cor0 ---- -1322 -662 -8012 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + ( + ( + col1 ) ) col0 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT - + col0 + - col2 * - col1 FROM tab1 AS cor0 ---- 1168 1401 506 query I rowsort SELECT - 92 + col2 AS col2 FROM tab0 ---- -10 -59 -91 onlyif mysql # use DIV operator for integer division query I rowsort label-5723 SELECT ALL tab1.col2 + - tab1.col1 DIV ( + col0 ) FROM tab1 ---- 46 57 96 skipif mysql # not compatible query I rowsort label-5723 SELECT ALL tab1.col2 + - tab1.col1 / ( + col0 ) FROM tab1 ---- 46 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-5724 SELECT + - col0 DIV CAST( 98 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5724 SELECT + - col0 / CAST ( 98 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 43 + + tab1.col0 AS col0 FROM tab1 ---- 107 123 46 query I rowsort SELECT - ( - col0 ) + - col0 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + col0 + 84 col1 FROM tab1 AS cor0 ---- 113 158 177 query I rowsort SELECT DISTINCT + col2 * cor0.col2 + 19 * col1 AS col2 FROM tab0 AS cor0 ---- 1844 2723 8453 query I rowsort SELECT + 39 * + col0 * + col0 + 63 FROM tab2 ---- 1974 237339 243462 query I rowsort SELECT + col2 * col0 + ( - col1 + + col0 ) FROM tab2 ---- 165 2047 3064 query I rowsort SELECT DISTINCT + ( - col2 * col1 ) AS col1 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT + col1 * - 55 FROM tab2 ---- -1705 -3245 -935 query I rowsort SELECT DISTINCT 8 AS col2 FROM tab1, tab1 cor0 ---- 8 query I rowsort SELECT ALL + col1 + 7 FROM tab1 AS cor0 ---- 17 20 33 query I rowsort SELECT DISTINCT + + col2 + ( - col2 ) AS col0 FROM tab1 cor0 ---- 0 query I rowsort SELECT ALL - 14 * + 54 AS col2 FROM tab2 AS cor0 ---- -756 -756 -756 query I rowsort SELECT ALL - ( + ( + col1 ) ) - - col2 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT col1 * + 92 AS col0 FROM tab0 ---- 7912 8372 8924 query I rowsort SELECT 22 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 7dda382e7c08428abac8600fd696eb3e onlyif mysql # use DIV operator for integer division query I rowsort label-5740 SELECT DISTINCT + col1 DIV - tab0.col1 AS col1 FROM tab0 ---- -1 skipif mysql # not compatible query I rowsort label-5740 SELECT DISTINCT + col1 / - tab0.col1 AS col1 FROM tab0 ---- -1 onlyif mysql # use DIV operator for integer division query I rowsort label-5741 SELECT - col1 DIV - 86 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5741 SELECT - col1 / - 86 FROM tab2 ---- 0 0 0 query I rowsort SELECT - - cor0.col0 + col0 * - col2 * + col2 AS col2 FROM tab1 AS cor0 ---- -207872 -737200 -8745 query I rowsort SELECT ALL - 17 * tab0.col2 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 474aae63cc754c0f447092b32cae9357 query I rowsort SELECT 94 * 7 + col1 FROM tab1 AS cor0 ---- 668 671 684 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5745 SELECT ALL CAST( col2 AS SIGNED ) + - col0 * + col2 AS col2 FROM tab0 ---- -34 -7216 -759 skipif mysql # not compatible query I rowsort label-5745 SELECT ALL CAST ( col2 AS INTEGER ) + - col0 * + col2 AS col2 FROM tab0 ---- -34 -7216 -759 query I rowsort SELECT + 17 FROM tab0, tab0 cor0 ---- 9 values hashing to 43298e43365fccb5146ea32003753c92 query I rowsort SELECT DISTINCT - 37 * col0 * + col2 + - col1 + + tab0.col2 FROM tab0 ---- -1391 -270035 -29357 query I rowsort SELECT ( + 51 ) * - col1 FROM tab2 ---- -1581 -3009 -867 onlyif mysql # use DIV operator for integer division query I rowsort label-5749 SELECT + col0 + - cor0.col2 * col1 DIV - col0 AS col2 FROM tab2 AS cor0 ---- 126 87 97 skipif mysql # not compatible query I rowsort label-5749 SELECT + col0 + - cor0.col2 * col1 / - col0 AS col2 FROM tab2 AS cor0 ---- 126 87 97 onlyif mysql # use DIV operator for integer division query I rowsort label-5750 SELECT + col0 + col1 DIV + cor0.col0 col1 FROM tab1 AS cor0 ---- 11 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5750 SELECT + col0 + col1 / + cor0.col0 col1 FROM tab1 AS cor0 ---- 11 64 80 skipif mysql # not compatible query I rowsort SELECT - + CAST ( + col0 AS REAL ) + col1 * + col2 * col1 FROM tab1 cor0 ---- 16144 36501 5636 query I rowsort SELECT DISTINCT + cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 26 27 38 query I rowsort SELECT ALL col2 * ( col2 ) AS col0 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT DISTINCT - col0 + - 80 AS col2 FROM tab2 ---- -158 -159 -87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + col0 * - col1 col2 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT - - 69 * - col2 + cor0.col0 FROM tab1 AS cor0 ---- -3723 -3869 -6544 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5757 SELECT DISTINCT + col1 + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5757 SELECT DISTINCT + col1 + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT + + col0 * + col0 * col0 + + 25 FROM tab2 AS cor0 ---- 368 474577 493064 onlyif mysql # use DIV operator for integer division query I rowsort label-5759 SELECT + - 74 DIV col1 + col0 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 178 48 70 skipif mysql # not compatible query I rowsort label-5759 SELECT + - 74 / col1 + col0 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 178 48 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + cor0.col2 * 88 * col0 col2 FROM tab2 cor0 ---- 16625 178386 264097 query I rowsort SELECT DISTINCT cor0.col1 * + col2 * + 69 AS col1 FROM tab1 AS cor0 ---- 39330 86112 96876 onlyif mysql # use DIV operator for integer division query I rowsort label-5762 SELECT ALL + col2 + col0 DIV - col1 AS col1 FROM tab1 AS cor0 ---- 51 54 90 skipif mysql # not compatible query I rowsort label-5762 SELECT ALL + col2 + col0 / - col1 AS col1 FROM tab1 AS cor0 ---- 51 54 90 query I rowsort SELECT DISTINCT - col0 + ( col0 * col1 ) FROM tab1 AS cor0 ---- 576 75 960 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5764 SELECT DISTINCT + cor0.col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5764 SELECT DISTINCT + cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - col1 * 53 AS col2 FROM tab0 cor0 ---- -4558 -4823 -5141 query I rowsort SELECT DISTINCT col1 + 91 * 90 FROM tab1 AS cor0 ---- 8200 8203 8216 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5767 SELECT ALL col1 + CAST( ( col0 ) AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0 ---- 138 173 32 skipif mysql # not compatible query I rowsort label-5767 SELECT ALL col1 + CAST ( ( col0 ) AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0 ---- 138 173 32 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5768 SELECT DISTINCT - col1 - - CAST( col0 AS SIGNED ) FROM tab2 AS cor0 ---- -24 19 62 skipif mysql # not compatible query I rowsort label-5768 SELECT DISTINCT - col1 - - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT + - col2 * + col1 * col1 + ( col2 ) * col2 + - ( col2 ) FROM tab2 AS cor0 ---- -25245 -89856 -9576 query I rowsort SELECT DISTINCT + col2 * 93 AS col1 FROM tab2 AS cor0 ---- 2418 2511 3534 onlyif mysql # use DIV operator for integer division query I rowsort label-5771 SELECT ALL + CAST( col2 AS SIGNED ) DIV + col2 + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1249 1405 571 skipif mysql # not compatible query I rowsort label-5771 SELECT ALL + CAST ( col2 AS INTEGER ) / + col2 + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1249 1405 571 query I rowsort SELECT DISTINCT + 18 FROM tab1 cor0 ---- 18 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col1 + col1 col0 FROM tab0 AS cor0 ---- -7310 -8190 -9312 query I rowsort SELECT ALL + + col1 * col1 + col0 + - col0 * + cor0.col1 FROM tab1 AS cor0 ---- -476 -791 601 query I rowsort SELECT + col1 * - col2 + - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -132 -2862 -7551 onlyif mysql # use DIV operator for integer division query I rowsort label-5776 SELECT - col0 * - 7 + - col0 DIV - cor0.col1 - + 99 AS col0 FROM tab2 AS cor0 ---- -50 448 458 skipif mysql # not compatible query I rowsort label-5776 SELECT - col0 * - 7 + - col0 / - cor0.col1 - + 99 AS col0 FROM tab2 AS cor0 ---- -50 448 458 query I rowsort SELECT DISTINCT tab2.col2 - + ( col2 * col0 ) AS col1 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT ALL + ( 30 * + tab2.col1 ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to fb1d477fb262e7babcdfe64543908409 query I rowsort SELECT DISTINCT + - col0 * + ( - col1 + col1 ) AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL - + col1 * cor0.col1 * + col0 AS col1 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT DISTINCT col0 * + col2 * col2 FROM tab0 cor0 ---- 26136 35 598436 query I rowsort SELECT ALL + col2 * + col1 + col1 * cor0.col0 FROM tab0 AS cor0 ---- 15561 3492 4902 query I rowsort SELECT col1 * - col0 * tab0.col1 + tab0.col2 FROM tab0 ---- -177471 -329314 -736927 query I rowsort SELECT DISTINCT - - col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT + col1 + + col1 * col0 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT + col0 + col0 * - 99 + col1 FROM tab2 AS cor0 ---- -655 -7585 -7725 query I rowsort SELECT DISTINCT + col2 + - col0 * col1 AS col0 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT DISTINCT + col0 * col2 - ( col1 * col1 ) AS col0 FROM tab1 AS cor0 ---- -514 3548 7511 query I rowsort SELECT DISTINCT - + col1 + col2 FROM tab1 cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT col1 + col1 * col1 * + col2 FROM tab2 AS cor0 ---- 10999 25978 90565 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5791 SELECT DISTINCT - - col1 + - CAST( - col0 AS SIGNED ) * col0 FROM tab1 cor0 ---- 35 4106 6413 skipif mysql # not compatible query I rowsort label-5791 SELECT DISTINCT - - col1 + - CAST ( - col0 AS INTEGER ) * col0 FROM tab1 cor0 ---- 35 4106 6413 onlyif mysql # use DIV operator for integer division query I rowsort label-5792 SELECT ALL + col2 DIV ( col1 ) - - col0 AS col1 FROM tab0 cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-5792 SELECT ALL + col2 / ( col1 ) - - col0 AS col1 FROM tab0 cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-5793 SELECT ALL - col1 * ( - cor0.col1 ) DIV - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-5793 SELECT ALL - col1 * ( - cor0.col1 ) / - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ALL + - 64 * + 88 AS col2 FROM tab0 AS cor0 ---- -5632 -5632 -5632 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 15 * col0 col0 FROM tab0 AS cor0 ---- 1335 360 525 onlyif mysql # use DIV operator for integer division query I rowsort label-5796 SELECT cor0.col0 DIV + col1 col0 FROM tab1 AS cor0 ---- 0 6 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5796 SELECT cor0.col0 / + col1 col0 FROM tab1 AS cor0 ---- 0 6 6 query I rowsort SELECT + + ( - col0 ) * + col2 AS col0 FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT + + ( col2 ) * - col1 * - 9 AS col1 FROM tab0 cor0 ---- 25542 67158 873 query I rowsort SELECT 90 * - col0 AS col0 FROM tab2 AS cor0 ---- -630 -7020 -7110 onlyif mysql # use DIV operator for integer division query I rowsort label-5800 SELECT tab0.col2 + + 26 DIV 44 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-5800 SELECT tab0.col2 + + 26 / 44 FROM tab0 ---- 1 33 82 query I rowsort SELECT DISTINCT + col0 * - cor0.col2 + 72 - 58 FROM tab2 AS cor0 ---- -175 -2014 -2988 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 * + col1 col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT 27 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 1a3cef5c33b8f87ffeded378fd207753 onlyif mysql # use DIV operator for integer division query I rowsort label-5804 SELECT ALL 49 + col0 - col0 DIV 54 AS col2 FROM tab1 cor0 ---- 112 128 52 skipif mysql # not compatible query I rowsort label-5804 SELECT ALL 49 + col0 - col0 / 54 AS col2 FROM tab1 cor0 ---- 112 128 52 query I rowsort SELECT ALL col1 + + cor0.col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL - cor0.col2 * - col1 - 40 FROM tab1 cor0 ---- 1208 1364 530 onlyif mysql # use DIV operator for integer division query I rowsort label-5807 SELECT col2 * col0 DIV col1 FROM tab1 ---- 364 590 6 skipif mysql # not compatible query I rowsort label-5807 SELECT col2 * col0 / col1 FROM tab1 ---- 364 590 6 query I rowsort SELECT + col2 * - col1 * + col0 + - col1 * tab0.col1 + + tab0.col2 AS col2 FROM tab0 ---- -12803 -672317 -75475 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( - col0 ) ---- query I rowsort SELECT DISTINCT + col1 * - col0 * + col0 FROM tab2 ---- -106097 -1519 -358956 query I rowsort SELECT ALL - 69 * col1 FROM tab0 AS cor0 ---- -5934 -6279 -6693 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5812 SELECT + col0 + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5812 SELECT + col0 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 29 * + col2 AS col2 FROM tab2 AS cor0 ---- 1102 754 783 query I rowsort SELECT - col1 * - col0 + col0 AS col1 FROM tab1 ---- 1120 704 81 query I rowsort SELECT DISTINCT - 71 + col0 * + 19 FROM tab0 ---- 1620 385 594 query I rowsort SELECT DISTINCT col0 * col2 + - tab1.col1 AS col0 FROM tab1 ---- 136 3638 7667 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5817 SELECT 63 * - col2 + + CAST( - col1 AS SIGNED ) FROM tab1 ---- -3428 -3601 -6061 skipif mysql # not compatible query I rowsort label-5817 SELECT 63 * - col2 + + CAST ( - col1 AS INTEGER ) FROM tab1 ---- -3428 -3601 -6061 query I rowsort SELECT + col1 - col2 * col1 AS col2 FROM tab2 ---- -1475 -629 -806 query I rowsort SELECT - col1 * + ( 97 ) AS col0 FROM tab1 AS cor0 ---- -1261 -2522 -970 onlyif mysql # use DIV operator for integer division query I rowsort label-5820 SELECT ALL + col2 * col1 + - col1 DIV + col0 FROM tab1 ---- 1248 1396 570 skipif mysql # not compatible query I rowsort label-5820 SELECT ALL + col2 * col1 + - col1 / + col0 FROM tab1 ---- 1248 1396 570 query I rowsort SELECT cor0.col1 * - col2 + - cor0.col0 * cor0.col1 FROM tab0 AS cor0 ---- -15561 -3492 -4902 query I rowsort SELECT + col1 * ( col2 * cor0.col0 + col0 * col1 ) AS col0 FROM tab2 cor0 ---- 12586 391170 73865 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5823 SELECT ALL - CAST( 73 AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc skipif mysql # not compatible query I rowsort label-5823 SELECT ALL - CAST ( 73 AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc onlyif mysql # use DIV operator for integer division query I rowsort label-5824 SELECT DISTINCT - ( 4 ) DIV cor1.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- -1 0 skipif mysql # not compatible query I rowsort label-5824 SELECT DISTINCT - ( 4 ) / cor1.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- -1 0 query I rowsort SELECT ALL - tab2.col0 * ( tab2.col1 ) FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT ALL - cor0.col0 * - ( col2 + + col0 * 26 ) AS col2 FROM tab1 AS cor0 ---- 110144 174080 396 query I rowsort SELECT cor0.col0 + col2 * + col1 FROM tab2 cor0 ---- 1612 725 844 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 29 col1 FROM tab0, tab0 cor0 ---- 9 values hashing to 0cc9ddad93fc783055518ae4b6be054b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5829 SELECT col2 * - CAST( 70 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0 ---- -3726 -3933 -6624 skipif mysql # not compatible query I rowsort label-5829 SELECT col2 * - CAST ( 70 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0 ---- -3726 -3933 -6624 query I rowsort SELECT ALL + col2 + + 41 FROM tab1 ---- 137 95 98 query I rowsort SELECT DISTINCT - cor1.col1 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1 ---- -17 -31 -59 query I rowsort SELECT ALL col1 + col0 + col1 * + col2 AS col2 FROM tab1 ---- 1341 1433 644 query I rowsort SELECT DISTINCT - + 28 * 42 * col1 + - ( + 91 ) + col1 FROM tab1 AS cor0 ---- -11841 -15366 -30641 query I rowsort SELECT DISTINCT - col2 * col2 * + col2 FROM tab0 AS cor0 ---- -1 -35937 -551368 query I rowsort SELECT ALL col2 + + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL col2 * ( col2 * - col1 ) AS col2 FROM tab1 AS cor0 ---- -119808 -32490 -75816 query I rowsort SELECT - 90 * - 99 * - cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to b151c680653fd7bf3d4d8301d00fbabb query I rowsort SELECT - 79 + col0 * - ( col1 + + col1 ) FROM tab0 AS cor0 ---- -16277 -4207 -6869 query I rowsort SELECT DISTINCT + - col0 + cor0.col2 AS col0 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT DISTINCT + - 24 FROM tab0 AS cor0 ---- -24 query I rowsort SELECT - + 34 * + col0 + col1 - + col2 FROM tab1 cor0 ---- -130 -2223 -2803 query I rowsort SELECT ALL - col2 * + tab0.col0 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT + cor0.col0 + + col1 * col1 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT - col1 * - col2 + 43 AS col2 FROM tab1 AS cor0 ---- 1291 1447 613 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5845 SELECT - col0 * - col2 * CAST( NULL AS SIGNED ) + ( col2 ) - col0 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5845 SELECT - col0 * - col2 * CAST ( NULL AS INTEGER ) + ( col2 ) - col0 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - 44 + col0 - + 95 FROM tab1 AS cor0 ---- -136 -59 -75 query I rowsort SELECT cor0.col1 + col2 * - 16 + col1 FROM tab0 AS cor0 ---- -1130 -356 178 query I rowsort SELECT + col2 * col0 * col2 + col1 AS col0 FROM tab0 AS cor0 ---- 132 26222 598527 query I rowsort SELECT ALL col1 + col2 + tab0.col1 FROM tab0 ---- 195 205 264 query I rowsort SELECT DISTINCT col1 * - col0 - + col0 AS col2 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT DISTINCT - - col1 * col1 + col1 * + col2 + col0 * + col0 FROM tab0 AS cor0 ---- 10731 10810 23664 query I rowsort SELECT ALL - + col2 + + cor0.col2 * col1 + - col0 AS col2 FROM tab0 cor0 ---- 2781 61 7291 query I rowsort SELECT ALL - cor0.col2 * col1 + + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -10464 -3819 -4320 query III rowsort SELECT * FROM tab1 WHERE col0 NOT IN ( - col0 * - tab1.col1 ) AND NOT + col0 / col1 >= ( + col1 * - col1 ) ---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 + - col2 + - col0 ) IN ( + col2 + - col2 + - col1 * col0 ) AND NOT col1 * col1 + tab1.col0 BETWEEN ( + col0 ) AND - col0 / - col0 - + col0 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT - tab1.col2 * - col2 * - col0 FROM tab1 ---- -207936 -737280 -8748 query I rowsort SELECT - ( cor0.col2 ) * - cor0.col1 - + cor0.col1 FROM tab2 cor0 ---- 1475 629 806 query I rowsort SELECT + - col1 + + cor0.col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT + + 92 - - col1 AS col0 FROM tab2 cor0 ---- 109 123 151 query I rowsort SELECT + - col0 + + col1 * + col2 AS col1 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT 27 * cor0.col2 * col1 + - col0 AS col1 FROM tab2 cor0 ---- 17363 22592 41340 query I rowsort SELECT + col0 * col1 + - col2 AS col1 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT cor0.col0 * cor0.col0 + col2 * + col2 + - cor0.col1 FROM tab2 AS cor0 ---- 6701 747 7668 onlyif mysql # use DIV operator for integer division query I rowsort label-5864 SELECT tab0.col1 DIV + col0 + col1 * - col0 AS col0 FROM tab0 ---- -2061 -3393 -8098 skipif mysql # not compatible query I rowsort label-5864 SELECT tab0.col1 / + col0 + col1 * - col0 AS col0 FROM tab0 ---- -2061 -3393 -8098 query I rowsort SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT - col1 * col0 >= col2 ---- 10 13 26 query I rowsort SELECT - col2 + - col1 * - col2 + col1 AS col0 FROM tab0 ---- 193 2891 7471 query I rowsort SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + col1 * col1 < + col0 ---- -7 -78 -79 query I rowsort SELECT ALL + tab1.col1 + col2 + col0 AS col1 FROM tab1 ---- 131 189 83 query I rowsort SELECT col1 + col2 + - col1 AS col1 FROM tab2 ---- 26 27 38 query I rowsort SELECT tab1.col1 + - col2 AS col2 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT ALL - col2 * col2 * col0 FROM tab2 ---- -114076 -5103 -52728 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * col2 col2 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT ALL + col1 * + col2 AS col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL + tab0.col1 * col0 AS col1 FROM tab0 ---- 2064 3395 8099 query III rowsort SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - col1 ) AND ( NULL ) ---- query I rowsort SELECT + col2 * - col0 + col1 * - col2 + col1 * + col2 * col2 AS col0 FROM tab1 ---- 110880 28272 74250 onlyif mysql # use DIV operator for integer division query I rowsort label-5877 SELECT DISTINCT + col2 DIV + col0 + + tab1.col2 + col2 AS col2 FROM tab1 ---- 114 126 193 skipif mysql # not compatible query I rowsort label-5877 SELECT DISTINCT + col2 / + col0 + + tab1.col2 + col2 AS col2 FROM tab1 ---- 114 126 193 query I rowsort SELECT ALL - col1 * - col2 * - col1 AS col0 FROM tab2 ---- -10982 -25947 -90506 query I rowsort SELECT col0 * col0 * + col1 AS col2 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT + tab1.col0 * col0 * col1 FROM tab1 ---- 234 40960 83200 onlyif mysql # use DIV operator for integer division query I rowsort label-5881 SELECT ALL + col2 DIV col1 + - tab0.col0 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-5881 SELECT ALL + col2 / col1 + - tab0.col0 FROM tab0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-5882 SELECT DISTINCT - col2 DIV col0 + + col1 FROM tab0 ---- 85 91 97 skipif mysql # not compatible query I rowsort label-5882 SELECT DISTINCT - col2 / col0 + + col1 FROM tab0 ---- 85 91 97 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col0 + - col0 AND col2 + col0 * col0 * - col0 ---- query I rowsort SELECT + col1 * tab1.col0 * - col2 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT ALL + col0 - + col0 * tab0.col1 FROM tab0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT + tab2.col1 FROM tab2 WHERE NULL NOT IN ( col0 ) ---- query I rowsort SELECT col0 FROM tab2 WHERE col2 * + col0 = ( NULL ) ---- query I rowsort SELECT DISTINCT col2 + - col0 * col2 FROM tab2 ---- -162 -2002 -2964 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT - col2 + + col2 <= NULL ---- onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5890 SELECT - CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5890 SELECT - CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - col0 * + cor0.col1 * col2 + + col0 AS col1 FROM tab2 AS cor0 ---- -119574 -50955 -5852 query I rowsort SELECT ALL col0 + + 86 * col0 FROM tab0 ---- 2088 3045 7743 query I rowsort SELECT DISTINCT + 60 + 80 AS col1 FROM tab1 ---- 140 query I rowsort SELECT DISTINCT - col2 * + ( + col0 ) FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT + ( 83 ) FROM tab2 ---- 83 83 83 query I rowsort SELECT DISTINCT ( + col2 ) * col2 AS col1 FROM tab2 ---- 1444 676 729 query I rowsort SELECT DISTINCT + col1 + col1 * + col1 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT - + col1 * col1 * 33 AS col0 FROM tab1 cor0 ---- -22308 -3300 -5577 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5899 SELECT cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5899 SELECT cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + col2 * + col0 + col0 AS col1 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT DISTINCT + ( col1 ) * + col0 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + + col0 * + 62 * + col0 col1 FROM tab2 AS cor0 ---- 3065 377234 386980 query I rowsort SELECT - col2 * col0 * + col1 AS col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT + cor0.col1 + col2 * - 39 AS col2 FROM tab0 cor0 ---- -1201 -3107 58 query I rowsort SELECT DISTINCT - tab2.col1 + col1 * + col0 FROM tab2 ---- 1326 186 4543 query I rowsort SELECT DISTINCT 50 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- 50 onlyif mysql # use DIV operator for integer division query I rowsort label-5907 SELECT DISTINCT + col1 * - 31 + col0 * col0 DIV + cor0.col1 FROM tab0 AS cor0 ---- -2660 -2734 -2995 skipif mysql # not compatible query I rowsort label-5907 SELECT DISTINCT + col1 * - 31 + col0 * col0 / + cor0.col1 FROM tab0 AS cor0 ---- -2660 -2734 -2995 query I rowsort SELECT DISTINCT + col2 * col2 + + ( col2 ) FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT + col1 + - 90 FROM tab0 AS cor0 ---- -4 1 7 onlyif mysql # use DIV operator for integer division query I rowsort label-5910 SELECT DISTINCT col0 + - 98 DIV col1 FROM tab2 AS cor0 ---- 4 74 77 skipif mysql # not compatible query I rowsort label-5910 SELECT DISTINCT col0 + - 98 / col1 FROM tab2 AS cor0 ---- 4 74 77 query I rowsort SELECT + col0 * - 35 + 65 - col0 AS col2 FROM tab1 AS cor0 ---- -2239 -2815 -43 query I rowsort SELECT ALL - col0 * + 55 FROM tab2 cor0 ---- -385 -4290 -4345 onlyif mysql # use DIV operator for integer division query I rowsort label-5913 SELECT DISTINCT + + cor0.col1 + + col2 DIV + col0 AS col0 FROM tab1 AS cor0 ---- 10 14 44 skipif mysql # not compatible query I rowsort label-5913 SELECT DISTINCT + + cor0.col1 + + col2 / + col0 AS col0 FROM tab1 AS cor0 ---- 10 14 44 query I rowsort SELECT + + col1 - + col0 * - 71 AS col0 FROM tab0 AS cor0 ---- 1790 2582 6410 query I rowsort SELECT DISTINCT 6 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- 6 query I rowsort SELECT + 83 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 0 - col0 col1 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT col1 + 92 AS col0 FROM tab1 AS cor0 ---- 102 105 118 query I rowsort SELECT - - col1 + + col0 * col2 FROM tab1 AS cor0 ---- 188 3658 7693 skipif mysql # not compatible query I rowsort SELECT DISTINCT + - CAST ( + col2 AS REAL ) * col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + 55 col1 FROM tab1 cor0 ---- -25 -9 52 query I rowsort SELECT + ( col2 ) + + col1 AS col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT 20 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 20 query I rowsort SELECT DISTINCT 49 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab1 cor3 ---- 49 onlyif mysql # use DIV operator for integer division query I rowsort label-5925 SELECT - + col2 DIV 30 FROM tab2 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-5925 SELECT - + col2 / 30 FROM tab2 AS cor0 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5926 SELECT - col0 - + CAST( NULL AS DECIMAL ) / tab2.col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5926 SELECT - col0 - + CAST ( NULL AS REAL ) / tab2.col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col2 * - 39 + col2 * col1 AS col2 FROM tab1 AS cor0 ---- -1653 -2496 -702 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5928 SELECT - - CAST( NULL AS SIGNED ) + + col2 * + col1 / col0 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5928 SELECT - - CAST ( NULL AS INTEGER ) + + col2 * + col1 / col0 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 + 34 - - col2 * ( + col1 ) * col1 FROM tab1 AS cor0 ---- 16338 36541 5798 query I rowsort SELECT 29 * col0 - + col0 FROM tab2 AS cor0 ---- 196 2184 2212 query I rowsort SELECT - col0 * + cor0.col2 * col2 - - col2 FROM tab0 AS cor0 ---- -26103 -34 -598354 query I rowsort SELECT + 54 * - col0 + - col0 FROM tab0 cor0 ---- -1320 -1925 -4895 query I rowsort SELECT + cor0.col2 * + col0 + - col1 AS col1 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT ( - col2 ) + cor0.col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - - col2 + col2 * col2 AS col2 FROM tab1 AS cor0 ---- 2970 3306 9312 onlyif mysql # use DIV operator for integer division query I rowsort label-5936 SELECT col0 * cor0.col0 DIV cor0.col1 FROM tab1 cor0 ---- 0 409 492 skipif mysql # not compatible query I rowsort label-5936 SELECT col0 * cor0.col0 / cor0.col1 FROM tab1 cor0 ---- 0 409 492 query I rowsort SELECT ALL + - ( - col2 ) + ( - col1 ) AS col0 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT ( + cor0.col2 ) * - 94 + - col0 AS col1 FROM tab1 AS cor0 ---- -5079 -5422 -9104 query I rowsort SELECT ALL 70 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 col2 FROM tab0, tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL + col0 + + ( tab1.col1 ) FROM tab1 ---- 29 74 93 query I rowsort SELECT DISTINCT + col0 * - tab2.col0 + - col1 + - tab2.col2 * col2 * 79 AS col1 FROM tab2 ---- -120334 -57671 -59547 query I rowsort SELECT ALL tab0.col1 + + col2 * + 24 FROM tab0 ---- 121 2059 878 query I rowsort SELECT ALL col0 + ( + col1 ) FROM tab1 ---- 29 74 93 query I rowsort SELECT ALL - col2 + 17 FROM tab2 cor0 ---- -10 -21 -9 query I rowsort SELECT - + 35 + col1 + col2 AS col0 FROM tab1 AS cor0 ---- 32 45 74 query I rowsort SELECT + ( + col1 ) * - 28 FROM tab2 AS cor0 ---- -1652 -476 -868 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5948 SELECT + col2 * col0 + CAST( col2 AS SIGNED ) + col1 FROM tab2 AS cor0 ---- 2113 247 3057 skipif mysql # not compatible query I rowsort label-5948 SELECT + col2 * col0 + CAST ( col2 AS INTEGER ) + col1 FROM tab2 AS cor0 ---- 2113 247 3057 query I rowsort SELECT + col2 * col1 + - cor0.col0 + col1 AS col0 FROM tab0 AS cor0 ---- 159 2900 7464 query I rowsort SELECT DISTINCT - 59 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- -59 query I rowsort SELECT - col2 + 76 AS col2 FROM tab2 AS cor0 ---- 38 49 50 query I rowsort SELECT col2 - ( col0 * - col2 ) FROM tab2 AS cor0 ---- 2054 216 3040 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5953 SELECT - + col1 * col1 + ( - col0 ) + + CAST( - cor0.col0 + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -7420 -8370 -9444 skipif mysql # not compatible query I rowsort label-5953 SELECT - + col1 * col1 + ( - col0 ) + + CAST ( - cor0.col0 + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -7420 -8370 -9444 query I rowsort SELECT + 81 - - ( - col1 + ( - col0 ) ) FROM tab1 ---- -12 52 7 query I rowsort SELECT + 3 * col0 - col0 FROM tab0 ---- 178 48 70 query I rowsort SELECT ( 38 ) + - col1 AS col2 FROM tab1 AS cor0 ---- 12 25 28 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5957 SELECT ALL + - CAST( NULL AS SIGNED ) + ( col2 ) 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-5957 SELECT ALL + - CAST ( NULL AS INTEGER ) + ( col2 ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 68 + - col1 AS col2 FROM tab2 AS cor0 ---- 37 51 9 query I rowsort SELECT ALL - + col2 + cor0.col0 * col2 AS col0 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT + + 33 * - col1 FROM tab1 cor0 ---- -330 -429 -858 onlyif mysql # use DIV operator for integer division query I rowsort label-5961 SELECT ALL + 86 DIV cor0.col1 AS col0 FROM tab1 AS cor0 ---- 3 6 8 skipif mysql # not compatible query I rowsort label-5961 SELECT ALL + 86 / cor0.col1 AS col0 FROM tab1 AS cor0 ---- 3 6 8 onlyif mysql # use DIV operator for integer division query I rowsort label-5962 SELECT ALL ( + col1 + col2 ) DIV + col0 FROM tab1 ---- 1 1 26 skipif mysql # not compatible query I rowsort label-5962 SELECT ALL ( + col1 + col2 ) / + col0 FROM tab1 ---- 1 1 26 onlyif mysql # use DIV operator for integer division query I rowsort label-5963 SELECT DISTINCT col2 DIV col2 + + 21 FROM tab1 AS cor0 ---- 22 skipif mysql # not compatible query I rowsort label-5963 SELECT DISTINCT col2 / col2 + + 21 FROM tab1 AS cor0 ---- 22 onlyif mysql # use DIV operator for integer division query I rowsort label-5964 SELECT 73 DIV + cor0.col0 FROM tab1 cor0 ---- 0 1 24 skipif mysql # not compatible query I rowsort label-5964 SELECT 73 / + cor0.col0 FROM tab1 cor0 ---- 0 1 24 query I rowsort SELECT DISTINCT + col1 + - col0 * - cor0.col1 FROM tab0 cor0 ---- 2150 3492 8190 query I rowsort SELECT + 87 * col0 FROM tab0 AS cor0 ---- 2088 3045 7743 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5967 SELECT DISTINCT - + col0 * + col2 + + col0 * + col0 + + col2 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5967 SELECT DISTINCT - + col0 * + col2 + + col0 * + col0 + + col2 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ( - 24 ) - tab0.col2 FROM tab0 ---- -106 -25 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5969 SELECT ALL - + cor0.col0 * col1 + + CAST( col1 AS SIGNED ) + col1 * - col2 AS col0 FROM tab0 AS cor0 ---- -15470 -3395 -4816 skipif mysql # not compatible query I rowsort label-5969 SELECT ALL - + cor0.col0 * col1 + + CAST ( col1 AS INTEGER ) + col1 * - col2 AS col0 FROM tab0 AS cor0 ---- -15470 -3395 -4816 query I rowsort SELECT 43 * - col2 + 89 FROM tab0 ---- -1330 -3437 46 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab1.col2 + + col0 col2 FROM tab1 ---- -16 -51 7 onlyif mysql # use DIV operator for integer division query I rowsort label-5972 SELECT DISTINCT + - col1 DIV col0 AS col2 FROM tab2 AS cor0 ---- -4 0 skipif mysql # not compatible query I rowsort label-5972 SELECT DISTINCT + - col1 / col0 AS col2 FROM tab2 AS cor0 ---- -4 0 query I rowsort SELECT ALL + col0 + ( + col2 ) FROM tab1 AS cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-5974 SELECT + col2 DIV ( col0 ) FROM tab1 cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-5974 SELECT + col2 / ( col0 ) FROM tab1 cor0 ---- 0 1 18 query I rowsort SELECT 5 + + col2 FROM tab0 ---- 38 6 87 query I rowsort SELECT - - 71 * + cor0.col0 FROM tab2 AS cor0 ---- 497 5538 5609 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 21 - + col1 col1 FROM tab0 AS cor0 ---- -65 -70 -76 query I rowsort SELECT ALL 77 * 56 FROM tab0 AS cor0 ---- 4312 4312 4312 query I rowsort SELECT DISTINCT + col2 + ( col2 ) AS col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT DISTINCT - 23 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1357 -391 -713 query I rowsort SELECT ALL + 24 + col2 * col2 FROM tab2 AS cor0 ---- 1468 700 753 query I rowsort SELECT ALL 96 + + 25 AS col1 FROM tab2 AS cor0 ---- 121 121 121 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5983 SELECT DISTINCT - col0 + col1 * col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5983 SELECT DISTINCT - col0 + col1 * col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5984 SELECT ALL col2 + cor0.col2 * + cor0.col0 - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5984 SELECT ALL col2 + cor0.col2 * + cor0.col0 - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5985 SELECT ALL + col2 + - ( col1 ) DIV 23 FROM tab0 cor0 ---- -3 30 79 skipif mysql # not compatible query I rowsort label-5985 SELECT ALL + col2 + - ( col1 ) / 23 FROM tab0 cor0 ---- -3 30 79 query I rowsort SELECT + + col2 * + ( col1 * - col2 ) + + col2 FROM tab0 AS cor0 ---- -611802 -93621 -96 query I rowsort SELECT DISTINCT + ( cor0.col0 ) + + col2 * - ( - col0 * + col0 ) AS col2 FROM tab2 AS cor0 ---- 1330 158262 237237 query I rowsort SELECT - - ( + 7 ) AS col0 FROM tab0 AS cor0 ---- 7 7 7 query I rowsort SELECT ALL ( + ( - tab0.col2 ) + + col2 * + col1 ) AS col0 FROM tab0 ---- 2805 7380 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5990 SELECT DISTINCT - col2 * + ( - col1 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5990 SELECT DISTINCT - col2 * + ( - col1 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + + col0 * - 64 AS col2 FROM tab2 AS cor0 ---- -448 -4992 -5056 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 32 col2 FROM tab1 AS cor0 ---- 32 32 32 query I rowsort SELECT ALL + + ( col1 ) + col0 * + cor0.col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT DISTINCT 96 * cor0.col0 AS col0 FROM tab0, tab2 AS cor0 ---- 672 7488 7584 query I rowsort SELECT ALL + + col1 * + 65 + 56 + + col2 AS col1 FROM tab0 AS cor0 ---- 5679 6053 6362 onlyif mysql # use DIV operator for integer division query I rowsort label-5996 SELECT ALL - col0 + col0 DIV - 58 AS col1 FROM tab0 ---- -24 -35 -90 skipif mysql # not compatible query I rowsort label-5996 SELECT ALL - col0 + col0 / - 58 AS col1 FROM tab0 ---- -24 -35 -90 query I rowsort SELECT ALL col0 * - col1 + + 96 * 60 FROM tab1 ---- 4720 5120 5682 query I rowsort SELECT + col2 + - col0 * + col0 AS col0 FROM tab2 ---- -22 -6058 -6203 query I rowsort SELECT ALL - 72 + 10 FROM tab0, tab1 AS cor0 ---- 9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6000 SELECT + tab1.col0 + CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab1 ---- 2919 3313 9296 skipif mysql # not compatible query I rowsort label-6000 SELECT + tab1.col0 + CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab1 ---- 2919 3313 9296 onlyif mysql # use DIV operator for integer division query I rowsort label-6001 SELECT + + col2 DIV - col1 + + 10 * col0 AS col0 FROM tab2 AS cor0 ---- 70 780 788 skipif mysql # not compatible query I rowsort label-6001 SELECT + + col2 / - col1 + + 10 * col0 AS col0 FROM tab2 AS cor0 ---- 70 780 788 onlyif mysql # use DIV operator for integer division query I rowsort label-6002 SELECT DISTINCT - cor0.col2 * - col1 * + cor0.col1 + col0 DIV - col0 AS col1 FROM tab1 AS cor0 ---- 16223 36503 5699 skipif mysql # not compatible query I rowsort label-6002 SELECT DISTINCT - cor0.col2 * - col1 * + cor0.col1 + col0 / - col0 AS col1 FROM tab1 AS cor0 ---- 16223 36503 5699 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 + ( col1 ) col2 FROM tab0 AS cor0 ---- 2 62 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6004 SELECT ALL col0 * CAST( NULL AS SIGNED ) * - col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6004 SELECT ALL col0 * CAST ( NULL AS INTEGER ) * - col1 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 + 88 * col0 col0 FROM tab2 AS cor0 ---- 647 6923 6969 query I rowsort SELECT DISTINCT + + 90 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1 ---- 90 query I rowsort SELECT - 81 * + ( col2 ) FROM tab1 AS cor0 ---- -4374 -4617 -7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * - 80 + col1 * col0 col1 FROM tab2 cor0 ---- -1638 -343 -4977 query I rowsort SELECT DISTINCT + + col0 * cor0.col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT DISTINCT + col0 + - col0 * col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT ALL col2 + - col2 * 43 FROM tab1 AS cor0 ---- -2268 -2394 -4032 onlyif mysql # use DIV operator for integer division query I rowsort label-6013 SELECT - cor0.col1 + + col2 DIV col1 col2 FROM tab2 AS cor0 ---- -15 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6013 SELECT - cor0.col1 + + col2 / col1 col2 FROM tab2 AS cor0 ---- -15 -31 -59 query I rowsort SELECT ALL + col2 * + col0 + + tab2.col2 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT ALL 67 + col2 FROM tab1 AS cor0 ---- 121 124 163 query I rowsort SELECT ALL - ( 22 ) + cor0.col0 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 769404e1a65cab1647b1156a13500eea query I rowsort SELECT ( + col0 ) - + 14 * - col1 FROM tab1 AS cor0 ---- 204 262 367 query I rowsort SELECT ALL + cor0.col0 * col0 * col2 AS col0 FROM tab2 cor0 ---- 1323 158184 237158 query I rowsort SELECT + + col0 * col1 + col2 + + col1 AS col2 FROM tab2 AS cor0 ---- 1398 275 4687 query I rowsort SELECT DISTINCT + 3 + col1 * col0 * - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -177501 -329312 -737006 query I rowsort SELECT ALL + - col0 + + col0 * + col2 FROM tab2 AS cor0 ---- 182 1950 2923 onlyif mysql # use DIV operator for integer division query I rowsort label-6022 SELECT ALL - - col1 DIV + cor0.col0 AS col0 FROM tab0 cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-6022 SELECT ALL - - col1 / + cor0.col0 AS col0 FROM tab0 cor0 ---- 1 2 3 query IIIIII rowsort SELECT * FROM tab0, tab2 AS cor0 WHERE ( NULL ) <= ( NULL ) ---- query I rowsort SELECT + - col1 + 13 AS col1 FROM tab2 AS cor0 ---- -18 -4 -46 query I rowsort SELECT + col2 + - 22 + - 31 * - col1 AS col2 FROM tab1 AS cor0 ---- 345 477 838 query I rowsort SELECT + col1 + 72 FROM tab2 AS cor0 ---- 103 131 89 onlyif mysql # use DIV operator for integer division query I rowsort label-6027 SELECT DISTINCT col1 + col0 DIV - col1 AS col0 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-6027 SELECT DISTINCT col1 + col0 / - col1 AS col0 FROM tab0 ---- 86 91 97 query I rowsort SELECT - - col0 - - 23 FROM tab0 AS cor0 ---- 112 47 58 query I rowsort SELECT + col0 * cor0.col1 + col0 + col2 FROM tab1 cor0 ---- 1216 135 761 query I rowsort SELECT col2 * - col2 * - col2 + col0 FROM tab0 AS cor0 ---- 35961 36 551457 query I rowsort SELECT DISTINCT 42 AS col2 FROM tab1, tab0 AS cor0 ---- 42 query I rowsort SELECT DISTINCT col0 + col0 * - col0 AS col0 FROM tab2 AS cor0 ---- -42 -6006 -6162 query I rowsort SELECT DISTINCT + + col0 * ( + col0 + 9 ) FROM tab0 cor0 ---- 1540 792 8722 onlyif mysql # use DIV operator for integer division query I rowsort label-6034 SELECT ALL - 9 + + col1 DIV - col1 + 77 * 65 FROM tab0 AS cor0 ---- 4995 4995 4995 skipif mysql # not compatible query I rowsort label-6034 SELECT ALL - 9 + + col1 / - col1 + 77 * 65 FROM tab0 AS cor0 ---- 4995 4995 4995 query I rowsort SELECT DISTINCT cor1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 7 78 79 query I rowsort SELECT cor0.col0 * + col0 * col0 + - ( + col0 ) FROM tab1 cor0 ---- 24 262080 511920 query I rowsort SELECT 4 + - 94 FROM tab2 ---- -90 -90 -90 query I rowsort SELECT ALL 53 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to fede6033dee346dbd272085c05724fda query I rowsort SELECT + 59 + - col2 AS col2 FROM tab0 ---- -23 26 58 onlyif mysql # use DIV operator for integer division query I rowsort label-6040 SELECT DISTINCT col1 DIV col2 - + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -84 -90 0 skipif mysql # not compatible query I rowsort label-6040 SELECT DISTINCT col1 / col2 - + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -84 -90 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6041 SELECT ALL + CAST( NULL AS SIGNED ) + ( + col1 ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6041 SELECT ALL + CAST ( NULL AS INTEGER ) + ( + col1 ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 + 63 * - col0 AS col2 FROM tab0 AS cor0 ---- -1536 -2240 -5696 query I rowsort SELECT + 29 * cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 54bc59094b2661807c1d12f560e4953b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 col1 FROM tab1, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT DISTINCT + col0 * ( col2 ) - + col2 * col1 AS col2 FROM tab1 ---- -1242 3078 6432 onlyif mysql # use DIV operator for integer division query I rowsort label-6046 SELECT - 55 DIV col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6046 SELECT - 55 / col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT col1 + col2 * col1 - col1 AS col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT - 44 * col2 FROM tab2 ---- -1144 -1188 -1672 onlyif mysql # use DIV operator for integer division query I rowsort label-6049 SELECT - ( + 33 ) DIV tab1.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7b7165043c920f0f38c46f36c0f8d696 skipif mysql # not compatible query I rowsort label-6049 SELECT - ( + 33 ) / tab1.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7b7165043c920f0f38c46f36c0f8d696 query I rowsort SELECT col1 * col1 * col0 AS col1 FROM tab2 ---- 22831 271518 6727 query I rowsort SELECT DISTINCT + 82 * - col0 * + ( 68 ) FROM tab2 ---- -39032 -434928 -440504 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6052 SELECT ALL + col0 * - col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6052 SELECT ALL + col0 * - col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * + col1 + 86 col2 FROM tab0 cor0 ---- 2150 3481 8185 query I rowsort SELECT - cor0.col0 AS col2 FROM tab1, tab0, tab0 cor0 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT ( + cor0.col2 ) + ( + 73 ) AS col1 FROM tab0, tab2, tab1 cor0 ---- 27 values hashing to e5b3cf1f2f9e2440155cc3538087e933 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6056 SELECT ALL - col2 * - CAST( 43 AS SIGNED ) FROM tab0 AS cor0 ---- 1419 3526 43 skipif mysql # not compatible query I rowsort label-6056 SELECT ALL - col2 * - CAST ( 43 AS INTEGER ) FROM tab0 AS cor0 ---- 1419 3526 43 query I rowsort SELECT - + cor0.col0 + - cor0.col2 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT cor0.col2 + 54 * col2 AS col1 FROM tab0 AS cor0 ---- 1815 4510 55 onlyif mysql # use DIV operator for integer division query I rowsort label-6059 SELECT DISTINCT 54 DIV + tab1.col2 AS col1 FROM tab1 ---- 0 1 skipif mysql # not compatible query I rowsort label-6059 SELECT DISTINCT 54 / + tab1.col2 AS col1 FROM tab1 ---- 0 1 query I rowsort SELECT + - cor0.col0 * 81 FROM tab1 cor0 ---- -243 -5184 -6480 query I rowsort SELECT - cor0.col0 * cor0.col0 AS col0 FROM tab1 cor0 ---- -4096 -6400 -9 query I rowsort SELECT + tab2.col0 * - col1 + + col0 * col1 AS col1 FROM tab2 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + 78 + + col1 col2 FROM tab1 AS cor0 ---- 145 158 187 query I rowsort SELECT cor0.col0 + 70 * col2 FROM tab0 AS cor0 ---- 105 2334 5829 query I rowsort SELECT col1 * + cor0.col1 * + 77 AS col1 FROM tab0 AS cor0 ---- 569492 637637 724493 query I rowsort SELECT + col0 + - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT ALL col1 + 2 AS col1 FROM tab0 AS cor0 ---- 88 93 99 query I rowsort SELECT ALL + col2 * + 20 + col0 * col0 + col1 * + col1 FROM tab2 AS cor0 ---- 10085 1550 7290 query I rowsort SELECT ALL cor0.col2 + cor0.col1 * 37 AS col2 FROM tab1 AS cor0 ---- 1016 427 577 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 23 col0 FROM tab2 AS cor0 ---- -23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col0 + - col1 col2 FROM tab0 AS cor0 ---- -2 -62 query I rowsort SELECT DISTINCT + - col1 * - col0 + col1 + - 72 AS col0 FROM tab2 cor0 ---- 1288 176 4589 query I rowsort SELECT + 18 * ( - col2 ) AS col1 FROM tab1 AS cor0 ---- -1026 -1728 -972 query I rowsort SELECT DISTINCT + ( cor0.col1 ) + - col1 * + col2 AS col0 FROM tab1 cor0 ---- -1235 -1378 -560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( col1 ) + - col2 col2 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-6076 SELECT - 87 DIV col2 AS col2 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-6076 SELECT - 87 / col2 AS col2 FROM tab1 AS cor0 ---- -1 -1 0 query I rowsort SELECT DISTINCT - + 21 * col0 FROM tab1 AS cor0 ---- -1344 -1680 -63 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6078 SELECT DISTINCT + - CAST( col2 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 skipif mysql # not compatible query I rowsort label-6078 SELECT DISTINCT + - CAST ( col2 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 37 * col0 col1 FROM tab0 AS cor0 ---- 1295 3293 888 query I rowsort SELECT DISTINCT - col2 * + 15 AS col0 FROM tab2 ---- -390 -405 -570 query I rowsort SELECT + ( + col1 ) * - col1 AS col2 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT - ( col2 ) * + col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( + col0 ) + - col0 col0 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT ALL + col0 + - 59 FROM tab1 ---- -56 21 5 query I rowsort SELECT DISTINCT - col0 - + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT ALL - + 49 AS col2 FROM tab0 AS cor0 ---- -49 -49 -49 onlyif mysql # use DIV operator for integer division query I rowsort label-6087 SELECT + cor0.col1 * col1 DIV + 61 + cor0.col0 FROM tab0 AS cor0 ---- 145 189 224 skipif mysql # not compatible query I rowsort label-6087 SELECT + cor0.col1 * col1 / + 61 + cor0.col0 FROM tab0 AS cor0 ---- 145 189 224 query I rowsort SELECT ( cor0.col2 ) + + ( - col2 ) FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab2.col0 col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT - + 76 AS col0 FROM tab1, tab2, tab2 cor0 ---- 27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0 query I rowsort SELECT + 21 * + col2 * + col0 FROM tab1 ---- 161280 3402 76608 query I rowsort SELECT + ( - col0 ) * tab0.col0 AS col2 FROM tab0 ---- -1225 -576 -7921 query I rowsort SELECT + + col1 + col2 * + ( + col2 + - col0 ) * 97 FROM tab2 AS cor0 ---- -131085 -151109 52411 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 47 + col2 col2 FROM tab1 AS cor0 ---- 101 104 143 query I rowsort SELECT DISTINCT - col2 * - col2 * - cor0.col0 + - 76 + - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -146 -26236 -598601 query I rowsort SELECT DISTINCT + ( 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-6097 SELECT DISTINCT - col0 * + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6097 SELECT DISTINCT - col0 * + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL - + 75 + col1 FROM tab0 AS cor0 ---- 11 16 22 query I rowsort SELECT ALL - col1 * + col0 + 52 * - ( + col2 ) FROM tab0 ---- -12363 -3447 -3780 query I rowsort SELECT + col0 * + 5 FROM tab2 AS cor0 ---- 35 390 395 query I rowsort SELECT 78 + cor0.col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to c0ecde2813ad0e273a549ce14a2d3bbb query I rowsort SELECT + + col0 + + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + col1 * col1 + + col1 + - col1 FROM tab1 ---- 100 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-6104 SELECT + ( col2 ) DIV + ( - tab0.col1 ) + - col2 DIV - 66 AS col1 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-6104 SELECT + ( col2 ) / + ( - tab0.col1 ) + - col2 / - 66 AS col1 FROM tab0 ---- 0 0 1 query I rowsort SELECT - col0 * - col2 + tab1.col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT - + 77 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 3a24155cb91ceff1e67bb51c07b72107 query I rowsort SELECT DISTINCT + 42 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 42 query I rowsort SELECT - 22 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 647e567609c5ada1d3454d2102819bfe query I rowsort SELECT 35 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 cor2 ---- 81 values hashing to ca814400b6361c20866ff8fe01717430 query I rowsort SELECT DISTINCT + 60 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 138 139 67 query I rowsort SELECT ALL - cor0.col1 + - col1 * ( - col2 ) AS col2 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT + col2 * + 98 + + col2 AS col2 FROM tab2 AS cor0 ---- 2574 2673 3762 query I rowsort SELECT + col1 + col1 * col2 FROM tab2 cor0 ---- 1593 663 868 onlyif mysql # use DIV operator for integer division query I rowsort label-6114 SELECT - + cor0.col1 * ( col2 ) + col0 DIV col0 FROM tab2 AS cor0 ---- -1533 -645 -836 skipif mysql # not compatible query I rowsort label-6114 SELECT - + cor0.col1 * ( col2 ) + col0 / col0 FROM tab2 AS cor0 ---- -1533 -645 -836 query I rowsort SELECT col0 + - ( 18 ) FROM tab1 AS cor0 ---- -15 46 62 query I rowsort SELECT ALL + col0 * col2 * ( col2 ) + col0 AS col2 FROM tab1 ---- 208000 737360 8751 query I rowsort SELECT ALL 66 + + col2 * col2 AS col0 FROM tab2 ---- 1510 742 795 query I rowsort SELECT ALL + col0 + col0 * col0 + col2 AS col1 FROM tab2 ---- 6188 6358 83 query I rowsort SELECT - col2 * + tab2.col2 + + col0 + 37 AS col2 FROM tab2 ---- -1328 -561 -685 query III rowsort SELECT * FROM tab2 WHERE NOT - col2 <= col1 + + col2 * + col2 ---- query I rowsort SELECT - col1 * col0 + col0 + col1 FROM tab2 ---- -1247 -179 -4465 query I rowsort SELECT col2 / col2 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 ) ---- query I rowsort SELECT - col2 * col2 + + col0 + - tab1.col1 AS col0 FROM tab1 ---- -2939 -3195 -9149 query I rowsort SELECT DISTINCT + col0 + col0 * - col0 * col2 FROM tab0 ---- -1190 -18984 -649433 query I rowsort SELECT + col1 + + col0 * + col0 FROM tab0 ---- 1322 662 8012 query I rowsort SELECT DISTINCT tab1.col2 + + col2 AS col2 FROM tab1 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-6127 SELECT DISTINCT tab0.col2 DIV col2 + tab0.col1 AS col0 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-6127 SELECT DISTINCT tab0.col2 / col2 + tab0.col1 AS col0 FROM tab0 ---- 87 92 98 query I rowsort SELECT - col2 + - col1 * + col0 FROM tab1 ---- -1136 -132 -697 onlyif mysql # use DIV operator for integer division query I rowsort label-6129 SELECT ALL col0 DIV + col0 + + col1 AS col2 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-6129 SELECT ALL col0 / + col0 + + col1 AS col2 FROM tab0 ---- 87 92 98 query I rowsort SELECT DISTINCT - tab2.col2 * col1 AS col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT tab1.col0 * col0 + col1 * col0 FROM tab1 WHERE NOT + col0 * col0 NOT BETWEEN NULL AND ( NULL ) ---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= col1 + - col2 + - col1 * - col2 ---- query I rowsort SELECT + col2 AS col0 FROM tab1 WHERE NULL <> + col2 + col1 + col0 * - col2 ---- query I rowsort SELECT + col0 + - col2 + - col1 AS col1 FROM tab2 ---- -51 -7 24 query I rowsort SELECT ALL col0 * - col0 AS col1 FROM tab2 WHERE NOT NULL <= NULL ---- query I rowsort SELECT - col2 - + tab0.col0 AS col2 FROM tab0 ---- -171 -36 -57 query I rowsort SELECT ALL 27 AS col2 FROM tab2 cor0 ---- 27 27 27 query I rowsort SELECT 6 * + ( col0 + col2 ) FROM tab1 ---- 1056 342 726 query I rowsort SELECT ALL + 39 FROM tab2, tab2 cor0 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf query I rowsort SELECT - 56 * - col1 FROM tab2 AS cor0 ---- 1736 3304 952 query I rowsort SELECT - 96 * - cor0.col2 FROM tab1 AS cor0 ---- 5184 5472 9216 query I rowsort SELECT ALL + + col2 + 20 * 1 FROM tab1 AS cor0 ---- 116 74 77 query I rowsort SELECT col2 * - 71 + - col2 FROM tab2 cor0 ---- -1872 -1944 -2736 onlyif mysql # use DIV operator for integer division query I rowsort label-6144 SELECT + col0 + - 94 DIV - col0 col1 FROM tab1 cor0 ---- 34 65 81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6144 SELECT + col0 + - 94 / - col0 col1 FROM tab1 cor0 ---- 34 65 81 query I rowsort SELECT ALL - cor1.col0 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT ALL - cor0.col2 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT DISTINCT + ( col1 ) * col0 FROM tab0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 72 * cor0.col0 col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 6ea840cdf2b42247db0ed404945b7aa1 query I rowsort SELECT cor0.col2 * - 14 FROM tab2, tab1 AS cor0 ---- 9 values hashing to b36fbdc34cc5a1e2c6620b9dc4f71f19 query I rowsort SELECT + col1 * col1 + + ( col2 ) AS col2 FROM tab1 ---- 157 265 730 query I rowsort SELECT - col1 * - 18 AS col1 FROM tab0 cor0 ---- 1548 1638 1746 query I rowsort SELECT 97 * + 31 FROM tab1 AS cor0 ---- 3007 3007 3007 onlyif mysql # use DIV operator for integer division query I rowsort label-6153 SELECT + ( + col1 ) + - cor0.col0 DIV - col2 + col2 * - col2 FROM tab0 AS cor0 ---- -1003 -6632 131 skipif mysql # not compatible query I rowsort label-6153 SELECT + ( + col1 ) + - cor0.col0 / - col2 + col2 * - col2 FROM tab0 AS cor0 ---- -1003 -6632 131 query I rowsort SELECT ALL - + 2 FROM tab2 AS cor0 ---- -2 -2 -2 onlyif mysql # use DIV operator for integer division query I rowsort label-6155 SELECT + + col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-6155 SELECT + + col2 / - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-6156 SELECT ALL - col1 DIV col0 + - col2 AS col1 FROM tab2 AS cor0 ---- -26 -31 -38 skipif mysql # not compatible query I rowsort label-6156 SELECT ALL - col1 / col0 + - col2 AS col1 FROM tab2 AS cor0 ---- -26 -31 -38 query I rowsort SELECT ALL + - 21 + col0 * col2 * + cor0.col1 FROM tab1 cor0 ---- 36459 4191 99819 query I rowsort SELECT ALL + col1 * col0 * col1 + col1 * + cor0.col0 * - cor0.col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col2 * cor0.col0 + - col2 * - cor0.col2 FROM tab2 cor0 ---- -1352 -1558 540 query I rowsort SELECT ALL - 28 * col0 * col2 + col2 * + col2 * - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -10395 -109512 -198132 query I rowsort SELECT ALL + + col0 + col2 + col2 * - col2 AS col0 FROM tab1 AS cor0 ---- -2859 -3128 -9040 query I rowsort SELECT + 48 * col1 FROM tab2 cor0 ---- 1488 2832 816 onlyif mysql # use DIV operator for integer division query I rowsort label-6163 SELECT ALL + 96 DIV + col0 FROM tab1 ---- 1 1 32 skipif mysql # not compatible query I rowsort label-6163 SELECT ALL + 96 / + col0 FROM tab1 ---- 1 1 32 query I rowsort SELECT ALL - 45 * - col0 FROM tab2 ---- 315 3510 3555 query I rowsort SELECT DISTINCT col0 + col2 * col1 AS col0 FROM tab1 AS cor0 ---- 1328 1407 634 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 34 + col0 col0 FROM tab0 AS cor0 ---- 123 58 69 query I rowsort SELECT - 34 - - col1 FROM tab1 AS cor0 ---- -21 -24 -8 query I rowsort SELECT DISTINCT + - col2 - - cor0.col0 AS col0 FROM tab1 AS cor0 ---- -16 -51 7 onlyif mysql # use DIV operator for integer division query I rowsort label-6169 SELECT + col0 DIV - col0 + + col0 AS col2 FROM tab0 cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-6169 SELECT + col0 / - col0 + + col0 AS col2 FROM tab0 cor0 ---- 23 34 88 query I rowsort SELECT DISTINCT 53 AS col0 FROM tab0, tab0 AS cor0 ---- 53 query I rowsort SELECT ALL + + col1 * + col2 * + col2 + col1 FROM tab1 cor0 ---- 119821 32500 75842 query I rowsort SELECT cor0.col2 AS col0 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 25 col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 525a55d5ed224a62da65df36731881a7 query I rowsort SELECT ALL col1 + + tab0.col0 * col0 AS col2 FROM tab0 ---- 1322 662 8012 query I rowsort SELECT ALL + col0 * - 39 + col2 FROM tab1 ---- -2439 -3024 -63 onlyif mysql # use DIV operator for integer division query I rowsort label-6176 SELECT ALL + 12 DIV 91 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6176 SELECT ALL + 12 / 91 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT + col0 + ( col1 ) FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL + 11 + - col0 AS col0 FROM tab2 ---- -67 -68 4 query IIIIII rowsort SELECT * FROM tab0 cor0 CROSS JOIN tab2 WHERE NULL < ( NULL ) ---- query I rowsort SELECT DISTINCT col2 * + col0 * col2 + + col2 FROM tab0 ---- 26169 36 598518 query III rowsort SELECT * FROM tab1 WHERE ( + col2 ) NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT col0 + col1 * col2 * - cor0.col0 AS col1 FROM tab0 cor0 ---- -3360 -664029 -68088 query I rowsort SELECT col1 / - col2 - - col2 / - col2 FROM tab2 WHERE ( NULL ) NOT IN ( col0 * col0 * col1 + + col0 * col2 ) ---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col1 = ( NULL ) ---- query I rowsort SELECT ALL col1 * col1 * col1 FROM tab1 AS cor0 ---- 1000 17576 2197 onlyif mysql # use DIV operator for integer division query I rowsort label-6186 SELECT + cor0.col1 * - col2 + cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0 ---- -1241 -1402 -565 skipif mysql # not compatible query I rowsort label-6186 SELECT + cor0.col1 * - col2 + cor0.col2 / + col1 AS col2 FROM tab1 AS cor0 ---- -1241 -1402 -565 query I rowsort SELECT DISTINCT + cor0.col0 + col0 - col1 AS col2 FROM tab2 cor0 ---- -17 141 97 query I rowsort SELECT cor0.col0 * + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT DISTINCT cor0.col1 - col0 FROM tab2 cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-6190 SELECT - col0 DIV col2 + col0 FROM tab0 cor0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-6190 SELECT - col0 / col2 + col0 FROM tab0 cor0 ---- 0 24 88 query I rowsort SELECT col2 * - col2 - col1 FROM tab2 ---- -1461 -735 -760 query I rowsort SELECT DISTINCT col2 * - col0 * tab2.col1 AS col0 FROM tab2 ---- -119652 -51034 -5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + tab2.col2 * + col1 + - tab2.col0 col0 FROM tab2 ---- 22592 24469 39806 query I rowsort SELECT col2 + col2 * + tab0.col1 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT - col0 + + col2 * col2 AS col2 FROM tab0 AS cor0 ---- -34 1065 6635 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 * - col2 col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-6197 SELECT ALL + col1 + col1 DIV - col2 AS col1 FROM tab1 cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-6197 SELECT ALL + col1 + col1 / - col2 AS col1 FROM tab1 cor0 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-6198 SELECT DISTINCT - col1 + + col1 + col2 DIV + col2 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-6198 SELECT DISTINCT - col1 + + col1 + col2 / + col2 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT ALL + col2 - + cor0.col2 * col2 AS col1 FROM tab0 AS cor0 ---- -1056 -6642 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6200 SELECT ALL - col2 DIV col1 - col0 FROM tab2 cor0 ---- -7 -78 -81 skipif mysql # not compatible query I rowsort label-6200 SELECT ALL - col2 / col1 - col0 FROM tab2 cor0 ---- -7 -78 -81 query I rowsort SELECT tab0.col0 * + col1 * + col0 + col0 + - col0 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT ALL - tab1.col2 + col2 * + col1 * + col2 - tab1.col0 FROM tab1 ---- 119632 32369 75759 query I rowsort SELECT ALL col1 + + tab0.col2 - + tab0.col2 AS col0 FROM tab0 ---- 86 91 97 query I rowsort SELECT DISTINCT - col0 + - col1 - - col0 AS col1 FROM tab1 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * - col0 * col2 col2 FROM tab2 AS cor0 ---- -114076 -5103 -52728 onlyif mysql # use DIV operator for integer division query I rowsort label-6206 SELECT DISTINCT - cor0.col0 + - cor0.col1 DIV cor0.col2 col1 FROM tab0 AS cor0 ---- -132 -26 -90 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6206 SELECT DISTINCT - cor0.col0 + - cor0.col1 / cor0.col2 col1 FROM tab0 AS cor0 ---- -132 -26 -90 onlyif mysql # use DIV operator for integer division query I rowsort label-6207 SELECT cor0.col1 DIV col1 + col0 * + col2 + - col1 FROM tab2 AS cor0 ---- 159 1970 2986 skipif mysql # not compatible query I rowsort label-6207 SELECT cor0.col1 / col1 + col0 * + col2 + - col1 FROM tab2 AS cor0 ---- 159 1970 2986 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6208 SELECT DISTINCT + col0 * + CAST( 64 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 192 4096 5120 skipif mysql # not compatible query I rowsort label-6208 SELECT DISTINCT + col0 * + CAST ( 64 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 192 4096 5120 query I rowsort SELECT col1 + col1 * + col2 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT DISTINCT + col0 * col2 + ( - col2 ) + col2 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-6211 SELECT ALL + col0 DIV - 37 FROM tab2 ---- -2 -2 0 skipif mysql # not compatible query I rowsort label-6211 SELECT ALL + col0 / - 37 FROM tab2 ---- -2 -2 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6212 SELECT ALL cor0.col0 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-6212 SELECT ALL cor0.col0 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6213 SELECT ALL CAST( + col0 AS SIGNED ) * cor0.col0 + - CAST( NULL AS DECIMAL ) * 66 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6213 SELECT ALL CAST ( + col0 AS INTEGER ) * cor0.col0 + - CAST ( NULL AS REAL ) * 66 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ( ( - col0 ) ) * cor0.col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT - col1 * - cor0.col0 AS col2 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - + ( 63 ) * col0 AS col1 FROM tab2 AS cor0 ---- -441 -4914 -4977 onlyif mysql # use DIV operator for integer division query I rowsort label-6217 SELECT ALL - col2 * col0 DIV col0 - 94 DIV + cor0.col1 AS col1 FROM tab1 AS cor0 ---- -103 -57 -66 skipif mysql # not compatible query I rowsort label-6217 SELECT ALL - col2 * col0 / col0 - 94 / + cor0.col1 AS col1 FROM tab1 AS cor0 ---- -103 -57 -66 query I rowsort SELECT DISTINCT - ( + col2 ) + - col2 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT ALL col2 - col0 * col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0 ---- 1 33 82 query I rowsort SELECT - 65 AS col2 FROM tab0 cor0 ---- -65 -65 -65 onlyif mysql # use DIV operator for integer division query I rowsort label-6222 SELECT col1 DIV col2 FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6222 SELECT col1 / col2 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 50 + cor0.col1 FROM tab1 AS cor0 ---- -24 -37 -40 onlyif mysql # use DIV operator for integer division query I rowsort label-6224 SELECT DISTINCT + 70 DIV col2 + - 65 AS col2 FROM tab0 cor0 ---- -63 -65 5 skipif mysql # not compatible query I rowsort label-6224 SELECT DISTINCT + 70 / col2 + - 65 AS col2 FROM tab0 cor0 ---- -63 -65 5 query I rowsort SELECT - col1 + col2 + + col1 AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL + col2 + + col0 * 14 AS col0 FROM tab1 AS cor0 ---- 1216 953 96 query I rowsort SELECT DISTINCT 75 * - col1 + col1 FROM tab1 AS cor0 ---- -1924 -740 -962 query I rowsort SELECT DISTINCT - + 10 FROM tab0 cor0 ---- -10 query I rowsort SELECT cor0.col0 + - col0 * - 91 AS col1 FROM tab2 AS cor0 ---- 644 7176 7268 onlyif mysql # use DIV operator for integer division query I rowsort label-6230 SELECT + + col1 DIV col1 + + 92 col0 FROM tab1 AS cor0 ---- 93 93 93 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6230 SELECT + + col1 / col1 + + 92 col0 FROM tab1 AS cor0 ---- 93 93 93 query I rowsort SELECT - 28 FROM tab0, tab2 AS cor0 ---- 9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6232 SELECT col1 * cor0.col2 * + CAST( NULL AS SIGNED ) + col1 / col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6232 SELECT col1 * cor0.col2 * + CAST ( NULL AS INTEGER ) + col1 / col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6233 SELECT DISTINCT - col0 DIV col2 + + ( - ( col0 ) ) AS col1 FROM tab1 AS cor0 ---- -3 -65 -80 skipif mysql # not compatible query I rowsort label-6233 SELECT DISTINCT - col0 / col2 + + ( - ( col0 ) ) AS col1 FROM tab1 AS cor0 ---- -3 -65 -80 query I rowsort SELECT ALL + + col0 * col1 + + col0 AS col2 FROM tab1 cor0 ---- 1120 704 81 query I rowsort SELECT + 37 * col2 FROM tab1 AS cor0 ---- 1998 2109 3552 query I rowsort SELECT ALL - col0 * col2 + ( - col2 * col2 ) FROM tab0 AS cor0 ---- -14022 -1881 -36 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - col2 ) + + col2 col1 FROM tab2 ---- 52 54 76 onlyif mysql # use DIV operator for integer division query I rowsort label-6238 SELECT + col1 DIV - col1 + + 90 FROM tab0 AS cor0 ---- 89 89 89 skipif mysql # not compatible query I rowsort label-6238 SELECT + col1 / - col1 + + 90 FROM tab0 AS cor0 ---- 89 89 89 query I rowsort SELECT + + col2 + ( + col1 ) AS col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT + col1 * 9 + + cor0.col1 FROM tab1 AS cor0 ---- 100 130 260 query I rowsort SELECT + + cor0.col1 + col1 * col0 * col0 AS col1 FROM tab0 AS cor0 ---- 118922 49622 720902 query I rowsort SELECT ALL 0 * col0 * col0 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT + col2 * col1 + + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1026 3562 3648 query I rowsort SELECT col2 * ( col2 ) * + col2 + 92 AS col2 FROM tab0 cor0 ---- 36029 551460 93 query I rowsort SELECT - col0 + + 89 FROM tab0 AS cor0 ---- 0 54 65 query I rowsort SELECT ALL - 28 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to eac00a95d734c7071360ed392c3f39bc query I rowsort SELECT - + cor0.col0 - col1 * + col1 AS col2 FROM tab2 cor0 ---- -3559 -368 -968 onlyif mysql # use DIV operator for integer division query I rowsort label-6248 SELECT ( + 18 ) DIV col1 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6248 SELECT ( + 18 ) / col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL - col0 + - 93 FROM tab1 ---- -157 -173 -96 query I rowsort SELECT ALL tab1.col1 * 66 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 6efa615455e6f9a8401d9aca573746e9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 59 * - col1 col2 FROM tab0 ---- -5074 -5369 -5723 onlyif mysql # use DIV operator for integer division query I rowsort label-6252 SELECT - ( - col1 ) * + 29 + ( col0 ) DIV - ( + 26 ) AS col2 FROM tab0 cor0 ---- 2494 2636 2812 skipif mysql # not compatible query I rowsort label-6252 SELECT - ( - col1 ) * + 29 + ( col0 ) / - ( + 26 ) AS col2 FROM tab0 cor0 ---- 2494 2636 2812 query I rowsort SELECT DISTINCT + - cor0.col1 - + col2 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT - 8 * col1 * - cor0.col2 + + col1 + - col2 AS col2 FROM tab0 cor0 ---- 22757 59705 872 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2 query I rowsort SELECT DISTINCT ( - col0 ) + + col2 * - 18 FROM tab0 ---- -1565 -53 -618 query I rowsort SELECT + - col0 + 41 FROM tab2 AS cor0 ---- -37 -38 34 query I rowsort SELECT DISTINCT - - ( + col2 ) + col1 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-6259 SELECT DISTINCT cor0.col2 DIV 4 + cor0.col0 FROM tab2 AS cor0 ---- 13 84 88 skipif mysql # not compatible query I rowsort label-6259 SELECT DISTINCT cor0.col2 / 4 + cor0.col0 FROM tab2 AS cor0 ---- 13 84 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 61 * col1 * col2 + + col1 col0 FROM tab1 cor0 ---- -34760 -76115 -85618 query I rowsort SELECT + 62 * - cor0.col2 + col2 FROM tab2 AS cor0 ---- -1586 -1647 -2318 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6262 SELECT + - CAST( NULL AS DECIMAL ) / + col0 AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6262 SELECT + - CAST ( NULL AS REAL ) / + col0 AS col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 + 28 * col2 AS col0 FROM tab1 AS cor0 ---- 1515 1660 2768 query I rowsort SELECT 67 - + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -29 10 13 query I rowsort SELECT ALL + 81 * + col0 FROM tab1 AS cor0 ---- 243 5184 6480 query I rowsort SELECT col2 * + col2 + 74 AS col2 FROM tab2 AS cor0 ---- 1518 750 803 query I rowsort SELECT + + col0 + + col0 AS col2 FROM tab1 cor0 ---- 128 160 6 query I rowsort SELECT + ( 4 + col2 ) FROM tab2 ---- 30 31 42 query I rowsort SELECT col0 + + col2 * col2 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT ALL + col0 * - 41 + - col0 * - col1 FROM tab1 AS cor0 ---- -1984 -2240 -45 query I rowsort SELECT DISTINCT col0 + - col2 * col1 * col2 FROM tab0 AS cor0 ---- -611795 -62 -93630 query I rowsort SELECT ALL col2 * col2 + - cor0.col2 * cor0.col0 FROM tab1 cor0 ---- -399 1536 2754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab1.col1 * ( - col0 ) col0 FROM tab1 ---- 1040 640 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6274 SELECT DISTINCT - tab2.col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab0, tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6274 SELECT DISTINCT - tab2.col2 * CAST ( NULL AS REAL ) AS col0 FROM tab2, tab0, tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - 92 + - col2 * + col1 FROM tab1 AS cor0 ---- -1340 -1496 -662 query I rowsort SELECT DISTINCT 67 AS col2 FROM tab0 cor0 ---- 67 onlyif mysql # use DIV operator for integer division query I rowsort label-6277 SELECT ALL + col0 DIV ( + 18 ) col0 FROM tab2 ---- 0 4 4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6277 SELECT ALL + col0 / ( + 18 ) col0 FROM tab2 ---- 0 4 4 query I rowsort SELECT + col1 * col0 + col1 + col1 FROM tab2 ---- 1377 279 4720 query I rowsort SELECT DISTINCT col2 - ( col1 * - col0 ) FROM tab2 ---- 1381 244 4628 onlyif mysql # use DIV operator for integer division query I rowsort label-6280 SELECT ALL - col2 DIV + col2 - + 66 * col0 AS col1 FROM tab0 ---- -1585 -2311 -5875 skipif mysql # not compatible query I rowsort label-6280 SELECT ALL - col2 / + col2 - + 66 * col0 AS col1 FROM tab0 ---- -1585 -2311 -5875 onlyif mysql # use DIV operator for integer division query I rowsort label-6281 SELECT + col1 DIV + tab1.col0 FROM tab1 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-6281 SELECT + col1 / + tab1.col0 FROM tab1 ---- 0 0 8 query I rowsort SELECT 27 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 1a3cef5c33b8f87ffeded378fd207753 query I rowsort SELECT DISTINCT col2 * col2 + col2 FROM tab0 AS cor0 ---- 1122 2 6806 onlyif mysql # use DIV operator for integer division query I rowsort label-6284 SELECT DISTINCT CAST( cor0.col2 AS SIGNED ) DIV - cor0.col0 + 55 - - col1 * + col0 FROM tab1 AS cor0 ---- 1094 115 695 skipif mysql # not compatible query I rowsort label-6284 SELECT DISTINCT CAST ( cor0.col2 AS INTEGER ) / - cor0.col0 + 55 - - col1 * + col0 FROM tab1 AS cor0 ---- 1094 115 695 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + col1 * col1 col0 FROM tab0 AS cor0 ---- 7420 8370 9444 query I rowsort SELECT DISTINCT + col1 * + 34 + col1 FROM tab1 AS cor0 ---- 350 455 910 query I rowsort SELECT ALL + col1 * col0 + + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT ALL + col0 + 46 AS col0 FROM tab1 AS cor0 ---- 110 126 49 onlyif mysql # use DIV operator for integer division query I rowsort label-6289 SELECT ALL + col2 DIV - col1 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-6289 SELECT ALL + col2 / - col1 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + 38 FROM tab2, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb query I rowsort SELECT ALL 8 + - ( + col1 * tab2.col0 ) AS col1 FROM tab2 ---- -1335 -209 -4594 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6292 SELECT ALL CAST( - 12 AS SIGNED ) + + col0 * + col0 + col1 AS col2 FROM tab1 ---- 23 4094 6401 skipif mysql # not compatible query I rowsort label-6292 SELECT ALL CAST ( - 12 AS INTEGER ) + + col0 * + col0 + col1 AS col2 FROM tab1 ---- 23 4094 6401 onlyif mysql # use DIV operator for integer division query I rowsort label-6293 SELECT - 59 DIV col1 col2 FROM tab2 ---- -1 -1 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6293 SELECT - 59 / col1 col2 FROM tab2 ---- -1 -1 -3 query I rowsort SELECT ALL + 56 + + ( col0 ) AS col1 FROM tab0 AS cor0 ---- 145 80 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6295 SELECT ALL - 98 * cor0.col1 * col2 + + CAST( - ( col0 ) + 0 AS SIGNED ) * - col0 col1 FROM tab1 AS cor0 ---- -115904 -137583 -51764 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6295 SELECT ALL - 98 * cor0.col1 * col2 + + CAST ( - ( col0 ) + 0 AS INTEGER ) * - col0 col1 FROM tab1 AS cor0 ---- -115904 -137583 -51764 query I rowsort SELECT DISTINCT - col2 - col0 AS col2 FROM tab1 AS cor0 ---- -121 -176 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6297 SELECT + CAST( NULL AS SIGNED ) - + ( col2 ) * col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6297 SELECT + CAST ( NULL AS INTEGER ) - + ( col2 ) * col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col0 + + col2 * + col0 FROM tab0 ---- 70 7387 816 query I rowsort SELECT - ( ( - tab0.col1 ) ) + 57 * col1 + + col1 AS col1 FROM tab0 ---- 5074 5369 5723 query I rowsort SELECT - + col1 * - col1 AS col2 FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT - 68 - - col0 AS col0 FROM tab2 ---- -61 10 11 query I rowsort SELECT DISTINCT 40 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 40 query I rowsort SELECT DISTINCT 68 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1 ---- 68 query I rowsort SELECT DISTINCT - - col2 * - col1 + + 6 AS col2 FROM tab0 AS cor0 ---- -2832 -7456 -91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 - + ( + col2 ) * - col1 * - ( + 23 ) col0 FROM tab0 AS cor0 ---- -171544 -2230 -65241 query I rowsort SELECT DISTINCT + - cor0.col1 * 91 + col2 AS col1 FROM tab1 AS cor0 ---- -1087 -2312 -853 query I rowsort SELECT - - col2 * - 68 AS col1 FROM tab0 cor0 ---- -2244 -5576 -68 query I rowsort SELECT ALL + col1 * ( + col1 ) FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT + col1 + ( + 7 ) FROM tab2 AS cor0 ---- 24 38 66 onlyif mysql # use DIV operator for integer division query I rowsort label-6310 SELECT ALL + - col0 + 33 DIV 72 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-6310 SELECT ALL + - col0 + 33 / 72 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT - 84 * col0 AS col2 FROM tab2 AS cor0 ---- -588 -6552 -6636 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 22 col0 FROM tab0 AS cor0 ---- 22 22 22 query I rowsort SELECT - - ( - cor0.col0 ) * col2 * + col0 AS col0 FROM tab1 AS cor0 ---- -233472 -486 -614400 query I rowsort SELECT 17 * + col0 AS col0 FROM tab1 AS cor0 ---- 1088 1360 51 onlyif mysql # use DIV operator for integer division query I rowsort label-6315 SELECT DISTINCT col0 * - col2 + col0 - col2 DIV - col1 col2 FROM tab1 AS cor0 ---- -157 -3579 -7593 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6315 SELECT DISTINCT col0 * - col2 + col0 - col2 / - col1 col2 FROM tab1 AS cor0 ---- -157 -3579 -7593 onlyif mysql # use DIV operator for integer division query I rowsort label-6316 SELECT ALL - col0 + 82 DIV col0 FROM tab1 ---- -63 -79 24 skipif mysql # not compatible query I rowsort label-6316 SELECT ALL - col0 + 82 / col0 FROM tab1 ---- -63 -79 24 query I rowsort SELECT DISTINCT 75 AS col0 FROM tab1, tab2 AS cor0 ---- 75 query I rowsort SELECT col1 * + tab0.col0 * + tab0.col0 AS col0 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT - col0 * - col0 + + col1 * tab0.col0 + 37 FROM tab0 ---- 16057 2677 4657 query I rowsort SELECT ALL + ( 14 ) AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to 83e5779d2487d12495e7d816c797264f query I rowsort SELECT ALL + col1 + tab0.col0 AS col1 FROM tab0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * cor0.col0 col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT - + col1 + col0 * col0 + col0 * + col1 AS col1 FROM tab2 cor0 ---- 10627 235 7567 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 93 col1 FROM tab1, tab1 cor0 ---- 93 query I rowsort SELECT col2 + col0 * col2 * col0 FROM tab0 cor0 ---- 1226 19041 649604 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + 28 col0 FROM tab0 ---- 117 52 63 query I rowsort SELECT col2 * + 65 FROM tab0 ---- 2145 5330 65 query I rowsort SELECT ALL + cor0.col0 + col0 * col1 + col1 * - cor0.col1 * col1 FROM tab0 AS cor0 ---- -633968 -745383 -909243 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6329 SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col1 FROM tab1 cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-6329 SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6330 SELECT DISTINCT + + CAST( col2 AS SIGNED ) - cor0.col0 FROM tab1 AS cor0 ---- -7 16 51 skipif mysql # not compatible query I rowsort label-6330 SELECT DISTINCT + + CAST ( col2 AS INTEGER ) - cor0.col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL + cor0.col1 + col2 * col0 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT DISTINCT - 0 AS col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT + 23 + + cor0.col2 * + col2 FROM tab1 AS cor0 ---- 2939 3272 9239 query I rowsort SELECT ALL - 82 * 22 FROM tab1 AS cor0 ---- -1804 -1804 -1804 onlyif mysql # use DIV operator for integer division query I rowsort label-6335 SELECT ALL - ( col1 ) DIV + col0 + - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0 ---- 154 3648 7680 skipif mysql # not compatible query I rowsort label-6335 SELECT ALL - ( col1 ) / + col0 + - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0 ---- 154 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6336 SELECT + CAST( NULL AS SIGNED ) + - col2 col1 FROM tab0 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6336 SELECT + CAST ( NULL AS INTEGER ) + - col2 col1 FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6337 SELECT + col0 + - cor0.col1 DIV + col2 AS col0 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-6337 SELECT + col0 + - cor0.col1 / + col2 AS col0 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT - + 57 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- -4902 -5187 -5529 query I rowsort SELECT - col0 * - 47 + col0 * ( col0 + - col2 * + 35 ) FROM tab0 AS cor0 ---- -243326 -26016 1645 query I rowsort SELECT + 54 + ( + col2 ) FROM tab1 AS cor0 ---- 108 111 150 query I rowsort SELECT ALL col2 - col1 * + col1 FROM tab0 ---- -7363 -8199 -9408 query I rowsort SELECT - col2 + col1 * tab2.col0 + col0 * - col0 AS col2 FROM tab2 ---- -1508 -4936 141 query I rowsort SELECT - col1 * + col0 - + tab1.col0 AS col0 FROM tab1 ---- -1120 -704 -81 onlyif mysql # use DIV operator for integer division query I rowsort label-6344 SELECT DISTINCT 3 DIV col0 AS col1 FROM tab1 ---- 0 1 skipif mysql # not compatible query I rowsort label-6344 SELECT DISTINCT 3 / col0 AS col1 FROM tab1 ---- 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-6345 SELECT + 19 DIV 54 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6345 SELECT + 19 / 54 FROM tab0 ---- 0 0 0 query I rowsort SELECT 22 + + 88 * col0 + - col0 AS col2 FROM tab2 AS cor0 ---- 631 6808 6895 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 + - 65 * - col0 - + col0 col2 FROM tab0 AS cor0 ---- 1512 2205 5607 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 36 * col0 + col0 + col1 col0 FROM tab2 AS cor0 ---- -214 -2671 -2748 query I rowsort SELECT col0 + + 50 + cor0.col1 FROM tab2 AS cor0 ---- 146 187 88 query IIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL NOT IN ( + cor0.col1 ) ---- query I rowsort SELECT ( - cor0.col2 ) AS col1 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT + + 62 * col1 FROM tab0 AS cor0 ---- 5332 5642 6014 query I rowsort SELECT - + 97 AS col1 FROM tab0 AS cor0 ---- -97 -97 -97 query I rowsort SELECT - + cor0.col1 * col2 + cor0.col1 FROM tab0 cor0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT 80 * + 36 FROM tab1 ---- 2880 query I rowsort SELECT ALL - + ( + col1 ) + + col1 * - 61 FROM tab0 AS cor0 ---- -5332 -5642 -6014 query I rowsort SELECT + col0 + + col2 - + col2 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6358 SELECT + cor0.col2 * - CAST( + cor0.col0 AS SIGNED ) 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-6358 SELECT + cor0.col2 * - CAST ( + cor0.col0 AS INTEGER ) col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT - col2 + + 9 * - 79 FROM tab0 AS cor0 ---- -712 -744 -793 query I rowsort SELECT + + col1 * - 89 AS col1 FROM tab2 AS cor0 ---- -1513 -2759 -5251 query I rowsort SELECT col2 + col2 * col1 AS col0 FROM tab2 cor0 ---- 1560 684 864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 50 + - col0 - + col0 col1 FROM tab2 AS cor0 ---- -106 -108 36 onlyif mysql # use DIV operator for integer division query I rowsort label-6363 SELECT DISTINCT - cor0.col2 DIV + cor0.col1 + - 42 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- -44 -47 -49 skipif mysql # not compatible query I rowsort label-6363 SELECT DISTINCT - cor0.col2 / + cor0.col1 + - 42 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- -44 -47 -49 query I rowsort SELECT ALL col1 + col0 * col2 AS col2 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT 47 * - col2 AS col1 FROM tab1 ---- -2538 -2679 -4512 query I rowsort SELECT DISTINCT col1 * - col1 - tab0.col1 FROM tab0 ---- -7482 -8372 -9506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6367 SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6367 SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - + col0 + col0 * col2 FROM tab2 AS cor0 ---- 182 1950 2923 query I rowsort SELECT DISTINCT - + cor0.col2 * - col2 + col0 AS col1 FROM tab1 AS cor0 ---- 2919 3313 9296 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6370 SELECT + - col0 + + CAST( col1 AS SIGNED ) * col2 + - cor0.col0 AS col0 FROM tab1 AS cor0 ---- 1088 1398 442 skipif mysql # not compatible query I rowsort label-6370 SELECT + - col0 + + CAST ( col1 AS INTEGER ) * col2 + - cor0.col0 AS col0 FROM tab1 AS cor0 ---- 1088 1398 442 query I rowsort SELECT - col2 + - 27 * - ( - col1 ) FROM tab2 cor0 ---- -1619 -497 -864 query I rowsort SELECT DISTINCT + col1 * col1 - col2 * ( col0 + tab0.col0 ) AS col0 FROM tab0 ---- -6315 5812 9339 query I rowsort SELECT ALL col2 - col2 * + ( 51 * col1 ) AS col0 FROM tab1 ---- -29013 -63552 -71550 query I rowsort SELECT DISTINCT 55 - - col0 * 16 FROM tab0 ---- 1479 439 615 query I rowsort SELECT col1 * col2 + tab1.col0 + 81 FROM tab1 ---- 1409 1488 715 onlyif mysql # use DIV operator for integer division query I rowsort label-6376 SELECT col0 DIV col0 + col0 * - col0 FROM tab1 ---- -4095 -6399 -8 skipif mysql # not compatible query I rowsort label-6376 SELECT col0 / col0 + col0 * - col0 FROM tab1 ---- -4095 -6399 -8 onlyif mysql # use DIV operator for integer division query I rowsort label-6377 SELECT DISTINCT + col1 * ( col2 ) DIV col1 + + ( - col2 + + col1 ) FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-6377 SELECT DISTINCT + col1 * ( col2 ) / col1 + + ( - col2 + + col1 ) FROM tab0 ---- 86 91 97 query I rowsort SELECT + col1 + col2 + + col1 FROM tab2 ---- 144 72 89 query I rowsort SELECT + col0 * cor0.col0 + col2 FROM tab0 cor0 ---- 1226 609 8003 query I rowsort SELECT - + 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to ec11209ab257030053484fc13a1f6d17 query I rowsort SELECT + + col2 + 14 * col2 FROM tab0 cor0 ---- 1230 15 495 query I rowsort SELECT DISTINCT + col0 * - col1 - col0 AS col2 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT ALL col2 + - 73 * + cor0.col0 FROM tab0 AS cor0 ---- -1719 -2554 -6415 query I rowsort SELECT DISTINCT + col1 * col2 - - col0 * + col2 FROM tab1 AS cor0 ---- 1566 4218 8928 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6385 SELECT DISTINCT - col2 * CAST( + col0 AS SIGNED ) AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 skipif mysql # not compatible query I rowsort label-6385 SELECT DISTINCT - col2 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + col1 + col1 * - 38 * col1 AS col1 FROM tab1 cor0 ---- -25662 -3790 -6409 query I rowsort SELECT + - col2 * + col2 + - col0 * + col2 FROM tab2 cor0 ---- -2704 -4446 -918 query I rowsort SELECT ALL + - col0 + + 43 * + col0 FROM tab2 AS cor0 ---- 294 3276 3318 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6389 SELECT DISTINCT + col0 + CAST( + col0 AS SIGNED ) + col1 * col0 * col1 AS col2 FROM tab2 AS cor0 ---- 22989 271674 6741 skipif mysql # not compatible query I rowsort label-6389 SELECT DISTINCT + col0 + CAST ( + col0 AS INTEGER ) + col1 * col0 * col1 AS col2 FROM tab2 AS cor0 ---- 22989 271674 6741 query I rowsort SELECT DISTINCT + col0 * col1 * tab2.col2 AS col2 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT ALL + 69 AS col2 FROM tab1, tab2 cor0 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 onlyif mysql # use DIV operator for integer division query I rowsort label-6392 SELECT col0 DIV + col2 + col1 FROM tab0 ---- 132 86 92 skipif mysql # not compatible query I rowsort label-6392 SELECT col0 / + col2 + col1 FROM tab0 ---- 132 86 92 onlyif mysql # use DIV operator for integer division query I rowsort label-6393 SELECT + ( + 14 ) DIV col1 FROM tab1 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-6393 SELECT + ( + 14 ) / col1 FROM tab1 AS cor0 ---- 0 1 1 query I rowsort SELECT ALL + 72 + + col2 FROM tab1 cor0 ---- 126 129 168 query I rowsort SELECT DISTINCT + cor0.col1 * col1 + - col1 AS col0 FROM tab2 AS cor0 ---- 272 3422 930 query I rowsort SELECT DISTINCT - 14 * col2 AS col0 FROM tab2 ---- -364 -378 -532 query I rowsort SELECT DISTINCT col0 + col0 * ( - col0 ) AS col1 FROM tab1 AS cor0 ---- -4032 -6 -6320 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6398 SELECT ALL + + ( + col2 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6398 SELECT ALL + + ( + col2 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 66 AS col0 FROM tab0 AS cor0 ---- 66 66 66 query I rowsort SELECT ALL - - 82 * col0 * 23 FROM tab1 cor0 ---- 120704 150880 5658 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * - col2 col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ( - cor0.col0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e onlyif mysql # use DIV operator for integer division query I rowsort label-6403 SELECT col1 * col2 DIV 51 AS col1 FROM tab0 AS cor0 ---- 1 146 55 skipif mysql # not compatible query I rowsort label-6403 SELECT col1 * col2 / 51 AS col1 FROM tab0 AS cor0 ---- 1 146 55 query I rowsort SELECT ALL + 60 + col2 * + col0 AS col1 FROM tab2 AS cor0 ---- 2088 249 3062 query I rowsort SELECT DISTINCT + 60 * col0 AS col1 FROM tab2 AS cor0 ---- 420 4680 4740 query I rowsort SELECT 47 * - col0 FROM tab2 cor0 ---- -329 -3666 -3713 query I rowsort SELECT ALL - col0 * col0 + - col2 + - 9 * col1 FROM tab0 cor0 ---- -1383 -2099 -8822 query I rowsort SELECT ALL + - 24 + + col2 * 23 AS col0 FROM tab2 AS cor0 ---- 574 597 850 query I rowsort SELECT ALL + 9 + - col0 * + 72 AS col2 FROM tab0 AS cor0 ---- -1719 -2511 -6399 query I rowsort SELECT ALL + cor0.col2 * - col2 + + col0 + - col0 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT - 56 * + col0 FROM tab0 AS cor0 ---- -1344 -1960 -4984 query I rowsort SELECT + + col2 + - ( 82 ) AS col2 FROM tab0 cor0 ---- -49 -81 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6413 SELECT ALL - + col0 + - col1 DIV 78 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-6413 SELECT ALL - + col0 + - col1 / 78 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT + 79 AS col0 FROM tab2, tab0 AS cor0 ---- 79 query I rowsort SELECT + 60 * cor0.col2 * - cor0.col2 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 54ffa73008ce00582ef2a9fb0dc662fb query I rowsort SELECT ALL cor0.col0 AS col1 FROM tab2, tab0 cor0, tab0 cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT + 63 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 query I rowsort SELECT + + col1 * col1 + col1 + + ( col2 ) FROM tab2 AS cor0 ---- 1019 344 3566 skipif mysql # not compatible query I rowsort SELECT - + CAST ( - col1 AS REAL ) FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT col2 + ( cor0.col1 * - col0 ) FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT DISTINCT 21 + 10 AS col1 FROM tab0 AS cor0 ---- 31 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * col0 + - col0 col1 FROM tab2 AS cor0 ---- 42 6006 6162 query I rowsort SELECT + ( - col2 ) * + col0 + col0 FROM tab1 cor0 ---- -159 -3584 -7600 query I rowsort SELECT - - ( col1 ) + + col1 AS col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT ( col0 ) - col1 AS col1 FROM tab0 AS cor0 ---- -2 -62 query I rowsort SELECT DISTINCT - col1 + + 79 * col0 AS col1 FROM tab0 AS cor0 ---- 1810 2668 6940 onlyif mysql # use DIV operator for integer division query I rowsort label-6427 SELECT - col0 * 35 + 98 DIV col1 AS col2 FROM tab2 ---- -242 -2729 -2760 skipif mysql # not compatible query I rowsort label-6427 SELECT - col0 * 35 + 98 / col1 AS col2 FROM tab2 ---- -242 -2729 -2760 query I rowsort SELECT DISTINCT + cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1 ---- 26 27 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6429 SELECT DISTINCT CAST( NULL AS DECIMAL ) * 84 / - col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-6429 SELECT DISTINCT CAST ( NULL AS REAL ) * 84 / - col0 FROM tab1 ---- NULL query I rowsort SELECT + col2 + ( col0 + col1 * col1 ) FROM tab2 ---- 3585 406 995 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6431 SELECT + CAST( tab0.col2 AS SIGNED ) + + col1 * 51 col2 FROM tab0 ---- 4419 4723 4948 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6431 SELECT + CAST ( tab0.col2 AS INTEGER ) + + col1 * 51 col2 FROM tab0 ---- 4419 4723 4948 query I rowsort SELECT ALL + 61 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 07149905a72bd87553381f34d19ed290 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6433 SELECT ALL - CAST( col0 AS SIGNED ) + + col1 FROM tab2 AS cor0 ---- -19 -62 24 skipif mysql # not compatible query I rowsort label-6433 SELECT ALL - CAST ( col0 AS INTEGER ) + + col1 FROM tab2 AS cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-6434 SELECT - col0 DIV + 59 - col0 FROM tab2 ---- -7 -79 -80 skipif mysql # not compatible query I rowsort label-6434 SELECT - col0 / + 59 - col0 FROM tab2 ---- -7 -79 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - tab0.col1 ) col1 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT + col1 - 24 FROM tab1 AS cor0 ---- -11 -14 2 query I rowsort SELECT col2 * + ( - 81 ) + col1 AS col0 FROM tab2 AS cor0 ---- -2047 -2156 -3061 query I rowsort SELECT DISTINCT 15 AS col1 FROM tab2, tab1 AS cor0 ---- 15 query I rowsort SELECT + col0 + + cor0.col0 * - col0 AS col1 FROM tab2 cor0 ---- -42 -6006 -6162 query I rowsort SELECT col0 * - 38 + col2 FROM tab1 AS cor0 ---- -2375 -2944 -60 query I rowsort SELECT DISTINCT col2 * 25 + - col2 AS col0 FROM tab1 AS cor0 ---- 1296 1368 2304 onlyif mysql # use DIV operator for integer division query I rowsort label-6442 SELECT ALL - col2 * tab2.col0 + col2 DIV - col1 FROM tab2 ---- -189 -2028 -3004 skipif mysql # not compatible query I rowsort label-6442 SELECT ALL - col2 * tab2.col0 + col2 / - col1 FROM tab2 ---- -189 -2028 -3004 query I rowsort SELECT 21 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 312c166f4dc412730c43555105b1f44b query I rowsort SELECT - col1 * 59 * col2 + 99 AS col0 FROM tab0 AS cor0 ---- -167343 -440159 -5624 query I rowsort SELECT - col2 * + ( col2 ) + col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT col2 * + 62 AS col2 FROM tab2 ---- 1612 1674 2356 query I rowsort SELECT DISTINCT col2 * col1 + cor0.col1 * col0 AS col1 FROM tab2 AS cor0 ---- 1054 1989 6136 query I rowsort SELECT ALL + 18 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query I rowsort SELECT 66 + - cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to ce53d5cea0b8032d42407e5e868724e6 query I rowsort SELECT - - 46 + col2 AS col1 FROM tab0 cor0 ---- 128 47 79 query I rowsort SELECT DISTINCT + ( - col1 * + col0 + + col2 ) AS col0 FROM tab1 ---- -24 -583 -944 query I rowsort SELECT + col1 * col1 * ( col0 ) FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT ALL + col1 * + 68 FROM tab1 ---- 1768 680 884 query I rowsort SELECT ( + col0 ) * col2 * col1 + + col1 AS col2 FROM tab1 ---- 36490 4238 99853 query I rowsort SELECT + col0 * - col2 + - col0 AS col0 FROM tab2 ---- -196 -2106 -3081 query I rowsort SELECT - + 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e query I rowsort SELECT + 48 * col2 * 21 FROM tab2 AS cor0 ---- 26208 27216 38304 query I rowsort SELECT ALL - col0 * + cor0.col2 * + col1 + col0 FROM tab1 AS cor0 ---- -36416 -4209 -99760 query I rowsort SELECT DISTINCT + - col2 * + col2 - + col1 AS col0 FROM tab0 AS cor0 ---- -1175 -6815 -98 query I rowsort SELECT ALL col0 * + col2 + col0 AS col1 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT + 72 * col1 + - 10 * cor0.col0 * col2 AS col1 FROM tab1 AS cor0 ---- -35760 -75864 252 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6462 SELECT DISTINCT + + col1 + col0 / CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6462 SELECT DISTINCT + + col1 + col0 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6463 SELECT ALL + col0 * cor0.col0 - + CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6463 SELECT ALL + col0 * cor0.col0 - + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col1 * + col2 + - 90 AS col0 FROM tab2 AS cor0 ---- -1624 -736 -927 query I rowsort SELECT - 52 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * + col2 col1 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT + col2 - ( + col2 ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * - col1 - col0 * col2 FROM tab1 AS cor0 ---- -3748 -7849 -838 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 - col2 * col1 col1 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT - col1 * - col2 + - cor0.col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT col2 * ( cor0.col2 * - cor0.col2 ) AS col0 FROM tab2 AS cor0 ---- -17576 -19683 -54872 query I rowsort SELECT cor0.col2 + - cor0.col0 * + 0 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT + cor0.col1 * + ( - col2 ) + - col1 * col0 AS col1 FROM tab1 AS cor0 ---- -1210 -1482 -2288 query I rowsort SELECT + col0 - - 61 AS col2 FROM tab1 AS cor0 ---- 125 141 64 query I rowsort SELECT + col0 * col0 + + col0 AS col2 FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT + - col1 + + ( 77 + + col0 ) AS col2 FROM tab1 AS cor0 ---- 131 144 54 query I rowsort SELECT - col1 * + 26 FROM tab0 AS cor0 ---- -2236 -2366 -2522 query I rowsort SELECT - col0 + col0 + + col2 * 21 AS col2 FROM tab2 AS cor0 ---- 546 567 798 query I rowsort SELECT DISTINCT 94 * + col0 AS col0 FROM tab0 AS cor0 ---- 2256 3290 8366 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6480 SELECT ALL + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-6480 SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT + cor1.col1 FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT 43 * + 73 * col1 AS col2 FROM tab1 ---- 31390 40807 81614 query I rowsort SELECT DISTINCT col0 * + 18 AS col2 FROM tab0 ---- 1602 432 630 query I rowsort SELECT - col2 + + col2 AS col1 FROM tab2 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col0 + + col1 col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT + col0 * 25 AS col1 FROM tab1 AS cor0 ---- 1600 2000 75 query I rowsort SELECT + ( - ( col1 ) ) FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT - + 14 * - col1 FROM tab0 cor0 ---- 1204 1274 1358 query I rowsort SELECT ALL + + col2 * - col0 + cor0.col0 + - ( col2 ) * col0 FROM tab1 AS cor0 ---- -15280 -321 -7232 query I rowsort SELECT DISTINCT + - 87 + 93 * + col1 FROM tab1 AS cor0 ---- 1122 2331 843 query I rowsort SELECT + ( - ( col2 ) ) FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT + ( cor0.col1 ) + col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ALL - col2 * - col2 - col0 AS col0 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT ALL - ( cor0.col0 ) + col2 AS col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL + col1 + - col2 + col1 FROM tab2 AS cor0 ---- -4 35 92 query I rowsort SELECT ALL + 57 - 33 * + col0 AS col1 FROM tab0 AS cor0 ---- -1098 -2880 -735 onlyif mysql # use DIV operator for integer division query I rowsort label-6497 SELECT - ( col1 ) DIV col0 col0 FROM tab1 AS cor0 ---- -8 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6497 SELECT - ( col1 ) / col0 col0 FROM tab1 AS cor0 ---- -8 0 0 query I rowsort SELECT DISTINCT col0 * - 49 AS col1 FROM tab0 AS cor0 ---- -1176 -1715 -4361 query I rowsort SELECT DISTINCT 39 + col1 FROM tab2 AS cor0 ---- 56 70 98 query I rowsort SELECT DISTINCT 11 AS col0 FROM tab1, tab0 AS cor0 ---- 11 query I rowsort SELECT ALL - col2 * 7 AS col0 FROM tab2 ---- -182 -189 -266 query I rowsort SELECT ALL - cor0.col2 + cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT ALL - + col0 * col1 * - col0 + - 1 FROM tab2 AS cor0 ---- 106096 1518 358955 query I rowsort SELECT - 89 * ( col0 ) + - col2 - + col2 FROM tab0 ---- -2202 -3117 -8085 query I rowsort SELECT DISTINCT - + 82 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- -82 query I rowsort SELECT DISTINCT - 61 - 34 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- -95 query I rowsort SELECT DISTINCT + - ( - 95 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * 32 col0 FROM tab2 cor0 ---- 1888 544 992 query I rowsort SELECT col2 * + ( - col0 ) - col0 * - col2 * 25 FROM tab0 ---- 175152 19008 840 onlyif mysql # use DIV operator for integer division query I rowsort label-6510 SELECT ALL + - col0 * 16 DIV col0 FROM tab1 AS cor0 ---- -16 -16 -16 skipif mysql # not compatible query I rowsort label-6510 SELECT ALL + - col0 * 16 / col0 FROM tab1 AS cor0 ---- -16 -16 -16 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * - col2 * col1 col0 FROM tab1 cor0 ---- 36480 4212 99840 query I rowsort SELECT + col2 * col0 + 16 AS col1 FROM tab1 AS cor0 ---- 178 3664 7696 query I rowsort SELECT + col0 * cor0.col0 + col1 AS col2 FROM tab2 cor0 ---- 6143 6258 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 70 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 70 onlyif mysql # use DIV operator for integer division query I rowsort label-6515 SELECT ALL - - col0 DIV 60 AS col2 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-6515 SELECT ALL - - col0 / 60 AS col2 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT col1 + 20 AS col1 FROM tab2 cor0 ---- 37 51 79 query I rowsort SELECT ALL - col1 + + 95 * col0 FROM tab0 cor0 ---- 2194 3228 8364 query I rowsort SELECT ALL - - col1 * 81 FROM tab1 AS cor0 ---- 1053 2106 810 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 16 col1 FROM tab1 AS cor0 ---- 16 16 16 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6520 SELECT DISTINCT + - CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6520 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * + col0 col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT - + 47 + col1 FROM tab2 AS cor0 ---- -16 -30 12 query I rowsort SELECT - - ( - 93 ) FROM tab0 AS cor0 ---- -93 -93 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-6524 SELECT + col2 + + col2 DIV + 50 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-6524 SELECT + col2 + + col2 / + 50 FROM tab1 AS cor0 ---- 55 58 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col1 * - cor0.col0 col1 FROM tab2 AS cor0 ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 46 * - col2 + ( col1 ) col0 FROM tab2 AS cor0 ---- -1137 -1211 -1731 query I rowsort SELECT ALL - 75 * col1 + ( - col0 ) FROM tab2 ---- -1354 -2332 -4503 query I rowsort SELECT - col1 * + col0 - ( - cor0.col2 * - col2 ) AS col0 FROM tab0 AS cor0 ---- -14823 -3153 -3396 query I rowsort SELECT DISTINCT 26 * + col0 + - col0 AS col0 FROM tab2 AS cor0 ---- 175 1950 1975 query I rowsort SELECT ALL 92 + col0 + + col2 FROM tab1 AS cor0 ---- 149 213 268 query I rowsort SELECT + 6 - + cor0.col1 FROM tab1, tab1 AS cor0, tab0 cor1, tab0 AS cor2 ---- 81 values hashing to ee4c547339af235c5430a7b02fcaedcc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 - cor0.col0 col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6533 SELECT col1 * + col1 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6533 SELECT col1 * + col1 + CAST ( NULL AS REAL ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + col2 + col1 * - col0 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT ALL 83 + + col0 * col2 FROM tab1 cor0 ---- 245 3731 7763 query I rowsort SELECT DISTINCT + cor0.col2 + col2 + col1 AS col2 FROM tab2 AS cor0 ---- 111 85 93 query I rowsort SELECT + col1 * col1 * - ( col1 * + 97 ) AS col1 FROM tab1 AS cor0 ---- -1704872 -213109 -97000 query I rowsort SELECT - + col2 + - col2 * col1 AS col0 FROM tab2 AS cor0 ---- -1560 -684 -864 onlyif mysql # use DIV operator for integer division query I rowsort label-6539 SELECT tab0.col1 + col0 + - col0 DIV col0 AS col2 FROM tab0 ---- 109 131 179 skipif mysql # not compatible query I rowsort label-6539 SELECT tab0.col1 + col0 + - col0 / col0 AS col2 FROM tab0 ---- 109 131 179 query I rowsort SELECT DISTINCT + cor0.col2 + 96 FROM tab1 AS cor0 ---- 150 153 192 onlyif mysql # use DIV operator for integer division query I rowsort label-6541 SELECT DISTINCT - col0 * - col1 DIV + col1 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-6541 SELECT DISTINCT - col0 * - col1 / + col1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL col0 * 33 + + 66 * + col0 AS col0 FROM tab0 AS cor0 ---- 2376 3465 8811 skipif mysql # not compatible query I rowsort SELECT - - col2 + - CAST ( col2 + + col2 AS REAL ) AS col0 FROM tab2 cor0 ---- -26 -27 -38 onlyif mysql # use DIV operator for integer division query I rowsort label-6544 SELECT ALL - - col0 DIV col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6544 SELECT ALL - - col0 / col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6545 SELECT ALL + col1 + col1 DIV ( col0 ) col0 FROM tab2 ---- 17 35 59 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6545 SELECT ALL + col1 + col1 / ( col0 ) col0 FROM tab2 ---- 17 35 59 query I rowsort SELECT DISTINCT 44 * + col0 + 97 * - col1 AS col2 FROM tab1 ---- -2390 1846 2259 query I rowsort SELECT 24 + - tab0.col0 AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 13bbda7ee15e59c3526405e2076c3b2e query I rowsort SELECT col0 + - col1 * + ( - tab2.col0 ) AS col2 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT DISTINCT 57 + ( cor1.col1 ) + 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 155 160 166 query I rowsort SELECT + 62 + + col0 FROM tab0 AS cor0 ---- 151 86 97 onlyif mysql # use DIV operator for integer division query I rowsort label-6551 SELECT + col0 DIV cor0.col2 col1 FROM tab1 AS cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6551 SELECT + col0 / cor0.col2 col1 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT - + 16 * col2 AS col1 FROM tab2 AS cor0 ---- -416 -432 -608 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + col2 * + 99 col1 FROM tab0 AS cor0 ---- 107811 665676 99 query I rowsort SELECT - - ( - col2 ) + col1 AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT col2 * col0 + - col2 + + col1 FROM tab1 cor0 ---- 134 3601 7597 query I rowsort SELECT ALL - col2 + col1 * + col1 FROM tab2 ---- 251 3455 934 query I rowsort SELECT DISTINCT - col0 * 31 AS col1 FROM tab0 cor0 ---- -1085 -2759 -744 query I rowsort SELECT DISTINCT 49 * - col2 + col1 FROM tab0 cor0 ---- -1531 -3927 48 query I rowsort SELECT - 59 FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to 2d947a91062cb6f04dae4c2cd8f99509 query I rowsort SELECT + 70 + + col1 AS col1 FROM tab2 AS cor0 ---- 101 129 87 query I rowsort SELECT + col2 * 79 AS col0 FROM tab2 cor0 ---- 2054 2133 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 0 col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 * - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6564 SELECT - CAST( + col2 AS SIGNED ) + + col2 * col0 FROM tab1 ---- 108 3591 7584 skipif mysql # not compatible query I rowsort label-6564 SELECT - CAST ( + col2 AS INTEGER ) + + col2 * col0 FROM tab1 ---- 108 3591 7584 query I rowsort SELECT DISTINCT - col2 * 60 AS col0 FROM tab0 ---- -1980 -4920 -60 query I rowsort SELECT ALL cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 onlyif mysql # use DIV operator for integer division query I rowsort label-6567 SELECT ALL 75 DIV tab0.col0 FROM tab0 ---- 0 2 3 skipif mysql # not compatible query I rowsort label-6567 SELECT ALL 75 / tab0.col0 FROM tab0 ---- 0 2 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 95 * + 46 col2 FROM tab2 ---- 4370 onlyif mysql # use DIV operator for integer division query I rowsort label-6569 SELECT - 66 DIV + col2 AS col2 FROM tab0 AS cor0 ---- -2 -66 0 skipif mysql # not compatible query I rowsort label-6569 SELECT - 66 / + col2 AS col2 FROM tab0 AS cor0 ---- -2 -66 0 query I rowsort SELECT DISTINCT + 3 + - col1 FROM tab2 AS cor0 ---- -14 -28 -56 query I rowsort SELECT + 16 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT + - col0 * 16 FROM tab2 AS cor0 ---- -112 -1248 -1264 query I rowsort SELECT ALL - col1 + 87 AS col2 FROM tab0 cor0 ---- -10 -4 1 query I rowsort SELECT + + 32 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to cf4f01ac97eb83445b1721f3ae28961a query I rowsort SELECT + col2 - + col1 FROM tab2 ---- -33 -4 21 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6576 SELECT col1 * CAST( NULL AS DECIMAL ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6576 SELECT col1 * CAST ( NULL AS REAL ) FROM tab2 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6577 SELECT CAST( NULL AS SIGNED ) + 18 / col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6577 SELECT CAST ( NULL AS INTEGER ) + 18 / col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 33 + + 69 FROM tab0 AS cor0 ---- 102 102 102 query I rowsort SELECT ALL + cor0.col2 * 14 + col1 FROM tab2 AS cor0 ---- 409 423 549 query I rowsort SELECT DISTINCT + col2 * + 26 * cor0.col0 AS col2 FROM tab2 cor0 ---- 4914 52728 78052 query I rowsort SELECT col2 + col2 * - col0 AS col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 onlyif mysql # use DIV operator for integer division query I rowsort label-6582 SELECT col1 + + col2 DIV col0 + + col0 * col1 AS col2 FROM tab0 cor0 ---- 2151 3492 8190 skipif mysql # not compatible query I rowsort label-6582 SELECT col1 + + col2 / col0 + + col0 * col1 AS col2 FROM tab0 cor0 ---- 2151 3492 8190 query I rowsort SELECT 48 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b query I rowsort SELECT + 74 + col1 AS col0 FROM tab1 ---- 100 84 87 query I rowsort SELECT + + col2 + - col0 * col0 * col1 AS col2 FROM tab1 AS cor0 ---- -180 -40903 -83104 query I rowsort SELECT cor0.col2 * - ( col0 ) + col2 FROM tab2 cor0 ---- -162 -2002 -2964 query I rowsort SELECT + col0 + + col1 + - col0 AS col2 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + col0 + 20 * + col0 AS col0 FROM tab2 AS cor0 ---- 147 1638 1659 query I rowsort SELECT + 90 FROM tab2, tab2 cor0, tab0 cor1 ---- 27 values hashing to 5d25a546acf3ae171e731e50adc0112e query I rowsort SELECT DISTINCT + col1 + ( - col2 * col0 ) AS col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6591 SELECT ALL - + CAST( NULL AS SIGNED ) * - 57 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6591 SELECT ALL - + CAST ( NULL AS INTEGER ) * - 57 FROM tab2 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6592 SELECT ALL + - cor0.col0 DIV - 35 AS col0 FROM tab0 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-6592 SELECT ALL + - cor0.col0 / - 35 AS col0 FROM tab0 AS cor0 ---- 0 1 2 onlyif mysql # use DIV operator for integer division query I rowsort label-6593 SELECT DISTINCT + 31 DIV 56 + + col1 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-6593 SELECT DISTINCT + 31 / 56 + + col1 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT - 78 * - ( cor0.col0 ) - col0 FROM tab1 AS cor0 ---- 231 4928 6160 onlyif mysql # use DIV operator for integer division query I rowsort label-6595 SELECT ALL - + 71 + 22 DIV + col1 FROM tab1 AS cor0 ---- -69 -70 -71 skipif mysql # not compatible query I rowsort label-6595 SELECT ALL - + 71 + 22 / + col1 FROM tab1 AS cor0 ---- -69 -70 -71 query I rowsort SELECT - col1 * ( + cor0.col2 ) FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT - col1 * - col1 * - col0 AS col0 FROM tab1 cor0 ---- -13520 -2028 -6400 query I rowsort SELECT ALL - cor0.col2 * 48 AS col2 FROM tab1 AS cor0 ---- -2592 -2736 -4608 query I rowsort SELECT DISTINCT + 47 * cor0.col0 + - col1 FROM tab2 AS cor0 ---- 298 3607 3696 query I rowsort SELECT - + col0 + 14 * col1 FROM tab0 AS cor0 ---- 1180 1185 1323 onlyif mysql # use DIV operator for integer division query I rowsort label-6601 SELECT DISTINCT + - ( + cor0.col1 ) + cor0.col0 DIV + col1 FROM tab2 AS cor0 ---- -13 -31 -58 skipif mysql # not compatible query I rowsort label-6601 SELECT DISTINCT + - ( + cor0.col1 ) + cor0.col0 / + col1 FROM tab2 AS cor0 ---- -13 -31 -58 query I rowsort SELECT + ( + 62 ) FROM tab1 AS cor0 ---- 62 62 62 query I rowsort SELECT ALL + + 27 * - cor0.col2 + + col1 AS col0 FROM tab0 AS cor0 ---- -2123 -805 70 query I rowsort SELECT + + col0 * cor0.col2 + col2 * - 42 FROM tab0 cor0 ---- -594 -7 3854 query I rowsort SELECT DISTINCT + 10 FROM tab0 AS cor0 ---- 10 onlyif mysql # use DIV operator for integer division query I rowsort label-6606 SELECT - - col2 DIV - col1 col0 FROM tab2 AS cor0 ---- -2 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6606 SELECT - - col2 / - col1 col0 FROM tab2 AS cor0 ---- -2 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 * - col2 col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT - 10 + + cor0.col2 FROM tab2 AS cor0 ---- 16 17 28 onlyif mysql # use DIV operator for integer division query I rowsort label-6609 SELECT - 32 + - col1 DIV col0 FROM tab2 AS cor0 ---- -32 -32 -36 skipif mysql # not compatible query I rowsort label-6609 SELECT - 32 + - col1 / col0 FROM tab2 AS cor0 ---- -32 -32 -36 query I rowsort SELECT ALL - col1 * col0 + + ( 4 ) FROM tab1 AS cor0 ---- -1036 -636 -74 query I rowsort SELECT - col1 * col0 + + 11 FROM tab0 AS cor0 ---- -2053 -3384 -8088 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6612 SELECT CAST( 37 AS SIGNED ) FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to c023509f63faa044d654943e6df55ca2 skipif mysql # not compatible query I rowsort label-6612 SELECT CAST ( 37 AS INTEGER ) FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to c023509f63faa044d654943e6df55ca2 query I rowsort SELECT ALL cor0.col0 * col1 + col1 AS col0 FROM tab0 AS cor0 ---- 2150 3492 8190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 62 * cor0.col2 + + ( - col0 + col2 ) * - 86 col0 FROM tab1 AS cor0 ---- -1038 4136 4576 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6615 SELECT - 29 + + col2 * CAST( NULL AS SIGNED ) * - col0 - col1 * - ( col0 + + col1 ) / + 95 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6615 SELECT - 29 + + col2 * CAST ( NULL AS INTEGER ) * - col0 - col1 * - ( col0 + + col1 ) / + 95 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + - col1 * + col0 AS col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-6618 SELECT - - 81 + - col1 DIV col0 FROM tab0 AS cor0 ---- 78 79 80 skipif mysql # not compatible query I rowsort label-6618 SELECT - - 81 + - col1 / col0 FROM tab0 AS cor0 ---- 78 79 80 query I rowsort SELECT ALL - col0 + + col2 * 97 FROM tab1 ---- 5235 5465 9232 onlyif mysql # use DIV operator for integer division query I rowsort label-6620 SELECT - 10 - col1 DIV col0 AS col1 FROM tab0 ---- -11 -12 -13 skipif mysql # not compatible query I rowsort label-6620 SELECT - 10 - col1 / col0 AS col1 FROM tab0 ---- -11 -12 -13 query I rowsort SELECT ALL + cor0.col0 * 59 FROM tab1 AS cor0 ---- 177 3776 4720 onlyif mysql # use DIV operator for integer division query I rowsort label-6622 SELECT DISTINCT col1 + tab1.col0 * + 76 + + col1 DIV tab1.col2 FROM tab1 ---- 254 4874 6093 skipif mysql # not compatible query I rowsort label-6622 SELECT DISTINCT col1 + tab1.col0 * + 76 + + col1 / tab1.col2 FROM tab1 ---- 254 4874 6093 onlyif mysql # use DIV operator for integer division query I rowsort label-6623 SELECT + col1 * + col1 + - col2 * cor0.col2 DIV - CAST( - col2 + - cor0.col1 AS SIGNED ) FROM tab2 AS cor0 ---- 263 3474 949 skipif mysql # not compatible query I rowsort label-6623 SELECT + col1 * + col1 + - col2 * cor0.col2 / - CAST ( - col2 + - cor0.col1 AS INTEGER ) FROM tab2 AS cor0 ---- 263 3474 949 query I rowsort SELECT + col2 * + 31 FROM tab2 AS cor0 ---- 1178 806 837 onlyif mysql # use DIV operator for integer division query I rowsort label-6625 SELECT - col1 * col2 DIV - cor0.col0 + - col1 AS col1 FROM tab0 AS cor0 ---- -8 -95 32 skipif mysql # not compatible query I rowsort label-6625 SELECT - col1 * col2 / - cor0.col0 + - col1 AS col1 FROM tab0 AS cor0 ---- -8 -95 32 onlyif mysql # use DIV operator for integer division query I rowsort label-6626 SELECT cor0.col2 * - ( - col1 ) + col1 DIV col1 FROM tab0 AS cor0 ---- 2839 7463 98 skipif mysql # not compatible query I rowsort label-6626 SELECT cor0.col2 * - ( - col1 ) + col1 / col1 FROM tab0 AS cor0 ---- 2839 7463 98 query I rowsort SELECT ALL - col2 * + ( + cor0.col1 ) AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT - + cor0.col1 + 88 FROM tab2 AS cor0 ---- 29 57 71 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6629 SELECT ALL - col0 + + CAST( NULL AS SIGNED ) / + 21 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6629 SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) / + 21 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + col2 * - 51 + - col2 FROM tab0 AS cor0 ---- -1716 -4264 -52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6631 SELECT col2 + CAST( NULL AS SIGNED ) * - cor0.col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6631 SELECT col2 + CAST ( NULL AS INTEGER ) * - cor0.col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( col0 ) + - ( - 55 ) * col2 FROM tab2 ---- 1352 1478 2011 query I rowsort SELECT ALL tab1.col1 + + col2 * - tab1.col0 FROM tab1 ---- -136 -3638 -7667 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col0 ) * + col2 + - col1 + + col0 col2 FROM tab2 ---- -2009 -213 -2940 query I rowsort SELECT - col1 + - col0 * 0 * + col0 FROM tab0 ---- -86 -91 -97 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2, tab2 AS cor3 ---- 3645 values hashing to 81a27955147133c47c9e8e63dacc5c37 query I rowsort SELECT - cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT DISTINCT col0 + col0 * + col2 AS col0 FROM tab1 AS cor0 ---- 165 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 0 col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT - 84 + col0 * - col2 AS col0 FROM tab2 AS cor0 ---- -2112 -273 -3086 query I rowsort SELECT ALL 52 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 7f4ae30893ab330784829711032ae599 query I rowsort SELECT DISTINCT - 53 AS col0 FROM tab1 AS cor0 ---- -53 query I rowsort SELECT DISTINCT - ( col0 ) + - col0 * cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1260 -600 -8010 query I rowsort SELECT + 95 * col0 FROM tab2 AS cor0 ---- 665 7410 7505 query I rowsort SELECT DISTINCT + - ( + col2 ) * col2 AS col0 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT 73 + col2 + + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 107 177 190 query I rowsort SELECT DISTINCT - 78 + - col1 AS col0 FROM tab2 AS cor0 ---- -109 -137 -95 query I rowsort SELECT + 54 + col0 FROM tab1 AS cor0 ---- 118 134 57 query I rowsort SELECT DISTINCT 40 AS col1 FROM tab2, tab1, tab2 cor0 ---- 40 onlyif mysql # use DIV operator for integer division query I rowsort label-6650 SELECT + col2 DIV tab1.col0 AS col2 FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-6650 SELECT + col2 / tab1.col0 AS col2 FROM tab1 ---- 0 1 18 query I rowsort SELECT DISTINCT - col0 * - tab0.col2 + - col2 AS col0 FROM tab0 ---- 34 7216 759 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6652 SELECT DISTINCT - 74 * col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6652 SELECT DISTINCT - 74 * col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT 83 + col0 AS col0 FROM tab2 cor0 ---- 161 162 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + - cor0.col1 col2 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT + col2 * col2 * + 24 + + col1 FROM tab1 AS cor0 ---- 221197 70010 77986 onlyif mysql # use DIV operator for integer division query I rowsort label-6656 SELECT ALL - 67 DIV col2 - col0 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1040 -641 -79 skipif mysql # not compatible query I rowsort label-6656 SELECT ALL - 67 / col2 - col0 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1040 -641 -79 query I rowsort SELECT + - cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- -1444 -676 -729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6658 SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-6658 SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 ---- NULL query I rowsort SELECT ALL - cor1.col2 + cor1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 36ab59c6b23903b005e63f870ff8014d query I rowsort SELECT DISTINCT - - 73 AS col2 FROM tab1, tab2, tab1 AS cor0 ---- 73 query I rowsort SELECT + 93 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 85ef191bf1b307f300b3fd49992fcae7 query I rowsort SELECT - + 55 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to b90e74bece5521b514096c5b6e105fde query I rowsort SELECT ALL + ( + col0 ) * 70 AS col1 FROM tab0 ---- 1680 2450 6230 query I rowsort SELECT - col1 * col2 + 81 FROM tab0 AS cor0 ---- -16 -2757 -7381 query I rowsort SELECT DISTINCT - 5 * - col2 * - col0 AS col2 FROM tab2 AS cor0 ---- -10140 -15010 -945 query I rowsort SELECT + 62 + + col1 FROM tab0 AS cor0 ---- 148 153 159 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6667 SELECT - col1 * + col1 + + 16 * + ( col1 * CAST( col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 ---- 19799 21788 9020 skipif mysql # not compatible query I rowsort label-6667 SELECT - col1 * + col1 + + 16 * + ( col1 * CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 ---- 19799 21788 9020 query I rowsort SELECT + col1 + 38 FROM tab2 cor0 ---- 55 69 97 query I rowsort SELECT + + col2 * col0 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT + + col2 * + 74 * 26 AS col1 FROM tab2 AS cor0 ---- 50024 51948 73112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 56 + - col0 col2 FROM tab2 ---- -134 -135 -63 query I rowsort SELECT + col2 * - col2 + + 34 AS col2 FROM tab0 AS cor0 ---- -1055 -6690 33 query I rowsort SELECT DISTINCT - col1 + - 42 AS col0 FROM tab2 AS cor0 ---- -101 -59 -73 query I rowsort SELECT ALL - + col0 + + ( + col2 ) * - col2 AS col1 FROM tab2 AS cor0 ---- -1523 -736 -754 query I rowsort SELECT - col1 * ( col1 + + col0 ) FROM tab2 AS cor0 ---- -1178 -1632 -8083 query I rowsort SELECT + + 92 + + col1 FROM tab0 cor0 ---- 178 183 189 query I rowsort SELECT ALL + + 0 * cor0.col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6678 SELECT ( - cor0.col1 ) DIV cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-6678 SELECT ( - cor0.col1 ) / cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT col0 + 76 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 6560 7005 7407 query I rowsort SELECT DISTINCT - - ( - 45 ) * + col2 * col0 + + col0 FROM tab2 AS cor0 ---- -135011 -8498 -91182 query I rowsort SELECT DISTINCT cor0.col0 + col1 * + col0 + - 76 FROM tab0 AS cor0 ---- 2012 3354 8112 query I rowsort SELECT - + col2 + col1 * col2 FROM tab2 cor0 ---- 1508 608 810 onlyif mysql # use DIV operator for integer division query I rowsort label-6683 SELECT - - col2 DIV col1 AS col1 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-6683 SELECT - - col2 / col1 AS col1 FROM tab1 AS cor0 ---- 2 5 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 59 col1 FROM tab1 AS cor0 ---- 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 + ( - col2 ) * ( col0 ) col1 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-6686 SELECT ALL col0 DIV 45 FROM tab2 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-6686 SELECT ALL col0 / 45 FROM tab2 ---- 0 1 1 query I rowsort SELECT - + 58 * col1 - col2 FROM tab1 AS cor0 ---- -1562 -637 -850 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6688 SELECT ALL - col0 * col1 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 ---- -1381 -244 -4628 skipif mysql # not compatible query I rowsort label-6688 SELECT ALL - col0 * col1 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT cor0.col1 * col2 + + col1 * + col1 AS col1 FROM tab1 AS cor0 ---- 1417 2080 670 query I rowsort SELECT - 0 + col2 * - 18 AS col2 FROM tab2 AS cor0 ---- -468 -486 -684 query I rowsort SELECT + 60 * col0 + - col0 FROM tab1 AS cor0 ---- 177 3776 4720 query I rowsort SELECT ALL - col0 + + col1 * - col0 AS col0 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT ALL + 18 + col0 AS col2 FROM tab2 ---- 25 96 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6694 SELECT + col1 * + col1 - - CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6694 SELECT + col1 * + col1 - - CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + - cor0.col1 - + col1 * + ( col2 ) AS col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT - 78 * - col0 + cor0.col2 AS col1 FROM tab2 cor0 ---- 573 6110 6200 query I rowsort SELECT col1 * + col2 + 93 * - col1 + col0 FROM tab1 ---- -1011 -296 119 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6698 SELECT - CAST( NULL AS SIGNED ) * 79 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6698 SELECT - CAST ( NULL AS INTEGER ) * 79 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6699 SELECT tab1.col2 - + 17 DIV col0 AS col2 FROM tab1 ---- 49 57 96 skipif mysql # not compatible query I rowsort label-6699 SELECT tab1.col2 - + 17 / col0 AS col2 FROM tab1 ---- 49 57 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6700 SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6700 SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT tab2.col2 - - 96 AS col2 FROM tab2 ---- 122 123 134 query I rowsort SELECT - 33 * + col2 FROM tab2 ---- -1254 -858 -891 query I rowsort SELECT ALL + tab1.col0 * col1 + - col2 * col2 FROM tab1 ---- -2609 -2838 -8176 query I rowsort SELECT ALL col0 + + col0 + - tab0.col0 * col1 FROM tab0 ---- -2016 -3325 -7921 onlyif mysql # use DIV operator for integer division query I rowsort label-6705 SELECT - cor0.col1 + col1 DIV col0 + - 49 AS col1 FROM tab0 AS cor0 ---- -132 -139 -144 skipif mysql # not compatible query I rowsort label-6705 SELECT - cor0.col1 + col1 / col0 + - 49 AS col1 FROM tab0 AS cor0 ---- -132 -139 -144 query I rowsort SELECT ALL + 80 * - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -2080 -2160 -3040 onlyif mysql # use DIV operator for integer division query I rowsort label-6707 SELECT ALL col1 + col0 DIV + col0 FROM tab1 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-6707 SELECT ALL col1 + col0 / + col0 FROM tab1 ---- 11 14 27 query I rowsort SELECT + 10 * col0 + cor0.col1 * col2 AS col0 FROM tab1 AS cor0 ---- 1210 1434 2048 query I rowsort SELECT DISTINCT + 27 * col0 + col0 FROM tab0 AS cor0 ---- 2492 672 980 query I rowsort SELECT ALL - col0 * - col2 + - col2 * - col2 FROM tab1 AS cor0 ---- 16896 3078 6897 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6711 SELECT + col2 + col0 * CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0 ---- -22 -6058 -6203 skipif mysql # not compatible query I rowsort label-6711 SELECT + col2 + col0 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0 ---- -22 -6058 -6203 query I rowsort SELECT + + 28 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 108 31 92 query I rowsort SELECT - + 78 * + col1 + ( - col0 ) * cor0.col0 AS col0 FROM tab2 AS cor0 ---- -10686 -2467 -7567 query I rowsort SELECT - - 5 * cor0.col0 + - col2 AS col1 FROM tab1 AS cor0 ---- -39 263 304 onlyif mysql # use DIV operator for integer division query I rowsort label-6715 SELECT ALL - cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-6715 SELECT ALL - cor0.col0 / col2 AS col1 FROM tab0 AS cor0 ---- -1 -35 0 query I rowsort SELECT DISTINCT - 86 AS col1 FROM tab0 cor0 ---- -86 query I rowsort SELECT + 85 + - col2 AS col0 FROM tab1 AS cor0 ---- -11 28 31 query I rowsort SELECT DISTINCT + + col0 + col0 * cor0.col0 FROM tab1 cor0 ---- 12 4160 6480 query I rowsort SELECT DISTINCT + cor0.col0 + col0 * - col1 AS col2 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT + 69 * - 34 AS col2 FROM tab1 ---- -2346 -2346 -2346 onlyif mysql # use DIV operator for integer division query I rowsort label-6721 SELECT ALL - + col0 DIV + col2 + col2 FROM tab1 AS cor0 ---- 54 56 96 skipif mysql # not compatible query I rowsort label-6721 SELECT ALL - + col0 / + col2 + col2 FROM tab1 AS cor0 ---- 54 56 96 query I rowsort SELECT DISTINCT cor0.col2 * - cor0.col1 - + 23 AS col2 FROM tab1 cor0 ---- -1271 -1427 -593 onlyif mysql # use DIV operator for integer division query I rowsort label-6723 SELECT DISTINCT + col0 DIV cor0.col2 AS col0 FROM tab1 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-6723 SELECT DISTINCT + col0 / cor0.col2 AS col0 FROM tab1 AS cor0 ---- 0 1 query I rowsort SELECT + col2 + + cor0.col2 FROM tab0 cor0 ---- 164 2 66 query I rowsort SELECT + 54 + col1 AS col0 FROM tab1 AS cor0 ---- 64 67 80 query I rowsort SELECT - - col1 + col0 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL + + ( + col2 ) + 73 AS col0 FROM tab1 AS cor0 ---- 127 130 169 query I rowsort SELECT + + col1 * + 82 FROM tab0 AS cor0 ---- 7052 7462 7954 query I rowsort SELECT cor0.col2 * ( cor0.col0 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT + col0 + 87 * + 39 * col0 FROM tab0 AS cor0 ---- 118790 302066 81456 onlyif mysql # use DIV operator for integer division query I rowsort label-6731 SELECT ALL + col1 DIV - ( col1 ) + - col0 AS col1 FROM tab0 AS cor0 ---- -25 -36 -90 skipif mysql # not compatible query I rowsort label-6731 SELECT ALL + col1 / - ( col1 ) + - col0 AS col1 FROM tab0 AS cor0 ---- -25 -36 -90 query I rowsort SELECT ALL col1 + 49 AS col2 FROM tab0 cor0 ---- 135 140 146 onlyif mysql # use DIV operator for integer division query I rowsort label-6733 SELECT - - col0 DIV - ( - col1 ) FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6733 SELECT - - col0 / - ( - col1 ) FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6734 SELECT DISTINCT col0 * col0 DIV 19 AS col0 FROM tab2 AS cor0 ---- 2 320 328 skipif mysql # not compatible query I rowsort label-6734 SELECT DISTINCT col0 * col0 / 19 AS col0 FROM tab2 AS cor0 ---- 2 320 328 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + - col2 col0 FROM tab0 cor0 ---- -171 -36 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6736 SELECT col2 * CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-6736 SELECT col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-6737 SELECT DISTINCT - + col0 DIV col0 AS col0 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-6737 SELECT DISTINCT - + col0 / col0 AS col0 FROM tab0 AS cor0 ---- -1 query I rowsort SELECT ALL + - cor0.col2 * + ( - col2 ) AS col1 FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT ALL - + col2 - + col1 * - cor0.col0 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT ALL col1 * + 96 + col1 AS col0 FROM tab1 AS cor0 ---- 1261 2522 970 query I rowsort SELECT DISTINCT - - cor0.col1 + - col0 AS col0 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT ( + 40 ) AS col0 FROM tab0 AS cor0 ---- 40 40 40 onlyif mysql # use DIV operator for integer division query I rowsort label-6743 SELECT DISTINCT - 50 DIV 14 AS col2 FROM tab2 AS cor0 ---- -3 skipif mysql # not compatible query I rowsort label-6743 SELECT DISTINCT - 50 / 14 AS col2 FROM tab2 AS cor0 ---- -3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6744 SELECT ALL - + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6744 SELECT ALL - + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6745 SELECT ( 36 ) + - col2 - CAST( col2 * col2 + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6745 SELECT ( 36 ) + - col2 - CAST ( col2 * col2 + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + cor0.col1 * + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 2064 3395 8099 query I rowsort SELECT ALL col0 * - 90 * col1 AS col0 FROM tab0 AS cor0 ---- -185760 -305550 -728910 query I rowsort SELECT ALL + + ( + col0 ) + + col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT col0 + col2 * - col1 AS col0 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT + col0 + - 59 FROM tab2 AS cor0 ---- -52 19 20 query I rowsort SELECT ALL - + ( col1 ) + - col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT tab2.col0 + + 11 FROM tab2 ---- 18 89 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6753 SELECT + - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-6753 SELECT + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + - cor0.col1 col2 FROM tab2 AS cor0 ---- -55 -58 -85 onlyif mysql # use DIV operator for integer division query I rowsort label-6755 SELECT col0 * col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 409 492 skipif mysql # not compatible query I rowsort label-6755 SELECT col0 * col0 / cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 409 492 query I rowsort SELECT cor0.col2 + - 40 FROM tab1 AS cor0 ---- 14 17 56 query I rowsort SELECT ALL col1 + - 50 FROM tab2 ---- -19 -33 9 query I rowsort SELECT 34 * tab1.col2 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 2102b6be9062c8709d13b34f311d6ac0 onlyif mysql # use DIV operator for integer division query I rowsort label-6759 SELECT + tab0.col0 + - col0 DIV col1 AS col0 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-6759 SELECT + tab0.col0 + - col0 / col1 AS col0 FROM tab0 ---- 24 35 89 query I rowsort SELECT col2 * + ( + 23 ) FROM tab2 AS cor0 ---- 598 621 874 query I rowsort SELECT col2 + + col0 * + col1 AS col1 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT DISTINCT col0 * 91 AS col0 FROM tab1 ---- 273 5824 7280 query I rowsort SELECT - ( + 15 ) AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + tab1.col1 col0 FROM tab1, tab2 AS cor0, tab2 cor1 ---- 10 13 26 query I rowsort SELECT DISTINCT - col1 + + ( + col2 ) * - col1 FROM tab2 AS cor0 ---- -1593 -663 -868 query I rowsort SELECT ALL + col2 * - 40 FROM tab1 AS cor0 ---- -2160 -2280 -3840 query I rowsort SELECT 43 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 query I rowsort SELECT ALL + col1 * - 1 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT + 90 * col1 + - 55 FROM tab1 AS cor0 ---- 1115 2285 845 query I rowsort SELECT col2 + col1 * + 84 AS col2 FROM tab0 AS cor0 ---- 7257 7726 8149 query I rowsort SELECT cor0.col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - col0 + - col2 * - 17 FROM tab1 AS cor0 ---- 1552 905 915 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * + 58 col0 FROM tab2 ---- 1508 1566 2204 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6774 SELECT + CAST( - col1 AS SIGNED ) * col0 AS col0 FROM tab2 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-6774 SELECT + CAST ( - col1 AS INTEGER ) * col0 AS col0 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT 74 * tab0.col0 FROM tab0 ---- 1776 2590 6586 query I rowsort SELECT tab1.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT + - col1 * col1 * cor0.col2 AS col0 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT ALL + 26 * - col1 AS col0 FROM tab2 ---- -1534 -442 -806 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6779 SELECT ALL - col1 + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6779 SELECT ALL - col1 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT 11 FROM tab2, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 69116737f3f57e2e3273f6dbb04d036c query I rowsort SELECT DISTINCT + col2 + + col2 + - ( + tab0.col2 + col0 ) AS col0 FROM tab0 ---- -34 -7 9 query I rowsort SELECT - 53 * col2 + - col1 * - ( + col1 + col0 ) * - col0 AS col2 FROM tab0 AS cor0 ---- -1462166 -228789 -448193 query I rowsort SELECT - - 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 query I rowsort SELECT + ( col1 ) * - cor0.col0 + - ( + col2 ) FROM tab2 AS cor0 ---- -1381 -244 -4628 onlyif mysql # use DIV operator for integer division query I rowsort label-6785 SELECT - + col0 DIV + ( col1 ) + - 21 FROM tab0 cor0 ---- -21 -21 -21 skipif mysql # not compatible query I rowsort label-6785 SELECT - + col0 / + ( col1 ) + - 21 FROM tab0 cor0 ---- -21 -21 -21 query I rowsort SELECT ALL ( 22 ) FROM tab2, tab0 AS cor0 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 query I rowsort SELECT ALL + - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT + cor1.col1 * 68 + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 27 values hashing to 44a651e416fded3bb439a990aa20a792 query I rowsort SELECT DISTINCT - 91 * col0 AS col1 FROM tab1 ---- -273 -5824 -7280 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6790 SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col1 + - col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6790 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col1 + - col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6791 SELECT + col0 DIV - ( col2 + - ( + col1 ) ) FROM tab2 cor0 ---- -3 1 2 skipif mysql # not compatible query I rowsort label-6791 SELECT + col0 / - ( col2 + - ( + col1 ) ) FROM tab2 cor0 ---- -3 1 2 query I rowsort SELECT - 5 * + col0 * - col0 FROM tab0 ---- 2880 39605 6125 query I rowsort SELECT - 90 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to f6f26b9a04da14807208b93d507095c5 query I rowsort SELECT col1 - 53 FROM tab0 AS cor0 ---- 33 38 44 onlyif mysql # use DIV operator for integer division query I rowsort label-6795 SELECT col1 + + ( cor0.col2 + col2 ) DIV - cor0.col0 FROM tab2 AS cor0 ---- 17 24 59 skipif mysql # not compatible query I rowsort label-6795 SELECT col1 + + ( cor0.col2 + col2 ) / - cor0.col0 FROM tab2 AS cor0 ---- 17 24 59 query I rowsort SELECT DISTINCT + 83 AS col2 FROM tab1, tab2 AS cor0 ---- 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 col2 FROM tab1, tab2 cor0 CROSS JOIN tab0 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6798 SELECT DISTINCT + 78 * + 4 - tab0.col2 * - CAST( - col0 AS SIGNED ) FROM tab0 ---- -480 -6986 277 skipif mysql # not compatible query I rowsort label-6798 SELECT DISTINCT + 78 * + 4 - tab0.col2 * - CAST ( - col0 AS INTEGER ) FROM tab0 ---- -480 -6986 277 query I rowsort SELECT ALL 89 * - col1 * col2 - - ( - 96 ) * col2 FROM tab2 ---- -139022 -61142 -77085 query I rowsort SELECT 95 - - col1 FROM tab2 AS cor0 ---- 112 126 154 query I rowsort SELECT col1 * - cor0.col2 + col1 * col2 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 * col1 + col2 * + 7 AS col1 FROM tab2 cor0 ---- -23 -3299 -772 onlyif mysql # use DIV operator for integer division query I rowsort label-6803 SELECT ALL - tab2.col2 + - col1 DIV col0 AS col0 FROM tab2 ---- -26 -31 -38 skipif mysql # not compatible query I rowsort label-6803 SELECT ALL - tab2.col2 + - col1 / col0 AS col0 FROM tab2 ---- -26 -31 -38 query I rowsort SELECT + tab1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT ALL + 21 + - tab0.col1 AS col2 FROM tab0 ---- -65 -70 -76 query I rowsort SELECT + + ( - col0 ) + 48 FROM tab0 AS cor0 ---- -41 13 24 query I rowsort SELECT cor0.col1 * + col2 * - 63 - col1 FROM tab1 AS cor0 ---- -35920 -78637 -88478 query I rowsort SELECT DISTINCT - ( - col1 ) + + 70 AS col1 FROM tab2 AS cor0 ---- 101 129 87 onlyif mysql # use DIV operator for integer division query I rowsort label-6809 SELECT col1 DIV + col2 - col2 AS col2 FROM tab0 ---- -31 -81 96 skipif mysql # not compatible query I rowsort label-6809 SELECT col1 / + col2 - col2 AS col2 FROM tab0 ---- -31 -81 96 query I rowsort SELECT ALL col0 * ( - cor0.col1 ) FROM tab0 cor0 ---- -2064 -3395 -8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6811 SELECT ALL CAST( + ( col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-6811 SELECT ALL CAST ( + ( col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-6812 SELECT ALL + - 37 DIV + col0 col0 FROM tab1 cor0 ---- -12 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6812 SELECT ALL + - 37 / + col0 col0 FROM tab1 cor0 ---- -12 0 0 query I rowsort SELECT 52 * 51 FROM tab2 AS cor0 ---- 2652 2652 2652 onlyif mysql # use DIV operator for integer division query I rowsort label-6814 SELECT DISTINCT - - col1 DIV cor0.col1 + - cor0.col0 * col1 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- -233 -40959 -83199 skipif mysql # not compatible query I rowsort label-6814 SELECT DISTINCT - - col1 / cor0.col1 + - cor0.col0 * col1 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- -233 -40959 -83199 query I rowsort SELECT ALL - - col0 + + 41 * col0 AS col1 FROM tab2 AS cor0 ---- 294 3276 3318 query I rowsort SELECT DISTINCT 19 * col2 * + col1 - + col0 FROM tab0 AS cor0 ---- 141689 1808 53898 onlyif mysql # use DIV operator for integer division query I rowsort label-6817 SELECT - col1 - col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0 ---- -18 -32 -60 skipif mysql # not compatible query I rowsort label-6817 SELECT - col1 - col1 / cor0.col1 AS col1 FROM tab2 AS cor0 ---- -18 -32 -60 query I rowsort SELECT - ( - col2 ) * - col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT ALL tab2.col2 * 24 FROM tab2 ---- 624 648 912 query I rowsort SELECT ALL + cor0.col2 + col0 * col1 AS col2 FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT DISTINCT + cor0.col2 * - 58 - col2 AS col0 FROM tab1 AS cor0 ---- -3186 -3363 -5664 query I rowsort SELECT + cor0.col1 - col2 AS col2 FROM tab0 cor0 ---- 53 9 96 onlyif mysql # use DIV operator for integer division query I rowsort label-6823 SELECT DISTINCT - - col0 DIV - col1 AS col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-6823 SELECT DISTINCT - - col0 / - col1 AS col1 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6824 SELECT DISTINCT + col1 DIV 86 + ( - cor0.col1 * + CAST( col2 AS SIGNED ) + col1 ) AS col1 FROM tab0 AS cor0 ---- -2751 -7370 1 skipif mysql # not compatible query I rowsort label-6824 SELECT DISTINCT + col1 / 86 + ( - cor0.col1 * + CAST ( col2 AS INTEGER ) + col1 ) AS col1 FROM tab0 AS cor0 ---- -2751 -7370 1 query I rowsort SELECT ALL - col0 * 37 + - ( col2 ) AS col1 FROM tab2 AS cor0 ---- -286 -2912 -2961 query I rowsort SELECT DISTINCT - 87 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 ---- -87 query I rowsort SELECT DISTINCT tab0.col1 + col2 * col0 - col0 * + col2 AS col0 FROM tab0 ---- 86 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-6828 SELECT ALL - col0 DIV + col1 - ( col2 ) * col2 FROM tab1 ---- -2916 -3255 -9222 skipif mysql # not compatible query I rowsort label-6828 SELECT ALL - col0 / + col1 - ( col2 ) * col2 FROM tab1 ---- -2916 -3255 -9222 query I rowsort SELECT DISTINCT + col2 + + 25 * - ( tab2.col2 ) AS col2 FROM tab2 ---- -624 -648 -912 query I rowsort SELECT DISTINCT + col1 + 30 AS col0 FROM tab0 ---- 116 121 127 query I rowsort SELECT ALL + ( - 79 ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to 1b7b0b34fe3431fb409719624d12791f query I rowsort SELECT + col0 * col2 - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT + col2 + - 78 AS col2 FROM tab0 ---- -45 -77 4 query I rowsort SELECT ALL + cor0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( + col0 AS REAL ) AS col1 FROM tab0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6836 SELECT ALL 49 * col0 * - CAST( NULL AS SIGNED ) + + 7 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6836 SELECT ALL 49 * col0 * - CAST ( NULL AS INTEGER ) + + 7 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + col2 - - col1 AS col2 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT DISTINCT 23 * col0 * + 45 AS col1 FROM tab0 AS cor0 ---- 24840 36225 92115 query I rowsort SELECT ALL + 66 + + col2 + + 87 AS col0 FROM tab0 AS cor0 ---- 154 186 235 query I rowsort SELECT 18 AS col0 FROM tab2 cor0 ---- 18 18 18 query I rowsort SELECT ALL + 78 * cor0.col1 + 85 * 16 FROM tab0 cor0 ---- 8068 8458 8926 query I rowsort SELECT DISTINCT + col2 * - col0 + + col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT DISTINCT + 82 - + col2 AS col0 FROM tab0 AS cor0 ---- 0 49 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 84 + + col2 * col2 col0 FROM tab2 AS cor0 ---- 1360 592 645 query I rowsort SELECT DISTINCT - + ( col2 ) + ( col2 ) + col0 FROM tab0 AS cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 - col1 col0 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL + 73 * col1 * cor0.col1 + + col0 AS col0 FROM tab1 AS cor0 ---- 12417 49351 7364 query I rowsort SELECT DISTINCT + 12 * - col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -125 -365 -630 query I rowsort SELECT DISTINCT + col0 + - col1 + col0 AS col0 FROM tab2 AS cor0 ---- -17 141 97 query I rowsort SELECT ALL + 78 + - cor0.col2 * - ( cor0.col2 * col1 ) FROM tab1 AS cor0 ---- 119886 32568 75894 query I rowsort SELECT ( + tab2.col2 + - col2 ) AS col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT col2 + col2 * - col0 AS col1 FROM tab0 ---- -34 -7216 -759 query I rowsort SELECT ( col2 ) + col0 * 1 FROM tab2 ---- 104 117 34 query I rowsort SELECT + cor0.col0 * col0 + col2 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT ALL + 22 AS col1 FROM tab2 ---- 22 22 22 query I rowsort SELECT DISTINCT - - 99 * col0 + - col0 * col2 AS col0 FROM tab2 AS cor0 ---- 4819 504 5694 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + ( - 8 ) col2 FROM tab1 AS cor0 ---- 46 49 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6858 SELECT col1 * + ( col2 + col0 * - CAST( col0 AS SIGNED ) ) FROM tab2 AS cor0 ---- -105451 -357422 -682 skipif mysql # not compatible query I rowsort label-6858 SELECT col1 * + ( col2 + col0 * - CAST ( col0 AS INTEGER ) ) FROM tab2 AS cor0 ---- -105451 -357422 -682 query I rowsort SELECT DISTINCT col2 * 13 - - col2 * - col2 FROM tab2 AS cor0 ---- -338 -378 -950 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6860 SELECT - col2 * CAST( - col1 AS SIGNED ) FROM tab1 cor0 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-6860 SELECT - col2 * CAST ( - col1 AS INTEGER ) FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + cor0.col1 + + col1 * + col1 AS col0 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT cor0.col0 + col0 AS col2 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT col2 * + ( 75 ) FROM tab0 AS cor0 ---- 2475 6150 75 query I rowsort SELECT DISTINCT cor0.col2 + 88 AS col1 FROM tab2 cor0 ---- 114 115 126 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + + col2 col1 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT col0 + + 85 FROM tab2 AS cor0 ---- 163 164 92 query I rowsort SELECT + ( - cor0.col2 ) + col1 * 55 AS col1 FROM tab1 AS cor0 ---- 1376 493 619 query I rowsort SELECT + 90 + - col1 * col0 FROM tab1 cor0 ---- -550 -950 12 query I rowsort SELECT ALL + ( cor0.col1 ) * col1 + + col2 AS col1 FROM tab1 AS cor0 ---- 157 265 730 query I rowsort SELECT DISTINCT + - 25 FROM tab1 AS cor0 ---- -25 query I rowsort SELECT ALL + ( + 13 ) AS col0 FROM tab1 AS cor0 ---- 13 13 13 query I rowsort SELECT ALL + col0 * col1 + col2 AS col1 FROM tab1 AS cor0 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-6873 SELECT ALL - 77 DIV ( col0 ) AS col1 FROM tab1 ---- -1 -25 0 skipif mysql # not compatible query I rowsort label-6873 SELECT ALL - 77 / ( col0 ) AS col1 FROM tab1 ---- -1 -25 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6874 SELECT DISTINCT + col1 DIV + 27 FROM tab1 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-6874 SELECT DISTINCT + col1 / + 27 FROM tab1 cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6875 SELECT ALL - 52 + col2 DIV - col1 AS col0 FROM tab1 AS cor0 ---- -54 -57 -59 skipif mysql # not compatible query I rowsort label-6875 SELECT ALL - 52 + col2 / - col1 AS col0 FROM tab1 AS cor0 ---- -54 -57 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-6876 SELECT - ( - col0 ) DIV + col0 AS col2 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6876 SELECT - ( - col0 ) / + col0 AS col2 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT - 2 + + col2 FROM tab1 AS cor0 ---- 52 55 94 query I rowsort SELECT - - col0 * 76 - + col1 FROM tab1 AS cor0 ---- 202 4854 6067 query I rowsort SELECT - 71 * + 91 FROM tab1 cor0 ---- -6461 -6461 -6461 query I rowsort SELECT ALL col2 + + 50 AS col2 FROM tab0 AS cor0 ---- 132 51 83 onlyif mysql # use DIV operator for integer division query I rowsort label-6881 SELECT DISTINCT + col2 + - col1 DIV col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-6881 SELECT DISTINCT + col2 + - col1 / col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT + tab2.col1 * + cor1.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 9 values hashing to 2dce99ccc9ab3f12533423eaad01995c query I rowsort SELECT 56 * - tab2.col1 + + col2 FROM tab2 ---- -1709 -3278 -914 query I rowsort SELECT DISTINCT - col0 + col1 + + col1 AS col2 FROM tab1 ---- -44 -54 49 onlyif mysql # use DIV operator for integer division query I rowsort label-6885 SELECT col0 DIV + col0 + + col0 DIV col0 FROM tab0 ---- 2 2 2 skipif mysql # not compatible query I rowsort label-6885 SELECT col0 / + col0 + + col0 / col0 FROM tab0 ---- 2 2 2 query I rowsort SELECT DISTINCT col2 * col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col1 ) ---- query I rowsort SELECT - col0 * col1 * col2 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT col2 * + col1 + tab0.col0 AS col2 FROM tab0 ---- 132 2862 7551 query I rowsort SELECT ALL + col0 + - col0 + + col0 AS col2 FROM tab1 ---- 3 64 80 query I rowsort SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( col0 ) ---- query I rowsort SELECT col0 * - tab1.col2 + + tab1.col2 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT col2 * - col2 * + col1 FROM tab1 ---- -119808 -32490 -75816 query I rowsort SELECT col1 + - tab0.col0 + + col0 FROM tab0 WHERE ( col0 + + col2 * - col1 ) > ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6894 SELECT tab2.col1 DIV col1 + - col1 col1 FROM tab2 ---- -16 -30 -58 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6894 SELECT tab2.col1 / col1 + - col1 col1 FROM tab2 ---- -16 -30 -58 query I rowsort SELECT DISTINCT + col2 * col1 + + ( col2 * col2 + - 6 ) AS col1 FROM tab1 AS cor0 ---- 10458 3813 4314 query I rowsort SELECT ALL + - col1 + + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT cor0.col0 + 60 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 51a3d4876b425f1071c936c226417447 query I rowsort SELECT + - cor0.col0 + cor0.col1 * ( - col2 ) FROM tab1 AS cor0 ---- -1328 -1407 -634 query I rowsort SELECT col2 AS col2 FROM tab0 WHERE NOT + col1 * + tab0.col2 > NULL ---- query III rowsort SELECT * FROM tab2 WHERE NOT + col2 * col2 > NULL ---- query I rowsort SELECT - col2 * - col1 + - col1 AS col0 FROM tab2 ---- 1475 629 806 query III rowsort SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND col1 * col2 + col2 / col2 ---- query III rowsort SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0 * col2 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + col1 col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL col0 AS col2 FROM tab1 WHERE - col0 IN ( + col0 ) ---- query I rowsort SELECT col0 * - col0 * col1 AS col0 FROM tab1 AS cor0 ---- -234 -40960 -83200 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL ) ---- query I rowsort SELECT cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT + col2 + - col0 * col2 AS col2 FROM tab0 WHERE NOT NULL <> - col0 + - col2 - + col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6910 SELECT - col0 DIV + col0 + + col2 FROM tab0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-6910 SELECT - col0 / + col0 + + col2 FROM tab0 ---- 0 32 81 onlyif mysql # use DIV operator for integer division query I rowsort label-6911 SELECT - col1 * tab2.col0 DIV - tab2.col1 - col0 AS col2 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6911 SELECT - col1 * tab2.col0 / - tab2.col1 - col0 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT col1 + col0 * col0 FROM tab2 ---- 6143 6258 80 query I rowsort SELECT col0 FROM tab1 WHERE col2 < NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + col1 * col0 col1 FROM tab2 ---- 1381 244 4628 onlyif mysql # use DIV operator for integer division query I rowsort label-6915 SELECT ALL col2 + + col0 DIV + col2 FROM tab1 ---- 54 58 96 skipif mysql # not compatible query I rowsort label-6915 SELECT ALL col2 + + col0 / + col2 FROM tab1 ---- 54 58 96 query I rowsort SELECT ALL col1 * col2 * tab1.col2 + col0 AS col2 FROM tab1 ---- 119888 32554 75819 query I rowsort SELECT DISTINCT col1 + col0 * - col1 AS col0 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT DISTINCT - col0 * col2 * - col0 AS col0 FROM tab2 AS cor0 ---- 1323 158184 237158 query IIIIII rowsort SELECT * FROM tab2, tab2 AS cor0 WHERE NULL < ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6920 SELECT + col1 DIV col0 + + col1 FROM tab2 ---- 17 35 59 skipif mysql # not compatible query I rowsort label-6920 SELECT + col1 / col0 + + col1 FROM tab2 ---- 17 35 59 query I rowsort SELECT ALL tab0.col2 * tab0.col0 AS col2 FROM tab0 WHERE NULL > col1 * - col2 ---- query I rowsort SELECT ALL col1 / tab1.col1 AS col1 FROM tab1 WHERE NOT ( NULL ) = NULL ---- query I rowsort SELECT ALL 80 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 878f012d707aab113cedaf56e6c52e94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 - 57 col2 FROM tab0 AS cor0 ---- -24 -56 25 query I rowsort SELECT DISTINCT - col1 * col1 + + col2 AS col1 FROM tab2 cor0 ---- -251 -3455 -934 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor1.col1 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2 ---- 243 values hashing to 7f0405f8197238fbd342972ef0bcee12 query I rowsort SELECT + 33 * 63 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 87367c82d3e67e6a725e85763853e961 query I rowsort SELECT DISTINCT - ( 60 ) - col2 FROM tab1 ---- -114 -117 -156 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 - - col1 col0 FROM tab2 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-6930 SELECT ALL + col2 * col2 - + tab0.col2 * col2 DIV ( tab0.col0 ) FROM tab0 ---- 1 1044 6649 skipif mysql # not compatible query I rowsort label-6930 SELECT ALL + col2 * col2 - + tab0.col2 * col2 / ( tab0.col0 ) FROM tab0 ---- 1 1044 6649 query I rowsort SELECT DISTINCT col2 * + 15 - col1 * + col2 FROM tab1 ---- -594 192 285 onlyif mysql # use DIV operator for integer division query I rowsort label-6932 SELECT tab2.col2 * col0 DIV col1 - col1 AS col1 FROM tab2 ---- -25 -25 159 skipif mysql # not compatible query I rowsort label-6932 SELECT tab2.col2 * col0 / col1 - col1 AS col1 FROM tab2 ---- -25 -25 159 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6933 SELECT ALL cor1.col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6933 SELECT ALL cor1.col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ( + col1 ) + col0 AS col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT - col0 * 84 AS col0 FROM tab0 AS cor0 ---- -2016 -2940 -7476 query I rowsort SELECT - col1 + 98 AS col2 FROM tab1 AS cor0 ---- 72 85 88 query I rowsort SELECT ALL ( col0 + - col1 * + col1 ) FROM tab1 ---- -36 -673 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 24 + col0 col0 FROM tab0 AS cor0 ---- 113 48 59 query I rowsort SELECT - col1 * col0 + + ( + col2 + - cor0.col1 ) FROM tab1 AS cor0 ---- -50 -593 -957 query I rowsort SELECT + 94 + col2 AS col2 FROM tab2 AS cor0 ---- 120 121 132 query I rowsort SELECT + - col2 * + ( + col2 ) AS col0 FROM tab1 cor0 ---- -2916 -3249 -9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - 23 col2 FROM tab2 AS cor0 ---- 1357 391 713 query I rowsort SELECT ALL - - col0 * + 74 AS col2 FROM tab0 AS cor0 ---- 1776 2590 6586 query I rowsort SELECT ALL + col0 * + col0 + col1 + - col0 AS col0 FROM tab1 cor0 ---- 32 4042 6333 query I rowsort SELECT DISTINCT - + col1 * + ( 74 * + col1 ) - cor0.col2 FROM tab1 AS cor0 ---- -12602 -50078 -7457 query I rowsort SELECT - + col0 * ( + cor0.col1 ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - col2 + + col1 * col1 AS col1 FROM tab1 AS cor0 ---- 43 622 73 query I rowsort SELECT DISTINCT cor0.col1 - col1 * col1 AS col1 FROM tab2 cor0 ---- -272 -3422 -930 query I rowsort SELECT ALL - + ( 6 ) * - col0 AS col2 FROM tab0 AS cor0 ---- 144 210 534 query I rowsort SELECT DISTINCT cor0.col0 * col1 + cor0.col2 FROM tab0 AS cor0 ---- 2097 3396 8181 onlyif mysql # use DIV operator for integer division query I rowsort label-6951 SELECT ALL ( col0 ) DIV - col2 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-6951 SELECT ALL ( col0 ) / - col2 FROM tab0 AS cor0 ---- -1 -35 0 query I rowsort SELECT - + ( ( cor0.col2 ) ) + col1 * col1 FROM tab1 AS cor0 ---- 43 622 73 onlyif mysql # use DIV operator for integer division query I rowsort label-6953 SELECT + 70 DIV + 18 AS col0 FROM tab1 AS cor0 ---- 3 3 3 skipif mysql # not compatible query I rowsort label-6953 SELECT + 70 / + 18 AS col0 FROM tab1 AS cor0 ---- 3 3 3 query I rowsort SELECT ALL + col1 + 95 * col0 FROM tab0 AS cor0 ---- 2366 3422 8546 onlyif mysql # use DIV operator for integer division query I rowsort label-6955 SELECT ALL 85 DIV col0 AS col0 FROM tab2 AS cor0 ---- 1 1 12 skipif mysql # not compatible query I rowsort label-6955 SELECT ALL 85 / col0 AS col0 FROM tab2 AS cor0 ---- 1 1 12 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 + col0 - + col2 * col1 col0 FROM tab2 AS cor0 ---- -1515 -584 -861 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6957 SELECT + CAST( + col2 AS SIGNED ) * col2 + + col0 * tab1.col2 AS col1 FROM tab1 ---- 16896 3078 6897 skipif mysql # not compatible query I rowsort label-6957 SELECT + CAST ( + col2 AS INTEGER ) * col2 + + col0 * tab1.col2 AS col1 FROM tab1 ---- 16896 3078 6897 query I rowsort SELECT ALL - col2 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT - col1 + col0 * col2 + + col1 * + col2 AS col0 FROM tab1 AS cor0 ---- 1540 4208 8915 query I rowsort SELECT - tab0.col2 + col0 * - tab0.col2 AS col2 FROM tab0 ---- -36 -7380 -825 query I rowsort SELECT 87 + - col2 AS col1 FROM tab1 ---- -9 30 33 onlyif mysql # use DIV operator for integer division query I rowsort label-6962 SELECT DISTINCT + ( + 79 ) DIV + col2 FROM tab0 ---- 0 2 79 skipif mysql # not compatible query I rowsort label-6962 SELECT DISTINCT + ( + 79 ) / + col2 FROM tab0 ---- 0 2 79 query I rowsort SELECT DISTINCT - ( 39 ) * - tab1.col1 AS col1 FROM tab1 ---- 1014 390 507 query I rowsort SELECT DISTINCT tab2.col0 * + col0 AS col2 FROM tab2 ---- 49 6084 6241 query I rowsort SELECT + + col0 * col2 * + cor0.col0 + - col1 FROM tab0 AS cor0 ---- 1128 18922 649431 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6966 SELECT ALL + col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6966 SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 * col1 + - 36 col1 FROM tab0 AS cor0 ---- 2028 3359 8063 query I rowsort SELECT col2 + + col0 + + cor0.col2 FROM tab0 AS cor0 ---- 253 37 90 query I rowsort SELECT DISTINCT - + col0 + 93 AS col0 FROM tab1 AS cor0 ---- 13 29 90 query I rowsort SELECT DISTINCT col0 - - col2 AS col2 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-6971 SELECT DISTINCT - - col1 + + 61 DIV 62 AS col2 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-6971 SELECT DISTINCT - - col1 + + 61 / 62 AS col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT col2 * + 5 * 0 + + col2 * - col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT - cor0.col2 + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6974 SELECT DISTINCT col2 * 68 + col1 DIV col0 FROM tab2 cor0 ---- 1768 1840 2584 skipif mysql # not compatible query I rowsort label-6974 SELECT DISTINCT col2 * 68 + col1 / col0 FROM tab2 cor0 ---- 1768 1840 2584 query I rowsort SELECT DISTINCT - col2 * + col2 + col2 AS col2 FROM tab0 AS cor0 ---- -1056 -6642 0 query I rowsort SELECT DISTINCT - col2 + col1 * - col1 FROM tab1 ---- -157 -265 -730 query I rowsort SELECT ALL 18 + + col1 FROM tab2 ---- 35 49 77 query I rowsort SELECT + col2 + col0 + - col1 AS col0 FROM tab0 ---- -29 -61 80 query I rowsort SELECT col2 - + ( col1 ) FROM tab0 ---- -53 -9 -96 query I rowsort SELECT ALL - col2 + + cor0.col0 * col2 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT ALL - col0 * 26 + - cor0.col1 * + col2 AS col0 FROM tab0 cor0 ---- -1007 -3462 -9776 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6982 SELECT col1 * CAST( 91 AS SIGNED ) FROM tab2 AS cor0 ---- 1547 2821 5369 skipif mysql # not compatible query I rowsort label-6982 SELECT col1 * CAST ( 91 AS INTEGER ) FROM tab2 AS cor0 ---- 1547 2821 5369 onlyif mysql # use DIV operator for integer division query I rowsort label-6983 SELECT ALL tab2.col2 DIV col0 AS col2 FROM tab2 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-6983 SELECT ALL tab2.col2 / col0 AS col2 FROM tab2 ---- 0 0 3 query I rowsort SELECT + - col2 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT + col2 * - col1 + col2 * + tab1.col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT + + col0 + + cor0.col2 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL - - col0 + - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT + col2 AS col2 FROM tab1 WHERE NOT - col1 * col0 > col0 + - col0 ---- 54 57 96 query I rowsort SELECT DISTINCT - cor0.col2 + col0 * col1 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT DISTINCT + col0 + col1 + - col0 FROM tab0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 65 col2 FROM tab1 ---- -65 -65 -65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + + tab2.col2 col0 FROM tab2 ---- 52 54 76 query I rowsort SELECT 75 * col1 FROM tab2 ---- 1275 2325 4425 query I rowsort SELECT ALL + col2 + - col2 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-6995 SELECT + 23 + col1 DIV - col0 col0 FROM tab0 AS cor0 ---- 20 21 22 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6995 SELECT + 23 + col1 / - col0 col0 FROM tab0 AS cor0 ---- 20 21 22 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * + col2 * + col1 col1 FROM tab2 cor0 ---- -22599 -24548 -39884 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 65 * col1 + + col0 col2 FROM tab1 AS cor0 ---- -1687 -586 -765 query I rowsort SELECT - col2 + + col2 * col1 + col0 * col2 FROM tab2 AS cor0 ---- 3536 3610 999 query I rowsort SELECT + col2 - col0 AS col2 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT ALL + cor0.col1 * col2 * + col0 AS col0 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT + col2 * col2 - cor0.col0 * col1 AS col2 FROM tab1 cor0 ---- 2609 2838 8176 query I rowsort SELECT DISTINCT + + 79 + + cor0.col1 AS col0 FROM tab2 cor0 ---- 110 138 96 query I rowsort SELECT + col0 + col1 * + col0 AS col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT + col2 + - col0 * - col2 AS col0 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT - + cor0.col0 + + col0 + - col1 FROM tab2 AS cor0 ---- -17 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 * col1 * col1 col1 FROM tab1 AS cor0 ---- 1000 17576 2197 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col0 * - col0 col2 FROM tab1 AS cor0 ---- -4153 -63 -6496 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * - col0 + 39 col1 FROM tab1 AS cor0 ---- -123 -3609 -7641 onlyif mysql # use DIV operator for integer division query I rowsort label-7009 SELECT ALL - + col2 DIV ( - col2 ) FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7009 SELECT ALL - + col2 / ( - col2 ) FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT 30 + col2 AS col0 FROM tab2 ---- 56 57 68 query I rowsort SELECT + 64 + - col0 FROM tab2 ---- -14 -15 57 query I rowsort SELECT col1 + - col1 * + 65 * col2 AS col0 FROM tab0 AS cor0 ---- -184384 -484939 -6208 query I rowsort SELECT col0 - ( + col1 ) AS col1 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT - col2 + ( col1 ) FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT col2 * - ( + 72 ) + col0 * + col1 * - 45 FROM tab1 AS cor0 ---- -32904 -53712 -7398 query I rowsort SELECT ( - 27 ) + + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 27 30 69 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab0.col0 col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT - 76 * - col2 FROM tab2 ---- 1976 2052 2888 query I rowsort SELECT + cor0.col0 + + col1 FROM tab2 AS cor0 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 80 + + col0 col0 FROM tab0 AS cor0 ---- -45 -56 9 query I rowsort SELECT + 60 + cor0.col2 * - col2 * 0 FROM tab2 AS cor0 ---- 60 60 60 query I rowsort SELECT 37 + 35 AS col2 FROM tab0 AS cor0 ---- 72 72 72 query I rowsort SELECT - + 62 AS col1 FROM tab0 cor0 ---- -62 -62 -62 query I rowsort SELECT ALL - col1 + col0 + col0 FROM tab2 AS cor0 ---- -17 141 97 query I rowsort SELECT + - 93 * col2 AS col0 FROM tab1 AS cor0 ---- -5022 -5301 -8928 query I rowsort SELECT - + 94 * col1 AS col2 FROM tab2 AS cor0 ---- -1598 -2914 -5546 query I rowsort SELECT DISTINCT - - col0 * + col2 + + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT - - 98 + - col1 * col1 AS col0 FROM tab1 AS cor0 ---- -2 -578 -71 query I rowsort SELECT ALL col0 * + col2 + - 16 FROM tab2 AS cor0 ---- 173 2012 2986 query I rowsort SELECT - 14 * + col0 FROM tab2 AS cor0 ---- -1092 -1106 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT CAST ( 17 + - col1 * col1 AS REAL ) col1 FROM tab1 ---- -152 -659 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7032 SELECT - col0 + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7032 SELECT - col0 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 + col1 AS col0 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT - + col1 * col0 * 97 FROM tab2 AS cor0 ---- -130271 -21049 -446394 query I rowsort SELECT - ( - 36 ) + - cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 0016e65cc0ac5184c950c483c1d54bae skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 8 col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to ffc5b4c98b57ae546521175995c49c57 query I rowsort SELECT DISTINCT + 59 AS col2 FROM tab1, tab2 cor0 ---- 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7038 SELECT DISTINCT CAST( NULL AS DECIMAL ) / cor1.col0 + tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-7038 SELECT DISTINCT CAST ( NULL AS REAL ) / cor1.col0 + tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- NULL query I rowsort SELECT DISTINCT + col0 * + col1 * 76 FROM tab1 AS cor0 ---- 48640 5928 79040 query I rowsort SELECT DISTINCT 61 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 61 query I rowsort SELECT DISTINCT - col2 * - 7 AS col1 FROM tab1 AS cor0 ---- 378 399 672 query I rowsort SELECT ALL - ( + cor0.col1 ) AS col1 FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT ALL + - 57 * col2 * cor0.col2 + col1 AS col2 FROM tab0 AS cor0 ---- -383177 -61987 40 onlyif mysql # use DIV operator for integer division query I rowsort label-7044 SELECT DISTINCT + 20 DIV cor0.col1 FROM tab1 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-7044 SELECT DISTINCT + 20 / cor0.col1 FROM tab1 AS cor0 ---- 0 1 2 query I rowsort SELECT - - col0 - 14 FROM tab2 cor0 ---- -7 64 65 query I rowsort SELECT DISTINCT col1 - + col1 * col2 FROM tab1 AS cor0 ---- -1235 -1378 -560 onlyif mysql # use DIV operator for integer division query I rowsort label-7047 SELECT - - ( - col2 ) * cor0.col1 + - 53 DIV col0 FROM tab1 AS cor0 ---- -1248 -1421 -570 skipif mysql # not compatible query I rowsort label-7047 SELECT - - ( - col2 ) * cor0.col1 + - 53 / col0 FROM tab1 AS cor0 ---- -1248 -1421 -570 query I rowsort SELECT ALL - 57 + + 51 * col1 FROM tab1 ---- 1269 453 606 onlyif mysql # use DIV operator for integer division query I rowsort label-7049 SELECT ALL + ( col1 ) DIV + col0 + ( - col0 ) AS col0 FROM tab1 ---- -64 -80 5 skipif mysql # not compatible query I rowsort label-7049 SELECT ALL + ( col1 ) / + col0 + ( - col0 ) AS col0 FROM tab1 ---- -64 -80 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 54 * + col0 col1 FROM tab1 ---- 162 3456 4320 query I rowsort SELECT col2 * col2 * col2 + 54 FROM tab0 cor0 ---- 35991 55 551422 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * col2 * col0 + col2 + - col2 col0 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT tab0.col1 + - ( col1 ) AS col1 FROM tab0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab0 cor3 ---- 3645 values hashing to 750b3c1b743e18f68d402d034647fcf2 query I rowsort SELECT - 52 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 9500afe5646d620d5e8943351a29d082 query I rowsort SELECT DISTINCT + - col1 * + col2 + col2 * + col2 FROM tab1 AS cor0 ---- 1512 2679 7968 query I rowsort SELECT DISTINCT + + cor0.col1 - + col2 * col0 FROM tab0 AS cor0 ---- -706 -7207 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 - col1 col1 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT cor0.col1 * - cor0.col0 + col0 AS col2 FROM tab0 AS cor0 ---- -2040 -3360 -8010 onlyif mysql # use DIV operator for integer division query I rowsort label-7060 SELECT DISTINCT + - col1 DIV ( - 44 + + col2 ) FROM tab2 AS cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-7060 SELECT DISTINCT + - col1 / ( - 44 + + col2 ) FROM tab2 AS cor0 ---- 1 2 3 query I rowsort SELECT ALL + 86 + - col0 FROM tab0 AS cor0 ---- -3 51 62 query I rowsort SELECT DISTINCT col1 * + cor0.col1 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT - ( cor0.col2 ) - col0 FROM tab2 cor0 ---- -104 -117 -34 query I rowsort SELECT - - 8 * + col2 FROM tab1 AS cor0 ---- 432 456 768 query I rowsort SELECT 25 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 525a55d5ed224a62da65df36731881a7 query I rowsort SELECT - 37 + - col1 + col0 * - col1 AS col1 FROM tab1 AS cor0 ---- -1090 -141 -687 query I rowsort SELECT - col0 + - cor0.col1 + - col1 FROM tab1 AS cor0 ---- -106 -55 -84 query I rowsort SELECT DISTINCT - ( - col0 ) * 47 FROM tab1 AS cor0 ---- 141 3008 3760 query I rowsort SELECT + + ( + col2 ) + 8 * + col1 AS col0 FROM tab2 AS cor0 ---- 174 275 498 query I rowsort SELECT DISTINCT - + 82 + - col1 FROM tab0 AS cor0 ---- -168 -173 -179 query I rowsort SELECT ALL + + col0 - - col0 * col2 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ALL - col0 + - cor0.col0 * col1 AS col2 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT + + ( + cor0.col1 ) * - col0 * + col0 + cor0.col1 FROM tab0 AS cor0 ---- -118728 -49450 -720720 query I rowsort SELECT col0 + cor0.col1 * + 24 FROM tab1 AS cor0 ---- 304 392 627 query I rowsort SELECT DISTINCT + 94 AS col2 FROM tab2 AS cor0 ---- 94 query I rowsort SELECT - + col1 + + col0 * col0 AS col2 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT + col1 * + 14 FROM tab2 AS cor0 ---- 238 434 826 query I rowsort SELECT DISTINCT col1 * 60 * 72 FROM tab0 AS cor0 ---- 371520 393120 419040 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 49 + 36 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 85 query I rowsort SELECT DISTINCT + 83 + col2 FROM tab2 ---- 109 110 121 query I rowsort SELECT ALL + col2 + - col1 AS col1 FROM tab2 ---- -33 -4 21 query I rowsort SELECT + tab2.col1 * - col2 - - 24 * col0 * col2 FROM tab2 ---- 3699 47138 71402 query I rowsort SELECT - col0 * - col1 + + col1 * col1 AS col0 FROM tab1 AS cor0 ---- 1209 740 754 query I rowsort SELECT - col0 + col0 * - col1 AS col2 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT ALL - col2 * col1 + ( - col1 ) AS col1 FROM tab1 cor0 ---- -1261 -1430 -580 query I rowsort SELECT + col0 * col2 + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 2704 4446 918 query I rowsort SELECT ALL col1 * ( 19 * - col1 + col0 * + col1 ) AS col0 FROM tab2 ---- -11532 17340 205379 onlyif mysql # use DIV operator for integer division query I rowsort label-7088 SELECT 22 DIV + 70 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7088 SELECT 22 / + 70 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT col0 * - ( 85 ) FROM tab2 ---- -595 -6630 -6715 onlyif mysql # use DIV operator for integer division query I rowsort label-7090 SELECT col2 + col0 DIV col0 FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-7090 SELECT col2 + col0 / col0 FROM tab2 ---- 27 28 39 query I rowsort SELECT DISTINCT + ( - tab0.col2 ) FROM tab0, tab1 cor0 ---- -1 -33 -82 query I rowsort SELECT ALL 65 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8bef2ea1f05f3514633f851312bdd805 query I rowsort SELECT ( col2 + - col1 * col2 ) FROM tab1 ---- -1152 -1350 -513 query I rowsort SELECT + ( + cor0.col1 ) * - 35 AS col1 FROM tab0 cor0 ---- -3010 -3185 -3395 query I rowsort SELECT DISTINCT + - 17 FROM tab1, tab0, tab2 AS cor0 ---- -17 onlyif mysql # use DIV operator for integer division query I rowsort label-7096 SELECT col1 DIV col2 + - tab1.col0 DIV 62 AS col2 FROM tab1 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-7096 SELECT col1 / col2 + - tab1.col0 / 62 AS col2 FROM tab1 ---- -1 -1 0 query I rowsort SELECT - ( 62 ) + tab0.col2 FROM tab0 ---- -29 -61 20 query I rowsort SELECT ALL + ( 17 ) + tab0.col0 + 97 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 9c323f638e36cd49b0ed664884ff48a1 query I rowsort SELECT DISTINCT + 40 * - col0 + + ( 13 ) AS col1 FROM tab2 AS cor0 ---- -267 -3107 -3147 query I rowsort SELECT + col2 + col0 - + 13 * 97 FROM tab1 AS cor0 ---- -1085 -1140 -1204 onlyif mysql # use DIV operator for integer division query I rowsort label-7101 SELECT ( col0 ) DIV ( + col2 + col1 * 14 ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7101 SELECT ( col0 ) / ( + col2 + col1 * 14 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 95 * - col1 + + 37 + col1 FROM tab1 cor0 ---- 1285 2533 997 query I rowsort SELECT ALL - - 34 AS col1 FROM tab2 AS cor0 ---- 34 34 34 query I rowsort SELECT ALL - - 91 * + col0 AS col2 FROM tab0 AS cor0 ---- 2184 3185 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-7105 SELECT + col1 + - col2 DIV + 88 - + 91 FROM tab2 AS cor0 ---- -32 -60 -74 skipif mysql # not compatible query I rowsort label-7105 SELECT + col1 + - col2 / + 88 - + 91 FROM tab2 AS cor0 ---- -32 -60 -74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 94 col2 FROM tab0 AS cor0 ---- 94 query I rowsort SELECT - col2 + - col1 * col2 - col2 FROM tab1 AS cor0 ---- -1440 -1512 -684 query I rowsort SELECT + col2 * 89 AS col2 FROM tab0 AS cor0 ---- 2937 7298 89 query I rowsort SELECT ALL - 16 * col2 AS col1 FROM tab0 AS cor0 ---- -1312 -16 -528 query I rowsort SELECT - ( col1 ) + cor0.col1 * col0 AS col1 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT DISTINCT + col2 + + col0 * + col2 AS col0 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT + ( - col1 ) + col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 41 * + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- -3116 query I rowsort SELECT ALL + 54 - col0 FROM tab2 AS cor0 ---- -24 -25 47 query I rowsort SELECT col0 * col0 + + col2 AS col2 FROM tab1 AS cor0 ---- 4153 63 6496 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor1.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 7 78 79 query I rowsort SELECT + + col1 * - col2 + - ( - col1 ) FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT ALL - tab2.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT + + col2 + + cor0.col1 * col2 AS col2 FROM tab2 AS cor0 ---- 1560 684 864 onlyif mysql # use DIV operator for integer division query I rowsort label-7120 SELECT ( - 56 ) DIV + cor0.col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 721682d0719de924079c33bd72eef789 skipif mysql # not compatible query I rowsort label-7120 SELECT ( - 56 ) / + cor0.col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 721682d0719de924079c33bd72eef789 query I rowsort SELECT ALL col0 * + col2 + + 5 AS col0 FROM tab2 ---- 194 2033 3007 query I rowsort SELECT ALL 29 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 onlyif mysql # use DIV operator for integer division query I rowsort label-7123 SELECT + col2 DIV CAST( + col2 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-7123 SELECT + col2 / CAST ( + col2 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0 ---- 87 92 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * 6 col0 FROM tab1 ---- 156 60 78 query I rowsort SELECT col2 * 7 AS col2 FROM tab0 ---- 231 574 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7126 SELECT - col2 + CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7126 SELECT - col2 + CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + 55 * cor0.col0 col1 FROM tab1 cor0 ---- 111 3463 4304 query I rowsort SELECT - cor0.col2 + - col0 * - cor0.col1 AS col0 FROM tab1 cor0 ---- 24 583 944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + + cor0.col0 col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT ALL + + 55 * col2 AS col0 FROM tab2 AS cor0 ---- 1430 1485 2090 query I rowsort SELECT cor0.col2 * - 2 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT DISTINCT - - 52 + + 24 FROM tab2 cor0 ---- 76 query I rowsort SELECT DISTINCT + 77 + - 2 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- 75 query I rowsort SELECT DISTINCT - 80 * cor0.col2 AS col2 FROM tab2 AS cor0 ---- -2080 -2160 -3040 query I rowsort SELECT DISTINCT + col2 + col2 * col0 * 33 AS col1 FROM tab1 AS cor0 ---- 120441 253536 5400 query I rowsort SELECT DISTINCT - cor0.col2 + 34 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- -4 7 8 query I rowsort SELECT + - 31 * col2 FROM tab0 AS cor0 ---- -1023 -2542 -31 query I rowsort SELECT DISTINCT + 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 73 query I rowsort SELECT cor0.col2 + col0 * col1 AS col0 FROM tab2 AS cor0 ---- 1381 244 4628 onlyif mysql # use DIV operator for integer division query I rowsort label-7140 SELECT DISTINCT + col0 DIV - col0 AS col1 FROM tab2 ---- -1 skipif mysql # not compatible query I rowsort label-7140 SELECT DISTINCT + col0 / - col0 AS col1 FROM tab2 ---- -1 onlyif mysql # use DIV operator for integer division query I rowsort label-7141 SELECT - 20 DIV - col2 FROM tab0 AS cor0 ---- 0 0 20 skipif mysql # not compatible query I rowsort label-7141 SELECT - 20 / - col2 FROM tab0 AS cor0 ---- 0 0 20 query I rowsort SELECT ALL col1 * - cor0.col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT 5 * cor0.col0 FROM tab2 AS cor0 ---- 35 390 395 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + + col2 * cor0.col0 col0 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT ( col1 ) + col1 * + col0 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT + 7 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 4e72e9e33dacac757f48d0ce46094607 query I rowsort SELECT ALL - col1 + - col2 * - 87 AS col1 FROM tab1 AS cor0 ---- 4672 4949 8339 query I rowsort SELECT ALL + col0 * 19 + + ( col0 ) AS col2 FROM tab1 AS cor0 ---- 1280 1600 60 query I rowsort SELECT DISTINCT - 31 + - col2 - + tab0.col2 FROM tab0 ---- -195 -33 -97 query I rowsort SELECT - col1 + - col0 + 93 AS col1 FROM tab1 ---- 0 19 64 query I rowsort SELECT col2 + col1 * + 52 + col2 AS col1 FROM tab2 ---- 1666 3120 960 query I rowsort SELECT ALL ( + col1 ) + col1 AS col1 FROM tab1 ---- 20 26 52 onlyif mysql # use DIV operator for integer division query I rowsort label-7153 SELECT + col2 DIV col0 + col2 AS col0 FROM tab0 AS cor0 ---- 1 34 82 skipif mysql # not compatible query I rowsort label-7153 SELECT + col2 / col0 + col2 AS col0 FROM tab0 AS cor0 ---- 1 34 82 query I rowsort SELECT DISTINCT ( tab2.col2 ) AS col2 FROM tab2, tab1 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL col0 - - col1 * col2 AS col2 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT ALL - + 13 + col2 FROM tab0 cor0 ---- -12 20 69 query I rowsort SELECT DISTINCT col2 * cor0.col0 AS col1 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT ( - col1 ) + 78 * - col0 FROM tab2 AS cor0 ---- -577 -6143 -6179 query I rowsort SELECT ALL ( - col0 ) + col1 * - 62 + + col1 FROM tab0 AS cor0 ---- -5270 -5640 -5952 query I rowsort SELECT DISTINCT - - 76 + col2 AS col2 FROM tab1 AS cor0 ---- 130 133 172 skipif mysql # not compatible query I rowsort SELECT + col1 * + col0 + CAST ( ( col1 ) AS REAL ) * - col2 + + col2 AS col0 FROM tab0 AS cor0 ---- -741 3299 719 query I rowsort SELECT DISTINCT 9 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 9 query I rowsort SELECT ( + col0 ) + - col2 + 39 FROM tab1 AS cor0 ---- -12 23 46 query I rowsort SELECT ALL + + col1 + cor0.col0 + + ( - 97 ) AS col0 FROM tab1 AS cor0 ---- -23 -4 -68 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 col1 FROM tab1, tab2 cor0 ---- 26 27 38 query I rowsort SELECT - col1 + ( col0 ) AS col2 FROM tab2 ---- -24 19 62 query I rowsort SELECT tab0.col1 * - col1 + col2 FROM tab0 ---- -7363 -8199 -9408 query I rowsort SELECT - col1 + ( + ( - col0 ) ) FROM tab2 ---- -137 -38 -96 query I rowsort SELECT col2 + 2 AS col0 FROM tab2 ---- 28 29 40 query I rowsort SELECT DISTINCT col0 + 69 FROM tab2 cor0 ---- 147 148 76 query I rowsort SELECT DISTINCT - col0 * 73 AS col1 FROM tab2 cor0 ---- -511 -5694 -5767 query I rowsort SELECT 34 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT + col1 + + 91 AS col2 FROM tab1 cor0 ---- 101 104 117 query I rowsort SELECT DISTINCT + cor0.col1 * cor0.col0 FROM tab0, tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + - cor0.col2 + + col1 * col1 FROM tab0 AS cor0 ---- 7363 8199 9408 query I rowsort SELECT - + col0 + - col2 * - cor0.col0 AS col1 FROM tab0 AS cor0 ---- 0 7209 768 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 * col1 col0 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + - 23 - col2 FROM tab2 AS cor0 ---- -49 -50 -61 onlyif mysql # use DIV operator for integer division query I rowsort label-7179 SELECT + col2 DIV 3 + col0 FROM tab0 cor0 ---- 116 35 35 skipif mysql # not compatible query I rowsort label-7179 SELECT + col2 / 3 + col0 FROM tab0 cor0 ---- 116 35 35 query I rowsort SELECT ALL - ( - 46 ) * col2 + cor0.col0 FROM tab2 cor0 ---- 1249 1274 1827 query I rowsort SELECT - + col1 - + 55 FROM tab2 AS cor0 ---- -114 -72 -86 query I rowsort SELECT ALL + 97 + col1 + + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 195 216 270 query I rowsort SELECT DISTINCT col0 - + col0 * + col2 AS col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT DISTINCT + ( col1 ) * + col2 - + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT - + cor0.col0 * + col2 + col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT ALL - + 33 * col1 FROM tab2 cor0 ---- -1023 -1947 -561 query I rowsort SELECT DISTINCT + ( col1 ) + + col0 * - 24 FROM tab2 AS cor0 ---- -137 -1813 -1879 query I rowsort SELECT ALL + tab0.col0 - col1 AS col0 FROM tab0 ---- -2 -62 -62 query I rowsort SELECT DISTINCT - col2 * - tab1.col0 - + col1 AS col0 FROM tab1 ---- 136 3638 7667 query I rowsort SELECT ALL + col0 - + col2 AS col2 FROM tab2 ---- -20 41 52 query I rowsort SELECT DISTINCT + col0 + + 6 FROM tab0 AS cor0 ---- 30 41 95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7192 SELECT - CAST( NULL AS SIGNED ) * col2 + - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7192 SELECT - CAST ( NULL AS INTEGER ) * col2 + - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( + col2 ) * col2 - col2 FROM tab0 AS cor0 ---- -1122 -2 -6806 query I rowsort SELECT ALL + col0 - + 57 FROM tab1 AS cor0 ---- -54 23 7 query I rowsort SELECT - cor0.col1 * col2 + col0 + 33 FROM tab2 cor0 ---- -1423 -534 -797 query I rowsort SELECT ALL col2 * + 98 AS col0 FROM tab1 AS cor0 ---- 5292 5586 9408 query I rowsort SELECT DISTINCT + col1 * + ( col0 ) * ( - 67 * col1 ) AS col0 FROM tab2 ---- -1529677 -18191706 -450709 query I rowsort SELECT + cor0.col1 * - ( col0 ) FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + col1 * ( col0 + ( + col2 ) ) * col1 FROM tab2 AS cor0 ---- 32674 33813 362024 query I rowsort SELECT + ( col0 ) + + col2 AS col1 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT + + 22 - col1 FROM tab0 AS cor0 ---- -64 -69 -75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 25 + col0 + + col1 col1 FROM tab2 AS cor0 ---- 121 162 63 query I rowsort SELECT + - col2 * + col0 AS col0 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT - cor0.col2 + + cor0.col1 - 28 AS col2 FROM tab2 AS cor0 ---- -24 -49 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + + col2 + + ( + 34 ) * col2 col2 FROM tab2 AS cor0 ---- 1409 952 988 query I rowsort SELECT ALL + ( + tab2.col1 ) + - col1 AS col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT - ( + col2 ) + + col1 * tab0.col0 + + col1 FROM tab0 ---- 2117 3491 8108 query I rowsort SELECT ALL - 69 + col1 * + col0 AS col2 FROM tab1 ---- 571 9 971 query I rowsort SELECT ALL col1 * + ( + col2 ) AS col2 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT ALL ( col0 ) + col1 AS col0 FROM tab1 ---- 29 74 93 query I rowsort SELECT DISTINCT - col1 + - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -109 -67 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 + ( col2 ) * col0 + 95 col2 FROM tab1 cor0 ---- 260 3807 7855 onlyif mysql # use DIV operator for integer division query I rowsort label-7213 SELECT DISTINCT col0 DIV 32 + - col0 FROM tab0 AS cor0 ---- -24 -34 -87 skipif mysql # not compatible query I rowsort label-7213 SELECT DISTINCT col0 / 32 + - col0 FROM tab0 AS cor0 ---- -24 -34 -87 query I rowsort SELECT ALL + - col1 * 46 * 7 FROM tab0 AS cor0 ---- -27692 -29302 -31234 onlyif mysql # use DIV operator for integer division query I rowsort label-7215 SELECT col0 DIV + col2 + tab0.col0 FROM tab0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-7215 SELECT col0 / + col2 + tab0.col0 FROM tab0 ---- 24 70 90 onlyif mysql # use DIV operator for integer division query I rowsort label-7216 SELECT - - col2 + cor0.col2 + - 39 DIV + cor0.col2 FROM tab0 AS cor0 ---- -37 164 65 skipif mysql # not compatible query I rowsort label-7216 SELECT - - col2 + cor0.col2 + - 39 / + cor0.col2 FROM tab0 AS cor0 ---- -37 164 65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 * col2 * 36 col0 FROM tab1 cor0 ---- -104976 -116964 -331776 onlyif mysql # use DIV operator for integer division query I rowsort label-7218 SELECT col1 DIV 71 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7218 SELECT col1 / 71 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 + + 40 col1 FROM tab1 AS cor0 ---- -24 -40 37 query I rowsort SELECT DISTINCT + col0 * col2 * col2 FROM tab0 WHERE NOT - col1 * col0 + col2 * col1 NOT IN ( - col2 + + col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + + col0 col2 FROM tab1 ---- 29 74 93 query III rowsort SELECT * FROM tab0 WHERE NOT col1 + col0 NOT IN ( col0 ) ---- query I rowsort SELECT DISTINCT - cor0.col0 * cor0.col2 * col0 AS col0 FROM tab2 AS cor0 ---- -1323 -158184 -237158 query I rowsort SELECT col0 * col1 + col0 * - tab0.col0 * col2 AS col2 FROM tab0 ---- -16944 -641423 2170 query I rowsort SELECT ALL col1 AS col2 FROM tab0 WHERE NOT - col2 IN ( col1 / - col0 ) ---- 86 91 97 query I rowsort SELECT DISTINCT + col2 FROM tab0 WHERE NOT + col1 * col2 * col0 NOT IN ( - col0 / - col1 + + col1 * + col2 ) ---- query I rowsort SELECT tab1.col2 - col2 * col2 FROM tab1 ---- -2862 -3192 -9120 query I rowsort SELECT col0 * - col1 + - col1 AS col0 FROM tab1 ---- -104 -1053 -650 query I rowsort SELECT - tab1.col1 + col1 * col2 FROM tab1 ---- 1235 1378 560 onlyif mysql # use DIV operator for integer division query I rowsort label-7230 SELECT col1 DIV col1 + + col1 * - col1 AS col2 FROM tab1 cor0 ---- -168 -675 -99 skipif mysql # not compatible query I rowsort label-7230 SELECT col1 / col1 + + col1 * - col1 AS col2 FROM tab1 cor0 ---- -168 -675 -99 query I rowsort SELECT col0 * - col1 - col0 AS col1 FROM tab0 AS cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-7232 SELECT ALL + tab1.col2 DIV - col0 FROM tab1 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-7232 SELECT ALL + tab1.col2 / - col0 FROM tab1 ---- -1 -18 0 query III rowsort SELECT * FROM tab0 WHERE + col1 IN ( col0 ) ---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN ( + col0 * - col0 ) AND ( NULL ) ---- query I rowsort SELECT - - col1 - - col2 * col1 FROM tab1 AS cor0 ---- 1261 1430 580 onlyif mysql # use DIV operator for integer division query I rowsort label-7236 SELECT cor0.col2 + - col0 DIV - col1 FROM tab2 cor0 ---- 27 27 42 skipif mysql # not compatible query I rowsort label-7236 SELECT cor0.col2 + - col0 / - col1 FROM tab2 cor0 ---- 27 27 42 query I rowsort SELECT ALL + cor0.col0 * 74 + 90 FROM tab2 AS cor0 ---- 5862 5936 608 query I rowsort SELECT DISTINCT + - col2 + + 6 AS col1 FROM tab1 AS cor0 ---- -48 -51 -90 query I rowsort SELECT - col1 + - col0 * ( col2 ) FROM tab2 cor0 ---- -2087 -220 -3019 query I rowsort SELECT ALL + cor0.col0 * + 27 FROM tab1 AS cor0 ---- 1728 2160 81 query I rowsort SELECT - + col2 * + 75 AS col1 FROM tab1 AS cor0 ---- -4050 -4275 -7200 query I rowsort SELECT DISTINCT col2 - + col2 AS col2 FROM tab2 ---- 0 query I rowsort SELECT DISTINCT + col2 - + col2 AS col2 FROM tab0 ---- 0 query I rowsort SELECT + 19 * col1 AS col1 FROM tab2 ---- 1121 323 589 query I rowsort SELECT ALL tab2.col1 * tab2.col0 * ( 88 ) - - col1 AS col2 FROM tab2 ---- 118201 19127 405035 query I rowsort SELECT DISTINCT col1 + - col1 - + ( + 53 ) FROM tab0 ---- -53 query I rowsort SELECT col2 + - col0 * col2 AS col0 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT col1 * - tab1.col0 + - ( - col2 ) + + col2 FROM tab1 ---- -526 -848 30 skipif mysql # not compatible query I rowsort SELECT - CAST ( - 23 AS REAL ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2 onlyif mysql # use DIV operator for integer division query I rowsort label-7250 SELECT DISTINCT col2 DIV ( col1 ) + - col1 * 24 FROM tab0 ---- -2064 -2184 -2328 skipif mysql # not compatible query I rowsort label-7250 SELECT DISTINCT col2 / ( col1 ) + - col1 * 24 FROM tab0 ---- -2064 -2184 -2328 query I rowsort SELECT DISTINCT + 78 * + 24 FROM tab1, tab0 AS cor0 ---- 1872 query I rowsort SELECT DISTINCT - col2 + 13 FROM tab1 cor0 ---- -41 -44 -83 query I rowsort SELECT - col0 + + col1 - - col1 FROM tab0 cor0 ---- 148 159 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7254 SELECT DISTINCT col2 + - CAST( col0 AS SIGNED ) * cor0.col2 AS col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 skipif mysql # not compatible query I rowsort label-7254 SELECT DISTINCT col2 + - CAST ( col0 AS INTEGER ) * cor0.col2 AS col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-7255 SELECT ALL - cor0.col0 DIV col0 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7255 SELECT ALL - cor0.col0 / col0 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT + cor0.col1 * 85 + - 67 FROM tab2 AS cor0 ---- 1378 2568 4948 query I rowsort SELECT DISTINCT - + col2 + + cor0.col2 FROM tab1 cor0 ---- 0 query I rowsort SELECT - - col1 * - ( col0 ) AS col0 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL + - col0 + col0 * 44 AS col2 FROM tab0 AS cor0 ---- 1032 1505 3827 onlyif mysql # use DIV operator for integer division query I rowsort label-7260 SELECT DISTINCT - col0 DIV 61 FROM tab1 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-7260 SELECT DISTINCT - col0 / 61 FROM tab1 AS cor0 ---- -1 0 query I rowsort SELECT - - col2 + + col2 * + 36 FROM tab0 cor0 ---- 1221 3034 37 query I rowsort SELECT ALL cor0.col0 + ( + cor0.col0 ) FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT + - col2 * - 53 AS col0 FROM tab2 AS cor0 ---- 1378 1431 2014 query I rowsort SELECT - col0 * col1 - 52 * - cor0.col0 FROM tab1 AS cor0 ---- 2688 3120 78 query I rowsort SELECT ALL - col0 + col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col1 + col1 ---- query I rowsort SELECT ALL col2 - col0 * + col2 AS col1 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT col1 + + tab2.col0 * - col0 AS col0 FROM tab2 ---- -18 -6025 -6224 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col1 col0 FROM tab1 WHERE NOT NULL IN ( col2 ) ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) >= col1 ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query III rowsort SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN col0 AND - col0 + + tab1.col1 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col0 / col1 + col0 * + tab1.col1 ) ---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col2 - tab2.col2 ) ---- query I rowsort SELECT 2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 535345c50a19fdab97ce05d1837b1f09 onlyif mysql # use DIV operator for integer division query I rowsort label-7274 SELECT ALL - col1 DIV - col1 + + ( + col1 ) FROM tab0 AS cor0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-7274 SELECT ALL - col1 / - col1 + + ( + col1 ) FROM tab0 AS cor0 ---- 87 92 98 query I rowsort SELECT - 66 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to cd4a3594ee8b45223ebf9f25840cd112 query I rowsort SELECT DISTINCT - - 64 * - col1 + 66 + - cor0.col1 * + col1 FROM tab2 AS cor0 ---- -1311 -2879 -7191 onlyif mysql # use DIV operator for integer division query I rowsort label-7277 SELECT ALL 90 DIV col2 + col0 * - 22 FROM tab0 AS cor0 ---- -1957 -526 -680 skipif mysql # not compatible query I rowsort label-7277 SELECT ALL 90 / col2 + col0 * - 22 FROM tab0 AS cor0 ---- -1957 -526 -680 query I rowsort SELECT + 87 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 8661ffbd1a72897c495405c53b816e50 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 86 col2 FROM tab2 AS cor0 ---- -86 -86 -86 query I rowsort SELECT ALL + cor0.col1 * col2 + - col1 AS col2 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT DISTINCT - col0 + - 60 AS col2 FROM tab1 AS cor0 ---- -124 -140 -63 onlyif mysql # use DIV operator for integer division query I rowsort label-7282 SELECT + + col2 DIV 14 + col0 * + cor0.col1 + + col1 FROM tab0 AS cor0 ---- 2152 3492 8195 skipif mysql # not compatible query I rowsort label-7282 SELECT + + col2 / 14 + col0 * + cor0.col1 + + col1 FROM tab0 AS cor0 ---- 2152 3492 8195 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7283 SELECT + col1 + CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7283 SELECT + col1 + CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + - col2 * 98 + - 9 * col1 AS col1 FROM tab1 AS cor0 ---- -5526 -5676 -9525 query I rowsort SELECT + col1 + col1 + col0 FROM tab0 AS cor0 ---- 196 229 271 query I rowsort SELECT DISTINCT + col2 * ( col1 ) + + col0 + col2 FROM tab1 AS cor0 ---- 1424 1461 691 query I rowsort SELECT cor0.col1 * cor0.col2 - col0 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT + col2 * col1 * + col1 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT - cor0.col1 * col0 + col1 FROM tab0 cor0 ---- -1978 -3298 -8008 query I rowsort SELECT 27 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8 query I rowsort SELECT - cor0.col2 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT ALL - col2 + - 42 FROM tab1 ---- -138 -96 -99 query I rowsort SELECT ALL - cor0.col0 * - cor1.col2 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to caa3e6469432624a16bd3084f5c6de58 query I rowsort SELECT DISTINCT col1 + 17 * col0 FROM tab0 ---- 1604 494 692 query I rowsort SELECT DISTINCT + ( - col0 ) + + 93 * col2 AS col2 FROM tab2 AS cor0 ---- 2340 2504 3455 query I rowsort SELECT - col0 + 6 * col2 FROM tab1 ---- 278 321 496 query I rowsort SELECT ALL + 27 * - tab2.col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to bc4ba142e01cf8908b59b57f0026ae45 query I rowsort SELECT DISTINCT + 76 + tab1.col2 + 82 AS col0 FROM tab1, tab2 AS cor0 ---- 212 215 254 onlyif mysql # use DIV operator for integer division query I rowsort label-7299 SELECT DISTINCT + 80 DIV col2 FROM tab1 ---- 0 1 skipif mysql # not compatible query I rowsort label-7299 SELECT DISTINCT + 80 / col2 FROM tab1 ---- 0 1 query I rowsort SELECT ALL 72 * 87 AS col0 FROM tab1 ---- 6264 6264 6264 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7301 SELECT ALL ( col0 ) * - CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7301 SELECT ALL ( col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 89 FROM tab2, tab1, tab1 AS cor0 ---- 89 onlyif mysql # use DIV operator for integer division query I rowsort label-7303 SELECT DISTINCT ( col0 ) DIV ( col1 ) AS col2 FROM tab1 ---- 0 6 skipif mysql # not compatible query I rowsort label-7303 SELECT DISTINCT ( col0 ) / ( col1 ) AS col2 FROM tab1 ---- 0 6 query I rowsort SELECT DISTINCT 76 * - col0 AS col0 FROM tab0 AS cor0 ---- -1824 -2660 -6764 query I rowsort SELECT ALL - 71 * + col0 FROM tab2 AS cor0 ---- -497 -5538 -5609 onlyif mysql # use DIV operator for integer division query I rowsort label-7306 SELECT + - 24 DIV cor0.col0 AS col0 FROM tab2 AS cor0 ---- -3 0 0 skipif mysql # not compatible query I rowsort label-7306 SELECT + - 24 / cor0.col0 AS col0 FROM tab2 AS cor0 ---- -3 0 0 query I rowsort SELECT ( ( cor1.col1 ) ) AS col0 FROM tab2, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT ALL + + col2 + col0 FROM tab0 cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-7309 SELECT col2 + col2 * col0 DIV col0 AS col1 FROM tab2 AS cor0 ---- 52 54 76 skipif mysql # not compatible query I rowsort label-7309 SELECT col2 + col2 * col0 / col0 AS col1 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT + - tab1.col0 FROM tab1, tab2, tab0 AS cor0, tab0 ---- 81 values hashing to 08e380e50b0cb64601bc84e5254deef4 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( + col2 NOT IN ( + col2 ) ) AND NULL NOT IN ( col2 ) ---- query I rowsort SELECT ALL ( col2 ) + col1 FROM tab2 AS cor0 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-7313 SELECT + + col0 + - cor0.col0 DIV col2 FROM tab1 AS cor0 ---- 3 63 80 skipif mysql # not compatible query I rowsort label-7313 SELECT + + col0 + - cor0.col0 / col2 FROM tab1 AS cor0 ---- 3 63 80 query I rowsort SELECT DISTINCT + tab1.col2 * + ( - col1 + + tab1.col1 ) AS col0 FROM tab1 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7315 SELECT + + col0 DIV - 98 + cor0.col0 * col1 col0 FROM tab1 cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7315 SELECT + + col0 / - 98 + cor0.col0 * col1 col0 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + ( col1 ) * col2 AS col2 FROM tab1 ---- 1248 1404 570 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 46 col2 FROM tab2 ---- -46 query I rowsort SELECT DISTINCT + 43 * col2 AS col1 FROM tab2 ---- 1118 1161 1634 query I rowsort SELECT + 23 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2 query I rowsort SELECT ALL - 58 * + col1 FROM tab1 AS cor0 ---- -1508 -580 -754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * + col1 + col1 col2 FROM tab0 AS cor0 ---- 194 2924 7553 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7322 SELECT CAST( - col0 AS SIGNED ) + - col1 FROM tab0 AS cor0 ---- -110 -132 -180 skipif mysql # not compatible query I rowsort label-7322 SELECT CAST ( - col0 AS INTEGER ) + - col1 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT - col1 * - 49 + - col0 AS col0 FROM tab2 AS cor0 ---- 1512 2813 754 query I rowsort SELECT DISTINCT - 10 * + ( + col2 ) FROM tab1 AS cor0 ---- -540 -570 -960 query I rowsort SELECT + col1 * col0 + + col0 FROM tab2 cor0 ---- 1422 224 4680 onlyif mysql # use DIV operator for integer division query I rowsort label-7326 SELECT + col2 * + col2 + col1 DIV - col1 AS col1 FROM tab2 cor0 ---- 1443 675 728 skipif mysql # not compatible query I rowsort label-7326 SELECT + col2 * + col2 + col1 / - col1 AS col1 FROM tab2 cor0 ---- 1443 675 728 query I rowsort SELECT + 30 + + col2 FROM tab0 ---- 112 31 63 onlyif mysql # use DIV operator for integer division query I rowsort label-7328 SELECT + - cor0.col0 DIV col2 + - col2 AS col2 FROM tab1 cor0 ---- -54 -58 -96 skipif mysql # not compatible query I rowsort label-7328 SELECT + - cor0.col0 / col2 + - col2 AS col2 FROM tab1 cor0 ---- -54 -58 -96 query I rowsort SELECT cor0.col1 + col1 * col1 * col1 AS col2 FROM tab1 AS cor0 ---- 1010 17602 2210 query I rowsort SELECT DISTINCT - col0 - col0 * tab1.col2 AS col1 FROM tab1 ---- -165 -3712 -7760 query I rowsort SELECT - tab0.col1 - - 73 AS col2 FROM tab0 ---- -13 -18 -24 query I rowsort SELECT ( - 22 ) * + col2 * col0 + - col0 FROM tab0 cor0 ---- -160645 -17448 -805 onlyif mysql # use DIV operator for integer division query I rowsort label-7333 SELECT - + 12 DIV + 25 - - col1 * col0 * col1 AS col2 FROM tab2 AS cor0 ---- 22831 271518 6727 skipif mysql # not compatible query I rowsort label-7333 SELECT - + 12 / + 25 - - col1 * col0 * col1 AS col2 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT 14 + - cor0.col1 FROM tab0 cor0 ---- -72 -77 -83 query I rowsort SELECT + - ( cor0.col2 ) + col2 * + col1 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT - col0 * col2 + + 11 AS col0 FROM tab0 AS cor0 ---- -24 -7287 -781 query I rowsort SELECT DISTINCT - + 64 * col0 FROM tab0 AS cor0 ---- -1536 -2240 -5696 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 31 col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540 query I rowsort SELECT col1 * ( col1 * col2 ) AS col1 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT + col2 * col0 + col2 AS col1 FROM tab0 cor0 ---- 36 7380 825 query I rowsort SELECT ALL - cor0.col1 * + col1 + + 35 + - col0 AS col0 FROM tab1 AS cor0 ---- -129 -214 -644 query I rowsort SELECT DISTINCT - col0 + - col2 + col1 AS col1 FROM tab1 cor0 ---- -111 -163 -31 query I rowsort SELECT - col1 * - col0 + + 69 FROM tab0 AS cor0 ---- 2133 3464 8168 query I rowsort SELECT DISTINCT 9 * - col0 + col2 AS col1 FROM tab0 AS cor0 ---- -183 -314 -719 query I rowsort SELECT DISTINCT - col2 * col0 + 24 * - col0 FROM tab1 AS cor0 ---- -234 -5184 -9600 query I rowsort SELECT - cor0.col2 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7347 SELECT col1 * - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7347 SELECT col1 * - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - cor0.col1 * ( col0 ) FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT - - col2 * 1 * col0 AS col2 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT 12 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6 onlyif mysql # use DIV operator for integer division query I rowsort label-7351 SELECT + col2 DIV + ( col0 ) AS col0 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7351 SELECT + col2 / + ( col0 ) AS col0 FROM tab0 ---- 0 0 1 query I rowsort SELECT - - 87 - - 38 AS col0 FROM tab0 cor0 ---- 125 125 125 query I rowsort SELECT + - 43 * col0 - cor0.col1 AS col0 FROM tab2 cor0 ---- -332 -3413 -3414 query I rowsort SELECT + ( 90 ) AS col0 FROM tab2 cor0 ---- 90 90 90 query I rowsort SELECT col2 * 69 FROM tab1 AS cor0 ---- 3726 3933 6624 query I rowsort SELECT DISTINCT - col1 + col1 * col2 + col0 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- 1225 15292 3328 query I rowsort SELECT DISTINCT - - col2 * + col2 + col2 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT 81 + col1 FROM tab1 AS cor0 ---- 107 91 94 onlyif mysql # use DIV operator for integer division query I rowsort label-7359 SELECT ALL + col1 DIV - col1 - - col0 AS col1 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-7359 SELECT ALL + col1 / - col1 - - col0 AS col1 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT + 68 AS col0 FROM tab2 cor0 ---- 68 68 68 query I rowsort SELECT DISTINCT + 22 + - col2 AS col0 FROM tab1 AS cor0 ---- -32 -35 -74 query I rowsort SELECT DISTINCT - col1 * 70 AS col1 FROM tab2 AS cor0 ---- -1190 -2170 -4130 query I rowsort SELECT ALL col2 + - col2 * col1 * - col1 AS col1 FROM tab0 AS cor0 ---- 244101 679124 9410 query I rowsort SELECT - - 68 + ( col0 ) * ( 33 * col2 ) FROM tab0 cor0 ---- 1223 240902 26204 query I rowsort SELECT ALL - - col0 + - 98 FROM tab0 AS cor0 ---- -63 -74 -9 query I rowsort SELECT DISTINCT - col0 + 81 * col2 FROM tab1 cor0 ---- 4371 4553 7696 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7367 SELECT ALL + - CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-7367 SELECT ALL + - CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT - - 6 AS col2 FROM tab1 AS cor0 ---- 6 6 6 query I rowsort SELECT ALL + - col2 + + ( col2 ) AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 * 73 AS col0 FROM tab1 ---- 219 4672 5840 query I rowsort SELECT DISTINCT tab1.col2 - - col1 AS col0 FROM tab1 ---- 109 67 80 query I rowsort SELECT col0 + 30 * + col0 AS col1 FROM tab0 cor0 ---- 1085 2759 744 query I rowsort SELECT ALL + 66 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 29794915b585eea848ad670075452c88 query I rowsort SELECT + + col1 + 55 FROM tab0 AS cor0 ---- 141 146 152 query I rowsort SELECT + + 55 AS col2 FROM tab0 AS cor0 ---- 55 55 55 query I rowsort SELECT 57 + col1 AS col0 FROM tab2 ---- 116 74 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 90 col1 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to c0d96679aba507520916e8654e5a6618 query I rowsort SELECT ALL + 80 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6dd5038be71dffa82f5ceba787caab91 query I rowsort SELECT ALL + 73 + - tab2.col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to dc75e053e097a5e5b4b398b6b1dba998 query I rowsort SELECT DISTINCT ( + 36 ) AS col0 FROM tab0, tab0 AS cor0 ---- 36 onlyif mysql # use DIV operator for integer division query I rowsort label-7381 SELECT - - 1 DIV - col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7381 SELECT - - 1 / - col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - 81 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cb28e2383c65db06809ca512a14e2dae skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 8 * + col2 col1 FROM tab2 AS cor0 ---- 208 216 304 query I rowsort SELECT ALL + cor0.col1 + - cor0.col1 * col0 AS col2 FROM tab2 cor0 ---- -1326 -186 -4543 query I rowsort SELECT + 68 + - col0 AS col0 FROM tab2 AS cor0 ---- -10 -11 61 query I rowsort SELECT DISTINCT col0 + - col1 * - col0 AS col2 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT DISTINCT - col0 + col1 * 59 AS col0 FROM tab0 AS cor0 ---- 5050 5280 5688 query I rowsort SELECT + - col2 * + cor0.col1 - + col1 FROM tab0 AS cor0 ---- -194 -2924 -7553 onlyif mysql # use DIV operator for integer division query I rowsort label-7389 SELECT ALL + col1 * + 64 + - col1 DIV + col2 col1 FROM tab0 AS cor0 ---- 5502 5823 6111 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7389 SELECT ALL + col1 * + 64 + - col1 / + col2 col1 FROM tab0 AS cor0 ---- 5502 5823 6111 query I rowsort SELECT ALL cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT - + col0 * 39 + 92 * col0 FROM tab1 cor0 ---- 159 3392 4240 query I rowsort SELECT - - col0 * - cor0.col0 + col1 AS col1 FROM tab1 AS cor0 ---- -4086 -6387 17 query I rowsort SELECT ALL - 66 AS col0 FROM tab1 ---- -66 -66 -66 query I rowsort SELECT ALL - - 61 * - col0 + - col0 * - ( + cor0.col0 ) FROM tab2 AS cor0 ---- -378 1326 1422 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 59 col0 FROM tab1 AS cor0 ---- 59 59 59 query I rowsort SELECT - + 64 AS col1 FROM tab2 cor0 ---- -64 -64 -64 query I rowsort SELECT - 0 * - col0 + col1 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT ALL + cor0.col2 * 18 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to d20dd6c8945b123490a13aed2c0b1bd8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7399 SELECT ALL CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-7399 SELECT ALL CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-7400 SELECT ALL col1 + - tab0.col1 DIV col2 FROM tab0 ---- 0 84 90 skipif mysql # not compatible query I rowsort label-7400 SELECT ALL col1 + - tab0.col1 / col2 FROM tab0 ---- 0 84 90 query I rowsort SELECT DISTINCT - col2 * - 25 AS col2 FROM tab2 AS cor0 ---- 650 675 950 onlyif mysql # use DIV operator for integer division query I rowsort label-7402 SELECT + 49 DIV - tab2.col1 + - col0 col1 FROM tab2 ---- -78 -8 -81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7402 SELECT + 49 / - tab2.col1 + - col0 col1 FROM tab2 ---- -78 -8 -81 query I rowsort SELECT DISTINCT 12 * + 69 AS col2 FROM tab1 ---- 828 query I rowsort SELECT + 55 * + cor0.col1 FROM tab1 AS cor0 ---- 1430 550 715 onlyif mysql # use DIV operator for integer division query I rowsort label-7405 SELECT ALL - 12 * - col2 DIV col2 FROM tab0 ---- 12 12 12 skipif mysql # not compatible query I rowsort label-7405 SELECT ALL - 12 * - col2 / col2 FROM tab0 ---- 12 12 12 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 * 38 col0 FROM tab2 AS cor0 ---- -1178 -2242 -646 query I rowsort SELECT 34 + col1 AS col1 FROM tab1 ---- 44 47 60 query I rowsort SELECT - 91 * + 98 * col2 FROM tab1 ---- -481572 -508326 -856128 query I rowsort SELECT ALL 19 * col2 FROM tab0 ---- 1558 19 627 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * + col1 col1 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT - 47 AS col1 FROM tab2, tab0, tab1 cor0 ---- 27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 76 col0 FROM tab1 ---- -76 -76 -76 query I rowsort SELECT - col2 + - col2 + - 31 FROM tab1 AS cor0 ---- -139 -145 -223 query I rowsort SELECT ALL tab0.col2 * + 13 - - 1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 6857ff23388675ad0dce86202695535e query I rowsort SELECT + ( - 87 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23 query I rowsort SELECT + col1 * + col0 + col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT ALL - col1 + - 26 AS col1 FROM tab0 AS cor0 ---- -112 -117 -123 query I rowsort SELECT ALL + - col1 + + col1 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT 56 + col1 AS col2 FROM tab1 AS cor0 ---- 66 69 82 query I rowsort SELECT DISTINCT - ( - col2 ) + col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT - - 41 + col1 FROM tab2 AS cor0 ---- 100 58 72 query I rowsort SELECT DISTINCT - col0 * + col1 + col1 AS col2 FROM tab1 cor0 ---- -1027 -52 -630 query I rowsort SELECT ALL ( 44 ) - + col2 AS col1 FROM tab1 AS cor0 ---- -10 -13 -52 query I rowsort SELECT ALL + cor0.col1 + - cor0.col2 * col2 FROM tab0 cor0 ---- -1003 -6633 96 query I rowsort SELECT - + col0 * 16 AS col2 FROM tab0 cor0 ---- -1424 -384 -560 query I rowsort SELECT + 69 - - col1 FROM tab0 cor0 ---- 155 160 166 query I rowsort SELECT - 97 FROM tab2 cor0 ---- -97 -97 -97 query I rowsort SELECT - + col1 + col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL - cor0.col0 * 35 AS col0 FROM tab2 AS cor0 ---- -245 -2730 -2765 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7430 SELECT - + col0 * - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7430 SELECT - + col0 * - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - + col1 * + 48 + 89 * + col2 AS col2 FROM tab0 AS cor0 ---- -1191 -4567 2930 query I rowsort SELECT ALL + - cor0.col2 * 42 * col0 + cor0.col2 FROM tab2 AS cor0 ---- -126046 -7911 -85150 query I rowsort SELECT DISTINCT col0 + 32 - col0 FROM tab1 ---- 32 query I rowsort SELECT DISTINCT + col1 - - ( col0 + tab1.col1 ) AS col1 FROM tab1 ---- 106 55 84 onlyif mysql # use DIV operator for integer division query I rowsort label-7435 SELECT ALL tab0.col0 DIV col2 - col2 FROM tab0 ---- -33 -81 34 skipif mysql # not compatible query I rowsort label-7435 SELECT ALL tab0.col0 / col2 - col2 FROM tab0 ---- -33 -81 34 query I rowsort SELECT col2 + + 37 + + col0 AS col2 FROM tab2 ---- 141 154 71 query I rowsort SELECT DISTINCT + col2 - - col2 FROM tab2 ---- 52 54 76 query I rowsort SELECT - col0 + - 44 * - 57 * col0 + - col2 AS col2 FROM tab0 AS cor0 ---- 223041 60135 87744 query I rowsort SELECT DISTINCT - - col0 * - col1 AS col0 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT col2 * 83 + 33 FROM tab2 cor0 ---- 2191 2274 3187 query I rowsort SELECT DISTINCT + col0 * col0 + col1 AS col1 FROM tab1 cor0 ---- 35 4106 6413 query I rowsort SELECT ALL col1 + + 29 AS col0 FROM tab2 ---- 46 60 88 query I rowsort SELECT - cor0.col1 AS col1 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 query I rowsort SELECT col0 * 88 FROM tab1 ---- 264 5632 7040 query I rowsort SELECT ALL col1 + col2 * col2 AS col0 FROM tab1 ---- 2942 3259 9229 query I rowsort SELECT - 62 * - 74 AS col2 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 871f4de01052080e296cffdbfdd3083d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7447 SELECT CAST( NULL AS SIGNED ) + col2 col1 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7447 SELECT CAST ( NULL AS INTEGER ) + col2 col1 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 49 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae query I rowsort SELECT DISTINCT - 35 + col0 AS col2 FROM tab1 AS cor0 ---- -32 29 45 onlyif mysql # use DIV operator for integer division query I rowsort label-7450 SELECT DISTINCT - - 32 DIV col0 AS col2 FROM tab1 AS cor0 ---- 0 10 skipif mysql # not compatible query I rowsort label-7450 SELECT DISTINCT - - 32 / col0 AS col2 FROM tab1 AS cor0 ---- 0 10 query I rowsort SELECT ALL cor0.col0 - - col1 * col1 FROM tab2 AS cor0 ---- 3559 368 968 query I rowsort SELECT ALL 87 * tab1.col1 AS col0 FROM tab1 ---- 1131 2262 870 query I rowsort SELECT ALL - 4 * col2 AS col2 FROM tab1 cor0 ---- -216 -228 -384 query I rowsort SELECT ALL - - col0 + col0 * + ( cor0.col0 ) AS col1 FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT ALL - + col2 + col0 FROM tab2 cor0 ---- -20 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-7456 SELECT DISTINCT - col1 + + ( ( col2 ) ) - ( - col0 + - col2 ) DIV + 16 AS col1 FROM tab1 AS cor0 ---- 31 54 94 skipif mysql # not compatible query I rowsort label-7456 SELECT DISTINCT - col1 + + ( ( col2 ) ) - ( - col0 + - col2 ) / + 16 AS col1 FROM tab1 AS cor0 ---- 31 54 94 query I rowsort SELECT - + col2 * 23 AS col0 FROM tab1 cor0 ---- -1242 -1311 -2208 query I rowsort SELECT DISTINCT col1 * ( - col0 ) FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL - col1 + - 11 FROM tab1 AS cor0 ---- -21 -24 -37 onlyif mysql # use DIV operator for integer division query I rowsort label-7460 SELECT DISTINCT col0 + - col0 DIV - 21 FROM tab2 cor0 ---- 7 81 82 skipif mysql # not compatible query I rowsort label-7460 SELECT DISTINCT col0 + - col0 / - 21 FROM tab2 cor0 ---- 7 81 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 * 23 + col0 * - col1 - + ( + 72 ) col1 FROM tab0 AS cor0 ---- -10218 -2688 -4272 query I rowsort SELECT ALL col0 * + 61 + - col0 AS col1 FROM tab1 AS cor0 ---- 180 3840 4800 query I rowsort SELECT DISTINCT + + cor0.col2 AS col1 FROM tab2, tab0, tab0 AS cor0, tab1 ---- 1 33 82 query I rowsort SELECT ALL + 7 * 15 FROM tab2 AS cor0 ---- 105 105 105 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( + col2 ) col2 FROM tab1 AS cor0 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-7466 SELECT + col2 DIV + 43 col1 FROM tab0 AS cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7466 SELECT + col2 / + 43 col1 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT 59 + + col1 + - col0 FROM tab1 AS cor0 ---- -8 5 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7468 SELECT ALL CAST( NULL AS SIGNED ) * + 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-7468 SELECT ALL CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * col2 * + col2 col1 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT 81 + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -1 48 80 query I rowsort SELECT + ( + col1 ) * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT + col2 * - col2 * col0 FROM tab0 AS cor0 ---- -26136 -35 -598436 onlyif mysql # use DIV operator for integer division query I rowsort label-7473 SELECT col1 * col1 DIV col1 AS col1 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-7473 SELECT col1 * col1 / col1 AS col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT DISTINCT - tab2.col2 AS col2 FROM tab2, tab0, tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT + col0 + col0 * col1 + 69 * - col2 AS col2 FROM tab0 AS cor0 ---- -189 2530 3361 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7476 SELECT + ( + 74 ) * + col1 + 20 * - ( - cor0.col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7476 SELECT + ( + 74 ) * + col1 + 20 * - ( - cor0.col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 44 * - col2 + col2 * - ( col1 ) FROM tab0 AS cor0 ---- -11070 -141 -4290 query I rowsort SELECT cor0.col2 * - 74 AS col2 FROM tab0 AS cor0 ---- -2442 -6068 -74 query I rowsort SELECT + ( col0 ) + col2 AS col2 FROM tab2 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-7480 SELECT DISTINCT col1 + col2 * 53 DIV - col0 FROM tab2 AS cor0 ---- -173 -8 42 skipif mysql # not compatible query I rowsort label-7480 SELECT DISTINCT col1 + col2 * 53 / - col0 FROM tab2 AS cor0 ---- -173 -8 42 query I rowsort SELECT ALL + tab1.col0 * ( col2 ) * col2 + - col1 + tab1.col0 AS col1 FROM tab1 ---- 207990 737347 8725 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7482 SELECT tab2.col1 + - CAST( NULL AS SIGNED ) / tab2.col1 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7482 SELECT tab2.col1 + - CAST ( NULL AS INTEGER ) / tab2.col1 AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT 15 FROM tab0, tab1, tab2 cor0, tab2 ---- 81 values hashing to 97c4e033347d2076218e240ed49af0a7 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2 ---- 3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5 query I rowsort SELECT DISTINCT cor0.col0 * 89 AS col1 FROM tab0 AS cor0 ---- 2136 3115 7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7486 SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col1 col0 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7486 SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col1 col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7487 SELECT - col2 DIV 58 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7487 SELECT - col2 / 58 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT 84 AS col0 FROM tab2 cor0 ---- 84 84 84 query I rowsort SELECT ALL - + col2 * - 37 + + cor0.col0 FROM tab2 AS cor0 ---- 1006 1040 1485 query I rowsort SELECT - - ( col2 ) * - col2 AS col0 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT ALL + - ( 24 ) + - col0 AS col2 FROM tab1 AS cor0 ---- -104 -27 -88 query I rowsort SELECT + 69 + col0 AS col2 FROM tab1 ---- 133 149 72 query I rowsort SELECT col0 * + col1 * col0 AS col0 FROM tab1 ---- 234 40960 83200 onlyif mysql # use DIV operator for integer division query I rowsort label-7494 SELECT DISTINCT col0 DIV + col2 + - col2 FROM tab0 ---- -33 -81 34 skipif mysql # not compatible query I rowsort label-7494 SELECT DISTINCT col0 / + col2 + - col2 FROM tab0 ---- -33 -81 34 query I rowsort SELECT DISTINCT 91 + cor0.col0 FROM tab1 AS cor0 ---- 155 171 94 onlyif mysql # use DIV operator for integer division query I rowsort label-7496 SELECT ALL - col0 DIV - col0 + + ( col1 ) FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-7496 SELECT ALL - col0 / - col0 + + ( col1 ) FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT + 43 * - col0 + - col2 FROM tab2 AS cor0 ---- -328 -3380 -3435 query I rowsort SELECT DISTINCT + 1 AS col0 FROM tab1 cor0 ---- 1 query I rowsort SELECT DISTINCT + - 92 FROM tab1 AS cor0 ---- -92 query I rowsort SELECT ALL + + cor0.col0 + - col1 * cor0.col1 FROM tab1 cor0 ---- -36 -673 -89 query I rowsort SELECT ALL + col0 + + ( - col0 ) AS col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT ALL - col1 * col1 + col2 * - cor0.col2 - + 45 AS col1 FROM tab1 AS cor0 ---- -3394 -3637 -9430 onlyif mysql # use DIV operator for integer division query I rowsort label-7503 SELECT ALL + - col1 * col1 + 53 DIV + col0 AS col0 FROM tab0 AS cor0 ---- -7394 -8281 -9408 skipif mysql # not compatible query I rowsort label-7503 SELECT ALL + - col1 * col1 + 53 / + col0 AS col0 FROM tab0 AS cor0 ---- -7394 -8281 -9408 query I rowsort SELECT DISTINCT + - cor0.col2 + col1 * + col2 + col2 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # use DIV operator for integer division query I rowsort label-7505 SELECT - - col0 * col0 + col0 DIV - col1 FROM tab2 AS cor0 ---- 49 6083 6237 skipif mysql # not compatible query I rowsort label-7505 SELECT - - col0 * col0 + col0 / - col1 FROM tab2 AS cor0 ---- 49 6083 6237 query I rowsort SELECT DISTINCT - + cor0.col1 * - cor0.col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT + - col0 + - col2 * 11 FROM tab1 AS cor0 ---- -1136 -597 -691 query I rowsort SELECT + + col2 * - cor0.col0 + col1 + col0 * ( ( col1 ) ) FROM tab1 cor0 ---- -2998 -58 -6627 onlyif mysql # use DIV operator for integer division query I rowsort label-7509 SELECT col2 + cor0.col0 DIV + 98 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-7509 SELECT col2 + cor0.col0 / + 98 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT + 39 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7511 SELECT col2 * + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7511 SELECT col2 * + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 + - col2 * 39 col1 FROM tab0 AS cor0 ---- -1254 -3116 -38 query I rowsort SELECT col2 * + ( + ( + col1 ) ) AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT - + cor0.col1 + - col2 * col2 AS col2 FROM tab2 AS cor0 ---- -1461 -735 -760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 - - col1 col1 FROM tab2 AS cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-7516 SELECT 89 DIV 43 + + col0 FROM tab0 AS cor0 ---- 26 37 91 skipif mysql # not compatible query I rowsort label-7516 SELECT 89 / 43 + + col0 FROM tab0 AS cor0 ---- 26 37 91 query I rowsort SELECT ALL + 41 * col1 AS col2 FROM tab2 cor0 ---- 1271 2419 697 query I rowsort SELECT - 92 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to 95b4f8d1f8c6430076327dcc6092a86c query I rowsort SELECT DISTINCT - - 68 * - col0 FROM tab0 AS cor0 ---- -1632 -2380 -6052 query I rowsort SELECT + 23 FROM tab2, tab0 AS cor0 ---- 9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2 query I rowsort SELECT + 88 * + col2 FROM tab0 AS cor0 ---- 2904 7216 88 query I rowsort SELECT + 75 * col0 AS col0 FROM tab0 AS cor0 ---- 1800 2625 6675 query I rowsort SELECT 31 FROM tab2, tab2 cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c query I rowsort SELECT DISTINCT cor0.col1 FROM tab2, tab2 cor0, tab1 cor1 ---- 17 31 59 query I rowsort SELECT ALL col1 * + col2 * tab0.col0 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT ALL 27 + - col2 * + col2 FROM tab0 ---- -1062 -6697 26 query I rowsort SELECT 26 * - col1 FROM tab0 ---- -2236 -2366 -2522 query I rowsort SELECT DISTINCT + col1 * - col2 * 52 + + ( - col0 ) * + col2 AS col0 FROM tab0 ---- -148368 -395322 -5079 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7529 SELECT - col0 * col0 * + 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-7529 SELECT - col0 * col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 + - col2 * + col0 AS col1 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-7531 SELECT ALL 66 DIV + col0 AS col2 FROM tab0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-7531 SELECT ALL 66 / + col0 AS col2 FROM tab0 ---- 0 1 2 onlyif mysql # use DIV operator for integer division query I rowsort label-7532 SELECT + 81 DIV - col0 FROM tab2 ---- -1 -1 -11 skipif mysql # not compatible query I rowsort label-7532 SELECT + 81 / - col0 FROM tab2 ---- -1 -1 -11 query I rowsort SELECT DISTINCT col0 + col0 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT - 65 * + 33 AS col2 FROM tab2 cor0 ---- -2145 -2145 -2145 onlyif mysql # use DIV operator for integer division query I rowsort label-7535 SELECT col1 DIV 24 FROM tab2 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-7535 SELECT col1 / 24 FROM tab2 AS cor0 ---- 0 1 2 onlyif mysql # use DIV operator for integer division query I rowsort label-7536 SELECT 14 DIV - cor0.col1 FROM tab0, tab1 cor0 ---- 9 values hashing to b2e225572af74ba853e10fb5414ea67f skipif mysql # not compatible query I rowsort label-7536 SELECT 14 / - cor0.col1 FROM tab0, tab1 cor0 ---- 9 values hashing to b2e225572af74ba853e10fb5414ea67f query I rowsort SELECT ALL col1 * + 72 FROM tab2 ---- 1224 2232 4248 query I rowsort SELECT + ( 26 ) AS col2 FROM tab2 AS cor0 ---- 26 26 26 query I rowsort SELECT ( - col1 ) * + col2 + + 34 AS col1 FROM tab2 AS cor0 ---- -1500 -612 -803 query I rowsort SELECT ALL - col2 * - col2 AS col2 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT 40 * col1 FROM tab0 AS cor0 ---- 3440 3640 3880 onlyif mysql # use DIV operator for integer division query I rowsort label-7542 SELECT ALL + col0 DIV - col2 AS col2 FROM tab0 cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-7542 SELECT ALL + col0 / - col2 AS col2 FROM tab0 cor0 ---- -1 -35 0 query I rowsort SELECT col1 * + cor0.col1 AS col0 FROM tab2 cor0 ---- 289 3481 961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7544 SELECT ALL + CAST( NULL AS SIGNED ) * + ( col1 ) col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7544 SELECT ALL + CAST ( NULL AS INTEGER ) * + ( col1 ) col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - tab2.col0 ) col0 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT col2 + + 11 * col0 * col2 FROM tab0 ---- 386 80360 8745 query I rowsort SELECT + col2 * col1 + - col1 * tab2.col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT - + col2 * + ( col1 + col2 ) AS col0 FROM tab0 AS cor0 ---- -14186 -3927 -98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7549 SELECT + CAST( col0 AS SIGNED ) * - col1 + 62 col1 FROM tab0 ---- -2002 -3333 -8037 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7549 SELECT + CAST ( col0 AS INTEGER ) * - col1 + 62 col1 FROM tab0 ---- -2002 -3333 -8037 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7550 SELECT col0 * col0 + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7550 SELECT col0 * col0 + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL - 40 AS col1 FROM tab2 ---- -40 -40 -40 onlyif mysql # use DIV operator for integer division query I rowsort label-7552 SELECT col1 DIV col0 + 78 * + col1 AS col1 FROM tab0 AS cor0 ---- 6711 7099 7568 skipif mysql # not compatible query I rowsort label-7552 SELECT col1 / col0 + 78 * + col1 AS col1 FROM tab0 AS cor0 ---- 6711 7099 7568 query I rowsort SELECT DISTINCT + col2 + 95 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 339 6137 7696 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + - col1 col2 FROM tab2 AS cor0 ---- -55 -58 -85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7555 SELECT ALL + col2 * CAST( 72 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 1872 1944 2736 skipif mysql # not compatible query I rowsort label-7555 SELECT ALL + col2 * CAST ( 72 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 1872 1944 2736 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 50 col1 FROM tab2, tab1, tab2 AS cor0 ---- 50 query I rowsort SELECT + tab1.col0 * col1 * col2 AS col0 FROM tab1 ---- 36480 4212 99840 onlyif mysql # use DIV operator for integer division query I rowsort label-7558 SELECT ALL - col1 DIV + tab2.col1 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7558 SELECT ALL - col1 / + tab2.col1 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT col2 + + 71 * tab1.col2 FROM tab1 ---- 3888 4104 6912 onlyif mysql # use DIV operator for integer division query I rowsort label-7560 SELECT ALL col2 DIV + 33 FROM tab2 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7560 SELECT ALL col2 / + 33 FROM tab2 ---- 0 0 1 query I rowsort SELECT + col1 * + col1 + - 18 AS col2 FROM tab1 cor0 ---- 151 658 82 query I rowsort SELECT ALL + col0 + - tab1.col1 AS col0 FROM tab1 ---- -23 54 67 query I rowsort SELECT + col1 + col1 - 74 FROM tab1 ---- -22 -48 -54 query I rowsort SELECT ALL 62 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b query I rowsort SELECT col1 - 68 * col0 * tab1.col0 AS col0 FROM tab1 ---- -278518 -435187 -586 query I rowsort SELECT + col0 + tab0.col0 * col1 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT ALL + cor0.col1 + - col2 + cor0.col1 FROM tab1 cor0 ---- -2 -37 -70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7568 SELECT - cor0.col1 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7568 SELECT - cor0.col1 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - - col0 + - 80 FROM tab2 AS cor0 ---- -1 -2 -73 query I rowsort SELECT - 43 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7571 SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-7571 SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT ( cor0.col1 ) + col2 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-7573 SELECT ALL - + 26 + + col1 * col2 DIV col1 AS col1 FROM tab1 AS cor0 ---- 28 31 70 skipif mysql # not compatible query I rowsort label-7573 SELECT ALL - + 26 + + col1 * col2 / col1 AS col1 FROM tab1 AS cor0 ---- 28 31 70 query I rowsort SELECT + col0 + + ( - col1 ) FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT + ( cor0.col1 ) + - col0 AS col0 FROM tab1 AS cor0 ---- -54 -67 23 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( - col2 AS REAL ) + + col2 AS col1 FROM tab2 AS cor0 ---- 52 54 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7577 SELECT ALL - + CAST( - col1 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7577 SELECT ALL - + CAST ( - col1 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + ( - tab2.col0 ) * - col1 FROM tab2 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-7579 SELECT DISTINCT - col2 * - col1 DIV col1 - ( + ( col2 ) ) AS col0 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7579 SELECT DISTINCT - col2 * - col1 / col1 - ( + ( col2 ) ) AS col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ( + 59 ) AS col0 FROM tab1 AS cor0 ---- 59 59 59 query I rowsort SELECT + col0 * + 51 + cor0.col1 FROM tab1 AS cor0 ---- 179 3274 4093 query I rowsort SELECT ALL + + 33 FROM tab1 cor0 ---- 33 33 33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 17 + col2 col1 FROM tab2 AS cor0 ---- 43 44 55 query I rowsort SELECT - 18 + 47 AS col2 FROM tab1 AS cor0 ---- 29 29 29 query I rowsort SELECT ALL - 49 + col2 FROM tab1 AS cor0 ---- 47 5 8 query I rowsort SELECT cor0.col0 * + 96 FROM tab2 AS cor0 ---- 672 7488 7584 query I rowsort SELECT - 75 FROM tab2 cor0 ---- -75 -75 -75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( + 31 ) col1 FROM tab1 AS cor0 ---- 31 query I rowsort SELECT ALL 72 * + col1 + col0 * col1 FROM tab2 cor0 ---- 2449 2567 8850 onlyif mysql # use DIV operator for integer division query I rowsort label-7590 SELECT DISTINCT + 76 + + cor0.col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0 ---- 76 skipif mysql # not compatible query I rowsort label-7590 SELECT DISTINCT + 76 + + cor0.col2 / cor0.col1 AS col2 FROM tab0 AS cor0 ---- 76 query I rowsort SELECT ALL - - col1 * col0 * col2 AS col0 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7592 SELECT + - CAST( NULL AS DECIMAL ) * - 26 + + col2 / CAST( NULL AS SIGNED ) + cor0.col0 / - col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7592 SELECT + - CAST ( NULL AS REAL ) * - 26 + + col2 / CAST ( NULL AS INTEGER ) + cor0.col0 / - col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - 68 + - col0 FROM tab0 AS cor0 ---- -21 33 44 query I rowsort SELECT ALL col1 + + col0 * + col0 * 54 + col2 * + col2 AS col0 FROM tab1 AS cor0 ---- 224443 3428 354829 query I rowsort SELECT + col1 + col1 + - col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL col0 - + col2 * 96 FROM tab1 ---- -5181 -5408 -9136 query I rowsort SELECT ALL - 35 * col1 - + col0 FROM tab0 ---- -3034 -3274 -3430 query I rowsort SELECT - - 52 * col0 AS col1 FROM tab0 cor0 ---- 1248 1820 4628 onlyif mysql # use DIV operator for integer division query I rowsort label-7599 SELECT DISTINCT + col0 + col1 + - 45 DIV - col0 AS col1 FROM tab2 cor0 ---- 137 44 96 skipif mysql # not compatible query I rowsort label-7599 SELECT DISTINCT + col0 + col1 + - 45 / - col0 AS col1 FROM tab2 cor0 ---- 137 44 96 query I rowsort SELECT ALL col1 * + cor0.col2 - + col0 AS col0 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT + col1 + - col0 * ( + col1 ) AS col2 FROM tab2 cor0 ---- -1326 -186 -4543 query I rowsort SELECT ALL - + ( col1 ) AS col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT cor0.col1 * col2 * + col1 FROM tab2 AS cor0 ---- 10982 25947 90506 onlyif mysql # use DIV operator for integer division query I rowsort label-7604 SELECT cor0.col1 * col1 DIV col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-7604 SELECT cor0.col1 * col1 / col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL + col0 + + cor0.col2 * 18 FROM tab0 AS cor0 ---- 1565 53 618 query I rowsort SELECT + 99 * + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1287 2574 990 query I rowsort SELECT ALL + cor0.col1 - + col2 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT DISTINCT - col2 * + col0 + + ( + 69 ) AS col0 FROM tab0 AS cor0 ---- -7229 -723 34 query I rowsort SELECT DISTINCT + col1 * + cor0.col0 * 72 AS col0 FROM tab0 AS cor0 ---- 148608 244440 583128 query I rowsort SELECT DISTINCT + 75 FROM tab2, tab1 cor0, tab2 cor1 ---- 75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 + - col0 - - col0 col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT col0 * - col2 * + col1 - col0 AS col1 FROM tab1 AS cor0 ---- -36544 -4215 -99920 onlyif mysql # use DIV operator for integer division query I rowsort label-7613 SELECT ALL + tab2.col0 * + col2 - + col0 DIV - 17 AS col2 FROM tab2 ---- 189 2032 3006 skipif mysql # not compatible query I rowsort label-7613 SELECT ALL + tab2.col0 * + col2 - + col0 / - 17 AS col2 FROM tab2 ---- 189 2032 3006 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7614 SELECT ALL + 77 * + col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7614 SELECT ALL + 77 * + col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT col1 * col0 * col0 + 62 AS col0 FROM tab0 AS cor0 ---- 118887 49598 720873 query I rowsort SELECT DISTINCT ( - col1 ) + tab2.col2 FROM tab2 ---- -33 -4 21 skipif mysql # not compatible query I rowsort SELECT ALL ( - col0 ) + col0 * CAST ( ( col2 ) * + col1 AS REAL ) + col1 FROM tab0 ---- 3457 664120 68174 query I rowsort SELECT + tab2.col0 + + col2 * col0 AS col1 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT DISTINCT 31 + - 68 * - col1 + + col2 FROM tab1 ---- 1011 1853 768 onlyif mysql # use DIV operator for integer division query I rowsort label-7620 SELECT ALL ( + col0 ) DIV col2 AS col0 FROM tab0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-7620 SELECT ALL ( + col0 ) / col2 AS col0 FROM tab0 ---- 0 1 35 onlyif mysql # use DIV operator for integer division query I rowsort label-7621 SELECT - col2 + + col2 DIV + 74 AS col1 FROM tab0 ---- -1 -33 -81 skipif mysql # not compatible query I rowsort label-7621 SELECT - col2 + + col2 / + 74 AS col1 FROM tab0 ---- -1 -33 -81 query I rowsort SELECT DISTINCT + tab1.col0 * + col1 AS col2 FROM tab1 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-7623 SELECT ALL - 75 DIV - col0 FROM tab0 cor0 ---- 0 2 3 skipif mysql # not compatible query I rowsort label-7623 SELECT ALL - 75 / - col0 FROM tab0 cor0 ---- 0 2 3 query I rowsort SELECT DISTINCT + 76 + col0 FROM tab1 AS cor0 ---- 140 156 79 query I rowsort SELECT DISTINCT - cor0.col2 + col0 * ( + col1 ) FROM tab0 AS cor0 ---- 2031 3394 8017 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 33 + - col1 col1 FROM tab2 AS cor0 ---- -26 16 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7627 SELECT - + col0 + col1 * - CAST( + 46 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -1199 -524 -678 skipif mysql # not compatible query I rowsort label-7627 SELECT - + col0 + col1 * - CAST ( + 46 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -1199 -524 -678 query I rowsort SELECT DISTINCT - 81 FROM tab0, tab0 AS cor0 ---- -81 query I rowsort SELECT DISTINCT ( cor0.col1 * - tab1.col2 ) + - tab1.col1 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 786c04feb034b96d7b4f48a7a4cd6beb query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2 ---- 3645 values hashing to bb6428239bf7f3ea361f6a10500a581d query I rowsort SELECT ALL - + col2 + 60 FROM tab1 cor0 ---- -36 3 6 query I rowsort SELECT - 20 FROM tab2, tab1 AS cor0 ---- 9 values hashing to f1cccb95c90889319e7a51e4ae9475bb onlyif mysql # use DIV operator for integer division query I rowsort label-7633 SELECT DISTINCT - - col0 + cor0.col1 DIV + col1 + - col0 AS col2 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-7633 SELECT DISTINCT - - col0 + cor0.col1 / + col1 + - col0 AS col2 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT DISTINCT - col0 * col1 + ( col2 ) AS col0 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT ALL - ( cor0.col1 ) * + col0 + col1 * - 18 AS col1 FROM tab2 cor0 ---- -1649 -5664 -775 query I rowsort SELECT ALL + col0 + + 60 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1563 664 860 query I rowsort SELECT DISTINCT - + 22 + - col1 * col1 AS col1 FROM tab1 cor0 ---- -122 -191 -698 query I rowsort SELECT + col0 - 69 FROM tab2 cor0 ---- -62 10 9 query I rowsort SELECT - cor0.col0 * - col1 - col2 * - col0 AS col1 FROM tab1 AS cor0 ---- 240 4288 8720 query I rowsort SELECT - col2 - col2 * + col0 AS col0 FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT ALL ( ( cor0.col1 ) ) + + col1 FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT - + 16 * - cor0.col1 - + col2 AS col2 FROM tab2 AS cor0 ---- 234 469 918 query I rowsort SELECT DISTINCT + ( cor0.col0 ) - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -9 34 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7644 SELECT + 95 * - col2 + + col1 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -3526 -3899 -5951 skipif mysql # not compatible query I rowsort label-7644 SELECT + 95 * - col2 + + col1 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -3526 -3899 -5951 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7645 SELECT + CAST( NULL AS SIGNED ) + + col1 - - col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7645 SELECT + CAST ( NULL AS INTEGER ) + + col1 - - col1 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - ( 0 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT - 47 + + col0 AS col1 FROM tab1 AS cor0 ---- -44 17 33 query I rowsort SELECT + col2 * + col2 * + col2 AS col1 FROM tab1 AS cor0 ---- 157464 185193 884736 query I rowsort SELECT - ( ( + col1 ) ) FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT - col1 * + cor0.col1 * + col2 + - col0 * col1 * + 35 FROM tab1 AS cor0 ---- -28100 -39234 -52624 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col2 * col1 + col1 * 16 col1 FROM tab2 AS cor0 ---- -341 -374 -590 query I rowsort SELECT DISTINCT + cor0.col1 * - col1 * - col1 FROM tab0 AS cor0 ---- 636056 753571 912673 query I rowsort SELECT - col0 * + 44 FROM tab1 AS cor0 ---- -132 -2816 -3520 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7654 SELECT - + CAST( + 44 AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0 ---- -133 -68 -79 skipif mysql # not compatible query I rowsort label-7654 SELECT - + CAST ( + 44 AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0 ---- -133 -68 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * + ( - tab0.col1 + + tab0.col0 ) col1 FROM tab0 ---- -182 -5332 -6014 onlyif mysql # use DIV operator for integer division query I rowsort label-7656 SELECT - col0 + 32 DIV tab1.col2 col2 FROM tab1 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7656 SELECT - col0 + 32 / tab1.col2 col2 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT - col2 * - col2 + col2 FROM tab1 ---- 2970 3306 9312 query I rowsort SELECT ALL 57 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 onlyif mysql # use DIV operator for integer division query I rowsort label-7659 SELECT + col0 * 22 - + col0 DIV + col0 AS col0 FROM tab2 ---- 153 1715 1737 skipif mysql # not compatible query I rowsort label-7659 SELECT + col0 * 22 - + col0 / + col0 AS col0 FROM tab2 ---- 153 1715 1737 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 + 5 * col1 col2 FROM tab2 AS cor0 ---- 128 269 47 query I rowsort SELECT ALL - - col2 + + col1 * ( + col0 ) * + 82 AS col1 FROM tab1 AS cor0 ---- 52537 6450 85376 query I rowsort SELECT DISTINCT - cor0.col2 * ( col2 ) + + col1 * ( 50 ) AS col2 FROM tab0 AS cor0 ---- -2174 3211 4849 query I rowsort SELECT ALL col0 + cor0.col0 * col2 AS col0 FROM tab2 AS cor0 ---- 196 2106 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-7664 SELECT + col1 * col2 + + col2 * cor0.col0 DIV - 41 AS col2 FROM tab0 cor0 ---- 2819 7284 97 skipif mysql # not compatible query I rowsort label-7664 SELECT + col1 * col2 + + col2 * cor0.col0 / - 41 AS col2 FROM tab0 cor0 ---- 2819 7284 97 query I rowsort SELECT DISTINCT + 32 + col1 * col0 FROM tab0 AS cor0 ---- 2096 3427 8131 onlyif mysql # use DIV operator for integer division query I rowsort label-7666 SELECT ALL 16 DIV col2 FROM tab0 AS cor0 ---- 0 0 16 skipif mysql # not compatible query I rowsort label-7666 SELECT ALL 16 / col2 FROM tab0 AS cor0 ---- 0 0 16 onlyif mysql # use DIV operator for integer division query I rowsort label-7667 SELECT ALL + ( ( cor0.col2 ) ) DIV cor0.col0 FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-7667 SELECT ALL + ( ( cor0.col2 ) ) / cor0.col0 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05 query I rowsort SELECT col0 * col0 + + col0 FROM tab0 cor0 ---- 1260 600 8010 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 19 col1 FROM tab2 AS cor0 ---- 19 19 19 onlyif mysql # use DIV operator for integer division query I rowsort label-7671 SELECT DISTINCT - col1 DIV 23 col0 FROM tab0 AS cor0 ---- -3 -4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7671 SELECT DISTINCT - col1 / 23 col0 FROM tab0 AS cor0 ---- -3 -4 query I rowsort SELECT - cor1.col2 AS col2 FROM tab2, tab1 cor0, tab0 cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT ALL + + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT col2 + + col0 * - col2 FROM tab2 cor0 ---- -162 -2002 -2964 query I rowsort SELECT 99 * col2 + col0 * 51 + col2 AS col1 FROM tab0 AS cor0 ---- 12739 1885 4524 query I rowsort SELECT DISTINCT - - col1 + - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL + ( col0 ) FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT ALL tab2.col2 * tab2.col1 * col2 AS col2 FROM tab2 ---- 22599 24548 39884 query I rowsort SELECT ALL + cor0.col2 + ( cor0.col2 ) - col1 FROM tab2 cor0 ---- -7 23 59 query I rowsort SELECT DISTINCT + + col0 + ( + col0 ) FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT - - col0 * - col2 + col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT ALL - + cor0.col2 + + ( + col1 ) AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT + + col1 * + 7 + + col2 AS col2 FROM tab0 cor0 ---- 635 680 719 query I rowsort SELECT ALL col2 + 15 FROM tab2 cor0 ---- 41 42 53 query I rowsort SELECT ALL col2 + + 94 AS col2 FROM tab0 AS cor0 ---- 127 176 95 query I rowsort SELECT col0 + col1 * tab1.col0 * ( - col0 ) - - col1 * col1 AS col2 FROM tab1 ---- -40796 -82951 445 query I rowsort SELECT + ( col2 + col2 ) * + col2 FROM tab2 ---- 1352 1458 2888 query I rowsort SELECT ALL 80 * tab2.col0 AS col2 FROM tab2 ---- 560 6240 6320 query I rowsort SELECT DISTINCT 84 * col2 - + 21 * col1 FROM tab0 ---- -1953 4977 966 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7690 SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 cor0, tab1 cor1 ---- NULL skipif mysql # not compatible query I rowsort label-7690 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 cor0, tab1 cor1 ---- NULL query I rowsort SELECT col2 + + ( + cor0.col2 ) * col2 - + 46 AS col0 FROM tab2 AS cor0 ---- 1436 656 710 query I rowsort SELECT ALL 79 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7693 SELECT DISTINCT + col0 * CAST( - cor0.col1 + - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- -16198 -4128 -6790 skipif mysql # not compatible query I rowsort label-7693 SELECT DISTINCT + col0 * CAST ( - cor0.col1 + - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- -16198 -4128 -6790 query I rowsort SELECT DISTINCT - col1 * - col0 + col2 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT - col1 + + col0 + 60 AS col1 FROM tab0 cor0 ---- -2 -2 58 onlyif mysql # use DIV operator for integer division query I rowsort label-7696 SELECT - - col1 + col1 DIV col1 FROM tab0 AS cor0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-7696 SELECT - - col1 + col1 / col1 FROM tab0 AS cor0 ---- 87 92 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * 65 + + col2 - + col0 col1 FROM tab2 AS cor0 ---- 475 5018 5094 query I rowsort SELECT ALL col0 + + col0 * col1 AS col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT - 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- -48 query I rowsort SELECT DISTINCT + 38 * + 56 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 2128 query I rowsort SELECT ALL 5 - - col1 FROM tab2 ---- 22 36 64 query I rowsort SELECT ALL col0 - col1 * - 87 AS col0 FROM tab2 ---- 1558 2704 5211 query I rowsort SELECT DISTINCT - col0 + + 67 AS col2 FROM tab2 ---- -11 -12 60 query I rowsort SELECT ALL col2 + col2 * col0 FROM tab0 ---- 36 7380 825 query I rowsort SELECT ALL + col1 * + ( col0 ) + col1 * col1 + col0 FROM tab0 ---- 12839 16469 9484 query I rowsort SELECT ALL col2 + ( col1 ) AS col0 FROM tab1 ---- 109 67 80 query I rowsort SELECT + tab0.col1 * + 38 AS col1 FROM tab0, tab2 cor0 ---- 9 values hashing to 84ad71c6d02c194cabb6d219a204bcb2 query I rowsort SELECT DISTINCT + col1 * + cor0.col2 + col0 * - col1 AS col0 FROM tab0 AS cor0 ---- -3298 -637 774 query I rowsort SELECT - col0 * col0 * - col2 AS col2 FROM tab2 AS cor0 ---- 1323 158184 237158 onlyif mysql # use DIV operator for integer division query I rowsort label-7710 SELECT + - 93 DIV + col1 AS col2 FROM tab1 cor0 ---- -3 -7 -9 skipif mysql # not compatible query I rowsort label-7710 SELECT + - 93 / + col1 AS col2 FROM tab1 cor0 ---- -3 -7 -9 query I rowsort SELECT ALL col2 + col0 * + col0 AS col2 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT + - 97 * + col0 FROM tab0 AS cor0 ---- -2328 -3395 -8633 query I rowsort SELECT + tab2.col0 * + ( col0 ) + - 87 FROM tab2 ---- -38 5997 6154 query I rowsort SELECT 98 * - tab2.col0 FROM tab0, tab1, tab0 AS cor0, tab2 ---- 81 values hashing to 4605da3c6e23c663b5895de96cffaeaf query I rowsort SELECT DISTINCT tab0.col1 * tab0.col2 AS col2 FROM tab0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( - 84 * col2 AS REAL ) FROM tab1 ---- -4536 -4788 -8064 query I rowsort SELECT ( - col0 * + col1 ) + + tab2.col1 AS col1 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT ALL cor0.col1 AS col1 FROM tab1, tab1 cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 query I rowsort SELECT DISTINCT - 72 * + col1 AS col1 FROM tab0 AS cor0 ---- -6192 -6552 -6984 query I rowsort SELECT ALL + cor0.col1 * + col2 + ( + col2 + - col2 ) * col0 AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT + 63 * - cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 2e066f77ad23665daf259815c7024318 query I rowsort SELECT ALL ( - col0 ) * + col2 - col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT DISTINCT - 14 + - cor0.col2 * + 13 FROM tab0 AS cor0 ---- -1080 -27 -443 query I rowsort SELECT ALL - + 14 * + col1 FROM tab0 AS cor0 ---- -1204 -1274 -1358 onlyif mysql # use DIV operator for integer division query I rowsort label-7725 SELECT DISTINCT + - cor0.col1 DIV + col0 AS col1 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-7725 SELECT DISTINCT + - cor0.col1 / + col0 AS col1 FROM tab0 AS cor0 ---- -1 -2 -3 onlyif mysql # use DIV operator for integer division query I rowsort label-7726 SELECT col2 DIV - col1 AS col2 FROM tab1 cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-7726 SELECT col2 / - col1 AS col2 FROM tab1 cor0 ---- -2 -5 -7 onlyif mysql # use DIV operator for integer division query I rowsort label-7727 SELECT DISTINCT - ( + col1 ) DIV col0 AS col2 FROM tab2 AS cor0 ---- -4 0 skipif mysql # not compatible query I rowsort label-7727 SELECT DISTINCT - ( + col1 ) / col0 AS col2 FROM tab2 AS cor0 ---- -4 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7728 SELECT - 71 DIV + col2 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-7728 SELECT - 71 / + col2 FROM tab1 AS cor0 ---- -1 -1 0 query I rowsort SELECT DISTINCT + 24 + col1 + cor0.col0 FROM tab2 AS cor0 ---- 120 161 62 query I rowsort SELECT DISTINCT 69 * col1 + - col1 FROM tab0 AS cor0 ---- 5848 6188 6596 onlyif mysql # use DIV operator for integer division query I rowsort label-7731 SELECT DISTINCT - 97 * + col0 + col1 DIV - col1 AS col0 FROM tab0 AS cor0 ---- -2329 -3396 -8634 skipif mysql # not compatible query I rowsort label-7731 SELECT DISTINCT - 97 * + col0 + col1 / - col1 AS col0 FROM tab0 AS cor0 ---- -2329 -3396 -8634 query I rowsort SELECT ALL col0 + col1 * - 61 FROM tab1 cor0 ---- -1583 -546 -713 query I rowsort SELECT - + 39 AS col0 FROM tab0 AS cor0 ---- -39 -39 -39 query I rowsort SELECT ALL col0 * + 79 AS col2 FROM tab2 ---- 553 6162 6241 onlyif mysql # use DIV operator for integer division query I rowsort label-7735 SELECT col1 + col2 DIV col0 AS col2 FROM tab1 AS cor0 ---- 10 14 44 skipif mysql # not compatible query I rowsort label-7735 SELECT col1 + col2 / col0 AS col2 FROM tab1 AS cor0 ---- 10 14 44 query I rowsort SELECT ALL 16 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT - 61 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 51f53697966a79d306a4570537cd91a1 query I rowsort SELECT ALL - cor0.col2 FROM tab0, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT DISTINCT - 12 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- -12 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab2 cor2 ---- 3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae query I rowsort SELECT DISTINCT - cor1.col1 FROM tab1, tab1 cor0, tab0 AS cor1 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + - cor0.col2 col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT col2 * - col0 + 56 AS col2 FROM tab0 AS cor0 ---- -7242 -736 21 onlyif mysql # use DIV operator for integer division query I rowsort label-7744 SELECT + 78 DIV col1 + - col0 AS col0 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-7744 SELECT + 78 / col1 + - col0 AS col0 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT col2 - + col2 * col1 AS col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT - col1 * + col2 + col2 AS col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT + col0 + 92 + col0 * + col2 * + col2 AS col0 FROM tab0 ---- 162 26252 598617 query I rowsort SELECT DISTINCT - col2 + 80 AS col0 FROM tab1 ---- -16 23 26 query I rowsort SELECT ALL + 42 AS col0 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e query I rowsort SELECT + col2 * + 62 * col1 + col1 FROM tab0 ---- 176042 462735 6111 query I rowsort SELECT ALL 90 + + 18 * tab2.col2 FROM tab2 ---- 558 576 774 query I rowsort SELECT - col2 * 91 + - col2 FROM tab0 ---- -3036 -7544 -92 query I rowsort SELECT + cor0.col2 + col2 * 45 FROM tab1 AS cor0 ---- 2484 2622 4416 query I rowsort SELECT ALL - + col0 * col0 * - col2 AS col1 FROM tab1 AS cor0 ---- 233472 486 614400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7755 SELECT - col2 + CAST( 78 AS SIGNED ) * + col1 * ( col0 ) AS col1 FROM tab1 AS cor0 ---- 49863 6030 81024 skipif mysql # not compatible query I rowsort label-7755 SELECT - col2 + CAST ( 78 AS INTEGER ) * + col1 * ( col0 ) AS col1 FROM tab1 AS cor0 ---- 49863 6030 81024 onlyif mysql # use DIV operator for integer division query I rowsort label-7756 SELECT col2 + - 5 DIV col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-7756 SELECT col2 + - 5 / col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + - col2 * 80 FROM tab1 AS cor0 ---- -4320 -4560 -7680 query I rowsort SELECT DISTINCT col1 - ( col1 ) AS col2 FROM tab0 cor0 ---- 0 query I rowsort SELECT DISTINCT - cor0.col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- -10 -13 -26 query I rowsort SELECT ALL - cor0.col0 + ( + col1 ) * 72 FROM tab0 AS cor0 ---- 6168 6463 6949 query I rowsort SELECT - ( ( + col0 ) ) FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT ALL + col1 * + col2 * - col1 AS col1 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT DISTINCT + 70 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 70 query I rowsort SELECT DISTINCT - ( + 5 ) * col1 AS col2 FROM tab0 cor0 ---- -430 -455 -485 query I rowsort SELECT + - col2 + + col2 * col0 FROM tab0 cor0 ---- 34 7216 759 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7766 SELECT CAST( NULL AS SIGNED ) * 58 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7766 SELECT CAST ( NULL AS INTEGER ) * 58 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + 7 * col2 FROM tab0 AS cor0 ---- 231 574 7 onlyif mysql # use DIV operator for integer division query I rowsort label-7768 SELECT 56 DIV 10 AS col2 FROM tab1 AS cor0 ---- 5 5 5 skipif mysql # not compatible query I rowsort label-7768 SELECT 56 / 10 AS col2 FROM tab1 AS cor0 ---- 5 5 5 query I rowsort SELECT ( - 51 ) AS col1 FROM tab0 AS cor0 ---- -51 -51 -51 query I rowsort SELECT DISTINCT cor0.col1 * 35 AS col2 FROM tab2, tab1 AS cor0 ---- 350 455 910 query I rowsort SELECT DISTINCT + col0 - col2 * - col2 FROM tab2 AS cor0 ---- 1523 736 754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - col1 col2 FROM tab0 ---- -2 -62 -62 query I rowsort SELECT ALL - tab0.col1 * 54 + + 94 AS col2 FROM tab0 ---- -4550 -4820 -5144 query I rowsort SELECT col2 + 94 FROM tab0 AS cor0 ---- 127 176 95 query I rowsort SELECT col2 * col0 + + col1 AS col0 FROM tab1 cor0 ---- 188 3658 7693 query I rowsort SELECT + cor0.col0 * 86 + col1 AS col1 FROM tab1 AS cor0 ---- 284 5514 6893 query I rowsort SELECT ALL - 31 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa query I rowsort SELECT + - ( cor0.col0 ) * + col2 - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -14080 -171 -7744 query I rowsort SELECT col2 + col1 + + col1 * + col2 AS col2 FROM tab1 ---- 1357 1484 637 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 28 - col1 col2 FROM tab2 ---- -3 -31 11 query I rowsort SELECT - col2 * cor0.col1 + + 20 FROM tab2 AS cor0 ---- -1514 -626 -817 query I rowsort SELECT ALL - 63 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7783 SELECT ALL - col0 + col1 + - CAST( 88 AS SIGNED ) AS col2 FROM tab0 ---- -26 -26 -86 skipif mysql # not compatible query I rowsort label-7783 SELECT ALL - col0 + col1 + - CAST ( 88 AS INTEGER ) AS col2 FROM tab0 ---- -26 -26 -86 query I rowsort SELECT + 30 * col1 * 86 FROM tab0 AS cor0 ---- 221880 234780 250260 query I rowsort SELECT ALL 85 * + col0 * col2 + + col1 FROM tab2 AS cor0 ---- 16096 172439 255187 query I rowsort SELECT DISTINCT - - col1 * col2 + 91 FROM tab0 AS cor0 ---- 188 2929 7553 query I rowsort SELECT - - 89 * col0 AS col2 FROM tab0 AS cor0 ---- 2136 3115 7921 query I rowsort SELECT DISTINCT - 40 * + col0 FROM tab2 AS cor0 ---- -280 -3120 -3160 query I rowsort SELECT + - 24 AS col0 FROM tab2 AS cor0 ---- -24 -24 -24 query I rowsort SELECT ALL - cor0.col1 * col0 + + 62 * col2 AS col0 FROM tab0 AS cor0 ---- -18 -3015 -3333 query I rowsort SELECT DISTINCT - - 64 * + col2 AS col0 FROM tab2 cor0 ---- 1664 1728 2432 query I rowsort SELECT + - col0 * cor0.col0 + + col0 AS col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 onlyif mysql # use DIV operator for integer division query I rowsort label-7793 SELECT - col0 - ( col2 ) DIV col0 col1 FROM tab0 ---- -25 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7793 SELECT - col0 - ( col2 ) / col0 col1 FROM tab0 ---- -25 -35 -89 query I rowsort SELECT 61 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 07149905a72bd87553381f34d19ed290 query I rowsort SELECT ALL - col2 + + 83 FROM tab1 AS cor0 ---- -13 26 29 query I rowsort SELECT cor0.col2 + + 8 * + 78 AS col2 FROM tab0 AS cor0 ---- 625 657 706 onlyif mysql # use DIV operator for integer division query I rowsort label-7797 SELECT ALL + - col1 - - 35 DIV col1 AS col0 FROM tab2 AS cor0 ---- -15 -30 -59 skipif mysql # not compatible query I rowsort label-7797 SELECT ALL + - col1 - - 35 / col1 AS col0 FROM tab2 AS cor0 ---- -15 -30 -59 query I rowsort SELECT - - col1 * col1 * col2 + col0 * 84 AS col1 FROM tab1 AS cor0 ---- 11076 22944 36756 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7799 SELECT + CAST( col1 AS SIGNED ) + col2 * + col0 AS col2 FROM tab2 AS cor0 ---- 2087 220 3019 skipif mysql # not compatible query I rowsort label-7799 SELECT + CAST ( col1 AS INTEGER ) + col2 * + col0 AS col2 FROM tab2 AS cor0 ---- 2087 220 3019 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 0 * 12 * col1 col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + ( 28 ) * col0 + + ( - col1 ) AS col2 FROM tab2 AS cor0 ---- 165 2125 2195 query I rowsort SELECT col1 + - ( + col0 ) * col2 FROM tab1 cor0 ---- -136 -3638 -7667 query I rowsort SELECT ALL + 22 * col2 - - cor0.col2 AS col0 FROM tab2 cor0 ---- 598 621 874 onlyif mysql # use DIV operator for integer division query I rowsort label-7804 SELECT DISTINCT + - ( + 95 ) DIV col1 col0 FROM tab2 AS cor0 ---- -1 -3 -5 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7804 SELECT DISTINCT + - ( + 95 ) / col1 col0 FROM tab2 AS cor0 ---- -1 -3 -5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 4 - 22 * col1 col1 FROM tab1 AS cor0 ---- -216 -282 -568 query I rowsort SELECT + col1 * - col1 + col2 AS col1 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT DISTINCT - col2 * - 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-7808 SELECT - + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-7808 SELECT - + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ALL col1 + - ( col2 ) AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7810 SELECT - CAST( col1 AS SIGNED ) * + col2 * + 87 FROM tab2 AS cor0 ---- -133458 -56202 -72819 skipif mysql # not compatible query I rowsort label-7810 SELECT - CAST ( col1 AS INTEGER ) * + col2 * + 87 FROM tab2 AS cor0 ---- -133458 -56202 -72819 query I rowsort SELECT DISTINCT - + 22 - - 26 AS col2 FROM tab1 AS cor0 ---- 4 query I rowsort SELECT ALL col1 * 99 AS col2 FROM tab1 ---- 1287 2574 990 query I rowsort SELECT + + col2 * + 72 FROM tab1 AS cor0 ---- 3888 4104 6912 query I rowsort SELECT ALL + col1 * - ( col1 + + col0 ) AS col2 FROM tab2 AS cor0 ---- -1178 -1632 -8083 query I rowsort SELECT ALL - + ( cor0.col0 ) * - col2 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT + col1 * - col1 + - 6 FROM tab2 AS cor0 ---- -295 -3487 -967 query I rowsort SELECT DISTINCT - col0 * - tab2.col1 + - col2 * col2 * col1 - - col2 * col0 FROM tab2 ---- -20203 -22193 -33254 query I rowsort SELECT col1 - + col1 * 54 FROM tab1 cor0 ---- -1378 -530 -689 query I rowsort SELECT ALL col2 + + col1 * 81 FROM tab0 AS cor0 ---- 6999 7453 7858 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7820 SELECT DISTINCT - + col1 - cor0.col1 * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7820 SELECT DISTINCT - + col1 - cor0.col1 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7821 SELECT DISTINCT - cor0.col0 DIV col0 - ( + 18 ) AS col1 FROM tab0 cor0 ---- -19 skipif mysql # not compatible query I rowsort label-7821 SELECT DISTINCT - cor0.col0 / col0 - ( + 18 ) AS col1 FROM tab0 cor0 ---- -19 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7822 SELECT CAST( NULL AS SIGNED ) + tab1.col2 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7822 SELECT CAST ( NULL AS INTEGER ) + tab1.col2 AS col1 FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7823 SELECT DISTINCT CAST( col0 AS SIGNED ) * + tab0.col1 FROM tab0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-7823 SELECT DISTINCT CAST ( col0 AS INTEGER ) * + tab0.col1 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT + col1 * 74 AS col2 FROM tab1 ---- 1924 740 962 query I rowsort SELECT DISTINCT + col1 * + 85 AS col2 FROM tab2 ---- 1445 2635 5015 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 - + 35 col2 FROM tab1 ---- -22 -25 -9 query I rowsort SELECT DISTINCT - cor0.col1 * ( ( col0 ) ) AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 + + ( + ( - cor0.col1 ) ) + cor0.col2 col1 FROM tab0 AS cor0 ---- -100 -139 -193 query I rowsort SELECT DISTINCT - col1 * ( - col1 ) + + col1 FROM tab1 AS cor0 ---- 110 182 702 query I rowsort SELECT ALL + + col2 * + col0 + cor0.col0 FROM tab2 cor0 ---- 196 2106 3081 query I rowsort SELECT DISTINCT - + col0 * - col1 * - 34 FROM tab2 AS cor0 ---- -156468 -45662 -7378 query I rowsort SELECT ALL - col1 * ( 47 ) FROM tab0 AS cor0 ---- -4042 -4277 -4559 query I rowsort SELECT + col2 * + col0 + + ( col0 ) * cor0.col1 * 87 + col2 AS col1 FROM tab1 cor0 ---- 59385 7002 98256 query I rowsort SELECT + - col1 * 46 FROM tab0 AS cor0 ---- -3956 -4186 -4462 query I rowsort SELECT DISTINCT + + col0 * + 50 + - cor0.col2 * col0 FROM tab0 AS cor0 ---- -2848 1715 408 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + cor0.col2 * - 9 * col0 col2 FROM tab0 AS cor0 ---- -315 -65682 -7128 query I rowsort SELECT DISTINCT + 53 + tab2.col0 FROM tab2 ---- 131 132 60 query I rowsort SELECT DISTINCT ( - col0 + col1 ) FROM tab2 ---- -19 -62 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - cor0.col2 col1 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT - col0 + + 5 + col0 * - col2 AS col0 FROM tab0 AS cor0 ---- -65 -7382 -811 query I rowsort SELECT - col0 * 1 + + cor0.col2 * col0 FROM tab1 cor0 ---- 159 3584 7600 query I rowsort SELECT + tab0.col2 + cor0.col0 FROM tab0, tab1, tab2 cor0 ---- 27 values hashing to 69aef5111c4de6da0dae514eae0942b5 query I rowsort SELECT - 60 + - col1 AS col0 FROM tab2 ---- -119 -77 -91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab2.col2 + + col2 col2 FROM tab2 ---- 52 54 76 query I rowsort SELECT ALL 3 * col2 AS col1 FROM tab2 AS cor0 ---- 114 78 81 query I rowsort SELECT + col1 + - 39 AS col0 FROM tab0 AS cor0 ---- 47 52 58 query I rowsort SELECT + col2 * + ( + col2 ) FROM tab0 cor0 ---- 1 1089 6724 onlyif mysql # use DIV operator for integer division query I rowsort label-7848 SELECT DISTINCT + col2 DIV - col1 + col2 AS col2 FROM tab2 AS cor0 ---- 26 27 36 skipif mysql # not compatible query I rowsort label-7848 SELECT DISTINCT + col2 / - col1 + col2 AS col2 FROM tab2 AS cor0 ---- 26 27 36 query I rowsort SELECT ALL + + col0 + - cor0.col0 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT + col1 + ( 90 ) FROM tab2 AS cor0 ---- 107 121 149 query I rowsort SELECT + - col0 * + cor0.col2 * col2 AS col1 FROM tab2 AS cor0 ---- -114076 -5103 -52728 query I rowsort SELECT DISTINCT - 12 * col0 AS col1 FROM tab0 AS cor0 ---- -1068 -288 -420 query I rowsort SELECT + - 63 + 50 * + col0 FROM tab1 AS cor0 ---- 3137 3937 87 query I rowsort SELECT + cor0.col1 + col0 * + col0 * col1 FROM tab1 cor0 ---- 260 40970 83213 query I rowsort SELECT ALL - + col0 * + 46 AS col2 FROM tab0 AS cor0 ---- -1104 -1610 -4094 query I rowsort SELECT DISTINCT - col2 * col1 * - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT ALL + 87 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to fa0cdd86483844cda3bb806e032d5c64 query I rowsort SELECT + + col0 + - col0 AS col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7859 SELECT - + col0 * 27 DIV col0 + + ( - col0 ) FROM tab1 cor0 ---- -107 -30 -91 skipif mysql # not compatible query I rowsort label-7859 SELECT - + col0 * 27 / col0 + + ( - col0 ) FROM tab1 cor0 ---- -107 -30 -91 query I rowsort SELECT + cor0.col0 + + cor0.col2 AS col0 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT - ( - cor1.col0 ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT + 15 AS col2 FROM tab1 cor0 ---- 15 15 15 query I rowsort SELECT 98 * cor0.col2 FROM tab2 AS cor0 ---- 2548 2646 3724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( + cor0.col2 ) * col2 col2 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT - - col2 * + col2 + + 53 AS col2 FROM tab0 AS cor0 ---- 1142 54 6777 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 67 * col2 col1 FROM tab2 AS cor0 ---- 1742 1809 2546 query I rowsort SELECT + col1 * + col2 + col1 AS col1 FROM tab0 AS cor0 ---- 194 2924 7553 onlyif mysql # use DIV operator for integer division query I rowsort label-7868 SELECT DISTINCT col2 * col1 DIV cor0.col0 + + col1 * - cor0.col1 AS col1 FROM tab0 cor0 ---- -7278 -8198 -9407 skipif mysql # not compatible query I rowsort label-7868 SELECT DISTINCT col2 * col1 / cor0.col0 + + col1 * - cor0.col1 AS col1 FROM tab0 cor0 ---- -7278 -8198 -9407 onlyif mysql # use DIV operator for integer division query I rowsort label-7869 SELECT col0 * col2 + cor0.col2 DIV col1 AS col0 FROM tab2 AS cor0 ---- 189 2028 3004 skipif mysql # not compatible query I rowsort label-7869 SELECT col0 * col2 + cor0.col2 / col1 AS col0 FROM tab2 AS cor0 ---- 189 2028 3004 query I rowsort SELECT DISTINCT col0 + + col1 * cor0.col1 + col1 FROM tab0 AS cor0 ---- 7506 8461 9541 query I rowsort SELECT col1 * + ( col2 ) AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-7872 SELECT DISTINCT - col2 DIV tab2.col1 col1 FROM tab2 ---- -2 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7872 SELECT DISTINCT - col2 / tab2.col1 col1 FROM tab2 ---- -2 0 query I rowsort SELECT - 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 08d3853e39924d3c636260a6dd856837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 34 + col1 col0 FROM tab1 AS cor0 ---- 44 47 60 query I rowsort SELECT + tab0.col2 * - 77 FROM tab0 ---- -2541 -6314 -77 query I rowsort SELECT - cor0.col1 + 44 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to d93764aff40788636a1c7c4523e4c914 query I rowsort SELECT 97 * + tab0.col2 FROM tab0 ---- 3201 7954 97 query I rowsort SELECT DISTINCT + 65 * col1 FROM tab1 ---- 1690 650 845 query I rowsort SELECT - + cor0.col0 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 onlyif mysql # use DIV operator for integer division query I rowsort label-7880 SELECT - 52 + col2 DIV col1 AS col1 FROM tab0 AS cor0 ---- -52 -52 -52 skipif mysql # not compatible query I rowsort label-7880 SELECT - 52 + col2 / col1 AS col1 FROM tab0 AS cor0 ---- -52 -52 -52 query I rowsort SELECT + col1 * - col0 - col2 AS col2 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT - col1 * col0 + col0 AS col2 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT - + col0 + 44 AS col1 FROM tab0 cor0 ---- -45 20 9 query I rowsort SELECT - + col1 * 4 + - col0 AS col1 FROM tab1 AS cor0 ---- -104 -107 -132 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 16 - - cor0.col0 * + col2 col1 FROM tab2 AS cor0 ---- 2044 205 3018 query I rowsort SELECT cor0.col2 + - col1 * + col2 FROM tab0 cor0 ---- -2805 -7380 -96 query I rowsort SELECT DISTINCT - col2 * 48 AS col1 FROM tab0 AS cor0 ---- -1584 -3936 -48 onlyif mysql # use DIV operator for integer division query I rowsort label-7888 SELECT - col0 DIV + col1 AS col1 FROM tab2 cor0 ---- -1 -4 0 skipif mysql # not compatible query I rowsort label-7888 SELECT - col0 / + col1 AS col1 FROM tab2 cor0 ---- -1 -4 0 query I rowsort SELECT ALL col1 * 73 FROM tab1 cor0 ---- 1898 730 949 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7890 SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7890 SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + cor0.col2 * - ( cor0.col0 ) AS col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * 27 col1 FROM tab2 AS cor0 ---- 1026 702 729 query I rowsort SELECT ALL 74 * tab2.col1 FROM tab2 ---- 1258 2294 4366 query I rowsort SELECT - col2 + 21 * + col0 FROM tab1 AS cor0 ---- 1287 1584 9 onlyif mysql # use DIV operator for integer division query I rowsort label-7895 SELECT DISTINCT + cor0.col0 DIV + 22 AS col0 FROM tab1 AS cor0 ---- 0 2 3 skipif mysql # not compatible query I rowsort label-7895 SELECT DISTINCT + cor0.col0 / + 22 AS col0 FROM tab1 AS cor0 ---- 0 2 3 query I rowsort SELECT ALL cor0.col1 + + 82 * 54 FROM tab2 AS cor0 ---- 4445 4459 4487 query I rowsort SELECT ALL + 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query I rowsort SELECT - col1 + 40 + + col1 * col1 FROM tab1 ---- 130 196 690 query I rowsort SELECT col1 * - ( col0 ) FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT - cor0.col2 - col0 AS col0 FROM tab0 cor0 ---- -171 -36 -57 query I rowsort SELECT ALL + col2 + ( col0 ) * col2 * - col0 + 6 FROM tab1 AS cor0 ---- -233409 -426 -614298 query I rowsort SELECT ALL col2 - 46 FROM tab0 AS cor0 ---- -13 -45 36 query I rowsort SELECT ALL 97 * 93 FROM tab0, tab0 cor0 ---- 9 values hashing to 35dc7f8791d07c9355e9763fa81a3db9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7904 SELECT DISTINCT col1 * + ( - col0 + CAST( NULL AS SIGNED ) ) FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-7904 SELECT DISTINCT col1 * + ( - col0 + CAST ( NULL AS INTEGER ) ) FROM tab0 ---- NULL query I rowsort SELECT ALL - tab0.col2 * + 6 AS col2 FROM tab0 ---- -198 -492 -6 query I rowsort SELECT ALL + 30 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 6c98840ed134c765d56389f4150075f0 query I rowsort SELECT ALL + - cor0.col1 * + col1 FROM tab1 AS cor0 ---- -100 -169 -676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col0 * col2 col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + 56 + col1 * col2 AS col2 FROM tab0 ---- 153 2894 7518 query I rowsort SELECT DISTINCT - 17 FROM tab1 ---- -17 query I rowsort SELECT ALL - cor0.col1 + + col0 AS col2 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT - ( col2 ) * + col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - col1 * + tab1.col2 AS col0 FROM tab1 ---- -1248 -1404 -570 onlyif mysql # use DIV operator for integer division query I rowsort label-7914 SELECT DISTINCT + 46 DIV col2 AS col2 FROM tab0 AS cor0 ---- 0 1 46 skipif mysql # not compatible query I rowsort label-7914 SELECT DISTINCT + 46 / col2 AS col2 FROM tab0 AS cor0 ---- 0 1 46 query I rowsort SELECT ALL - - col2 * col2 + - col0 FROM tab0 AS cor0 ---- -34 1065 6635 query I rowsort SELECT - tab0.col0 + + tab0.col0 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT 89 + col1 AS col0 FROM tab2 AS cor0 ---- 106 120 148 query I rowsort SELECT ALL + - cor0.col1 - - col0 * col0 FROM tab2 AS cor0 ---- 18 6025 6224 query I rowsort SELECT ALL col0 * - ( - ( + col1 ) ) FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-7920 SELECT ALL - col2 DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7920 SELECT ALL - col2 / CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + - col1 + + 74 AS col2 FROM tab0 cor0 ---- -12 -17 -23 onlyif mysql # use DIV operator for integer division query I rowsort label-7922 SELECT DISTINCT - col1 DIV - 85 col0 FROM tab0 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7922 SELECT DISTINCT - col1 / - 85 col0 FROM tab0 ---- 1 query I rowsort SELECT ALL + col1 * - 65 * + col0 AS col2 FROM tab0 ---- -134160 -220675 -526435 query I rowsort SELECT - col1 + 86 * col0 AS col0 FROM tab1 AS cor0 ---- 232 5494 6867 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7925 SELECT DISTINCT col1 * - CAST( - 40 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0 ---- 3416 3551 3845 skipif mysql # not compatible query I rowsort label-7925 SELECT DISTINCT col1 * - CAST ( - 40 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0 ---- 3416 3551 3845 query I rowsort SELECT - col1 * 3 AS col1 FROM tab0 AS cor0 ---- -258 -273 -291 query I rowsort SELECT DISTINCT - col0 * + col1 * + cor0.col2 + - col2 AS col2 FROM tab2 AS cor0 ---- -119678 -51072 -5886 query I rowsort SELECT DISTINCT + - col2 + col0 + col1 AS col1 FROM tab0 AS cor0 ---- 131 77 98 query I rowsort SELECT + 92 * col2 + col1 FROM tab2 cor0 ---- 2451 2515 3513 query I rowsort SELECT ALL - - col0 - + 10 FROM tab2 AS cor0 ---- -3 68 69 query I rowsort SELECT + 77 + - col0 + - col2 AS col2 FROM tab0 AS cor0 ---- -94 20 41 query I rowsort SELECT DISTINCT - col1 + + col1 * + col2 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT ALL - 71 - col0 * col1 FROM tab2 cor0 ---- -1414 -288 -4673 query I rowsort SELECT ALL + col0 + col1 * col0 * - ( - col1 ) FROM tab1 AS cor0 ---- 13600 2031 6464 query I rowsort SELECT ALL + ( cor0.col1 ) * - col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + 12 * col0 AS col1 FROM tab0 AS cor0 ---- 1068 288 420 query I rowsort SELECT + + col2 * - col2 + + ( + ( col1 ) ) AS col1 FROM tab2 AS cor0 ---- -1427 -617 -698 query I rowsort SELECT + + col2 + col2 * col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT cor0.col1 * col1 + - 57 FROM tab0 AS cor0 ---- 7339 8224 9352 query I rowsort SELECT tab0.col0 + col0 * col0 AS col0 FROM tab0 ---- 1260 600 8010 query I rowsort SELECT - ( + col0 ) * + col1 AS col1 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + ( + col0 ) + - col0 AS col1 FROM tab1 ---- 0 query I rowsort SELECT col0 * + 21 + col2 AS col2 FROM tab2 ---- 1664 1697 174 query I rowsort SELECT - col1 + col0 * tab0.col0 AS col1 FROM tab0 ---- 1128 490 7830 onlyif mysql # use DIV operator for integer division query I rowsort label-7945 SELECT DISTINCT ( col1 ) + col0 * col1 DIV - 79 FROM tab1 ---- 0 2 26 skipif mysql # not compatible query I rowsort label-7945 SELECT DISTINCT ( col1 ) + col0 * col1 / - 79 FROM tab1 ---- 0 2 26 query I rowsort SELECT ( col2 * - col2 ) + + 87 AS col2 FROM tab0 ---- -1002 -6637 86 query I rowsort SELECT ALL - ( 78 ) + - col0 AS col1 FROM tab1 ---- -142 -158 -81 query I rowsort SELECT ( ( cor0.col1 ) ) * col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7949 SELECT - CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-7949 SELECT - CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL ( tab2.col1 ) AS col1 FROM tab2 ---- 17 31 59 query I rowsort SELECT col2 + ( col1 + col2 ) AS col1 FROM tab0 AS cor0 ---- 152 255 99 query I rowsort SELECT DISTINCT - cor0.col1 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1 ---- -17 -31 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7953 SELECT ALL - ( + col1 ) * CAST( NULL AS SIGNED ) + + col1 + col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7953 SELECT ALL - ( + col1 ) * CAST ( NULL AS INTEGER ) + + col1 + col1 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7954 SELECT - - col1 DIV - col2 + 26 FROM tab0 cor0 ---- -71 24 25 skipif mysql # not compatible query I rowsort label-7954 SELECT - - col1 / - col2 + 26 FROM tab0 cor0 ---- -71 24 25 query I rowsort SELECT DISTINCT + col2 * + col0 + col2 + + col1 FROM tab2 ---- 2113 247 3057 query I rowsort SELECT + cor0.col2 * 56 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to e9396190df4c4c6d05a46eb270e304f3 query I rowsort SELECT - cor0.col0 + col0 * - ( - 18 + - col1 ) * - col0 AS col1 FROM tab0 AS cor0 ---- -140910 -59928 -863478 query I rowsort SELECT ALL + 83 AS col2 FROM tab1 ---- 83 83 83 query I rowsort SELECT - - col2 * 68 AS col2 FROM tab1 AS cor0 ---- 3672 3876 6528 query I rowsort SELECT DISTINCT - cor0.col1 * - 87 + + col2 * col2 FROM tab0 AS cor0 ---- 14641 8440 8571 query I rowsort SELECT - col2 * col1 + - 15 FROM tab0 cor0 ---- -112 -2853 -7477 query I rowsort SELECT cor0.col0 * 39 FROM tab2 cor0 ---- 273 3042 3081 query I rowsort SELECT + 34 + tab1.col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to ec226363056bac391d27f8c6543c566e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7964 SELECT col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7964 SELECT col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - col0 * 89 + + 93 AS col0 FROM tab1 AS cor0 ---- -174 -5603 -7027 query I rowsort SELECT - col2 * col1 + + col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT + + col1 * col1 + + 78 FROM tab0 cor0 ---- 7474 8359 9487 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7968 SELECT - cor0.col2 / - ( col1 ) + cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7968 SELECT - cor0.col2 / - ( col1 ) + cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + col2 + + ( col1 ) FROM tab2 cor0 ---- -21 33 4 onlyif mysql # use DIV operator for integer division query I rowsort label-7970 SELECT + col2 DIV ( + col1 ) + + col0 + tab2.col0 FROM tab2 ---- 14 156 160 skipif mysql # not compatible query I rowsort label-7970 SELECT + col2 / ( + col1 ) + + col0 + tab2.col0 FROM tab2 ---- 14 156 160 query I rowsort SELECT DISTINCT + col2 - - tab0.col2 * + col1 AS col0 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT - col0 + + 93 - + 1 FROM tab0 ---- 3 57 68 onlyif mysql # use DIV operator for integer division query I rowsort label-7973 SELECT col0 DIV 12 AS col0 FROM tab2 ---- 0 6 6 skipif mysql # not compatible query I rowsort label-7973 SELECT col0 / 12 AS col0 FROM tab2 ---- 0 6 6 query I rowsort SELECT - + col2 * cor0.col1 + 70 AS col1 FROM tab0 AS cor0 ---- -27 -2768 -7392 onlyif mysql # use DIV operator for integer division query I rowsort label-7975 SELECT + col0 DIV - CAST( - col2 AS SIGNED ) - - col2 * cor0.col0 FROM tab0 AS cor0 ---- 70 7299 792 skipif mysql # not compatible query I rowsort label-7975 SELECT + col0 / - CAST ( - col2 AS INTEGER ) - - col2 * cor0.col0 FROM tab0 AS cor0 ---- 70 7299 792 query I rowsort SELECT + cor0.col1 + + 17 * - cor0.col0 FROM tab1 AS cor0 ---- -1078 -1347 -25 onlyif mysql # use DIV operator for integer division query I rowsort label-7977 SELECT ALL - - ( ( + col1 ) ) DIV cor0.col1 + + 42 FROM tab2 AS cor0 ---- 43 43 43 skipif mysql # not compatible query I rowsort label-7977 SELECT ALL - - ( ( + col1 ) ) / cor0.col1 + + 42 FROM tab2 AS cor0 ---- 43 43 43 query I rowsort SELECT + - ( col0 ) AS col0 FROM tab0 cor0 ---- -24 -35 -89 query I rowsort SELECT + col2 * col0 + col1 * + col2 + 7 FROM tab1 AS cor0 ---- 1573 4225 8935 query I rowsort SELECT - + 43 * + col2 + col0 * ( 6 ) + - col0 AS col2 FROM tab0 cor0 ---- -1299 -3081 132 query I rowsort SELECT ALL + cor0.col2 * + col2 + + col2 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT ALL - 15 * - col0 + - col1 AS col2 FROM tab1 AS cor0 ---- 1187 19 950 query I rowsort SELECT 21 + - col1 FROM tab0 AS cor0 ---- -65 -70 -76 query I rowsort SELECT ALL + cor0.col0 + col0 * + col1 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-7985 SELECT ALL - - col2 DIV 5 + col0 AS col1 FROM tab0 AS cor0 ---- 105 30 35 skipif mysql # not compatible query I rowsort label-7985 SELECT ALL - - col2 / 5 + col0 AS col1 FROM tab0 AS cor0 ---- 105 30 35 query I rowsort SELECT ( - col0 ) * + col1 + ( - 73 ) AS col0 FROM tab0 AS cor0 ---- -2137 -3468 -8172 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7987 SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab1 cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-7987 SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT - - 34 + - col2 * col0 AS col0 FROM tab1 AS cor0 ---- -128 -3614 -7646 query I rowsort SELECT - col1 + - col0 * + 87 AS col2 FROM tab1 AS cor0 ---- -287 -5578 -6973 query I rowsort SELECT + ( + col1 ) + - col0 AS col2 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT - + ( - col2 ) * 75 FROM tab0 AS cor0 ---- 2475 6150 75 query I rowsort SELECT + - col0 + - col1 * + col1 AS col0 FROM tab2 AS cor0 ---- -3559 -368 -968 query I rowsort SELECT ALL - - cor0.col0 - col1 AS col2 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT + - col1 * col2 - - 78 AS col2 FROM tab1 AS cor0 ---- -1170 -1326 -492 query I rowsort SELECT DISTINCT col1 * cor0.col1 + - 16 AS col1 FROM tab0 AS cor0 ---- 7380 8265 9393 query I rowsort SELECT - 57 - - col1 AS col1 FROM tab2 ---- -26 -40 2 query I rowsort SELECT 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to fa0cdd86483844cda3bb806e032d5c64 query I rowsort SELECT ALL + cor0.col1 * + 5 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 734fb968f04202fda33f6258fa1bd94e query I rowsort SELECT - tab1.col2 * + tab1.col0 * + col0 FROM tab1 ---- -233472 -486 -614400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 57 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col2 < NULL OR ( col2 ) >= ( col2 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT ALL - col2 + - cor0.col0 * + col1 FROM tab1 AS cor0 ---- -1136 -132 -697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col2 + col1 * col2 col0 FROM tab1 cor0 ---- 1566 4218 8928 query I rowsort SELECT DISTINCT + + cor0.col1 * col0 - col1 * + col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - col2 + + col0 * col1 * col2 FROM tab1 AS cor0 ---- 36423 4158 99744 query I rowsort SELECT ALL col1 + cor0.col1 * col2 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT ALL - col2 * - col2 + + col0 AS col2 FROM tab1 AS cor0 ---- 2919 3313 9296 onlyif mysql # use DIV operator for integer division query I rowsort label-8008 SELECT - cor0.col1 + col1 DIV col1 FROM tab2 cor0 ---- -16 -30 -58 skipif mysql # not compatible query I rowsort label-8008 SELECT - cor0.col1 + col1 / col1 FROM tab2 cor0 ---- -16 -30 -58 query I rowsort SELECT ALL cor0.col2 - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col1 * + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT - col2 + cor0.col0 * cor0.col0 FROM tab0 AS cor0 ---- 1224 543 7839 query I rowsort SELECT ALL - cor0.col2 * cor0.col1 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col2 * - col1 - - tab1.col1 AS col2 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT ALL tab0.col1 + + col2 AS col1 FROM tab0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + col2 col1 FROM tab1 ---- -7 16 51 query I rowsort SELECT ALL - col1 * - col0 + col1 AS col2 FROM tab1 ---- 104 1053 650 onlyif mysql # use DIV operator for integer division query I rowsort label-8017 SELECT col0 + col0 * col1 DIV col2 FROM tab1 AS cor0 ---- 4 75 90 skipif mysql # not compatible query I rowsort label-8017 SELECT col0 + col0 * col1 / col2 FROM tab1 AS cor0 ---- 4 75 90 query I rowsort SELECT ALL + tab1.col0 + tab1.col0 FROM tab1 ---- 128 160 6 query I rowsort SELECT ALL col2 * - tab2.col1 + col2 * col0 * - col1 + col0 FROM tab2 ---- -121108 -51601 -6689 query I rowsort SELECT DISTINCT - col2 * + tab1.col0 - col0 FROM tab1 ---- -165 -3712 -7760 query I rowsort SELECT col0 + + col1 * + col0 AS col0 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT col0 * - col2 - - col2 * tab1.col2 AS col0 FROM tab1 ---- -399 1536 2754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 / - col1 col2 FROM tab1 WHERE NOT ( NULL ) <> ( NULL ) ---- query I rowsort SELECT col1 * + col0 * col0 AS col0 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT ALL col0 * tab2.col2 AS col2 FROM tab2 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT - + col2 + + col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL - ( - col0 ) * + ( + col2 ) + col1 * col0 FROM tab0 AS cor0 ---- 15397 2856 3430 query I rowsort SELECT DISTINCT - + cor0.col2 * - col2 + + col0 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT - col2 * - col2 + + 6 AS col2 FROM tab0 cor0 ---- 1095 6730 7 onlyif mysql # use DIV operator for integer division query I rowsort label-8031 SELECT DISTINCT - + col1 DIV cor0.col0 + - 12 FROM tab2 AS cor0 ---- -12 -16 skipif mysql # not compatible query I rowsort label-8031 SELECT DISTINCT - + col1 / cor0.col0 + - 12 FROM tab2 AS cor0 ---- -12 -16 onlyif mysql # use DIV operator for integer division query I rowsort label-8032 SELECT col2 DIV col0 + col2 FROM tab1 ---- 57 72 97 skipif mysql # not compatible query I rowsort label-8032 SELECT col2 / col0 + col2 FROM tab1 ---- 57 72 97 query I rowsort SELECT ALL - tab0.col2 + col0 + col0 AS col0 FROM tab0 ---- 15 69 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col2 * + col0 col2 FROM tab1 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * + col2 + col0 col0 FROM tab1 ---- 1328 1407 634 onlyif mysql # use DIV operator for integer division query I rowsort label-8036 SELECT ALL - tab0.col2 DIV + col0 AS col2 FROM tab0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-8036 SELECT ALL - tab0.col2 / + col0 AS col2 FROM tab0 ---- -1 0 0 query I rowsort SELECT col0 + col0 * col1 + + col1 AS col0 FROM tab1 ---- 107 1133 714 query I rowsort SELECT DISTINCT - tab1.col2 + col2 + - col1 FROM tab1 ---- -10 -13 -26 query III rowsort SELECT ALL * FROM tab1 WHERE ( col0 - + col0 * + col1 ) <> ( NULL ) ---- query I rowsort SELECT ALL col2 * col0 * col0 + - col2 AS col1 FROM tab1 AS cor0 ---- 233415 432 614304 onlyif mysql # use DIV operator for integer division query I rowsort label-8041 SELECT + tab1.col2 * col0 + + tab1.col1 - - col0 DIV col2 FROM tab1 ---- 188 3659 7693 skipif mysql # not compatible query I rowsort label-8041 SELECT + tab1.col2 * col0 + + tab1.col1 - - col0 / col2 FROM tab1 ---- 188 3659 7693 query I rowsort SELECT DISTINCT col2 * - col2 + - col0 FROM tab0 AS cor0 ---- -1113 -36 -6813 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - col0 / cor0.col2 col1 FROM tab1 AS cor0 WHERE NULL >= NULL ---- query III rowsort SELECT * FROM tab0 WHERE col2 = ( - col0 ) ---- query I rowsort SELECT ALL - tab2.col1 * + col2 FROM tab2 WHERE NOT ( - col2 * - col2 ) NOT BETWEEN NULL AND - col1 ---- query I rowsort SELECT DISTINCT - col0 * - col2 + + col2 AS col1 FROM tab1 ---- 216 3705 7776 onlyif mysql # use DIV operator for integer division query I rowsort label-8047 SELECT ALL - col1 + + col0 + - col0 DIV col1 FROM tab1 ---- -23 48 61 skipif mysql # not compatible query I rowsort label-8047 SELECT ALL - col1 + + col0 + - col0 / col1 FROM tab1 ---- -23 48 61 query I rowsort SELECT - col1 * + col0 * col2 AS col0 FROM tab0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT + col1 * col2 + col0 + - col2 AS col2 FROM tab1 ---- 1232 1353 577 onlyif mysql # use DIV operator for integer division query I rowsort label-8050 SELECT DISTINCT tab2.col2 DIV col0 col1 FROM tab2 ---- 0 3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8050 SELECT DISTINCT tab2.col2 / col0 col1 FROM tab2 ---- 0 3 query I rowsort SELECT col2 + tab2.col2 * - col1 AS col1 FROM tab2 ---- -1508 -608 -810 onlyif mysql # use DIV operator for integer division query I rowsort label-8052 SELECT col0 DIV - tab1.col0 - col0 FROM tab1 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-8052 SELECT col0 / - tab1.col0 - col0 FROM tab1 ---- -4 -65 -81 onlyif mysql # use DIV operator for integer division query I rowsort label-8053 SELECT - ( - col0 ) + col2 DIV col1 FROM tab2 AS cor0 ---- 7 78 81 skipif mysql # not compatible query I rowsort label-8053 SELECT - ( - col0 ) + col2 / col1 FROM tab2 AS cor0 ---- 7 78 81 query I rowsort SELECT + + cor0.col0 * - col1 * cor0.col0 FROM tab0 cor0 ---- -118825 -49536 -720811 query I rowsort SELECT 27 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1a3cef5c33b8f87ffeded378fd207753 query I rowsort SELECT ALL - - cor0.col0 + - col0 * + col0 FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT ALL col2 * + col0 - col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT - col1 + - 21 AS col0 FROM tab2 AS cor0 ---- -38 -52 -80 query I rowsort SELECT col2 * ( tab2.col2 ) + + col1 FROM tab2 ---- 1461 735 760 query I rowsort SELECT col1 + - ( + tab1.col1 ) * - col2 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT 51 + col0 FROM tab0 cor0 ---- 140 75 86 query I rowsort SELECT ALL tab1.col1 FROM tab1, tab2, tab0 cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL + tab0.col1 * - tab0.col2 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT col2 + - 80 FROM tab1 ---- -23 -26 16 query I rowsort SELECT + 72 * 61 FROM tab0 ---- 4392 4392 4392 query I rowsort SELECT col0 * 13 AS col1 FROM tab1 ---- 1040 39 832 query I rowsort SELECT ALL - col2 + + 38 FROM tab1 AS cor0 ---- -16 -19 -58 query I rowsort SELECT ALL - + col0 * + col1 + + col2 * - col0 * - ( - col1 ) FROM tab1 AS cor0 ---- -100880 -37120 -4290 query I rowsort SELECT DISTINCT 5 * + 26 FROM tab0 ---- 130 query I rowsort SELECT ALL - ( 8 ) + + col0 AS col1 FROM tab2 AS cor0 ---- -1 70 71 query I rowsort SELECT - 91 * col2 + - col0 + 52 AS col0 FROM tab2 cor0 ---- -2392 -2412 -3485 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8072 SELECT DISTINCT - - CAST( col2 AS SIGNED ) * col1 FROM tab1 AS cor0 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-8072 SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8073 SELECT ALL + + CAST( col0 AS SIGNED ) * - col0 + 60 + - col0 FROM tab1 AS cor0 ---- -4100 -6420 48 skipif mysql # not compatible query I rowsort label-8073 SELECT ALL + + CAST ( col0 AS INTEGER ) * - col0 + 60 + - col0 FROM tab1 AS cor0 ---- -4100 -6420 48 query I rowsort SELECT ALL - col0 * + ( - cor0.col0 ) AS col1 FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # use DIV operator for integer division query I rowsort label-8075 SELECT - - 63 DIV col1 + col1 * col2 FROM tab0 cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-8075 SELECT - - 63 / col1 + col1 * col2 FROM tab0 cor0 ---- 2838 7462 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col1 + - col1 col2 FROM tab0 AS cor0 ---- 1978 3298 8008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 * col1 + - col1 col2 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT + ( - cor0.col2 ) * - col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL - 63 * - col2 * col0 + - col1 FROM tab2 AS cor0 ---- 11876 127705 189109 query I rowsort SELECT DISTINCT + 26 * col1 FROM tab1 AS cor0 ---- 260 338 676 query I rowsort SELECT 54 + cor0.col1 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- 151 2892 7516 query I rowsort SELECT col0 * col0 + + col1 FROM tab1 cor0 ---- 35 4106 6413 onlyif mysql # use DIV operator for integer division query I rowsort label-8083 SELECT cor0.col1 + - col0 DIV col0 - + col2 * cor0.col0 FROM tab2 AS cor0 ---- -159 -1970 -2986 skipif mysql # not compatible query I rowsort label-8083 SELECT cor0.col1 + - col0 / col0 - + col2 * cor0.col0 FROM tab2 AS cor0 ---- -159 -1970 -2986 query I rowsort SELECT + - col2 * + col2 - + col1 AS col1 FROM tab1 AS cor0 ---- -2942 -3259 -9229 query I rowsort SELECT col2 * cor0.col0 + + col0 AS col2 FROM tab0 AS cor0 ---- 70 7387 816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * col0 + col0 * col0 col1 FROM tab2 AS cor0 ---- 10686 266 7584 query I rowsort SELECT + - col0 * 45 AS col1 FROM tab2 AS cor0 ---- -315 -3510 -3555 query I rowsort SELECT - col0 * col0 * - 99 FROM tab1 AS cor0 ---- 405504 633600 891 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 5 col0 FROM tab2 AS cor0 ---- -5 -5 -5 query I rowsort SELECT + ( 47 ) AS col2 FROM tab0 AS cor0 ---- 47 47 47 query I rowsort SELECT DISTINCT 91 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 ---- 91 query I rowsort SELECT DISTINCT - col1 * cor0.col1 + cor0.col2 * col1 FROM tab2 cor0 ---- -124 -1947 357 query I rowsort SELECT DISTINCT + 5 + col2 + col1 FROM tab0 AS cor0 ---- 103 124 178 query I rowsort SELECT + col2 * + ( - col0 ) + col2 * 76 - - tab2.col1 FROM tab2 ---- -97 1894 7 query I rowsort SELECT - col2 * + col0 + - col0 FROM tab0 ---- -70 -7387 -816 query I rowsort SELECT ALL col0 + + 33 + col0 AS col0 FROM tab0 ---- 103 211 81 query I rowsort SELECT col1 * col1 * ( + col1 ) FROM tab1 ---- 1000 17576 2197 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8098 SELECT tab0.col1 + - CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8098 SELECT tab0.col1 + - CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - col2 * + 30 + 92 AS col1 FROM tab1 ---- -1528 -1618 -2788 query I rowsort SELECT DISTINCT - col0 * + ( + col0 ) - cor0.col0 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT + - col0 + ( col1 ) FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT col2 + + 80 AS col2 FROM tab2 ---- 106 107 118 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 75 + col0 col0 FROM tab1 AS cor0 ---- 139 155 78 query I rowsort SELECT ALL + 33 + + col0 * - col2 FROM tab1 cor0 ---- -129 -3615 -7647 query I rowsort SELECT + 45 * + 61 FROM tab1 AS cor0 ---- 2745 2745 2745 onlyif mysql # use DIV operator for integer division query I rowsort label-8106 SELECT ALL ( col2 ) DIV col2 + + 77 * - cor0.col1 + - col2 FROM tab0 AS cor0 ---- -6654 -7088 -7469 skipif mysql # not compatible query I rowsort label-8106 SELECT ALL ( col2 ) / col2 + + 77 * - cor0.col1 + - col2 FROM tab0 AS cor0 ---- -6654 -7088 -7469 query I rowsort SELECT + cor0.col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT DISTINCT col0 + + col0 + - col0 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT col2 * - col2 + + col0 * - 83 AS col0 FROM tab2 AS cor0 ---- -1310 -7150 -8001 query I rowsort SELECT ALL - + ( + ( - col1 ) ) + - col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 12 + - col2 AS col1 FROM tab1 AS cor0 ---- -42 -45 -84 onlyif mysql # use DIV operator for integer division query I rowsort label-8112 SELECT - 56 DIV - 64 FROM tab2 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8112 SELECT - 56 / - 64 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT ALL - - col2 + + col1 + - col2 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT - 7 AS col2 FROM tab1 AS cor0 ---- -7 query I rowsort SELECT DISTINCT col2 * col1 + - col1 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT ALL - - 61 * ( - col0 ) AS col2 FROM tab2 AS cor0 ---- -427 -4758 -4819 query I rowsort SELECT - + col2 + - col2 FROM tab2 cor0 ---- -52 -54 -76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8118 SELECT DISTINCT col2 * - tab0.col1 - + CAST( col2 AS SIGNED ) FROM tab0 ---- -2871 -7544 -98 skipif mysql # not compatible query I rowsort label-8118 SELECT DISTINCT col2 * - tab0.col1 - + CAST ( col2 AS INTEGER ) FROM tab0 ---- -2871 -7544 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - col1 col2 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT + + 62 * - col0 FROM tab0 AS cor0 ---- -1488 -2170 -5518 query I rowsort SELECT DISTINCT - 99 - - cor0.col2 AS col1 FROM tab2 AS cor0 ---- -61 -72 -73 query I rowsort SELECT ALL col1 * - col0 + 6 AS col2 FROM tab0 cor0 ---- -2058 -3389 -8093 query I rowsort SELECT col2 * - col0 - 22 * - col1 AS col2 FROM tab1 AS cor0 ---- -3428 -7394 410 query I rowsort SELECT ALL col2 * - col2 + ( + col0 ) AS col1 FROM tab0 AS cor0 ---- -1065 -6635 34 query I rowsort SELECT DISTINCT - cor0.col0 * - col2 - + ( col1 ) AS col1 FROM tab0 cor0 ---- -62 706 7207 query I rowsort SELECT ALL - + cor0.col0 + - col2 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT ALL - col2 * col0 + 94 AS col0 FROM tab1 AS cor0 ---- -3554 -68 -7586 query I rowsort SELECT - col2 + ( col1 ) * col2 AS col2 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT DISTINCT + cor0.col0 + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT - col0 * col0 + col1 AS col2 FROM tab1 AS cor0 ---- -4086 -6387 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + + ( 93 ) col2 FROM tab0 AS cor0 ---- 117 128 182 query I rowsort SELECT + - col2 * col2 - - 37 * + col0 FROM tab1 AS cor0 ---- -2805 -6256 -881 query I rowsort SELECT DISTINCT ( - 53 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- -53 query I rowsort SELECT DISTINCT - col1 - ( col1 * - col2 ) AS col1 FROM tab0 AS cor0 ---- 0 2752 7371 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8135 SELECT col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8135 SELECT col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - col2 - - ( col2 ) * - col0 * 61 AS col0 FROM tab1 AS cor0 ---- -222585 -468576 -9936 query I rowsort SELECT ALL + col0 + 1 AS col0 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT - - cor0.col0 * ( - 73 ) + col2 AS col1 FROM tab2 AS cor0 ---- -484 -5668 -5729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8139 SELECT DISTINCT + CAST( tab0.col2 AS SIGNED ) FROM tab0, tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-8139 SELECT DISTINCT + CAST ( tab0.col2 AS INTEGER ) FROM tab0, tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT col0 + col0 * - col1 * - col0 FROM tab2 AS cor0 ---- 106176 1526 359034 query I rowsort SELECT ALL col2 + col1 * - 62 + + col2 * - cor0.col1 FROM tab0 AS cor0 ---- -13022 -6110 -8137 onlyif mysql # use DIV operator for integer division query I rowsort label-8142 SELECT ALL - - cor0.col0 + col2 DIV col0 AS col2 FROM tab2 AS cor0 ---- 10 78 79 skipif mysql # not compatible query I rowsort label-8142 SELECT ALL - - cor0.col0 + col2 / col0 AS col2 FROM tab2 AS cor0 ---- 10 78 79 query I rowsort SELECT DISTINCT col2 - - col1 AS col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT + col1 * + 59 * col2 - col2 FROM tab0 AS cor0 ---- 167409 440176 5722 query I rowsort SELECT DISTINCT - col1 - col2 AS col0 FROM tab0 ---- -119 -173 -98 query I rowsort SELECT - col0 - 91 AS col1 FROM tab2 AS cor0 ---- -169 -170 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - cor1.col1 ) col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd onlyif mysql # use DIV operator for integer division query I rowsort label-8148 SELECT + col0 * col1 - + col1 DIV - col2 AS col2 FROM tab1 AS cor0 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-8148 SELECT + col0 * col1 - + col1 / - col2 AS col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT - ( 1 ) AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-8150 SELECT col0 + - ( + tab0.col0 ) * col0 DIV - 46 FROM tab0 ---- 261 36 61 skipif mysql # not compatible query I rowsort label-8150 SELECT col0 + - ( + tab0.col0 ) * col0 / - 46 FROM tab0 ---- 261 36 61 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2, tab0 cor3 ---- 3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07 query I rowsort SELECT DISTINCT + col2 * 39 + col2 FROM tab1 ---- 2160 2280 3840 query I rowsort SELECT col0 * + 52 + - col0 AS col0 FROM tab2 ---- 357 3978 4029 query I rowsort SELECT ALL - - 98 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2 onlyif mysql # use DIV operator for integer division query I rowsort label-8155 SELECT ALL + 36 DIV + col2 FROM tab0 AS cor0 ---- 0 1 36 skipif mysql # not compatible query I rowsort label-8155 SELECT ALL + 36 / + col2 FROM tab0 AS cor0 ---- 0 1 36 onlyif mysql # use DIV operator for integer division query I rowsort label-8156 SELECT + col2 * + tab2.col0 + col1 DIV - ( + 56 ) AS col1 FROM tab2 ---- 189 2027 3002 skipif mysql # not compatible query I rowsort label-8156 SELECT + col2 * + tab2.col0 + col1 / - ( + 56 ) AS col1 FROM tab2 ---- 189 2027 3002 query I rowsort SELECT 2 + - 94 FROM tab2 ---- -92 -92 -92 query I rowsort SELECT DISTINCT 62 * - col2 FROM tab1 ---- -3348 -3534 -5952 onlyif mysql # use DIV operator for integer division query I rowsort label-8159 SELECT - col1 + - col2 DIV + 95 FROM tab2 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-8159 SELECT - col1 + - col2 / + 95 FROM tab2 ---- -17 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 59 col1 FROM tab1, tab2, tab1 AS cor0 ---- -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - col2 + - 14 col0 FROM tab1 ---- -176 -3662 -7694 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * col2 col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + ( - tab0.col0 ) + - 15 * - col2 FROM tab0 ---- -20 1141 471 query I rowsort SELECT DISTINCT 10 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 10 query I rowsort SELECT col2 * + cor0.col1 + + col2 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT - ( cor0.col2 ) * cor0.col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT 97 + col1 * - col2 AS col1 FROM tab2 AS cor0 ---- -1437 -549 -740 query I rowsort SELECT - 68 * col1 + col1 * cor0.col2 * col2 FROM tab2 cor0 ---- 20491 23392 35872 query I rowsort SELECT ALL col0 * - col2 * + col0 FROM tab2 cor0 ---- -1323 -158184 -237158 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8170 SELECT + + col0 + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8170 SELECT + + col0 + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 2 * 74 AS col0 FROM tab1 AS cor0 ---- -148 -148 -148 query I rowsort SELECT + cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT DISTINCT + col1 * - col1 + col1 AS col2 FROM tab1 AS cor0 ---- -156 -650 -90 query I rowsort SELECT DISTINCT - col2 * ( col1 ) + - col2 AS col0 FROM tab2 AS cor0 ---- -1560 -684 -864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 35 col0 FROM tab1 AS cor0 ---- 35 onlyif mysql # use DIV operator for integer division query I rowsort label-8176 SELECT ALL - col0 DIV 65 col1 FROM tab2 AS cor0 ---- -1 -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8176 SELECT ALL - col0 / 65 col1 FROM tab2 AS cor0 ---- -1 -1 0 query I rowsort SELECT ALL - 74 * + cor0.col0 FROM tab2 AS cor0 ---- -518 -5772 -5846 query I rowsort SELECT - tab2.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT + 11 + col2 FROM tab0 ---- 12 44 93 query I rowsort SELECT DISTINCT cor0.col0 + cor0.col1 * + col2 AS col0 FROM tab1 cor0 ---- 1328 1407 634 query I rowsort SELECT DISTINCT + 69 * - col1 + ( - 24 ) * + col1 FROM tab0 AS cor0 ---- -7998 -8463 -9021 query I rowsort SELECT DISTINCT 65 AS col1 FROM tab2, tab1 AS cor0 ---- 65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8183 SELECT + CAST( NULL AS SIGNED ) + 37 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8183 SELECT + CAST ( NULL AS INTEGER ) + 37 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - tab1.col1 * - cor0.col0 col1 FROM tab1, tab0, tab1 cor0 ---- 27 values hashing to 5353a988753c2a3d5236085229cfe510 query I rowsort SELECT ALL - col1 * - ( 89 ) AS col1 FROM tab2 AS cor0 ---- 1513 2759 5251 query I rowsort SELECT ALL 56 * - col1 AS col2 FROM tab1 ---- -1456 -560 -728 onlyif mysql # use DIV operator for integer division query I rowsort label-8187 SELECT ALL 79 DIV col0 FROM tab1 ---- 0 1 26 skipif mysql # not compatible query I rowsort label-8187 SELECT ALL 79 / col0 FROM tab1 ---- 0 1 26 query I rowsort SELECT cor0.col1 * 8 FROM tab0 AS cor0 ---- 688 728 776 query I rowsort SELECT - + col1 + - ( 9 + - col2 ) * 70 * ( - col1 ) FROM tab1 AS cor0 ---- -33610 -79183 -81926 query I rowsort SELECT + + col0 + - col0 + ( col0 ) * col0 * 71 FROM tab2 AS cor0 ---- 3479 431964 443111 query I rowsort SELECT DISTINCT col1 + + 33 FROM tab1 AS cor0 ---- 43 46 59 query I rowsort SELECT - col1 * - 97 * + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 717412 803257 912673 query I rowsort SELECT - col0 * + col0 * - col0 FROM tab2 AS cor0 ---- 343 474552 493039 query I rowsort SELECT ALL - tab1.col0 * + cor0.col0 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to c7d8c1f00ed770fc7c219c3c68edd7d7 query I rowsort SELECT DISTINCT col1 * - col1 - ( tab0.col2 * tab0.col0 ) FROM tab0 ---- -15579 -8188 -9444 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8196 SELECT 67 * col1 - - CAST( + 74 AS SIGNED ) col2 FROM tab2 ---- 1213 2151 4027 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8196 SELECT 67 * col1 - - CAST ( + 74 AS INTEGER ) col2 FROM tab2 ---- 1213 2151 4027 query I rowsort SELECT DISTINCT col0 + + col0 + col2 * + col1 AS col2 FROM tab0 ---- 167 2886 7640 query I rowsort SELECT + col1 - col0 AS col2 FROM tab2 ---- -19 -62 24 query I rowsort SELECT + 11 AS col0 FROM tab1, tab0 cor0 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 query I rowsort SELECT col1 * + col0 + 48 + col2 * - ( + col0 ) * - col1 AS col0 FROM tab1 AS cor0 ---- 100928 37168 4338 query I rowsort SELECT col0 * 80 AS col1 FROM tab2 AS cor0 ---- 560 6240 6320 query I rowsort SELECT ALL - 31 AS col0 FROM tab2 cor0 ---- -31 -31 -31 onlyif mysql # use DIV operator for integer division query I rowsort label-8203 SELECT - 46 + col1 DIV + col1 + tab0.col1 FROM tab0 ---- 41 46 52 skipif mysql # not compatible query I rowsort label-8203 SELECT - 46 + col1 / + col1 + tab0.col1 FROM tab0 ---- 41 46 52 query I rowsort SELECT DISTINCT - - 39 FROM tab1 AS cor0 ---- 39 query I rowsort SELECT - 84 * - cor0.col0 + - col1 FROM tab2 AS cor0 ---- 557 6493 6619 query I rowsort SELECT + - col2 * - col2 * col2 AS col2 FROM tab2 AS cor0 ---- 17576 19683 54872 onlyif mysql # use DIV operator for integer division query I rowsort label-8207 SELECT DISTINCT + col2 DIV - col1 - + col1 AS col1 FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-8207 SELECT DISTINCT + col2 / - col1 - + col1 AS col1 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT + tab1.col1 + - col1 + col1 AS col0 FROM tab1 ---- 10 13 26 query I rowsort SELECT 86 * - col1 + col0 + col1 * col1 AS col1 FROM tab1 ---- -1557 -696 -869 onlyif mysql # use DIV operator for integer division query I rowsort label-8210 SELECT ALL 68 DIV 3 + col1 * - col0 - 5 FROM tab2 ---- -1326 -200 -4585 skipif mysql # not compatible query I rowsort label-8210 SELECT ALL 68 / 3 + col1 * - col0 - 5 FROM tab2 ---- -1326 -200 -4585 query I rowsort SELECT DISTINCT ( col2 ) + col0 FROM tab2 ---- 104 117 34 query I rowsort SELECT DISTINCT + - cor0.col2 + + col2 * + 47 AS col1 FROM tab1 AS cor0 ---- 2484 2622 4416 query I rowsort SELECT - col1 * - col0 + ( + 88 ) FROM tab1 AS cor0 ---- 1128 166 728 onlyif mysql # use DIV operator for integer division query I rowsort label-8214 SELECT 47 + - col0 DIV + col2 AS col1 FROM tab1 AS cor0 ---- 46 47 47 skipif mysql # not compatible query I rowsort label-8214 SELECT 47 + - col0 / + col2 AS col1 FROM tab1 AS cor0 ---- 46 47 47 query I rowsort SELECT DISTINCT + 32 + col0 AS col0 FROM tab2 AS cor0 ---- 110 111 39 onlyif mysql # use DIV operator for integer division query I rowsort label-8216 SELECT + + 53 * col0 + col0 DIV 27 FROM tab1 AS cor0 ---- 159 3394 4242 skipif mysql # not compatible query I rowsort label-8216 SELECT + + 53 * col0 + col0 / 27 FROM tab1 AS cor0 ---- 159 3394 4242 query I rowsort SELECT DISTINCT ( col2 ) + + col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT DISTINCT + - 12 AS col0 FROM tab2 AS cor0 ---- -12 query I rowsort SELECT - + col2 * - col2 + + col0 FROM tab2 cor0 ---- 1523 736 754 query I rowsort SELECT - + col0 + + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL + + 44 + cor0.col1 + 23 * + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -14797 -19176 -35179 query I rowsort SELECT ( + tab0.col2 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT + col1 - - col1 * + col1 AS col1 FROM tab0 ---- 7482 8372 9506 query I rowsort SELECT + col2 + + col2 * ( + col0 ) FROM tab1 ---- 216 3705 7776 query I rowsort SELECT ALL + ( - col1 ) * col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL - + col2 + col1 * cor0.col1 FROM tab1 AS cor0 ---- 43 622 73 query I rowsort SELECT ALL - 31 AS col0 FROM tab0, tab2 cor0 ---- 9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa onlyif mysql # use DIV operator for integer division query I rowsort label-8228 SELECT - 24 DIV + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-8228 SELECT - 24 / + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT - cor0.col2 + - col1 * cor0.col0 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT 88 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37 query I rowsort SELECT ALL + ( ( col1 ) ) + 61 FROM tab0 AS cor0 ---- 147 152 158 query I rowsort SELECT ALL + 35 * - cor0.col1 - col1 FROM tab0 cor0 ---- -3096 -3276 -3492 query I rowsort SELECT - cor1.col0 - - 72 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 AS cor2 ---- 243 values hashing to 6793565aa2190a3df5e38e28aa23cd94 query I rowsort SELECT DISTINCT 60 + + col0 FROM tab1 AS cor0 ---- 124 140 63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 87 col0 FROM tab0 AS cor0 ---- 87 87 87 query I rowsort SELECT ALL + col0 * + ( + col0 ) + + col1 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT ALL + - col2 * col2 + col1 AS col0 FROM tab2 AS cor0 ---- -1427 -617 -698 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * + col0 - col1 col0 FROM tab2 AS cor0 ---- 18 6025 6224 query I rowsort SELECT DISTINCT + cor0.col0 * - 37 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- -1295 -3293 -888 query I rowsort SELECT ALL cor0.col2 + cor0.col0 * + col2 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT ( col1 ) * - col2 AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL - - col1 + ( col0 ) AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL + col1 * 82 + col2 FROM tab0 cor0 ---- 7085 7544 7955 query I rowsort SELECT DISTINCT 87 - - col1 FROM tab1 AS cor0 ---- 100 113 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 + cor0.col0 col1 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT col2 * col2 * - col2 AS col0 FROM tab2 AS cor0 ---- -17576 -19683 -54872 query I rowsort SELECT cor0.col0 - cor0.col1 FROM tab2 AS cor0 ---- -24 19 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8248 SELECT col1 + + col2 * CAST( + 34 AS SIGNED ) - + cor0.col2 * + col2 FROM tab1 AS cor0 ---- -1054 -1301 -5939 skipif mysql # not compatible query I rowsort label-8248 SELECT col1 + + col2 * CAST ( + 34 AS INTEGER ) - + cor0.col2 * + col2 FROM tab1 AS cor0 ---- -1054 -1301 -5939 query I rowsort SELECT - 31 + + col0 FROM tab0 AS cor0 ---- -7 4 58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * - col0 + + col2 col0 FROM tab1 ---- 216 3705 7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * + 79 col1 FROM tab2 cor0 ---- -2054 -2133 -3002 query I rowsort SELECT DISTINCT - + cor0.col2 + - 44 AS col0 FROM tab2 AS cor0 ---- -70 -71 -82 query I rowsort SELECT ALL + col0 * - ( cor0.col2 ) FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-8254 SELECT ALL - col2 DIV + 87 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8254 SELECT ALL - col2 / + 87 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT cor0.col1 * ( + col2 ) FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT ALL - - col0 * + col1 AS col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + 47 + tab0.col1 AS col1 FROM tab0 ---- 133 138 144 query I rowsort SELECT + - 59 FROM tab0 cor0 ---- -59 -59 -59 query I rowsort SELECT ALL + + col1 * col1 * col2 AS col2 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT DISTINCT - col1 - - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT col1 + - 45 AS col1 FROM tab2 ---- -14 -28 14 query I rowsort SELECT col0 + ( + col2 + - col1 ) AS col0 FROM tab2 ---- 100 3 45 query I rowsort SELECT DISTINCT col1 * - 21 AS col0 FROM tab0 ---- -1806 -1911 -2037 query I rowsort SELECT ALL - cor0.col0 * col1 + - col1 FROM tab0 AS cor0 ---- -2150 -3492 -8190 onlyif mysql # use DIV operator for integer division query I rowsort label-8265 SELECT ALL col2 + - col1 DIV + 39 AS col2 FROM tab2 cor0 ---- 25 27 38 skipif mysql # not compatible query I rowsort label-8265 SELECT ALL col2 + - col1 / + 39 AS col2 FROM tab2 cor0 ---- 25 27 38 query I rowsort SELECT ALL 1 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 query I rowsort SELECT + tab0.col0 * + 46 AS col1 FROM tab0 ---- 1104 1610 4094 onlyif mysql # use DIV operator for integer division query I rowsort label-8268 SELECT DISTINCT col0 * cor0.col0 DIV - col0 + col1 FROM tab0 AS cor0 ---- 2 62 skipif mysql # not compatible query I rowsort label-8268 SELECT DISTINCT col0 * cor0.col0 / - col0 + col1 FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT ALL - - 46 + - 66 - col0 * + cor0.col1 FROM tab0 AS cor0 ---- -2084 -3415 -8119 query I rowsort SELECT ALL cor0.col1 FROM tab1, tab0 AS cor0 WHERE NOT NULL >= NULL ---- query I rowsort SELECT + 44 * cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -25344 -348524 -53900 query I rowsort SELECT ALL cor0.col1 * 7 + + col1 * ( - 65 + - col0 ) AS col2 FROM tab1 AS cor0 ---- -1220 -1586 -1794 query I rowsort SELECT ALL - ( col2 ) - col1 * + col0 FROM tab0 cor0 ---- -2097 -3396 -8181 query I rowsort SELECT + + col1 + - 25 FROM tab1 cor0 ---- -12 -15 1 onlyif mysql # use DIV operator for integer division query I rowsort label-8275 SELECT 30 DIV + col1 FROM tab1 AS cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-8275 SELECT 30 / + col1 FROM tab1 AS cor0 ---- 1 2 3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8276 SELECT col2 * + col0 + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8276 SELECT col2 * + col0 + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 87 col0 FROM tab0 AS cor0 ---- 87 87 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 39 * col2 + 65 col2 FROM tab2 AS cor0 ---- 1079 1118 1547 query I rowsort SELECT ALL 25 + col2 * - tab0.col1 AS col2 FROM tab0 ---- -2813 -72 -7437 query I rowsort SELECT + - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT col2 * + col2 * - col0 FROM tab0 cor0 ---- -26136 -35 -598436 query I rowsort SELECT + ( cor0.col0 ) * col2 AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - ( + col2 ) * 15 + col0 col1 FROM tab0 cor0 ---- 1319 50 519 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + 2 col2 FROM tab2 AS cor0 ---- -15 -29 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8285 SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) + col0 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8285 SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) + col0 FROM tab1 cor0 ---- NULL query I rowsort SELECT DISTINCT col2 + 4 AS col2 FROM tab0 AS cor0 ---- 37 5 86 query I rowsort SELECT ALL - + col1 * - 54 FROM tab0 AS cor0 ---- 4644 4914 5238 onlyif mysql # use DIV operator for integer division query I rowsort label-8288 SELECT ALL - col0 * cor0.col0 * + col0 + col1 DIV - ( ( col1 ) ) col2 FROM tab0 AS cor0 ---- -13825 -42876 -704970 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8288 SELECT ALL - col0 * cor0.col0 * + col0 + col1 / - ( ( col1 ) ) col2 FROM tab0 AS cor0 ---- -13825 -42876 -704970 query I rowsort SELECT DISTINCT col0 + + 39 AS col1 FROM tab0 AS cor0 ---- 128 63 74 query I rowsort SELECT col1 + 93 FROM tab0 cor0 ---- 179 184 190 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8291 SELECT DISTINCT - - col0 * CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab1 cor0 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-8291 SELECT DISTINCT - - col0 * CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + 14 AS col1 FROM tab2 ---- 14 query I rowsort SELECT DISTINCT + ( tab1.col2 ) + col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT DISTINCT col1 + tab2.col2 FROM tab2 ---- 55 58 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8295 SELECT + CAST( 81 AS SIGNED ) FROM tab2 AS cor0 ---- 81 81 81 skipif mysql # not compatible query I rowsort label-8295 SELECT + CAST ( 81 AS INTEGER ) FROM tab2 AS cor0 ---- 81 81 81 query I rowsort SELECT col0 + + col0 - - col0 AS col1 FROM tab0 AS cor0 ---- 105 267 72 query I rowsort SELECT - + col2 * cor0.col2 + - col2 AS col2 FROM tab2 AS cor0 ---- -1482 -702 -756 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8298 SELECT - CAST( NULL AS SIGNED ) * cor0.col1 + col1 - ( - col2 ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8298 SELECT - CAST ( NULL AS INTEGER ) * cor0.col1 + col1 - ( - col2 ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 64 * col2 col0 FROM tab1 AS cor0 ---- -3456 -3648 -6144 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 25 col1 FROM tab1 AS cor0 ---- -25 -25 -25 query I rowsort SELECT col2 + 69 FROM tab1 AS cor0 ---- 123 126 165 query I rowsort SELECT - 87 - col2 FROM tab0 AS cor0 ---- -120 -169 -88 query I rowsort SELECT tab0.col0 * - col0 * 45 AS col1 FROM tab0 ---- -25920 -356445 -55125 onlyif mysql # use DIV operator for integer division query I rowsort label-8304 SELECT ALL col1 * - col1 DIV col1 FROM tab1 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-8304 SELECT ALL col1 * - col1 / col1 FROM tab1 ---- -10 -13 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-8305 SELECT DISTINCT 43 DIV + col0 FROM tab2 AS cor0 ---- 0 6 skipif mysql # not compatible query I rowsort label-8305 SELECT DISTINCT 43 / + col0 FROM tab2 AS cor0 ---- 0 6 query I rowsort SELECT 16 + cor0.col1 + col1 AS col1 FROM tab0 AS cor0 ---- 188 198 210 query I rowsort SELECT DISTINCT + + col0 * 18 FROM tab2 AS cor0 ---- 126 1404 1422 query I rowsort SELECT tab2.col1 + col1 + col1 AS col2 FROM tab2 ---- 177 51 93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 14 * tab1.col1 col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 115b668dcc332f7fa8ae4851324e54ab query I rowsort SELECT - 49 + - 88 - col1 FROM tab2 cor0 ---- -154 -168 -196 query I rowsort SELECT - 15 + col2 - col1 * - ( - 76 * - col1 ) AS col2 FROM tab1 AS cor0 ---- 12925 51415 7642 onlyif mysql # use DIV operator for integer division query I rowsort label-8312 SELECT ALL + col2 DIV cor0.col1 + col1 AS col0 FROM tab2 cor0 ---- 19 31 59 skipif mysql # not compatible query I rowsort label-8312 SELECT ALL + col2 / cor0.col1 + col1 AS col0 FROM tab2 cor0 ---- 19 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 + cor0.col1 col2 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8314 SELECT DISTINCT col0 DIV + col0 + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-8314 SELECT DISTINCT col0 / + col0 + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT ALL col1 - - col1 * + col0 AS col2 FROM tab2 ---- 1360 248 4661 query I rowsort SELECT col2 + tab1.col1 + - col0 FROM tab1 ---- 29 3 77 query I rowsort SELECT DISTINCT + - col1 * col0 * cor0.col2 AS col0 FROM tab0 cor0 ---- -3395 -664118 -68112 onlyif mysql # use DIV operator for integer division query I rowsort label-8318 SELECT DISTINCT + col2 + + col1 DIV col1 + col2 * + cor0.col0 FROM tab2 cor0 ---- 2055 217 3041 skipif mysql # not compatible query I rowsort label-8318 SELECT DISTINCT + col2 + + col1 / col1 + col2 * + cor0.col0 FROM tab2 cor0 ---- 2055 217 3041 onlyif mysql # use DIV operator for integer division query I rowsort label-8319 SELECT ALL + col0 DIV + cor0.col1 - + cor0.col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-8319 SELECT ALL + col0 / + cor0.col1 - + cor0.col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * + col0 col1 FROM tab2 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-8321 SELECT - col2 DIV + col1 AS col2 FROM tab1 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-8321 SELECT - col2 / + col1 AS col2 FROM tab1 ---- -2 -5 -7 query I rowsort SELECT - col1 * - col0 * + col2 + col0 FROM tab2 ---- 119730 51113 5866 query I rowsort SELECT - col0 * - col0 + tab1.col0 AS col1 FROM tab1 ---- 12 4160 6480 query I rowsort SELECT col0 * tab0.col0 + col1 * tab0.col2 + col0 AS col2 FROM tab0 ---- 1357 15472 3438 onlyif mysql # use DIV operator for integer division query I rowsort label-8325 SELECT ALL - col1 DIV col2 - col1 col2 FROM tab1 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8325 SELECT ALL - col1 / col2 - col1 col2 FROM tab1 ---- -10 -13 -26 query I rowsort SELECT DISTINCT - - col0 * cor0.col1 + col2 + + col2 AS col1 FROM tab2 AS cor0 ---- 1419 271 4654 query I rowsort SELECT ALL - - col1 * col0 - col2 AS col1 FROM tab2 AS cor0 ---- 1305 190 4576 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 39 + - col0 col1 FROM tab2 AS cor0 ---- -117 -118 -46 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + cor0.col2 ) col1 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-8330 SELECT DISTINCT col2 DIV col0 + col1 AS col1 FROM tab0 cor0 ---- 87 91 97 skipif mysql # not compatible query I rowsort label-8330 SELECT DISTINCT col2 / col0 + col1 AS col1 FROM tab0 cor0 ---- 87 91 97 query I rowsort SELECT DISTINCT 92 - + col1 FROM tab0 AS cor0 ---- -5 1 6 query I rowsort SELECT + 97 * + col0 FROM tab1 cor0 ---- 291 6208 7760 query I rowsort SELECT DISTINCT + ( col2 * col2 ) + col0 FROM tab1 ---- 2919 3313 9296 query I rowsort SELECT tab0.col0 * col1 + col1 AS col0 FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT DISTINCT + 77 * + col0 + col0 * + col0 + - tab1.col2 AS col2 FROM tab1 ---- 12464 186 8967 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * - tab2.col1 col2 FROM tab2 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-8337 SELECT - col0 * col1 DIV col1 - - col2 FROM tab0 ---- -34 -7 9 skipif mysql # not compatible query I rowsort label-8337 SELECT - col0 * col1 / col1 - - col2 FROM tab0 ---- -34 -7 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8338 SELECT - CAST( 48 AS SIGNED ) * col0 AS col0 FROM tab1 ---- -144 -3072 -3840 skipif mysql # not compatible query I rowsort label-8338 SELECT - CAST ( 48 AS INTEGER ) * col0 AS col0 FROM tab1 ---- -144 -3072 -3840 query I rowsort SELECT DISTINCT + 79 * - col0 * col1 + + col1 + - col2 * - col2 AS col0 FROM tab2 ---- -104636 -16383 -362823 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * tab0.col0 - - col0 col1 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT ( ( col0 ) ) * col2 - tab1.col0 * col1 AS col1 FROM tab1 ---- 3008 6640 84 query I rowsort SELECT col0 + tab0.col0 * + col0 AS col0 FROM tab0 ---- 1260 600 8010 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 66 col2 FROM tab2 AS cor0 ---- 66 onlyif mysql # use DIV operator for integer division query I rowsort label-8344 SELECT ALL cor0.col2 DIV + cor0.col2 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8344 SELECT ALL cor0.col2 / + cor0.col2 FROM tab0 cor0 ---- 1 1 1 query I rowsort SELECT - + 20 * col1 FROM tab1 AS cor0 ---- -200 -260 -520 query I rowsort SELECT ALL 83 * col0 + + col2 FROM tab1 AS cor0 ---- 303 5369 6736 query I rowsort SELECT col2 * - col1 * col2 FROM tab0 AS cor0 ---- -611884 -93654 -97 query I rowsort SELECT ALL + 64 + + cor0.col1 FROM tab0 AS cor0 ---- 150 155 161 query I rowsort SELECT DISTINCT - 64 + + cor0.col2 FROM tab0 cor0 ---- -31 -63 18 query III rowsort SELECT * FROM tab1 WHERE - col0 * + col1 NOT IN ( - col0 * col0 * - tab1.col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT - col1 * + col0 AS col0 FROM tab1 WHERE NOT col2 <> ( NULL ) ---- query I rowsort SELECT tab0.col1 + tab0.col0 AS col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL col0 + col2 * col2 AS col2 FROM tab1 ---- 2919 3313 9296 onlyif mysql # use DIV operator for integer division query I rowsort label-8354 SELECT col1 + col2 DIV + col0 FROM tab0 ---- 87 91 97 skipif mysql # not compatible query I rowsort label-8354 SELECT col1 + col2 / + col0 FROM tab0 ---- 87 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-8355 SELECT col0 + tab0.col1 DIV col1 AS col2 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-8355 SELECT col0 + tab0.col1 / col1 AS col2 FROM tab0 ---- 25 36 90 query III rowsort SELECT ALL * FROM tab2 WHERE NULL < - col1 * - col0 - + col0 ---- query I rowsort SELECT ALL col1 + + tab0.col1 FROM tab0 WHERE NULL BETWEEN + tab0.col1 - col2 AND NULL ---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2 * + col0 ---- query I rowsort SELECT tab1.col1 + - col0 * + col1 AS col2 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT col2 + col0 + col1 AS col0 FROM tab2 ---- 134 163 65 query I rowsort SELECT + col0 + - col0 - - tab2.col0 * col0 * + col2 FROM tab2 ---- 1323 158184 237158 query III rowsort SELECT * FROM tab2 WHERE NOT col0 / col2 < ( NULL ) ---- query I rowsort SELECT DISTINCT col2 - - col0 AS col1 FROM tab0 WHERE NOT NULL <= - col2 + col0 * col2 ---- 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 DISTINCT tab2.col0 + tab2.col0 FROM tab2 ---- 14 156 158 query I rowsort SELECT ALL - cor0.col2 + col2 * + col2 * - col0 FROM tab1 AS cor0 ---- -207993 -737376 -8802 query I rowsort SELECT ALL col2 * - col1 - + col2 * + col0 AS col2 FROM tab0 AS cor0 ---- -132 -14760 -3630 onlyif mysql # use DIV operator for integer division query I rowsort label-8368 SELECT + col0 * + col2 + + cor0.col1 DIV + col2 FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-8368 SELECT + col0 * + col2 + + cor0.col1 / + col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - cor0.col0 * + col1 - - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -576 -75 -960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + col0 * col1 col0 FROM tab2 cor0 ---- 1326 186 4543 query I rowsort SELECT DISTINCT - cor0.col1 * + cor0.col2 + - cor0.col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT DISTINCT - col2 + - col2 * col2 FROM tab1 AS cor0 ---- -2970 -3306 -9312 query I rowsort SELECT + col2 + - col1 * + col2 AS col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT col2 * - col0 - col1 * + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -406 -4345 -6630 query I rowsort SELECT DISTINCT + col2 + col2 * + col1 AS col2 FROM tab2 cor0 ---- 1560 684 864 query I rowsort SELECT - + cor0.col2 * + cor0.col1 AS col0 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL - col0 * - cor0.col2 + - col0 + + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0 ---- -1245 3014 6352 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 * + col0 ) IN ( col0 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT + col0 * + col2 * col2 AS col1 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT ALL + col2 * col2 + - col2 * - col0 FROM tab1 AS cor0 ---- 16896 3078 6897 query I rowsort SELECT ALL col2 + tab2.col2 AS col2 FROM tab2 ---- 52 54 76 query I rowsort SELECT DISTINCT tab0.col0 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 ---- 24 35 89 query I rowsort SELECT + 30 + - 49 AS col1 FROM tab1 cor0 ---- -19 -19 -19 query I rowsort SELECT - col2 + - 34 FROM tab2 cor0 ---- -60 -61 -72 query I rowsort SELECT ALL - col1 * - ( tab0.col2 + col0 ) FROM tab0 ---- 15561 3492 4902 query I rowsort SELECT - ( + ( - col2 ) ) + + col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT - - ( - 9 ) AS col1 FROM tab1 AS cor0 ---- -9 query I rowsort SELECT DISTINCT - ( + col0 ) + col1 FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT + 21 * 62 AS col1 FROM tab1 cor0 ---- 1302 1302 1302 query I rowsort SELECT ALL - + col0 + + col1 + - ( col0 * + col0 ) AS col1 FROM tab1 AS cor0 ---- -4150 -6467 14 query I rowsort SELECT + 67 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to b56f8a4f1fcebc9802481256df61e97c query I rowsort SELECT - col2 * - 16 + - col0 + cor0.col0 FROM tab2 AS cor0 ---- 416 432 608 onlyif mysql # use DIV operator for integer division query I rowsort label-8393 SELECT - col1 DIV 16 col0 FROM tab1 AS cor0 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8393 SELECT - col1 / 16 col0 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT ALL - 99 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 64d06513850a26495bc6c2fddeb254b7 query I rowsort SELECT DISTINCT - ( + col0 + - tab1.col2 ) * col1 FROM tab1 ---- -70 1326 208 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8396 SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 67 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-8396 SELECT DISTINCT CAST ( NULL AS REAL ) * + 67 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8397 SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-8397 SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8398 SELECT + cor0.col2 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8398 SELECT + cor0.col2 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + col2 * 96 * + cor0.col0 + + col2 FROM tab2 AS cor0 ---- -18117 -194662 -288154 query I rowsort SELECT - col2 * col2 + + 20 AS col0 FROM tab0 ---- -1069 -6704 19 query I rowsort SELECT ALL tab2.col1 * col1 - col0 FROM tab2 ---- 210 3403 954 query I rowsort SELECT - 42 * + 88 + + col0 FROM tab2 AS cor0 ---- -3617 -3618 -3689 query I rowsort SELECT - + col0 + 61 AS col1 FROM tab0 AS cor0 ---- -28 26 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8404 SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col1 col1 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8404 SELECT DISTINCT - CAST ( NULL AS REAL ) * col1 col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL 80 + col0 AS col1 FROM tab2 ---- 158 159 87 query I rowsort SELECT DISTINCT + cor0.col2 AS col2 FROM tab0, tab0 cor0 ---- 1 33 82 query I rowsort SELECT ALL 79 + + 5 * - col1 + col1 AS col0 FROM tab0 ---- -265 -285 -309 query I rowsort SELECT ALL col0 * + col1 * cor0.col1 + + col1 * + col2 FROM tab0 AS cor0 ---- 180342 329412 744471 onlyif mysql # use DIV operator for integer division query I rowsort label-8409 SELECT cor0.col1 * - col1 DIV col1 AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-8409 SELECT cor0.col1 * - col1 / col1 AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT 51 + col2 * + col2 AS col2 FROM tab0 AS cor0 ---- 1140 52 6775 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8411 SELECT DISTINCT - + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-8411 SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT - - col1 + - col2 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT ALL - 36 * col2 FROM tab2 AS cor0 ---- -1368 -936 -972 query I rowsort SELECT - 98 + - 39 * + col2 FROM tab0 AS cor0 ---- -137 -1385 -3296 query I rowsort SELECT - 36 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 query I rowsort SELECT DISTINCT + + tab0.col1 FROM tab0, tab2, tab1 AS cor0 ---- 86 91 97 query I rowsort SELECT + col0 + + col2 * + 5 * ( col2 ) FROM tab1 ---- 14583 16309 46160 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8419 SELECT + col1 * - cor0.col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8419 SELECT + col1 * - cor0.col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 * col0 + ( col2 ) - + cor0.col1 * col1 FROM tab0 AS cor0 ---- -6571 -901 -9373 query I rowsort SELECT ALL + cor0.col2 * 70 FROM tab2 AS cor0 ---- 1820 1890 2660 skipif mysql # not compatible query I rowsort SELECT DISTINCT + col1 * + CAST ( cor0.col1 * col2 AS REAL ) AS col0 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT ALL - + col1 * - cor0.col2 FROM tab0 cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-8424 SELECT - col0 DIV 48 FROM tab2 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-8424 SELECT - col0 / 48 FROM tab2 AS cor0 ---- -1 -1 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8425 SELECT + col1 DIV + col1 - - 22 col2 FROM tab0 AS cor0 ---- 23 23 23 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8425 SELECT + col1 / + col1 - - 22 col2 FROM tab0 AS cor0 ---- 23 23 23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8426 SELECT col0 * + CAST( NULL AS SIGNED ) + + cor0.col1 * + col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8426 SELECT col0 * + CAST ( NULL AS INTEGER ) + + cor0.col1 * + col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 * 40 FROM tab1 AS cor0 ---- 120 2560 3200 query I rowsort SELECT col1 - + col1 * - col0 * - col0 AS col2 FROM tab2 AS cor0 ---- -106080 -1488 -358897 query I rowsort SELECT DISTINCT + col1 * col2 + col0 AS col2 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT DISTINCT + cor0.col0 + + 29 + col0 FROM tab1 AS cor0 ---- 157 189 35 query I rowsort SELECT ALL + col2 + col1 * - 49 * - 59 FROM tab2 AS cor0 ---- 170595 49185 89648 query I rowsort SELECT DISTINCT + ( col2 ) * col0 + + 54 + + cor0.col2 FROM tab1 AS cor0 ---- 270 3759 7830 onlyif mysql # use DIV operator for integer division query I rowsort label-8433 SELECT DISTINCT col0 DIV + col0 AS col2 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-8433 SELECT DISTINCT col0 / + col0 AS col2 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT ALL + col1 + col0 * col1 AS col1 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT ALL col1 * - col0 + - 38 * + col1 AS col2 FROM tab1 AS cor0 ---- -1020 -1066 -1534 onlyif mysql # use DIV operator for integer division query I rowsort label-8436 SELECT ALL col2 DIV + col1 AS col1 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-8436 SELECT ALL col2 / + col1 AS col1 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT ALL - - col1 - + col0 FROM tab2 cor0 ---- -19 -62 24 query I rowsort SELECT ALL + col2 + - col1 * 81 + col1 AS col1 FROM tab1 AS cor0 ---- -2026 -743 -944 query I rowsort SELECT DISTINCT + col0 * 32 + 22 AS col2 FROM tab1 AS cor0 ---- 118 2070 2582 query I rowsort SELECT ALL + - col2 * 37 * col0 AS col1 FROM tab1 AS cor0 ---- -134976 -284160 -5994 query I rowsort SELECT ALL - + col1 * - 35 AS col1 FROM tab1 AS cor0 ---- 350 455 910 query I rowsort SELECT DISTINCT - cor0.col0 * + 35 + col0 AS col1 FROM tab1 AS cor0 ---- -102 -2176 -2720 query I rowsort SELECT DISTINCT - col0 + ( - col1 ) AS col0 FROM tab1 AS cor0 ---- -29 -74 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-8444 SELECT DISTINCT - - col1 DIV ( col2 ) AS col1 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-8444 SELECT DISTINCT - - col1 / ( col2 ) AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT col2 + + col1 * - col0 AS col1 FROM tab0 AS cor0 ---- -2031 -3394 -8017 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * 7 col2 FROM tab1 AS cor0 ---- -21 -448 -560 query I rowsort SELECT ALL + 94 AS col2 FROM tab0 ---- 94 94 94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * - 93 col1 FROM tab1 AS cor0 ---- -1209 -2418 -930 query I rowsort SELECT DISTINCT + cor0.col0 - col1 FROM tab0 AS cor0 ---- -2 -62 query I rowsort SELECT DISTINCT - 41 * ( col2 ) - 48 * - col0 * col1 FROM tab2 AS cor0 ---- 219830 62906 9309 query I rowsort SELECT ALL 65 * - col2 AS col2 FROM tab0 AS cor0 ---- -2145 -5330 -65 query I rowsort SELECT ALL + col2 + 93 FROM tab0 AS cor0 ---- 126 175 94 query I rowsort SELECT ALL + ( - 80 ) FROM tab0 AS cor0 ---- -80 -80 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - ( + cor0.col0 ) + col1 col2 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT - 21 + - col0 FROM tab2 AS cor0 ---- -100 -28 -99 query I rowsort SELECT DISTINCT - 17 AS col1 FROM tab0, tab0 AS cor0 ---- -17 query I rowsort SELECT DISTINCT + 69 + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1317 1473 639 query I rowsort SELECT DISTINCT 75 - col1 FROM tab2 AS cor0 ---- 16 44 58 query I rowsort SELECT - col1 * + 52 AS col0 FROM tab0 AS cor0 ---- -4472 -4732 -5044 query I rowsort SELECT DISTINCT - 25 AS col1 FROM tab1 AS cor0 ---- -25 onlyif mysql # use DIV operator for integer division query I rowsort label-8461 SELECT ALL 36 DIV + col1 FROM tab2 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-8461 SELECT ALL 36 / + col1 FROM tab2 AS cor0 ---- 0 1 2 query I rowsort SELECT ALL + 31 FROM tab0, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to c3c6f92f0ca72d71793339f88a57e336 query I rowsort SELECT - - 19 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- 1216 1520 57 query I rowsort SELECT DISTINCT - 68 + - col2 FROM tab2 AS cor0 ---- -106 -94 -95 query I rowsort SELECT DISTINCT - 72 * cor0.col2 FROM tab1 cor0 ---- -3888 -4104 -6912 onlyif mysql # use DIV operator for integer division query I rowsort label-8466 SELECT ALL + 72 + col0 DIV - col2 FROM tab1 AS cor0 ---- 71 72 72 skipif mysql # not compatible query I rowsort label-8466 SELECT ALL + 72 + col0 / - col2 FROM tab1 AS cor0 ---- 71 72 72 query I rowsort SELECT 5 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6797d40099023779b89feb627d94a3e7 query I rowsort SELECT ALL col0 + + tab0.col2 AS col1 FROM tab0 ---- 171 36 57 query I rowsort SELECT - + ( - col1 ) * col1 AS col2 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT + cor0.col0 * col2 + - 78 AS col0 FROM tab2 AS cor0 ---- 111 1950 2924 query I rowsort SELECT - col0 + - col1 * - cor0.col2 AS col0 FROM tab1 AS cor0 ---- 1168 1401 506 query I rowsort SELECT + + 37 * - cor0.col1 + 26 FROM tab2 cor0 ---- -1121 -2157 -603 query I rowsort SELECT + tab0.col0 + + col1 + - col0 AS col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT col1 + 74 AS col1 FROM tab2 ---- 105 133 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8475 SELECT - CAST( col1 + col1 AS SIGNED ) AS col0 FROM tab0 ---- -172 -182 -194 skipif mysql # not compatible query I rowsort label-8475 SELECT - CAST ( col1 + col1 AS INTEGER ) AS col0 FROM tab0 ---- -172 -182 -194 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8476 SELECT - CAST( NULL AS SIGNED ) + col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8476 SELECT - CAST ( NULL AS INTEGER ) + col1 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + col1 * col0 col2 FROM tab1 ---- 24 583 944 query I rowsort SELECT 59 * col0 AS col0 FROM tab2 AS cor0 ---- 413 4602 4661 query I rowsort SELECT ALL + 46 + col0 * ( - col1 ) AS col1 FROM tab1 AS cor0 ---- -32 -594 -994 query I rowsort SELECT cor1.col0 FROM tab1, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT + 91 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT + - col2 * col2 - - col1 FROM tab2 AS cor0 ---- -1427 -617 -698 query I rowsort SELECT ALL 16 AS col1 FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to 9ffb4aaf972de606a4957894645b6216 query I rowsort SELECT DISTINCT - 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- -55 query I rowsort SELECT col2 + ( tab2.col2 ) FROM tab2 ---- 52 54 76 query I rowsort SELECT DISTINCT col0 * ( col1 ) - + col2 * col1 FROM tab2 cor0 ---- -620 3068 697 query I rowsort SELECT ALL - + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT cor1.col2 FROM tab2, tab2 AS cor0, tab1 cor1 ---- 54 57 96 query I rowsort SELECT ALL + 81 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab1 cor0, tab2 cor1, tab2, tab2 AS cor2 ---- 3645 values hashing to c04c36412775e8805d6b3befa2f52917 query I rowsort SELECT - + ( col2 ) - + col1 AS col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT + 80 * col1 + col0 AS col1 FROM tab1 AS cor0 ---- 1120 2083 864 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8493 SELECT DISTINCT - CAST( - 49 AS SIGNED ) AS col2 FROM tab0 cor0 ---- 49 skipif mysql # not compatible query I rowsort label-8493 SELECT DISTINCT - CAST ( - 49 AS INTEGER ) AS col2 FROM tab0 cor0 ---- 49 query I rowsort SELECT ALL - - col0 + ( - col2 ) + - col2 * + col2 AS col2 FROM tab1 AS cor0 ---- -2967 -3242 -9232 query I rowsort SELECT + - ( col0 ) * - col1 + col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT col2 * col1 * ( - col0 ) + - ( - cor0.col2 * col1 ) AS col2 FROM tab1 cor0 ---- -2808 -35910 -98592 query I rowsort SELECT col0 * 14 + col2 AS col0 FROM tab2 AS cor0 ---- 1118 1144 125 query I rowsort SELECT cor0.col2 - - ( col2 ) AS col1 FROM tab0 AS cor0 ---- 164 2 66 onlyif mysql # use DIV operator for integer division query I rowsort label-8499 SELECT ALL cor0.col0 * col1 DIV - col1 col2 FROM tab1 AS cor0 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8499 SELECT ALL cor0.col0 * col1 / - col1 col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT + col0 + + col0 * cor0.col1 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT ALL - + 98 AS col2 FROM tab0 AS cor0 ---- -98 -98 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-8502 SELECT col1 DIV 25 col1 FROM tab1 AS cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8502 SELECT col1 / 25 col1 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT + col0 * + col2 * - col0 AS col2 FROM tab1 ---- -233472 -486 -614400 query I rowsort SELECT ALL + 34 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa query I rowsort SELECT tab2.col0 - - tab2.col0 FROM tab2 ---- 14 156 158 query I rowsort SELECT tab1.col2 + col0 * col1 * + col0 AS col0 FROM tab1 ---- 288 41017 83296 query I rowsort SELECT col1 - - tab2.col2 AS col0 FROM tab2 ---- 55 58 85 query I rowsort SELECT DISTINCT col1 - - col1 * col0 FROM tab0 ---- 2150 3492 8190 onlyif mysql # use DIV operator for integer division query I rowsort label-8509 SELECT ALL - + ( tab0.col2 ) DIV 21 col1 FROM tab0, tab1, tab2 cor0 ---- 27 values hashing to 7b29da85503fbf9c46cb81b1fdd701e6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8509 SELECT ALL - + ( tab0.col2 ) / 21 col1 FROM tab0, tab1, tab2 cor0 ---- 27 values hashing to 7b29da85503fbf9c46cb81b1fdd701e6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + + ( + col1 ) * col2 col1 FROM tab1 AS cor0 ---- 1235 1378 560 onlyif mysql # use DIV operator for integer division query I rowsort label-8511 SELECT DISTINCT tab2.col2 + col0 DIV col0 FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-8511 SELECT DISTINCT tab2.col2 + col0 / col0 FROM tab2 ---- 27 28 39 onlyif mysql # use DIV operator for integer division query I rowsort label-8512 SELECT + col1 DIV - col0 + col1 col0 FROM tab1 AS cor0 ---- 10 13 18 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8512 SELECT + col1 / - col0 + col1 col0 FROM tab1 AS cor0 ---- 10 13 18 query I rowsort SELECT DISTINCT + cor0.col1 * + 35 + cor0.col2 AS col1 FROM tab2 cor0 ---- 1112 2091 633 query I rowsort SELECT ALL - - col1 + 99 + col1 AS col1 FROM tab2 AS cor0 ---- 133 161 217 query I rowsort SELECT ALL col0 - + 10 * col0 FROM tab2 AS cor0 ---- -63 -702 -711 query I rowsort SELECT ALL col1 * + 56 FROM tab0 cor0 ---- 4816 5096 5432 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 * col1 * + col1 - - col1 col0 FROM tab2 AS cor0 ---- 10999 25978 90565 query I rowsort SELECT DISTINCT + col1 * + col1 + 20 FROM tab2 ---- 309 3501 981 query I rowsort SELECT DISTINCT + col0 * col0 + tab0.col1 FROM tab0 ---- 1322 662 8012 query I rowsort SELECT ALL - col0 * - col2 * col0 + + col1 * - col1 - col0 FROM tab0 ---- -8219 11588 641152 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8521 SELECT DISTINCT col1 - - CAST( 22 * col0 AS SIGNED ) FROM tab0 ---- 2049 614 867 skipif mysql # not compatible query I rowsort label-8521 SELECT DISTINCT col1 - - CAST ( 22 * col0 AS INTEGER ) FROM tab0 ---- 2049 614 867 query I rowsort SELECT col0 + ( - tab1.col0 + + col2 ) * + col2 AS col1 FROM tab1 ---- -335 1616 2757 query I rowsort SELECT + col2 + + ( 75 ) * col1 + 78 AS col2 FROM tab0 ---- 6561 6985 7354 query I rowsort SELECT - + cor0.col1 * 57 + col2 * - cor0.col1 FROM tab0 AS cor0 ---- -12649 -5626 -7740 query I rowsort SELECT DISTINCT 16 * + col0 AS col2 FROM tab0 ---- 1424 384 560 query I rowsort SELECT DISTINCT + 69 FROM tab2, tab1 AS cor0 ---- 69 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8527 SELECT + CAST( 24 * col1 AS SIGNED ) FROM tab1 ---- 240 312 624 skipif mysql # not compatible query I rowsort label-8527 SELECT + CAST ( 24 * col1 AS INTEGER ) FROM tab1 ---- 240 312 624 query I rowsort SELECT ( col0 * col1 ) AS col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT - ( cor0.col0 ) * col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + 46 + - col1 AS col0 FROM tab2 AS cor0 ---- -13 15 29 query I rowsort SELECT ALL col2 + col2 * + col2 FROM tab2 ---- 1482 702 756 onlyif mysql # use DIV operator for integer division query I rowsort label-8532 SELECT + col0 * col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0 ---- 1 10 11 skipif mysql # not compatible query I rowsort label-8532 SELECT + col0 * col1 / cor0.col2 AS col1 FROM tab1 AS cor0 ---- 1 10 11 query I rowsort SELECT DISTINCT 62 * col2 FROM tab2 AS cor0 ---- 1612 1674 2356 query I rowsort SELECT ALL + - col0 * - col1 + 68 AS col0 FROM tab1 AS cor0 ---- 1108 146 708 query I rowsort SELECT DISTINCT cor0.col2 * cor0.col0 + 23 AS col2 FROM tab2 cor0 ---- 2051 212 3025 onlyif mysql # use DIV operator for integer division query I rowsort label-8536 SELECT - col0 + - col0 DIV col2 AS col1 FROM tab1 AS cor0 ---- -3 -65 -80 skipif mysql # not compatible query I rowsort label-8536 SELECT - col0 + - col0 / col2 AS col1 FROM tab1 AS cor0 ---- -3 -65 -80 query I rowsort SELECT + col1 + col2 * col1 * + col1 AS col2 FROM tab2 AS cor0 ---- 10999 25978 90565 query I rowsort SELECT ALL + col2 * - col1 + - 37 AS col2 FROM tab1 cor0 ---- -1285 -1441 -607 query I rowsort SELECT ALL - - cor0.col0 * col0 AS col0 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT + col1 + ( cor0.col1 ) * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT 27 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1a3cef5c33b8f87ffeded378fd207753 query I rowsort SELECT - cor0.col0 * cor0.col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f query I rowsort SELECT ( - 88 ) AS col1 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to eb8cbefa7d831e1a0183e919e2caef32 query I rowsort SELECT + 18 FROM tab0, tab0 cor0 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query I rowsort SELECT ALL 15 * + col2 * col2 FROM tab1 ---- 138240 43740 48735 query I rowsort SELECT ALL + - ( - 12 ) * + cor0.col2 AS col1 FROM tab1 cor0 ---- 1152 648 684 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8547 SELECT ALL + CAST( NULL AS SIGNED ) * 87 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8547 SELECT ALL + CAST ( NULL AS INTEGER ) * 87 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 + - 10 AS col1 FROM tab1 AS cor0 ---- -7 54 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT ALL + ( 29 ) AS col2 FROM tab1 AS cor0 ---- 29 29 29 query I rowsort SELECT + col2 * col2 + ( + col1 ) + + tab2.col1 AS col0 FROM tab2 ---- 1478 791 794 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 15 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0 query I rowsort SELECT 51 * col1 + col0 FROM tab1 ---- 1329 574 743 query I rowsort SELECT DISTINCT col1 + col1 + + 71 FROM tab0 ---- 243 253 265 query I rowsort SELECT DISTINCT + col1 * col0 + - ( - col0 * col2 + - 48 ) FROM tab0 AS cor0 ---- 15445 2904 3478 onlyif mysql # use DIV operator for integer division query I rowsort label-8556 SELECT DISTINCT + tab2.col1 + - tab2.col2 DIV ( 16 ) AS col1 FROM tab2 ---- 15 30 58 skipif mysql # not compatible query I rowsort label-8556 SELECT DISTINCT + tab2.col1 + - tab2.col2 / ( 16 ) AS col1 FROM tab2 ---- 15 30 58 query I rowsort SELECT + 22 * + 67 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to ac23ddf1ecdf04266f8f5486b396bec1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8558 SELECT - col0 + + col0 * + CAST( NULL AS SIGNED ) + - col2 * col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8558 SELECT - col0 + + col0 * + CAST ( NULL AS INTEGER ) + - col2 * col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - 70 + col0 FROM tab0 AS cor0 ---- -35 -46 19 query I rowsort SELECT + 36 * col0 AS col1 FROM tab2 AS cor0 ---- 252 2808 2844 query I rowsort SELECT - col1 * ( - cor0.col2 ) AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8562 SELECT DISTINCT - col1 * CAST( - col2 + - col1 AS SIGNED ) col2 FROM tab0 AS cor0 ---- 10234 15743 9506 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8562 SELECT DISTINCT - col1 * CAST ( - col2 + - col1 AS INTEGER ) col2 FROM tab0 AS cor0 ---- 10234 15743 9506 query I rowsort SELECT DISTINCT - col1 * - ( + col2 ) FROM tab2 cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 - - col2 * - col0 col2 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT + col1 * 58 AS col1 FROM tab2 ---- 1798 3422 986 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8566 SELECT DISTINCT + col0 / - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8566 SELECT DISTINCT + col0 / - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT col2 + - col0 * 45 * col2 FROM tab2 AS cor0 ---- -135052 -8478 -91234 query I rowsort SELECT DISTINCT - - col1 + 7 * + col1 + - col2 AS col2 FROM tab0 AS cor0 ---- 646 655 775 query I rowsort SELECT DISTINCT + col1 + ( + col2 ) FROM tab1 AS cor0 ---- 109 67 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - 26 * col1 + col1 col1 FROM tab0 AS cor0 ---- -210483 -53578 -88173 query I rowsort SELECT ALL + col1 + 10 * - col1 FROM tab0 AS cor0 ---- -774 -819 -873 onlyif mysql # use DIV operator for integer division query I rowsort label-8572 SELECT ALL ( tab2.col0 ) DIV + 26 - col1 DIV + col1 AS col1 FROM tab2 ---- -1 2 2 skipif mysql # not compatible query I rowsort label-8572 SELECT ALL ( tab2.col0 ) / + 26 - col1 / + col1 AS col1 FROM tab2 ---- -1 2 2 query I rowsort SELECT ALL + col0 * - col2 + cor0.col0 FROM tab0 AS cor0 ---- -7209 -768 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8574 SELECT - - col2 * CAST( - col1 AS SIGNED ) + col0 FROM tab2 AS cor0 ---- -1456 -567 -830 skipif mysql # not compatible query I rowsort label-8574 SELECT - - col2 * CAST ( - col1 AS INTEGER ) + col0 FROM tab2 AS cor0 ---- -1456 -567 -830 onlyif mysql # use DIV operator for integer division query I rowsort label-8575 SELECT + + col0 DIV + cor0.col0 + col0 FROM tab0 AS cor0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-8575 SELECT + + col0 / + cor0.col0 + col0 FROM tab0 AS cor0 ---- 25 36 90 query I rowsort SELECT + col2 * + cor0.col2 + + 56 AS col0 FROM tab0 cor0 ---- 1145 57 6780 query I rowsort SELECT + col1 + + cor0.col0 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT ALL 2 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 535345c50a19fdab97ce05d1837b1f09 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 - ( + col2 ) * col2 col2 FROM tab1 AS cor0 ---- -2862 -3192 -9120 query I rowsort SELECT + - col0 * 53 + cor0.col0 FROM tab2 AS cor0 ---- -364 -4056 -4108 query I rowsort SELECT ALL + col1 * col1 + 46 AS col1 FROM tab1 AS cor0 ---- 146 215 722 query I rowsort SELECT - 94 * col1 + col2 * - col2 + + col1 FROM tab0 AS cor0 ---- -15187 -9022 -9087 query I rowsort SELECT - + ( col2 ) * col1 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-8584 SELECT 35 + + col2 DIV - col0 FROM tab0 AS cor0 ---- 34 35 35 skipif mysql # not compatible query I rowsort label-8584 SELECT 35 + + col2 / - col0 FROM tab0 AS cor0 ---- 34 35 35 query I rowsort SELECT - - col0 * 68 * col1 FROM tab1 AS cor0 ---- 43520 5304 70720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col0 + + 59 col2 FROM tab1 AS cor0 ---- -21 -5 56 query I rowsort SELECT + tab0.col1 + ( col1 ) * col2 AS col0 FROM tab0 ---- 194 2924 7553 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * ( + col2 * tab0.col1 ) col0 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT ALL - 96 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to c89b545346f99713888a7934e4caa539 query I rowsort SELECT 31 FROM tab1, tab2 cor0, tab0 cor1 ---- 27 values hashing to c3c6f92f0ca72d71793339f88a57e336 query I rowsort SELECT + - 1 * + col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL + 77 * col1 AS col0 FROM tab1 AS cor0 ---- 1001 2002 770 query I rowsort SELECT DISTINCT tab0.col2 * col0 * + col0 AS col2 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT DISTINCT 5 FROM tab1 cor0 ---- 5 query I rowsort SELECT - 60 * 67 * + col2 FROM tab1 ---- -217080 -229140 -385920 query I rowsort SELECT + 69 * + col2 AS col2 FROM tab2 AS cor0 ---- 1794 1863 2622 query I rowsort SELECT 11 * + 23 AS col2 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 47373e8fc1807dea0561f677d0d5ce47 query I rowsort SELECT ALL + 69 * - col0 + col0 AS col2 FROM tab0 ---- -1632 -2380 -6052 query I rowsort SELECT col0 * - col1 + + 93 - col2 AS col2 FROM tab1 ---- -1043 -39 -604 query I rowsort SELECT + 76 * col2 + - cor0.col0 - + 92 FROM tab0 AS cor0 ---- -51 2392 6051 query I rowsort SELECT ALL + - 85 + - cor0.col0 * - col1 AS col2 FROM tab2 AS cor0 ---- 1258 132 4517 query I rowsort SELECT DISTINCT + 90 AS col1 FROM tab0 AS cor0 ---- 90 onlyif mysql # use DIV operator for integer division query I rowsort label-8603 SELECT DISTINCT - col2 DIV + cor0.col2 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-8603 SELECT DISTINCT - col2 / + cor0.col2 FROM tab0 AS cor0 ---- -1 query I rowsort SELECT - ( - col0 ) * 29 - col1 AS col0 FROM tab0 AS cor0 ---- 2490 610 918 query I rowsort SELECT 62 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 51dd2771d516ceb935483eded78a5fa0 query I rowsort SELECT + col0 + - 18 AS col0 FROM tab2 AS cor0 ---- -11 60 61 query I rowsort SELECT col0 * cor0.col2 + col0 * - col1 AS col1 FROM tab2 AS cor0 ---- -2574 -28 1659 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col0 ) + col1 col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ( - 10 ) AS col1 FROM tab1 AS cor0 ---- -10 -10 -10 query I rowsort SELECT DISTINCT + 12 AS col0 FROM tab0, tab1 AS cor0 ---- 12 onlyif mysql # use DIV operator for integer division query I rowsort label-8611 SELECT + + col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-8611 SELECT + + col2 / cor0.col0 AS col2 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT + col0 + - 34 FROM tab1 ---- -31 30 46 query I rowsort SELECT DISTINCT col1 * 41 + + cor0.col2 * - ( + 21 ) AS col1 FROM tab2 AS cor0 ---- -101 1873 704 query I rowsort SELECT DISTINCT + 57 + col0 FROM tab0 AS cor0 ---- 146 81 92 query I rowsort SELECT ALL - + 38 AS col2 FROM tab1 AS cor0 ---- -38 -38 -38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8616 SELECT ALL - CAST( + col0 AS SIGNED ) + col1 FROM tab1 AS cor0 ---- -54 -67 23 skipif mysql # not compatible query I rowsort label-8616 SELECT ALL - CAST ( + col0 AS INTEGER ) + col1 FROM tab1 AS cor0 ---- -54 -67 23 onlyif mysql # use DIV operator for integer division query I rowsort label-8617 SELECT ALL col1 + col0 DIV - col1 + + col1 AS col1 FROM tab2 AS cor0 ---- 117 30 62 skipif mysql # not compatible query I rowsort label-8617 SELECT ALL col1 + col0 / - col1 + + col1 AS col1 FROM tab2 AS cor0 ---- 117 30 62 onlyif mysql # use DIV operator for integer division query I rowsort label-8618 SELECT DISTINCT + col2 DIV - col0 + - col0 + 14 * 96 * col0 FROM tab1 AS cor0 ---- 107439 4011 85952 skipif mysql # not compatible query I rowsort label-8618 SELECT DISTINCT + col2 / - col0 + - col0 + 14 * 96 * col0 FROM tab1 AS cor0 ---- 107439 4011 85952 query I rowsort SELECT DISTINCT + + 95 * 29 * + col2 FROM tab2 AS cor0 ---- 104690 71630 74385 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8620 SELECT ALL + - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8620 SELECT ALL + - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 6 + col2 col0 FROM tab2 AS cor0 ---- 20 21 32 query I rowsort SELECT ALL 18 - 44 AS col1 FROM tab2 cor0 ---- -26 -26 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8623 SELECT + + CAST( NULL AS SIGNED ) * - 84 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8623 SELECT + + CAST ( NULL AS INTEGER ) * - 84 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col0 * col0 * ( col1 + col1 ) AS col1 FROM tab0 AS cor0 ---- 1441622 237650 99072 query I rowsort SELECT DISTINCT - col0 - col1 * + col0 AS col1 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT ALL - + col0 * + col2 + ( col1 * col0 ) FROM tab2 AS cor0 ---- -1659 2574 28 query I rowsort SELECT + + col1 * - 9 + col0 * col2 FROM tab1 AS cor0 ---- -72 3558 7563 query I rowsort SELECT + + col0 * + 85 + + col2 FROM tab0 AS cor0 ---- 2073 2976 7647 query I rowsort SELECT ALL col1 + ( ( col2 ) ) AS col2 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-8630 SELECT + cor0.col1 DIV 12 - 79 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 43bc8612aa085bf8edeef2ea82cbd0c9 skipif mysql # not compatible query I rowsort label-8630 SELECT + cor0.col1 / 12 - 79 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 43bc8612aa085bf8edeef2ea82cbd0c9 query I rowsort SELECT ALL col0 * + col0 + col2 AS col2 FROM tab0 ---- 1226 609 8003 query I rowsort SELECT - col1 + + 57 FROM tab2 ---- -2 26 40 query I rowsort SELECT col1 + 88 * + 32 FROM tab1 ---- 2826 2829 2842 query I rowsort SELECT DISTINCT 10 AS col1 FROM tab1, tab1 AS cor0 ---- 10 onlyif mysql # use DIV operator for integer division query I rowsort label-8635 SELECT ALL tab1.col1 + col0 DIV col1 AS col2 FROM tab1 ---- 16 19 26 skipif mysql # not compatible query I rowsort label-8635 SELECT ALL tab1.col1 + col0 / col1 AS col2 FROM tab1 ---- 16 19 26 query I rowsort SELECT ALL col1 * - tab1.col0 + col0 FROM tab1 ---- -576 -75 -960 query I rowsort SELECT DISTINCT - col1 * + cor0.col0 - 21 AS col0 FROM tab0 cor0 ---- -2085 -3416 -8120 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8638 SELECT - col1 + + col0 + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-8638 SELECT - col1 + + col0 + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT + - 98 * + col1 AS col2 FROM tab0 AS cor0 ---- -8428 -8918 -9506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8640 SELECT DISTINCT - + col0 * + col0 * - CAST( NULL AS SIGNED ) + col0 - + col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8640 SELECT DISTINCT - + col0 * + col0 * - CAST ( NULL AS INTEGER ) + col0 - + col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + tab0.col2 * col2 + col2 - 64 * + col2 FROM tab0 ---- -62 -990 1558 query I rowsort SELECT DISTINCT - tab2.col1 FROM tab2, tab2 cor0, tab0 AS cor1 ---- -17 -31 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-8643 SELECT DISTINCT ( col2 ) + col2 DIV 54 AS col1 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-8643 SELECT DISTINCT ( col2 ) + col2 / 54 AS col1 FROM tab2 ---- 26 27 38 query I rowsort SELECT 30 + col1 AS col2 FROM tab1 ---- 40 43 56 query I rowsort SELECT ALL - + col0 + + col2 * cor0.col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT + - col2 + col1 - ( col1 ) * col2 AS col1 FROM tab0 AS cor0 ---- -1 -2785 -7453 query I rowsort SELECT DISTINCT + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT ALL - tab1.col1 * col2 * - ( col2 ) FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT tab0.col2 * - tab0.col0 + ( + col2 ) AS col1 FROM tab0 ---- -34 -7216 -759 onlyif mysql # use DIV operator for integer division query I rowsort label-8650 SELECT - col1 + - col1 DIV + ( + col1 ) FROM tab2 ---- -18 -32 -60 skipif mysql # not compatible query I rowsort label-8650 SELECT - col1 + - col1 / + ( + col1 ) FROM tab2 ---- -18 -32 -60 skipif mysql # not compatible query I rowsort SELECT + + CAST ( + ( cor0.col1 ) AS REAL ) AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT + ( cor0.col2 ) AS col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL - - 66 + - 14 AS col0 FROM tab2 cor0 ---- 52 52 52 query I rowsort SELECT - col0 + + 35 * + col0 AS col0 FROM tab2 ---- 238 2652 2686 onlyif mysql # use DIV operator for integer division query I rowsort label-8655 SELECT DISTINCT tab0.col2 DIV - CAST( + col1 AS SIGNED ) AS col0 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-8655 SELECT DISTINCT tab0.col2 / - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 ---- 0 query I rowsort SELECT ALL + col1 * + 65 FROM tab0 ---- 5590 5915 6305 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * + 75 + + tab2.col0 col0 FROM tab2 ---- -518 -5772 -5846 onlyif mysql # use DIV operator for integer division query I rowsort label-8658 SELECT DISTINCT - 27 * ( + col1 ) DIV - col0 FROM tab2 AS cor0 ---- 119 20 5 skipif mysql # not compatible query I rowsort label-8658 SELECT DISTINCT - 27 * ( + col1 ) / - col0 FROM tab2 AS cor0 ---- 119 20 5 query I rowsort SELECT - 18 * + cor0.col0 FROM tab2 cor0 ---- -126 -1404 -1422 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8660 SELECT DISTINCT + + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-8660 SELECT DISTINCT + + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT + col1 * - 41 AS col1 FROM tab1 AS cor0 ---- -1066 -410 -533 query I rowsort SELECT ALL + 43 * + col2 FROM tab1 AS cor0 ---- 2322 2451 4128 query I rowsort SELECT 85 * col1 AS col0 FROM tab0 cor0 ---- 7310 7735 8245 query I rowsort SELECT DISTINCT 0 * - col1 + col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT - 17 * col1 * col2 FROM tab0 AS cor0 ---- -126854 -1649 -48246 query I rowsort SELECT - 99 * - col1 FROM tab0 AS cor0 ---- 8514 9009 9603 query I rowsort SELECT DISTINCT 6 AS col1 FROM tab2 AS cor0 ---- 6 query I rowsort SELECT DISTINCT + + ( 10 ) AS col2 FROM tab2 cor0 ---- 10 query I rowsort SELECT DISTINCT ( + 21 ) * col2 AS col0 FROM tab1 ---- 1134 1197 2016 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 44 col2 FROM tab0 ---- 44 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8671 SELECT - CAST( col0 AS SIGNED ) FROM tab1 cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-8671 SELECT - CAST ( col0 AS INTEGER ) FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT ALL col2 * col1 * + col0 AS col1 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT 47 * - col2 * - col0 FROM tab1 ---- 171456 360960 7614 onlyif mysql # use DIV operator for integer division query I rowsort label-8674 SELECT + - col0 * - col2 + cor0.col2 - - col0 DIV - col0 FROM tab0 AS cor0 ---- 35 7379 824 skipif mysql # not compatible query I rowsort label-8674 SELECT + - col0 * - col2 + cor0.col2 - - col0 / - col0 FROM tab0 AS cor0 ---- 35 7379 824 query I rowsort SELECT - 53 + col1 + col2 * + col1 FROM tab2 AS cor0 ---- 1540 610 815 query I rowsort SELECT tab0.col1 * tab0.col1 AS col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT + 8 + col1 AS col1 FROM tab2 AS cor0 ---- 25 39 67 query I rowsort SELECT - 29 * col2 * col1 AS col2 FROM tab0 AS cor0 ---- -216398 -2813 -82302 onlyif mysql # use DIV operator for integer division query I rowsort label-8679 SELECT - + ( col2 ) DIV - 21 FROM tab0 cor0 ---- 0 1 3 skipif mysql # not compatible query I rowsort label-8679 SELECT - + ( col2 ) / - 21 FROM tab0 cor0 ---- 0 1 3 onlyif mysql # use DIV operator for integer division query I rowsort label-8680 SELECT ALL - col2 * 74 DIV - col2 AS col1 FROM tab1 AS cor0 ---- 74 74 74 skipif mysql # not compatible query I rowsort label-8680 SELECT ALL - col2 * 74 / - col2 AS col1 FROM tab1 AS cor0 ---- 74 74 74 query I rowsort SELECT DISTINCT col0 * 57 + cor0.col1 * - col0 AS col0 FROM tab1 AS cor0 ---- 3008 3520 93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 + col1 col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8683 SELECT - col0 * + col2 + col1 * - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8683 SELECT - col0 * + col2 + col1 * - col0 * + 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-8684 SELECT - col0 * + CAST( 30 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0 ---- -217 -2418 -2449 skipif mysql # not compatible query I rowsort label-8684 SELECT - col0 * + CAST ( 30 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0 ---- -217 -2418 -2449 query I rowsort SELECT DISTINCT - col0 + 77 FROM tab1 AS cor0 ---- -3 13 74 query I rowsort SELECT ALL 51 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * + col0 + col2 col0 FROM tab0 cor0 ---- 36 7380 825 query I rowsort SELECT + tab1.col1 * ( - col2 ) AS col1 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT - col2 * ( - 74 ) FROM tab1 AS cor0 ---- 3996 4218 7104 query I rowsort SELECT + col2 + ( - col1 + col2 ) AS col0 FROM tab2 AS cor0 ---- -7 23 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 + cor0.col2 - - col1 col1 FROM tab0 AS cor0 ---- 133 143 262 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 onlyif mysql # use DIV operator for integer division query I rowsort label-8693 SELECT DISTINCT - col0 + - cor0.col1 DIV + 72 AS col0 FROM tab0 cor0 ---- -25 -36 -90 skipif mysql # not compatible query I rowsort label-8693 SELECT DISTINCT - col0 + - cor0.col1 / + 72 AS col0 FROM tab0 cor0 ---- -25 -36 -90 query I rowsort SELECT ALL - col2 + - 43 AS col1 FROM tab1 AS cor0 ---- -100 -139 -97 query I rowsort SELECT DISTINCT ( 8 ) * tab1.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 24 512 640 onlyif mysql # use DIV operator for integer division query I rowsort label-8696 SELECT + col1 DIV - 17 FROM tab0 AS cor0 ---- -5 -5 -5 skipif mysql # not compatible query I rowsort label-8696 SELECT + col1 / - 17 FROM tab0 AS cor0 ---- -5 -5 -5 onlyif mysql # use DIV operator for integer division query I rowsort label-8697 SELECT DISTINCT - col1 * 58 + col1 DIV + cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1507 -579 -753 skipif mysql # not compatible query I rowsort label-8697 SELECT DISTINCT - col1 * 58 + col1 / + cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1507 -579 -753 query I rowsort SELECT ALL + col2 * col2 - + col2 * col0 AS col1 FROM tab1 AS cor0 ---- -399 1536 2754 query I rowsort SELECT - col2 * - 80 FROM tab0 AS cor0 ---- 2640 6560 80 query I rowsort SELECT + 62 AS col2 FROM tab1 ---- 62 62 62 onlyif mysql # use DIV operator for integer division query I rowsort label-8701 SELECT + col2 DIV + 3 - tab1.col2 FROM tab1 ---- -36 -38 -64 skipif mysql # not compatible query I rowsort label-8701 SELECT + col2 / + 3 - tab1.col2 FROM tab1 ---- -36 -38 -64 query I rowsort SELECT - col2 * 56 AS col1 FROM tab0 AS cor0 ---- -1848 -4592 -56 skipif mysql # not compatible query I rowsort SELECT + col2 * CAST ( + col2 AS REAL ) AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT col2 * 65 * - col2 FROM tab1 AS cor0 ---- -189540 -211185 -599040 query I rowsort SELECT + col0 * col2 - + col1 AS col0 FROM tab0 ---- -62 706 7207 onlyif mysql # use DIV operator for integer division query I rowsort label-8706 SELECT DISTINCT 58 DIV - col0 AS col2 FROM tab2 ---- -8 0 skipif mysql # not compatible query I rowsort label-8706 SELECT DISTINCT 58 / - col0 AS col2 FROM tab2 ---- -8 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8707 SELECT DISTINCT col1 + - tab1.col0 + - col1 DIV - tab1.col1 FROM tab1 ---- -53 -66 24 skipif mysql # not compatible query I rowsort label-8707 SELECT DISTINCT col1 + - tab1.col0 + - col1 / - tab1.col1 FROM tab1 ---- -53 -66 24 query I rowsort SELECT DISTINCT + 95 FROM tab1, tab2, tab2 AS cor0 ---- 95 query I rowsort SELECT + + 25 * + col1 * 61 FROM tab0 AS cor0 ---- 131150 138775 147925 onlyif mysql # use DIV operator for integer division query I rowsort label-8710 SELECT col1 DIV col0 - + col2 AS col2 FROM tab2 ---- -23 -26 -38 skipif mysql # not compatible query I rowsort label-8710 SELECT col1 / col0 - + col2 AS col2 FROM tab2 ---- -23 -26 -38 onlyif mysql # use DIV operator for integer division query I rowsort label-8711 SELECT DISTINCT col0 DIV col1 + col1 + + col2 FROM tab0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-8711 SELECT DISTINCT col0 / col1 + col1 + + col2 FROM tab0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - col0 + 55 col1 FROM tab1 AS cor0 ---- 4151 64 6455 query I rowsort SELECT ALL - col2 * cor0.col2 AS col0 FROM tab2 cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT + - cor0.col2 + + cor0.col0 FROM tab0 AS cor0 ---- -9 34 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * + col2 * + col2 + 28 * + col1 col2 FROM tab2 AS cor0 ---- 23467 25024 41536 query I rowsort SELECT ALL + 3 + col0 FROM tab2 cor0 ---- 10 81 82 query I rowsort SELECT DISTINCT - - 49 * col0 + + col1 * 66 AS col2 FROM tab0 AS cor0 ---- 10367 6852 8117 query I rowsort SELECT DISTINCT cor0.col1 * - 81 FROM tab1 AS cor0 ---- -1053 -2106 -810 query I rowsort SELECT - col1 + + 99 FROM tab0 AS cor0 ---- 13 2 8 query I rowsort SELECT DISTINCT + col2 + + 22 AS col0 FROM tab2 AS cor0 ---- 48 49 60 onlyif mysql # use DIV operator for integer division query I rowsort label-8721 SELECT ALL col2 DIV CAST( col0 + col2 AS SIGNED ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8721 SELECT ALL col2 / CAST ( col0 + col2 AS INTEGER ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - + col2 * + 32 AS col2 FROM tab0 AS cor0 ---- -1056 -2624 -32 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8723 SELECT + - col2 * - CAST( + 43 AS SIGNED ) FROM tab0 AS cor0 ---- 1419 3526 43 skipif mysql # not compatible query I rowsort label-8723 SELECT + - col2 * - CAST ( + 43 AS INTEGER ) FROM tab0 AS cor0 ---- 1419 3526 43 query I rowsort SELECT + 41 + + col1 AS col0 FROM tab0 AS cor0 ---- 127 132 138 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8725 SELECT col2 * cor0.col2 + cor0.col1 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 ---- -108 -858 798 skipif mysql # not compatible query I rowsort label-8725 SELECT col2 * cor0.col2 + cor0.col1 * - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 ---- -108 -858 798 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8726 SELECT + CAST( NULL AS SIGNED ) + col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8726 SELECT + CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 * - col2 + + col2 * + 33 FROM tab0 ---- -4018 0 32 query I rowsort SELECT col1 * col2 * - col0 + cor0.col0 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- -35840 -4134 -98800 query I rowsort SELECT DISTINCT col1 - col1 * - col1 FROM tab1 AS cor0 ---- 110 182 702 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8730 SELECT ALL CAST( - col0 * + col2 AS SIGNED ) FROM tab2 ---- -189 -2028 -3002 skipif mysql # not compatible query I rowsort label-8730 SELECT ALL CAST ( - col0 * + col2 AS INTEGER ) FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT + 66 + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 104 92 93 query I rowsort SELECT DISTINCT - col1 * cor0.col0 + + col1 FROM tab1 cor0 ---- -1027 -52 -630 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT ALL - - col2 * - col0 - CAST ( + col0 AS REAL ) col1 FROM tab2 AS cor0 ---- -196 -2106 -3081 query I rowsort SELECT - - col1 * - col0 + col2 * col2 AS col2 FROM tab1 AS cor0 ---- 2609 2838 8176 query I rowsort SELECT DISTINCT - 34 * - col0 + 90 AS col0 FROM tab0 cor0 ---- 1280 3116 906 query I rowsort SELECT + 85 + col2 FROM tab2 ---- 111 112 123 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8737 SELECT + CAST( col1 + col1 AS DECIMAL ) / - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8737 SELECT + CAST ( col1 + col1 AS REAL ) / - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8738 SELECT + CAST( NULL AS SIGNED ) * + col1 + + col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8738 SELECT + CAST ( NULL AS INTEGER ) * + col1 + + col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 64 - + col1 * col0 AS col0 FROM tab0 ---- -2000 -3331 -8035 query I rowsort SELECT DISTINCT - 23 AS col1 FROM tab1, tab1 cor0 CROSS JOIN tab2 ---- -23 query I rowsort SELECT DISTINCT col1 + 89 * cor0.col0 AS col1 FROM tab0 AS cor0 ---- 2222 3212 8012 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8742 SELECT DISTINCT - CAST( 5 AS SIGNED ) FROM tab0 AS cor0 ---- -5 skipif mysql # not compatible query I rowsort label-8742 SELECT DISTINCT - CAST ( 5 AS INTEGER ) FROM tab0 AS cor0 ---- -5 onlyif mysql # use DIV operator for integer division query I rowsort label-8743 SELECT - col2 + col2 DIV col1 AS col1 FROM tab2 AS cor0 ---- -26 -27 -36 skipif mysql # not compatible query I rowsort label-8743 SELECT - col2 + col2 / col1 AS col1 FROM tab2 AS cor0 ---- -26 -27 -36 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 70 * + ( col2 ) col1 FROM tab0 AS cor0 ---- 2310 5740 70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8745 SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-8745 SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT - col0 * col0 + col2 + ( col2 ) FROM tab1 cor0 ---- -3982 -6208 99 query I rowsort SELECT ALL + cor0.col2 + + 8 * - col0 AS col0 FROM tab0 AS cor0 ---- -159 -279 -630 onlyif mysql # use DIV operator for integer division query I rowsort label-8748 SELECT ALL 85 DIV cor0.col0 + cor0.col2 FROM tab1 AS cor0 ---- 58 82 97 skipif mysql # not compatible query I rowsort label-8748 SELECT ALL 85 / cor0.col0 + cor0.col2 FROM tab1 AS cor0 ---- 58 82 97 query I rowsort SELECT ALL + 54 * + 35 + col0 FROM tab2 AS cor0 ---- 1897 1968 1969 query I rowsort SELECT - - ( 91 ) AS col2 FROM tab1 AS cor0 ---- 91 91 91 onlyif mysql # use DIV operator for integer division query I rowsort label-8751 SELECT DISTINCT + 64 DIV - 80 col2 FROM tab2 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8751 SELECT DISTINCT + 64 / - 80 col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - 62 + col2 * col1 * 19 FROM tab1 cor0 ---- 10768 23650 26614 query I rowsort SELECT ALL - 63 + - cor0.col0 FROM tab2 AS cor0 ---- -141 -142 -70 query I rowsort SELECT ALL col2 + col0 * - col2 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT DISTINCT + col0 * col1 + - col0 FROM tab1 cor0 ---- 576 75 960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * + cor0.col0 col0 FROM tab2 cor0 ---- 49 6084 6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8757 SELECT - col2 * cor0.col1 + CAST( NULL AS SIGNED ) - - 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-8757 SELECT - col2 * cor0.col1 + CAST ( NULL AS INTEGER ) - - col2 col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8758 SELECT col2 DIV + col1 + ( col0 ) FROM tab2 AS cor0 ---- 7 78 81 skipif mysql # not compatible query I rowsort label-8758 SELECT col2 / + col1 + ( col0 ) FROM tab2 AS cor0 ---- 7 78 81 onlyif mysql # use DIV operator for integer division query I rowsort label-8759 SELECT + col2 + col0 DIV + 42 AS col2 FROM tab2 AS cor0 ---- 27 27 39 skipif mysql # not compatible query I rowsort label-8759 SELECT + col2 + col0 / + 42 AS col2 FROM tab2 AS cor0 ---- 27 27 39 query I rowsort SELECT DISTINCT + col1 * cor0.col2 + + col0 AS col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT + 50 - col1 * - col2 AS col2 FROM tab0 AS cor0 ---- 147 2888 7512 query I rowsort SELECT DISTINCT - - col0 * col2 + - col2 + + ( + cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- 193 2061 2981 query I rowsort SELECT - 37 * + cor0.col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 6edcf08a1db2c295d5ca356be7bfe647 query I rowsort SELECT + col1 + col1 - ( + col1 ) * - col0 AS col2 FROM tab0 AS cor0 ---- 2236 3589 8281 onlyif mysql # use DIV operator for integer division query I rowsort label-8765 SELECT ALL - cor0.col1 DIV 28 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8765 SELECT ALL - cor0.col1 / 28 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + col2 + + 44 AS col0 FROM tab2 AS cor0 ---- 70 71 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 + col0 * + col0 col0 FROM tab2 AS cor0 ---- 22 6058 6203 query I rowsort SELECT DISTINCT + 41 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 41 query I rowsort SELECT + col1 * ( col0 ) + col0 AS col2 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT ALL - + col1 * 13 * col0 FROM tab2 AS cor0 ---- -17459 -2821 -59826 query I rowsort SELECT - 80 FROM tab0, tab2, tab2 cor0, tab1 AS cor1 ---- 81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8772 SELECT DISTINCT - col1 * CAST( + col2 AS SIGNED ) * col0 FROM tab1 ---- -36480 -4212 -99840 skipif mysql # not compatible query I rowsort label-8772 SELECT DISTINCT - col1 * CAST ( + col2 AS INTEGER ) * col0 FROM tab1 ---- -36480 -4212 -99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 36 * + col1 col2 FROM tab2 cor0 ---- -1116 -2124 -612 query I rowsort SELECT tab0.col2 + 57 + cor0.col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to b5c4755bd036b0f50f68a99b7a73ed53 query I rowsort SELECT DISTINCT - col2 - 30 AS col0 FROM tab2 AS cor0 ---- -56 -57 -68 query I rowsort SELECT ALL - cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 query I rowsort SELECT tab2.col1 + col0 * - col0 FROM tab2 ---- -18 -6025 -6224 query I rowsort SELECT 78 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 21 col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8780 SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-8780 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 ---- NULL query I rowsort SELECT DISTINCT + col0 * 15 FROM tab0 ---- 1335 360 525 query I rowsort SELECT DISTINCT - ( cor0.col0 ) AS col2 FROM tab2, tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - + ( - col0 ) * - col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8784 SELECT ( + col0 * CAST( NULL AS DECIMAL ) ) + col1 + + tab1.col2 col2 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8784 SELECT ( + col0 * CAST ( NULL AS REAL ) ) + col1 + + tab1.col2 col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL 55 * tab0.col0 AS col1 FROM tab0 ---- 1320 1925 4895 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8786 SELECT ALL + ( col2 ) + + CAST( col0 AS SIGNED ) FROM tab1 cor0 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-8786 SELECT ALL + ( col2 ) + + CAST ( col0 AS INTEGER ) FROM tab1 cor0 ---- 121 176 57 query I rowsort SELECT ALL + col1 * - col2 * + col2 FROM tab2 ---- -22599 -24548 -39884 onlyif mysql # use DIV operator for integer division query I rowsort label-8788 SELECT ALL + col0 + col2 DIV + 80 FROM tab2 cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-8788 SELECT ALL + col0 + col2 / + 80 FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT - - cor0.col0 + col1 * col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT - col0 * + col0 - + 32 FROM tab0 AS cor0 ---- -1257 -608 -7953 query I rowsort SELECT - col0 + - ( - col1 * - cor0.col0 ) AS col1 FROM tab0 cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-8792 SELECT ALL - col1 DIV - tab1.col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8792 SELECT ALL - col1 / - tab1.col2 FROM tab1 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8793 SELECT + + col1 + cor0.col2 DIV col0 FROM tab2 cor0 ---- 17 34 59 skipif mysql # not compatible query I rowsort label-8793 SELECT + + col1 + cor0.col2 / col0 FROM tab2 cor0 ---- 17 34 59 query I rowsort SELECT - - col2 + - 43 AS col2 FROM tab2 AS cor0 ---- -16 -17 -5 query I rowsort SELECT + col0 * col0 + col1 FROM tab1 AS cor0 ---- 35 4106 6413 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 + - cor0.col0 col0 FROM tab0 AS cor0 ---- -34 -7 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + + ( col1 ) col1 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8798 SELECT + 78 * - col2 * CAST( - col2 AS SIGNED ) AS col0 FROM tab2 cor0 ---- 112632 52728 56862 skipif mysql # not compatible query I rowsort label-8798 SELECT + 78 * - col2 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 cor0 ---- 112632 52728 56862 query I rowsort SELECT DISTINCT 60 + - col1 AS col1 FROM tab1 AS cor0 ---- 34 47 50 onlyif mysql # use DIV operator for integer division query I rowsort label-8800 SELECT ALL - 6 DIV + col0 + - 76 FROM tab0 AS cor0 ---- -76 -76 -76 skipif mysql # not compatible query I rowsort label-8800 SELECT ALL - 6 / + col0 + - 76 FROM tab0 AS cor0 ---- -76 -76 -76 query I rowsort SELECT DISTINCT - 55 * - cor0.col2 FROM tab2 AS cor0 ---- 1430 1485 2090 query I rowsort SELECT DISTINCT + col0 * ( - 43 ) + - col1 AS col1 FROM tab1 AS cor0 ---- -155 -2762 -3453 query I rowsort SELECT ALL + cor0.col0 * cor0.col0 - + 57 AS col0 FROM tab2 AS cor0 ---- -8 6027 6184 query I rowsort SELECT cor0.col1 + 60 * col1 AS col1 FROM tab0 AS cor0 ---- 5246 5551 5917 onlyif mysql # use DIV operator for integer division query I rowsort label-8805 SELECT ALL + col1 + + 76 DIV cor0.col1 AS col0 FROM tab2 cor0 ---- 21 33 60 skipif mysql # not compatible query I rowsort label-8805 SELECT ALL + col1 + + 76 / cor0.col1 AS col0 FROM tab2 cor0 ---- 21 33 60 query I rowsort SELECT DISTINCT - + col0 + + 76 * col1 FROM tab1 AS cor0 ---- 1973 696 908 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8807 SELECT - col0 * CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif mysql # not compatible query I rowsort label-8807 SELECT - col0 * CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -49 -6084 -6241 onlyif mysql # use DIV operator for integer division query I rowsort label-8808 SELECT DISTINCT + + col2 DIV 84 + - col0 AS col0 FROM tab0 cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-8808 SELECT DISTINCT + + col2 / 84 + - col0 AS col0 FROM tab0 cor0 ---- -24 -35 -89 query I rowsort SELECT - col0 + - col0 * + 26 FROM tab2 cor0 ---- -189 -2106 -2133 query I rowsort SELECT ALL col1 * 38 * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 129010 307762 78432 query I rowsort SELECT DISTINCT + - cor0.col1 AS col0 FROM tab2, tab0, tab1 AS cor0 ---- -10 -13 -26 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( - col1 + + col2 ) ---- query I rowsort SELECT - col1 * + col1 - col1 AS col1 FROM tab0 ---- -7482 -8372 -9506 query I rowsort SELECT DISTINCT col1 * + col2 * col1 AS col2 FROM tab0 ---- 244068 679042 9409 query III rowsort SELECT * FROM tab0 WHERE col0 + + col2 * col2 <> NULL ---- query I rowsort SELECT col2 + col0 - col1 AS col1 FROM tab1 ---- 111 163 31 query I rowsort SELECT DISTINCT - col1 * + col2 * - col0 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT col1 + - col0 + tab0.col0 / col0 FROM tab0 WHERE NULL NOT BETWEEN ( + col0 ) AND col0 * col0 ---- query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col1 * tab1.col0 * col1 ) ---- query I rowsort SELECT col1 + tab0.col1 * + col1 + col0 AS col0 FROM tab0 ---- 7506 8461 9541 query III rowsort SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col2 + - col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8822 SELECT col1 DIV col2 + - col2 FROM tab0 ---- -31 -81 96 skipif mysql # not compatible query I rowsort label-8822 SELECT col1 / col2 + - col2 FROM tab0 ---- -31 -81 96 query I rowsort SELECT - col1 * - col2 + + col1 * - col0 AS col0 FROM tab0 ---- -3298 -637 774 query I rowsort SELECT ALL - col0 * col2 + col1 AS col2 FROM tab2 ---- -158 -1969 -2985 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + - tab1.col1 * + col1 * col2 col0 FROM tab1 ---- -16320 -36558 -5757 query I rowsort SELECT + col1 * col1 + col2 * col0 FROM tab0 ---- 15579 8188 9444 query I rowsort SELECT ALL col0 + + col2 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT ALL - col2 * col1 - - col2 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT - col2 * + col2 * + tab0.col0 - - col0 FROM tab0 ---- -26112 -598347 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col0 * tab0.col0 * - col1 col0 FROM tab0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT + col1 + col0 * + col1 * + tab0.col0 + - col2 AS col1 FROM tab0 ---- 118921 49589 720820 onlyif mysql # use DIV operator for integer division query I rowsort label-8832 SELECT col2 DIV col2 + col2 DIV col0 - col0 AS col1 FROM tab0 ---- -22 -34 -88 skipif mysql # not compatible query I rowsort label-8832 SELECT col2 / col2 + col2 / col0 - col0 AS col1 FROM tab0 ---- -22 -34 -88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * - col0 col0 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT col2 + col0 * + col0 + + col0 FROM tab0 ---- 1261 633 8092 query I rowsort SELECT ALL col1 * tab1.col1 * + col0 AS col0 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT + 42 * + col1 + 89 * - col0 AS col1 FROM tab1 AS cor0 ---- -5276 -6574 825 query I rowsort SELECT - ( + 24 ) FROM tab1 ---- -24 -24 -24 query I rowsort SELECT + - 9 * + col1 + ( col1 ) FROM tab1 AS cor0 ---- -104 -208 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 42 * + cor0.col0 col0 FROM tab0 AS cor0 ---- 1008 1470 3738 query I rowsort SELECT DISTINCT col1 + + col0 * - col0 FROM tab2 AS cor0 ---- -18 -6025 -6224 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 92 col0 FROM tab2 cor0 ---- -92 -92 -92 query I rowsort SELECT + ( + col2 ) + col0 * - cor0.col2 + + col2 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -3536 -3610 -999 query I rowsort SELECT DISTINCT ( col0 ) * - col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT col1 * tab0.col1 + + col1 FROM tab0 ---- 7482 8372 9506 query I rowsort SELECT ALL 93 - - 49 * col0 FROM tab1 ---- 240 3229 4013 query I rowsort SELECT + 36 * + 33 AS col2 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to fbaa2530f01e5fee753c3e2fc9d64fb6 query I rowsort SELECT DISTINCT - col1 - - 28 AS col2 FROM tab2 ---- -3 -31 11 query I rowsort SELECT + col2 * 54 FROM tab0 ---- 1782 4428 54 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * - col1 * + ( ( - col2 ) ) col0 FROM tab0 cor0 ---- -3395 -664118 -68112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * - col2 col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL col1 * col0 * + 90 AS col1 FROM tab2 cor0 ---- 120870 19530 414180 onlyif mysql # use DIV operator for integer division query I rowsort label-8852 SELECT + 81 + + col2 DIV + 78 AS col0 FROM tab1 AS cor0 ---- 81 81 82 skipif mysql # not compatible query I rowsort label-8852 SELECT + 81 + + col2 / + 78 AS col0 FROM tab1 AS cor0 ---- 81 81 82 query I rowsort SELECT DISTINCT - col1 * col1 + + col0 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT DISTINCT + - 78 * - col0 + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 577 6143 6179 query I rowsort SELECT DISTINCT - cor0.col0 * col2 + col1 AS col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT ALL - + col2 - + col2 FROM tab1 cor0 ---- -108 -114 -192 onlyif mysql # use DIV operator for integer division query I rowsort label-8857 SELECT ALL + col1 DIV ( col2 ) FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8857 SELECT ALL + col1 / ( col2 ) FROM tab1 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8858 SELECT ALL col2 DIV col1 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-8858 SELECT ALL col2 / col1 col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - cor0.col1 + + 80 FROM tab0 AS cor0 ---- -11 -17 -6 onlyif mysql # use DIV operator for integer division query I rowsort label-8860 SELECT col1 DIV ( - col2 * col0 ) AS col1 FROM tab0 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-8860 SELECT col1 / ( - col2 * col0 ) AS col1 FROM tab0 AS cor0 ---- -2 0 0 query I rowsort SELECT DISTINCT + 16 + + col0 * col0 FROM tab0 AS cor0 ---- 1241 592 7937 query I rowsort SELECT - + col2 + ( + col0 ) - + col2 FROM tab2 AS cor0 ---- -47 26 3 query I rowsort SELECT ALL - + ( + ( col0 ) ) * - 36 FROM tab1 AS cor0 ---- 108 2304 2880 onlyif mysql # use DIV operator for integer division query I rowsort label-8864 SELECT DISTINCT + + ( col1 ) DIV - col0 FROM tab2 AS cor0 ---- -4 0 skipif mysql # not compatible query I rowsort label-8864 SELECT DISTINCT + + ( col1 ) / - col0 FROM tab2 AS cor0 ---- -4 0 query I rowsort SELECT DISTINCT - col1 + - col2 + - col1 AS col2 FROM tab2 ---- -144 -72 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8866 SELECT CAST( NULL AS SIGNED ) * col0 * col1 + ( 21 ) + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8866 SELECT CAST ( NULL AS INTEGER ) * col0 * col1 + ( 21 ) + col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 93 + col1 + col0 * - 1 AS col2 FROM tab1 AS cor0 ---- 116 26 39 onlyif mysql # use DIV operator for integer division query I rowsort label-8868 SELECT - col0 DIV col2 + - col1 + - col2 FROM tab1 AS cor0 ---- -109 -68 -80 skipif mysql # not compatible query I rowsort label-8868 SELECT - col0 / col2 + - col1 + - col2 FROM tab1 AS cor0 ---- -109 -68 -80 query I rowsort SELECT ( col2 ) + col1 + 62 FROM tab0 AS cor0 ---- 160 181 235 query I rowsort SELECT DISTINCT + ( col1 ) + col0 AS col2 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # use DIV operator for integer division query I rowsort label-8871 SELECT DISTINCT col2 DIV col1 + + col1 + col0 FROM tab2 AS cor0 ---- 137 38 98 skipif mysql # not compatible query I rowsort label-8871 SELECT DISTINCT col2 / col1 + + col1 + col0 FROM tab2 AS cor0 ---- 137 38 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 * cor0.col1 col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT cor0.col0 * + cor0.col2 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-8874 SELECT DISTINCT col2 * ( + col0 ) DIV cor0.col1 col0 FROM tab1 AS cor0 ---- 364 590 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8874 SELECT DISTINCT col2 * ( + col0 ) / cor0.col1 col0 FROM tab1 AS cor0 ---- 364 590 6 query I rowsort SELECT DISTINCT col1 * - 11 AS col0 FROM tab1 ---- -110 -143 -286 query I rowsort SELECT + 43 - cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 8a8b53ffd63375dcc1ce588c6f7943fc onlyif mysql # use DIV operator for integer division query I rowsort label-8877 SELECT - - cor0.col2 DIV 97 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8877 SELECT - - cor0.col2 / 97 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 * - col1 * col0 FROM tab2 AS cor0 ---- 106097 1519 358956 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 49 col0 FROM tab1, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to a40d8754a5be3ce2309c61bfd3e00197 query I rowsort SELECT ALL - col1 * 73 FROM tab2 ---- -1241 -2263 -4307 query I rowsort SELECT DISTINCT - - ( col2 ) AS col1 FROM tab2 AS cor0 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-8882 SELECT - ( col0 ) * col1 + - col0 DIV - 78 + col0 FROM tab1 AS cor0 ---- -576 -75 -959 skipif mysql # not compatible query I rowsort label-8882 SELECT - ( col0 ) * col1 + - col0 / - 78 + col0 FROM tab1 AS cor0 ---- -576 -75 -959 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 22 * + 4 col0 FROM tab2 ---- -88 -88 -88 query I rowsort SELECT DISTINCT + col2 + 93 * col1 AS col1 FROM tab1 cor0 ---- 1305 2472 987 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col0 - 36 col1 FROM tab2 AS cor0 ---- -114 -115 -43 query I rowsort SELECT ALL - ( col2 ) * + col0 * + col1 + col1 AS col2 FROM tab2 cor0 ---- -119593 -51017 -5828 query I rowsort SELECT - 58 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to de0811e670e75d2aeeb657e32bddb0c0 query I rowsort SELECT col0 * - cor0.col1 - col1 * + cor0.col2 FROM tab2 AS cor0 ---- -1054 -1989 -6136 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8889 SELECT DISTINCT - + CAST( + col1 AS SIGNED ) + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-8889 SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 28 47 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 3 col1 FROM tab2 AS cor0 ---- 3 query I rowsort SELECT + - ( - 37 ) FROM tab0 AS cor0 ---- 37 37 37 query I rowsort SELECT ALL - + 87 * - col2 + cor0.col0 FROM tab2 cor0 ---- 2340 2356 3385 query I rowsort SELECT - - col1 + col0 * 93 + col1 FROM tab1 AS cor0 ---- 331 5972 7466 query I rowsort SELECT ALL + 11 + col1 FROM tab1 AS cor0 ---- 21 24 37 query I rowsort SELECT + 49 * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 1176 1715 4361 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8896 SELECT DISTINCT - col2 * col1 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8896 SELECT DISTINCT - col2 * col1 + CAST ( NULL AS REAL ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + 23 * + col0 + col0 FROM tab2 AS cor0 ---- 168 1872 1896 query I rowsort SELECT 80 * - col2 FROM tab2 ---- -2080 -2160 -3040 query I rowsort SELECT 36 + + col1 * col1 FROM tab0 ---- 7432 8317 9445 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8900 SELECT DISTINCT - CAST( - 63 AS SIGNED ) * col1 + + col0 FROM tab1 ---- 1641 694 899 skipif mysql # not compatible query I rowsort label-8900 SELECT DISTINCT - CAST ( - 63 AS INTEGER ) * col1 + + col0 FROM tab1 ---- 1641 694 899 query I rowsort SELECT DISTINCT - ( tab2.col0 ) * + col1 + - ( - col2 ) FROM tab2 ---- -1305 -190 -4576 query I rowsort SELECT col1 * col2 + - col0 AS col0 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT DISTINCT - cor0.col1 * col1 - + col1 * col2 FROM tab2 AS cor0 ---- -1798 -5015 -935 query I rowsort SELECT + + col0 * cor0.col0 * - 29 + col1 AS col2 FROM tab0 AS cor0 ---- -16618 -229618 -35428 query I rowsort SELECT - 52 * cor0.col0 AS col1 FROM tab1 cor0 ---- -156 -3328 -4160 query I rowsort SELECT col1 * + 93 AS col1 FROM tab0 AS cor0 ---- 7998 8463 9021 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8907 SELECT + + col0 / CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8907 SELECT + + col0 / CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 56 AS col2 FROM tab2 ---- 56 onlyif mysql # use DIV operator for integer division query I rowsort label-8909 SELECT + col2 DIV - col2 + col2 FROM tab0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-8909 SELECT + col2 / - col2 + col2 FROM tab0 ---- 0 32 81 onlyif mysql # use DIV operator for integer division query I rowsort label-8910 SELECT - - ( col1 ) * col2 DIV - col2 + col1 + col2 AS col2 FROM tab0 cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-8910 SELECT - - ( col1 ) * col2 / - col2 + col1 + col2 AS col2 FROM tab0 cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-8911 SELECT col1 * + col0 + - cor0.col1 DIV + cor0.col1 + ( col1 ) AS col2 FROM tab1 AS cor0 ---- 103 1052 649 skipif mysql # not compatible query I rowsort label-8911 SELECT col1 * + col0 + - cor0.col1 / + cor0.col1 + ( col1 ) AS col2 FROM tab1 AS cor0 ---- 103 1052 649 query I rowsort SELECT + col1 * 11 FROM tab0 cor0 ---- 1001 1067 946 query I rowsort SELECT ALL cor0.col1 * - cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to ec78ec5613a97992c479f6a19b49c758 query I rowsort SELECT DISTINCT col0 * ( - col1 + col2 ) FROM tab2 ---- -2574 -28 1659 query I rowsort SELECT col2 * col0 * + col2 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT ALL 5 + 57 * - col0 FROM tab2 AS cor0 ---- -394 -4441 -4498 query I rowsort SELECT DISTINCT 72 AS col1 FROM tab0 AS cor0 ---- 72 query I rowsort SELECT ALL 7 * col1 AS col1 FROM tab0 AS cor0 ---- 602 637 679 query I rowsort SELECT + + cor0.col1 - col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8920 SELECT - + 15 * - cor0.col2 + + col2 + - col2 * ( + col2 * ( col0 ) + - col0 * CAST( col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 ---- 1536 864 912 skipif mysql # not compatible query I rowsort label-8920 SELECT - + 15 * - cor0.col2 + + col2 + - col2 * ( + col2 * ( col0 ) + - col0 * CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 ---- 1536 864 912 onlyif mysql # use DIV operator for integer division query I rowsort label-8921 SELECT ALL - col2 DIV - 1 - + col2 FROM tab2 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8921 SELECT ALL - col2 / - 1 - + col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT ( 48 ) FROM tab1 AS cor0 ---- 48 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8923 SELECT - - CAST( + col1 AS SIGNED ) FROM tab0 cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-8923 SELECT - - CAST ( + col1 AS INTEGER ) FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT + 31 * + col0 AS col2 FROM tab2 AS cor0 ---- 217 2418 2449 query I rowsort SELECT DISTINCT + - 96 FROM tab1 cor0 ---- -96 query I rowsort SELECT + tab0.col0 + 45 + - col1 AS col0 FROM tab0 ---- -17 -17 43 query I rowsort SELECT + col0 * + 79 AS col1 FROM tab0 ---- 1896 2765 7031 query I rowsort SELECT col1 - - 16 AS col1 FROM tab0 ---- 102 107 113 query I rowsort SELECT + col1 + - ( - col0 + col1 ) AS col1 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8930 SELECT + - col2 - + CAST( cor0.col1 AS SIGNED ) * - col1 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- 205353 29764 4875 skipif mysql # not compatible query I rowsort label-8930 SELECT + - col2 - + CAST ( cor0.col1 AS INTEGER ) * - col1 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- 205353 29764 4875 query I rowsort SELECT - col0 + col0 * + 85 FROM tab0 AS cor0 ---- 2016 2940 7476 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + - col1 col1 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT + 20 AS col2 FROM tab0 cor0 ---- 20 20 20 query I rowsort SELECT + 51 * - col2 AS col1 FROM tab0 AS cor0 ---- -1683 -4182 -51 query I rowsort SELECT col1 * - 20 + - col2 AS col1 FROM tab1 AS cor0 ---- -257 -356 -574 query I rowsort SELECT - 37 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 395d44ccbce08828bc493e93ec3d9207 query I rowsort SELECT DISTINCT - 88 * 5 * + col1 FROM tab0 AS cor0 ---- -37840 -40040 -42680 query I rowsort SELECT ( col1 ) + + cor0.col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - 97 + col1 AS col2 FROM tab0 AS cor0 ---- -11 -6 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8940 SELECT - col1 * col1 DIV - col1 + - col0 AS col1 FROM tab2 AS cor0 ---- -19 -62 24 skipif mysql # not compatible query I rowsort label-8940 SELECT - col1 * col1 / - col1 + - col0 AS col1 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT ALL - + cor0.col2 * + 94 AS col0 FROM tab0 AS cor0 ---- -3102 -7708 -94 query I rowsort SELECT DISTINCT + 52 + col2 + + col1 AS col1 FROM tab2 AS cor0 ---- 107 110 137 query I rowsort SELECT ALL 49 * - col0 AS col0 FROM tab2 AS cor0 ---- -343 -3822 -3871 query I rowsort SELECT - 17 AS col2 FROM tab0 cor0 ---- -17 -17 -17 query I rowsort SELECT DISTINCT - cor0.col0 * - col0 + col2 * + col2 AS col1 FROM tab2 AS cor0 ---- 6760 7685 778 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8946 SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) col0 FROM tab0 cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8946 SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0 ---- NULL query I rowsort SELECT - col2 * + cor0.col0 - - 74 FROM tab2 cor0 ---- -115 -1954 -2928 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab0 cor2 ---- 3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd query I rowsort SELECT 77 FROM tab1, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to d7b027bca5d37c67e29013904def8125 query I rowsort SELECT + col0 - + col0 * + col0 AS col2 FROM tab0 ---- -1190 -552 -7832 query I rowsort SELECT DISTINCT - - cor0.col0 + + col2 AS col2 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT ALL col1 - - ( + 88 ) AS col2 FROM tab1 AS cor0 ---- 101 114 98 query I rowsort SELECT DISTINCT + col1 * 31 AS col0 FROM tab1 AS cor0 ---- 310 403 806 query I rowsort SELECT ALL + col1 + + col1 FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT - col0 * - col2 * + col2 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT col2 + - ( 58 ) * - col1 FROM tab1 AS cor0 ---- 1562 637 850 query I rowsort SELECT + col1 * + col0 * + col1 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT ALL + - col1 * - 8 FROM tab1 cor0 ---- 104 208 80 query I rowsort SELECT DISTINCT - col2 * ( 78 * + col0 ) FROM tab2 AS cor0 ---- -14742 -158184 -234156 query I rowsort SELECT ALL - ( - tab2.col1 ) AS col2 FROM tab2 ---- 17 31 59 query I rowsort SELECT ALL 72 * + col0 FROM tab1 ---- 216 4608 5760 query I rowsort SELECT ALL col0 - + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - + cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT ALL + + col0 + + col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT + cor0.col2 * 64 FROM tab1 AS cor0 ---- 3456 3648 6144 query I rowsort SELECT DISTINCT + - col1 - cor0.col1 * - 25 FROM tab2 AS cor0 ---- 1416 408 744 query I rowsort SELECT ALL col1 * + ( 43 ) FROM tab0 AS cor0 ---- 3698 3913 4171 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8968 SELECT ALL - col2 * - CAST( 33 AS SIGNED ) - + col1 FROM tab1 ---- 1756 1871 3155 skipif mysql # not compatible query I rowsort label-8968 SELECT ALL - col2 * - CAST ( 33 AS INTEGER ) - + col1 FROM tab1 ---- 1756 1871 3155 onlyif mysql # use DIV operator for integer division query I rowsort label-8969 SELECT DISTINCT tab1.col0 - col2 DIV col1 FROM tab1 ---- 1 59 73 skipif mysql # not compatible query I rowsort label-8969 SELECT DISTINCT tab1.col0 - col2 / col1 FROM tab1 ---- 1 59 73 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 ---- 972 values hashing to 163d7732097d78f1cda7f65c2cea5a08 query I rowsort SELECT col0 * + 88 * + col0 - col0 * - col0 AS col2 FROM tab0 ---- 109025 51264 704969 query I rowsort SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 24 35 89 query I rowsort SELECT ALL - 75 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59 query I rowsort SELECT - col2 * col1 - - col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT DISTINCT - col2 - ( col0 ) FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT - + col1 + col2 AS col2 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT + 66 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1 ---- 27 values hashing to 897b6122ac98340b78905f39d81897fc query I rowsort SELECT col1 * - col2 + + col1 * 21 FROM tab0 ---- -1032 -5551 1940 query I rowsort SELECT DISTINCT - ( col1 * + col1 ) + - col0 + tab1.col0 * + col1 AS col2 FROM tab1 ---- -601 476 791 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8980 SELECT ALL + ( col0 ) + + CAST( 33 AS SIGNED ) FROM tab1 AS cor0 ---- 113 36 97 skipif mysql # not compatible query I rowsort label-8980 SELECT ALL + ( col0 ) + + CAST ( 33 AS INTEGER ) FROM tab1 AS cor0 ---- 113 36 97 query I rowsort SELECT - 98 FROM tab0, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 55 + + 77 col0 FROM tab1 AS cor0 ---- 22 22 22 query I rowsort SELECT - + ( + 91 ) FROM tab2 AS cor0 ---- -91 -91 -91 onlyif mysql # use DIV operator for integer division query I rowsort label-8984 SELECT - cor0.col2 DIV - cor0.col1 + + col0 * - col1 FROM tab2 cor0 ---- -1341 -217 -4602 skipif mysql # not compatible query I rowsort label-8984 SELECT - cor0.col2 / - cor0.col1 + + col0 * - col1 FROM tab2 cor0 ---- -1341 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + + ( + col2 ) col1 FROM tab2 ---- 104 117 34 query I rowsort SELECT DISTINCT - col2 * col1 + - col1 * col2 FROM tab0 ---- -14924 -194 -5676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8987 SELECT col2 * CAST( - 63 AS SIGNED ) * tab2.col0 col1 FROM tab2 ---- -11907 -127764 -189126 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8987 SELECT col2 * CAST ( - 63 AS INTEGER ) * tab2.col0 col1 FROM tab2 ---- -11907 -127764 -189126 query I rowsort SELECT + + 60 + col0 AS col1 FROM tab1 AS cor0 ---- 124 140 63 query I rowsort SELECT - tab2.col0 * col0 * + 42 FROM tab2 ---- -2058 -255528 -262122 query I rowsort SELECT ALL + ( col2 ) * col2 AS col1 FROM tab2 ---- 1444 676 729 query I rowsort SELECT DISTINCT + 34 * 59 AS col0 FROM tab0 AS cor0 ---- 2006 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 18 * - cor0.col2 + cor0.col2 * col0 * col0 col0 FROM tab0 AS cor0 ---- 1207 18414 648046 onlyif mysql # use DIV operator for integer division query I rowsort label-8993 SELECT - col2 DIV - 54 + - col1 * col2 col0 FROM tab0 AS cor0 ---- -2838 -7461 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8993 SELECT - col2 / - 54 + - col1 * col2 col0 FROM tab0 AS cor0 ---- -2838 -7461 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-8994 SELECT ALL - - 85 DIV + col0 + + cor0.col1 FROM tab2 AS cor0 ---- 18 43 60 skipif mysql # not compatible query I rowsort label-8994 SELECT ALL - - 85 / + col0 + + cor0.col1 FROM tab2 AS cor0 ---- 18 43 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + + col0 * + cor0.col2 * 33 col2 FROM tab0 AS cor0 ---- 1120 240745 26112 query I rowsort SELECT DISTINCT + - 12 - + 18 FROM tab0 AS cor0 ---- -30 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8997 SELECT + ( col1 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8997 SELECT + ( col1 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8998 SELECT ALL 37 DIV cor0.col2 FROM tab0, tab1 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-8998 SELECT ALL 37 / cor0.col2 FROM tab0, tab1 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT + col1 * 74 FROM tab2 ---- 1258 2294 4366 query I rowsort SELECT DISTINCT + cor0.col0 + 5 * + col2 AS col1 FROM tab2 AS cor0 ---- 142 208 269 query I rowsort SELECT ALL tab2.col1 * - 45 * tab2.col2 FROM tab2 ---- -29070 -37665 -69030 onlyif mysql # use DIV operator for integer division query I rowsort label-9002 SELECT + + col1 DIV + 64 + - col1 * cor0.col1 FROM tab1 AS cor0 ---- -100 -169 -676 skipif mysql # not compatible query I rowsort label-9002 SELECT + + col1 / + 64 + - col1 * cor0.col1 FROM tab1 AS cor0 ---- -100 -169 -676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9003 SELECT ALL - + col1 * CAST( NULL AS SIGNED ) + col1 - + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9003 SELECT ALL - + col1 * CAST ( NULL AS INTEGER ) + col1 - + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * col1 + - col1 col0 FROM tab1 AS cor0 ---- 156 650 90 query I rowsort SELECT col0 * - 47 FROM tab1 ---- -141 -3008 -3760 query I rowsort SELECT DISTINCT 98 * + cor0.col1 AS col0 FROM tab0, tab1 cor0 ---- 1274 2548 980 onlyif mysql # use DIV operator for integer division query I rowsort label-9007 SELECT - col2 DIV ( + 20 ) + col2 + col1 FROM tab1 AS cor0 ---- 105 65 78 skipif mysql # not compatible query I rowsort label-9007 SELECT - col2 / ( + 20 ) + col2 + col1 FROM tab1 AS cor0 ---- 105 65 78 query I rowsort SELECT - col1 * 8 FROM tab2 AS cor0 ---- -136 -248 -472 query I rowsort SELECT + cor0.col0 * + col2 + + col1 AS col2 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT + - col2 + + ( + 18 ) FROM tab1 AS cor0 ---- -36 -39 -78 query I rowsort SELECT - cor0.col0 + + col2 + col0 * + col0 AS col1 FROM tab2 cor0 ---- 6032 6200 69 query I rowsort SELECT - 25 + col0 FROM tab0 ---- -1 10 64 query I rowsort SELECT - col2 * - col0 + + col2 - 27 AS col0 FROM tab2 ---- 189 2027 3013 query I rowsort SELECT - col1 + + 32 FROM tab0 AS cor0 ---- -54 -59 -65 query I rowsort SELECT ALL - - 66 + col2 AS col0 FROM tab2 AS cor0 ---- 104 92 93 query I rowsort SELECT - ( - 29 ) * - cor0.col2 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 181a5fa3e5c3d15604b1c4c309d11d19 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9017 SELECT - CAST( NULL AS SIGNED ) - + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9017 SELECT - CAST ( NULL AS INTEGER ) - + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 42 * col1 - - col2 AS col1 FROM tab0 AS cor0 ---- 3645 3904 4075 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9019 SELECT + - col1 * CAST( - col0 AS SIGNED ) FROM tab1 cor0 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-9019 SELECT + - col1 * CAST ( - col0 AS INTEGER ) FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT col0 + col0 * ( col1 ) AS col1 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT - col0 + + 78 * col2 FROM tab2 AS cor0 ---- 1950 2099 2885 query I rowsort SELECT DISTINCT + 86 * + col0 FROM tab0 ---- 2064 3010 7654 query I rowsort SELECT ALL - 31 * + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -1085 -2759 -744 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 + col2 col0 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9025 SELECT 69 * + col1 - col2 / - CAST( NULL AS DECIMAL ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9025 SELECT 69 * + col1 - col2 / - CAST ( NULL AS REAL ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT col2 * col0 + + col2 + - ( - col2 ) * 0 FROM tab0 ---- 36 7380 825 query I rowsort SELECT - 68 + col1 AS col0 FROM tab0 ---- 18 23 29 query I rowsort SELECT DISTINCT 69 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 69 query I rowsort SELECT col2 + tab0.col2 + + ( 80 + - col2 ) FROM tab0 ---- 113 162 81 query I rowsort SELECT ALL tab0.col0 - col2 AS col2 FROM tab0 ---- -9 34 7 query I rowsort SELECT - - cor0.col2 + col2 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- 36 7380 825 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 99 + - col0 col1 FROM tab2 AS cor0 ---- 20 21 92 query I rowsort SELECT DISTINCT - 26 - col2 AS col2 FROM tab1 AS cor0 ---- -122 -80 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT + col1 * col0 * CAST ( - col2 AS REAL ) col0 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT + + col0 * col1 * + col2 + + col1 FROM tab2 AS cor0 ---- 119711 51051 5890 onlyif mysql # use DIV operator for integer division query I rowsort label-9036 SELECT DISTINCT col0 DIV - 32 col0 FROM tab0 ---- -1 -2 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9036 SELECT DISTINCT col0 / - 32 col0 FROM tab0 ---- -1 -2 0 query I rowsort SELECT ALL col2 * 43 AS col1 FROM tab0 ---- 1419 3526 43 query I rowsort SELECT DISTINCT - cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- -24 -35 -89 query I rowsort SELECT DISTINCT ( + ( - cor0.col1 ) ) FROM tab0, tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ALL - tab2.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT - col2 * col0 + tab2.col0 * col0 * ( col1 * + tab2.col0 ) FROM tab2 ---- 10444 27996540 8378661 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9042 SELECT + col2 + CAST( cor0.col0 AS SIGNED ) * col1 + col2 FROM tab1 AS cor0 ---- 1232 186 754 skipif mysql # not compatible query I rowsort label-9042 SELECT + col2 + CAST ( cor0.col0 AS INTEGER ) * col1 + col2 FROM tab1 AS cor0 ---- 1232 186 754 query I rowsort SELECT + 54 * + col0 AS col0 FROM tab1 AS cor0 ---- 162 3456 4320 query I rowsort SELECT 13 + tab1.col0 FROM tab1 ---- 16 77 93 query I rowsort SELECT 41 AS col2 FROM tab1, tab2 cor0 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e query I rowsort SELECT ALL + ( - col2 ) * - col0 + ( col0 ) FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT + - ( - col0 ) * - col1 AS col2 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9048 SELECT ALL - + CAST( NULL AS SIGNED ) * + 85 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9048 SELECT ALL - + CAST ( NULL AS INTEGER ) * + 85 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col2 - 70 FROM tab1 AS cor0 ---- -124 -127 -166 query I rowsort SELECT ALL ( 61 ) FROM tab2 AS cor0 ---- 61 61 61 query I rowsort SELECT DISTINCT - col0 * - 24 FROM tab2 AS cor0 ---- 168 1872 1896 onlyif mysql # use DIV operator for integer division query I rowsort label-9052 SELECT DISTINCT + - ( 71 ) DIV + cor0.col0 col2 FROM tab1 cor0 ---- -1 -23 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9052 SELECT DISTINCT + - ( 71 ) / + cor0.col0 col2 FROM tab1 cor0 ---- -1 -23 0 query I rowsort SELECT - col2 * + col2 AS col1 FROM tab2 cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT 39 + + cor0.col2 AS col0 FROM tab2, tab1 AS cor0 ---- 135 93 96 onlyif mysql # use DIV operator for integer division query I rowsort label-9055 SELECT - col2 DIV - col0 FROM tab2 cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-9055 SELECT - col2 / - col0 FROM tab2 cor0 ---- 0 0 3 query I rowsort SELECT DISTINCT + - ( col0 ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9057 SELECT ALL + CAST( - col1 AS SIGNED ) + + col2 FROM tab1 AS cor0 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-9057 SELECT ALL + CAST ( - col1 AS INTEGER ) + + col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT 12 * - cor0.col1 FROM tab1 cor0 ---- -120 -156 -312 query I rowsort SELECT ALL + ( + 62 ) + col2 FROM tab0 cor0 ---- 144 63 95 onlyif mysql # use DIV operator for integer division query I rowsort label-9060 SELECT - ( col2 ) DIV col1 AS col2 FROM tab2 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-9060 SELECT - ( col2 ) / col1 AS col2 FROM tab2 AS cor0 ---- -2 0 0 query I rowsort SELECT DISTINCT col1 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT - + 15 * col0 FROM tab2 AS cor0 ---- -105 -1170 -1185 query I rowsort SELECT DISTINCT + + cor0.col0 * col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL col2 + col2 * ( 69 ) AS col2 FROM tab1 AS cor0 ---- 3780 3990 6720 onlyif mysql # use DIV operator for integer division query I rowsort label-9065 SELECT + - col0 DIV + col0 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-9065 SELECT + - col0 / + col0 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-9066 SELECT - col1 DIV cor0.col0 col2 FROM tab0 AS cor0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9066 SELECT - col1 / cor0.col0 col2 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT + col0 + col1 * col1 * 16 AS col2 FROM tab2 AS cor0 ---- 15383 4703 55774 query I rowsort SELECT ALL - col2 * + 10 - col0 FROM tab1 AS cor0 ---- -1040 -543 -634 query I rowsort SELECT ALL + - cor0.col0 * + ( - cor0.col1 ) * + col0 + 57 AS col0 FROM tab0 AS cor0 ---- 118882 49593 720868 query I rowsort SELECT DISTINCT - col1 - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT + col1 * col1 + 35 FROM tab1 AS cor0 ---- 135 204 711 onlyif mysql # use DIV operator for integer division query I rowsort label-9072 SELECT ALL + col2 DIV - ( + col2 ) + cor0.col1 * + 37 - - ( - col0 ) * + col1 AS col1 FROM tab1 AS cor0 ---- -271 -560 883 skipif mysql # not compatible query I rowsort label-9072 SELECT ALL + col2 / - ( + col2 ) + cor0.col1 * + 37 - - ( - col0 ) * + col1 AS col1 FROM tab1 AS cor0 ---- -271 -560 883 query I rowsort SELECT col2 * - 30 + col0 FROM tab0 AS cor0 ---- -2371 -966 5 query I rowsort SELECT DISTINCT - col2 * 84 + col0 AS col1 FROM tab0 cor0 ---- -2748 -49 -6799 query I rowsort SELECT ALL - + col1 + 46 + - col1 * - col1 AS col1 FROM tab0 AS cor0 ---- 7356 8236 9358 onlyif mysql # use DIV operator for integer division query I rowsort label-9076 SELECT ALL + - col1 DIV col1 + + cor0.col1 FROM tab2 AS cor0 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-9076 SELECT ALL + - col1 / col1 + + cor0.col1 FROM tab2 AS cor0 ---- 16 30 58 query I rowsort SELECT DISTINCT col0 * + 41 AS col1 FROM tab2 AS cor0 ---- 287 3198 3239 query I rowsort SELECT ALL col2 + + col1 + - col1 FROM tab2 AS cor0 ---- 26 27 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9079 SELECT ALL col2 * + CAST( 43 AS SIGNED ) + - col2 * 13 + col0 FROM tab0 AS cor0 ---- 1014 2549 65 skipif mysql # not compatible query I rowsort label-9079 SELECT ALL col2 * + CAST ( 43 AS INTEGER ) + - col2 * 13 + col0 FROM tab0 AS cor0 ---- 1014 2549 65 query I rowsort SELECT ALL - col1 * + ( + 78 ) FROM tab2 AS cor0 ---- -1326 -2418 -4602 query I rowsort SELECT + col0 * + 33 AS col1 FROM tab0 AS cor0 ---- 1155 2937 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col0 + - 41 col1 FROM tab1 AS cor0 ---- -105 -121 -44 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9083 SELECT - col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9083 SELECT - col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 40 FROM tab2, tab0 cor0 ---- -40 query I rowsort SELECT - + col0 * col2 - cor0.col1 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT DISTINCT + + 15 - col1 * - col1 AS col2 FROM tab1 AS cor0 ---- 115 184 691 query I rowsort SELECT DISTINCT - col2 * + col2 - col1 FROM tab2 AS cor0 ---- -1461 -735 -760 onlyif mysql # use DIV operator for integer division query I rowsort label-9088 SELECT ALL cor0.col1 DIV - col1 + col1 FROM tab2 AS cor0 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-9088 SELECT ALL cor0.col1 / - col1 + col1 FROM tab2 AS cor0 ---- 16 30 58 onlyif mysql # use DIV operator for integer division query I rowsort label-9089 SELECT ALL cor0.col1 DIV - col0 + - col1 FROM tab2 AS cor0 ---- -17 -35 -59 skipif mysql # not compatible query I rowsort label-9089 SELECT ALL cor0.col1 / - col0 + - col1 FROM tab2 AS cor0 ---- -17 -35 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-9090 SELECT - ( + col1 ) * - col1 + + cor0.col2 DIV col1 col1 FROM tab0 AS cor0 ---- 7396 8281 9409 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9090 SELECT - ( + col1 ) * - col1 + + cor0.col2 / col1 col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT DISTINCT - col2 * col2 + - col1 FROM tab2 cor0 ---- -1461 -735 -760 query I rowsort SELECT ALL - 2 * col1 + - col2 FROM tab0 cor0 ---- -195 -205 -264 query I rowsort SELECT ALL - - col0 * - col2 + - col2 + col2 * - col1 FROM tab2 AS cor0 ---- -1053 -3588 -3686 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 - - col1 col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9095 SELECT ALL + col0 DIV tab0.col0 - + col0 AS col0 FROM tab0 ---- -23 -34 -88 skipif mysql # not compatible query I rowsort label-9095 SELECT ALL + col0 / tab0.col0 - + col0 AS col0 FROM tab0 ---- -23 -34 -88 query I rowsort SELECT + cor0.col0 - + col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + + col2 - cor0.col2 AS col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT + - cor0.col0 * cor0.col1 - + col1 FROM tab2 cor0 ---- -1360 -248 -4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 93 * tab0.col2 + - col2 col2 FROM tab0 ---- 3036 7544 92 query I rowsort SELECT 86 * col1 * - col2 FROM tab2 ---- -131924 -55556 -71982 query I rowsort SELECT DISTINCT - 79 + col0 FROM tab2 ---- -1 -72 0 query IIIIII rowsort SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NULL = NULL ---- query I rowsort SELECT cor0.col0 + col1 * col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT - - 49 FROM tab1 cor0 ---- 49 query I rowsort SELECT - 34 * - ( + col2 ) FROM tab1 AS cor0 ---- 1836 1938 3264 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9106 SELECT ALL - CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9106 SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 97 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c query I rowsort SELECT 72 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49 onlyif mysql # use DIV operator for integer division query I rowsort label-9109 SELECT col0 DIV col1 + + col0 DIV + col1 col2 FROM tab1 ---- 0 12 12 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9109 SELECT col0 / col1 + + col0 / + col1 col2 FROM tab1 ---- 0 12 12 onlyif mysql # use DIV operator for integer division query I rowsort label-9110 SELECT ALL col0 DIV + col1 + col0 col2 FROM tab2 ---- 7 79 83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9110 SELECT ALL col0 / + col1 + col0 col2 FROM tab2 ---- 7 79 83 onlyif mysql # use DIV operator for integer division query I rowsort label-9111 SELECT - tab0.col1 DIV col1 AS col1 FROM tab0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-9111 SELECT - tab0.col1 / col1 AS col1 FROM tab0 ---- -1 -1 -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9112 SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 + col1 AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-9112 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 + col1 AS col2 FROM tab1 ---- NULL query I rowsort SELECT - 26 + col0 FROM tab2 ---- -19 52 53 query I rowsort SELECT ( + col1 ) + col2 * tab1.col2 * + col1 AS col1 FROM tab1 ---- 119821 32500 75842 query I rowsort SELECT ALL - ( + cor0.col1 ) AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 73 col0 FROM tab0 ---- 73 73 73 query I rowsort SELECT ALL - ( + 71 ) FROM tab2 ---- -71 -71 -71 query I rowsort SELECT DISTINCT - - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT col2 + col0 / - col2 FROM tab1 WHERE ( col1 * col1 ) IN ( + tab1.col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9120 SELECT + col0 + col0 DIV tab1.col1 AS col1 FROM tab1 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-9120 SELECT + col0 + col0 / tab1.col1 AS col1 FROM tab1 ---- 3 70 86 onlyif mysql # use DIV operator for integer division query I rowsort label-9121 SELECT col0 DIV col2 - - col0 FROM tab0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-9121 SELECT col0 / col2 - - col0 FROM tab0 ---- 24 70 90 query I rowsort SELECT ALL col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( col1 ) AND - col2 * col2 + + col1 / col0 ---- query I rowsort SELECT col1 * col2 * col0 AS col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT col0 + + col0 + - col2 AS col1 FROM tab1 AS cor0 ---- -48 64 71 query I rowsort SELECT - col1 + col2 * + cor0.col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT DISTINCT + + col0 + + cor0.col1 + col2 * - col0 FROM tab1 AS cor0 ---- -133 -3574 -7587 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - cor0.col0 + col1 <> NULL OR NOT - col1 IN ( col0 * col2 * - col0 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT + + col0 + col2 * - col1 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT + cor0.col0 + - col1 AS col1 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT col1 * col2 + - col0 * col1 * + col2 + col2 AS col2 FROM tab1 AS cor0 ---- -2754 -35853 -98496 query I rowsort SELECT - 52 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 9500afe5646d620d5e8943351a29d082 query I rowsort SELECT - cor0.col2 + + 43 AS col0 FROM tab0 AS cor0 ---- -39 10 42 query I rowsort SELECT ALL - col1 + col2 * - cor0.col0 FROM tab0 AS cor0 ---- -132 -7389 -878 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 * + ( + col1 ) col1 FROM tab2 AS cor0 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 46 col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d query I rowsort SELECT + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT ALL + col2 + - ( ( col2 ) ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col1 * + ( col1 ) + + col0 FROM tab2 AS cor0 ---- 3559 368 968 query I rowsort SELECT DISTINCT - col0 + - col0 * + col1 + col2 FROM tab0 AS cor0 ---- -2055 -3429 -8106 query I rowsort SELECT ALL + tab0.col1 * - col1 AS col0 FROM tab0 ---- -7396 -8281 -9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9141 SELECT ALL + + 50 * + col0 * - col1 + - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 ---- -10823 -230074 -67112 skipif mysql # not compatible query I rowsort label-9141 SELECT ALL + + 50 * + col0 * - col1 + - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 ---- -10823 -230074 -67112 onlyif mysql # use DIV operator for integer division query I rowsort label-9142 SELECT DISTINCT cor0.col1 DIV ( - cor0.col1 ) FROM tab0 cor0 ---- -1 skipif mysql # not compatible query I rowsort label-9142 SELECT DISTINCT cor0.col1 / ( - cor0.col1 ) FROM tab0 cor0 ---- -1 query I rowsort SELECT ALL - cor0.col0 * 18 FROM tab0 AS cor0 ---- -1602 -432 -630 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9144 SELECT + CAST( + cor0.col2 AS SIGNED ) col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9144 SELECT + CAST ( + cor0.col2 AS INTEGER ) col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor1.col2 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT ALL + 27 * col0 FROM tab2 AS cor0 ---- 189 2106 2133 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 33 * + col0 col1 FROM tab1 AS cor0 ---- 2112 2640 99 query I rowsort SELECT DISTINCT - - cor0.col2 * + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT ALL 18 * col0 FROM tab0 cor0 ---- 1602 432 630 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9150 SELECT - cor0.col1 + col0 * CAST( 85 * - col2 AS SIGNED ) FROM tab2 AS cor0 ---- -16096 -172439 -255187 skipif mysql # not compatible query I rowsort label-9150 SELECT - cor0.col1 + col0 * CAST ( 85 * - col2 AS INTEGER ) FROM tab2 AS cor0 ---- -16096 -172439 -255187 query I rowsort SELECT DISTINCT + + 29 FROM tab2 AS cor0 ---- 29 query I rowsort SELECT ALL + - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT 90 - col1 * col1 FROM tab1 ---- -10 -586 -79 query I rowsort SELECT 28 + + col2 + col1 FROM tab0 ---- 126 147 201 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + cor0.col0 * 60 * - col0 col0 FROM tab2 cor0 ---- -2933 -364962 -374381 query I rowsort SELECT - + cor0.col0 * - col0 + - col2 FROM tab2 AS cor0 ---- 22 6058 6203 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9157 SELECT + - 7 * col1 + CAST( col0 * - col2 + + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -341 -3654 -7691 skipif mysql # not compatible query I rowsort label-9157 SELECT + - 7 * col1 + CAST ( col0 * - col2 + + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -341 -3654 -7691 onlyif mysql # use DIV operator for integer division query I rowsort label-9158 SELECT ALL + col2 DIV - col1 + 28 * col1 + tab0.col1 FROM tab0 ---- 2494 2639 2813 skipif mysql # not compatible query I rowsort label-9158 SELECT ALL + col2 / - col1 + 28 * col1 + tab0.col1 FROM tab0 ---- 2494 2639 2813 query I rowsort SELECT + ( - col0 ) + col0 + - tab0.col0 AS col2 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT DISTINCT + 2 * - tab0.col2 + + 8 AS col0 FROM tab0 ---- -156 -58 6 query I rowsort SELECT + cor0.col2 AS col2 FROM tab1, tab2, tab0 AS cor0, tab2 cor1 ---- 81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05 query I rowsort SELECT DISTINCT ( + tab2.col1 ) + tab2.col2 FROM tab2 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-9163 SELECT col0 DIV col2 + - 57 FROM tab0 ---- -22 -56 -57 skipif mysql # not compatible query I rowsort label-9163 SELECT col0 / col2 + - 57 FROM tab0 ---- -22 -56 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + col2 + - 80 col2 FROM tab0 ---- 18 39 93 query I rowsort SELECT DISTINCT - col1 + - col1 * col0 AS col1 FROM tab1 ---- -104 -1053 -650 query I rowsort SELECT - col1 * col0 + col1 FROM tab2 ---- -1326 -186 -4543 onlyif mysql # use DIV operator for integer division query I rowsort label-9167 SELECT DISTINCT + col0 + ( col1 ) DIV + col1 FROM tab1 AS cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-9167 SELECT DISTINCT + col0 + ( col1 ) / + col1 FROM tab1 AS cor0 ---- 4 65 81 onlyif mysql # use DIV operator for integer division query I rowsort label-9168 SELECT DISTINCT col0 DIV + CAST( col0 AS SIGNED ) - col0 FROM tab2 AS cor0 ---- -6 -77 -78 skipif mysql # not compatible query I rowsort label-9168 SELECT DISTINCT col0 / + CAST ( col0 AS INTEGER ) - col0 FROM tab2 AS cor0 ---- -6 -77 -78 query I rowsort SELECT ALL + col0 * col0 + - ( col0 ) FROM tab0 AS cor0 ---- 1190 552 7832 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col1 * - col0 * - 64 col2 FROM tab1 AS cor0 ---- 40960 4992 66560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * 35 col0 FROM tab0 AS cor0 ---- 1225 3115 840 onlyif mysql # use DIV operator for integer division query I rowsort label-9172 SELECT DISTINCT + cor0.col0 DIV - col1 AS col1 FROM tab2 AS cor0 ---- -1 -4 0 skipif mysql # not compatible query I rowsort label-9172 SELECT DISTINCT + cor0.col0 / - col1 AS col1 FROM tab2 AS cor0 ---- -1 -4 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9173 SELECT - - 96 DIV - cor0.col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-9173 SELECT - - 96 / - cor0.col2 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL - 63 + 59 FROM tab1 ---- -4 -4 -4 query I rowsort SELECT ALL + ( + 32 ) * col0 AS col2 FROM tab0 AS cor0 ---- 1120 2848 768 query I rowsort SELECT ALL - col1 * 51 + col2 * - 27 FROM tab2 AS cor0 ---- -1893 -2310 -3711 onlyif mysql # use DIV operator for integer division query I rowsort label-9177 SELECT - col1 * col0 + col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort label-9177 SELECT - col1 * col0 + col2 / cor0.col1 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 + col2 col2 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT ALL - ( col1 ) * + col2 + 62 FROM tab0 AS cor0 ---- -2776 -35 -7400 query I rowsort SELECT DISTINCT + 64 + col0 FROM tab0 AS cor0 ---- 153 88 99 query I rowsort SELECT ALL + 9 * - 60 + col2 FROM tab1 AS cor0 ---- -444 -483 -486 onlyif mysql # use DIV operator for integer division query I rowsort label-9182 SELECT + col2 - + col2 DIV col2 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-9182 SELECT + col2 - + col2 / col2 FROM tab1 AS cor0 ---- 53 56 95 query I rowsort SELECT DISTINCT + 74 * 97 + + col1 * col2 AS col1 FROM tab0 AS cor0 ---- 10016 14640 7275 query I rowsort SELECT DISTINCT col1 * col1 + + col1 AS col1 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT - col0 + col0 - + col2 AS col1 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT ( - ( col0 ) ) FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT ALL - - col0 + - col0 AS col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9188 SELECT DISTINCT - ( col1 ) + + col2 DIV ( - cor0.col0 ) FROM tab0 cor0 ---- -87 -91 -97 skipif mysql # not compatible query I rowsort label-9188 SELECT DISTINCT - ( col1 ) + + col2 / ( - cor0.col0 ) FROM tab0 cor0 ---- -87 -91 -97 query I rowsort SELECT + - ( + col1 ) + col0 * + col1 * col0 FROM tab1 AS cor0 ---- 208 40950 83187 query I rowsort SELECT + 71 * + col1 - + 4 FROM tab0 AS cor0 ---- 6102 6457 6883 query I rowsort SELECT + col2 * col1 * 70 AS col1 FROM tab1 AS cor0 ---- 39900 87360 98280 query I rowsort SELECT DISTINCT - cor0.col0 * - col0 * - col1 AS col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT - ( col1 ) + + 44 * - col1 AS col0 FROM tab1 AS cor0 ---- -1170 -450 -585 query I rowsort SELECT 96 * - 35 FROM tab0, tab2 AS cor0 ---- 9 values hashing to f4344cd805c0a14c86c382cebd0ae345 query I rowsort SELECT DISTINCT + ( col1 ) + - 93 AS col0 FROM tab2 AS cor0 ---- -34 -62 -76 query I rowsort SELECT col0 * - ( col1 ) * col2 - + ( + col1 ) AS col1 FROM tab1 ---- -36490 -4238 -99853 query I rowsort SELECT ALL - tab0.col2 * col2 - - col0 AS col2 FROM tab0 ---- -1065 -6635 34 query I rowsort SELECT - col0 - + col1 AS col2 FROM tab0 cor0 ---- -110 -132 -180 onlyif mysql # use DIV operator for integer division query I rowsort label-9199 SELECT ALL 40 DIV + col0 FROM tab0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-9199 SELECT ALL 40 / + col0 FROM tab0 ---- 0 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + tab1.col1 col1 FROM tab1, tab2 AS cor0, tab2 cor1 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + ( col0 ) * - col0 col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT - ( + 50 ) * - col2 AS col1 FROM tab2 AS cor0 ---- 1300 1350 1900 query I rowsort SELECT + 55 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to c59acfbb70996777fa5053195838c3d6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9204 SELECT - + CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9204 SELECT - + CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - 94 AS col0 FROM tab2 AS cor0 ---- -94 query I rowsort SELECT DISTINCT 68 - - 4 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 72 query I rowsort SELECT + col0 - - col2 AS col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT + - col0 + col0 * + col2 AS col0 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT + cor0.col1 + col2 + col1 * 18 AS col2 FROM tab1 cor0 ---- 247 343 548 query I rowsort SELECT - - cor0.col2 + - col2 * ( - col2 ) AS col1 FROM tab2 AS cor0 ---- 1482 702 756 onlyif mysql # use DIV operator for integer division query I rowsort label-9211 SELECT ALL tab2.col1 DIV - col0 AS col1 FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-9211 SELECT ALL tab2.col1 / - col0 AS col1 FROM tab2 ---- -4 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9212 SELECT + col0 + - col0 * CAST( + col2 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0 ---- 1260 19032 649611 skipif mysql # not compatible query I rowsort label-9212 SELECT + col0 + - col0 * CAST ( + col2 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0 ---- 1260 19032 649611 query I rowsort SELECT ALL col2 + - 74 AS col0 FROM tab1 AS cor0 ---- -17 -20 22 query I rowsort SELECT col2 * + col1 + + col0 FROM tab0 cor0 ---- 132 2862 7551 query I rowsort SELECT DISTINCT cor0.col0 + + col2 * - col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT - - col0 * ( - cor0.col0 ) * - col0 + + cor0.col2 FROM tab0 AS cor0 ---- 13857 42876 705051 query I rowsort SELECT - - col1 * - col0 + + ( col0 + - col0 ) FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + col1 * cor0.col1 AS col2 FROM tab2 cor0 ---- 289 3481 961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9219 SELECT + + col1 * - CAST( + ( - col2 ) AS SIGNED ) + - cor0.col1 FROM tab1 AS cor0 ---- 1235 1378 560 skipif mysql # not compatible query I rowsort label-9219 SELECT + + col1 * - CAST ( + ( - col2 ) AS INTEGER ) + - cor0.col1 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT + col0 * - tab2.col2 * 48 FROM tab2 ---- -144096 -9072 -97344 query I rowsort SELECT ALL - + cor1.col2 - 9 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1 ---- 27 values hashing to cf38e11f27d1bbc817ba63b7217904a9 query I rowsort SELECT ALL - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT - - col0 * cor0.col1 FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9224 SELECT - CAST( 67 AS SIGNED ) FROM tab1 cor0 ---- -67 -67 -67 skipif mysql # not compatible query I rowsort label-9224 SELECT - CAST ( 67 AS INTEGER ) FROM tab1 cor0 ---- -67 -67 -67 query I rowsort SELECT + - col2 + + 96 AS col2 FROM tab1 AS cor0 ---- 0 39 42 query I rowsort SELECT + 67 + + col2 AS col2 FROM tab0 AS cor0 ---- 100 149 68 query I rowsort SELECT + ( + 68 ) AS col1 FROM tab0 AS cor0 ---- 68 68 68 query I rowsort SELECT DISTINCT + - col2 * 26 FROM tab2 AS cor0 ---- -676 -702 -988 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9229 SELECT CAST( NULL AS SIGNED ) * 46 FROM tab2, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-9229 SELECT CAST ( NULL AS INTEGER ) * 46 FROM tab2, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT 54 FROM tab1, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a query I rowsort SELECT ALL - 15 + col0 FROM tab0 AS cor0 ---- 20 74 9 onlyif mysql # use DIV operator for integer division query I rowsort label-9232 SELECT ALL + + col0 DIV - col1 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9232 SELECT ALL + + col0 / - col1 FROM tab0 cor0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2 ---- 3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237 query I rowsort SELECT + cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT DISTINCT + 56 * col0 + - 9 + - col0 * col2 AS col1 FROM tab0 AS cor0 ---- -2323 1916 543 query I rowsort SELECT + + 11 + - col0 FROM tab2 AS cor0 ---- -67 -68 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + cor0.col0 col1 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT ALL + tab0.col1 * + tab0.col1 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea onlyif mysql # use DIV operator for integer division query I rowsort label-9239 SELECT ALL - 52 DIV + col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9239 SELECT ALL - 52 / + col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT - 11 FROM tab1, tab1 AS cor0 ---- -11 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 24 col0 FROM tab2, tab1 AS cor0 ---- 24 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9242 SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-9242 SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT 43 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 43 query I rowsort SELECT col2 * 50 * + cor0.col1 FROM tab0 AS cor0 ---- 141900 373100 4850 query I rowsort SELECT - - col2 * 81 FROM tab1 AS cor0 ---- 4374 4617 7776 query I rowsort SELECT ALL col2 + - col0 * - col2 AS col0 FROM tab0 ---- 36 7380 825 query I rowsort SELECT DISTINCT - - 71 * col1 FROM tab1 AS cor0 ---- 1846 710 923 query I rowsort SELECT col2 * col2 + - ( + cor0.col0 ) * + cor0.col2 + + col2 FROM tab2 AS cor0 ---- -1326 -1520 567 query I rowsort SELECT DISTINCT + ( cor0.col1 ) AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - col1 + + col1 * + col0 * - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -13533 -2054 -6410 query I rowsort SELECT - col1 + col2 + col2 * - col2 FROM tab2 AS cor0 ---- -1423 -709 -733 query I rowsort SELECT col0 * + col1 + + cor0.col2 * + col1 * col0 FROM tab2 AS cor0 ---- 124254 52377 6076 query I rowsort SELECT DISTINCT - + col0 + ( 17 ) FROM tab2 cor0 ---- -61 -62 10 onlyif mysql # use DIV operator for integer division query I rowsort label-9254 SELECT - col2 DIV - 89 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9254 SELECT - col2 / - 89 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL - 83 * col1 + col2 + col1 * + col0 AS col2 FROM tab2 ---- -2329 -269 -30 query I rowsort SELECT + col2 * - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0 ---- 114076 5103 52728 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col0 ) + col0 * col0 col0 FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT DISTINCT + + ( col2 ) + cor0.col2 * - col2 * - cor0.col0 FROM tab2 AS cor0 ---- 114114 5130 52754 skipif mysql # not compatible query I rowsort SELECT CAST ( - col1 AS REAL ) * col0 + - col1 AS col1 FROM tab1 ---- -104 -1053 -650 query I rowsort SELECT DISTINCT - cor0.col0 + 4 * 80 FROM tab2, tab2 AS cor0 ---- 241 242 313 query I rowsort SELECT ALL - col1 + + col2 * + col0 AS col0 FROM tab2 AS cor0 ---- 158 1969 2985 onlyif mysql # use DIV operator for integer division query I rowsort label-9262 SELECT + ( 71 ) * - cor0.col1 - cor0.col0 * 70 DIV col1 FROM tab0 AS cor0 ---- -6125 -6529 -6912 skipif mysql # not compatible query I rowsort label-9262 SELECT + ( 71 ) * - cor0.col1 - cor0.col0 * 70 / col1 FROM tab0 AS cor0 ---- -6125 -6529 -6912 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-9264 SELECT DISTINCT - - col2 * - 83 + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9264 SELECT DISTINCT - - col2 * - 83 + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9265 SELECT DISTINCT col0 + - col1 DIV col2 AS col0 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-9265 SELECT DISTINCT col0 + - col1 / col2 AS col0 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9266 SELECT + - col1 + col1 DIV - col0 - + 7 AS col0 FROM tab0 AS cor0 ---- -106 -96 -99 skipif mysql # not compatible query I rowsort label-9266 SELECT + - col1 + col1 / - col0 - + 7 AS col0 FROM tab0 AS cor0 ---- -106 -96 -99 query I rowsort SELECT col1 * - col2 + 32 * + col0 FROM tab2 AS cor0 ---- -613 1882 962 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9268 SELECT ALL + 19 * + col2 + + CAST( col1 * col1 AS SIGNED ) FROM tab1 AS cor0 ---- 1183 1702 1993 skipif mysql # not compatible query I rowsort label-9268 SELECT ALL + 19 * + col2 + + CAST ( col1 * col1 AS INTEGER ) FROM tab1 AS cor0 ---- 1183 1702 1993 query I rowsort SELECT DISTINCT - - col1 * - cor0.col0 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL col1 * + col2 + - col2 * col1 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + cor0.col2 * col1 * - 61 AS col2 FROM tab2 AS cor0 ---- -39406 -51057 -93574 query I rowsort SELECT ALL - + 18 * + col0 FROM tab2 cor0 ---- -126 -1404 -1422 query I rowsort SELECT col0 * - col0 * col2 - + 48 FROM tab1 ---- -233520 -534 -614448 query I rowsort SELECT ALL 12 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 query I rowsort SELECT + - cor0.col1 - + col1 AS col0 FROM tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT ALL cor0.col1 * col0 - + 42 AS col1 FROM tab2 AS cor0 ---- 1301 175 4560 query I rowsort SELECT DISTINCT + + col0 + - col0 AS col1 FROM tab1 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9278 SELECT ALL - cor0.col2 DIV + col0 - col0 FROM tab1 AS cor0 ---- -21 -64 -81 skipif mysql # not compatible query I rowsort label-9278 SELECT ALL - cor0.col2 / + col0 - col0 FROM tab1 AS cor0 ---- -21 -64 -81 query I rowsort SELECT 81 * - col1 + ( + col0 ) * + col0 FROM tab0 AS cor0 ---- -6390 -6632 550 query I rowsort SELECT - col1 * 8 + tab1.col0 FROM tab1 ---- -16 -205 -24 query I rowsort SELECT DISTINCT 60 AS col1 FROM tab2, tab2 AS cor0 ---- 60 query I rowsort SELECT - col0 + 59 FROM tab0 ---- -30 24 35 query I rowsort SELECT ALL col2 + - col0 * + col2 AS col2 FROM tab0 ---- -34 -7216 -759 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9284 SELECT DISTINCT - CAST( + 86 AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- -86 skipif mysql # not compatible query I rowsort label-9284 SELECT DISTINCT - CAST ( + 86 AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- -86 query I rowsort SELECT 91 + - col0 FROM tab1 ---- 11 27 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9286 SELECT DISTINCT - col1 + col0 * CAST( NULL AS DECIMAL ) FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-9286 SELECT DISTINCT - col1 + col0 * CAST ( NULL AS REAL ) FROM tab0 ---- NULL query I rowsort SELECT DISTINCT - - col1 + cor0.col2 + 3 FROM tab0 AS cor0 ---- 101 122 176 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * col1 + col2 * 8 * - col0 col2 FROM tab0 cor0 ---- -377 -65846 -9174 query I rowsort SELECT col1 * 95 * + col2 + + col1 AS col0 FROM tab0 ---- 269696 708981 9312 skipif mysql # not compatible query I rowsort SELECT DISTINCT + tab2.col2 * + CAST ( col0 AS REAL ) FROM tab2 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + - col2 * col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL ( col2 ) * + col0 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT 88 FROM tab0, tab0 cor0 ---- 9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + 74 ) * - col2 col0 FROM tab0 cor0 ---- 2442 6068 74 query I rowsort SELECT ALL - 67 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to fbe03b15d6b951410b38f7e98895006f query I rowsort SELECT ALL + col1 * + ( - col1 ) AS col2 FROM tab1 ---- -100 -169 -676 query I rowsort SELECT ALL - ( - 47 * - col2 ) + col2 * tab0.col0 FROM tab0 ---- -12 -759 3444 query I rowsort SELECT DISTINCT + col2 * + col1 - + col1 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT ALL - ( - col2 ) + + col2 * col0 + + col1 FROM tab0 AS cor0 ---- 133 7471 911 query I rowsort SELECT DISTINCT - ( - ( + cor0.col1 ) ) * col2 * - col2 - col2 * + ( + col1 + col2 * col2 ) AS col0 FROM tab0 AS cor0 ---- -1170714 -132429 -195 query I rowsort SELECT - + col2 + + 78 * col0 FROM tab0 cor0 ---- 1839 2729 6860 query I rowsort SELECT DISTINCT + col2 + col1 * - col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT DISTINCT - ( col1 ) - col2 FROM tab2 AS cor0 ---- -55 -58 -85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9304 SELECT - col2 + + ( col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9304 SELECT - col2 + + ( col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL ( - col1 ) * - col2 + col0 * + 36 FROM tab2 AS cor0 ---- 1089 3490 4342 onlyif mysql # use DIV operator for integer division query I rowsort label-9306 SELECT DISTINCT + 87 DIV col0 FROM tab1 AS cor0 ---- 1 29 skipif mysql # not compatible query I rowsort label-9306 SELECT DISTINCT + 87 / col0 FROM tab1 AS cor0 ---- 1 29 query I rowsort SELECT - - 41 AS col0 FROM tab1 cor0 ---- 41 41 41 query I rowsort SELECT DISTINCT + 91 - - col2 * - col1 AS col2 FROM tab0 cor0 ---- -2747 -6 -7371 query I rowsort SELECT DISTINCT + 87 AS col2 FROM tab0, tab1, tab1 AS cor0 ---- 87 query I rowsort SELECT + 50 AS col2 FROM tab0, tab1 cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 query I rowsort SELECT + + col0 * + ( + cor0.col2 ) + - col2 AS col1 FROM tab0 AS cor0 ---- 34 7216 759 query IIIIIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1, tab1, tab2 AS cor2, tab2 ---- 13122 values hashing to 0d6b829280b3e667ac5e039b1caf9b13 query I rowsort SELECT + col2 * - 29 FROM tab0 AS cor0 ---- -2378 -29 -957 onlyif mysql # use DIV operator for integer division query I rowsort label-9314 SELECT ALL - + col1 DIV 63 + + col0 AS col0 FROM tab0 AS cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-9314 SELECT ALL - + col1 / 63 + + col0 AS col0 FROM tab0 AS cor0 ---- 23 34 88 query I rowsort SELECT DISTINCT + col1 + + col2 * col2 - - col2 AS col0 FROM tab1 cor0 ---- 2996 3316 9325 query I rowsort SELECT - 95 * col0 FROM tab2 ---- -665 -7410 -7505 query I rowsort SELECT DISTINCT tab0.col0 * tab0.col1 + col2 AS col0 FROM tab0 ---- 2097 3396 8181 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9318 SELECT - CAST( NULL AS SIGNED ) * + 49 * col1 + - col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9318 SELECT - CAST ( NULL AS INTEGER ) * + 49 * col1 + - col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + col0 * + col0 + cor0.col0 FROM tab0 cor0 ---- 1260 600 8010 query I rowsort SELECT DISTINCT 94 * + col1 FROM tab2 AS cor0 ---- 1598 2914 5546 onlyif mysql # use DIV operator for integer division query I rowsort label-9321 SELECT - col2 DIV cor0.col0 FROM tab1 AS cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-9321 SELECT - col2 / cor0.col0 FROM tab1 AS cor0 ---- -1 -18 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 70 + 81 col1 FROM tab1 AS cor0 ---- 11 onlyif mysql # use DIV operator for integer division query I rowsort label-9323 SELECT + - col1 + ( - col2 ) DIV 40 AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-9323 SELECT + - col1 + ( - col2 ) / 40 AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT 21 * cor0.col1 + - col2 FROM tab0 AS cor0 ---- 1773 1829 2036 query I rowsort SELECT ALL ( ( - col0 ) ) * + col0 FROM tab1 cor0 ---- -4096 -6400 -9 query I rowsort SELECT 28 - + col1 AS col1 FROM tab2 AS cor0 ---- -3 -31 11 query I rowsort SELECT DISTINCT + + 13 AS col0 FROM tab1 AS cor0 ---- 13 query I rowsort SELECT DISTINCT 67 + + col2 * col2 FROM tab1 AS cor0 ---- 2983 3316 9283 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + ( + col1 ) * - col2 col1 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col1 + + cor0.col1 * - cor0.col1 col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + 98 + - col1 AS col2 FROM tab1 AS cor0 ---- 72 85 88 query I rowsort SELECT DISTINCT 88 AS col0 FROM tab2 AS cor0 ---- 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9333 SELECT - CAST( 72 AS SIGNED ) col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to b7689a8218ac9df1cca20d2ba5c53888 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9333 SELECT - CAST ( 72 AS INTEGER ) col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to b7689a8218ac9df1cca20d2ba5c53888 onlyif mysql # use DIV operator for integer division query I rowsort label-9334 SELECT + - col1 + - col0 DIV + col1 FROM tab1 cor0 ---- -16 -19 -26 skipif mysql # not compatible query I rowsort label-9334 SELECT + - col1 + - col0 / + col1 FROM tab1 cor0 ---- -16 -19 -26 query I rowsort SELECT - + 52 * col0 FROM tab2 AS cor0 ---- -364 -4056 -4108 query I rowsort SELECT DISTINCT + - ( - col2 ) AS col0 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT - 55 AS col0 FROM tab2 AS cor0 ---- -55 -55 -55 onlyif mysql # use DIV operator for integer division query I rowsort label-9338 SELECT ALL 83 * col0 DIV - col1 + + 2 * + col0 FROM tab0 ---- 25 41 97 skipif mysql # not compatible query I rowsort label-9338 SELECT ALL 83 * col0 / - col1 + + 2 * + col0 FROM tab0 ---- 25 41 97 query I rowsort SELECT DISTINCT 80 + + 56 AS col1 FROM tab1, tab2 AS cor0 ---- 136 query I rowsort SELECT + col0 * col0 + - 6 * + col0 AS col2 FROM tab1 cor0 ---- -9 3712 5920 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col1 + col0 col2 FROM tab2 AS cor0 ---- 3559 368 968 query I rowsort SELECT - - 38 * - cor0.col1 + col0 AS col1 FROM tab0 AS cor0 ---- -3244 -3369 -3651 query I rowsort SELECT + col2 * col2 + 92 AS col2 FROM tab1 AS cor0 ---- 3008 3341 9308 query I rowsort SELECT + cor0.col0 + col0 * cor0.col2 FROM tab2 AS cor0 ---- 196 2106 3081 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9345 SELECT - + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9345 SELECT - + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT - 38 * tab0.col1 * 73 AS col0 FROM tab0 ---- -238564 -252434 -269078 query I rowsort SELECT - col0 * 59 + + col1 * - 30 FROM tab2 AS cor0 ---- -1343 -5171 -6372 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2, tab1 cor3 ---- 3645 values hashing to d95cefa45985203e212af5af5dd9be5b query I rowsort SELECT tab1.col2 * col1 * - col1 AS col2 FROM tab1 ---- -16224 -36504 -5700 query I rowsort SELECT ( 29 * col2 ) FROM tab0 ---- 2378 29 957 query I rowsort SELECT ALL 53 + col2 * - 94 * - 61 FROM tab0 AS cor0 ---- 189275 470241 5787 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + col2 * col0 col0 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT DISTINCT - 58 * col2 AS col2 FROM tab0 AS cor0 ---- -1914 -4756 -58 query I rowsort SELECT DISTINCT col1 + + col1 + - cor0.col2 FROM tab0 AS cor0 ---- 100 139 193 query I rowsort SELECT col2 + col2 * col2 * + col2 AS col2 FROM tab0 AS cor0 ---- 2 35970 551450 query I rowsort SELECT DISTINCT tab1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 3 64 80 query I rowsort SELECT DISTINCT tab1.col2 * - 29 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1 ---- -1566 -1653 -2784 query I rowsort SELECT + + col2 * + col1 AS col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT ( 19 ) FROM tab2, tab2 AS cor0 ---- 19 query I rowsort SELECT - + col0 + + 67 * 40 - + col1 FROM tab1 AS cor0 ---- 2587 2606 2651 query I rowsort SELECT ALL - 86 AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da query I rowsort SELECT ALL + 72 + cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 762098405502f13225a711608ac94782 query I rowsort SELECT - 36 + col0 AS col1 FROM tab0 ---- -1 -12 53 query I rowsort SELECT - cor0.col0 + + 72 * + cor0.col2 FROM tab2 AS cor0 ---- 1794 1937 2657 query I rowsort SELECT ALL - 51 AS col1 FROM tab0 AS cor0 ---- -51 -51 -51 query I rowsort SELECT ALL ( tab0.col1 ) * + col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT - tab1.col2 + - col0 + col1 * col1 FROM tab1 ---- -21 -7 619 query I rowsort SELECT DISTINCT + 0 * ( col1 ) FROM tab1 ---- 0 query I rowsort SELECT - ( + col2 ) * - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL - 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-9371 SELECT DISTINCT - CAST( - col0 AS SIGNED ) + - cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 skipif mysql # not compatible query I rowsort label-9371 SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + - cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( + col0 ) - col2 col2 FROM tab0 AS cor0 ---- -9 34 7 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 cor1, tab0 AS cor2 ---- 972 values hashing to ea0f747588ddf5869ee18a5e22d9f237 query I rowsort SELECT tab1.col0 FROM tab1, tab2, tab1 cor0, tab0 ---- 81 values hashing to e28bf7f922650ca423ade3642ce0285b query I rowsort SELECT ALL col2 * col0 + - 27 FROM tab0 AS cor0 ---- 7271 765 8 query I rowsort SELECT ALL - col2 * cor0.col1 * col0 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT cor0.col1 * 79 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 9f356c92ad187127dc66b1253be8643b query I rowsort SELECT ALL col0 * - ( + col2 ) + + col2 AS col1 FROM tab2 cor0 ---- -162 -2002 -2964 query I rowsort SELECT - col1 * col2 + 83 * - col1 + ( - 46 ) * col2 * - col0 FROM tab1 AS cor0 ---- 166408 350953 3890 query I rowsort SELECT ALL + col2 * + 87 + col2 AS col1 FROM tab2 cor0 ---- 2288 2376 3344 query I rowsort SELECT col0 * ( col1 ) + col1 + ( col1 ) * - col2 AS col0 FROM tab1 AS cor0 ---- -1300 -195 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9382 SELECT col1 + cor0.col0 - ( col1 + CAST( NULL AS DECIMAL ) ) / 49 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9382 SELECT col1 + cor0.col0 - ( col1 + CAST ( NULL AS REAL ) ) / 49 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 47 * - col2 AS col0 FROM tab2 ---- -1222 -1269 -1786 onlyif mysql # use DIV operator for integer division query I rowsort label-9384 SELECT - col1 * 62 + + col2 - col0 DIV 40 FROM tab1 AS cor0 ---- -1558 -564 -712 skipif mysql # not compatible query I rowsort label-9384 SELECT - col1 * 62 + + col2 - col0 / 40 FROM tab1 AS cor0 ---- -1558 -564 -712 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9385 SELECT DISTINCT + - cor0.col1 * CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-9385 SELECT DISTINCT + - cor0.col1 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-9386 SELECT ALL - + col1 DIV + ( + 40 ) FROM tab0 AS cor0 ---- -2 -2 -2 skipif mysql # not compatible query I rowsort label-9386 SELECT ALL - + col1 / + ( + 40 ) FROM tab0 AS cor0 ---- -2 -2 -2 query I rowsort SELECT ALL - + col0 * col1 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT col0 + cor0.col2 * - 80 AS col2 FROM tab1 AS cor0 ---- -4317 -4496 -7600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + col1 * col0 col2 FROM tab1 AS cor0 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + + tab0.col2 + col1 col1 FROM tab0 ---- 152 255 99 query I rowsort SELECT ALL + 74 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to dc22979e6d261795bd3ce2990fdbbf82 query I rowsort SELECT + ( 67 ) + cor0.col2 * 93 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to a865a5a18db9a6eb255b448a3c3bf8c8 onlyif mysql # use DIV operator for integer division query I rowsort label-9393 SELECT + 17 DIV 55 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-9393 SELECT + 17 / 55 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT + cor0.col0 + 37 * 49 FROM tab1 cor0 ---- 1816 1877 1893 query I rowsort SELECT ALL + col2 * + col2 * 72 AS col1 FROM tab1 AS cor0 ---- 209952 233928 663552 query I rowsort SELECT col2 * 13 - - col0 AS col2 FROM tab2 AS cor0 ---- 358 416 573 query I rowsort SELECT ALL - col0 - 26 * ( col0 ) FROM tab1 ---- -1728 -2160 -81 skipif mysql # not compatible query I rowsort SELECT + - CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT col0 * + 99 * col2 + + 46 AS col1 FROM tab1 cor0 ---- 16084 361198 760366 onlyif mysql # use DIV operator for integer division query I rowsort label-9400 SELECT DISTINCT tab2.col2 + - col2 + - 7 DIV + tab2.col1 FROM tab2 ---- 0 skipif mysql # not compatible query I rowsort label-9400 SELECT DISTINCT tab2.col2 + - col2 + - 7 / + tab2.col1 FROM tab2 ---- 0 query I rowsort SELECT 91 * col2 FROM tab2 AS cor0 ---- 2366 2457 3458 query I rowsort SELECT - cor0.col1 * + col1 FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT - + 75 * - col0 FROM tab2 cor0 ---- 525 5850 5925 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 41 * col2 + + col0 col0 FROM tab0 AS cor0 ---- 1377 3451 76 query I rowsort SELECT DISTINCT 16 + + col1 * - cor0.col1 * col2 FROM tab0 cor0 ---- -244052 -679026 -9393 query I rowsort SELECT + 65 + - col0 AS col0 FROM tab0 AS cor0 ---- -24 30 41 query I rowsort SELECT DISTINCT + 31 * - col1 AS col0 FROM tab2 AS cor0 ---- -1829 -527 -961 query I rowsort SELECT ALL ( col0 ) * col1 + + ( + col0 ) * col0 + col2 AS col2 FROM tab1 AS cor0 ---- 141 4793 7536 query I rowsort SELECT ALL - col0 * col2 + - ( 77 * col0 ) FROM tab1 AS cor0 ---- -13840 -393 -8576 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 + cor0.col1 * col1 col0 FROM tab2 AS cor0 ---- 3559 368 968 query I rowsort SELECT DISTINCT tab1.col0 FROM tab1, tab0 AS cor0, tab2 cor1 ---- 3 64 80 query I rowsort SELECT + 95 * - 10 AS col0 FROM tab1 ---- -950 -950 -950 query I rowsort SELECT 94 * - col1 - col0 FROM tab0 ---- -8108 -8643 -9153 onlyif mysql # use DIV operator for integer division query I rowsort label-9414 SELECT col0 - tab0.col2 DIV - tab0.col1 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-9414 SELECT col0 - tab0.col2 / - tab0.col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT DISTINCT + ( col0 ) + - col0 AS col1 FROM tab1 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9416 SELECT + col1 * tab1.col0 DIV + col2 - tab1.col1 AS col2 FROM tab1 ---- -25 -3 1 skipif mysql # not compatible query I rowsort label-9416 SELECT + col1 * tab1.col0 / + col2 - tab1.col1 AS col2 FROM tab1 ---- -25 -3 1 query I rowsort SELECT DISTINCT + cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 26 27 38 query I rowsort SELECT DISTINCT - - col0 + cor0.col1 + + ( - col2 ) AS col2 FROM tab0 cor0 ---- 131 77 98 query I rowsort SELECT 29 + - cor0.col1 FROM tab1 cor0 ---- 16 19 3 onlyif mysql # use DIV operator for integer division query I rowsort label-9420 SELECT ALL col0 DIV - col1 + + ( - cor0.col0 ) * col1 FROM tab1 AS cor0 ---- -1046 -646 -78 skipif mysql # not compatible query I rowsort label-9420 SELECT ALL col0 / - col1 + + ( - cor0.col0 ) * col1 FROM tab1 AS cor0 ---- -1046 -646 -78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9421 SELECT ALL col0 * - col1 - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9421 SELECT ALL col0 * - col1 - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 27 * col1 FROM tab0 cor0 ---- 2322 2457 2619 query I rowsort SELECT - - 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 query I rowsort SELECT + + 93 + col1 AS col0 FROM tab1 cor0 ---- 103 106 119 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9425 SELECT + CAST( + col1 AS SIGNED ) * col1 + + col2 * + col0 AS col1 FROM tab1 AS cor0 ---- 3748 7849 838 skipif mysql # not compatible query I rowsort label-9425 SELECT + CAST ( + col1 AS INTEGER ) * col1 + + col2 * + col0 AS col1 FROM tab1 AS cor0 ---- 3748 7849 838 query I rowsort SELECT - col2 * - col1 * col1 + - cor0.col1 AS col2 FROM tab2 cor0 ---- 10965 25916 90447 query I rowsort SELECT col0 * 31 * - col2 AS col2 FROM tab1 AS cor0 ---- -113088 -238080 -5022 query I rowsort SELECT ALL ( 6 ) AS col1 FROM tab1 ---- 6 6 6 query I rowsort SELECT + 19 * + col2 AS col2 FROM tab2 ---- 494 513 722 query I rowsort SELECT - cor0.col1 + col1 * col0 FROM tab2 AS cor0 ---- 1326 186 4543 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 85 * - 7 col0 FROM tab2 ---- 595 query I rowsort SELECT DISTINCT ( - 58 ) AS col2 FROM tab0 ---- -58 query I rowsort SELECT ALL + ( + 97 ) * - col1 * + col0 AS col1 FROM tab0 ---- -200208 -329315 -785603 query I rowsort SELECT - cor0.col0 - col2 FROM tab2 cor0 ---- -104 -117 -34 query I rowsort SELECT - col1 - - col0 AS col1 FROM tab1 AS cor0 ---- -23 54 67 onlyif mysql # use DIV operator for integer division query I rowsort label-9436 SELECT ALL 97 DIV col2 + 91 AS col2 FROM tab0 ---- 188 92 93 skipif mysql # not compatible query I rowsort label-9436 SELECT ALL 97 / col2 + 91 AS col2 FROM tab0 ---- 188 92 93 query I rowsort SELECT ALL 2 * col2 + - col0 FROM tab2 ---- -26 -3 47 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9438 SELECT - - col1 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0 ---- -7396 -8281 -9409 skipif mysql # not compatible query I rowsort label-9438 SELECT - - col1 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT - 51 + + col1 FROM tab2 ---- -20 -34 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 62 + - tab1.col0 col0 FROM tab1 ---- -18 -2 59 skipif mysql # not compatible query I rowsort SELECT + - col2 * + CAST ( + 38 AS REAL ) + + col2 * - col1 AS col2 FROM tab0 AS cor0 ---- -10578 -135 -4092 onlyif mysql # use DIV operator for integer division query I rowsort label-9442 SELECT DISTINCT + col0 * - 65 + - 23 DIV cor0.col0 AS col1 FROM tab1 AS cor0 ---- -202 -4160 -5200 skipif mysql # not compatible query I rowsort label-9442 SELECT DISTINCT + col0 * - 65 + - 23 / cor0.col0 AS col1 FROM tab1 AS cor0 ---- -202 -4160 -5200 query I rowsort SELECT DISTINCT col2 + 78 * - col0 AS col1 FROM tab1 AS cor0 ---- -180 -4935 -6144 query I rowsort SELECT col0 * - cor0.col1 + + col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT DISTINCT + 64 FROM tab0, tab0 AS cor0 ---- 64 onlyif mysql # use DIV operator for integer division query I rowsort label-9446 SELECT col1 DIV + col2 - + col1 AS col2 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-9446 SELECT col1 / + col2 - + col1 AS col2 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ALL + + col1 + 90 AS col2 FROM tab2 cor0 ---- 107 121 149 query I rowsort SELECT - - col1 + 34 * col1 FROM tab1 cor0 ---- 350 455 910 query I rowsort SELECT DISTINCT - + col1 * + col1 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- -1557 -6307 -9408 query I rowsort SELECT ALL col1 * + 94 * - 46 AS col1 FROM tab1 AS cor0 ---- -112424 -43240 -56212 query I rowsort SELECT col2 * - col1 * col2 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT - col0 - - col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + + cor0.col1 + col1 AS col0 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT ALL - col2 * col2 + + col0 FROM tab2 cor0 ---- -1365 -598 -722 query I rowsort SELECT DISTINCT + col0 * col2 * - col2 AS col1 FROM tab2 ---- -114076 -5103 -52728 query I rowsort SELECT ALL col0 - + col0 * - col2 * + col1 FROM tab1 ---- 36544 4215 99920 query I rowsort SELECT ALL tab0.col2 * - col0 + col1 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT ALL col2 * - col2 + tab1.col0 FROM tab1 ---- -2913 -3185 -9136 query I rowsort SELECT - tab1.col2 * col2 + + col0 * tab1.col1 + - col2 * col1 FROM tab1 ---- -3179 -4242 -9424 query I rowsort SELECT DISTINCT + col1 * - cor0.col0 - col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT DISTINCT col0 + + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL + col0 + col1 + + col1 AS col2 FROM tab0 AS cor0 ---- 196 229 271 query I rowsort SELECT + - col1 + col0 FROM tab0 cor0 ---- -2 -62 -62 query I rowsort SELECT ALL + + col1 * col1 + - col2 + col2 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT cor0.col2 - + col0 AS col1 FROM tab1 AS cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-9466 SELECT DISTINCT - col2 DIV col2 - col2 AS col0 FROM tab0 AS cor0 ---- -2 -34 -83 skipif mysql # not compatible query I rowsort label-9466 SELECT DISTINCT - col2 / col2 - col2 AS col0 FROM tab0 AS cor0 ---- -2 -34 -83 query I rowsort SELECT + col2 + col2 + col0 FROM tab0 cor0 ---- 253 37 90 query I rowsort SELECT + - 92 * col0 FROM tab2 AS cor0 ---- -644 -7176 -7268 query I rowsort SELECT - 50 * + col1 AS col1 FROM tab0 cor0 ---- -4300 -4550 -4850 query I rowsort SELECT + ( + col1 ) + col0 * col2 AS col0 FROM tab0 cor0 ---- 132 7389 878 query I rowsort SELECT + col1 + + cor0.col0 * + col2 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT + col2 * - col0 - 99 FROM tab2 AS cor0 ---- -2127 -288 -3101 query I rowsort SELECT ALL + col0 * col2 - - 61 FROM tab2 AS cor0 ---- 2089 250 3063 onlyif mysql # use DIV operator for integer division query I rowsort label-9474 SELECT ALL + col0 * col2 DIV 24 col1 FROM tab1 cor0 ---- 152 320 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9474 SELECT ALL + col0 * col2 / 24 col1 FROM tab1 cor0 ---- 152 320 6 query I rowsort SELECT ALL col1 * - col1 + col1 FROM tab2 AS cor0 ---- -272 -3422 -930 onlyif mysql # use DIV operator for integer division query I rowsort label-9476 SELECT ALL - col1 + col0 DIV + col1 FROM tab1 cor0 ---- -26 -4 -7 skipif mysql # not compatible query I rowsort label-9476 SELECT ALL - col1 + col0 / + col1 FROM tab1 cor0 ---- -26 -4 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 * cor0.col1 col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT + col1 * - col0 - - 23 * + col2 FROM tab1 AS cor0 ---- 1164 1168 671 query I rowsort SELECT ALL - cor0.col1 * - col2 + + col1 AS col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT ( col1 ) - col2 * - col2 FROM tab1 ---- 2942 3259 9229 query I rowsort SELECT DISTINCT 83 * cor0.col2 * - col1 + + col1 AS col1 FROM tab1 AS cor0 ---- -103571 -116506 -47300 query I rowsort SELECT DISTINCT 4 * col1 + - col0 AS col1 FROM tab0 AS cor0 ---- 275 320 353 query I rowsort SELECT ALL - cor0.col1 * - col1 - + col2 FROM tab2 AS cor0 ---- 251 3455 934 query I rowsort SELECT DISTINCT - - 65 FROM tab2 AS cor0 ---- 65 query I rowsort SELECT - col2 * - col1 + 48 FROM tab1 AS cor0 ---- 1296 1452 618 query I rowsort SELECT ALL + cor0.col2 * - col0 + + 46 FROM tab1 AS cor0 ---- -116 -3602 -7634 query I rowsort SELECT + - col2 + + col1 AS col1 FROM tab2 AS cor0 ---- -21 33 4 onlyif mysql # use DIV operator for integer division query I rowsort label-9488 SELECT DISTINCT + + col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-9488 SELECT DISTINCT + + col1 / cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT ALL + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL + 40 + col0 + col0 FROM tab1 AS cor0 ---- 168 200 46 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9491 SELECT ALL - CAST( tab1.col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to 2df272448a67587d4635afedff278dcc skipif mysql # not compatible query I rowsort label-9491 SELECT ALL - CAST ( tab1.col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to 2df272448a67587d4635afedff278dcc query I rowsort SELECT ALL - ( ( tab2.col1 ) ) FROM tab2 ---- -17 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( col1 * + col0 ) col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT DISTINCT + col1 + ( col0 ) * ( 44 ) + - col0 AS col0 FROM tab2 AS cor0 ---- 332 3413 3414 query I rowsort SELECT + 75 * col0 AS col1 FROM tab1 cor0 ---- 225 4800 6000 query I rowsort SELECT - - 68 AS col1 FROM tab0 cor0 ---- 68 68 68 query I rowsort SELECT DISTINCT + + 60 AS col2 FROM tab1 AS cor0 ---- 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9498 SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col0 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9498 SELECT DISTINCT CAST ( NULL AS REAL ) + + col0 AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT cor0.col0 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT ALL + ( col1 ) * + col1 AS col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT - - 34 * + col2 AS col1 FROM tab1 AS cor0 ---- 1836 1938 3264 onlyif mysql # use DIV operator for integer division query I rowsort label-9502 SELECT col1 + - col0 DIV col0 FROM tab0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-9502 SELECT col1 + - col0 / col0 FROM tab0 ---- 85 90 96 query I rowsort SELECT DISTINCT - 55 * 25 AS col0 FROM tab1 AS cor0 ---- -1375 query I rowsort SELECT ALL col2 * + 94 FROM tab2 AS cor0 ---- 2444 2538 3572 onlyif mysql # use DIV operator for integer division query I rowsort label-9505 SELECT + col2 + + 43 + - col1 DIV 31 FROM tab0 AS cor0 ---- 123 41 74 skipif mysql # not compatible query I rowsort label-9505 SELECT + col2 + + 43 + - col1 / 31 FROM tab0 AS cor0 ---- 123 41 74 query I rowsort SELECT ALL ( - cor0.col0 ) + col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9507 SELECT DISTINCT - - col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-9507 SELECT DISTINCT - - col1 / - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -1 -2 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-9508 SELECT - 64 DIV - col2 + col0 AS col1 FROM tab0 ---- 25 89 99 skipif mysql # not compatible query I rowsort label-9508 SELECT - 64 / - col2 + col0 AS col1 FROM tab0 ---- 25 89 99 query I rowsort SELECT + 26 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 query I rowsort SELECT ALL - + col0 * - col2 AS col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT - + col1 * - col0 * - col0 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT DISTINCT + + 81 FROM tab1 AS cor0 ---- 81 query I rowsort SELECT 60 * + col0 AS col1 FROM tab1 AS cor0 ---- 180 3840 4800 query I rowsort SELECT + + cor0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT DISTINCT 58 AS col2 FROM tab1, tab0, tab0 AS cor0 ---- 58 onlyif mysql # use DIV operator for integer division query I rowsort label-9516 SELECT DISTINCT col2 DIV - cor0.col1 + - col0 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-9516 SELECT DISTINCT col2 / - cor0.col1 + - col0 FROM tab0 AS cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT ALL + - col0 + + CAST ( col1 AS REAL ) col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT DISTINCT - col1 * col0 + 97 FROM tab2 AS cor0 ---- -120 -1246 -4505 onlyif mysql # use DIV operator for integer division query I rowsort label-9519 SELECT - col1 DIV + 32 + col0 FROM tab2 ---- 7 77 79 skipif mysql # not compatible query I rowsort label-9519 SELECT - col1 / + 32 + col0 FROM tab2 ---- 7 77 79 query I rowsort SELECT col0 * - 0 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT - col2 * col1 * ( + col1 * col2 ) FROM tab1 ---- -1557504 -1971216 -324900 onlyif mysql # use DIV operator for integer division query I rowsort label-9522 SELECT ALL - - col2 * + 8 + + col1 DIV - col1 FROM tab2 cor0 ---- 207 215 303 skipif mysql # not compatible query I rowsort label-9522 SELECT ALL - - col2 * + 8 + + col1 / - col1 FROM tab2 cor0 ---- 207 215 303 onlyif mysql # use DIV operator for integer division query I rowsort label-9523 SELECT ALL + + col1 * + 12 + + col1 DIV col1 col1 FROM tab0 AS cor0 ---- 1033 1093 1165 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9523 SELECT ALL + + col1 * + 12 + + col1 / col1 col1 FROM tab0 AS cor0 ---- 1033 1093 1165 query I rowsort SELECT + cor0.col0 + col1 + col0 * col0 AS col2 FROM tab1 AS cor0 ---- 38 4170 6493 onlyif mysql # use DIV operator for integer division query I rowsort label-9525 SELECT - 24 DIV col1 col0 FROM tab2 AS cor0 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9525 SELECT - 24 / col1 col0 FROM tab2 AS cor0 ---- -1 0 0 query I rowsort SELECT DISTINCT - - 6 + + col0 * - col1 FROM tab2 cor0 ---- -1337 -211 -4596 query I rowsort SELECT DISTINCT - - 97 AS col2 FROM tab0 AS cor0 ---- 97 query I rowsort SELECT ALL ( col0 ) + col0 * ( + 40 * + cor0.col2 ) AS col2 FROM tab0 AS cor0 ---- 1435 292009 31704 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 32 * 72 col2 FROM tab2 AS cor0 ---- -2304 -2304 -2304 onlyif mysql # use DIV operator for integer division query I rowsort label-9530 SELECT ALL + - col1 DIV + 28 AS col0 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9530 SELECT ALL + - col1 / + 28 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + + ( col0 ) + + col1 AS col0 FROM tab2 AS cor0 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * 83 + col0 col1 FROM tab1 cor0 ---- 252 5376 6720 onlyif mysql # use DIV operator for integer division query I rowsort label-9533 SELECT DISTINCT col0 + 84 DIV - col1 FROM tab1 ---- 0 56 74 skipif mysql # not compatible query I rowsort label-9533 SELECT DISTINCT col0 + 84 / - col1 FROM tab1 ---- 0 56 74 query I rowsort SELECT DISTINCT + col2 * - col2 + col0 + col2 FROM tab0 ---- -1032 -6553 35 query I rowsort SELECT ALL 90 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 96f7a90428db93f472e0d219bab64853 onlyif mysql # use DIV operator for integer division query I rowsort label-9536 SELECT DISTINCT col1 + - col0 DIV col0 FROM tab1 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-9536 SELECT DISTINCT col1 + - col0 / col0 FROM tab1 ---- 12 25 9 query I rowsort SELECT + col0 + + ( col0 + + col0 ) FROM tab0 cor0 ---- 105 267 72 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9538 SELECT ALL col0 * - CAST( + col2 + + col0 AS SIGNED ) col1 FROM tab1 ---- -14080 -171 -7744 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9538 SELECT ALL col0 * - CAST ( + col2 + + col0 AS INTEGER ) col1 FROM tab1 ---- -14080 -171 -7744 query I rowsort SELECT - col2 * col1 + col0 * + col2 AS col2 FROM tab1 AS cor0 ---- -1242 3078 6432 query I rowsort SELECT - + cor0.col2 * col1 - col0 FROM tab1 AS cor0 ---- -1328 -1407 -634 onlyif mysql # use DIV operator for integer division query I rowsort label-9541 SELECT + cor0.col0 DIV - col1 + col2 FROM tab2 AS cor0 ---- 25 27 34 skipif mysql # not compatible query I rowsort label-9541 SELECT + cor0.col0 / - col1 + col2 FROM tab2 AS cor0 ---- 25 27 34 onlyif mysql # use DIV operator for integer division query I rowsort label-9542 SELECT - cor0.col1 + + col2 DIV col0 AS col2 FROM tab1 AS cor0 ---- -10 -12 -8 skipif mysql # not compatible query I rowsort label-9542 SELECT - cor0.col1 + + col2 / col0 AS col2 FROM tab1 AS cor0 ---- -10 -12 -8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9543 SELECT + CAST( - ( col2 ) AS SIGNED ) + 40 * - col2 AS col2 FROM tab0 AS cor0 ---- -1353 -3362 -41 skipif mysql # not compatible query I rowsort label-9543 SELECT + CAST ( - ( col2 ) AS INTEGER ) + 40 * - col2 AS col2 FROM tab0 AS cor0 ---- -1353 -3362 -41 query I rowsort SELECT - col0 + - ( col0 ) AS col1 FROM tab0 AS cor0 ---- -178 -48 -70 query I rowsort SELECT + + 17 + - col0 * - col1 FROM tab0 cor0 ---- 2081 3412 8116 query I rowsort SELECT DISTINCT + tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 cor1 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab2.col0 * - col2 col0 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT DISTINCT col2 + ( - col2 ) + + col2 FROM tab1 ---- 54 57 96 query I rowsort SELECT + cor0.col2 + cor0.col1 * + 18 AS col1 FROM tab2 AS cor0 ---- 1088 344 585 query I rowsort SELECT DISTINCT 13 + - col2 AS col0 FROM tab2 AS cor0 ---- -13 -14 -25 query I rowsort SELECT ALL + col2 + - col2 * cor0.col1 + col1 * col2 AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT cor0.col1 * col0 + - col1 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT DISTINCT - 38 + cor0.col2 FROM tab1 AS cor0 ---- 16 19 58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 57 * - cor0.col2 col1 FROM tab1 AS cor0 ---- 3078 3249 5472 query I rowsort SELECT - ( col1 ) + tab1.col2 AS col0 FROM tab1 ---- 28 47 83 query I rowsort SELECT + col2 + col2 * col1 * col1 AS col1 FROM tab2 ---- 11020 25974 90532 query I rowsort SELECT + 84 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cadd876c26338fc58b9297e74fc324d8 query I rowsort SELECT + col2 * + 35 - + 91 AS col2 FROM tab2 AS cor0 ---- 1239 819 854 query I rowsort SELECT - 24 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 797d0f7c145f8ac623924448c714bbcc query I rowsort SELECT + col0 * 76 FROM tab2 AS cor0 ---- 532 5928 6004 query I rowsort SELECT DISTINCT col2 + ( + col2 ) * - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 onlyif mysql # use DIV operator for integer division query I rowsort label-9562 SELECT ALL - col1 DIV ( col0 ) + col0 FROM tab2 AS cor0 ---- 3 78 79 skipif mysql # not compatible query I rowsort label-9562 SELECT ALL - col1 / ( col0 ) + col0 FROM tab2 AS cor0 ---- 3 78 79 query I rowsort SELECT DISTINCT col0 * 84 AS col2 FROM tab0 AS cor0 ---- 2016 2940 7476 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 17 col2 FROM tab1 ---- 17 query I rowsort SELECT - col1 + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -23 54 67 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9566 SELECT DISTINCT - CAST( NULL AS SIGNED ) / col2 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-9566 SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col2 FROM tab2 ---- NULL query I rowsort SELECT 19 * col2 FROM tab0 ---- 1558 19 627 query I rowsort SELECT 60 - tab1.col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to e28b5648f33c7b65e376b1bfd90f4039 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13 query I rowsort SELECT + cor0.col0 * - cor0.col0 AS col0 FROM tab0 cor0 ---- -1225 -576 -7921 query I rowsort SELECT col2 * col2 - + col0 FROM tab0 ---- -34 1065 6635 query I rowsort SELECT - col2 + tab0.col0 * col0 FROM tab0 ---- 1224 543 7839 query I rowsort SELECT - + 29 * - col1 FROM tab0 AS cor0 ---- 2494 2639 2813 query I rowsort SELECT + col0 + - col2 * + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-9575 SELECT DISTINCT 29 * cor0.col1 DIV 47 AS col2 FROM tab2 AS cor0 ---- 10 19 36 skipif mysql # not compatible query I rowsort label-9575 SELECT DISTINCT 29 * cor0.col1 / 47 AS col2 FROM tab2 AS cor0 ---- 10 19 36 query I rowsort SELECT 45 * - cor0.col1 FROM tab0 AS cor0 ---- -3870 -4095 -4365 onlyif mysql # use DIV operator for integer division query I rowsort label-9577 SELECT ALL + tab2.col0 - tab2.col0 DIV + tab2.col0 col2 FROM tab2 ---- 6 77 78 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9577 SELECT ALL + tab2.col0 - tab2.col0 / + tab2.col0 col2 FROM tab2 ---- 6 77 78 query I rowsort SELECT + col0 + + col0 * col0 + col2 * + col1 AS col2 FROM tab1 ---- 1416 4730 7728 query I rowsort SELECT - col0 + col2 * tab1.col1 AS col0 FROM tab1 WHERE NULL <> NULL ---- query I rowsort SELECT col2 + col2 * col0 AS col0 FROM tab2 ---- 2054 216 3040 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col2 + col0 ---- query I rowsort SELECT col1 + col0 * + col0 + + tab0.col0 FROM tab0 WHERE NULL > NULL ---- query I rowsort SELECT ALL - 71 * + col0 + col1 AS col0 FROM tab2 AS cor0 ---- -466 -5479 -5592 query I rowsort SELECT DISTINCT - col2 + + tab1.col2 * col2 * col1 FROM tab1 ---- 119712 32433 75762 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-9586 SELECT + + col2 DIV - col1 AS col2 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9586 SELECT + + col2 / - col1 AS col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL + + 89 + - col2 FROM tab2 AS cor0 ---- 51 62 63 query I rowsort SELECT ALL + col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2 ) ---- query I rowsort SELECT ALL col0 + tab0.col2 FROM tab0 WHERE NOT ( NULL ) > NULL ---- query I rowsort SELECT + col0 * col1 / - col1 + tab2.col0 + + col1 AS col2 FROM tab2 WHERE NOT col1 > ( NULL ) ---- query I rowsort SELECT col0 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - cor0.col0 * + col1 + - col1 IN ( + cor0.col1 * cor0.col2 ) ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col1 + cor0.col1 col0 FROM tab1 cor0 ---- -156 -650 -90 query I rowsort SELECT col0 * col2 / + cor0.col0 AS col2 FROM tab1 AS cor0 WHERE + col0 <> col0 ---- query I rowsort SELECT DISTINCT - col0 - col0 AS col0 FROM tab2 ---- -14 -156 -158 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT + col2 <> NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9596 SELECT DISTINCT + col1 DIV col2 AS col0 FROM tab1 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-9596 SELECT DISTINCT + col1 / col2 AS col0 FROM tab1 cor0 ---- 0 query I rowsort SELECT + tab1.col2 * col1 + + col0 - col2 FROM tab1 ---- 1232 1353 577 onlyif mysql # use DIV operator for integer division query I rowsort label-9598 SELECT - col0 DIV col2 + tab0.col0 DIV - col0 - + col0 col1 FROM tab0 ---- -25 -71 -91 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9598 SELECT - col0 / col2 + tab0.col0 / - col0 - + col0 col1 FROM tab0 ---- -25 -71 -91 query I rowsort SELECT DISTINCT + tab1.col0 * - col1 AS col1 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT col2 * col1 + col2 AS col1 FROM tab2 ---- 1560 684 864 query I rowsort SELECT DISTINCT + tab1.col0 + - col2 * + col1 AS col0 FROM tab1 ---- -1168 -1401 -506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 col1 FROM tab1 AS cor0 WHERE NOT col0 = NULL ---- query I rowsort SELECT ALL + col0 + col0 * - col0 AS col2 FROM tab1 ---- -4032 -6 -6320 query I rowsort SELECT col1 * - col1 AS col2 FROM tab2 WHERE NULL <= ( NULL ) ---- query I rowsort SELECT ALL + col1 * - 82 + 9 FROM tab1 ---- -1057 -2123 -811 query I rowsort SELECT DISTINCT 32 + 72 FROM tab2, tab0 AS cor0 ---- 104 query I rowsort SELECT ALL 99 - ( + col2 ) * + col1 FROM tab1 AS cor0 ---- -1149 -1305 -471 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9608 SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + cor0.col0 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9608 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + cor0.col0 AS col2 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9609 SELECT - - CAST( NULL AS SIGNED ) * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9609 SELECT - - CAST ( NULL AS INTEGER ) * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 36 * - col2 AS col0 FROM tab1 AS cor0 ---- -1944 -2052 -3456 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9611 SELECT ALL + + CAST( + col2 AS SIGNED ) * + col0 * - col0 AS col1 FROM tab1 AS cor0 ---- -233472 -486 -614400 skipif mysql # not compatible query I rowsort label-9611 SELECT ALL + + CAST ( + col2 AS INTEGER ) * + col0 * - col0 AS col1 FROM tab1 AS cor0 ---- -233472 -486 -614400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9612 SELECT ALL - CAST( NULL AS SIGNED ) * + col2 + + cor0.col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9612 SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 + + cor0.col1 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + ( col0 ) + + col2 AS col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT DISTINCT cor0.col1 FROM tab1, tab2 AS cor0, tab1 cor1 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-9615 SELECT col1 + + col0 DIV 50 + ( tab1.col2 ) FROM tab1 ---- 110 68 80 skipif mysql # not compatible query I rowsort label-9615 SELECT col1 + + col0 / 50 + ( tab1.col2 ) FROM tab1 ---- 110 68 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9616 SELECT ALL + 63 + cor0.col0 DIV col0 FROM tab0 AS cor0 ---- 64 64 64 skipif mysql # not compatible query I rowsort label-9616 SELECT ALL + 63 + cor0.col0 / col0 FROM tab0 AS cor0 ---- 64 64 64 onlyif mysql # use DIV operator for integer division query I rowsort label-9617 SELECT - 21 DIV col2 AS col0 FROM tab0 cor0 ---- -21 0 0 skipif mysql # not compatible query I rowsort label-9617 SELECT - 21 / col2 AS col0 FROM tab0 cor0 ---- -21 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + col2 * - 81 + - 80 * tab2.col1 col0 FROM tab2 ---- -4455 -4698 -6885 query I rowsort SELECT + 5 * + tab2.col2 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 823472bf54551366136818d08149d04e query I rowsort SELECT DISTINCT + - 93 + col1 AS col1 FROM tab2 AS cor0 ---- -34 -62 -76 query I rowsort SELECT cor0.col2 + - ( - col0 ) AS col2 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT ALL col2 * - 73 AS col1 FROM tab0 AS cor0 ---- -2409 -5986 -73 query I rowsort SELECT + col0 * 4 + col2 AS col2 FROM tab1 AS cor0 ---- 313 416 66 onlyif mysql # use DIV operator for integer division query I rowsort label-9624 SELECT - cor0.col0 DIV + 65 + col0 AS col0 FROM tab0 cor0 ---- 24 35 88 skipif mysql # not compatible query I rowsort label-9624 SELECT - cor0.col0 / + 65 + col0 AS col0 FROM tab0 cor0 ---- 24 35 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col1 * + col2 col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT - col0 * 89 * - cor0.col0 + col0 AS col0 FROM tab0 cor0 ---- 109060 51288 705058 query I rowsort SELECT ALL - cor0.col0 * + cor0.col2 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-9628 SELECT ALL + tab2.col2 + col1 - + col2 DIV col1 FROM tab2 ---- 53 58 85 skipif mysql # not compatible query I rowsort label-9628 SELECT ALL + tab2.col2 + col1 - + col2 / col1 FROM tab2 ---- 53 58 85 query I rowsort SELECT DISTINCT - col0 * 19 * 52 FROM tab0 AS cor0 ---- -23712 -34580 -87932 query I rowsort SELECT DISTINCT + cor0.col1 - + col0 AS col0 FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT ALL 1 - - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT ALL - 85 + col2 * + col0 FROM tab1 AS cor0 ---- 3563 7595 77 query I rowsort SELECT 28 + - 54 AS col1 FROM tab2 AS cor0 ---- -26 -26 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-9634 SELECT col1 DIV + col1 + col2 * - col0 * tab0.col2 AS col0 FROM tab0 ---- -26135 -34 -598435 skipif mysql # not compatible query I rowsort label-9634 SELECT col1 / + col1 + col2 * - col0 * tab0.col2 AS col0 FROM tab0 ---- -26135 -34 -598435 query I rowsort SELECT ALL + 88 - col1 AS col0 FROM tab1 ---- 62 75 78 query I rowsort SELECT ALL - col2 - tab2.col0 AS col1 FROM tab2 ---- -104 -117 -34 query I rowsort SELECT ( 35 ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc query I rowsort SELECT ALL col2 * col0 * col2 - + col1 FROM tab2 ---- 114059 5072 52669 onlyif mysql # use DIV operator for integer division query I rowsort label-9639 SELECT 61 DIV col0 + - col2 DIV 37 AS col2 FROM tab1 AS cor0 ---- -1 -2 19 skipif mysql # not compatible query I rowsort label-9639 SELECT 61 / col0 + - col2 / 37 AS col2 FROM tab1 AS cor0 ---- -1 -2 19 onlyif mysql # use DIV operator for integer division query I rowsort label-9640 SELECT + - 65 + + col1 DIV + ( - 45 ) FROM tab0 cor0 ---- -66 -67 -67 skipif mysql # not compatible query I rowsort label-9640 SELECT + - 65 + + col1 / + ( - 45 ) FROM tab0 cor0 ---- -66 -67 -67 query I rowsort SELECT ALL col1 * 84 AS col1 FROM tab1 ---- 1092 2184 840 onlyif mysql # use DIV operator for integer division query I rowsort label-9642 SELECT DISTINCT + col1 DIV 25 FROM tab1 ---- 0 1 skipif mysql # not compatible query I rowsort label-9642 SELECT DISTINCT + col1 / 25 FROM tab1 ---- 0 1 query I rowsort SELECT ALL - col2 * 18 + col0 AS col0 FROM tab0 cor0 ---- -1387 -570 17 query I rowsort SELECT ALL - col0 + - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT - + col0 * + 40 + cor0.col1 * col0 FROM tab0 cor0 ---- 1104 1995 4539 query I rowsort SELECT - 25 * 96 AS col2 FROM tab1 AS cor0 ---- -2400 -2400 -2400 query I rowsort SELECT - col0 + - col0 * col1 AS col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT + + ( 0 ) * + cor0.col1 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + cor0.col2 ) col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT - 91 + 79 * col0 FROM tab1 AS cor0 ---- 146 4965 6229 query I rowsort SELECT + ( 81 ) AS col2 FROM tab0 AS cor0 ---- 81 81 81 query I rowsort SELECT - 67 + col0 + - col2 FROM tab2 AS cor0 ---- -15 -26 -87 query I rowsort SELECT col0 + 87 FROM tab0 AS cor0 ---- 111 122 176 query I rowsort SELECT DISTINCT + 52 * - ( - col1 ) FROM tab2 ---- 1612 3068 884 query I rowsort SELECT col2 * 36 * - col0 - + col0 * col0 FROM tab1 ---- -135424 -282880 -5841 query I rowsort SELECT ALL col0 * - ( - cor0.col0 ) * + cor0.col2 FROM tab0 AS cor0 ---- 1225 19008 649522 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 DISTINCT + ( + col0 ) * cor0.col0 FROM tab0 AS cor0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-9659 SELECT DISTINCT cor1.col0 + + 80 DIV - cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- -4 6 67 68 77 78 skipif mysql # not compatible query I rowsort label-9659 SELECT DISTINCT cor1.col0 + + 80 / - cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- -4 6 67 68 77 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 48 + col2 col2 FROM tab0 cor0 ---- 130 49 81 onlyif mysql # use DIV operator for integer division query I rowsort label-9661 SELECT - col0 + col1 DIV 83 FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-9661 SELECT - col0 + col1 / 83 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT DISTINCT 9 + + col0 * col0 * col0 FROM tab1 AS cor0 ---- 262153 36 512009 query I rowsort SELECT ALL 67 + + col0 FROM tab0 AS cor0 ---- 102 156 91 query I rowsort SELECT ALL - 54 * col1 FROM tab1 cor0 ---- -1404 -540 -702 onlyif mysql # use DIV operator for integer division query I rowsort label-9665 SELECT ( col0 ) DIV col1 AS col1 FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-9665 SELECT ( col0 ) / col1 AS col1 FROM tab2 AS cor0 ---- 0 1 4 query I rowsort SELECT - col0 + 27 AS col2 FROM tab2 ---- -51 -52 20 onlyif mysql # use DIV operator for integer division query I rowsort label-9667 SELECT DISTINCT + ( col1 ) DIV col0 + 74 + - col0 FROM tab1 ---- -6 10 79 skipif mysql # not compatible query I rowsort label-9667 SELECT DISTINCT + ( col1 ) / col0 + 74 + - col0 FROM tab1 ---- -6 10 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9668 SELECT - CAST( col1 AS SIGNED ) + - tab0.col0 FROM tab0 ---- -110 -132 -180 skipif mysql # not compatible query I rowsort label-9668 SELECT - CAST ( col1 AS INTEGER ) + - tab0.col0 FROM tab0 ---- -110 -132 -180 query I rowsort SELECT 97 * tab0.col1 * col1 - - 98 AS col1 FROM tab0 ---- 717510 803355 912771 onlyif mysql # use DIV operator for integer division query I rowsort label-9670 SELECT ALL - 95 * tab1.col0 DIV 80 col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to b3b8ff807e829fcda58c7249c2246ce5 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9670 SELECT ALL - 95 * tab1.col0 / 80 col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to b3b8ff807e829fcda58c7249c2246ce5 query I rowsort SELECT 19 * - cor0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 98809c23be637c38a4fa37bc942368f1 query I rowsort SELECT DISTINCT + + col0 + + 88 AS col0 FROM tab2 AS cor0 ---- 166 167 95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9673 SELECT col2 + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9673 SELECT col2 + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 - + 65 FROM tab2 cor0 ---- -27 -38 -39 query I rowsort SELECT DISTINCT - + col0 * cor0.col0 + - col2 + col1 AS col0 FROM tab1 AS cor0 ---- -37 -4143 -6483 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9676 SELECT - col0 * + CAST( NULL AS SIGNED ) + - col1 / cor0.col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9676 SELECT - col0 * + CAST ( NULL AS INTEGER ) + - col1 / cor0.col0 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 30 AS col2 FROM tab1 ---- -30 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9678 SELECT DISTINCT + col0 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-9678 SELECT DISTINCT + col0 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 ---- 0 query I rowsort SELECT - - col1 + col0 * 76 AS col1 FROM tab0 AS cor0 ---- 1910 2757 6855 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9680 SELECT - col2 / col1 + col2 * - col1 / CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9680 SELECT - col2 / col1 + col2 * - col1 / CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + 14 * col1 FROM tab2 ---- 238 434 826 query I rowsort SELECT - tab2.col0 * 15 * ( col0 * + ( col2 ) ) FROM tab2 ---- -19845 -2372760 -3557370 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 55 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to b90e74bece5521b514096c5b6e105fde onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9684 SELECT ALL cor1.col0 + + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-9684 SELECT ALL cor1.col0 + + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # use DIV operator for integer division query I rowsort label-9685 SELECT col2 + + col1 DIV - col2 + + col0 FROM tab1 AS cor0 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-9685 SELECT col2 + + col1 / - col2 + + col0 FROM tab1 AS cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-9686 SELECT DISTINCT col2 * ( + 24 ) + col2 DIV - ( 88 ) col1 FROM tab1 ---- 1296 1368 2303 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9686 SELECT DISTINCT col2 * ( + 24 ) + col2 / - ( 88 ) col1 FROM tab1 ---- 1296 1368 2303 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2, tab1 cor3 ---- 3645 values hashing to 6275704c8dcc358f1d7c268582457eaa skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * 51 col1 FROM tab2 ---- -1581 -3009 -867 query I rowsort SELECT DISTINCT col2 + col0 + - ( col0 ) FROM tab0 ---- 1 33 82 query I rowsort SELECT + col0 * col0 + - col0 * - col0 AS col2 FROM tab2 ---- 12168 12482 98 onlyif mysql # use DIV operator for integer division query I rowsort label-9691 SELECT ALL - - 89 * col1 - ( + col2 ) DIV col1 AS col2 FROM tab2 AS cor0 ---- 1511 2759 5251 skipif mysql # not compatible query I rowsort label-9691 SELECT ALL - - 89 * col1 - ( + col2 ) / col1 AS col2 FROM tab2 AS cor0 ---- 1511 2759 5251 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9692 SELECT ALL col2 / + col2 - - CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9692 SELECT ALL col2 / + col2 - - CAST ( NULL AS REAL ) * col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + ( col1 * col1 + col1 * + col1 ) FROM tab0 ---- 14792 16562 18818 query I rowsort SELECT DISTINCT + cor0.col1 - col0 FROM tab2 AS cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-9695 SELECT ALL - col2 * + col2 + 34 DIV + col1 AS col1 FROM tab2 AS cor0 ---- -1442 -676 -728 skipif mysql # not compatible query I rowsort label-9695 SELECT ALL - col2 * + col2 + 34 / + col1 AS col1 FROM tab2 AS cor0 ---- -1442 -676 -728 query I rowsort SELECT DISTINCT col1 * + col1 + + 67 AS col1 FROM tab1 AS cor0 ---- 167 236 743 query I rowsort SELECT DISTINCT + col2 - - ( + col2 + + col2 ) * - col0 * col0 AS col1 FROM tab1 AS cor0 ---- -1228704 -466887 -918 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * + col2 col1 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-9699 SELECT DISTINCT - col0 DIV - ( col1 ) FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-9699 SELECT DISTINCT - col0 / - ( col1 ) FROM tab2 AS cor0 ---- 0 1 4 query I rowsort SELECT DISTINCT + + col0 + col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -48 64 71 query I rowsort SELECT col0 + - 95 AS col1 FROM tab0 cor0 ---- -6 -60 -71 query I rowsort SELECT DISTINCT - col1 * + ( col1 ) FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT - col2 * + col2 * + ( col2 ) FROM tab0 AS cor0 ---- -1 -35937 -551368 query I rowsort SELECT DISTINCT - - col1 + - ( - col2 ) * col0 AS col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT + + col1 + + col1 * ( - col0 * + ( cor0.col0 ) ) AS col0 FROM tab2 AS cor0 ---- -106080 -1488 -358897 query I rowsort SELECT - 50 + + cor0.col0 FROM tab0, tab0 cor0 ---- 9 values hashing to daea533e187eb077b9c995ad22cb5b25 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col1 + - tab1.col1 + + tab1.col2 col1 FROM tab1 ---- 54 57 96 query I rowsort SELECT ALL + col1 + - 21 FROM tab0 AS cor0 ---- 65 70 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9709 SELECT + CAST( NULL AS SIGNED ) + 94 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9709 SELECT + CAST ( NULL AS INTEGER ) + 94 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - + ( - col0 ) FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT - 21 * 62 + col0 AS col0 FROM tab0 AS cor0 ---- -1213 -1267 -1278 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9712 SELECT ALL CAST( 65 AS SIGNED ) * - col1 FROM tab0 AS cor0 ---- -5590 -5915 -6305 skipif mysql # not compatible query I rowsort label-9712 SELECT ALL CAST ( 65 AS INTEGER ) * - col1 FROM tab0 AS cor0 ---- -5590 -5915 -6305 onlyif mysql # use DIV operator for integer division query I rowsort label-9713 SELECT DISTINCT + ( + col1 ) DIV cor0.col1 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-9713 SELECT DISTINCT + ( + col1 ) / cor0.col1 FROM tab0 AS cor0 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-9714 SELECT - + col2 + + col0 DIV + col1 - 63 * - 57 FROM tab2 AS cor0 ---- 3557 3564 3566 skipif mysql # not compatible query I rowsort label-9714 SELECT - + col2 + + col0 / + col1 - 63 * - 57 FROM tab2 AS cor0 ---- 3557 3564 3566 onlyif mysql # use DIV operator for integer division query I rowsort label-9715 SELECT - col0 DIV - ( + col2 ) AS col0 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-9715 SELECT - col0 / - ( + col2 ) AS col0 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT + 84 + - col0 AS col1 FROM tab1 cor0 ---- 20 4 81 query I rowsort SELECT ALL + 58 * + col0 AS col0 FROM tab1 AS cor0 ---- 174 3712 4640 query I rowsort SELECT ALL + 61 + 71 AS col2 FROM tab0 AS cor0 ---- 132 132 132 onlyif mysql # use DIV operator for integer division query I rowsort label-9719 SELECT - col2 * col2 - - cor0.col0 DIV - col0 FROM tab0 AS cor0 ---- -1090 -2 -6725 skipif mysql # not compatible query I rowsort label-9719 SELECT - col2 * col2 - - cor0.col0 / - col0 FROM tab0 AS cor0 ---- -1090 -2 -6725 query I rowsort SELECT DISTINCT ( col0 ) * + col1 + - col1 AS col1 FROM tab0 cor0 ---- 1978 3298 8008 query I rowsort SELECT ALL + + 4 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 6fec965b60b9885c4af73e85422cfd9b onlyif mysql # use DIV operator for integer division query I rowsort label-9722 SELECT + - 6 + col0 DIV ( + col1 ) AS col0 FROM tab0 cor0 ---- -6 -6 -6 skipif mysql # not compatible query I rowsort label-9722 SELECT + - 6 + col0 / ( + col1 ) AS col0 FROM tab0 cor0 ---- -6 -6 -6 query I rowsort SELECT cor0.col1 * col1 AS col2 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT ALL - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT col2 - 66 FROM tab0 ---- -33 -65 16 query I rowsort SELECT ALL - col2 + col0 * col2 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT cor0.col1 * + col2 + + cor0.col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT - col0 * cor0.col2 AS col1 FROM tab2 cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-9729 SELECT ALL col1 + - cor0.col0 DIV + col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-9729 SELECT ALL col1 + - cor0.col0 / + col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT - 8 * + col1 - 17 AS col0 FROM tab0 AS cor0 ---- -705 -745 -793 onlyif mysql # use DIV operator for integer division query I rowsort label-9731 SELECT ALL + col1 + + 43 + + col2 DIV ( tab1.col2 + + col2 ) col0 FROM tab1 ---- 53 56 69 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9731 SELECT ALL + col1 + + 43 + + col2 / ( tab1.col2 + + col2 ) col0 FROM tab1 ---- 53 56 69 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9732 SELECT col2 * + cor0.col2 + + CAST( + cor0.col2 AS SIGNED ) FROM tab0 AS cor0 ---- 1122 2 6806 skipif mysql # not compatible query I rowsort label-9732 SELECT col2 * + cor0.col2 + + CAST ( + cor0.col2 AS INTEGER ) FROM tab0 AS cor0 ---- 1122 2 6806 onlyif mysql # use DIV operator for integer division query I rowsort label-9733 SELECT ALL col0 + col1 + col2 DIV - col1 FROM tab1 ---- 27 69 86 skipif mysql # not compatible query I rowsort label-9733 SELECT ALL col0 + col1 + col2 / - col1 FROM tab1 ---- 27 69 86 query I rowsort SELECT ALL + cor0.col0 * col2 * + col0 + col2 FROM tab1 cor0 ---- 233529 540 614496 query I rowsort SELECT + + col1 + 4 FROM tab2 AS cor0 ---- 21 35 63 query I rowsort SELECT - col1 + 21 AS col0 FROM tab1 ---- -5 11 8 query I rowsort SELECT DISTINCT + + 98 AS col0 FROM tab1, tab2, tab2 AS cor0 ---- 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9738 SELECT ALL + CAST( NULL AS SIGNED ) + + 56 * + col0 AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9738 SELECT ALL + CAST ( NULL AS INTEGER ) + + 56 * + col0 AS col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9739 SELECT ALL tab0.col2 + + 46 DIV + tab0.col0 FROM tab0 ---- 2 34 82 skipif mysql # not compatible query I rowsort label-9739 SELECT ALL tab0.col2 + + 46 / + tab0.col0 FROM tab0 ---- 2 34 82 query I rowsort SELECT DISTINCT + ( 32 ) + - col0 FROM tab1 ---- -32 -48 29 skipif mysql # not compatible query I rowsort SELECT ALL CAST ( + 63 AS REAL ) + tab2.col2 AS col0 FROM tab2 ---- 101 89 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9742 SELECT CAST( NULL AS SIGNED ) * + 77 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-9742 SELECT CAST ( NULL AS INTEGER ) * + 77 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # use DIV operator for integer division query I rowsort label-9743 SELECT DISTINCT ( + 48 ) DIV + col1 + + col0 AS col1 FROM tab1 ---- 4 68 83 skipif mysql # not compatible query I rowsort label-9743 SELECT DISTINCT ( + 48 ) / + col1 + + col0 AS col1 FROM tab1 ---- 4 68 83 query I rowsort SELECT DISTINCT ( col1 ) + cor0.col1 * - col1 AS col0 FROM tab0 AS cor0 ---- -7310 -8190 -9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 0 col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL - col0 + - ( cor0.col2 ) AS col2 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT DISTINCT - col2 * ( + col2 ) AS col2 FROM tab2 AS cor0 ---- -1444 -676 -729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9748 SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9748 SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab1, tab2 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9749 SELECT - ( ( col0 ) ) + - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9749 SELECT - ( ( col0 ) ) + - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT 29 + col2 * ( - col2 ) FROM tab0 AS cor0 ---- -1060 -6695 28 query I rowsort SELECT 28 * col2 FROM tab1 ---- 1512 1596 2688 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9752 SELECT DISTINCT - CAST( - col2 AS SIGNED ) + - col1 * + 71 FROM tab2 ---- -1169 -2174 -4163 skipif mysql # not compatible query I rowsort label-9752 SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + - col1 * + 71 FROM tab2 ---- -1169 -2174 -4163 query I rowsort SELECT - ( - 57 ) * col0 + col1 * + 37 FROM tab1 ---- 1133 4018 5041 query I rowsort SELECT ALL - 60 - + col1 FROM tab0 AS cor0 ---- -146 -151 -157 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 4 + col0 col2 FROM tab0 AS cor0 ---- 28 39 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9756 SELECT ALL - col0 * - col0 * + CAST( + col1 AS SIGNED ) - cor0.col1 FROM tab2 AS cor0 ---- 106080 1488 358897 skipif mysql # not compatible query I rowsort label-9756 SELECT ALL - col0 * - col0 * + CAST ( + col1 AS INTEGER ) - cor0.col1 FROM tab2 AS cor0 ---- 106080 1488 358897 query I rowsort SELECT - 4 + - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -14 -17 -30 query I rowsort SELECT ( col1 ) * tab2.col1 AS col1 FROM tab2 ---- 289 3481 961 query I rowsort SELECT - col0 + + col2 * - 90 FROM tab2 ---- -2418 -2437 -3499 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9760 SELECT DISTINCT col0 + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-9760 SELECT DISTINCT col0 + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 58 + + col1 + - 2 col1 FROM tab0 ---- 142 147 153 query I rowsort SELECT + col0 + col1 * - 98 FROM tab1 ---- -1194 -2545 -916 query I rowsort SELECT DISTINCT - col1 * tab1.col0 + col2 * col1 * col0 FROM tab1 ---- 35840 4134 98800 query I rowsort SELECT - col2 + ( cor0.col1 ) FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT - + col0 * ( 62 ) * col1 FROM tab0 AS cor0 ---- -127968 -210490 -502138 query I rowsort SELECT DISTINCT 37 * + col2 FROM tab0 ---- 1221 3034 37 query I rowsort SELECT DISTINCT - col0 * 21 * col0 AS col1 FROM tab1 cor0 ---- -134400 -189 -86016 query I rowsort SELECT - col0 + + cor0.col1 * - 67 FROM tab0 AS cor0 ---- -5786 -6186 -6534 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + cor0.col2 + col0 + - col0 col0 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT ALL col2 * ( + 0 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col1 * col2 - - col0 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT col0 * ( - col0 ) AS col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT 5 + + col0 AS col0 FROM tab2 AS cor0 ---- 12 83 84 query I rowsort SELECT DISTINCT - col1 + - 43 - + col0 AS col0 FROM tab1 ---- -117 -136 -72 query I rowsort SELECT - - ( col0 ) * cor0.col2 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9777 SELECT - - CAST( 17 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0 ---- 442 459 646 skipif mysql # not compatible query I rowsort label-9777 SELECT - - CAST ( 17 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0 ---- 442 459 646 query I rowsort SELECT ALL + - 83 FROM tab2 AS cor0 ---- -83 -83 -83 query I rowsort SELECT + 62 * col0 * col2 AS col2 FROM tab0 AS cor0 ---- 2170 452476 49104 onlyif mysql # use DIV operator for integer division query I rowsort label-9780 SELECT ALL - + col2 DIV - col1 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-9780 SELECT ALL - + col2 / - col1 FROM tab1 AS cor0 ---- 2 5 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 36 col1 FROM tab1 cor0 ---- 36 36 36 onlyif mysql # use DIV operator for integer division query I rowsort label-9782 SELECT cor0.col0 DIV + col2 + - col0 - col2 * - col2 FROM tab0 AS cor0 ---- 1 1065 6636 skipif mysql # not compatible query I rowsort label-9782 SELECT cor0.col0 / + col2 + - col0 - col2 * - col2 FROM tab0 AS cor0 ---- 1 1065 6636 query I rowsort SELECT + 40 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0 query I rowsort SELECT ALL - 57 * col0 + + col1 AS col2 FROM tab2 AS cor0 ---- -368 -4387 -4486 query I rowsort SELECT ALL cor1.col2 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT ALL - 73 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc onlyif mysql # use DIV operator for integer division query I rowsort label-9787 SELECT + 82 DIV cor0.col2 FROM tab0 AS cor0 ---- 1 2 82 skipif mysql # not compatible query I rowsort label-9787 SELECT + 82 / cor0.col2 FROM tab0 AS cor0 ---- 1 2 82 query I rowsort SELECT DISTINCT - 53 * + col1 FROM tab2 AS cor0 ---- -1643 -3127 -901 query I rowsort SELECT + 42 + - col2 FROM tab0 AS cor0 ---- -40 41 9 query I rowsort SELECT DISTINCT - col2 * 45 + col1 FROM tab1 AS cor0 ---- -2404 -2555 -4307 query I rowsort SELECT ALL - col1 * + 66 + - col2 - 60 FROM tab1 cor0 ---- -1014 -1830 -777 query I rowsort SELECT ALL + + ( col2 ) + + col1 AS col1 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT - ( 37 ) * - cor0.col2 + 83 * - col0 AS col1 FROM tab0 AS cor0 ---- -2868 -4353 -771 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col0 + col0 * + cor0.col2 col0 FROM tab2 cor0 ---- 196 2106 3081 query I rowsort SELECT ALL + col1 - 62 FROM tab1 cor0 ---- -36 -49 -52 query I rowsort SELECT ALL tab2.col1 * - col1 + - tab2.col0 AS col0 FROM tab2 ---- -3559 -368 -968 query I rowsort SELECT col2 + - 51 + + ( col1 ) AS col1 FROM tab0 ---- 122 47 68 query I rowsort SELECT ALL + 54 FROM tab0, tab0 AS cor0 ---- 9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09 query I rowsort SELECT 0 * - 55 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL - + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9801 SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 33 + col0 + 43 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9801 SELECT DISTINCT + CAST ( NULL AS REAL ) * 33 + col0 + 43 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - ( + col0 ) + - col0 * ( 63 ) AS col1 FROM tab0 AS cor0 ---- -1536 -2240 -5696 query I rowsort SELECT ALL - + col0 * col1 + col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT + ( col1 ) + - col2 * col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT DISTINCT col2 + - col1 * + col1 * cor0.col0 FROM tab0 AS cor0 ---- -177471 -329314 -736927 query I rowsort SELECT DISTINCT ( col2 ) + col0 * 91 FROM tab2 AS cor0 ---- 664 7124 7227 onlyif mysql # use DIV operator for integer division query I rowsort label-9807 SELECT DISTINCT - col1 DIV + col1 + - col2 - 51 AS col1 FROM tab1 AS cor0 ---- -106 -109 -148 skipif mysql # not compatible query I rowsort label-9807 SELECT DISTINCT - col1 / + col1 + - col2 - 51 AS col1 FROM tab1 AS cor0 ---- -106 -109 -148 query I rowsort SELECT ALL + + 75 FROM tab1 AS cor0 ---- 75 75 75 query I rowsort SELECT ALL 22 * col2 + col2 FROM tab0 AS cor0 ---- 1886 23 759 query I rowsort SELECT DISTINCT tab2.col0 * + ( 51 + cor0.col0 ) AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to 1bc5b278d7f9c4f5a429e2c6972a562b onlyif mysql # use DIV operator for integer division query I rowsort label-9811 SELECT ALL + cor0.col2 * col0 DIV + col2 AS col2 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-9811 SELECT ALL + cor0.col2 * col0 / + col2 AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT + col2 + 86 * col0 FROM tab2 cor0 ---- 629 6734 6832 query I rowsort SELECT ALL col0 + + 88 * col1 FROM tab1 cor0 ---- 1224 2291 944 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9814 SELECT - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9814 SELECT - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9815 SELECT DISTINCT col2 DIV - 89 AS col1 FROM tab1 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-9815 SELECT DISTINCT col2 / - 89 AS col1 FROM tab1 AS cor0 ---- -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 - - 25 col2 FROM tab0 AS cor0 ---- 111 116 122 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + - ( 18 * + col2 ) col2 FROM tab2 AS cor0 ---- -390 -479 -605 query I rowsort SELECT ALL + col0 + 31 + col0 FROM tab0 AS cor0 ---- 101 209 79 query I rowsort SELECT + - col2 * col2 AS col0 FROM tab0 cor0 ---- -1 -1089 -6724 onlyif mysql # use DIV operator for integer division query I rowsort label-9820 SELECT DISTINCT - ( col1 ) + col1 DIV - col2 FROM tab0 AS cor0 ---- -194 -88 -92 skipif mysql # not compatible query I rowsort label-9820 SELECT DISTINCT - ( col1 ) + col1 / - col2 FROM tab0 AS cor0 ---- -194 -88 -92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9821 SELECT DISTINCT + CAST( 64 AS SIGNED ) * col0 * + col1 FROM tab0 AS cor0 ---- 132096 217280 518336 skipif mysql # not compatible query I rowsort label-9821 SELECT DISTINCT + CAST ( 64 AS INTEGER ) * col0 * + col1 FROM tab0 AS cor0 ---- 132096 217280 518336 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9822 SELECT + - CAST( NULL AS SIGNED ) + + col0 * cor0.col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9822 SELECT + - CAST ( NULL AS INTEGER ) + + col0 * cor0.col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9823 SELECT CAST( NULL AS SIGNED ) + col2 * - cor0.col2 + + 21 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9823 SELECT CAST ( NULL AS INTEGER ) + col2 * - cor0.col2 + + 21 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9824 SELECT - col2 * cor0.col1 + col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9824 SELECT - col2 * cor0.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 col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT 5 * col0 AS col0 FROM tab2 AS cor0 ---- 35 390 395 query I rowsort SELECT 98 * + col1 FROM tab0 AS cor0 ---- 8428 8918 9506 query I rowsort SELECT + 27 + + col1 + + 13 FROM tab0 AS cor0 ---- 126 131 137 query I rowsort SELECT ALL col1 * - cor0.col2 + col2 * col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - - cor0.col0 * cor0.col0 FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9831 SELECT ALL CAST( NULL AS SIGNED ) + - col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9831 SELECT ALL CAST ( NULL AS INTEGER ) + - col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + col0 * + col0 + - col1 FROM tab2 ---- 18 6025 6224 query I rowsort SELECT 48 * col1 + col2 AS col1 FROM tab0 ---- 4161 4450 4657 query I rowsort SELECT ALL 35 AS col2 FROM tab2 ---- 35 35 35 onlyif mysql # use DIV operator for integer division query I rowsort label-9835 SELECT cor0.col1 * 6 DIV + 30 AS col0 FROM tab0 AS cor0 ---- 17 18 19 skipif mysql # not compatible query I rowsort label-9835 SELECT cor0.col1 * 6 / + 30 AS col0 FROM tab0 AS cor0 ---- 17 18 19 query I rowsort SELECT col2 + + col2 AS col1 FROM tab2 cor0 ---- 52 54 76 query I rowsort SELECT - ( - 83 ) * - cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 5bab5d60bb60d58e078bddcf25fc0161 query I rowsort SELECT col2 + + col0 * ( - col1 ) AS col0 FROM tab1 ---- -24 -583 -944 query I rowsort SELECT ALL + col0 + - tab0.col0 + col1 AS col2 FROM tab0 ---- 86 91 97 query I rowsort SELECT - - col2 * col0 * + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT 55 * col1 + col0 FROM tab0 cor0 ---- 4754 5094 5370 query I rowsort SELECT ALL + - 6 FROM tab1 cor0 ---- -6 -6 -6 query I rowsort SELECT - 86 * col0 + + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -2031 -3009 -7572 onlyif mysql # use DIV operator for integer division query I rowsort label-9844 SELECT + - cor0.col1 DIV + col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9844 SELECT + - cor0.col1 / + col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + 52 FROM tab2, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 76100d10f51995d20efdeb657e444d3c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9846 SELECT + + col0 * CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9846 SELECT + + col0 * CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - cor0.col2 + 38 FROM tab1 AS cor0 ---- -16 -19 -58 query I rowsort SELECT ALL + col2 + - 46 AS col1 FROM tab2 AS cor0 ---- -19 -20 -8 query I rowsort SELECT DISTINCT + col0 + - 49 * - col1 AS col2 FROM tab0 cor0 ---- 4238 4548 4788 query I rowsort SELECT - + col2 - col0 AS col2 FROM tab1 cor0 ---- -121 -176 -57 query I rowsort SELECT + 86 + 22 - col2 * ( col0 ) AS col0 FROM tab0 AS cor0 ---- -684 -7190 73 query I rowsort SELECT - - ( - col1 ) * - cor0.col2 + - 91 AS col1 FROM tab2 AS cor0 ---- 1443 555 746 query I rowsort SELECT + - col2 * + ( col1 ) FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-9854 SELECT - - col1 DIV col1 - ( col1 * - col1 ) AS col2 FROM tab1 AS cor0 ---- 101 170 677 skipif mysql # not compatible query I rowsort label-9854 SELECT - - col1 / col1 - ( col1 * - col1 ) AS col2 FROM tab1 AS cor0 ---- 101 170 677 onlyif mysql # use DIV operator for integer division query I rowsort label-9855 SELECT - col0 + - col0 DIV col2 AS col0 FROM tab1 AS cor0 ---- -3 -65 -80 skipif mysql # not compatible query I rowsort label-9855 SELECT - col0 + - col0 / col2 AS col0 FROM tab1 AS cor0 ---- -3 -65 -80 query I rowsort SELECT 90 * - tab0.col0 AS col0 FROM tab0 ---- -2160 -3150 -8010 query I rowsort SELECT col2 * 35 FROM tab1 ---- 1890 1995 3360 query I rowsort SELECT ALL - tab2.col0 AS col2 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 onlyif mysql # use DIV operator for integer division query I rowsort label-9859 SELECT 24 DIV + col1 AS col2 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9859 SELECT 24 / + col1 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT cor0.col2 + cor0.col0 AS col0 FROM tab2, tab0, tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + col1 - col1 * + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT ALL + + 47 * col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 1464 2851 878 query I rowsort SELECT 35 * 81 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to f5bfcece41a865b431891c56f35032bb query I rowsort SELECT DISTINCT - 94 - + col0 FROM tab0 AS cor0 ---- -118 -129 -183 query I rowsort SELECT + 39 - col0 AS col0 FROM tab2 AS cor0 ---- -39 -40 32 onlyif mysql # use DIV operator for integer division query I rowsort label-9866 SELECT ALL + ( col2 ) DIV ( - col2 ) + col0 AS col0 FROM tab0 cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-9866 SELECT ALL + ( col2 ) / ( - col2 ) + col0 AS col0 FROM tab0 cor0 ---- 23 34 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9867 SELECT DISTINCT - CAST( - col1 * + col0 AS SIGNED ) FROM tab2 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-9867 SELECT DISTINCT - CAST ( - col1 * + col0 AS INTEGER ) FROM tab2 ---- 1343 217 4602 query I rowsort SELECT ALL + ( - ( col0 ) ) AS col1 FROM tab0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 5 + - col2 * - 17 * col2 col0 FROM tab0 ---- 114313 18518 22 query I rowsort SELECT ALL + ( - tab2.col2 ) * ( 3 ) + - tab2.col1 + + ( 66 * col1 ) FROM tab2 ---- 1934 3757 991 query I rowsort SELECT - cor0.col2 * - col0 + 21 FROM tab2 AS cor0 ---- 2049 210 3023 onlyif mysql # use DIV operator for integer division query I rowsort label-9872 SELECT DISTINCT - col2 DIV col2 + col1 col2 FROM tab0 AS cor0 ---- 85 90 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9872 SELECT DISTINCT - col2 / col2 + col1 col2 FROM tab0 AS cor0 ---- 85 90 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col1 + + 64 * - cor0.col1 col2 FROM tab2 AS cor0 ---- -1377 -2945 -7257 query I rowsort SELECT ALL + + col2 * col1 + - 99 * - 98 FROM tab0 cor0 ---- 12540 17164 9799 query I rowsort SELECT - col1 * col1 + + 16 * + cor0.col1 FROM tab0 AS cor0 ---- -6020 -6825 -7857 query I rowsort SELECT - col0 - 67 FROM tab0 ---- -102 -156 -91 query I rowsort SELECT DISTINCT 23 * - tab1.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- -1242 -1311 -2208 query I rowsort SELECT ALL 68 FROM tab0, tab2 cor0 ---- 9 values hashing to 599bee15ac4cc39b859854e07dfe7990 query I rowsort SELECT DISTINCT tab1.col1 - + 6 AS col0 FROM tab1, tab1 AS cor0 ---- 20 4 7 query I rowsort SELECT - ( + cor0.col0 ) * col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT + + 36 FROM tab2 cor0 ---- 36 36 36 skipif mysql # not compatible query I rowsort SELECT CAST ( - col0 AS REAL ) + - col1 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT ALL - 94 * + col0 FROM tab2 cor0 ---- -658 -7332 -7426 query I rowsort SELECT DISTINCT - 70 * 82 + col1 FROM tab2 AS cor0 ---- -5681 -5709 -5723 query I rowsort SELECT + 34 * + ( col0 ) AS col1 FROM tab0 AS cor0 ---- 1190 3026 816 query I rowsort SELECT ALL + col1 * - 97 + - col0 AS col0 FROM tab1 AS cor0 ---- -1034 -1341 -2525 query I rowsort SELECT ALL col0 * 24 FROM tab0 AS cor0 ---- 2136 576 840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 64 * col2 col1 FROM tab1 AS cor0 ---- -3456 -3648 -6144 onlyif mysql # use DIV operator for integer division query I rowsort label-9889 SELECT DISTINCT + col0 * col0 DIV + col1 AS col2 FROM tab1 AS cor0 ---- 0 409 492 skipif mysql # not compatible query I rowsort label-9889 SELECT DISTINCT + col0 * col0 / + col1 AS col2 FROM tab1 AS cor0 ---- 0 409 492 query I rowsort SELECT ALL col0 * - col2 + + col1 AS col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT + tab2.col1 * - col2 + - col2 * col1 AS col0 FROM tab2 ---- -1292 -1674 -3068 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * tab0.col0 col0 FROM tab0 ---- 1225 576 7921 query III rowsort SELECT ALL * FROM tab2 WHERE ( NULL ) < ( - col0 ) ---- query I rowsort SELECT + col2 * col0 * tab0.col0 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT ALL col0 * col2 * - col0 AS col0 FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT ALL - col2 + - col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0 ---- query I rowsort SELECT + col0 * + cor0.col2 + - col2 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + cor0.col1 * + col0 ) ---- query I rowsort SELECT - cor0.col0 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT ALL - col1 + - col0 + + cor0.col2 * col1 FROM tab0 AS cor0 ---- -35 2728 7282 query I rowsort SELECT ALL + col2 * - col0 + col1 * col2 + + col0 FROM tab2 ---- -2277 -416 655 onlyif mysql # use DIV operator for integer division query I rowsort label-9902 SELECT tab2.col1 DIV col1 - tab2.col2 FROM tab2 ---- -25 -26 -37 skipif mysql # not compatible query I rowsort label-9902 SELECT tab2.col1 / col1 - tab2.col2 FROM tab2 ---- -25 -26 -37 query III rowsort SELECT * FROM tab0 WHERE NOT ( + col2 * col0 + col1 * - col2 ) NOT IN ( col0 ) ---- query I rowsort SELECT - tab0.col0 / + tab0.col2 AS col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND - col2 * - col2 ---- query I rowsort SELECT + col2 * col1 * - col0 AS col2 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT ALL col2 * col2 * + col0 FROM tab2 ---- 114076 5103 52728 query III rowsort SELECT * FROM tab2 WHERE NOT NULL IN ( col1 / - col1 ) ---- query I rowsort SELECT ALL col1 + tab0.col0 + + tab0.col0 FROM tab0 ---- 134 167 269 onlyif mysql # use DIV operator for integer division query I rowsort label-9909 SELECT + col0 DIV tab2.col0 + - col2 DIV col1 AS col1 FROM tab2 ---- -1 1 1 skipif mysql # not compatible query I rowsort label-9909 SELECT + col0 / tab2.col0 + - col2 / col1 AS col1 FROM tab2 ---- -1 1 1 query I rowsort SELECT DISTINCT col1 + + col0 + - col2 * + col2 * + col0 AS col2 FROM tab1 ---- -207862 -737187 -8719 query I rowsort SELECT + + col2 * col2 + col0 FROM tab0 AS cor0 ---- 1113 36 6813 onlyif mysql # use DIV operator for integer division query I rowsort label-9912 SELECT ALL + col0 * col1 DIV cor0.col0 + col0 FROM tab0 cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-9912 SELECT ALL + col0 * col1 / cor0.col0 + col0 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT ALL - col1 + + col2 * + cor0.col2 FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT ALL + col2 * cor0.col1 * col1 AS col1 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT col2 * - col1 + col2 * - col2 AS col1 FROM tab1 ---- -10464 -3819 -4320 query I rowsort SELECT DISTINCT tab1.col0 * + col1 + col1 AS col0 FROM tab1 ---- 104 1053 650 query I rowsort SELECT DISTINCT - col0 * + col0 + col2 FROM tab1 ---- -4039 -6304 45 query I rowsort SELECT - tab2.col1 * + col2 * col0 + - col2 AS col0 FROM tab2 ---- -119678 -51072 -5886 query I rowsort SELECT DISTINCT col0 + col2 + + col2 * + col0 FROM tab1 ---- 219 3769 7856 query I rowsort SELECT DISTINCT col1 * - col1 + col1 AS col0 FROM tab0 ---- -7310 -8190 -9312 query I rowsort SELECT col0 * + col2 + col0 AS col0 FROM tab1 ---- 165 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + col2 + col1 col2 FROM tab0 AS cor0 ---- 133 143 262 query I rowsort SELECT DISTINCT + col1 + + col2 * - col2 FROM tab2 cor0 ---- -1427 -617 -698 onlyif mysql # use DIV operator for integer division query I rowsort label-9924 SELECT ALL - col1 DIV + col1 col2 FROM tab2 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9924 SELECT ALL - col1 / + col1 col2 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL cor0.col1 + + col2 * col1 AS col0 FROM tab1 AS cor0 ---- 1261 1430 580 onlyif mysql # use DIV operator for integer division query I rowsort label-9926 SELECT - col1 * col1 DIV col1 + - col1 FROM tab0 ---- -172 -182 -194 skipif mysql # not compatible query I rowsort label-9926 SELECT - col1 * col1 / col1 + - col1 FROM tab0 ---- -172 -182 -194 query I rowsort SELECT ( + tab2.col0 ) * + col1 + 3 * col0 FROM tab2 ---- 1580 238 4836 query I rowsort SELECT 19 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11 query I rowsort SELECT DISTINCT - col2 + ( col2 ) AS col1 FROM tab0 cor0 ---- 0 query III rowsort SELECT * FROM tab0 WHERE NOT ( col0 ) <> + col1 ---- query I rowsort SELECT DISTINCT col0 * col1 * col1 FROM tab0 ---- 177504 329315 737009 query I rowsort SELECT col0 * col0 + col2 + - tab0.col0 FROM tab0 ---- 1191 585 7914 query I rowsort SELECT ALL - col0 - - col0 AS col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL 72 * + col0 AS col1 FROM tab1 AS cor0 ---- 216 4608 5760 query I rowsort SELECT DISTINCT - col1 - - col0 AS col2 FROM tab0 AS cor0 ---- -2 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-9936 SELECT col0 DIV col1 + col0 * + 54 AS col1 FROM tab2 AS cor0 ---- 378 4213 4270 skipif mysql # not compatible query I rowsort label-9936 SELECT col0 / col1 + col0 * + 54 AS col1 FROM tab2 AS cor0 ---- 378 4213 4270 query I rowsort SELECT DISTINCT - 61 * col2 FROM tab2 AS cor0 ---- -1586 -1647 -2318 query I rowsort SELECT - col0 + + col2 * - 7 FROM tab0 AS cor0 ---- -255 -42 -663 query I rowsort SELECT 9 * - col1 AS col1 FROM tab2 AS cor0 ---- -153 -279 -531 query I rowsort SELECT - 49 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to adfccb10c9468825d9961e3613140f89 query I rowsort SELECT - col1 * - ( col2 ) AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT + col0 * - col2 * cor0.col0 + + col0 - - col0 FROM tab0 AS cor0 ---- -1155 -18960 -649344 query I rowsort SELECT + cor0.col2 * - 58 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to 0d2818ff3cd2b8361656b7669d1c8b5c query I rowsort SELECT + col1 * - ( 83 ) FROM tab1 ---- -1079 -2158 -830 query I rowsort SELECT - col0 * cor0.col1 - ( - col0 + col0 ) FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT cor0.col0 * 21 FROM tab1 AS cor0 ---- 1344 1680 63 query I rowsort SELECT - col1 * col0 - col2 * - 70 AS col1 FROM tab2 ---- -2782 1317 1673 query I rowsort SELECT - col0 + - 88 * col1 AS col1 FROM tab1 ---- -1224 -2291 -944 onlyif mysql # use DIV operator for integer division query I rowsort label-9949 SELECT + col2 * col1 DIV cor0.col1 + 94 FROM tab2 cor0 ---- 120 121 132 skipif mysql # not compatible query I rowsort label-9949 SELECT + col2 * col1 / cor0.col1 + 94 FROM tab2 cor0 ---- 120 121 132 query I rowsort SELECT ALL 53 * - ( + col0 ) AS col1 FROM tab2 AS cor0 ---- -371 -4134 -4187 query I rowsort SELECT ( + cor0.col1 ) AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT DISTINCT + - 11 * - col2 FROM tab1 AS cor0 ---- 1056 594 627 query I rowsort SELECT DISTINCT + col2 + - col0 - + col2 FROM tab2 AS cor0 ---- -7 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-9954 SELECT - 79 + - 9 DIV - col0 - 50 AS col1 FROM tab1 AS cor0 ---- -126 -129 -129 skipif mysql # not compatible query I rowsort label-9954 SELECT - 79 + - 9 / - col0 - 50 AS col1 FROM tab1 AS cor0 ---- -126 -129 -129 query I rowsort SELECT DISTINCT - 90 * - 39 AS col0 FROM tab1 AS cor0 ---- 3510 onlyif mysql # use DIV operator for integer division query I rowsort label-9956 SELECT - 68 DIV col1 FROM tab2 AS cor0 ---- -1 -2 -4 skipif mysql # not compatible query I rowsort label-9956 SELECT - 68 / col1 FROM tab2 AS cor0 ---- -1 -2 -4 query I rowsort SELECT - + ( cor0.col0 ) + - ( + cor0.col0 ) * col2 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT DISTINCT - - col2 * - col0 AS col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT col2 * + col1 + - col0 AS col2 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT - - col2 - - 8 FROM tab2 AS cor0 ---- 34 35 46 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col1 * col1 col2 FROM tab0 AS cor0 ---- 7310 8190 9312 query I rowsort SELECT - - col0 + + cor0.col1 * col2 FROM tab1 AS cor0 ---- 1328 1407 634 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 49 * + col0 col0 FROM tab1 ---- 147 3136 3920 onlyif mysql # use DIV operator for integer division query I rowsort label-9964 SELECT + ( col2 ) DIV - 22 + + tab1.col2 AS col0 FROM tab1 ---- 52 55 92 skipif mysql # not compatible query I rowsort label-9964 SELECT + ( col2 ) / - 22 + + tab1.col2 AS col0 FROM tab1 ---- 52 55 92 query I rowsort SELECT col2 * ( + 45 ) AS col1 FROM tab0 AS cor0 ---- 1485 3690 45 query I rowsort SELECT DISTINCT + - col1 + cor0.col0 + col1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT - col0 + - cor0.col0 * + col0 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT DISTINCT - col1 * 10 AS col0 FROM tab0 AS cor0 ---- -860 -910 -970 query I rowsort SELECT ALL - + col2 * + col1 + + 77 * cor0.col2 + ( - col1 ) FROM tab1 AS cor0 ---- 2728 3809 6131 onlyif mysql # use DIV operator for integer division query I rowsort label-9970 SELECT ALL col2 DIV - cor0.col1 + 33 * col0 AS col1 FROM tab1 AS cor0 ---- 2107 2633 97 skipif mysql # not compatible query I rowsort label-9970 SELECT ALL col2 / - cor0.col1 + 33 * col0 AS col1 FROM tab1 AS cor0 ---- 2107 2633 97 query I rowsort SELECT ALL col2 * col2 + + col2 FROM tab0 cor0 ---- 1122 2 6806 query I rowsort SELECT ALL + cor0.col2 * col1 * ( col0 * cor0.col0 ) + + col2 + + col2 FROM tab1 cor0 ---- 12744 2334834 7987392 query I rowsort SELECT ALL + 57 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 61da70c624ad60604a668f7f8f29392a query I rowsort SELECT DISTINCT + 17 FROM tab0, tab1 AS cor0, tab2 cor1 ---- 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 71 col2 FROM tab0 AS cor0 ---- 71 71 71 query I rowsort SELECT DISTINCT - col1 * col1 + + col2 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT + 31 AS col2 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1 ---- 81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c query I rowsort SELECT ALL - + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT + col2 + ( col1 ) - + 30 FROM tab2 AS cor0 ---- 25 28 55 query I rowsort SELECT ALL - ( + col2 ) AS col1 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT ALL + 91 + + col0 AS col0 FROM tab2 AS cor0 ---- 169 170 98 query I rowsort SELECT cor0.col2 + - cor0.col0 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT + + cor0.col1 * col0 + col2 AS col1 FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT + + col1 * col1 + col1 * col2 AS col0 FROM tab0 AS cor0 ---- 10234 15743 9506 query I rowsort SELECT DISTINCT col1 * col2 + + 56 AS col2 FROM tab2 AS cor0 ---- 1590 702 893 query I rowsort SELECT DISTINCT + 84 - - cor0.col1 * + col2 FROM tab2 AS cor0 ---- 1618 730 921 query I rowsort SELECT ALL 82 * + col1 AS col2 FROM tab0 AS cor0 ---- 7052 7462 7954 query I rowsort SELECT - cor0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT + + col0 * - cor0.col2 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL 1 + + col1 FROM tab2 AS cor0 ---- 18 32 60 query I rowsort SELECT ALL 78 * 99 AS col2 FROM tab2 ---- 7722 7722 7722 query I rowsort SELECT ALL col0 * 32 AS col2 FROM tab1 AS cor0 ---- 2048 2560 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 81 col1 FROM tab0 AS cor0 ---- 81 onlyif mysql # use DIV operator for integer division query I rowsort label-9994 SELECT DISTINCT + cor0.col1 + cor0.col0 DIV 6 FROM tab0, tab1 cor0 ---- 20 26 skipif mysql # not compatible query I rowsort label-9994 SELECT DISTINCT + cor0.col1 + cor0.col0 / 6 FROM tab0, tab1 cor0 ---- 20 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9995 SELECT CAST( + 58 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 58 58 58 skipif mysql # not compatible query I rowsort label-9995 SELECT CAST ( + 58 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 58 58 58 onlyif mysql # use DIV operator for integer division query I rowsort label-9996 SELECT DISTINCT - col0 + col1 DIV cor0.col1 AS col0 FROM tab1 cor0 ---- -2 -63 -79 skipif mysql # not compatible query I rowsort label-9996 SELECT DISTINCT - col0 + col1 / cor0.col1 AS col0 FROM tab1 cor0 ---- -2 -63 -79 query I rowsort SELECT - col0 + + col2 * + col2 AS col2 FROM tab2 AS cor0 ---- 1365 598 722 query I rowsort SELECT DISTINCT col2 + col2 * - 12 AS col0 FROM tab1 AS cor0 ---- -1056 -594 -627 query I rowsort SELECT DISTINCT + col1 - + col2 AS col1 FROM tab2 AS cor0 ---- -21 33 4