hash-threshold 8 statement ok CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok INSERT INTO tab0 VALUES(89,91,82) statement ok INSERT INTO tab0 VALUES(35,97,1) statement ok INSERT INTO tab0 VALUES(24,86,33) statement ok INSERT INTO tab1 VALUES(64,10,57) statement ok INSERT INTO tab1 VALUES(3,26,54) statement ok INSERT INTO tab1 VALUES(80,13,96) statement ok INSERT INTO tab2 VALUES(7,31,27) statement ok INSERT INTO tab2 VALUES(79,17,38) statement ok INSERT INTO tab2 VALUES(78,59,26) query I rowsort SELECT DISTINCT cor1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-1 SELECT DISTINCT + - 97 * - col0 * col0 + col1 DIV col1 AS col2 FROM tab2 AS cor0 ---- 4754 590149 605378 skipif mysql # not compatible query I rowsort label-1 SELECT DISTINCT + - 97 * - col0 * col0 + col1 / col1 AS col2 FROM tab2 AS cor0 ---- 4754 590149 605378 query I rowsort SELECT DISTINCT cor0.col1 + - col0 AS col2 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT - + ( - col0 ) AS col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL col2 + + col2 * - col2 AS col2 FROM tab1 cor0 ---- -2862 -3192 -9120 query I rowsort SELECT ALL col1 + - cor0.col0 * + col2 AS col1 FROM tab2 cor0 ---- -158 -1969 -2985 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 * cor0.col1 - col2 col0 FROM tab0 AS cor0 ---- 7363 8199 9408 query I rowsort SELECT - tab2.col2 * tab2.col1 AS col2 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT - ( 13 ) * + col1 FROM tab0 ---- -1118 -1183 -1261 query I rowsort SELECT ALL + 94 * ( + col2 ) AS col2 FROM tab1 ---- 5076 5358 9024 query I rowsort SELECT + 23 + + col1 * cor0.col0 AS col1 FROM tab0 AS cor0 ---- 2087 3418 8122 query I rowsort SELECT DISTINCT + col1 * col2 * col1 AS col0 FROM tab1 AS cor0 ---- 16224 36504 5700 skipif mysql # not compatible query I rowsort SELECT CAST ( + col1 AS REAL ) * + col2 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT ( 84 ) AS col0 FROM tab1 ---- 84 84 84 query I rowsort SELECT - ( tab2.col0 ) * tab2.col2 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT ALL + 67 + - col0 AS col2 FROM tab0 cor0 ---- -22 32 43 query I rowsort SELECT - 18 * col1 AS col1 FROM tab2 cor0 ---- -1062 -306 -558 query I rowsort SELECT + ( - col0 ) * col2 * - cor0.col1 + + col0 AS col2 FROM tab1 AS cor0 ---- 36544 4215 99920 query I rowsort SELECT DISTINCT - 63 + + col1 AS col0 FROM tab1 AS cor0 ---- -37 -50 -53 query I rowsort SELECT 93 * col2 FROM tab1 AS cor0 ---- 5022 5301 8928 query I rowsort SELECT ALL - - cor0.col0 + col1 AS col2 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT + - col2 + - col0 AS col1 FROM tab2 cor0 ---- -104 -117 -34 query I rowsort SELECT - 96 + - col1 AS col2 FROM tab1 ---- -106 -109 -122 query I rowsort SELECT col2 + + 35 FROM tab2 ---- 61 62 73 query I rowsort SELECT ALL - ( col0 + tab1.col1 ) AS col0 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT DISTINCT cor0.col0 + + col0 AS col1 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT + col2 * - ( - col1 ) FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT - col0 * 42 FROM tab1 AS cor0 ---- -126 -2688 -3360 query I rowsort SELECT ALL - col1 * 19 FROM tab1 ---- -190 -247 -494 query I rowsort SELECT ( tab0.col0 * col2 ) FROM tab0 ---- 35 7298 792 query I rowsort SELECT DISTINCT + col1 * 40 FROM tab2 ---- 1240 2360 680 query I rowsort SELECT ALL col0 * - 38 FROM tab0 ---- -1330 -3382 -912 query I rowsort SELECT - + cor0.col0 + + col2 AS col0 FROM tab0 AS cor0 ---- -34 -7 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-33 SELECT CAST( - 35 AS SIGNED ) FROM tab1 AS cor0 ---- -35 -35 -35 skipif mysql # not compatible query I rowsort label-33 SELECT CAST ( - 35 AS INTEGER ) FROM tab1 AS cor0 ---- -35 -35 -35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 12 col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 onlyif mysql # use DIV operator for integer division query I rowsort label-35 SELECT col0 DIV - col2 + col2 AS col2 FROM tab0 ---- -34 33 81 skipif mysql # not compatible query I rowsort label-35 SELECT col0 / - col2 + col2 AS col2 FROM tab0 ---- -34 33 81 query I rowsort SELECT DISTINCT + 69 * col2 AS col1 FROM tab2 ---- 1794 1863 2622 query I rowsort SELECT col2 * 24 AS col1 FROM tab0 AS cor0 ---- 1968 24 792 query I rowsort SELECT + + 11 AS col2 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 69116737f3f57e2e3273f6dbb04d036c query I rowsort SELECT + tab1.col1 * 76 AS col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 012fb40cd5a7b6d4b1192f9744e7efd2 onlyif mysql # use DIV operator for integer division query I rowsort label-40 SELECT DISTINCT - tab0.col0 DIV col2 FROM tab0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-40 SELECT DISTINCT - tab0.col0 / col2 FROM tab0 ---- -1 -35 0 query I rowsort SELECT 27 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1a3cef5c33b8f87ffeded378fd207753 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 col0 FROM tab2 ---- 289 3481 961 query I rowsort SELECT cor0.col1 + + 98 * 59 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 58e8edd7ff662fdcd0330fd298ab8ca4 query I rowsort SELECT DISTINCT col2 * + tab2.col0 * + col2 FROM tab2 ---- 114076 5103 52728 query I rowsort SELECT - 65 * + col1 AS col0 FROM tab2 ---- -1105 -2015 -3835 query I rowsort SELECT + col0 * - col2 * - 87 FROM tab1 ---- 14094 317376 668160 query I rowsort SELECT DISTINCT 80 FROM tab1, tab1 cor0 ---- 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-48 SELECT DISTINCT col1 + CAST( col0 AS SIGNED ) FROM tab2 ---- 137 38 96 skipif mysql # not compatible query I rowsort label-48 SELECT DISTINCT col1 + CAST ( col0 AS INTEGER ) FROM tab2 ---- 137 38 96 query I rowsort SELECT + - col1 + + 28 + col0 FROM tab2 cor0 ---- 4 47 90 query I rowsort SELECT - - col2 * - cor0.col0 + col0 * col2 + - ( + cor0.col1 ) AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT - col1 * ( col0 * - cor0.col1 ) AS col1 FROM tab2 cor0 ---- 22831 271518 6727 onlyif mysql # use DIV operator for integer division query I rowsort label-52 SELECT - - col2 + col1 DIV col0 FROM tab0 AS cor0 ---- 3 36 83 skipif mysql # not compatible query I rowsort label-52 SELECT - - col2 + col1 / col0 FROM tab0 AS cor0 ---- 3 36 83 query I rowsort SELECT - + col0 * + col2 + + col1 + col0 FROM tab2 AS cor0 ---- -151 -1891 -2906 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-54 SELECT col1 / CAST( NULL AS SIGNED ) - + col1 * tab0.col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-54 SELECT col1 / CAST ( NULL AS INTEGER ) - + col1 * tab0.col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 * col2 + col1 AS col1 FROM tab2 ---- 2087 220 3019 onlyif mysql # use DIV operator for integer division query I rowsort label-56 SELECT col1 - col2 DIV + col0 FROM tab2 ---- 17 28 59 skipif mysql # not compatible query I rowsort label-56 SELECT col1 - col2 / + col0 FROM tab2 ---- 17 28 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-57 SELECT ALL + CAST( + 37 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to a10b03e72860b949bdff53827700a9a8 skipif mysql # not compatible query I rowsort label-57 SELECT ALL + CAST ( + 37 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to a10b03e72860b949bdff53827700a9a8 query I rowsort SELECT DISTINCT tab0.col1 * - col2 + + ( tab0.col2 ) FROM tab0 ---- -2805 -7380 -96 query I rowsort SELECT DISTINCT - - col1 + - col1 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-60 SELECT ALL - 72 * + col1 + col0 DIV ( col0 ) FROM tab1 AS cor0 ---- -1871 -719 -935 skipif mysql # not compatible query I rowsort label-60 SELECT ALL - 72 * + col1 + col0 / ( col0 ) FROM tab1 AS cor0 ---- -1871 -719 -935 query I rowsort SELECT ALL + col2 + ( - col0 ) FROM tab2 AS cor0 ---- -41 -52 20 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-62 SELECT CAST( NULL AS SIGNED ) + + 52 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-62 SELECT CAST ( NULL AS INTEGER ) + + 52 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-63 SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-63 SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-64 SELECT - + col0 DIV + col2 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-64 SELECT - + col0 / + col2 FROM tab0 AS cor0 ---- -1 -35 0 query I rowsort SELECT - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL - - cor0.col2 * - col2 + col2 AS col0 FROM tab1 AS cor0 ---- -2862 -3192 -9120 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 26 + - 8 col0 FROM tab2 AS cor0 ---- -34 -34 -34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 + col2 col1 FROM tab1 AS cor0 ---- 108 114 192 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-69 SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-69 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - - cor0.col1 * + 61 FROM tab2 AS cor0 ---- 1037 1891 3599 query I rowsort SELECT ALL - + 56 + - col2 AS col2 FROM tab2 AS cor0 ---- -82 -83 -94 query I rowsort SELECT DISTINCT + ( 88 ) * + col0 * + ( - col2 + + col2 ) AS col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT + col1 * ( + col2 ) FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL col0 + - cor0.col0 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-75 SELECT ( cor0.col1 ) + - col1 DIV + 86 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-75 SELECT ( cor0.col1 ) + - col1 / + 86 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT ALL - + 99 * col2 * - col0 FROM tab1 AS cor0 ---- 16038 361152 760320 query I rowsort SELECT ALL + cor0.col2 + + cor0.col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT - col2 * + col0 * - col2 + + col2 FROM tab2 AS cor0 ---- 114114 5130 52754 query I rowsort SELECT ALL - 94 * + ( - col1 ) AS col1 FROM tab0 AS cor0 ---- 8084 8554 9118 query I rowsort SELECT + + col0 - + col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-82 SELECT ALL + col1 * tab1.col0 + CAST( + ( col2 ) AS SIGNED ) FROM tab1 ---- 1136 132 697 skipif mysql # not compatible query I rowsort label-82 SELECT ALL + col1 * tab1.col0 + CAST ( + ( col2 ) AS INTEGER ) FROM tab1 ---- 1136 132 697 query I rowsort SELECT ALL + - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT DISTINCT + + 14 - + col0 * + col2 FROM tab1 AS cor0 ---- -148 -3634 -7666 onlyif mysql # use DIV operator for integer division query I rowsort label-85 SELECT + + cor0.col2 DIV - col2 - col0 AS col0 FROM tab0 AS cor0 ---- -25 -36 -90 skipif mysql # not compatible query I rowsort label-85 SELECT + + cor0.col2 / - col2 - col0 AS col0 FROM tab0 AS cor0 ---- -25 -36 -90 query I rowsort SELECT ALL 42 + col2 FROM tab1 AS cor0 ---- 138 96 99 query I rowsort SELECT col0 + + cor0.col1 AS col0 FROM tab1 cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-88 SELECT DISTINCT col2 DIV + cor0.col2 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-88 SELECT DISTINCT col2 / + cor0.col2 FROM tab1 AS cor0 ---- 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-89 SELECT 47 + + cor0.col1 * CAST( + ( - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- -122 -53 -629 skipif mysql # not compatible query I rowsort label-89 SELECT 47 + + cor0.col1 * CAST ( + ( - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- -122 -53 -629 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 37 col0 FROM tab2 AS cor0 ---- 37 37 37 query I rowsort SELECT + 96 * - col2 FROM tab1 cor0 ---- -5184 -5472 -9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 98 * + col1 + col2 + col2 col1 FROM tab1 AS cor0 ---- 1094 1466 2656 query I rowsort SELECT ALL + - col1 - col2 AS col0 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT DISTINCT col2 * - cor0.col1 - col0 FROM tab2 cor0 ---- -1612 -725 -844 query I rowsort SELECT ALL + col1 + col2 + ( - col0 + - col0 ) FROM tab2 AS cor0 ---- -103 -71 44 query I rowsort SELECT DISTINCT - - col0 * + cor0.col1 AS col0 FROM tab2 cor0 ---- 1343 217 4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-97 SELECT ALL col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-97 SELECT ALL col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 + + 34 AS col1 FROM tab1 AS cor0 ---- 114 37 98 query I rowsort SELECT cor0.col0 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 query I rowsort SELECT DISTINCT + cor0.col0 * - ( + cor0.col0 ) FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT - col1 * ( col1 ) + col0 AS col2 FROM tab1 cor0 ---- -36 -673 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-102 SELECT DISTINCT col0 DIV col0 + - cor0.col2 AS col0 FROM tab2 AS cor0 ---- -25 -26 -37 skipif mysql # not compatible query I rowsort label-102 SELECT DISTINCT col0 / col0 + - cor0.col2 AS col0 FROM tab2 AS cor0 ---- -25 -26 -37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-103 SELECT ALL + col1 * - CAST( - col1 AS SIGNED ) * + col2 + - col2 FROM tab1 AS cor0 ---- 16128 36450 5643 skipif mysql # not compatible query I rowsort label-103 SELECT ALL + col1 * - CAST ( - col1 AS INTEGER ) * + col2 + - col2 FROM tab1 AS cor0 ---- 16128 36450 5643 query I rowsort SELECT - 90 * + col2 AS col0 FROM tab1 AS cor0 ---- -4860 -5130 -8640 query I rowsort SELECT DISTINCT - 99 * - col0 FROM tab2 AS cor0 ---- 693 7722 7821 query I rowsort SELECT ALL - + col0 + + cor0.col1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT + 53 * col0 FROM tab0 AS cor0 ---- 1272 1855 4717 query I rowsort SELECT DISTINCT 32 - col2 * - 42 AS col0 FROM tab0 cor0 ---- 1418 3476 74 query I rowsort SELECT DISTINCT + + 51 AS col1 FROM tab2 AS cor0 ---- 51 query I rowsort SELECT ALL + 55 + col1 * col0 FROM tab1 AS cor0 ---- 1095 133 695 query I rowsort SELECT ALL col1 - - col1 FROM tab1 cor0 ---- 20 26 52 query I rowsort SELECT DISTINCT + col0 - col1 FROM tab0 cor0 ---- -2 -62 query I rowsort SELECT DISTINCT - 68 * col0 * 53 AS col2 FROM tab2 AS cor0 ---- -25228 -281112 -284716 query I rowsort SELECT ALL - col1 + + col0 * col2 + col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT + + col1 * cor0.col1 - col0 FROM tab1 cor0 ---- 36 673 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-116 SELECT DISTINCT + + 63 * col0 * CAST( col2 + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 23814 255528 378252 skipif mysql # not compatible query I rowsort label-116 SELECT DISTINCT + + 63 * col0 * CAST ( col2 + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 23814 255528 378252 query I rowsort SELECT ALL col2 - col2 * 17 AS col1 FROM tab1 AS cor0 ---- -1536 -864 -912 query I rowsort SELECT DISTINCT col2 + - 24 * 84 FROM tab1 AS cor0 ---- -1920 -1959 -1962 query I rowsort SELECT DISTINCT - - cor0.col2 * - 61 - col2 FROM tab2 AS cor0 ---- -1612 -1674 -2356 onlyif mysql # use DIV operator for integer division query I rowsort label-120 SELECT DISTINCT + - col2 DIV 5 + col2 FROM tab0 AS cor0 ---- 1 27 66 skipif mysql # not compatible query I rowsort label-120 SELECT DISTINCT + - col2 / 5 + col2 FROM tab0 AS cor0 ---- 1 27 66 query I rowsort SELECT - 96 + + col1 * - col2 * - col2 AS col2 FROM tab0 ---- 1 611788 93558 query I rowsort SELECT col0 + + 67 AS col1 FROM tab1 AS cor0 ---- 131 147 70 query I rowsort SELECT + + 21 AS col2 FROM tab0 AS cor0 ---- 21 21 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 26 + 83 col0 FROM tab2 AS cor0 ---- 109 109 109 query I rowsort SELECT DISTINCT - col1 * + col0 FROM tab0 cor0 ---- -2064 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 74 * + 73 col1 FROM tab1 AS cor0 ---- 5402 5402 5402 query I rowsort SELECT ALL + 21 + - ( + col2 ) * + col2 FROM tab2 AS cor0 ---- -1423 -655 -708 onlyif mysql # use DIV operator for integer division query I rowsort label-128 SELECT ALL - col0 + - col0 + - tab0.col2 DIV + col1 FROM tab0 ---- -178 -48 -70 skipif mysql # not compatible query I rowsort label-128 SELECT ALL - col0 + - col0 + - tab0.col2 / + col1 FROM tab0 ---- -178 -48 -70 query I rowsort SELECT 78 + col0 + + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0 ---- 1601 814 832 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * 72 * col0 col1 FROM tab1 AS cor0 ---- 294912 460800 648 query I rowsort SELECT DISTINCT - 31 * 40 FROM tab2 AS cor0 ---- -1240 query I rowsort SELECT ALL 32 * 42 FROM tab0 ---- 1344 1344 1344 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 21 col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7 query I rowsort SELECT ALL ( 38 ) FROM tab0 ---- 38 38 38 onlyif mysql # use DIV operator for integer division query I rowsort label-135 SELECT DISTINCT + 81 DIV + tab0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0 ---- 0 2 3 skipif mysql # not compatible query I rowsort label-135 SELECT DISTINCT + 81 / + tab0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0 ---- 0 2 3 query I rowsort SELECT + 95 + col1 FROM tab1 ---- 105 108 121 query I rowsort SELECT DISTINCT + ( + col2 ) FROM tab0 cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort SELECT CAST ( col0 AS REAL ) + col0 AS col2 FROM tab1 ---- 128 160 6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-139 SELECT CAST( col2 AS SIGNED ) * col2 * - ( col1 ) + col0 col2 FROM tab2 ---- -22592 -24469 -39806 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-139 SELECT CAST ( col2 AS INTEGER ) * col2 * - ( col1 ) + col0 col2 FROM tab2 ---- -22592 -24469 -39806 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2 ---- 3645 values hashing to 64312dc66df177d8c745c63c0bdd4dc7 query I rowsort SELECT ALL 55 * + col1 FROM tab2 ---- 1705 3245 935 query I rowsort SELECT ALL col2 * col2 * + col2 FROM tab0 ---- 1 35937 551368 query I rowsort SELECT + 20 * - col2 + + 25 FROM tab0 AS cor0 ---- -1615 -635 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 27 col2 FROM tab0 AS cor0 ---- -27 -27 -27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 + cor0.col2 col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT ALL - col2 + ( + col1 ) AS col2 FROM tab1 ---- -28 -47 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * + 27 + ( col2 + - 79 ) * - ( col2 ) col0 FROM tab2 ---- 2080 2133 2584 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-148 SELECT + col0 * CAST( - col2 * + col0 AS SIGNED ) FROM tab0 ---- -1225 -19008 -649522 skipif mysql # not compatible query I rowsort label-148 SELECT + col0 * CAST ( - col2 * + col0 AS INTEGER ) FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT DISTINCT - col1 + + col2 * - col0 AS col0 FROM tab1 ---- -188 -3658 -7693 query I rowsort SELECT DISTINCT + 33 AS col2 FROM tab1, tab2 AS cor0 ---- 33 query I rowsort SELECT DISTINCT + cor0.col0 + + 70 FROM tab1 AS cor0 ---- 134 150 73 query I rowsort SELECT + - col2 - ( + col2 ) AS col1 FROM tab2 AS cor0 ---- -52 -54 -76 onlyif mysql # use DIV operator for integer division query I rowsort label-153 SELECT - col2 * ( + col0 ) - - col0 DIV col2 AS col2 FROM tab1 AS cor0 ---- -162 -3647 -7680 skipif mysql # not compatible query I rowsort label-153 SELECT - col2 * ( + col0 ) - - col0 / col2 AS col2 FROM tab1 AS cor0 ---- -162 -3647 -7680 query I rowsort SELECT DISTINCT col1 * col0 - + col2 AS col1 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT ALL - col1 + - 60 * - col0 * cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2003 437789 47434 query I rowsort SELECT ALL + 90 * col0 + + col2 * + ( - cor0.col0 ) FROM tab2 AS cor0 ---- 4108 441 4992 query I rowsort SELECT ALL + - col0 + ( - col1 + - col0 ) AS col2 FROM tab0 AS cor0 ---- -134 -167 -269 query I rowsort SELECT DISTINCT - + 19 - - col2 AS col0 FROM tab1 AS cor0 ---- 35 38 77 query I rowsort SELECT - - col2 * - 43 + - cor0.col0 FROM tab2 AS cor0 ---- -1168 -1196 -1713 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( + col0 ) col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT DISTINCT - + 65 AS col1 FROM tab1 AS cor0 ---- -65 query I rowsort SELECT DISTINCT col0 + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT - + ( 54 ) + - col1 AS col2 FROM tab2 AS cor0 ---- -113 -71 -85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-164 SELECT - CAST( 5 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0 ---- -101 -59 -62 skipif mysql # not compatible query I rowsort label-164 SELECT - CAST ( 5 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0 ---- -101 -59 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-165 SELECT ALL col2 DIV 65 + + col0 FROM tab2 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-165 SELECT ALL col2 / 65 + + col0 FROM tab2 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col0 ) col0 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT - 56 + + col2 + + col2 FROM tab2 AS cor0 ---- -2 -4 20 query I rowsort SELECT - col0 + - col2 * + col1 * + 40 AS col1 FROM tab1 AS cor0 ---- -22864 -50000 -56163 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL ) ---- query I rowsort SELECT DISTINCT + col1 - + tab2.col2 AS col2 FROM tab2 ---- -21 33 4 query I rowsort SELECT col1 + col0 * - col2 * - col2 AS col2 FROM tab2 ---- 114093 5134 52787 query I rowsort SELECT col0 * + cor0.col1 * - col1 + - col2 * col2 AS col1 FROM tab1 AS cor0 ---- -22736 -4944 -9649 query I rowsort SELECT DISTINCT col1 - col2 * col0 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - cor0.col2 + - col0 ) ---- query I rowsort SELECT col1 - tab1.col1 * + col1 AS col2 FROM tab1 ---- -156 -650 -90 query I rowsort SELECT col0 * col0 AS col1 FROM tab0 WHERE NOT ( col0 ) BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT ( NULL ) >= col2 ---- query I rowsort SELECT ALL - col2 + col0 * tab1.col1 AS col0 FROM tab1 ---- 24 583 944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + col2 col1 FROM tab0 ---- 164 2 66 query I rowsort SELECT DISTINCT - col2 / + col2 + + tab1.col2 / col1 FROM tab1 WHERE col2 > NULL ---- query I rowsort SELECT - col1 + + col2 * + col2 FROM tab0 ---- -96 1003 6633 query I rowsort SELECT - - col0 * col0 + col1 AS col1 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT - + col1 * + col2 * col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT col0 + cor0.col0 * col2 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT + + col1 * col0 + + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1210 1482 2288 onlyif mysql # use DIV operator for integer division query I rowsort label-185 SELECT ALL - col0 DIV tab2.col0 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-185 SELECT ALL - col0 / tab2.col0 FROM tab2 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-186 SELECT ALL + col1 DIV + tab0.col0 AS col2 FROM tab0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-186 SELECT ALL + col1 / + tab0.col0 AS col2 FROM tab0 ---- 1 2 3 query I rowsort SELECT - col0 * col0 + col2 AS col2 FROM tab0 ---- -1224 -543 -7839 onlyif mysql # use DIV operator for integer division query I rowsort label-188 SELECT DISTINCT - col2 * - col2 + col1 * col0 + tab2.col2 DIV - col0 FROM tab2 ---- 2787 5278 943 skipif mysql # not compatible query I rowsort label-188 SELECT DISTINCT - col2 * - col2 + col1 * col0 + tab2.col2 / - col0 FROM tab2 ---- 2787 5278 943 query I rowsort SELECT DISTINCT - tab1.col2 * - col2 + col1 AS col0 FROM tab1 WHERE NULL >= ( NULL ) AND NOT NULL BETWEEN col1 AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-190 SELECT ALL col2 DIV tab1.col1 AS col2 FROM tab1 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-190 SELECT ALL col2 / tab1.col1 AS col2 FROM tab1 ---- 2 5 7 query III rowsort SELECT ALL * FROM tab1 WHERE col1 BETWEEN ( col1 ) AND NULL ---- query I rowsort SELECT + col0 * - col1 + - col2 + - col2 AS col1 FROM tab0 AS cor0 ---- -2130 -3397 -8263 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 + col1 + - col1 ) IN ( col2 ) OR - col1 * col0 <= NULL ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d onlyif mysql # use DIV operator for integer division query I rowsort label-194 SELECT - col0 + - col1 DIV - col0 AS col0 FROM tab0 AS cor0 ---- -21 -33 -88 skipif mysql # not compatible query I rowsort label-194 SELECT - col0 + - col1 / - col0 AS col0 FROM tab0 AS cor0 ---- -21 -33 -88 query I rowsort SELECT 37 * col1 * col2 FROM tab0 ---- 105006 276094 3589 onlyif mysql # use DIV operator for integer division query I rowsort label-196 SELECT 3 DIV col1 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-196 SELECT 3 / col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT + - 64 AS col0 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 100c625e45715c20368551989514ba64 query I rowsort SELECT DISTINCT + col0 * col1 + + ( col2 ) - + col2 AS col1 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT - 46 - + tab0.col2 FROM tab0 ---- -128 -47 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-200 SELECT col0 + tab2.col2 * - tab2.col2 + + 44 DIV + col0 FROM tab2 ---- -1365 -598 -716 skipif mysql # not compatible query I rowsort label-200 SELECT col0 + tab2.col2 * - tab2.col2 + + 44 / + col0 FROM tab2 ---- -1365 -598 -716 query I rowsort SELECT DISTINCT - col0 * + cor0.col0 * + 81 AS col1 FROM tab1 AS cor0 ---- -331776 -518400 -729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-202 SELECT - col0 * - CAST( + 80 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 1920 2800 7120 skipif mysql # not compatible query I rowsort label-202 SELECT - col0 * - CAST ( + 80 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 1920 2800 7120 query I rowsort SELECT DISTINCT col1 * - col0 + - 95 * col1 FROM tab2 AS cor0 ---- -10207 -2958 -3162 query I rowsort SELECT ALL + col2 * + 88 + - col2 AS col2 FROM tab0 cor0 ---- 2871 7134 87 query I rowsort SELECT ALL + - col1 + 1 FROM tab0 AS cor0 ---- -85 -90 -96 query I rowsort SELECT DISTINCT + cor0.col2 * 52 AS col1 FROM tab1, tab2, tab2 AS cor0, tab0 ---- 1352 1404 1976 query I rowsort SELECT DISTINCT + ( tab1.col2 ) - 10 FROM tab1 ---- 44 47 86 onlyif mysql # use DIV operator for integer division query I rowsort label-208 SELECT DISTINCT col1 DIV col2 + col0 AS col1 FROM tab0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-208 SELECT DISTINCT col1 / col2 + col0 AS col1 FROM tab0 ---- 132 26 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - col2 ) + col2 col1 FROM tab1 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-210 SELECT DISTINCT col0 DIV - col2 - 15 FROM tab1 ---- -15 -16 skipif mysql # not compatible query I rowsort label-210 SELECT DISTINCT col0 / - col2 - 15 FROM tab1 ---- -15 -16 query I rowsort SELECT DISTINCT + 73 * - col1 * 61 - - col2 AS col2 FROM tab1 ---- -115724 -44473 -57793 onlyif mysql # use DIV operator for integer division query I rowsort label-212 SELECT tab0.col1 DIV col1 + - col0 AS col2 FROM tab0 ---- -23 -34 -88 skipif mysql # not compatible query I rowsort label-212 SELECT tab0.col1 / col1 + - col0 AS col2 FROM tab0 ---- -23 -34 -88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 + col2 + + col1 * - cor0.col2 col1 FROM tab2 AS cor0 ---- -1586 -687 -817 query I rowsort SELECT - + cor0.col0 * 7 FROM tab2 AS cor0 ---- -49 -546 -553 query I rowsort SELECT ALL col0 + + ( col0 ) AS col2 FROM tab0 cor0 ---- 178 48 70 onlyif mysql # use DIV operator for integer division query I rowsort label-216 SELECT + cor0.col2 DIV 32 col1 FROM tab0 AS cor0 ---- 0 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-216 SELECT + cor0.col2 / 32 col1 FROM tab0 AS cor0 ---- 0 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col0 * 13 col2 FROM tab2 AS cor0 ---- 1014 1027 91 query I rowsort SELECT + col1 * + ( col1 ) FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT cor0.col1 + + col0 + col2 AS col1 FROM tab0 AS cor0 ---- 133 143 262 query I rowsort SELECT DISTINCT + col0 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-221 SELECT DISTINCT col1 DIV col0 - + col2 FROM tab1 ---- -46 -57 -96 skipif mysql # not compatible query I rowsort label-221 SELECT DISTINCT col1 / col0 - + col2 FROM tab1 ---- -46 -57 -96 query I rowsort SELECT DISTINCT + col1 + - col1 * tab0.col2 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT ALL + col2 * col1 + tab2.col2 FROM tab2 ---- 1560 684 864 query I rowsort SELECT col2 + col1 FROM tab2 WHERE NOT NULL <= NULL ---- query I rowsort SELECT - col1 + + col2 * col0 FROM tab2 ---- 158 1969 2985 query I rowsort SELECT ALL - col2 + col2 AS col2 FROM tab0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT DISTINCT - col2 FROM tab1 WHERE col1 IN ( col0 + + col2 ) ---- query I rowsort SELECT - col1 * col1 + + col1 AS col2 FROM tab1 WHERE col2 = + col2 ---- -156 -650 -90 query I rowsort SELECT + col2 - col2 * - col0 AS col1 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT DISTINCT col0 + + col2 * + col1 FROM tab2 ---- 1612 725 844 query I rowsort SELECT + col2 * + tab1.col2 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT + col1 * col2 FROM tab1 WHERE NOT + col0 = NULL ---- query I rowsort SELECT - col0 + col2 AS col1 FROM tab1 WHERE NULL IN ( col0 ) ---- query I rowsort SELECT DISTINCT + col1 * tab1.col2 + col1 * col0 FROM tab1 ---- 1210 1482 2288 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( + col1 ) + ( col0 ) col2 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT + 24 - col2 FROM tab1 cor0 ---- -30 -33 -72 query I rowsort SELECT DISTINCT - 13 * col1 * col0 + - 62 FROM tab2 AS cor0 ---- -17521 -2883 -59888 query I rowsort SELECT - 97 * - cor0.col2 + + col1 AS col2 FROM tab0 AS cor0 ---- 194 3287 8045 query I rowsort SELECT + 9 * cor0.col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 4d46dc1ba5f1cec596972d175a7de877 query I rowsort SELECT + ( col2 ) - ( + col0 ) * col1 FROM tab2 AS cor0 ---- -1305 -190 -4576 query III rowsort SELECT * FROM tab2 WHERE col0 NOT IN ( tab2.col2 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT DISTINCT col0 * col2 + col0 AS col2 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT ALL + col0 + - tab2.col1 * col2 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( tab0.col2 ) < ( NULL ) ---- query I rowsort SELECT 41 - + col2 AS col1 FROM tab1 AS cor0 ---- -13 -16 -55 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 * cor0.col2 * 15 col0 FROM tab2 AS cor0 ---- -2835 -30420 -45030 query I rowsort SELECT col1 + + col2 * col2 AS col0 FROM tab0 ---- 1175 6815 98 query I rowsort SELECT DISTINCT col0 * - ( 22 ) FROM tab1 ---- -1408 -1760 -66 query I rowsort SELECT ALL - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT col2 + col0 * + col0 FROM tab2 ---- 6110 6279 76 query I rowsort SELECT ALL col0 + 71 FROM tab0 AS cor0 ---- 106 160 95 query I rowsort SELECT DISTINCT + 56 * col2 + col2 FROM tab2 AS cor0 ---- 1482 1539 2166 query I rowsort SELECT DISTINCT - - col0 + 53 * - col2 FROM tab1 AS cor0 ---- -2859 -2957 -5008 query I rowsort SELECT - col2 + + col2 * col0 FROM tab0 AS cor0 ---- 34 7216 759 onlyif mysql # use DIV operator for integer division query I rowsort label-256 SELECT ALL + - 16 DIV ( + col2 ) FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-256 SELECT ALL + - 16 / ( + col2 ) FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT - 96 FROM tab0 cor0 ---- -96 -96 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-258 SELECT ALL - - CAST( NULL AS SIGNED ) * + 51 + col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-258 SELECT ALL - - CAST ( NULL AS INTEGER ) * + 51 + col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 51 + col1 col0 FROM tab0 cor0 ---- 137 142 148 query I rowsort SELECT + - 56 * 80 FROM tab0 AS cor0 ---- -4480 -4480 -4480 query I rowsort SELECT - ( - col0 ) * - col0 + col1 FROM tab0 AS cor0 ---- -1128 -490 -7830 query I rowsort SELECT + 86 + - col0 * + col0 * col0 AS col0 FROM tab0 AS cor0 ---- -13738 -42789 -704883 query I rowsort SELECT - - ( + cor0.col1 ) * col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT 32 * 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 0d1ccfb52c0d769cb7224ff3b9ad3f66 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-265 SELECT DISTINCT + 99 * col2 + - CAST( NULL AS DECIMAL ) * col1 - col2 AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-265 SELECT DISTINCT + 99 * col2 + - CAST ( NULL AS REAL ) * col1 - col2 AS col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - - col2 + col1 * - ( 72 * - col2 ) AS col0 FROM tab0 AS cor0 ---- 204369 537346 6985 query I rowsort SELECT DISTINCT - 47 * - cor0.col0 + 2 - col2 FROM tab2 AS cor0 ---- 304 3642 3677 onlyif mysql # use DIV operator for integer division query I rowsort label-268 SELECT + + col1 * + col1 - col0 DIV col2 FROM tab1 cor0 ---- 169 676 99 skipif mysql # not compatible query I rowsort label-268 SELECT + + col1 * + col1 - col0 / col2 FROM tab1 cor0 ---- 169 676 99 query I rowsort SELECT ALL + + 75 AS col2 FROM tab0 AS cor0 ---- 75 75 75 query I rowsort SELECT 36 + col1 AS col0 FROM tab2 cor0 ---- 53 67 95 query I rowsort SELECT DISTINCT 80 + - col2 * - ( 67 * - col2 ) + - col1 AS col2 FROM tab0 AS cor0 ---- -450519 -72969 -84 query I rowsort SELECT ALL - - col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -16 -51 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-273 SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-273 SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - col0 + 37 FROM tab2 AS cor0 ---- -41 -42 30 query I rowsort SELECT DISTINCT - col2 * + col0 AS col1 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT + col2 * cor0.col2 + cor0.col1 FROM tab1 cor0 ---- 2942 3259 9229 query I rowsort SELECT ALL + + col1 + 68 FROM tab0 AS cor0 ---- 154 159 165 query I rowsort SELECT - + col2 * + 45 FROM tab0 cor0 ---- -1485 -3690 -45 query I rowsort SELECT + - col2 + - ( col1 ) FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT - col0 * 27 * 39 AS col0 FROM tab1 AS cor0 ---- -3159 -67392 -84240 query I rowsort SELECT col1 * col2 + - col2 AS col0 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT DISTINCT - tab0.col1 + - col1 * col2 * - 84 AS col2 FROM tab0 ---- 238306 626717 8051 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-283 SELECT + col0 + - CAST( col2 AS SIGNED ) + - col1 FROM tab0 cor0 ---- -63 -84 -95 skipif mysql # not compatible query I rowsort label-283 SELECT + col0 + - CAST ( col2 AS INTEGER ) + - col1 FROM tab0 cor0 ---- -63 -84 -95 query I rowsort SELECT - col0 + ( + 9 ) * col2 AS col1 FROM tab2 AS cor0 ---- 156 236 263 query I rowsort SELECT + cor0.col2 + 91 FROM tab1 AS cor0 ---- 145 148 187 query I rowsort SELECT + 66 FROM tab0 cor0 ---- 66 66 66 query I rowsort SELECT ALL - + 80 - + 82 AS col0 FROM tab0 AS cor0 ---- -162 -162 -162 query I rowsort SELECT + col1 + 56 AS col2 FROM tab2 AS cor0 ---- 115 73 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 80 col0 FROM tab1 AS cor0 ---- -80 -80 -80 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237 query I rowsort SELECT ALL ( + 39 ) FROM tab2 ---- 39 39 39 query I rowsort SELECT ALL + 9 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + col2 * + col0 col2 FROM tab1 ---- 188 3658 7693 onlyif mysql # use DIV operator for integer division query I rowsort label-294 SELECT DISTINCT col1 + col1 DIV col1 AS col2 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-294 SELECT DISTINCT col1 + col1 / col1 AS col2 FROM tab1 AS cor0 ---- 11 14 27 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-295 SELECT + cor0.col2 + col1 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-295 SELECT + cor0.col2 + col1 - + 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 + - col1 - col1 col0 FROM tab1 cor0 ---- -20 -26 -52 query I rowsort SELECT cor0.col2 + - 11 * - 4 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ad661eb0827b9344d3b00b3d090e3a14 query I rowsort SELECT ALL + col2 - - col2 AS col1 FROM tab2 ---- 52 54 76 onlyif mysql # use DIV operator for integer division query I rowsort label-299 SELECT DISTINCT + cor0.col0 DIV 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 0 9 skipif mysql # not compatible query I rowsort label-299 SELECT DISTINCT + cor0.col0 / 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 0 9 onlyif mysql # use DIV operator for integer division query I rowsort label-300 SELECT + col2 + + col1 + - col2 DIV - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 120 173 98 skipif mysql # not compatible query I rowsort label-300 SELECT + col2 + + col1 + - col2 / - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 120 173 98 query I rowsort SELECT - - cor0.col2 * - col2 + + col2 AS col1 FROM tab2 AS cor0 ---- -1406 -650 -702 query I rowsort SELECT - col1 * + col0 + - col1 AS col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT + + col2 + 62 AS col1 FROM tab0 cor0 ---- 144 63 95 query I rowsort SELECT - col1 - + cor0.col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT cor0.col2 AS col1 FROM tab1, tab1 cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT ALL - col1 + + tab1.col0 + - col0 FROM tab1 ---- -10 -13 -26 query I rowsort SELECT ALL - 71 + col1 FROM tab1 ---- -45 -58 -61 query I rowsort SELECT DISTINCT - 68 FROM tab1, tab1 AS cor0 ---- -68 query I rowsort SELECT - col0 * + col2 + col0 FROM tab0 AS cor0 ---- -7209 -768 0 onlyif mysql # use DIV operator for integer division query I rowsort label-310 SELECT col2 + col1 * 64 + + 68 DIV + col2 FROM tab0 AS cor0 ---- 5539 5906 6277 skipif mysql # not compatible query I rowsort label-310 SELECT col2 + col1 * 64 + + 68 / + col2 FROM tab0 AS cor0 ---- 5539 5906 6277 query I rowsort SELECT DISTINCT + - 38 * - col1 FROM tab1 AS cor0 ---- 380 494 988 query I rowsort SELECT DISTINCT + + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT - - 66 AS col2 FROM tab0 cor0 ---- 66 66 66 query I rowsort SELECT ALL - - 37 AS col0 FROM tab1 AS cor0 ---- 37 37 37 query I rowsort SELECT ALL - cor0.col0 + col0 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab2 AS cor0 WHERE + cor0.col2 > NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-317 SELECT DISTINCT - col2 DIV col0 AS col1 FROM tab1 AS cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-317 SELECT DISTINCT - col2 / col0 AS col1 FROM tab1 AS cor0 ---- -1 -18 0 query I rowsort SELECT DISTINCT + ( ( col1 ) ) * col1 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT + col0 - 51 AS col0 FROM tab0 AS cor0 ---- -16 -27 38 query I rowsort SELECT ALL + + ( - col1 ) + col1 + - 53 FROM tab2 AS cor0 ---- -53 -53 -53 onlyif mysql # use DIV operator for integer division query I rowsort label-321 SELECT ALL - 91 DIV + 57 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-321 SELECT ALL - 91 / + 57 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT - 3 * 69 FROM tab2 AS cor0 ---- -207 -207 -207 query I rowsort SELECT DISTINCT + ( 39 ) + col1 AS col2 FROM tab0 AS cor0 ---- 125 130 136 query I rowsort SELECT + ( - 51 ) + + col0 FROM tab1 AS cor0 ---- -48 13 29 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 35 col0 FROM tab1 cor0 ---- -35 -35 -35 query I rowsort SELECT 44 * 66 - col0 AS col0 FROM tab0 AS cor0 ---- 2815 2869 2880 query I rowsort SELECT ALL + - col2 + + ( + col1 * col0 ) FROM tab2 AS cor0 ---- 1305 190 4576 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-328 SELECT - + CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-328 SELECT - + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - 90 + - ( col1 ) * - col0 * col1 FROM tab0 cor0 ---- 177414 329225 736919 query I rowsort SELECT cor0.col2 + + col2 AS col0 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT ALL + ( + col1 ) + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 118 34 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 58 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to ef6e63aeed2581a168f07646d258f666 query I rowsort SELECT ALL - + 46 * col1 * cor0.col0 FROM tab2 AS cor0 ---- -211692 -61778 -9982 query I rowsort SELECT DISTINCT - col0 * ( col1 ) FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT + - 14 AS col2 FROM tab1 AS cor0 ---- -14 -14 -14 query I rowsort SELECT + ( col2 ) * - col1 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + 16 col0 FROM tab2 ---- 33 47 75 query I rowsort SELECT ( 1 ) - col0 AS col0 FROM tab2 ---- -6 -77 -78 query I rowsort SELECT - col1 + 32 * col0 FROM tab2 ---- 193 2437 2511 query I rowsort SELECT DISTINCT - col0 - col2 FROM tab0 ---- -171 -36 -57 query I rowsort SELECT + col2 + + tab0.col2 - col2 * tab0.col2 FROM tab0 ---- -1023 -6560 1 query I rowsort SELECT - col2 + col1 * tab2.col0 AS col1 FROM tab2 ---- 1305 190 4576 query I rowsort SELECT ALL + cor0.col2 - col1 * col0 AS col0 FROM tab2 cor0 ---- -1305 -190 -4576 query I rowsort SELECT DISTINCT 93 + + col2 * col1 + - 69 AS col0 FROM tab0 AS cor0 ---- 121 2862 7486 query I rowsort SELECT ALL - col2 - - tab0.col2 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT col2 + col0 - col2 * col1 FROM tab1 ---- -1072 -1347 -449 skipif mysql # not compatible query I rowsort SELECT ALL col1 * - ( - col0 ) + CAST ( + ( col0 ) AS REAL ) AS col0 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT ALL tab1.col1 * + ( + col1 ) + - 42 AS col2 FROM tab1 ---- 127 58 634 onlyif mysql # use DIV operator for integer division query I rowsort label-349 SELECT - col0 * ( col1 ) DIV col2 AS col2 FROM tab1 AS cor0 ---- -1 -10 -11 skipif mysql # not compatible query I rowsort label-349 SELECT - col0 * ( col1 ) / col2 AS col2 FROM tab1 AS cor0 ---- -1 -10 -11 onlyif mysql # use DIV operator for integer division query I rowsort label-350 SELECT cor0.col2 DIV 16 FROM tab0 cor0 ---- 0 2 5 skipif mysql # not compatible query I rowsort label-350 SELECT cor0.col2 / 16 FROM tab0 cor0 ---- 0 2 5 query I rowsort SELECT + cor0.col0 * 5 + - 71 FROM tab1 AS cor0 ---- -56 249 329 onlyif mysql # use DIV operator for integer division query I rowsort label-352 SELECT + - cor0.col2 DIV + cor0.col2 FROM tab0 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-352 SELECT + - cor0.col2 / + cor0.col2 FROM tab0 cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT - col1 * cor0.col1 * col0 AS col1 FROM tab1 AS cor0 ---- -13520 -2028 -6400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( col2 ) + ( ( + col0 ) ) col1 FROM tab0 ---- 171 36 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + + tab1.col2 + col2 col2 FROM tab1 ---- 111 178 272 query I rowsort SELECT col2 * + col0 + + col2 * col0 FROM tab0 ---- 14596 1584 70 query I rowsort SELECT DISTINCT - col1 + + 76 AS col1 FROM tab1 AS cor0 ---- 50 63 66 query I rowsort SELECT ALL col1 * + col2 * + col1 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT DISTINCT - col1 * - 17 AS col0 FROM tab0 AS cor0 ---- 1462 1547 1649 query I rowsort SELECT cor0.col1 + + col0 AS col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT col2 * col2 + col1 FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT + 37 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to c023509f63faa044d654943e6df55ca2 query I rowsort SELECT ALL - 20 AS col1 FROM tab1 AS cor0 ---- -20 -20 -20 query I rowsort SELECT 99 + - col2 * ( - 58 ) * col0 AS col0 FROM tab0 AS cor0 ---- 2129 423383 46035 query I rowsort SELECT cor0.col1 + + cor0.col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT - col1 + + col1 * + col1 * - 43 AS col1 FROM tab2 ---- -12444 -149742 -41354 query I rowsort SELECT - 69 AS col0 FROM tab1, tab0 cor0 ---- 9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9 query I rowsort SELECT tab0.col1 FROM tab0, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT ALL + ( - col2 ) + col1 AS col0 FROM tab0 ---- 53 9 96 query I rowsort SELECT ALL cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT DISTINCT 45 AS col2 FROM tab0 cor0 ---- 45 query I rowsort SELECT + - 6 FROM tab1 cor0 ---- -6 -6 -6 query I rowsort SELECT + 68 + - col2 + + col0 AS col0 FROM tab1 AS cor0 ---- 17 52 75 query I rowsort SELECT DISTINCT + 9 * - 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- -855 query I rowsort SELECT DISTINCT - 21 * col1 AS col0 FROM tab0 AS cor0 ---- -1806 -1911 -2037 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-376 SELECT 74 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-376 SELECT 74 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 23 * col0 FROM tab1 AS cor0 ---- 1472 1840 69 query I rowsort SELECT ALL + col1 - + tab0.col1 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-379 SELECT ALL + cor0.col0 DIV + ( cor0.col0 ) AS col2 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-379 SELECT ALL + cor0.col0 / + ( cor0.col0 ) AS col2 FROM tab2 AS cor0 ---- 1 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-380 SELECT ALL + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-380 SELECT ALL + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col1 * + 63 + 53 AS col0 FROM tab1 AS cor0 ---- 1691 683 872 query I rowsort SELECT - col1 * - 24 FROM tab1 AS cor0 ---- 240 312 624 query I rowsort SELECT ALL + - col1 + cor0.col2 * + col0 FROM tab2 cor0 ---- 158 1969 2985 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-384 SELECT + col1 + + ( col2 ) + col1 * + CAST( - col1 + col1 * 21 AS SIGNED ) FROM tab1 ---- 13600 2067 3489 skipif mysql # not compatible query I rowsort label-384 SELECT + col1 + + ( col2 ) + col1 * + CAST ( - col1 + col1 * 21 AS INTEGER ) FROM tab1 ---- 13600 2067 3489 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor1.col2 col2 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2 ---- 243 values hashing to b98cc07e6d63e3c0583ed19f9e9ad2be onlyif mysql # use DIV operator for integer division query I rowsort label-386 SELECT ALL col1 DIV 93 + + col0 + col2 FROM tab0 ---- 171 37 57 skipif mysql # not compatible query I rowsort label-386 SELECT ALL col1 / 93 + + col0 + col2 FROM tab0 ---- 171 37 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-387 SELECT col0 + - CAST( col2 AS SIGNED ) + - col0 AS col1 FROM tab2 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-387 SELECT col0 + - CAST ( col2 AS INTEGER ) + - col0 AS col1 FROM tab2 ---- -26 -27 -38 query I rowsort SELECT ALL - - 99 * 59 * col1 FROM tab2 AS cor0 ---- 181071 344619 99297 query I rowsort SELECT DISTINCT - - 81 * - 40 + col0 AS col2 FROM tab2 cor0 ---- -3161 -3162 -3233 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 82 col0 FROM tab2 AS cor0 ---- -82 -82 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-391 SELECT ALL col1 - col0 DIV - col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-391 SELECT ALL col1 - col0 / - col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL ( ( col0 ) ) * - col0 * 81 AS col0 FROM tab0 ---- -46656 -641601 -99225 query I rowsort SELECT + col2 * 72 AS col2 FROM tab0 ---- 2376 5904 72 onlyif mysql # use DIV operator for integer division query I rowsort label-394 SELECT + ( - col2 ) DIV - col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-394 SELECT + ( - col2 ) / - col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-395 SELECT DISTINCT + 99 DIV col1 FROM tab2 AS cor0 ---- 1 3 5 skipif mysql # not compatible query I rowsort label-395 SELECT DISTINCT + 99 / col1 FROM tab2 AS cor0 ---- 1 3 5 query I rowsort SELECT - col2 + - 86 * + col1 FROM tab2 AS cor0 ---- -1500 -2693 -5100 onlyif mysql # use DIV operator for integer division query I rowsort label-397 SELECT ALL + cor0.col2 DIV + ( + col2 * 95 ) FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-397 SELECT ALL + cor0.col2 / + ( + col2 * 95 ) FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT - 22 * 1 FROM tab2 AS cor0 ---- -22 -22 -22 query I rowsort SELECT + 20 * + cor0.col1 + 43 * 64 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 88050293804b759553eab59c6887abe6 query I rowsort SELECT ALL - + 93 * - col0 * + col1 FROM tab0 AS cor0 ---- 191952 315735 753207 onlyif mysql # use DIV operator for integer division query I rowsort label-401 SELECT CAST( + 11 AS SIGNED ) DIV col1 AS col2 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-401 SELECT CAST ( + 11 AS INTEGER ) / col1 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL + 42 FROM tab2, tab0 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e query I rowsort SELECT col2 + col0 + col1 * col0 AS col2 FROM tab0 cor0 ---- 2121 3431 8270 query I rowsort SELECT ALL + - 39 * 25 * - col0 FROM tab2 AS cor0 ---- 6825 76050 77025 query I rowsort SELECT DISTINCT 28 AS col2 FROM tab0 ---- 28 query I rowsort SELECT DISTINCT - 14 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2 ---- -14 query I rowsort SELECT ALL + tab2.col2 + tab2.col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7 query IIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 972 values hashing to 9364ef7545b07c67767dceb70f02c643 query I rowsort SELECT - + col0 - - col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT ALL + ( col0 ) * cor0.col0 AS col1 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT - + 17 - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -106 -41 -52 query I rowsort SELECT + cor0.col2 * + col0 + col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT DISTINCT col0 * tab0.col2 * + tab0.col2 + - col1 AS col2 FROM tab0 ---- -62 26050 598345 query I rowsort SELECT col0 + + 33 FROM tab2 AS cor0 ---- 111 112 40 query I rowsort SELECT ALL + + col2 * - cor0.col0 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL - cor0.col2 * + 68 FROM tab2 AS cor0 ---- -1768 -1836 -2584 query I rowsort SELECT DISTINCT + 80 + 67 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 147 query I rowsort SELECT ALL 66 FROM tab1, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 897b6122ac98340b78905f39d81897fc query I rowsort SELECT DISTINCT + col0 * 81 FROM tab1 ---- 243 5184 6480 query I rowsort SELECT 20 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4 query I rowsort SELECT - - ( + col2 ) * + col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-422 SELECT + CAST( - 95 AS SIGNED ) FROM tab2 AS cor0 ---- -95 -95 -95 skipif mysql # not compatible query I rowsort label-422 SELECT + CAST ( - 95 AS INTEGER ) FROM tab2 AS cor0 ---- -95 -95 -95 query I rowsort SELECT 19 + tab1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to fe3791077f83fda6130cdcb3c93441d0 query I rowsort SELECT ALL + 76 FROM tab2, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da query I rowsort SELECT ALL col1 + + ( - col1 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col1 * + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT - 14 AS col1 FROM tab1 ---- -14 -14 -14 onlyif mysql # use DIV operator for integer division query I rowsort label-428 SELECT + tab0.col1 DIV + CAST( 34 AS SIGNED ) + - col2 FROM tab0 ---- -31 -80 1 skipif mysql # not compatible query I rowsort label-428 SELECT + tab0.col1 / + CAST ( 34 AS INTEGER ) + - col2 FROM tab0 ---- -31 -80 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-429 SELECT DISTINCT col0 * ( - 57 ) * - col2 + CAST( NULL AS SIGNED ) FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-429 SELECT DISTINCT col0 * ( - 57 ) * - col2 + CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort SELECT DISTINCT col0 + CAST ( col0 * - col2 AS REAL ) - ( 93 ) * col1 AS col2 FROM tab2 ---- -3065 -4504 -7437 query I rowsort SELECT DISTINCT col1 + - ( - tab0.col1 ) * + col1 * col1 - - col1 AS col1 FROM tab0 ---- 636228 753753 912867 query I rowsort SELECT DISTINCT - tab0.col1 * col2 - 34 AS col0 FROM tab0 ---- -131 -2872 -7496 query I rowsort SELECT - col0 + + col1 - col0 * - col1 AS col0 FROM tab0 ---- 2126 3457 8101 query I rowsort SELECT DISTINCT 46 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 46 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-435 SELECT CAST( - col1 AS SIGNED ) AS col0 FROM tab2 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-435 SELECT CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT - 10 FROM tab1, tab0 AS cor0 ---- 9 values hashing to f68f33032846e21ee6b2c668fc10355e query I rowsort SELECT - 81 AS col2 FROM tab2 AS cor0 ---- -81 -81 -81 query I rowsort SELECT ALL - col1 * + tab1.col2 + col0 AS col0 FROM tab1 ---- -1168 -1401 -506 query I rowsort SELECT - + 51 AS col0 FROM tab2 AS cor0 ---- -51 -51 -51 query I rowsort SELECT + - col2 + - 92 FROM tab2 AS cor0 ---- -118 -119 -130 query I rowsort SELECT + + 66 + col1 AS col1 FROM tab2 AS cor0 ---- 125 83 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - col2 ) * - 45 col0 FROM tab1 cor0 ---- 2430 2565 4320 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 2 * col2 col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT DISTINCT + - 50 + col0 FROM tab2 AS cor0 ---- -43 28 29 query I rowsort SELECT ALL - + ( col2 ) * 34 FROM tab2 cor0 ---- -1292 -884 -918 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + 39 ) col0 FROM tab0 ---- 39 query I rowsort SELECT - + col0 + + cor0.col1 FROM tab0 AS cor0 ---- 2 62 62 onlyif mysql # use DIV operator for integer division query I rowsort label-448 SELECT - col1 DIV - col2 AS col1 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-448 SELECT - col1 / - col2 AS col1 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # use DIV operator for integer division query I rowsort label-449 SELECT DISTINCT - + 43 + - cor0.col2 DIV 27 AS col2 FROM tab2 AS cor0 ---- -43 -44 skipif mysql # not compatible query I rowsort label-449 SELECT DISTINCT - + 43 + - cor0.col2 / 27 AS col2 FROM tab2 AS cor0 ---- -43 -44 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 64 col2 FROM tab0 AS cor0 ---- 64 64 64 query I rowsort SELECT DISTINCT - + 16 AS col1 FROM tab0 AS cor0 ---- -16 query I rowsort SELECT 40 + + col1 * - col1 FROM tab2 AS cor0 ---- -249 -3441 -921 onlyif mysql # use DIV operator for integer division query I rowsort label-453 SELECT col0 DIV col0 + + ( + 18 + col1 ) * + ( + col1 ) AS col0 FROM tab1 ---- 1145 281 404 skipif mysql # not compatible query I rowsort label-453 SELECT col0 / col0 + + ( + 18 + col1 ) * + ( + col1 ) AS col0 FROM tab1 ---- 1145 281 404 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + - col2 col2 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT - 38 AS col2 FROM tab1 ---- -38 -38 -38 query I rowsort SELECT DISTINCT col2 * col2 + + ( ( - col1 ) ) FROM tab1 AS cor0 ---- 2890 3239 9203 query I rowsort SELECT 86 AS col0 FROM tab0 AS cor0 ---- 86 86 86 query I rowsort SELECT ALL - cor0.col0 - col0 AS col0 FROM tab0 AS cor0 ---- -178 -48 -70 query I rowsort SELECT - col2 * - col2 + ( + 16 ) AS col0 FROM tab2 AS cor0 ---- 1460 692 745 query I rowsort SELECT ALL 74 + - col0 * col2 * col2 AS col1 FROM tab1 AS cor0 ---- -207862 -737206 -8674 query I rowsort SELECT DISTINCT + - cor0.col2 + col1 * - col2 + col1 FROM tab1 AS cor0 ---- -1331 -1432 -617 query I rowsort SELECT DISTINCT col1 + col2 * + 5 AS col1 FROM tab2 cor0 ---- 166 189 207 query I rowsort SELECT DISTINCT - col0 * - 89 + + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 650 6968 7069 query I rowsort SELECT DISTINCT - col2 + - col1 * 18 AS col2 FROM tab2 AS cor0 ---- -1088 -344 -585 onlyif mysql # use DIV operator for integer division query I rowsort label-465 SELECT DISTINCT - - col1 DIV - CAST( col1 AS SIGNED ) + + col0 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-465 SELECT DISTINCT - - col1 / - CAST ( col1 AS INTEGER ) + + col0 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT ALL - - col0 + - col2 * - col1 FROM tab2 cor0 ---- 1612 725 844 onlyif mysql # use DIV operator for integer division query I rowsort label-467 SELECT DISTINCT col0 DIV col0 col0 FROM tab0 AS cor0 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-467 SELECT DISTINCT col0 / col0 col0 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT ALL + + col0 * - col1 + + col0 AS col2 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT ALL cor0.col0 + - ( - 17 + cor0.col2 ) * 92 AS col1 FROM tab2 cor0 ---- -1853 -750 -913 query I rowsort SELECT DISTINCT - - col0 - 51 AS col0 FROM tab2 AS cor0 ---- -44 27 28 query I rowsort SELECT + cor0.col1 * col2 + + col0 AS col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT - 59 * + col2 FROM tab1 AS cor0 ---- -3186 -3363 -5664 query I rowsort SELECT col0 * col2 + + col2 * + col1 AS col2 FROM tab1 AS cor0 ---- 1566 4218 8928 query I rowsort SELECT ALL cor0.col2 * ( col0 ) AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-475 SELECT ALL - col1 DIV - cor0.col0 + col0 AS col0 FROM tab0 AS cor0 ---- 27 37 90 skipif mysql # not compatible query I rowsort label-475 SELECT ALL - col1 / - cor0.col0 + col0 AS col0 FROM tab0 AS cor0 ---- 27 37 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + 47 ) * col0 + col2 col1 FROM tab1 cor0 ---- -2951 -3664 -87 query I rowsort SELECT - col2 + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT - ( - col1 ) * - col2 * col2 + col2 FROM tab1 cor0 ---- -119712 -32433 -75762 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 - + 72 col1 FROM tab1 AS cor0 ---- -15 -18 24 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-480 SELECT CAST( col0 AS SIGNED ) * - col1 + + col2 FROM tab0 AS cor0 ---- -2031 -3394 -8017 skipif mysql # not compatible query I rowsort label-480 SELECT CAST ( col0 AS INTEGER ) * - col1 + + col2 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL + - 90 FROM tab0 cor0 ---- -90 -90 -90 onlyif mysql # use DIV operator for integer division query I rowsort label-482 SELECT - col1 DIV - col0 + col0 * - col2 FROM tab1 AS cor0 ---- -154 -3648 -7680 skipif mysql # not compatible query I rowsort label-482 SELECT - col1 / - col0 + col0 * - col2 FROM tab1 AS cor0 ---- -154 -3648 -7680 query I rowsort SELECT ALL tab2.col2 * - col0 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT ( + col2 ) + col1 AS col2 FROM tab2 ---- 55 58 85 query I rowsort SELECT ALL 23 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2 query I rowsort SELECT DISTINCT - col0 + + col0 * - col2 FROM tab0 ---- -70 -7387 -816 query I rowsort SELECT ( col2 ) - col0 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT - col1 * ( + col0 ) * + col0 - cor0.col2 * + col0 FROM tab0 AS cor0 ---- -118860 -50328 -728109 query I rowsort SELECT DISTINCT - ( cor0.col2 ) FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT - + col2 * - col0 + col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT ALL + col2 * + 92 FROM tab2 AS cor0 ---- 2392 2484 3496 query I rowsort SELECT + col1 * col0 - cor0.col1 * - col2 FROM tab1 AS cor0 ---- 1210 1482 2288 query I rowsort SELECT col2 * + col1 * 74 - col0 * col0 FROM tab0 AS cor0 ---- 209436 544267 5953 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-494 SELECT - CAST( NULL AS SIGNED ) * 72 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-494 SELECT - CAST ( NULL AS INTEGER ) * 72 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # use DIV operator for integer division query I rowsort label-495 SELECT - + col1 + cor0.col2 DIV - ( col0 ) AS col1 FROM tab0 cor0 ---- -87 -91 -97 skipif mysql # not compatible query I rowsort label-495 SELECT - + col1 + cor0.col2 / - ( col0 ) AS col1 FROM tab0 cor0 ---- -87 -91 -97 query I rowsort SELECT - 29 AS col1 FROM tab1 AS cor0 ---- -29 -29 -29 query I rowsort SELECT ALL ( + tab0.col0 + + col2 * - 76 ) AS col0 FROM tab0 ---- -2484 -41 -6143 query I rowsort SELECT ALL - col0 * + 0 + + col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL 83 + - col1 AS col1 FROM tab1 ---- 57 70 73 query I rowsort SELECT - ( 43 ) + + col2 AS col1 FROM tab0 ---- -10 -42 39 query I rowsort SELECT - col2 * + ( col2 ) * + col1 AS col0 FROM tab1 AS cor0 ---- -119808 -32490 -75816 query I rowsort SELECT DISTINCT - col2 * col2 * - col2 FROM tab2 AS cor0 ---- 17576 19683 54872 query I rowsort SELECT + cor0.col2 * + ( col0 ) FROM tab2 cor0 ---- 189 2028 3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-504 SELECT - col2 * CAST( + 54 AS SIGNED ) FROM tab1 AS cor0 ---- -2916 -3078 -5184 skipif mysql # not compatible query I rowsort label-504 SELECT - col2 * CAST ( + 54 AS INTEGER ) FROM tab1 AS cor0 ---- -2916 -3078 -5184 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-505 SELECT DISTINCT col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-505 SELECT DISTINCT col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-506 SELECT DISTINCT - - col2 DIV + col1 AS col0 FROM tab2 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-506 SELECT DISTINCT - - col2 / + col1 AS col0 FROM tab2 AS cor0 ---- 0 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-507 SELECT + + cor0.col0 + CAST( + 79 AS SIGNED ) * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1107 2057 854 skipif mysql # not compatible query I rowsort label-507 SELECT + + cor0.col0 + CAST ( + 79 AS INTEGER ) * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1107 2057 854 query I rowsort SELECT ALL + - col0 + ( - cor0.col2 ) * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -196 -2106 -3081 query I rowsort SELECT ALL - + cor0.col1 + + 35 AS col1 FROM tab1 AS cor0 ---- 22 25 9 query I rowsort SELECT + + col0 + ( + 71 ) * cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1924 1924 2777 query I rowsort SELECT ALL ( - col2 ) * tab2.col0 AS col2 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT + col1 * ( 89 + + col2 ) FROM tab2 ---- 2159 3596 6785 query I rowsort SELECT DISTINCT - col0 * ( + cor0.col0 ) - col1 FROM tab1 AS cor0 ---- -35 -4106 -6413 query I rowsort SELECT - + col0 * + 36 AS col1 FROM tab2 AS cor0 ---- -252 -2808 -2844 query I rowsort SELECT ALL + col2 + + ( + cor0.col2 ) * + col1 * - 39 + col0 FROM tab0 AS cor0 ---- -110625 -290847 -3747 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 ---- 210 3403 954 query I rowsort SELECT ALL + + col2 - - col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1 ---- 86 91 97 query I rowsort SELECT - ( - ( - col1 ) ) * col0 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col0 + - col1 col2 FROM tab1 ---- -23 54 67 query I rowsort SELECT + ( + cor0.col1 ) * - col2 * - col2 FROM tab1 AS cor0 ---- 119808 32490 75816 onlyif mysql # use DIV operator for integer division query I rowsort label-523 SELECT 59 DIV - 72 FROM tab1, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-523 SELECT 59 / - 72 FROM tab1, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT 63 FROM tab2, tab0 cor0 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 onlyif mysql # use DIV operator for integer division query I rowsort label-525 SELECT DISTINCT + CAST( col0 AS SIGNED ) DIV col0 FROM tab1 ---- 1 skipif mysql # not compatible query I rowsort label-525 SELECT DISTINCT + CAST ( col0 AS INTEGER ) / col0 FROM tab1 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-526 SELECT tab2.col0 DIV - col0 AS col1 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-526 SELECT tab2.col0 / - col0 AS col1 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT + + ( col0 ) * col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT + - 56 * col0 FROM tab1 AS cor0 ---- -168 -3584 -4480 onlyif mysql # use DIV operator for integer division query I rowsort label-529 SELECT + + cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-529 SELECT + + cor0.col2 / col2 AS col2 FROM tab1 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 + ( - col2 ) * - col0 col1 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT - col1 + + col1 * - col0 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT + col2 + + col1 + 10 AS col0 FROM tab2 AS cor0 ---- 65 68 95 query I rowsort SELECT DISTINCT - 68 + cor0.col0 + - 96 * col0 * + col2 AS col2 FROM tab0 AS cor0 ---- -3393 -700587 -76076 query I rowsort SELECT + - ( + cor0.col0 ) + col0 AS col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + + 83 * col2 FROM tab1 cor0 ---- 4482 4731 7968 query I rowsort SELECT col0 + col0 * + col1 + - col2 AS col1 FROM tab0 AS cor0 ---- 2055 3429 8106 query I rowsort SELECT ( - col0 ) AS col0 FROM tab0 cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-538 SELECT - col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-538 SELECT - col1 / cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + 14 * 56 col2 FROM tab1 AS cor0 ---- 704 720 781 query I rowsort SELECT + col2 + + ( col2 + col1 ) AS col0 FROM tab2 AS cor0 ---- 111 85 93 query I rowsort SELECT ALL + - cor0.col1 + col0 FROM tab0 cor0 ---- -2 -62 -62 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 > ( NULL ) OR col2 + + col2 - + col1 * col2 <> NULL ---- query I rowsort SELECT DISTINCT + - col2 + - col0 * + col1 AS col2 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT DISTINCT + col2 + cor0.col0 / col0 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + cor0.col0 OR NULL NOT BETWEEN ( - col0 ) AND NULL ---- query I rowsort SELECT ALL - cor0.col2 * + col1 + + col0 AS col1 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT DISTINCT + cor0.col2 + col1 * col2 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT ALL + col0 * col1 + - col1 AS col0 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT DISTINCT + col0 - - col2 * col2 AS col2 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT DISTINCT col0 * + col1 * col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT - col0 + + col2 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- 1456 567 830 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col2 col1 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT col1 + - col0 + + col0 AS col1 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-553 SELECT ALL - col1 DIV col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-553 SELECT ALL - col1 / col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 * col1 * + col2 AS col2 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT - - col0 + col2 + - cor0.col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + col2 * - col0 * tab2.col1 AS col2 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT + col0 + - col1 * col0 AS col2 FROM tab1 ---- -576 -75 -960 query I rowsort SELECT col1 - - col1 * - col2 * + col0 FROM tab0 ---- -3298 -664027 -68026 query IIIIIIIII rowsort SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE NOT ( NULL ) > NULL ---- query I rowsort SELECT ALL col2 + col0 * col2 FROM tab0 ---- 36 7380 825 query I rowsort SELECT - col2 - col1 * + col0 FROM tab0 ---- -2097 -3396 -8181 query I rowsort SELECT DISTINCT tab0.col2 * col0 AS col1 FROM tab0 ---- 35 7298 792 query I rowsort SELECT ALL col2 * - tab1.col0 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT ALL col1 + - tab2.col0 * + col0 * - tab2.col1 AS col0 FROM tab2 ---- 106114 1550 359015 query I rowsort SELECT - col0 * - col0 FROM tab0 WHERE NOT NULL IN ( + tab0.col0 ) ---- query I rowsort SELECT tab2.col0 * + col2 * - col0 FROM tab2 ---- -1323 -158184 -237158 query I rowsort SELECT - tab2.col0 * col2 + - col0 FROM tab2 ---- -196 -2106 -3081 query I rowsort SELECT DISTINCT - tab1.col1 * col2 AS col0 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT - col0 - tab2.col2 AS col0 FROM tab2 ---- -104 -117 -34 query III rowsort SELECT * FROM tab2 WHERE NULL IN ( - tab2.col1 * col0 ) ---- query I rowsort SELECT DISTINCT + tab1.col1 * - col2 + col1 * - tab1.col2 AS col2 FROM tab1 ---- -1140 -2496 -2808 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( cor0.col0 ) * col1 * col0 col1 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT col0 + col0 * 34 * + 1 FROM tab1 ---- 105 2240 2800 query I rowsort SELECT - 67 * col1 * - 42 FROM tab0 cor0 ---- 242004 256074 272958 query I rowsort SELECT ALL - cor0.col0 * - col0 AS col2 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT DISTINCT + 44 FROM tab1 AS cor0 ---- 44 query I rowsort SELECT ALL - 28 * + col2 FROM tab1 AS cor0 ---- -1512 -1596 -2688 query III rowsort SELECT * FROM tab0 WHERE NOT ( col2 * col0 * - col2 + + col0 ) BETWEEN - col0 AND NULL ---- 24 86 33 89 91 82 onlyif mysql # use DIV operator for integer division query I rowsort label-579 SELECT ALL col2 + col0 DIV + col0 - col1 FROM tab1 ---- 29 48 84 skipif mysql # not compatible query I rowsort label-579 SELECT ALL col2 + col0 / + col0 - col1 FROM tab1 ---- 29 48 84 query I rowsort SELECT col2 * col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 ) ---- query I rowsort SELECT DISTINCT - col1 + - col1 - col2 AS col1 FROM tab0 ---- -195 -205 -264 onlyif mysql # use DIV operator for integer division query I rowsort label-582 SELECT ALL tab1.col0 DIV col2 FROM tab1 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-582 SELECT ALL tab1.col0 / col2 FROM tab1 ---- 0 0 1 query I rowsort SELECT col2 * - tab1.col2 * + col0 + + tab1.col1 * col1 * + col0 AS col1 FROM tab1 ---- -201536 -6720 -723760 query I rowsort SELECT + cor0.col0 * cor0.col1 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 815fccd4c3d372b28d3f3fb103025775 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( col1 ) <= NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-586 SELECT ALL + col2 DIV - col0 - col0 AS col1 FROM tab0 AS cor0 ---- -25 -35 -89 skipif mysql # not compatible query I rowsort label-586 SELECT ALL + col2 / - col0 - col0 AS col1 FROM tab0 AS cor0 ---- -25 -35 -89 query I rowsort SELECT DISTINCT - col1 * + col1 * - cor0.col0 + col2 AS col1 FROM tab0 AS cor0 ---- 177537 329316 737091 query I rowsort SELECT DISTINCT - col0 * col2 - + col0 AS col1 FROM tab2 ---- -196 -2106 -3081 query I rowsort SELECT col1 * col2 AS col2 FROM tab1 WHERE col1 NOT BETWEEN + col1 AND NULL ---- query I rowsort SELECT - col2 + col1 * + col0 FROM tab1 ---- 24 583 944 query I rowsort SELECT ALL - col1 + col1 * col1 AS col0 FROM tab1 ---- 156 650 90 query I rowsort SELECT ALL col1 + + col1 * - col2 FROM tab2 ---- -1475 -629 -806 query I rowsort SELECT + col1 * + col0 + + col0 FROM tab0 ---- 2088 3430 8188 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 * + col2 * - tab0.col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col2 * col1 * + col2 col1 FROM tab1 ---- 119808 32490 75816 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 ) ---- query I rowsort SELECT DISTINCT + col0 * + col2 + col0 * tab2.col1 + - col0 AS col0 FROM tab2 ---- 399 4266 6552 query I rowsort SELECT DISTINCT col0 + - col0 + tab0.col0 FROM tab0 ---- 24 35 89 query I rowsort SELECT DISTINCT + col2 * col0 + col1 * col2 AS col2 FROM tab1 ---- 1566 4218 8928 query III rowsort SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col0 + + col2 ---- query I rowsort SELECT - col1 + col1 * - col1 FROM tab2 ---- -306 -3540 -992 query I rowsort SELECT DISTINCT - col1 * - col0 - col1 AS col0 FROM tab2 ---- 1326 186 4543 query I rowsort SELECT - 76 FROM tab2 ---- -76 -76 -76 query I rowsort SELECT ALL - + cor0.col0 + + col1 * 64 * - 97 + - cor0.col0 * col1 AS col1 FROM tab0 AS cor0 ---- -535976 -573116 -605606 query I rowsort SELECT cor0.col0 + + cor0.col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 43cd4d6bf46fb9ce15caf369cb36598e query I rowsort SELECT ALL + + 27 + - col2 AS col2 FROM tab2 cor0 ---- -11 0 1 query I rowsort SELECT ALL col2 * col0 + col0 AS col1 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT DISTINCT - col1 * + col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col1 * + cor0.col1 - + 4 FROM tab0 cor0 ---- -7400 -8285 -9413 query I rowsort SELECT - col0 - + ( col2 + + col0 ) FROM tab1 AS cor0 ---- -185 -256 -60 onlyif mysql # use DIV operator for integer division query I rowsort label-611 SELECT - + col0 * cor0.col2 DIV + col1 AS col2 FROM tab2 AS cor0 ---- -176 -34 -6 skipif mysql # not compatible query I rowsort label-611 SELECT - + col0 * cor0.col2 / + col1 AS col2 FROM tab2 AS cor0 ---- -176 -34 -6 query I rowsort SELECT DISTINCT col2 + - ( col0 ) FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT col1 - + 42 * - col0 AS col0 FROM tab0 cor0 ---- 1094 1567 3829 query I rowsort SELECT DISTINCT - col2 + col2 * - col1 AS col0 FROM tab0 AS cor0 ---- -2871 -7544 -98 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 - + col1 * col2 + col1 AS col0 FROM tab0 cor0 ---- -2752 -7371 0 query I rowsort SELECT tab2.col2 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 onlyif mysql # use DIV operator for integer division query I rowsort label-618 SELECT ALL tab1.col0 DIV col0 AS col1 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-618 SELECT ALL tab1.col0 / col0 AS col1 FROM tab1 ---- 1 1 1 query I rowsort SELECT - col0 + 62 FROM tab1 AS cor0 ---- -18 -2 59 query I rowsort SELECT - - col2 + - ( col1 ) AS col2 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT - col0 * + ( - col0 ) + - col1 * ( - 76 ) - - col2 * col2 AS col2 FROM tab1 AS cor0 ---- 16604 4901 8105 query I rowsort SELECT + + col2 + - ( col2 ) * + 57 FROM tab2 AS cor0 ---- -1456 -1512 -2128 query I rowsort SELECT ALL - 69 + + col0 * - col1 FROM tab0 AS cor0 ---- -2133 -3464 -8168 query I rowsort SELECT - col2 * 14 FROM tab2 AS cor0 ---- -364 -378 -532 query I rowsort SELECT DISTINCT + cor0.col0 + + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-626 SELECT + - CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-626 SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 86 + col2 * + col1 FROM tab2 AS cor0 ---- 1620 732 923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-628 SELECT CAST( col0 AS SIGNED ) * - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-628 SELECT CAST ( col0 AS INTEGER ) * - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + + ( + 71 ) AS col0 FROM tab1 cor0 ---- 71 71 71 query I rowsort SELECT ALL - - ( cor0.col1 ) * cor0.col1 AS col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT + - col1 + + col0 * col1 FROM tab1 AS cor0 ---- 1027 52 630 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - 39 ) col1 FROM tab2 AS cor0 ---- -39 -39 -39 query I rowsort SELECT + 98 * - 81 + col1 AS col1 FROM tab2 cor0 ---- -7879 -7907 -7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - col1 ) col2 FROM tab1 cor0 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-635 SELECT ALL + CAST( NULL AS SIGNED ) * + cor0.col1 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-635 SELECT ALL + CAST ( NULL AS INTEGER ) * + cor0.col1 col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 + - cor0.col2 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT DISTINCT ( ( tab1.col2 ) ) * + 76 FROM tab1 ---- 4104 4332 7296 query I rowsort SELECT - + col0 * + col1 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT 79 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f query I rowsort SELECT ALL + + cor0.col1 AS col0 FROM tab1, tab2 cor0, tab0, tab0 AS cor1 ---- 81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7 query I rowsort SELECT col0 * + col0 * + ( 54 ) FROM tab2 cor0 ---- 2646 328536 337014 query I rowsort SELECT 94 * - col0 AS col1 FROM tab2 cor0 ---- -658 -7332 -7426 query I rowsort SELECT + 48 + col1 AS col1 FROM tab1 AS cor0 ---- 58 61 74 onlyif mysql # use DIV operator for integer division query I rowsort label-644 SELECT - ( col1 ) + + cor0.col0 * - col2 DIV - cor0.col2 + - ( col1 ) AS col1 FROM tab1 AS cor0 ---- -49 44 54 skipif mysql # not compatible query I rowsort label-644 SELECT - ( col1 ) + + cor0.col0 * - col2 / - cor0.col2 + - ( col1 ) AS col1 FROM tab1 AS cor0 ---- -49 44 54 query I rowsort SELECT DISTINCT + ( - col1 + - col1 ) * + col2 FROM tab2 ---- -1292 -1674 -3068 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-646 SELECT DISTINCT CAST( - col1 AS SIGNED ) * col2 * + 91 FROM tab0 ---- -258258 -679042 -8827 skipif mysql # not compatible query I rowsort label-646 SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col2 * + 91 FROM tab0 ---- -258258 -679042 -8827 query I rowsort SELECT + col2 * + col2 * + tab1.col0 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT + - col1 * col2 * - 90 FROM tab1 AS cor0 ---- 112320 126360 51300 query I rowsort SELECT ALL + col1 * col2 * col2 AS col0 FROM tab2 ---- 22599 24548 39884 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-650 SELECT + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-650 SELECT + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT cor0.col0 * 30 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 12ff78d90fb6d6e7b44bdd4157b90771 query I rowsort SELECT col1 * col2 * cor0.col1 AS col0 FROM tab0 cor0 ---- 244068 679042 9409 query I rowsort SELECT ALL - - col0 * - ( + cor0.col1 ) * - cor0.col1 - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 22814 271459 6696 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-654 SELECT + + ( - 8 ) * + cor1.col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-654 SELECT + + ( - 8 ) * + cor1.col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT 32 * col1 FROM tab2 AS cor0 ---- 1888 544 992 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-656 SELECT + col2 + CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-656 SELECT + col2 + CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-657 SELECT - col0 DIV col1 AS col2 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-657 SELECT - col0 / col1 AS col2 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-658 SELECT col1 DIV 1 AS col1 FROM tab2 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-658 SELECT col1 / 1 AS col1 FROM tab2 ---- 17 31 59 query I rowsort SELECT DISTINCT col1 * - ( col1 ) FROM tab0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-660 SELECT + col2 DIV col2 AS col0 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-660 SELECT + col2 / col2 AS col0 FROM tab0 ---- 1 1 1 query I rowsort SELECT DISTINCT 47 AS col0 FROM tab0 AS cor0 ---- 47 query I rowsort SELECT + - 72 * + col2 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- -11664 -262656 -552960 query I rowsort SELECT DISTINCT + 57 * tab0.col2 FROM tab0 ---- 1881 4674 57 query I rowsort SELECT cor0.col0 AS col1 FROM tab0, tab2 cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT 47 + + 69 * col1 * ( 72 * - col1 ) FROM tab2 AS cor0 ---- -1435705 -17293561 -4774201 query I rowsort SELECT 55 + 31 * + col0 FROM tab1 AS cor0 ---- 148 2039 2535 query I rowsort SELECT - ( 44 ) + - col2 + - col2 FROM tab1 cor0 ---- -152 -158 -236 query I rowsort SELECT + col0 * 65 AS col1 FROM tab1 AS cor0 ---- 195 4160 5200 query I rowsort SELECT ALL 87 FROM tab0, tab2 AS cor0 ---- 9 values hashing to fa0cdd86483844cda3bb806e032d5c64 onlyif mysql # use DIV operator for integer division query I rowsort label-670 SELECT ALL + - col0 * + col2 + + 51 DIV + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -182 -2028 -3002 skipif mysql # not compatible query I rowsort label-670 SELECT ALL + - col0 * + col2 + + 51 / + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -182 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-671 SELECT DISTINCT - col0 DIV 86 FROM tab0 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-671 SELECT DISTINCT - col0 / 86 FROM tab0 AS cor0 ---- -1 0 query I rowsort SELECT + col1 + ( - ( + col0 ) + - col0 ) AS col0 FROM tab2 AS cor0 ---- -141 -97 17 onlyif mysql # use DIV operator for integer division query I rowsort label-673 SELECT DISTINCT + col0 DIV col2 - - cor0.col0 FROM tab1 AS cor0 ---- 3 65 80 skipif mysql # not compatible query I rowsort label-673 SELECT DISTINCT + col0 / col2 - - cor0.col0 FROM tab1 AS cor0 ---- 3 65 80 query I rowsort SELECT + - col2 + + 27 AS col2 FROM tab0 AS cor0 ---- -55 -6 26 query I rowsort SELECT - col0 * + 81 + col1 FROM tab2 AS cor0 ---- -536 -6259 -6382 query I rowsort SELECT ALL 89 + - col1 * + cor0.col2 FROM tab1 cor0 ---- -1159 -1315 -481 query I rowsort SELECT ALL - - 56 + col0 AS col2 FROM tab0 AS cor0 ---- 145 80 91 query I rowsort SELECT ALL + col2 + + 47 * + col1 * + cor0.col0 FROM tab1 cor0 ---- 30137 3720 48976 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-679 SELECT ALL - CAST( + 34 AS SIGNED ) AS col0 FROM tab2 cor0 ---- -34 -34 -34 skipif mysql # not compatible query I rowsort label-679 SELECT ALL - CAST ( + 34 AS INTEGER ) AS col0 FROM tab2 cor0 ---- -34 -34 -34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-680 SELECT DISTINCT - CAST( 90 AS SIGNED ) * col0 + CAST( 63 * col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -2844 -3087 -81 skipif mysql # not compatible query I rowsort label-680 SELECT DISTINCT - CAST ( 90 AS INTEGER ) * col0 + CAST ( 63 * col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -2844 -3087 -81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + cor0.col0 * col1 + cor0.col2 col0 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT + col2 + - col0 * col2 * col2 FROM tab1 ---- -207879 -737184 -8694 query I rowsort SELECT DISTINCT col2 * + col2 - cor0.col1 FROM tab0 AS cor0 ---- -96 1003 6633 query I rowsort SELECT ALL + 2 + col2 * + col2 AS col1 FROM tab1 cor0 ---- 2918 3251 9218 query I rowsort SELECT cor0.col2 * + col0 + col1 AS col2 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT ALL + 4 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 730dff78e83112374961ea711f98ebaa query I rowsort SELECT - - 89 + - col1 * ( + col1 ) FROM tab2 AS cor0 ---- -200 -3392 -872 query I rowsort SELECT DISTINCT 22 FROM tab2, tab2 cor0 CROSS JOIN tab0 ---- 22 onlyif mysql # use DIV operator for integer division query I rowsort label-689 SELECT - col2 * col2 DIV col0 FROM tab1 AS cor0 ---- -115 -50 -972 skipif mysql # not compatible query I rowsort label-689 SELECT - col2 * col2 / col0 FROM tab1 AS cor0 ---- -115 -50 -972 query I rowsort SELECT ALL - 81 AS col2 FROM tab1 AS cor0 ---- -81 -81 -81 query I rowsort SELECT + + 11 + + col2 AS col2 FROM tab0 AS cor0 ---- 12 44 93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col1 * - ( col0 + - col0 ) col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL - col1 + - 65 FROM tab2 AS cor0 ---- -124 -82 -96 query I rowsort SELECT DISTINCT - + col1 * + 95 + col0 AS col0 FROM tab2 AS cor0 ---- -1536 -2938 -5527 query I rowsort SELECT ALL + - col0 + - col1 * col2 AS col1 FROM tab0 AS cor0 ---- -132 -2862 -7551 query I rowsort SELECT DISTINCT + - col1 + 53 AS col0 FROM tab1 AS cor0 ---- 27 40 43 query I rowsort SELECT ALL - col2 * - col0 * col2 FROM tab0 AS cor0 ---- 26136 35 598436 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-698 SELECT - - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-698 SELECT - - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - tab0.col2 + - col2 + + col1 * - tab0.col2 * col2 AS col0 FROM tab0 ---- -612048 -93720 -99 query I rowsort SELECT - tab0.col2 * - col0 FROM tab0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-701 SELECT DISTINCT - col2 DIV - tab1.col0 - col0 AS col1 FROM tab1 ---- -64 -79 15 skipif mysql # not compatible query I rowsort label-701 SELECT DISTINCT - col2 / - tab1.col0 - col0 AS col1 FROM tab1 ---- -64 -79 15 query I rowsort SELECT DISTINCT + 49 - + col0 FROM tab1 ---- -15 -31 46 onlyif mysql # use DIV operator for integer division query I rowsort label-703 SELECT + col0 DIV + cor0.col2 + col1 FROM tab1 AS cor0 ---- 11 13 26 skipif mysql # not compatible query I rowsort label-703 SELECT + col0 / + cor0.col2 + col1 FROM tab1 AS cor0 ---- 11 13 26 query I rowsort SELECT - cor0.col0 * - ( col2 ) AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + 2 FROM tab1, tab0 AS cor0 ---- 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 col1 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT + col1 + col0 * ( + col2 ) AS col0 FROM tab2 AS cor0 ---- 2087 220 3019 onlyif mysql # use DIV operator for integer division query I rowsort label-708 SELECT ALL + - cor0.col0 * col1 DIV - cor0.col0 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-708 SELECT ALL + - cor0.col0 * col1 / - cor0.col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT cor1.col1 * - 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- -1071 -1953 -3717 onlyif mysql # use DIV operator for integer division query I rowsort label-710 SELECT ALL tab1.col0 DIV - CAST( - col1 AS SIGNED ) + - col1 AS col2 FROM tab1 ---- -26 -4 -7 skipif mysql # not compatible query I rowsort label-710 SELECT ALL tab1.col0 / - CAST ( - col1 AS INTEGER ) + - col1 AS col2 FROM tab1 ---- -26 -4 -7 query I rowsort SELECT ALL col2 + + tab2.col0 AS col1 FROM tab2 ---- 104 117 34 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col1 + CAST ( - 69 AS REAL ) AS col0 FROM tab1 ---- -79 -82 -95 query I rowsort SELECT col1 * + ( + col2 ) AS col0 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT - col0 + cor0.col0 * + col2 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT + cor0.col0 * + col2 AS col2 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT + 92 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to c64cb7a81da51f4be0b6906a223e8817 query I rowsort SELECT DISTINCT - + 24 + col1 + col1 FROM tab2 AS cor0 ---- 10 38 94 query I rowsort SELECT - tab1.col1 AS col1 FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 onlyif mysql # use DIV operator for integer division query I rowsort label-719 SELECT 20 + 48 DIV - col1 FROM tab0 ---- 20 20 20 skipif mysql # not compatible query I rowsort label-719 SELECT 20 + 48 / - col1 FROM tab0 ---- 20 20 20 query I rowsort SELECT - col2 + tab0.col0 * - tab0.col2 FROM tab0 ---- -36 -7380 -825 query I rowsort SELECT DISTINCT + 81 * 60 AS col1 FROM tab1, tab2, tab0 cor0 ---- 4860 onlyif mysql # use DIV operator for integer division query I rowsort label-722 SELECT + tab0.col2 DIV col1 + col2 * + ( + col2 ) FROM tab0 ---- 1 1089 6724 skipif mysql # not compatible query I rowsort label-722 SELECT + tab0.col2 / col1 + col2 * + ( + col2 ) FROM tab0 ---- 1 1089 6724 query I rowsort SELECT - col1 + 71 FROM tab1 ---- 45 58 61 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + col2 + + col1 col2 FROM tab1 AS cor0 ---- 131 189 83 onlyif mysql # use DIV operator for integer division query I rowsort label-725 SELECT ALL + - col0 DIV col0 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-725 SELECT ALL + - col0 / col0 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + - cor0.col0 + col1 FROM tab0 cor0 ---- 2 62 62 query I rowsort SELECT ALL - - col2 * + cor0.col2 + - col2 * + ( + col1 ) FROM tab0 AS cor0 ---- -1749 -738 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-728 SELECT 18 * col1 DIV + tab0.col0 FROM tab0 ---- 18 49 64 skipif mysql # not compatible query I rowsort label-728 SELECT 18 * col1 / + tab0.col0 FROM tab0 ---- 18 49 64 query I rowsort SELECT + - ( - col1 ) * + 61 AS col2 FROM tab1 AS cor0 ---- 1586 610 793 query I rowsort SELECT DISTINCT + ( cor0.col1 ) AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - ( col0 ) + + col0 * + 76 FROM tab1 AS cor0 ---- 225 4800 6000 onlyif mysql # use DIV operator for integer division query I rowsort label-732 SELECT 68 DIV - col2 FROM tab0 cor0 ---- -2 -68 0 skipif mysql # not compatible query I rowsort label-732 SELECT 68 / - col2 FROM tab0 cor0 ---- -2 -68 0 query I rowsort SELECT ALL + ( - col0 ) AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL col0 * col1 + + ( col1 ) AS col0 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT + - 77 * - col2 AS col1 FROM tab0 cor0 ---- 2541 6314 77 query I rowsort SELECT DISTINCT + + col0 + + col2 * + ( - col0 + cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT + 38 + - col0 FROM tab1 AS cor0 ---- -26 -42 35 query I rowsort SELECT ( col1 ) + col0 + col1 AS col1 FROM tab2 AS cor0 ---- 113 196 69 query I rowsort SELECT - ( + 93 ) * + col1 AS col1 FROM tab0 AS cor0 ---- -7998 -8463 -9021 onlyif mysql # use DIV operator for integer division query I rowsort label-740 SELECT 56 DIV + cor0.col1 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-740 SELECT 56 / + cor0.col1 col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-741 SELECT - col2 * CAST( NULL AS SIGNED ) / + 10 + + tab0.col1 / + col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-741 SELECT - col2 * CAST ( NULL AS INTEGER ) / + 10 + + tab0.col1 / + col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL + 16 FROM tab1, tab2 cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT ALL 51 * col2 * - col0 AS col2 FROM tab0 ---- -1785 -372198 -40392 onlyif mysql # use DIV operator for integer division query I rowsort label-744 SELECT + 30 DIV - col1 + col0 DIV col2 FROM tab1 ---- -1 -2 -2 skipif mysql # not compatible query I rowsort label-744 SELECT + 30 / - col1 + col0 / col2 FROM tab1 ---- -1 -2 -2 query I rowsort SELECT DISTINCT tab1.col2 * + 66 AS col2 FROM tab1 ---- 3564 3762 6336 query I rowsort SELECT 34 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT col1 * + 21 FROM tab1 AS cor0 ---- 210 273 546 query I rowsort SELECT ALL + cor0.col1 AS col1 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL 50 * + col0 + col1 * col2 + tab2.col1 * + col0 AS col1 FROM tab2 ---- 10036 1404 5939 query I rowsort SELECT ALL + 32 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to cf4f01ac97eb83445b1721f3ae28961a query I rowsort SELECT DISTINCT col1 + - col1 * col2 AS col0 FROM tab1 ---- -1235 -1378 -560 onlyif mysql # use DIV operator for integer division query I rowsort label-752 SELECT ALL - col0 * col2 DIV - col0 + ( col0 ) * tab2.col2 FROM tab2 ---- 2054 216 3040 skipif mysql # not compatible query I rowsort label-752 SELECT ALL - col0 * col2 / - col0 + ( col0 ) * tab2.col2 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT ALL + 53 AS col0 FROM tab1 AS cor0 ---- 53 53 53 query I rowsort SELECT DISTINCT - 75 + col2 * + col2 FROM tab1 AS cor0 ---- 2841 3174 9141 query I rowsort SELECT ALL + 22 * col1 + col2 AS col0 FROM tab1 AS cor0 ---- 277 382 626 query I rowsort SELECT DISTINCT + 96 AS col0 FROM tab2 ---- 96 query I rowsort SELECT + col1 + - 9 + col0 * col1 FROM tab0 AS cor0 ---- 2141 3483 8181 query I rowsort SELECT - col0 * + cor0.col2 + 8 + + col0 AS col1 FROM tab2 AS cor0 ---- -174 -1942 -2915 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * + cor0.col1 col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT ALL - col2 * col1 + - col1 * col0 AS col1 FROM tab1 AS cor0 ---- -1210 -1482 -2288 query I rowsort SELECT + col0 + 32 + - col2 FROM tab2 AS cor0 ---- 12 73 84 query I rowsort SELECT ALL - 43 * col0 + - 74 + + col0 AS col0 FROM tab1 ---- -200 -2762 -3434 skipif mysql # not compatible query I rowsort SELECT + col0 * CAST ( col0 * + col2 AS REAL ) FROM tab1 AS cor0 ---- 233472 486 614400 query I rowsort SELECT DISTINCT col2 * - col2 + - ( col1 ) FROM tab2 ---- -1461 -735 -760 query I rowsort SELECT col1 * 21 + col0 - tab2.col2 AS col2 FROM tab2 ---- 1291 398 631 query I rowsort SELECT - col2 + ( - col1 + - col0 ) AS col0 FROM tab0 ---- -133 -143 -262 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( - 97 AS REAL ) AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to e4a6bd848a69226cbb7ad3d154be321b query I rowsort SELECT tab1.col0 * tab1.col0 * col2 AS col1 FROM tab1 ---- 233472 486 614400 query I rowsort SELECT + col1 * - col2 - col1 * col2 FROM tab0 cor0 ---- -14924 -194 -5676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-770 SELECT DISTINCT - CAST( NULL AS SIGNED ) * 23 + col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-770 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 23 + col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + + col0 + - cor0.col2 * - col0 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT - col2 * - col0 * col2 AS col0 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT ALL 42 * + col1 AS col0 FROM tab1 AS cor0 ---- 1092 420 546 query I rowsort SELECT - 7 + col0 AS col0 FROM tab0 AS cor0 ---- 17 28 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-775 SELECT ALL - CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif mysql # not compatible query I rowsort label-775 SELECT ALL - CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-776 SELECT ( col0 ) + cor0.col2 DIV col0 FROM tab1 AS cor0 ---- 21 64 81 skipif mysql # not compatible query I rowsort label-776 SELECT ( col0 ) + cor0.col2 / col0 FROM tab1 AS cor0 ---- 21 64 81 query I rowsort SELECT - - 16 FROM tab2 cor0 ---- 16 16 16 query I rowsort SELECT - 91 + - col0 FROM tab2 cor0 ---- -169 -170 -98 query I rowsort SELECT + ( - tab2.col2 + col1 ) AS col1 FROM tab2 ---- -21 33 4 query I rowsort SELECT 23 AS col0 FROM tab2 ---- 23 23 23 query I rowsort SELECT - - col1 * col2 * - cor0.col1 FROM tab2 AS cor0 ---- -10982 -25947 -90506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 col2 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT ALL - col1 + cor0.col0 * + cor0.col0 AS col0 FROM tab0 cor0 ---- 1128 490 7830 query I rowsort SELECT + col2 + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 157 265 730 query I rowsort SELECT + tab0.col0 + - 95 FROM tab0, tab2 cor0 ---- 9 values hashing to a463a912adaf700f05e51566ae030e4c onlyif mysql # use DIV operator for integer division query I rowsort label-786 SELECT + 32 DIV col1 AS col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-786 SELECT + 32 / col1 AS col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT col1 * col1 * 7 FROM tab0 ---- 51772 57967 65863 query I rowsort SELECT + 75 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 22042bfd4d787415457a42bb93d48eea query I rowsort SELECT 85 FROM tab1, tab1 AS cor0 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b query I rowsort SELECT - 46 * - 97 FROM tab1 ---- 4462 4462 4462 query I rowsort SELECT DISTINCT 94 - tab0.col2 FROM tab0 ---- 12 61 93 query I rowsort SELECT col1 * + col1 * + col1 + col1 * + 13 AS col0 FROM tab2 ---- 206146 30194 5134 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col0 col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT + cor0.col0 * col1 AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + - col2 * col0 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT 79 + - col2 + - col2 * - tab2.col1 FROM tab2 ---- 1587 687 889 query I rowsort SELECT + 58 * col1 FROM tab2 ---- 1798 3422 986 query I rowsort SELECT DISTINCT + 71 + 15 FROM tab0 ---- 86 query I rowsort SELECT DISTINCT + col2 + col2 * - col0 - col0 AS col0 FROM tab1 ---- -111 -3655 -7664 query I rowsort SELECT + 83 FROM tab2 ---- 83 83 83 query I rowsort SELECT 68 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 599bee15ac4cc39b859854e07dfe7990 query I rowsort SELECT + col1 + tab0.col2 * - col0 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT 98 * col2 FROM tab1 AS cor0 ---- 5292 5586 9408 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + col1 * + 60 col0 FROM tab0 AS cor0 ---- 5193 5542 5821 query I rowsort SELECT DISTINCT ( + col2 ) * ( - col0 ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT + - col0 * col2 + + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + 92 col2 FROM tab0 AS cor0 ---- 92 92 92 query I rowsort SELECT cor0.col0 * col1 AS col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - 84 + + col2 AS col0 FROM tab2 AS cor0 ---- -46 -57 -58 query I rowsort SELECT DISTINCT - - col2 * col0 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-811 SELECT ALL - 84 DIV - col0 col2 FROM tab2 AS cor0 ---- 1 1 12 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-811 SELECT ALL - 84 / - col0 col2 FROM tab2 AS cor0 ---- 1 1 12 query I rowsort SELECT - 9 + col1 * ( - ( + col2 ) ) AS col0 FROM tab1 AS cor0 ---- -1257 -1413 -579 query I rowsort SELECT DISTINCT col0 * cor0.col1 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL + cor0.col2 * - col1 * 57 FROM tab2 cor0 ---- -36822 -47709 -87438 query I rowsort SELECT DISTINCT - ( cor0.col0 ) + ( col1 ) FROM tab2 AS cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-816 SELECT - 19 DIV col2 + col1 * 47 AS col1 FROM tab0 AS cor0 ---- 4042 4277 4540 skipif mysql # not compatible query I rowsort label-816 SELECT - 19 / col2 + col1 * 47 AS col1 FROM tab0 AS cor0 ---- 4042 4277 4540 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * - 8 col1 FROM tab0 ---- 264 656 8 query I rowsort SELECT ALL - col0 * - 13 FROM tab0 ---- 1157 312 455 query I rowsort SELECT - col2 * 86 FROM tab1 cor0 ---- -4644 -4902 -8256 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-820 SELECT col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-820 SELECT col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 + - ( + cor0.col0 ) FROM tab1 cor0 ---- -121 -176 -57 query I rowsort SELECT ALL + + 75 * - 85 FROM tab1 AS cor0 ---- -6375 -6375 -6375 query I rowsort SELECT - col2 * col0 * + col0 FROM tab2 cor0 ---- -1323 -158184 -237158 query I rowsort SELECT - 86 - col1 FROM tab2 cor0 ---- -103 -117 -145 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - cor0.col1 ) * + 29 col0 FROM tab1, tab2 AS cor0 ---- -1711 -493 -899 query I rowsort SELECT DISTINCT - + col0 + + cor0.col0 FROM tab0 cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-827 SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 + col1 * col1 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-827 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 + col1 * col1 AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL 73 + + ( + col1 + col2 ) * col2 AS col0 FROM tab1 AS cor0 ---- 10537 3892 4393 query I rowsort SELECT DISTINCT 79 - + col1 FROM tab1 AS cor0 ---- 53 66 69 query I rowsort SELECT DISTINCT - 86 * + col2 + - col0 * col2 FROM tab2 AS cor0 ---- -2511 -4264 -6270 query I rowsort SELECT DISTINCT + 53 + + 6 FROM tab2 AS cor0 ---- 59 query I rowsort SELECT ALL - 56 * col2 FROM tab0 AS cor0 ---- -1848 -4592 -56 query I rowsort SELECT 15 FROM tab1 cor0 ---- 15 15 15 query I rowsort SELECT ALL + - ( 16 ) * cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1424 -384 -560 onlyif mysql # use DIV operator for integer division query I rowsort label-835 SELECT ALL - cor0.col2 DIV - col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-835 SELECT ALL - cor0.col2 / - col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT DISTINCT + + ( 81 ) * - cor0.col0 + col1 * ( cor0.col0 ) FROM tab2 AS cor0 ---- -1716 -350 -5056 query I rowsort SELECT DISTINCT + col0 - + 25 * + col1 AS col1 FROM tab1 AS cor0 ---- -186 -245 -647 query I rowsort SELECT ALL + ( - col1 ) + + col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + - 9 + col0 + col0 AS col1 FROM tab0 AS cor0 ---- 169 39 61 query I rowsort SELECT ALL + 21 * col2 FROM tab0 AS cor0 ---- 1722 21 693 query I rowsort SELECT DISTINCT + 22 * + ( col2 ) FROM tab0 AS cor0 ---- 1804 22 726 query I rowsort SELECT ALL + - col0 + + col0 * col0 + col0 * - col2 FROM tab1 cor0 ---- -1360 -156 384 query I rowsort SELECT - 51 * - col1 FROM tab0 AS cor0 ---- 4386 4641 4947 query I rowsort SELECT - col2 * 29 FROM tab1 AS cor0 ---- -1566 -1653 -2784 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-845 SELECT ALL + CAST( col2 AS SIGNED ) - - col1 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-845 SELECT ALL + CAST ( col2 AS INTEGER ) - - col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT - - 12 AS col1 FROM tab1 cor0 ---- 12 12 12 query I rowsort SELECT DISTINCT - col1 * - 29 + col1 * col0 * col1 FROM tab2 AS cor0 ---- 23324 273229 7626 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + col0 * col0 * - 57 col1 FROM tab1 AS cor0 ---- -233536 -364880 -516 query I rowsort SELECT ALL + + col2 + - 38 * - col2 AS col2 FROM tab1 AS cor0 ---- 2106 2223 3744 query I rowsort SELECT - col1 * + 49 AS col1 FROM tab1 cor0 ---- -1274 -490 -637 query I rowsort SELECT - 14 * col1 AS col2 FROM tab0 AS cor0 ---- -1204 -1274 -1358 onlyif mysql # use DIV operator for integer division query I rowsort label-852 SELECT DISTINCT col0 * + col0 + + cor0.col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0 ---- 10 4097 6401 skipif mysql # not compatible query I rowsort label-852 SELECT DISTINCT col0 * + col0 + + cor0.col0 / cor0.col0 AS col0 FROM tab1 AS cor0 ---- 10 4097 6401 query I rowsort SELECT + col0 - + col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL 68 - + col2 AS col2 FROM tab1 ---- -28 11 14 onlyif mysql # use DIV operator for integer division query I rowsort label-855 SELECT - col2 DIV 77 + tab2.col1 AS col1 FROM tab2 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-855 SELECT - col2 / 77 + tab2.col1 AS col1 FROM tab2 ---- 17 31 59 query I rowsort SELECT DISTINCT - col1 * col1 * - 46 FROM tab0 AS cor0 ---- 340216 380926 432814 query I rowsort SELECT + cor0.col1 * col0 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + - col1 * 58 FROM tab0 AS cor0 ---- -4988 -5278 -5626 query I rowsort SELECT col2 * + 63 FROM tab0 AS cor0 ---- 2079 5166 63 query I rowsort SELECT - cor2.col0 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to adaea38eae032c1639715f21831dd376 query I rowsort SELECT ALL - - col1 + ( + col2 ) + + col1 FROM tab2 AS cor0 ---- 144 72 89 query I rowsort SELECT ALL - col1 * + ( col2 ) + + col0 FROM tab0 cor0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT + + col1 - - ( - col2 ) * - col1 AS col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT ALL + + col1 * cor0.col1 FROM tab2 AS cor0 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - col1 + col1 col0 FROM tab2 ---- -1326 -186 -4543 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-866 SELECT CAST( NULL AS SIGNED ) + tab0.col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-866 SELECT CAST ( NULL AS INTEGER ) + tab0.col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + 61 * + col1 AS col2 FROM tab1 AS cor0 ---- 1586 610 793 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-868 SELECT col2 - CAST( NULL AS DECIMAL ) * + col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-868 SELECT col2 - CAST ( NULL AS REAL ) * + col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - col0 + - 92 FROM tab1 AS cor0 ---- -156 -172 -95 query I rowsort SELECT col0 + ( + col2 ) FROM tab0 ---- 171 36 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * 0 + tab0.col2 col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL 95 * col1 FROM tab0 AS cor0 ---- 8170 8645 9215 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + col0 * + col1 col1 FROM tab2 AS cor0 ---- 1381 244 4628 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + cor0.col2 col1 FROM tab2 cor0 ---- 26 27 38 query I rowsort SELECT - col2 + col2 * + col2 * - tab0.col2 FROM tab0 ---- -2 -35970 -551450 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-876 SELECT ALL - CAST( NULL AS SIGNED ) * + 58 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-876 SELECT ALL - CAST ( NULL AS INTEGER ) * + 58 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - + cor0.col1 + - col2 FROM tab0 AS cor0 ---- -119 -173 -98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-878 SELECT 75 + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-878 SELECT 75 + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + col2 ) col2 FROM tab2 ---- 26 27 38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * tab2.col0 + col1 * col0 + col2 * + col2 col2 FROM tab2 ---- 11362 9028 995 query I rowsort SELECT + col1 + + ( col1 ) * col2 + - 73 * - col1 AS col0 FROM tab1 ---- 1310 2210 3328 query I rowsort SELECT ALL col0 - + 73 AS col1 FROM tab1 ---- -70 -9 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - 11 col2 FROM tab2 ---- 20 48 6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-884 SELECT - col2 + - CAST( col1 AS SIGNED ) AS col0 FROM tab1 ---- -109 -67 -80 skipif mysql # not compatible query I rowsort label-884 SELECT - col2 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 ---- -109 -67 -80 query I rowsort SELECT DISTINCT 49 AS col2 FROM tab0, tab0 AS cor0 ---- 49 query I rowsort SELECT col2 * - col1 + + col2 * - col2 AS col0 FROM tab2 ---- -1566 -2090 -2210 onlyif mysql # use DIV operator for integer division query I rowsort label-887 SELECT ( 84 ) DIV + col2 + + col0 * 6 - col1 FROM tab1 AS cor0 ---- -7 375 467 skipif mysql # not compatible query I rowsort label-887 SELECT ( 84 ) / + col2 + + col0 * 6 - col1 FROM tab1 AS cor0 ---- -7 375 467 onlyif mysql # use DIV operator for integer division query I rowsort label-888 SELECT + 97 DIV cor0.col1 - col2 AS col0 FROM tab2 AS cor0 ---- -24 -25 -33 skipif mysql # not compatible query I rowsort label-888 SELECT + 97 / cor0.col1 - col2 AS col0 FROM tab2 AS cor0 ---- -24 -25 -33 onlyif mysql # use DIV operator for integer division query I rowsort label-889 SELECT - col0 DIV 55 FROM tab1 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-889 SELECT - col0 / 55 FROM tab1 ---- -1 -1 0 query I rowsort SELECT + col0 + col2 * 91 FROM tab2 ---- 2444 2464 3537 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-891 SELECT tab0.col2 + + CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-891 SELECT tab0.col2 + + CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-892 SELECT 38 DIV + tab2.col0 FROM tab2 ---- 0 0 5 skipif mysql # not compatible query I rowsort label-892 SELECT 38 / + tab2.col0 FROM tab2 ---- 0 0 5 query I rowsort SELECT + 90 * - col0 AS col0 FROM tab2 cor0 ---- -630 -7020 -7110 query I rowsort SELECT ALL col1 + + col1 AS col2 FROM tab0 cor0 ---- 172 182 194 onlyif mysql # use DIV operator for integer division query I rowsort label-895 SELECT 48 DIV tab0.col0 AS col2 FROM tab0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-895 SELECT 48 / tab0.col0 AS col2 FROM tab0 ---- 0 1 2 query I rowsort SELECT ALL - - 61 AS col1 FROM tab1 cor0 ---- 61 61 61 query I rowsort SELECT col0 * + col0 * + col2 FROM tab1 AS cor0 ---- 233472 486 614400 query I rowsort SELECT ALL - + 51 * + col2 FROM tab2 AS cor0 ---- -1326 -1377 -1938 query I rowsort SELECT + ( 91 ) - - col2 * col2 * 5 FROM tab2 AS cor0 ---- 3471 3736 7311 query I rowsort SELECT DISTINCT + ( + 40 ) * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 120 2560 3200 query I rowsort SELECT DISTINCT + - cor0.col1 * - 52 FROM tab1 AS cor0 ---- 1352 520 676 query I rowsort SELECT DISTINCT - ( - col2 ) + + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 104 117 34 skipif mysql # not compatible query I rowsort SELECT + CAST ( + col1 AS REAL ) / col1 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL + - col0 - col1 AS col2 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT 88 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37 onlyif mysql # use DIV operator for integer division query I rowsort label-906 SELECT ( tab1.col2 + + tab1.col1 ) DIV + tab1.col0 AS col2 FROM tab1 ---- 1 1 26 skipif mysql # not compatible query I rowsort label-906 SELECT ( tab1.col2 + + tab1.col1 ) / + tab1.col0 AS col2 FROM tab1 ---- 1 1 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-907 SELECT ALL + CAST( col2 AS SIGNED ) + col2 FROM tab1 ---- 108 114 192 skipif mysql # not compatible query I rowsort label-907 SELECT ALL + CAST ( col2 AS INTEGER ) + col2 FROM tab1 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-908 SELECT col1 DIV tab2.col1 AS col0 FROM tab2 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-908 SELECT col1 / tab2.col1 AS col0 FROM tab2 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-909 SELECT ALL 40 DIV col0 AS col0 FROM tab2 ---- 0 0 5 skipif mysql # not compatible query I rowsort label-909 SELECT ALL 40 / col0 AS col0 FROM tab2 ---- 0 0 5 query I rowsort SELECT col1 * col0 + col1 * - col0 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab0 cor2 ---- 3645 values hashing to a5677c50b23f70287df35c2388a1c9bf query I rowsort SELECT + 96 * col2 AS col0 FROM tab0 ---- 3168 7872 96 query I rowsort SELECT DISTINCT - 37 AS col1 FROM tab0, tab1 AS cor0 ---- -37 onlyif mysql # use DIV operator for integer division query I rowsort label-914 SELECT col1 DIV - col2 + col1 + tab1.col0 FROM tab1 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-914 SELECT col1 / - col2 + col1 + tab1.col0 FROM tab1 ---- 29 74 93 query I rowsort SELECT + cor0.col2 - + col0 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT 26 * + col2 + col0 AS col2 FROM tab1 AS cor0 ---- 1407 1546 2576 onlyif mysql # use DIV operator for integer division query I rowsort label-917 SELECT - col2 DIV col0 AS col0 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-917 SELECT - col2 / col0 AS col0 FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT ALL col1 + + col0 AS col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT - 50 * - cor0.col1 + col1 * - col2 FROM tab1 AS cor0 ---- -104 -598 -70 query I rowsort SELECT + - 23 + - col0 FROM tab0 AS cor0 ---- -112 -47 -58 query I rowsort SELECT ALL + col2 + 2 FROM tab1 AS cor0 ---- 56 59 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * ( + cor0.col1 ) col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT + col2 * + col1 + col1 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT ALL + ( + tab0.col2 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-925 SELECT - - col0 + - CAST( - col1 AS SIGNED ) FROM tab0 cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-925 SELECT - - col0 + - CAST ( - col1 AS INTEGER ) FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT - ( 96 ) + col2 AS col1 FROM tab1 AS cor0 ---- -39 -42 0 onlyif mysql # use DIV operator for integer division query I rowsort label-927 SELECT - + col0 DIV - cor0.col0 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-927 SELECT - + col0 / - cor0.col0 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - 21 AS col1 FROM tab0, tab2 AS cor0 ---- -21 query I rowsort SELECT - 99 * 49 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 36cb6572d733ff65b6c0ef91a3faa391 query I rowsort SELECT + 44 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d query I rowsort SELECT ALL + col1 * col1 FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT - + col0 + - ( col1 ) * - col0 AS col2 FROM tab0 AS cor0 ---- 2040 3360 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-933 SELECT ALL - col2 DIV col0 AS col1 FROM tab2 AS cor0 ---- -3 0 0 skipif mysql # not compatible query I rowsort label-933 SELECT ALL - col2 / col0 AS col1 FROM tab2 AS cor0 ---- -3 0 0 query I rowsort SELECT DISTINCT - - col2 + + cor0.col2 * col2 FROM tab2 AS cor0 ---- 1482 702 756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * ( col2 ) * - col0 - - col2 col2 FROM tab2 AS cor0 ---- -119626 -50996 -5832 query I rowsort SELECT + + col1 + 29 AS col2 FROM tab2 cor0 ---- 46 60 88 onlyif mysql # use DIV operator for integer division query I rowsort label-937 SELECT DISTINCT col0 + ( col2 ) DIV - col2 AS col0 FROM tab0 cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-937 SELECT DISTINCT col0 + ( col2 ) / - col2 AS col0 FROM tab0 cor0 ---- 23 34 88 query I rowsort SELECT ALL + - col0 * 47 AS col1 FROM tab2 AS cor0 ---- -329 -3666 -3713 query I rowsort SELECT col2 * col2 + + col1 AS col1 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT DISTINCT col1 * 70 FROM tab2 AS cor0 ---- 1190 2170 4130 query I rowsort SELECT ALL - 51 FROM tab0 ---- -51 -51 -51 query I rowsort SELECT DISTINCT 65 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2 ---- 65 query I rowsort SELECT ALL + 66 FROM tab2, tab0 cor0 ---- 9 values hashing to 29794915b585eea848ad670075452c88 query I rowsort SELECT ALL + col0 - tab2.col0 * ( - tab2.col2 ) * - ( col0 + col0 ) FROM tab2 ---- -2639 -316290 -474237 query I rowsort SELECT col1 - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT ALL + col0 * 34 FROM tab0 cor0 ---- 1190 3026 816 query I rowsort SELECT col1 - 13 AS col2 FROM tab2 cor0 ---- 18 4 46 query I rowsort SELECT DISTINCT + col1 * col2 - col2 AS col0 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT DISTINCT 33 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-950 SELECT DISTINCT + 26 * tab0.col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-950 SELECT DISTINCT + 26 * tab0.col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0 ---- NULL query I rowsort SELECT - ( ( + col0 ) ) + tab2.col1 AS col1 FROM tab2 ---- -19 -62 24 query I rowsort SELECT + ( + 86 ) + col1 AS col1 FROM tab1 AS cor0 ---- 112 96 99 query I rowsort SELECT DISTINCT - ( - col0 ) + col1 * col0 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT DISTINCT + 69 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 69 query I rowsort SELECT + tab1.col0 + + col2 * col2 * col0 FROM tab1 ---- 208000 737360 8751 query I rowsort SELECT DISTINCT + 76 * + col2 AS col1 FROM tab2 AS cor0 ---- 1976 2052 2888 query I rowsort SELECT + + 66 FROM tab2 AS cor0 ---- 66 66 66 query I rowsort SELECT ALL + + col2 + col0 AS col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT 85 + + 55 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 140 query I rowsort SELECT DISTINCT + cor0.col0 FROM tab2, tab2 cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 93 col2 FROM tab1 ---- -93 -93 -93 query I rowsort SELECT DISTINCT col1 + col0 * - col1 AS col0 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT DISTINCT - - 9 + + col0 AS col2 FROM tab1 cor0 ---- 12 73 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + ( col2 ) * col2 + col1 col0 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT + col2 * cor0.col2 FROM tab2 cor0 ---- 1444 676 729 query I rowsort SELECT ALL - - 19 * - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -190 -247 -494 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-967 SELECT - col1 * + col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-967 SELECT - col1 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - cor0.col1 + + col2 AS col0 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL + + ( + col0 ) * + 45 AS col2 FROM tab0 AS cor0 ---- 1080 1575 4005 query I rowsort SELECT DISTINCT col2 * col0 + col0 AS col0 FROM tab1 cor0 ---- 165 3712 7760 onlyif mysql # use DIV operator for integer division query I rowsort label-971 SELECT ALL + + col0 + + ( + 32 ) DIV cor0.col2 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-971 SELECT ALL + + col0 + + ( + 32 ) / cor0.col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT - 97 FROM tab0, tab0 AS cor0 ---- 9 values hashing to e4a6bd848a69226cbb7ad3d154be321b query I rowsort SELECT ALL cor0.col2 + 32 * - col0 AS col0 FROM tab2 AS cor0 ---- -197 -2470 -2490 onlyif mysql # use DIV operator for integer division query I rowsort label-974 SELECT ALL col2 DIV cor0.col0 + + ( + col2 + - ( 55 ) * col0 ) FROM tab1 AS cor0 ---- -3463 -4303 -93 skipif mysql # not compatible query I rowsort label-974 SELECT ALL col2 / cor0.col0 + + ( + col2 + - ( 55 ) * col0 ) FROM tab1 AS cor0 ---- -3463 -4303 -93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-975 SELECT DISTINCT - cor0.col2 + CAST( NULL AS SIGNED ) * 76 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-975 SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) * 76 AS col2 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-976 SELECT ALL - col1 DIV col0 + - col1 AS col1 FROM tab2 AS cor0 ---- -17 -35 -59 skipif mysql # not compatible query I rowsort label-976 SELECT ALL - col1 / col0 + - col1 AS col1 FROM tab2 AS cor0 ---- -17 -35 -59 query I rowsort SELECT + col1 + col1 * 69 FROM tab1 AS cor0 ---- 1820 700 910 query I rowsort SELECT - + 5 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 74665fbb47d5b17da011bca567195b21 query I rowsort SELECT col0 * 43 AS col2 FROM tab0 AS cor0 ---- 1032 1505 3827 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-980 SELECT - + CAST( 40 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -40 -40 -40 skipif mysql # not compatible query I rowsort label-980 SELECT - + CAST ( 40 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -40 -40 -40 query I rowsort SELECT DISTINCT 88 * - ( - col0 ) FROM tab0 AS cor0 ---- 2112 3080 7832 query I rowsort SELECT - + cor0.col2 * cor0.col1 + - cor0.col2 AS col2 FROM tab1 cor0 ---- -1344 -1458 -627 query I rowsort SELECT ALL + 76 * + 27 + + col0 * + 96 AS col0 FROM tab1 AS cor0 ---- 2340 8196 9732 query I rowsort SELECT cor0.col2 * 4 FROM tab0 AS cor0 ---- 132 328 4 query I rowsort SELECT ALL col1 * col0 * col1 + 59 FROM tab1 ---- 13579 2087 6459 query I rowsort SELECT ALL col2 * col2 + - col0 AS col0 FROM tab1 AS cor0 ---- 2913 3185 9136 onlyif mysql # use DIV operator for integer division query I rowsort label-987 SELECT ALL col1 DIV + 49 col1 FROM tab0 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-987 SELECT ALL col1 / + 49 col1 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL ( cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT col2 + 49 * + col0 AS col2 FROM tab0 cor0 ---- 1209 1716 4443 query I rowsort SELECT DISTINCT + cor0.col0 + - col1 * - col0 * col0 FROM tab0 AS cor0 ---- 118860 49560 720900 onlyif mysql # use DIV operator for integer division query I rowsort label-991 SELECT ALL + col2 * + col1 + 85 DIV + col0 AS col1 FROM tab0 AS cor0 ---- 2841 7462 99 skipif mysql # not compatible query I rowsort label-991 SELECT ALL + col2 * + col1 + 85 / + col0 AS col1 FROM tab0 AS cor0 ---- 2841 7462 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col0 + + col2 col0 FROM tab0 AS cor0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 19 * col1 + + col1 col1 FROM tab1 AS cor0 ---- -180 -234 -468 query I rowsort SELECT DISTINCT + + 46 + - col1 FROM tab0 AS cor0 ---- -40 -45 -51 query I rowsort SELECT ALL - ( col1 ) + 56 FROM tab2 AS cor0 ---- -3 25 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 25 * col2 col0 FROM tab0 ---- 2050 25 825 query I rowsort SELECT 79 - - 15 AS col1 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to a4d239626cf0546ac1b2f57bb8407089 query I rowsort SELECT ALL - ( - col0 * col0 ) + + 72 AS col0 FROM tab0 ---- 1297 648 7993 query I rowsort SELECT DISTINCT - 2 + 15 FROM tab2 ---- 13 query I rowsort SELECT ( col0 ) * + col2 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT ALL 20 AS col1 FROM tab2 ---- 20 20 20 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + col1 ) + cor0.col1 col0 FROM tab0 cor0 ---- 172 182 194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * + 22 col0 FROM tab0 AS cor0 ---- 1892 2002 2134 onlyif mysql # use DIV operator for integer division query I rowsort label-1004 SELECT + + 80 DIV col2 AS col1 FROM tab1 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-1004 SELECT + + 80 / col2 AS col1 FROM tab1 AS cor0 ---- 0 1 1 query I rowsort SELECT ALL - 16 * + col0 + + col0 FROM tab2 cor0 ---- -105 -1170 -1185 query I rowsort SELECT + cor0.col1 * col2 + + cor0.col1 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT + col2 + - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT 10 - + col2 FROM tab1 AS cor0 ---- -44 -47 -86 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1009 SELECT + + CAST( NULL AS SIGNED ) * - 81 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1009 SELECT + + CAST ( NULL AS INTEGER ) * - 81 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1010 SELECT + col1 + col2 DIV + ( 64 ) FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-1010 SELECT + col1 + col2 / + ( 64 ) FROM tab2 AS cor0 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - cor0.col2 * 52 * - col0 col1 FROM tab0 AS cor0 ---- 1855 379585 41208 onlyif mysql # use DIV operator for integer division query I rowsort label-1012 SELECT + col1 * + col0 DIV ( - col0 ) + col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1012 SELECT + col1 * + col0 / ( - col0 ) + col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT 19 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 86c53e8567a17c8d91fc5aff119e0498 query I rowsort SELECT col2 * - ( - col1 ) AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 45 col0 FROM tab2 ---- 45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1016 SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1016 SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - col1 + - 12 FROM tab2 ---- -29 -43 -71 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1018 SELECT - - col2 + ( col1 ) * CAST( NULL AS SIGNED ) - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1018 SELECT - - col2 + ( col1 ) * CAST ( NULL AS INTEGER ) - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 80 AS col2 FROM tab1 AS cor0 ---- -80 -80 -80 query I rowsort SELECT ( 38 ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7 query I rowsort SELECT ALL + 85 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b query I rowsort SELECT ALL - col0 * - col1 * + col0 AS col0 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT 74 + - 55 * col1 FROM tab2 AS cor0 ---- -1631 -3171 -861 query I rowsort SELECT DISTINCT - ( + col1 ) - col0 AS col2 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT + - ( + col2 ) * + col0 AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + - ( + col1 ) FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT 99 * 16 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 6e06129d5e137deef55d8e6dec681152 query I rowsort SELECT ALL - cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT 67 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to b56f8a4f1fcebc9802481256df61e97c query I rowsort SELECT 45 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 query I rowsort SELECT ALL 60 FROM tab0, tab2 AS cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT DISTINCT col2 * - cor0.col2 + - ( col2 ) FROM tab1 AS cor0 ---- -2970 -3306 -9312 query I rowsort SELECT ALL - 81 * - tab1.col2 FROM tab1 ---- 4374 4617 7776 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1034 SELECT - col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-1034 SELECT - col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT + 25 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 2c77240b60ac01c717a5ed5d0165f450 query I rowsort SELECT DISTINCT - col1 * + 47 AS col0 FROM tab2 ---- -1457 -2773 -799 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 98 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to f9dee8c21116f1aed64ac5160e190809 query I rowsort SELECT col1 + 36 FROM tab0 AS cor0 ---- 122 127 133 query I rowsort SELECT col2 + - 93 FROM tab2 ---- -55 -66 -67 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2 ---- 972 values hashing to dd771e0c15d524f62127686e9bd43f9a query I rowsort SELECT + col1 * col2 + cor0.col0 * - col2 + + col1 * col1 * - col2 AS col1 FROM tab0 AS cor0 ---- -242022 -678878 -9347 query I rowsort SELECT col0 * + ( - col1 ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - + col0 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + col0 + - 84 AS col0 FROM tab2 AS cor0 ---- -5 -6 -77 query I rowsort SELECT DISTINCT 62 AS col2 FROM tab0 ---- 62 query I rowsort SELECT ALL col2 * - col1 + - col0 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT DISTINCT - col1 * - col1 + col0 * + cor0.col1 * col0 AS col2 FROM tab1 AS cor0 ---- 41060 83369 910 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 - - col2 col1 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - + col0 * cor0.col1 + ( col1 ) * + col2 * - col0 FROM tab2 AS cor0 ---- -124254 -52377 -6076 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * + col1 + + 92 col2 FROM tab2 AS cor0 ---- 1435 309 4694 query I rowsort SELECT - + 80 AS col1 FROM tab1 AS cor0 ---- -80 -80 -80 query I rowsort SELECT ALL - col0 + cor0.col2 AS col0 FROM tab2 cor0 ---- -41 -52 20 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 26 col0 FROM tab1 cor0 ---- 26 26 26 query I rowsort SELECT ALL + + 2 + col0 FROM tab0 AS cor0 ---- 26 37 91 query I rowsort SELECT ALL + + cor0.col2 + col1 + col0 AS col1 FROM tab2 AS cor0 ---- 134 163 65 query I rowsort SELECT col1 * - ( + col1 ) * col0 AS col2 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT DISTINCT + cor0.col1 * col0 AS col2 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT - + col2 * col0 + - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT ALL cor0.col0 + + cor0.col1 AS col2 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - cor0.col2 + - ( col2 ) FROM tab1 AS cor0 ---- -108 -114 -192 query I rowsort SELECT DISTINCT + + col1 * ( 8 * col2 ) FROM tab0 AS cor0 ---- 22704 59696 776 query I rowsort SELECT ALL + + cor0.col0 + + col0 + col2 AS col2 FROM tab0 AS cor0 ---- 260 71 81 query I rowsort SELECT + + col0 + + col1 * + 98 FROM tab1 AS cor0 ---- 1044 1354 2551 query I rowsort SELECT col2 * - col2 * - col0 AS col2 FROM tab2 cor0 ---- 114076 5103 52728 onlyif mysql # use DIV operator for integer division query I rowsort label-1065 SELECT DISTINCT + + col2 DIV + 29 + + 13 + - col0 col1 FROM tab2 AS cor0 ---- -65 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1065 SELECT DISTINCT + + col2 / + 29 + + 13 + - col0 col1 FROM tab2 AS cor0 ---- -65 6 query I rowsort SELECT + tab0.col2 + + cor0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 1894beb8182e9d1432f5b6aa166830f7 query I rowsort SELECT ALL tab0.col1 * tab0.col2 AS col2 FROM tab0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-1068 SELECT ALL col0 + + col1 DIV + col0 FROM tab2 cor0 ---- 11 78 79 skipif mysql # not compatible query I rowsort label-1068 SELECT ALL col0 + + col1 / + col0 FROM tab2 cor0 ---- 11 78 79 query I rowsort SELECT ALL col0 - cor0.col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1070 SELECT DISTINCT - + col1 DIV + ( + col2 + col1 ) FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1070 SELECT DISTINCT - + col1 / + ( + col2 + col1 ) FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL col2 - 37 FROM tab2 cor0 ---- -10 -11 1 query I rowsort SELECT DISTINCT - - 48 FROM tab0 AS cor0 ---- 48 query I rowsort SELECT ALL + cor0.col1 * + col0 + col2 AS col1 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT + col2 + - col0 * + col0 * - cor0.col2 FROM tab2 AS cor0 ---- 1350 158210 237196 query I rowsort SELECT DISTINCT - col2 + cor0.col1 * - col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT ALL - + col1 * col0 AS col0 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1077 SELECT + CAST( + 68 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 68 68 68 skipif mysql # not compatible query I rowsort label-1077 SELECT + CAST ( + 68 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 68 68 68 query I rowsort SELECT DISTINCT 65 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 65 query I rowsort SELECT - col0 * col2 * col1 AS col1 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT DISTINCT + - 48 * + cor0.col0 FROM tab1 AS cor0 ---- -144 -3072 -3840 query I rowsort SELECT ALL - col0 * + ( col0 ) + + col0 * col1 AS col2 FROM tab1 AS cor0 ---- -3456 -5360 69 query I rowsort SELECT DISTINCT - 24 * - col0 FROM tab2 AS cor0 ---- 168 1872 1896 onlyif mysql # use DIV operator for integer division query I rowsort label-1083 SELECT col0 DIV + col1 + + col0 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-1083 SELECT col0 / + col1 + + col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT 86 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4 query I rowsort SELECT DISTINCT - 84 AS col0 FROM tab1 AS cor0 ---- -84 query I rowsort SELECT + 5 * 57 + + col2 AS col2 FROM tab2 AS cor0 ---- 311 312 323 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1087 SELECT ALL - CAST( 83 AS SIGNED ) + + col1 FROM tab2 ---- -24 -52 -66 skipif mysql # not compatible query I rowsort label-1087 SELECT ALL - CAST ( 83 AS INTEGER ) + + col1 FROM tab2 ---- -24 -52 -66 query I rowsort SELECT - 11 * - col2 FROM tab2 AS cor0 ---- 286 297 418 query I rowsort SELECT + 51 + + col1 AS col0 FROM tab1 AS cor0 ---- 61 64 77 query I rowsort SELECT ALL ( - col1 ) + 52 AS col0 FROM tab0 cor0 ---- -34 -39 -45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1091 SELECT - 60 * col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -17340 -208860 -57660 skipif mysql # not compatible query I rowsort label-1091 SELECT - 60 * col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -17340 -208860 -57660 query I rowsort SELECT ALL + col0 * + 57 + tab0.col0 AS col0 FROM tab0 ---- 1392 2030 5162 onlyif mysql # use DIV operator for integer division query I rowsort label-1093 SELECT DISTINCT - col2 + + col2 + - col0 DIV + ( + 79 ) FROM tab1 ---- -1 0 skipif mysql # not compatible query I rowsort label-1093 SELECT DISTINCT - col2 + + col2 + - col0 / + ( + 79 ) FROM tab1 ---- -1 0 query I rowsort SELECT - tab1.col1 + - 8 + col0 * ( + tab1.col1 ) FROM tab1 ---- 1019 44 622 query I rowsort SELECT + ( col1 ) + + 96 AS col2 FROM tab1 ---- 106 109 122 query I rowsort SELECT ALL 68 AS col2 FROM tab0 ---- 68 68 68 query I rowsort SELECT DISTINCT col2 * + col1 + + col2 * col2 FROM tab0 AS cor0 ---- 14186 3927 98 query I rowsort SELECT - col2 * + col0 + - col0 AS col2 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT ALL - cor0.col2 - col2 AS col2 FROM tab1 AS cor0 ---- -108 -114 -192 query I rowsort SELECT ALL + col1 + tab2.col0 + + tab2.col2 FROM tab2 ---- 134 163 65 query I rowsort SELECT - + 45 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 71160abf09589695379a70558726f0ba query I rowsort SELECT DISTINCT + col1 * + ( 29 ) + col2 + + ( cor0.col1 ) * - col1 AS col0 FROM tab1 AS cor0 ---- 132 247 304 query I rowsort SELECT - - col2 * - col1 + 52 FROM tab2 AS cor0 ---- -1482 -594 -785 query I rowsort SELECT DISTINCT - col1 + + ( + col2 ) * - col2 FROM tab0 AS cor0 ---- -1175 -6815 -98 query I rowsort SELECT DISTINCT col1 * ( 92 ) FROM tab0 AS cor0 ---- 7912 8372 8924 query I rowsort SELECT DISTINCT - col2 * - 59 FROM tab1 AS cor0 ---- 3186 3363 5664 query I rowsort SELECT ALL 94 * - col2 AS col2 FROM tab2 AS cor0 ---- -2444 -2538 -3572 onlyif mysql # use DIV operator for integer division query I rowsort label-1108 SELECT ALL - ( - cor0.col1 ) DIV + col1 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1108 SELECT ALL - ( - cor0.col1 ) / + col1 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT - + 84 * 37 * col2 AS col2 FROM tab0 AS cor0 ---- -102564 -254856 -3108 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 90 * cor0.col2 col1 FROM tab2 AS cor0 ---- 2340 2430 3420 query I rowsort SELECT ALL cor0.col2 * - col0 * + col0 FROM tab1 AS cor0 ---- -233472 -486 -614400 query I rowsort SELECT - cor0.col1 + - cor0.col1 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 66e198acca624efd182aa551bb5de4c7 query I rowsort SELECT - + ( col2 ) * col1 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL - col2 + 14 AS col1 FROM tab1 AS cor0 ---- -40 -43 -82 query I rowsort SELECT DISTINCT + ( ( - col0 ) ) FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT + col1 * - col0 + col2 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT ALL cor0.col1 * col0 * cor0.col0 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT + col2 + + cor0.col0 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT ALL col0 * 37 AS col2 FROM tab2 ---- 259 2886 2923 query I rowsort SELECT + col0 + col0 - - col2 FROM tab2 AS cor0 ---- 182 196 41 query I rowsort SELECT + col0 * + ( col0 ) * col1 - - cor0.col2 FROM tab1 cor0 ---- 288 41017 83296 query I rowsort SELECT + col1 * + tab2.col2 AS col0 FROM tab2 ---- 1534 646 837 query I rowsort SELECT + + ( - ( - col0 ) ) FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-1124 SELECT DISTINCT + col2 DIV - 34 FROM tab1 AS cor0 ---- -1 -2 skipif mysql # not compatible query I rowsort label-1124 SELECT DISTINCT + col2 / - 34 FROM tab1 AS cor0 ---- -1 -2 query I rowsort SELECT ALL - 60 + + col0 AS col0 FROM tab1 AS cor0 ---- -57 20 4 query I rowsort SELECT ALL + tab1.col2 - + 21 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to b96bedc1fc768503a0f0c0947644c7ca query I rowsort SELECT DISTINCT + 27 * col0 AS col0 FROM tab0 ---- 2403 648 945 query I rowsort SELECT - 0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT - col0 * - 86 + - col1 AS col0 FROM tab0 cor0 ---- 1978 2913 7563 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( + ( cor0.col2 ) ) col1 FROM tab2 cor0 ---- 26 27 38 query I rowsort SELECT - + ( col2 ) * + 22 FROM tab2 AS cor0 ---- -572 -594 -836 query I rowsort SELECT 23 * - col0 + - col2 FROM tab1 AS cor0 ---- -123 -1529 -1936 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1133 SELECT + ( col2 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1133 SELECT + ( col2 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort SELECT + col1 * + col1 / CAST ( + col1 AS REAL ) FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT ( 48 + + tab1.col2 ) FROM tab1 ---- 102 105 144 query I rowsort SELECT ALL + ( - tab1.col2 + + col1 ) * - col1 FROM tab1 ---- 1079 470 728 query I rowsort SELECT - 83 AS col2 FROM tab1 ---- -83 -83 -83 query I rowsort SELECT - ( - col0 ) + - col0 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL cor0.col1 * - ( cor0.col0 ) FROM tab1, tab1 AS cor0 ---- 9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f query I rowsort SELECT DISTINCT 66 AS col2 FROM tab1 AS cor0 ---- 66 query I rowsort SELECT + 90 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 96f7a90428db93f472e0d219bab64853 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( cor0.col1 ) * 47 col1 FROM tab1 AS cor0 ---- 1222 470 611 onlyif mysql # use DIV operator for integer division query I rowsort label-1143 SELECT DISTINCT - + col2 + col1 + cor0.col1 DIV + col2 AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 skipif mysql # not compatible query I rowsort label-1143 SELECT DISTINCT - + col2 + col1 + cor0.col1 / + col2 AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT DISTINCT - col2 * - ( col0 * col1 ) FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT - col1 + ( 62 ) FROM tab2 AS cor0 ---- 3 31 45 query I rowsort SELECT ALL + col0 * 11 AS col0 FROM tab2 AS cor0 ---- 77 858 869 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 col0 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ALL col0 + - ( + col0 ) FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col0 * + ( + ( - col2 ) ) + col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL - 48 AS col1 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 2558735eaa258a08592aef9d33020c18 query I rowsort SELECT + ( - col2 ) + - col2 AS col2 FROM tab1 cor0 ---- -108 -114 -192 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * cor0.col2 + - col2 col0 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT - - ( col2 ) + + cor0.col1 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-1154 SELECT DISTINCT col2 + ( col0 ) DIV col0 FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-1154 SELECT DISTINCT col2 + ( col0 ) / col0 FROM tab2 ---- 27 28 39 query I rowsort SELECT DISTINCT ( 95 ) AS col2 FROM tab0 cor0 ---- 95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1156 SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1156 SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1157 SELECT + + 20 * + col2 * cor0.col0 + 32 DIV col1 FROM tab0 AS cor0 ---- 145960 15840 700 skipif mysql # not compatible query I rowsort label-1157 SELECT + + 20 * + col2 * cor0.col0 + 32 / col1 FROM tab0 AS cor0 ---- 145960 15840 700 query I rowsort SELECT col1 * col1 + col1 * - col0 FROM tab0 AS cor0 ---- 182 5332 6014 onlyif mysql # use DIV operator for integer division query I rowsort label-1159 SELECT ALL - col2 DIV ( - tab0.col2 ) + col2 * ( - 73 + col2 * col0 ) FROM tab0 ---- -37 23728 592451 skipif mysql # not compatible query I rowsort label-1159 SELECT ALL - col2 / ( - tab0.col2 ) + col2 * ( - 73 + col2 * col0 ) FROM tab0 ---- -37 23728 592451 query I rowsort SELECT col0 + - 19 FROM tab2 ---- -12 59 60 query I rowsort SELECT col2 * + 96 FROM tab1 ---- 5184 5472 9216 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3 query I rowsort SELECT ALL - col0 * tab0.col0 FROM tab0 ---- -1225 -576 -7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1164 SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-1164 SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - + 91 + - col0 AS col1 FROM tab0 AS cor0 ---- -115 -126 -180 query I rowsort SELECT - col1 - col1 * col2 FROM tab2 cor0 ---- -1593 -663 -868 query I rowsort SELECT DISTINCT col0 + - tab1.col0 * col0 FROM tab1 ---- -4032 -6 -6320 query I rowsort SELECT DISTINCT - 47 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1 ---- -47 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1169 SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) col1 FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1169 SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) col1 FROM tab1 ---- NULL query I rowsort SELECT DISTINCT col0 + 8 FROM tab2 ---- 15 86 87 query I rowsort SELECT ALL - 51 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 08d3853e39924d3c636260a6dd856837 query I rowsort SELECT DISTINCT - col2 + col0 + - col1 FROM tab0 ---- -63 -84 -95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1173 SELECT ALL - + col1 + CAST( 93 AS SIGNED ) FROM tab0 cor0 ---- -4 2 7 skipif mysql # not compatible query I rowsort label-1173 SELECT ALL - + col1 + CAST ( 93 AS INTEGER ) FROM tab0 cor0 ---- -4 2 7 query I rowsort SELECT 3 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba query I rowsort SELECT DISTINCT + + col0 + + col0 * + cor0.col0 * col0 FROM tab2 AS cor0 ---- 350 474630 493118 query I rowsort SELECT - col0 * col2 * - col1 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT ALL - - ( + 19 ) AS col2 FROM tab2 AS cor0 ---- 19 19 19 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1178 SELECT ALL - - CAST( NULL AS DECIMAL ) + + col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1178 SELECT ALL - - CAST ( NULL AS REAL ) + + col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 86 + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 112 96 99 onlyif mysql # use DIV operator for integer division query I rowsort label-1180 SELECT + col2 DIV 31 AS col1 FROM tab2 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-1180 SELECT + col2 / 31 AS col1 FROM tab2 cor0 ---- 0 0 1 query I rowsort SELECT + + 28 * col1 * col1 FROM tab1 AS cor0 ---- 18928 2800 4732 query I rowsort SELECT ALL - 60 * - cor0.col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to e3739c38d6f02408892066c3ac8b6e2a query I rowsort SELECT ALL - - cor0.col0 + + col2 AS col0 FROM tab1 AS cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-1184 SELECT + - ( - col1 ) DIV + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-1184 SELECT + - ( - col1 ) / + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 0 0 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * + 68 + - col1 col0 FROM tab2 AS cor0 ---- 445 5245 5355 query I rowsort SELECT ALL + col0 + - 93 FROM tab2 cor0 ---- -14 -15 -86 query I rowsort SELECT ALL - col1 * 24 AS col2 FROM tab2 AS cor0 ---- -1416 -408 -744 query I rowsort SELECT + col2 - tab1.col1 * - col2 * - col0 AS col2 FROM tab1 ---- -36423 -4158 -99744 query I rowsort SELECT DISTINCT - 91 + cor0.col1 * col0 FROM tab0 cor0 ---- 1973 3304 8008 query I rowsort SELECT ALL - 34 * 91 * col1 FROM tab2 cor0 ---- -182546 -52598 -95914 query I rowsort SELECT DISTINCT 35 * + col2 AS col2 FROM tab1 AS cor0 ---- 1890 1995 3360 query I rowsort SELECT ALL cor0.col1 + + col1 FROM tab0 AS cor0 ---- 172 182 194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 - col1 * + col1 col0 FROM tab1 cor0 ---- -157 -265 -730 query I rowsort SELECT + cor0.col2 + - col1 * cor0.col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT + - cor0.col0 - col0 * + col1 * + col1 AS col2 FROM tab2 AS cor0 ---- -22910 -271596 -6734 query I rowsort SELECT + + ( col1 ) * 20 AS col0 FROM tab0 AS cor0 ---- 1720 1820 1940 query I rowsort SELECT ALL 1 * + cor0.col0 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1198 SELECT DISTINCT - col2 + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1198 SELECT DISTINCT - col2 + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + + 34 * col1 AS col2 FROM tab2 AS cor0 ---- 1054 2006 578 query I rowsort SELECT col1 + + col0 * + ( 95 + col1 ) FROM tab0 AS cor0 ---- 16645 4430 6817 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + + col2 col1 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + + 64 + col0 * - col2 FROM tab1 AS cor0 ---- -3584 -7616 -98 query I rowsort SELECT - - cor0.col0 + col0 * + col1 FROM tab1 cor0 ---- 1120 704 81 query I rowsort SELECT - + 98 + - col1 AS col0 FROM tab1 cor0 ---- -108 -111 -124 onlyif mysql # use DIV operator for integer division query I rowsort label-1205 SELECT DISTINCT + col1 DIV col0 + - 21 FROM tab1 AS cor0 ---- -13 -21 skipif mysql # not compatible query I rowsort label-1205 SELECT DISTINCT + col1 / col0 + - 21 FROM tab1 AS cor0 ---- -13 -21 query I rowsort SELECT ALL col0 - - col2 AS col1 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT - col2 * col0 + col2 * - col0 * col2 FROM tab1 AS cor0 ---- -211584 -744960 -8910 query I rowsort SELECT DISTINCT + 59 * cor0.col0 * col1 FROM tab2 cor0 ---- 12803 271518 79237 query I rowsort SELECT DISTINCT - col1 * + cor0.col1 + col1 + col1 FROM tab0 AS cor0 ---- -7224 -8099 -9215 query I rowsort SELECT ALL + col1 + + 66 * - 47 FROM tab1 AS cor0 ---- -3076 -3089 -3092 query I rowsort SELECT ALL + col2 + - col0 * - col0 * + col1 + - col0 * - col0 FROM tab1 AS cor0 ---- 297 45113 89696 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1212 SELECT + - col2 * CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1212 SELECT + - col2 * CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38 onlyif mysql # use DIV operator for integer division query I rowsort label-1214 SELECT DISTINCT - cor0.col1 DIV col1 + - col1 * + col0 FROM tab0 cor0 ---- -2065 -3396 -8100 skipif mysql # not compatible query I rowsort label-1214 SELECT DISTINCT - cor0.col1 / col1 + - col1 * + col0 FROM tab0 cor0 ---- -2065 -3396 -8100 query I rowsort SELECT cor0.col2 + - col1 * + 20 AS col2 FROM tab1 AS cor0 ---- -143 -164 -466 query I rowsort SELECT + col2 * 50 * + col0 AS col2 FROM tab0 AS cor0 ---- 1750 364900 39600 query I rowsort SELECT ALL col2 * col1 + - 7 - - col0 FROM tab0 cor0 ---- 125 2855 7544 query I rowsort SELECT ALL + col1 * col2 + col0 * col0 AS col0 FROM tab0 AS cor0 ---- 1322 15383 3414 query I rowsort SELECT ALL + col2 + - 89 - 14 AS col0 FROM tab1 AS cor0 ---- -46 -49 -7 query I rowsort SELECT col2 + 43 FROM tab0 AS cor0 ---- 125 44 76 query I rowsort SELECT DISTINCT - - col0 + - 47 FROM tab0 AS cor0 ---- -12 -23 42 query I rowsort SELECT - cor0.col2 * col2 + + ( col0 ) FROM tab1 cor0 ---- -2913 -3185 -9136 onlyif mysql # use DIV operator for integer division query I rowsort label-1223 SELECT DISTINCT col1 * - col0 + col2 DIV - cor0.col0 col1 FROM tab0 cor0 ---- -2065 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1223 SELECT DISTINCT col1 * - col0 + col2 / - cor0.col0 col1 FROM tab0 cor0 ---- -2065 -3395 -8099 query I rowsort SELECT DISTINCT col0 * + col1 + - 80 * col2 FROM tab1 AS cor0 ---- -3920 -4242 -6640 query I rowsort SELECT DISTINCT - 98 - - tab1.col0 FROM tab1 ---- -18 -34 -95 query I rowsort SELECT ALL - col0 + + col1 - + 59 FROM tab1 ---- -113 -126 -36 query I rowsort SELECT 30 * - col1 AS col1 FROM tab1 ---- -300 -390 -780 query I rowsort SELECT 42 - + col1 FROM tab2 ---- -17 11 25 query I rowsort SELECT - - col1 - + ( col0 ) * col2 AS col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT cor0.col1 + - col0 * 80 AS col1 FROM tab0 AS cor0 ---- -1834 -2703 -7029 query I rowsort SELECT col0 + - ( col0 ) + - col2 AS col1 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ALL - tab1.col1 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT ALL col2 * + col1 * - tab2.col0 + col1 * - col1 FROM tab2 ---- -123133 -51323 -6820 query I rowsort SELECT DISTINCT col2 * + col2 + col1 FROM tab2 ---- 1461 735 760 query I rowsort SELECT + cor0.col0 + + 19 AS col0 FROM tab1 AS cor0 ---- 22 83 99 query I rowsort SELECT + col0 + 58 + - col0 AS col2 FROM tab1 ---- 58 58 58 query I rowsort SELECT + col2 * col2 * - ( - 16 ) AS col0 FROM tab0 AS cor0 ---- 107584 16 17424 query I rowsort SELECT ALL col1 * - cor0.col2 - - cor0.col0 * + 26 FROM tab0 cor0 ---- -2214 -5148 813 query I rowsort SELECT DISTINCT tab1.col2 * - 62 FROM tab1 ---- -3348 -3534 -5952 query I rowsort SELECT DISTINCT - 30 * col0 * col2 + col0 * col0 * + 88 AS col0 FROM tab2 ---- -1358 459148 474552 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1241 SELECT DISTINCT - ( - col0 ) / - CAST( NULL AS SIGNED ) + - col1 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-1241 SELECT DISTINCT - ( - col0 ) / - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + 90 col1 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 5d25a546acf3ae171e731e50adc0112e query I rowsort SELECT + 42 + col0 + - ( + col0 * col2 ) FROM tab0 ---- -7167 -726 42 onlyif mysql # use DIV operator for integer division query I rowsort label-1244 SELECT DISTINCT + ( - col1 ) DIV 75 + + col1 AS col2 FROM tab2 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-1244 SELECT DISTINCT + ( - col1 ) / 75 + + col1 AS col2 FROM tab2 ---- 17 31 59 query I rowsort SELECT ALL col1 + tab0.col0 * + col2 FROM tab0 ---- 132 7389 878 onlyif mysql # use DIV operator for integer division query I rowsort label-1246 SELECT DISTINCT - 66 + col1 * col0 DIV + col2 FROM tab0 AS cor0 ---- -4 32 3329 skipif mysql # not compatible query I rowsort label-1246 SELECT DISTINCT - 66 + col1 * col0 / + col2 FROM tab0 AS cor0 ---- -4 32 3329 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1247 SELECT ALL + CAST( + 98 AS SIGNED ) FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2 skipif mysql # not compatible query I rowsort label-1247 SELECT ALL + CAST ( + 98 AS INTEGER ) FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2 query I rowsort SELECT DISTINCT - cor0.col0 - col0 AS col1 FROM tab0 AS cor0 ---- -178 -48 -70 query I rowsort SELECT ALL + + 43 + + col2 * - col0 FROM tab2 AS cor0 ---- -146 -1985 -2959 query I rowsort SELECT + cor0.col1 * - cor0.col1 + - col0 - col1 AS col0 FROM tab0 AS cor0 ---- -7506 -8461 -9541 onlyif mysql # use DIV operator for integer division query I rowsort label-1251 SELECT + col1 + - col2 + col2 DIV 90 AS col1 FROM tab1 ---- -28 -47 -82 skipif mysql # not compatible query I rowsort label-1251 SELECT + col1 + - col2 + col2 / 90 AS col1 FROM tab1 ---- -28 -47 -82 query I rowsort SELECT ALL - 38 + - col1 * ( 76 ) FROM tab0 ---- -6574 -6954 -7410 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 80 col2 FROM tab1, tab0 AS cor0, tab1 cor1, tab0 AS cor2 ---- 81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c query I rowsort SELECT + 63 + col2 FROM tab2 AS cor0 ---- 101 89 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 50 col2 FROM tab2 AS cor0 ---- 50 50 50 query I rowsort SELECT ALL - col2 * - ( + col2 ) AS col0 FROM tab2 ---- 1444 676 729 query I rowsort SELECT cor0.col1 AS col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * 85 col0 FROM tab2 ---- -2210 -2295 -3230 query I rowsort SELECT 59 AS col1 FROM tab0 AS cor0 ---- 59 59 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 * - cor0.col0 col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL + 13 * + 84 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to f112fb10cbc4b0d4852913b80583870b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + cor0.col2 * + col2 col0 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT - + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 onlyif mysql # use DIV operator for integer division query I rowsort label-1264 SELECT 70 DIV col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1264 SELECT 70 / col1 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1265 SELECT - tab2.col2 DIV col0 FROM tab2 ---- -3 0 0 skipif mysql # not compatible query I rowsort label-1265 SELECT - tab2.col2 / col0 FROM tab2 ---- -3 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1266 SELECT ALL + col1 * - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1266 SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + - col0 * 83 FROM tab0 AS cor0 ---- -1992 -2905 -7387 query I rowsort SELECT ALL + cor0.col1 * ( - cor0.col1 ) FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT col0 * 6 AS col1 FROM tab1 ---- 18 384 480 skipif mysql # not compatible query I rowsort SELECT CAST ( 23 AS REAL ) AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2 query I rowsort SELECT + col2 * - ( + 65 ) AS col1 FROM tab0 AS cor0 ---- -2145 -5330 -65 query I rowsort SELECT DISTINCT col0 * tab1.col0 AS col1 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT - col2 * ( + tab1.col2 ) FROM tab1 ---- -2916 -3249 -9216 query I rowsort SELECT + 15 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd query I rowsort SELECT col2 * 81 + - 75 FROM tab0 AS cor0 ---- 2598 6 6567 query I rowsort SELECT ALL 81 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267 query I rowsort SELECT ALL - col2 + 37 * cor0.col1 FROM tab2 cor0 ---- 1120 2157 591 query I rowsort SELECT ALL + 91 * + 75 AS col0 FROM tab0 AS cor0 ---- 6825 6825 6825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1279 SELECT DISTINCT + CAST( NULL AS SIGNED ) + + cor0.col0 * col0 / + col0 + + col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1279 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + cor0.col0 * col0 / + col0 + + col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - + col0 + col2 * + col1 AS col0 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT + ( + cor0.col0 ) * col0 * + col0 + - col1 + + col1 FROM tab0 AS cor0 ---- 13824 42875 704969 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1282 SELECT DISTINCT + + CAST( col0 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif mysql # not compatible query I rowsort label-1282 SELECT DISTINCT + + CAST ( col0 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 88 col1 FROM tab0 AS cor0 ---- 88 query I rowsort SELECT 11 FROM tab0, tab2 cor0 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 query I rowsort SELECT ( col1 ) + 65 - + col2 AS col1 FROM tab2 ---- 44 69 98 query I rowsort SELECT - 73 + + col1 + 68 * ( + col1 ) FROM tab1 ---- 1721 617 824 query I rowsort SELECT + 93 * col0 + 86 * col1 AS col0 FROM tab1 ---- 2515 6812 8558 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col1 * col2 - col1 col0 FROM tab1 cor0 ---- 1235 1378 560 query I rowsort SELECT + 77 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to d7b027bca5d37c67e29013904def8125 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * + col2 col0 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1291 SELECT ALL + col1 + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1291 SELECT ALL + col1 + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col2 * col1 + - 18 - - col2 FROM tab2 AS cor0 ---- 1542 666 846 onlyif mysql # use DIV operator for integer division query I rowsort label-1293 SELECT - - col2 + + col1 DIV + ( + col2 * col1 ) AS col2 FROM tab0 AS cor0 ---- 2 33 82 skipif mysql # not compatible query I rowsort label-1293 SELECT - - col2 + + col1 / + ( + col2 * col1 ) AS col2 FROM tab0 AS cor0 ---- 2 33 82 query I rowsort SELECT DISTINCT - col1 + + ( 61 ) * - col1 FROM tab1 AS cor0 ---- -1612 -620 -806 query I rowsort SELECT ALL - col1 * 20 FROM tab2 AS cor0 ---- -1180 -340 -620 query I rowsort SELECT DISTINCT - col0 * ( 89 ) * col2 AS col1 FROM tab0 AS cor0 ---- -3115 -649522 -70488 query I rowsort SELECT - col2 + + 81 * col0 FROM tab0 cor0 ---- 1911 2834 7127 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * ( 58 ) col0 FROM tab2 AS cor0 ---- -406 -4524 -4582 query I rowsort SELECT - cor0.col0 * cor0.col2 FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL - col2 * + 74 FROM tab0 AS cor0 ---- -2442 -6068 -74 query I rowsort SELECT col2 - 56 FROM tab2 AS cor0 ---- -18 -29 -30 query I rowsort SELECT + 92 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to c64cb7a81da51f4be0b6906a223e8817 query I rowsort SELECT ALL 56 * + cor0.col0 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to cffefce8bf1d6a1b6081b8a561b8731b query I rowsort SELECT + 14 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 409c1790b702540dd9dc067c1965b7c0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * col1 + + 58 col2 FROM tab0 AS cor0 ---- 155 2896 7520 query I rowsort SELECT ALL + ( - col2 ) * col1 + 25 FROM tab2 AS cor0 ---- -1509 -621 -812 query I rowsort SELECT + ( col1 ) + col2 AS col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + col0 * cor0.col0 FROM tab2 cor0 ---- 49 6084 6241 onlyif mysql # use DIV operator for integer division query I rowsort label-1309 SELECT DISTINCT ( - cor0.col1 ) + + col0 DIV + col0 FROM tab1 AS cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-1309 SELECT DISTINCT ( - cor0.col1 ) + + col0 / + col0 FROM tab1 AS cor0 ---- -12 -25 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-1310 SELECT DISTINCT col2 - + col2 DIV + col1 AS col1 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-1310 SELECT DISTINCT col2 - + col2 / + col1 AS col1 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-1311 SELECT ALL + col0 + + col2 DIV - col2 FROM tab1 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-1311 SELECT ALL + col0 + + col2 / - col2 FROM tab1 ---- 2 63 79 onlyif mysql # use DIV operator for integer division query I rowsort label-1312 SELECT DISTINCT + - col0 + col2 DIV col1 AS col2 FROM tab1 AS cor0 ---- -1 -59 -73 skipif mysql # not compatible query I rowsort label-1312 SELECT DISTINCT + - col0 + col2 / col1 AS col2 FROM tab1 AS cor0 ---- -1 -59 -73 query I rowsort SELECT col1 * col0 + col0 + col2 AS col2 FROM tab1 ---- 1216 135 761 query I rowsort SELECT ALL 22 FROM tab1, tab1 AS cor0 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 onlyif mysql # use DIV operator for integer division query I rowsort label-1315 SELECT DISTINCT ( - 78 ) DIV - cor0.col0 FROM tab0, tab0 cor0 ---- 0 2 3 skipif mysql # not compatible query I rowsort label-1315 SELECT DISTINCT ( - 78 ) / - cor0.col0 FROM tab0, tab0 cor0 ---- 0 2 3 query I rowsort SELECT ALL + 99 * + cor0.col2 FROM tab0 AS cor0 ---- 3267 8118 99 query I rowsort SELECT + + col0 * + col0 AS col0 FROM tab1 AS cor0 ---- 4096 6400 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1318 SELECT ALL + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1318 SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1319 SELECT CAST( ( + cor0.col1 ) AS SIGNED ) + 76 FROM tab1, tab2 cor0 ---- 9 values hashing to 412e3a29b49ac7622b9c8c36e18fba04 skipif mysql # not compatible query I rowsort label-1319 SELECT CAST ( ( + cor0.col1 ) AS INTEGER ) + 76 FROM tab1, tab2 cor0 ---- 9 values hashing to 412e3a29b49ac7622b9c8c36e18fba04 onlyif mysql # use DIV operator for integer division query I rowsort label-1320 SELECT ALL col2 DIV col0 col0 FROM tab1 ---- 0 1 18 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1320 SELECT ALL col2 / col0 col0 FROM tab1 ---- 0 1 18 query I rowsort SELECT - 41 + 96 AS col1 FROM tab1 AS cor0 ---- 55 55 55 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 39 col0 FROM tab1 cor0 ---- 39 39 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * - 16 col1 FROM tab2 AS cor0 ---- -272 -496 -944 query I rowsort SELECT col2 + 66 - cor0.col1 FROM tab1 AS cor0 ---- 113 149 94 query I rowsort SELECT + col1 + 51 + + col2 * cor0.col0 * - col2 FROM tab1 AS cor0 ---- -207875 -737216 -8671 query I rowsort SELECT + col2 + - col0 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 63 84 95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1327 SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1327 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1328 SELECT DISTINCT - 93 DIV ( + col0 ) AS col1 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-1328 SELECT DISTINCT - 93 / ( + col0 ) AS col1 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT - + cor0.col2 * 76 + col0 FROM tab1 AS cor0 ---- -4101 -4268 -7216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 34 col1 FROM tab1 AS cor0 ---- 34 34 34 query I rowsort SELECT 46 * col2 * col1 AS col2 FROM tab0 AS cor0 ---- 130548 343252 4462 query I rowsort SELECT ALL ( col2 ) * + col0 * 25 FROM tab1 AS cor0 ---- 192000 4050 91200 query I rowsort SELECT - 22 * col1 FROM tab2 AS cor0 ---- -1298 -374 -682 onlyif mysql # use DIV operator for integer division query I rowsort label-1334 SELECT DISTINCT + CAST( + col1 AS SIGNED ) DIV col1 AS col1 FROM tab1 cor0 ---- 1 skipif mysql # not compatible query I rowsort label-1334 SELECT DISTINCT + CAST ( + col1 AS INTEGER ) / col1 AS col1 FROM tab1 cor0 ---- 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1335 SELECT CAST( NULL AS SIGNED ) + col0 * - col0 * - ( - 68 * - col2 ) - col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1335 SELECT CAST ( NULL AS INTEGER ) + col0 * - col0 * - ( - 68 * - col2 ) - col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - ( + col0 ) + + col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col2 * col0 * col0 - 98 * - col1 FROM tab2 AS cor0 ---- -152402 -235492 1715 query I rowsort SELECT DISTINCT col1 * + col0 AS col1 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT ALL 12 FROM tab0 ---- 12 12 12 query I rowsort SELECT DISTINCT + 62 + ( col2 ) * - 20 FROM tab1 AS cor0 ---- -1018 -1078 -1858 query I rowsort SELECT DISTINCT + + col0 + - col2 * - col1 AS col1 FROM tab1 cor0 ---- 1328 1407 634 query I rowsort SELECT ALL 44 + col0 AS col2 FROM tab2 AS cor0 ---- 122 123 51 query I rowsort SELECT DISTINCT - col2 + 19 FROM tab0 AS cor0 ---- -14 -63 18 query I rowsort SELECT 84 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cadd876c26338fc58b9297e74fc324d8 query I rowsort SELECT - - ( + 29 ) + + col0 AS col1 FROM tab0 AS cor0 ---- 118 53 64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + ( col0 ) * + col2 + col0 col0 FROM tab0 AS cor0 ---- 70 7387 816 onlyif mysql # use DIV operator for integer division query I rowsort label-1347 SELECT - col2 DIV col2 + 95 * col0 AS col0 FROM tab1 AS cor0 ---- 284 6079 7599 skipif mysql # not compatible query I rowsort label-1347 SELECT - col2 / col2 + 95 * col0 AS col0 FROM tab1 AS cor0 ---- 284 6079 7599 query I rowsort SELECT - col2 * + col1 - - col2 * col2 FROM tab2 AS cor0 ---- -108 -858 798 query I rowsort SELECT cor0.col2 * - col1 - + col1 AS col1 FROM tab0 AS cor0 ---- -194 -2924 -7553 query I rowsort SELECT + 8 - col0 AS col2 FROM tab2 AS cor0 ---- -70 -71 1 query I rowsort SELECT DISTINCT 13 FROM tab0 AS cor0 ---- 13 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + + col2 * + ( + col0 * col2 ) col2 FROM tab0 AS cor0 ---- -62 26050 598345 query I rowsort SELECT ALL + + 24 * + col0 FROM tab1 AS cor0 ---- 1536 1920 72 query I rowsort SELECT col1 * - col0 + col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT 8 AS col1 FROM tab2, tab0 AS cor0 ---- 8 query I rowsort SELECT 92 + 5 AS col2 FROM tab0 ---- 97 97 97 query I rowsort SELECT ALL 60 * - col2 * col1 + - ( col0 ) * + col0 AS col0 FROM tab1 ---- -38296 -81280 -84249 onlyif mysql # use DIV operator for integer division query I rowsort label-1358 SELECT + col1 DIV + col1 AS col2 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1358 SELECT + col1 / + col1 AS col2 FROM tab0 cor0 ---- 1 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1359 SELECT - - col1 + + col2 - + ( + col0 + cor0.col1 * - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1359 SELECT - - col1 + + col2 - + ( + col0 + cor0.col1 * - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1360 SELECT ALL + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1360 SELECT ALL + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col2 + ( - 58 ) * col0 AS col0 FROM tab1 AS cor0 ---- -228 -3769 -4736 query I rowsort SELECT ALL + col1 + - 40 FROM tab2 AS cor0 ---- -23 -9 19 query I rowsort SELECT DISTINCT + col1 * - cor0.col0 * - 4 FROM tab0 AS cor0 ---- 13580 32396 8256 query I rowsort SELECT DISTINCT col1 + - col0 * + ( - col1 ) AS col2 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT ALL - col1 * ( + 49 ) * - col1 FROM tab2 AS cor0 ---- 14161 170569 47089 query I rowsort SELECT + + col0 + + ( - col0 * + col0 ) FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT + col1 * ( 51 ) AS col2 FROM tab2 AS cor0 ---- 1581 3009 867 onlyif mysql # use DIV operator for integer division query I rowsort label-1368 SELECT ALL + cor0.col0 DIV - 70 + col1 + - col2 col0 FROM tab1 AS cor0 ---- -28 -47 -84 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1368 SELECT ALL + cor0.col0 / - 70 + col1 + - col2 col0 FROM tab1 AS cor0 ---- -28 -47 -84 query I rowsort SELECT DISTINCT col0 + 17 AS col2 FROM tab1 AS cor0 ---- 20 81 97 onlyif mysql # use DIV operator for integer division query I rowsort label-1370 SELECT - cor0.col1 + 5 DIV col1 AS col2 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-1370 SELECT - cor0.col1 + 5 / col1 AS col2 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ALL + col0 + - 29 * col0 FROM tab2 AS cor0 ---- -196 -2184 -2212 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 col0 FROM tab2 cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + col1 col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT - col1 + - 22 AS col0 FROM tab0 AS cor0 ---- -108 -113 -119 query I rowsort SELECT cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2 ---- 243 values hashing to c6425afc100dd55de8d45dec18c469ea query I rowsort SELECT ALL + 88 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 76 col2 FROM tab2, tab0 AS cor0 ---- 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1378 SELECT - col2 + CAST( NULL AS SIGNED ) * ( - col1 ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1378 SELECT - col2 + CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 + ( col0 ) AS col1 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT + col1 + - col1 + col1 AS col2 FROM tab1 ---- 10 13 26 query I rowsort SELECT - cor0.col0 + 65 * 89 FROM tab2 AS cor0 ---- 5706 5707 5778 query I rowsort SELECT cor0.col1 + + ( ( col0 ) ) * ( col0 ) AS col1 FROM tab1 AS cor0 ---- 35 4106 6413 query I rowsort SELECT - col1 * ( - col0 ) + col1 AS col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT ALL + col2 + cor0.col0 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT - + col1 + + col1 * - col2 AS col0 FROM tab2 AS cor0 ---- -1593 -663 -868 query I rowsort SELECT 82 * col2 AS col0 FROM tab2 AS cor0 ---- 2132 2214 3116 query I rowsort SELECT - - cor1.col2 * - 22 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1 ---- 27 values hashing to e4da59a8cf3465a7a259c0f757d7a4b8 query I rowsort SELECT ALL - col0 * - col1 * tab2.col2 AS col2 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT col2 + - col1 * + col2 AS col1 FROM tab1 ---- -1152 -1350 -513 query I rowsort SELECT col1 - + col0 AS col0 FROM tab2 ---- -19 -62 24 query I rowsort SELECT DISTINCT + col0 * - col0 + col1 * col2 AS col1 FROM tab1 ---- -3526 -5152 1395 query I rowsort SELECT DISTINCT col0 + + col2 + col0 * - col1 AS col1 FROM tab0 ---- -2007 -3359 -7928 query I rowsort SELECT ALL - col0 + + col0 + col2 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-1394 SELECT - col2 DIV col0 - col0 FROM tab0 ---- -25 -35 -89 skipif mysql # not compatible query I rowsort label-1394 SELECT - col2 / col0 - col0 FROM tab0 ---- -25 -35 -89 query I rowsort SELECT DISTINCT col1 + col2 * + col1 FROM tab1 ---- 1261 1430 580 query III rowsort SELECT * FROM tab1 WHERE NOT NULL IN ( col0 * col0 * col1 + + col1 + + col2 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col1 + col1 * col1 col1 FROM tab1 ---- 1209 740 754 query I rowsort SELECT ALL 44 AS col2 FROM tab2 ---- 44 44 44 onlyif mysql # use DIV operator for integer division query I rowsort label-1399 SELECT DISTINCT 45 * - col2 + col0 * ( col0 ) DIV - 25 AS col0 FROM tab0 ---- -1508 -4006 -94 skipif mysql # not compatible query I rowsort label-1399 SELECT DISTINCT 45 * - col2 + col0 * ( col0 ) / - 25 AS col0 FROM tab0 ---- -1508 -4006 -94 query I rowsort SELECT DISTINCT - ( col2 ) + 13 FROM tab1 ---- -41 -44 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 2 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ec11209ab257030053484fc13a1f6d17 query I rowsort SELECT col0 * col1 + col0 * tab0.col2 FROM tab0 ---- 15397 2856 3430 query I rowsort SELECT - 37 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ed4644af7729c2425ea6cc3d84c6504f query I rowsort SELECT DISTINCT - col2 * - 15 + + col2 FROM tab1 ---- 1536 864 912 query I rowsort SELECT - ( tab0.col0 ) FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 onlyif mysql # use DIV operator for integer division query I rowsort label-1406 SELECT DISTINCT + + col0 DIV 34 FROM tab2 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-1406 SELECT DISTINCT + + col0 / 34 FROM tab2 AS cor0 ---- 0 2 query I rowsort SELECT + - cor0.col2 + - 41 * - 45 AS col2 FROM tab1 AS cor0 ---- 1749 1788 1791 query I rowsort SELECT ALL col0 * + col1 + + col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT ALL 88 FROM tab0, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to c46e7cf9bf516fdfde88534336a28177 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1410 SELECT - cor0.col2 + + CAST( 39 AS SIGNED ) * - col0 - col1 FROM tab1 AS cor0 ---- -197 -2563 -3229 skipif mysql # not compatible query I rowsort label-1410 SELECT - cor0.col2 + + CAST ( 39 AS INTEGER ) * - col0 - col1 FROM tab1 AS cor0 ---- -197 -2563 -3229 onlyif mysql # use DIV operator for integer division query I rowsort label-1411 SELECT DISTINCT + col2 DIV + col1 FROM tab2 ---- 0 2 skipif mysql # not compatible query I rowsort label-1411 SELECT DISTINCT + col2 / + col1 FROM tab2 ---- 0 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1412 SELECT + CAST( 93 AS SIGNED ) + + col1 AS col1 FROM tab1 cor0 ---- 103 106 119 skipif mysql # not compatible query I rowsort label-1412 SELECT + CAST ( 93 AS INTEGER ) + + col1 AS col1 FROM tab1 cor0 ---- 103 106 119 query I rowsort SELECT col1 * - col0 * - 81 FROM tab2 AS cor0 ---- 108783 17577 372762 query I rowsort SELECT DISTINCT - - ( - col2 ) + + col2 * - ( + cor0.col1 ) FROM tab2 AS cor0 ---- -1560 -684 -864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + ( col2 ) + - col2 col2 FROM tab2 cor0 ---- -52 -54 -76 query I rowsort SELECT DISTINCT col2 + - col2 * 87 FROM tab0 AS cor0 ---- -2838 -7052 -86 onlyif mysql # use DIV operator for integer division query I rowsort label-1417 SELECT - + 33 DIV col1 FROM tab1 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-1417 SELECT - + 33 / col1 FROM tab1 AS cor0 ---- -1 -2 -3 onlyif mysql # use DIV operator for integer division query I rowsort label-1418 SELECT - + col1 - + col2 DIV cor0.col1 AS col1 FROM tab1 cor0 ---- -15 -20 -28 skipif mysql # not compatible query I rowsort label-1418 SELECT - + col1 - + col2 / cor0.col1 AS col1 FROM tab1 cor0 ---- -15 -20 -28 query I rowsort SELECT DISTINCT + + col2 - col1 * col1 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT ALL + + col1 + - col0 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT ALL + col2 + col2 AS col0 FROM tab2 ---- 52 54 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + tab0.col0 * tab0.col2 col2 FROM tab0 ---- 70 7387 816 onlyif mysql # use DIV operator for integer division query I rowsort label-1423 SELECT ALL + - col0 DIV - col1 + col0 AS col2 FROM tab2 cor0 ---- 7 79 83 skipif mysql # not compatible query I rowsort label-1423 SELECT ALL + - col0 / - col1 + col0 AS col2 FROM tab2 cor0 ---- 7 79 83 query I rowsort SELECT DISTINCT - col0 * cor0.col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - col2 - col0 * - col1 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL - - col2 - + col1 AS col0 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT - - col2 * + col1 * col2 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT ALL - col2 - tab2.col1 AS col1 FROM tab2 ---- -55 -58 -85 query I rowsort SELECT + col0 + cor0.col2 + + col1 FROM tab2 AS cor0 ---- 134 163 65 query I rowsort SELECT ALL + - col2 * col0 + - cor0.col1 * + col2 * + col0 AS col0 FROM tab2 AS cor0 ---- -121680 -54036 -6048 query I rowsort SELECT + col0 * col2 - col2 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT DISTINCT col2 + + tab0.col0 * - col1 AS col1 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT tab1.col2 + col1 + + col2 * col2 FROM tab1 ---- 2996 3316 9325 query I rowsort SELECT DISTINCT col0 * col1 * - col1 + tab1.col0 * - col1 FROM tab1 ---- -14560 -2106 -7040 query I rowsort SELECT + col0 * col2 * col2 FROM tab0 AS cor0 ---- 26136 35 598436 query I rowsort SELECT ALL - cor0.col1 + + col1 * + cor0.col1 * + col1 FROM tab1 AS cor0 ---- 17550 2184 990 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 76 col0 FROM tab0 cor0 ---- -76 -76 -76 query I rowsort SELECT - col1 + + col0 * + col1 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT DISTINCT - col2 + cor0.col0 * col0 FROM tab2 AS cor0 ---- 22 6058 6203 query I rowsort SELECT DISTINCT - 5 * - col1 FROM tab2 ---- 155 295 85 query I rowsort SELECT DISTINCT - + col0 + + col1 * + col1 FROM tab0 AS cor0 ---- 7372 8192 9374 query I rowsort SELECT ALL - ( + col2 ) + + col1 AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-1443 SELECT DISTINCT + + col0 DIV - cor0.col2 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-1443 SELECT DISTINCT + + col0 / - cor0.col2 FROM tab0 AS cor0 ---- -1 -35 0 query I rowsort SELECT ALL - col2 * - col0 + col0 * col1 FROM tab0 cor0 ---- 15397 2856 3430 query I rowsort SELECT col1 + col0 * col1 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT tab2.col2 * - col0 * tab2.col0 AS col0 FROM tab2 ---- -1323 -158184 -237158 query I rowsort SELECT + ( 49 ) AS col2 FROM tab1 ---- 49 49 49 query I rowsort SELECT ( + tab1.col0 * + col0 ) AS col2 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT - 99 + col0 AS col0 FROM tab2 ---- -20 -21 -92 query I rowsort SELECT tab0.col1 + col2 FROM tab0 ---- 119 173 98 query I rowsort SELECT col1 - col2 * col1 AS col2 FROM tab2 ---- -1475 -629 -806 query I rowsort SELECT - ( col2 + + col2 * col0 ) FROM tab2 ---- -2054 -216 -3040 query I rowsort SELECT DISTINCT - 22 * - col0 FROM tab0 AS cor0 ---- 1958 528 770 query I rowsort SELECT ALL + cor0.col2 * col1 + - col0 AS col1 FROM tab2 cor0 ---- 1456 567 830 query I rowsort SELECT 73 * + col0 AS col1 FROM tab1 AS cor0 ---- 219 4672 5840 query I rowsort SELECT tab2.col1 + col2 FROM tab2 WHERE NOT NULL <> NULL ---- query I rowsort SELECT col2 + tab2.col0 * - col2 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT + col0 AS col0 FROM tab1 WHERE + col1 BETWEEN NULL AND ( col0 ) ---- query I rowsort SELECT col1 + col2 * - col0 FROM tab2 ---- -158 -1969 -2985 onlyif mysql # use DIV operator for integer division query I rowsort label-1460 SELECT - col1 DIV - tab0.col0 FROM tab0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-1460 SELECT - col1 / - tab0.col0 FROM tab0 ---- 1 2 3 query I rowsort SELECT col0 + col1 + col0 * col0 AS col0 FROM tab2 ---- 6221 6337 87 query I rowsort SELECT ALL + col2 + col2 * tab0.col0 AS col0 FROM tab0 ---- 36 7380 825 query I rowsort SELECT col2 * col1 + col0 FROM tab0 ---- 132 2862 7551 query I rowsort SELECT col0 * + col2 - col1 * col2 FROM tab2 ---- -648 2356 494 query I rowsort SELECT DISTINCT col0 + + col2 * tab2.col2 FROM tab2 ---- 1523 736 754 onlyif mysql # use DIV operator for integer division query I rowsort label-1466 SELECT col2 + + col2 DIV col2 FROM tab1 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-1466 SELECT col2 + + col2 / col2 FROM tab1 ---- 55 58 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab0.col2 + col1 * + col2 col0 FROM tab0 ---- 2805 7380 96 query I rowsort SELECT ALL col2 + - col1 * tab0.col2 FROM tab0 ---- -2805 -7380 -96 query I rowsort SELECT ALL + col2 * tab1.col2 * + col1 + col2 FROM tab1 ---- 119904 32547 75870 query I rowsort SELECT DISTINCT tab0.col2 + + tab0.col1 AS col0 FROM tab0 ---- 119 173 98 query I rowsort SELECT ALL + col0 - + col2 AS col1 FROM tab1 ---- -16 -51 7 query III rowsort SELECT * FROM tab0 WHERE NULL IN ( + col0 ) ---- query I rowsort SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL NOT IN ( col0 - tab1.col2 ) ---- query I rowsort SELECT col2 - + col0 FROM tab0 ---- -34 -7 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * + tab0.col2 col1 FROM tab0 WHERE NOT NULL IN ( col0 - tab0.col0 ) ---- query III rowsort SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN - col2 * - col1 AND NULL ---- query I rowsort SELECT DISTINCT col0 + - col0 * + col2 AS col1 FROM tab2 ---- -182 -1950 -2923 query III rowsort SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 - + tab2.col0 ) ---- query III rowsort SELECT * FROM tab2 WHERE NOT ( NULL ) > ( + col1 ) ---- query I rowsort SELECT + cor0.col2 * - col0 + col2 * - col1 FROM tab0 AS cor0 ---- -132 -14760 -3630 query I rowsort SELECT ALL col2 + tab2.col2 + col2 AS col1 FROM tab2 ---- 114 78 81 query I rowsort SELECT - col2 * + col1 FROM tab1 WHERE NOT NULL > col2 * col2 + - col0 ---- query I rowsort SELECT DISTINCT cor0.col0 * cor0.col2 - col0 AS col0 FROM tab0 AS cor0 ---- 0 7209 768 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 * col0 + + col0 + - cor0.col1 col1 FROM tab1 cor0 ---- -14 4150 6467 query I rowsort SELECT DISTINCT cor0.col0 * col1 + col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT ALL col0 * + col2 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT col0 * + col1 * col2 AS col0 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT col0 + col1 + + cor0.col0 * col1 * + col0 FROM tab0 AS cor0 ---- 118957 49646 720991 onlyif mysql # use DIV operator for integer division query I rowsort label-1489 SELECT ALL - col2 * col2 + - col1 DIV + col1 FROM tab0 ---- -1090 -2 -6725 skipif mysql # not compatible query I rowsort label-1489 SELECT ALL - col2 * col2 + - col1 / + col1 FROM tab0 ---- -1090 -2 -6725 query I rowsort SELECT ALL - 67 * col0 AS col0 FROM tab2 ---- -469 -5226 -5293 query I rowsort SELECT DISTINCT 96 AS col1 FROM tab0, tab0 cor0 ---- 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1492 SELECT ALL + CAST( NULL AS SIGNED ) / + col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1492 SELECT ALL + CAST ( NULL AS INTEGER ) / + col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - 9 col0 FROM tab1 ---- 27 576 720 query I rowsort SELECT ALL - 83 AS col2 FROM tab1 ---- -83 -83 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + col0 - col0 col2 FROM tab0 ---- 86 91 97 query I rowsort SELECT - - col2 + + col1 - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL col2 * - col2 + col1 * + col1 - - col0 AS col1 FROM tab1 ---- -2237 -3085 -8967 query I rowsort SELECT - - 12 * col2 AS col1 FROM tab2 AS cor0 ---- 312 324 456 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1499 SELECT + col0 * + col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1499 SELECT + col0 * + col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - ( + col2 ) + - cor0.col1 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT DISTINCT - - 62 + + col2 AS col0 FROM tab0 AS cor0 ---- 144 63 95 query I rowsort SELECT ALL cor0.col0 * cor0.col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL + cor0.col0 * cor0.col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT - + col0 * col2 + col0 AS col2 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT + col2 * col2 * col2 + col0 AS col0 FROM tab1 AS cor0 ---- 157467 185257 884816 query I rowsort SELECT 23 * - col0 - col0 FROM tab1 AS cor0 ---- -1536 -1920 -72 onlyif mysql # use DIV operator for integer division query I rowsort label-1507 SELECT + col0 DIV col0 + - col2 AS col2 FROM tab0 AS cor0 ---- -32 -81 0 skipif mysql # not compatible query I rowsort label-1507 SELECT + col0 / col0 + - col2 AS col2 FROM tab0 AS cor0 ---- -32 -81 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1508 SELECT - cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1508 SELECT - cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col0 * - 66 AS col0 FROM tab1 cor0 ---- 198 4224 5280 query I rowsort SELECT - col2 * - col1 * ( + cor0.col2 ) FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT ALL col0 * - col2 + - col2 AS col1 FROM tab2 AS cor0 ---- -2054 -216 -3040 onlyif mysql # use DIV operator for integer division query I rowsort label-1512 SELECT ALL 99 DIV 44 + - col0 + - 7 AS col0 FROM tab0 AS cor0 ---- -29 -40 -94 skipif mysql # not compatible query I rowsort label-1512 SELECT ALL 99 / 44 + - col0 + - 7 AS col0 FROM tab0 AS cor0 ---- -29 -40 -94 onlyif mysql # use DIV operator for integer division query I rowsort label-1513 SELECT + ( 0 ) + - cor0.col1 DIV col1 col1 FROM tab0 cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1513 SELECT + ( 0 ) + - cor0.col1 / col1 col1 FROM tab0 cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-1514 SELECT col1 DIV col1 AS col2 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1514 SELECT col1 / col1 AS col2 FROM tab0 cor0 ---- 1 1 1 query I rowsort SELECT ALL 22 + - col2 AS col1 FROM tab0 AS cor0 ---- -11 -60 21 query I rowsort SELECT - - 71 AS col1 FROM tab2 cor0 ---- 71 71 71 query I rowsort SELECT ALL + + col1 * 41 AS col2 FROM tab1 cor0 ---- 1066 410 533 query I rowsort SELECT DISTINCT + - col1 * - cor0.col0 + col1 FROM tab2 cor0 ---- 1360 248 4661 query I rowsort SELECT DISTINCT col0 - + 48 AS col2 FROM tab0 AS cor0 ---- -13 -24 41 query I rowsort SELECT DISTINCT + - col1 * + col2 AS col2 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT - col0 * - ( col2 ) + ( col1 ) AS col0 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ( + cor0.col0 ) FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT ALL - col1 * - col2 + + col2 + - col1 * 56 AS col1 FROM tab2 AS cor0 ---- -1744 -268 -872 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1524 SELECT + CAST( col2 AS SIGNED ) + tab0.col0 * 21 col0 FROM tab0 ---- 1951 537 736 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1524 SELECT + CAST ( col2 AS INTEGER ) + tab0.col0 * 21 col0 FROM tab0 ---- 1951 537 736 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 59 * - col0 col2 FROM tab0 AS cor0 ---- -1416 -2065 -5251 query I rowsort SELECT ALL - cor1.col1 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 * - col2 col0 FROM tab0 AS cor0 ---- 1 1089 6724 onlyif mysql # use DIV operator for integer division query I rowsort label-1528 SELECT + cor0.col2 * col2 DIV + ( 21 ) col1 FROM tab1 AS cor0 ---- 138 154 438 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1528 SELECT + cor0.col2 * col2 / + ( 21 ) col1 FROM tab1 AS cor0 ---- 138 154 438 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 cor0, tab0, tab1 AS cor1 ---- 972 values hashing to 2d99dda76af061a3fac120e0e49e6c53 query I rowsort SELECT DISTINCT - 5 FROM tab1, tab1 AS cor0 CROSS JOIN tab2 ---- -5 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1 ---- 972 values hashing to e84152c0bf436177d3b3d80e42832d4f query IIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 243 values hashing to 9ed1a6a444254225f040123c46b7f70c query I rowsort SELECT col0 * 65 FROM tab0 AS cor0 ---- 1560 2275 5785 query I rowsort SELECT col0 + + 67 AS col0 FROM tab1 AS cor0 ---- 131 147 70 query I rowsort SELECT DISTINCT + col1 + col1 * 15 + col2 * - 36 FROM tab2 AS cor0 ---- -1096 -476 8 query I rowsort SELECT ALL - cor0.col1 - 63 AS col0 FROM tab0 AS cor0 ---- -149 -154 -160 query I rowsort SELECT + - col0 * - ( col2 * - col1 ) FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT 28 + cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 281a3fb0c8c23bfc05d4cc147fb3cc34 query I rowsort SELECT DISTINCT + - cor0.col1 + ( cor0.col2 ) FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - 27 FROM tab1, tab1 AS cor0 ---- -27 query I rowsort SELECT - col1 * col0 + + col2 * - col0 FROM tab2 AS cor0 ---- -406 -4345 -6630 query I rowsort SELECT + ( - col1 + col0 ) FROM tab0 ---- -2 -62 -62 query I rowsort SELECT ALL cor0.col0 + + 27 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to c409f4ce999258808b098223ca4b74ce query I rowsort SELECT + - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT tab2.col1 + - 27 FROM tab2, tab0 cor0 ---- 9 values hashing to 7376d7d6c3ff9f4f02d6871d5a643021 query I rowsort SELECT + 22 * col2 AS col0 FROM tab0 ---- 1804 22 726 query I rowsort SELECT - col1 - - 29 AS col0 FROM tab2 ---- -2 -30 12 query I rowsort SELECT + col1 + - col0 * + ( - col0 ) AS col1 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT DISTINCT + 75 FROM tab0 ---- 75 query I rowsort SELECT ALL 6 * + col0 FROM tab1 cor0 ---- 18 384 480 query I rowsort SELECT ALL + col0 + col2 * + ( ( col1 ) ) FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT + - 84 AS col1 FROM tab0 AS cor0 ---- -84 -84 -84 query I rowsort SELECT ALL + col1 * + tab1.col1 AS col1 FROM tab1 ---- 100 169 676 query I rowsort SELECT - cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to 08e380e50b0cb64601bc84e5254deef4 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab0 cor2 ---- 3645 values hashing to 8e88b3a69c24fc01553b0c32bf7748d0 query I rowsort SELECT ALL col0 - + col2 AS col2 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT DISTINCT - - col1 * col0 + cor0.col1 * - col0 AS col0 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort SELECT + col0 + + CAST ( 94 AS REAL ) FROM tab1 AS cor0 ---- 158 174 97 query I rowsort SELECT + col0 * 69 + col0 AS col2 FROM tab2 AS cor0 ---- 490 5460 5530 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 13 col1 FROM tab1 AS cor0 ---- -13 -13 -13 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1561 SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1561 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL + ( col0 ) + + col2 * + col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT - col2 * ( col0 ) * - col1 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT ALL - 14 + + col0 * col1 FROM tab2 AS cor0 ---- 1329 203 4588 query I rowsort SELECT ALL + - cor0.col0 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT ALL - 67 FROM tab1 cor0 ---- -67 -67 -67 query I rowsort SELECT + + col2 * - col1 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + 59 + col1 * - col2 AS col1 FROM tab0 ---- -2779 -38 -7403 query I rowsort SELECT ( + col0 ) + - col0 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT - ( + col1 ) * - col0 * 37 FROM tab1 ---- 23680 2886 38480 query I rowsort SELECT ALL - + 39 + + col2 FROM tab0 AS cor0 ---- -38 -6 43 query I rowsort SELECT DISTINCT col0 * + cor0.col1 AS col2 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT + 49 + tab0.col1 FROM tab0 ---- 135 140 146 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1574 SELECT DISTINCT + CAST( col2 * - col2 AS SIGNED ) + - col0 AS col0 FROM tab0 ---- -1113 -36 -6813 skipif mysql # not compatible query I rowsort label-1574 SELECT DISTINCT + CAST ( col2 * - col2 AS INTEGER ) + - col0 AS col0 FROM tab0 ---- -1113 -36 -6813 query I rowsort SELECT DISTINCT + 32 + col0 FROM tab2 AS cor0 ---- 110 111 39 query I rowsort SELECT - - col2 * cor0.col2 * - col2 + - col0 AS col0 FROM tab0 AS cor0 ---- -35961 -36 -551457 query I rowsort SELECT + 11 AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 69116737f3f57e2e3273f6dbb04d036c query I rowsort SELECT - cor0.col2 + + 8 AS col0 FROM tab2 cor0 ---- -18 -19 -30 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + col2 ) col0 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL + col2 + + 69 * col1 * col1 AS col1 FROM tab0 ---- 510357 571471 649222 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + - cor0.col0 * - cor0.col2 col1 FROM tab2 AS cor0 ---- 162 2002 2964 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1582 SELECT - col1 / - CAST( NULL AS DECIMAL ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1582 SELECT - col1 / - CAST ( NULL AS REAL ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + tab1.col1 * - ( - 83 ) + col2 AS col1 FROM tab1 ---- 1175 2212 887 query I rowsort SELECT DISTINCT cor0.col0 + + cor0.col1 AS col2 FROM tab2, tab1 AS cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-1585 SELECT DISTINCT col0 DIV ( col1 ) + + col1 AS col0 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-1585 SELECT DISTINCT col0 / ( col1 ) + + col1 AS col0 FROM tab0 ---- 86 91 97 query I rowsort SELECT col1 * - 96 FROM tab2 ---- -1632 -2976 -5664 query I rowsort SELECT ALL + cor0.col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT ALL 30 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to da5de0c411a2c0f445400f1b63ea9f89 query I rowsort SELECT + col2 * - 92 FROM tab2 ---- -2392 -2484 -3496 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + 99 ) * col1 col2 FROM tab2 ---- -1683 -3069 -5841 query I rowsort SELECT ALL - 30 FROM tab2 ---- -30 -30 -30 query I rowsort SELECT + col1 + - 11 FROM tab0 AS cor0 ---- 75 80 86 query I rowsort SELECT DISTINCT col1 * col0 + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 1422 224 4680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1594 SELECT - CAST( 84 AS SIGNED ) * cor0.col2 * - col1 + + col1 FROM tab1 AS cor0 ---- 104845 117962 47890 skipif mysql # not compatible query I rowsort label-1594 SELECT - CAST ( 84 AS INTEGER ) * cor0.col2 * - col1 + + col1 FROM tab1 AS cor0 ---- 104845 117962 47890 query I rowsort SELECT - 75 + ( - col1 ) FROM tab2 AS cor0 ---- -106 -134 -92 query I rowsort SELECT + + ( + ( + cor0.col2 ) ) FROM tab2 AS cor0 ---- 26 27 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1597 SELECT ALL + - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1597 SELECT ALL + - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + col2 - col0 * col2 FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT + cor0.col1 * - col0 - - col0 * 25 FROM tab0 AS cor0 ---- -1464 -2520 -5874 query I rowsort SELECT DISTINCT - 37 FROM tab1 cor0 ---- -37 query I rowsort SELECT ALL 29 + + 34 FROM tab2 AS cor0 ---- 63 63 63 query I rowsort SELECT ALL cor0.col1 + ( - col2 ) * + col1 FROM tab2 AS cor0 ---- -1475 -629 -806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + ( - col1 ) * cor0.col0 - col0 col1 FROM tab2 AS cor0 ---- 1264 210 4524 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + cor0.col2 col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT ALL 46 FROM tab0 cor0 ---- 46 46 46 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * col1 + - col1 * col1 col0 FROM tab1 AS cor0 ---- -1209 -740 -754 query I rowsort SELECT ALL col2 - col2 * 34 * + col0 AS col1 FROM tab0 AS cor0 ---- -1189 -248050 -26895 query I rowsort SELECT ALL - col0 + - col1 * col1 * + col0 FROM tab1 AS cor0 ---- -13600 -2031 -6464 onlyif mysql # use DIV operator for integer division query I rowsort label-1609 SELECT DISTINCT - 80 DIV - col1 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-1609 SELECT DISTINCT - 80 / - col1 FROM tab0 ---- 0 query I rowsort SELECT ALL + 76 FROM tab1 ---- 76 76 76 query I rowsort SELECT 82 AS col0 FROM tab1 ---- 82 82 82 query I rowsort SELECT - col2 * col0 * col0 AS col0 FROM tab2 ---- -1323 -158184 -237158 query I rowsort SELECT ALL cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1614 SELECT - col1 * - CAST( NULL AS SIGNED ) * col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1614 SELECT - col1 * - CAST ( NULL AS INTEGER ) * col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT cor0.col0 * - 58 AS col2 FROM tab2 AS cor0 ---- -406 -4524 -4582 query I rowsort SELECT + col2 + - 57 AS col1 FROM tab0 AS cor0 ---- -24 -56 25 query I rowsort SELECT DISTINCT - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- -1 -33 -82 query I rowsort SELECT DISTINCT + 70 FROM tab2 ---- 70 query I rowsort SELECT ALL + col2 * + col2 + cor0.col0 + col1 FROM tab0 AS cor0 ---- 1199 133 6904 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1620 SELECT ALL - CAST( NULL AS SIGNED ) * col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1620 SELECT ALL - CAST ( NULL AS INTEGER ) * col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + - 14 + - col1 FROM tab1 AS cor0 ---- -24 -27 -40 query I rowsort SELECT - 78 + col1 * + col2 * col2 AS col1 FROM tab2 cor0 ---- 22521 24470 39806 query I rowsort SELECT ALL + 8 + col2 FROM tab0 ---- 41 9 90 query I rowsort SELECT DISTINCT - 35 * col2 AS col2 FROM tab2 ---- -1330 -910 -945 query I rowsort SELECT - - ( - col0 ) * col1 + col0 * + col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 49 * col1 FROM tab2 AS cor0 ---- 1519 2891 833 query I rowsort SELECT ALL + - col1 + col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + + cor0.col0 * - col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL - 55 + col1 AS col0 FROM tab2 AS cor0 ---- -24 -38 4 onlyif mysql # use DIV operator for integer division query I rowsort label-1630 SELECT + - col1 DIV col0 + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 1534 646 833 skipif mysql # not compatible query I rowsort label-1630 SELECT + - col1 / col0 + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 1534 646 833 query I rowsort SELECT DISTINCT - + cor0.col2 + - col0 * col2 FROM tab1 AS cor0 ---- -216 -3705 -7776 onlyif mysql # use DIV operator for integer division query I rowsort label-1632 SELECT DISTINCT col2 DIV - ( + 35 ) FROM tab2 cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-1632 SELECT DISTINCT col2 / - ( + 35 ) FROM tab2 cor0 ---- -1 0 query I rowsort SELECT - + col1 + col2 * - col1 AS col0 FROM tab0 AS cor0 ---- -194 -2924 -7553 query I rowsort SELECT ALL - - col0 + 86 FROM tab0 AS cor0 ---- 110 121 175 query I rowsort SELECT DISTINCT col2 + 28 AS col1 FROM tab0 cor0 ---- 110 29 61 query I rowsort SELECT DISTINCT + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 69 query I rowsort SELECT - col1 * ( 25 ) FROM tab1 AS cor0 ---- -250 -325 -650 query I rowsort SELECT + - col2 * ( col1 ) FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT - col1 * 40 FROM tab0 AS cor0 ---- -3440 -3640 -3880 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 81 col0 FROM tab2 cor0 ---- -81 -81 -81 query I rowsort SELECT ALL - col0 + col1 + + cor0.col0 * col0 AS col0 FROM tab2 AS cor0 ---- 6065 6179 73 query I rowsort SELECT + - 95 * + col0 + - col0 FROM tab2 AS cor0 ---- -672 -7488 -7584 query I rowsort SELECT ALL 90 * 7 AS col2 FROM tab1 AS cor0 ---- 630 630 630 query I rowsort SELECT DISTINCT - col2 + + ( + cor0.col1 ) FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT DISTINCT + ( - cor0.col2 ) * + cor0.col0 * - col0 + cor0.col2 + - col2 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT DISTINCT + ( tab0.col0 ) FROM tab0 ---- 24 35 89 query I rowsort SELECT - col0 + + col1 * col2 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT DISTINCT + 1 FROM tab2 cor0 ---- 1 query I rowsort SELECT DISTINCT + cor0.col0 * col0 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT tab0.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT + col2 * - tab2.col2 * col2 FROM tab2 ---- -17576 -19683 -54872 query I rowsort SELECT - col1 * + 91 FROM tab1 ---- -1183 -2366 -910 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1653 SELECT + CAST( NULL AS SIGNED ) * col1 * + col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1653 SELECT + CAST ( NULL AS INTEGER ) * col1 * + col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + cor0.col1 * - 63 FROM tab0, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to a561681fe36d1c15248c0325566a6c37 onlyif mysql # use DIV operator for integer division query I rowsort label-1655 SELECT col2 + 94 DIV col1 FROM tab0 ---- 1 34 83 skipif mysql # not compatible query I rowsort label-1655 SELECT col2 + 94 / col1 FROM tab0 ---- 1 34 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 24 + ( + cor0.col1 ) col0 FROM tab1 AS cor0 ---- -11 -14 2 query I rowsort SELECT - col2 * - col1 + col1 AS col0 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT - col1 * 15 + 41 + + col1 FROM tab1 AS cor0 ---- -141 -323 -99 query I rowsort SELECT ALL + - cor0.col1 * + col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT - col1 + - col1 * - 67 FROM tab0 ---- 5676 6006 6402 query I rowsort SELECT col1 * - col1 + 0 * + col2 + ( - tab1.col0 * - col2 ) FROM tab1 ---- -514 3548 7511 query I rowsort SELECT DISTINCT - col0 + - 73 AS col0 FROM tab2 ---- -151 -152 -80 query I rowsort SELECT - ( - 21 * col2 ) FROM tab2 ---- 546 567 798 query I rowsort SELECT 29 AS col2 FROM tab1 ---- 29 29 29 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + col0 col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT DISTINCT - col2 + 71 * - col2 FROM tab1 cor0 ---- -3888 -4104 -6912 query I rowsort SELECT DISTINCT - + col1 * + col1 + + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -7372 -8192 -9374 query I rowsort SELECT ALL col2 * + 96 AS col1 FROM tab1 ---- 5184 5472 9216 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1669 SELECT + CAST( - 72 AS SIGNED ) AS col2 FROM tab1 ---- -72 -72 -72 skipif mysql # not compatible query I rowsort label-1669 SELECT + CAST ( - 72 AS INTEGER ) AS col2 FROM tab1 ---- -72 -72 -72 query I rowsort SELECT - 8 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e query I rowsort SELECT ALL - + 95 * col1 * - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 16055 64220 9500 query I rowsort SELECT ALL - 94 AS col1 FROM tab0, tab0 cor0 ---- 9 values hashing to a95bfa539191d3f72f6548147d7efb9e query I rowsort SELECT DISTINCT + + col2 * + 53 FROM tab2 AS cor0 ---- 1378 1431 2014 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col0 col2 FROM tab0 AS cor0 ---- -24 -35 -89 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab0 cor0, tab0 cor1, tab2 AS cor2 ---- 972 values hashing to 1e9d01970ae508486ddabec967bb176c query I rowsort SELECT DISTINCT col0 + + col2 * 49 * 88 + - col2 AS col2 FROM tab0 ---- 142287 353591 4346 query I rowsort SELECT DISTINCT + - 36 FROM tab0, tab2, tab2 AS cor0 ---- -36 query I rowsort SELECT + col1 + tab1.col0 * - col2 * col0 + col1 FROM tab1 ---- -233452 -434 -614374 query I rowsort SELECT 55 + col1 * - tab0.col0 * - tab0.col1 + col2 * + 73 FROM tab0 ---- 179968 329443 743050 onlyif mysql # use DIV operator for integer division query I rowsort label-1680 SELECT + col2 DIV col1 + - tab1.col1 * col0 FROM tab1 ---- -1033 -635 -76 skipif mysql # not compatible query I rowsort label-1680 SELECT + col2 / col1 + - tab1.col1 * col0 FROM tab1 ---- -1033 -635 -76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1681 SELECT - col2 * col2 + - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1681 SELECT - col2 * col2 + - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 * + col2 + - 23 + 90 AS col0 FROM tab2 ---- -122 -1961 -2935 query I rowsort SELECT DISTINCT 70 + col2 * - tab0.col0 AS col0 FROM tab0 ---- -722 -7228 35 query I rowsort SELECT ALL 25 * + tab0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to bdcd380dddcd1449ef0cfb08defc40bb query I rowsort SELECT - col2 - - col1 * - col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT DISTINCT - 81 * + cor0.col0 + + 26 AS col0 FROM tab2 AS cor0 ---- -541 -6292 -6373 onlyif mysql # use DIV operator for integer division query I rowsort label-1687 SELECT ALL + col2 DIV col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1687 SELECT ALL + col2 / col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 * cor0.col2 * + ( col2 * - cor0.col2 ) - - col1 AS col2 FROM tab1 AS cor0 ---- 11852362 472418 70778893 query I rowsort SELECT DISTINCT + 56 + col0 FROM tab1 AS cor0 ---- 120 136 59 query I rowsort SELECT ALL 4 + cor0.col2 + ( col0 ) AS col0 FROM tab2 AS cor0 ---- 108 121 38 onlyif mysql # use DIV operator for integer division query I rowsort label-1691 SELECT - col2 DIV CAST( 6 * col0 AS SIGNED ) + 57 FROM tab2 AS cor0 ---- 57 57 57 skipif mysql # not compatible query I rowsort label-1691 SELECT - col2 / CAST ( 6 * col0 AS INTEGER ) + 57 FROM tab2 AS cor0 ---- 57 57 57 query I rowsort SELECT ALL + col2 * col2 AS col0 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT ALL - col1 * ( col2 ) * col2 AS col1 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT + col0 + 33 FROM tab1 AS cor0 ---- 113 36 97 query I rowsort SELECT + - col1 + + col0 + - col0 FROM tab2 AS cor0 ---- -17 -31 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-1696 SELECT col1 DIV + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-1696 SELECT col1 / + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 0 0 4 query I rowsort SELECT cor0.col0 + 7 FROM tab0 AS cor0 ---- 31 42 96 query I rowsort SELECT DISTINCT col1 + cor0.col1 FROM tab1 cor0 ---- 20 26 52 query I rowsort SELECT DISTINCT + cor0.col1 * cor0.col1 + col0 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT DISTINCT col2 * - 71 * col2 FROM tab1 AS cor0 ---- -207036 -230679 -654336 query I rowsort SELECT col2 + ( col2 ) * + col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT ALL + col0 + 22 FROM tab2 cor0 ---- 100 101 29 query I rowsort SELECT + - col0 * - col0 + + ( + col0 ) FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT ALL + 35 - col1 AS col2 FROM tab1 ---- 22 25 9 query I rowsort SELECT DISTINCT ( col0 ) * ( - ( - col1 ) ) + ( + col1 + - tab2.col1 ) * col2 * tab2.col1 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT DISTINCT col0 - - tab2.col1 * col1 AS col0 FROM tab2 ---- 3559 368 968 onlyif mysql # use DIV operator for integer division query I rowsort label-1707 SELECT ALL + cor0.col0 DIV + 88 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1707 SELECT ALL + cor0.col0 / + 88 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col1 + CAST ( + col0 AS REAL ) * col1 AS col0 FROM tab1 AS cor0 ---- 1027 52 630 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1709 SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) - col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1709 SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) - col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col1 + ( + col1 ) * + col2 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT - cor0.col1 - - col1 * - 77 * - col1 FROM tab0 AS cor0 ---- 569406 637546 724396 query I rowsort SELECT ALL + + col2 + + cor0.col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT col0 * 54 FROM tab2 ---- 378 4212 4266 query I rowsort SELECT 16 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + ( 45 ) col1 FROM tab0 AS cor0 ---- -3870 -4095 -4365 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 8 * cor0.col0 + + col0 + 95 col2 FROM tab0 AS cor0 ---- 311 410 896 query I rowsort SELECT 1 + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT DISTINCT 27 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 onlyif mysql # use DIV operator for integer division query I rowsort label-1719 SELECT ALL - col2 DIV - CAST( 38 AS SIGNED ) + + col0 * + 87 FROM tab0 ---- 2088 3045 7745 skipif mysql # not compatible query I rowsort label-1719 SELECT ALL - col2 / - CAST ( 38 AS INTEGER ) + + col0 * + 87 FROM tab0 ---- 2088 3045 7745 query I rowsort SELECT DISTINCT + col2 + - col0 * col1 * + cor0.col2 FROM tab0 AS cor0 ---- -3394 -664036 -68079 query I rowsort SELECT DISTINCT - - ( + col1 ) * 7 AS col0 FROM tab1 AS cor0 ---- 182 70 91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 + - col2 col1 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT - + col0 * col2 + - 81 * col2 AS col0 FROM tab0 AS cor0 ---- -116 -13940 -3465 query I rowsort SELECT ALL + cor0.col0 * - col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + 60 FROM tab1, tab0 AS cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT + 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 onlyif mysql # use DIV operator for integer division query I rowsort label-1727 SELECT DISTINCT - col2 DIV col0 AS col2 FROM tab2 AS cor0 ---- -3 0 skipif mysql # not compatible query I rowsort label-1727 SELECT DISTINCT - col2 / col0 AS col2 FROM tab2 AS cor0 ---- -3 0 query I rowsort SELECT col1 * col2 - col2 AS col0 FROM tab1 ---- 1152 1350 513 query I rowsort SELECT ALL - ( + tab0.col1 ) FROM tab0 ---- -86 -91 -97 query I rowsort SELECT - 83 + - tab1.col2 FROM tab1 ---- -137 -140 -179 query I rowsort SELECT DISTINCT + col2 * + col2 + cor0.col0 FROM tab1 AS cor0 ---- 2919 3313 9296 query I rowsort SELECT 45 * + col2 FROM tab0 AS cor0 ---- 1485 3690 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + col0 * cor0.col1 col2 FROM tab2 cor0 ---- 1360 248 4661 query I rowsort SELECT DISTINCT 83 + - col2 AS col0 FROM tab0 AS cor0 ---- 1 50 82 onlyif mysql # use DIV operator for integer division query I rowsort label-1735 SELECT DISTINCT - - col2 DIV + ( col0 + col1 ) AS col0 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1735 SELECT DISTINCT - - col2 / + ( col0 + col1 ) AS col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT + - col1 * 41 FROM tab1 AS cor0 ---- -1066 -410 -533 query I rowsort SELECT col2 * ( - col2 ) * - col0 AS col2 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT DISTINCT 78 * + col2 AS col2 FROM tab0 ---- 2574 6396 78 onlyif mysql # use DIV operator for integer division query I rowsort label-1739 SELECT ALL + col2 * - ( col1 ) + - col0 DIV + 56 + col2 FROM tab1 AS cor0 ---- -1153 -1350 -514 skipif mysql # not compatible query I rowsort label-1739 SELECT ALL + col2 * - ( col1 ) + - col0 / + 56 + col2 FROM tab1 AS cor0 ---- -1153 -1350 -514 query I rowsort SELECT ALL + col2 * + col0 + - ( col1 * - col0 ) FROM tab0 AS cor0 ---- 15397 2856 3430 query I rowsort SELECT ALL - col0 + col0 AS col1 FROM tab2 WHERE - col1 + + col2 BETWEEN NULL AND NULL ---- query I rowsort SELECT ALL col1 * col2 * tab1.col0 FROM tab1 ---- 36480 4212 99840 query III rowsort SELECT ALL * FROM tab1 WHERE + col1 / col2 + + col1 * col2 IN ( + tab1.col1 / - col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + tab0.col2 col0 FROM tab0 ---- -34 -7 9 query I rowsort SELECT DISTINCT tab0.col0 * + col0 FROM tab0 ---- 1225 576 7921 query I rowsort SELECT - col1 * col0 - col0 FROM tab2 ---- -1422 -224 -4680 query I rowsort SELECT DISTINCT col0 + + col2 - col0 AS col1 FROM tab0 WHERE - col0 IN ( - col1 ) ---- query I rowsort SELECT ALL col1 * col0 * + col1 + - col2 AS col2 FROM tab1 ---- 13424 1974 6343 query I rowsort SELECT DISTINCT col0 * - col2 + col2 AS col1 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT ALL + col2 * - tab2.col0 + col1 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT ALL - col2 * - col2 + - tab1.col2 * col0 FROM tab1 ---- -399 1536 2754 query I rowsort SELECT + tab2.col0 + col1 AS col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL col0 + + col2 AS col0 FROM tab2 ---- 104 117 34 query I rowsort SELECT col2 * col1 + - col0 AS col2 FROM tab1 ---- 1168 1401 506 query I rowsort SELECT col1 + col1 * + col1 * col2 FROM tab0 WHERE NULL <= NULL ---- query I rowsort SELECT ALL col0 + tab1.col0 + - col2 AS col2 FROM tab1 ---- -48 64 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * col1 * + tab1.col0 col1 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT ALL + col0 * col0 + col1 + col1 AS col0 FROM tab1 ---- 4116 61 6426 query I rowsort SELECT col1 AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( + col2 ) ---- query I rowsort SELECT DISTINCT col1 * + col0 + - col1 + col0 FROM tab1 ---- 1107 55 694 query I rowsort SELECT ALL - tab2.col2 * + col1 + - col2 + col0 AS col2 FROM tab2 ---- -1482 -605 -857 query I rowsort SELECT - col0 + - col1 FROM tab0 ---- -110 -132 -180 query I rowsort SELECT ALL + col2 + col0 AS col0 FROM tab2 ---- 104 117 34 query I rowsort SELECT + + ( col1 ) * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT + - col0 * - col2 + col2 AS col0 FROM tab2 cor0 ---- 2054 216 3040 query I rowsort SELECT ALL + - 91 AS col2 FROM tab2 AS cor0 ---- -91 -91 -91 onlyif mysql # use DIV operator for integer division query I rowsort label-1767 SELECT - + ( - col2 ) * - 80 + - 58 DIV col1 FROM tab0 AS cor0 ---- -2640 -6560 -80 skipif mysql # not compatible query I rowsort label-1767 SELECT - + ( - col2 ) * - 80 + - 58 / col1 FROM tab0 AS cor0 ---- -2640 -6560 -80 query I rowsort SELECT DISTINCT col2 + col0 * 34 FROM tab2 AS cor0 ---- 265 2678 2724 query I rowsort SELECT - col0 + + col1 + col2 AS col2 FROM tab0 ---- 63 84 95 query I rowsort SELECT - ( col2 + col1 ) * ( col1 ) FROM tab2 ---- -1798 -5015 -935 query I rowsort SELECT ( + 75 ) + - col1 FROM tab1 ---- 49 62 65 query I rowsort SELECT 19 - 77 AS col0 FROM tab2 ---- -58 -58 -58 query I rowsort SELECT - ( 97 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to e4a6bd848a69226cbb7ad3d154be321b query I rowsort SELECT + col2 * + col1 * 82 + col2 * col1 AS col2 FROM tab2 ---- 127322 53618 69471 query I rowsort SELECT ALL - - col2 - - cor0.col1 * ( + 57 * col1 ) FROM tab0 AS cor0 ---- 421605 472099 536314 query I rowsort SELECT DISTINCT + cor0.col2 - + cor0.col0 FROM tab2 AS cor0 ---- -41 -52 20 onlyif mysql # use DIV operator for integer division query I rowsort label-1777 SELECT ALL + + 38 DIV cor0.col1 AS col2 FROM tab2 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-1777 SELECT ALL + + 38 / cor0.col1 AS col2 FROM tab2 AS cor0 ---- 0 1 2 query I rowsort SELECT ALL + ( col2 ) * 44 FROM tab2 AS cor0 ---- 1144 1188 1672 onlyif mysql # use DIV operator for integer division query I rowsort label-1779 SELECT DISTINCT + - 1 DIV col0 AS col1 FROM tab0 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1779 SELECT DISTINCT + - 1 / col0 AS col1 FROM tab0 cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1780 SELECT ALL 79 + col2 * CAST( + col0 + - col1 AS SIGNED ) col0 FROM tab1 AS cor0 ---- -1163 3157 6511 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1780 SELECT ALL 79 + col2 * CAST ( + col0 + - col1 AS INTEGER ) col0 FROM tab1 AS cor0 ---- -1163 3157 6511 query I rowsort SELECT ALL + 77 * col0 + 70 AS col2 FROM tab2 AS cor0 ---- 6076 609 6153 query I rowsort SELECT DISTINCT 49 - + col2 AS col2 FROM tab0 AS cor0 ---- -33 16 48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 78 * + col0 col1 FROM tab0 cor0 ---- 1872 2730 6942 query I rowsort SELECT - - 28 + cor0.col0 FROM tab2 AS cor0 ---- 106 107 35 onlyif mysql # use DIV operator for integer division query I rowsort label-1785 SELECT ALL col0 * + col1 + col1 DIV + ( + col2 * 77 ) FROM tab1 AS cor0 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-1785 SELECT ALL col0 * + col1 + col1 / + ( + col2 * 77 ) FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + col1 * - 73 * col2 AS col2 FROM tab0 ---- -207174 -544726 -7081 query I rowsort SELECT DISTINCT 61 FROM tab2, tab1 AS cor0 ---- 61 onlyif mysql # use DIV operator for integer division query I rowsort label-1788 SELECT - col2 + + col0 DIV 98 AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-1788 SELECT - col2 + + col0 / 98 AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT + cor0.col2 + + 80 * 92 FROM tab1 AS cor0 ---- 7414 7417 7456 query I rowsort SELECT ( - col2 ) AS col2 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT 16 * col0 FROM tab0 cor0 ---- 1424 384 560 query I rowsort SELECT + + col2 + + ( col0 ) FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-1793 SELECT + - col2 * 54 DIV col2 FROM tab1 AS cor0 ---- -54 -54 -54 skipif mysql # not compatible query I rowsort label-1793 SELECT + - col2 * 54 / col2 FROM tab1 AS cor0 ---- -54 -54 -54 onlyif mysql # use DIV operator for integer division query I rowsort label-1794 SELECT 90 DIV col1 col0 FROM tab2 cor0 ---- 1 2 5 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1794 SELECT 90 / col1 col0 FROM tab2 cor0 ---- 1 2 5 query I rowsort SELECT ALL 75 AS col2 FROM tab0 cor0 ---- 75 75 75 query I rowsort SELECT - + 3 + col0 AS col2 FROM tab2 cor0 ---- 4 75 76 query I rowsort SELECT ALL - col2 * - 14 FROM tab1 AS cor0 ---- 1344 756 798 query I rowsort SELECT ALL - ( + 73 ) FROM tab2 AS cor0 ---- -73 -73 -73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 - - cor0.col1 col0 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL col0 * col2 AS col2 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT + col2 * col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT - 79 + + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -15 -76 1 query I rowsort SELECT ALL + 67 * - col2 + col0 FROM tab0 AS cor0 ---- -2187 -32 -5405 query I rowsort SELECT ALL - 81 + col1 AS col2 FROM tab2 AS cor0 ---- -22 -50 -64 query I rowsort SELECT - col1 * col1 + - col2 AS col1 FROM tab2 AS cor0 ---- -327 -3507 -988 query I rowsort SELECT ALL cor0.col2 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-1807 SELECT - + col0 * + col1 DIV + col1 + cor0.col0 * + col2 + + col0 FROM tab2 cor0 ---- 189 2028 3002 skipif mysql # not compatible query I rowsort label-1807 SELECT - + col0 * + col1 / + col1 + cor0.col0 * + col2 + + col0 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT - col2 + col1 * + cor0.col0 * - col2 + - col1 FROM tab1 AS cor0 ---- -36547 -4292 -99949 query I rowsort SELECT col2 - + col0 AS col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT ALL - cor0.col1 * col1 + col0 AS col2 FROM tab1 AS cor0 ---- -36 -673 -89 query I rowsort SELECT ALL + col0 * + col2 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-1812 SELECT - + ( col1 ) DIV - col0 + + cor0.col1 * col2 AS col2 FROM tab0 AS cor0 ---- 2841 7463 99 skipif mysql # not compatible query I rowsort label-1812 SELECT - + ( col1 ) / - col0 + + cor0.col1 * col2 AS col2 FROM tab0 AS cor0 ---- 2841 7463 99 query I rowsort SELECT DISTINCT - - col2 + - col2 * + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0 ---- 119904 32547 75870 query I rowsort SELECT ALL + col2 - + tab0.col0 FROM tab0 ---- -34 -7 9 query I rowsort SELECT DISTINCT ( 86 ) * col2 + - col2 * col1 FROM tab1 ---- 3240 4332 7008 query I rowsort SELECT ALL col2 * - col1 + col1 FROM tab1 ---- -1235 -1378 -560 query I rowsort SELECT ( + col1 ) + col2 * - col1 - col2 FROM tab0 ---- -1 -2785 -7453 query I rowsort SELECT col0 + + col1 * col0 AS col1 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT - ( - col0 ) * tab1.col2 * col1 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT - col0 - col2 * col2 * col1 AS col0 FROM tab1 AS cor0 ---- -119888 -32554 -75819 query I rowsort SELECT ALL col0 * - col0 + - col0 + - col2 FROM tab2 ---- -6188 -6358 -83 query I rowsort SELECT DISTINCT - tab0.col0 AS col2 FROM tab0, tab1 AS cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col0 + - col2 col0 FROM tab1 ---- -16 -51 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 8 col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ffc5b4c98b57ae546521175995c49c57 query I rowsort SELECT - 73 AS col2 FROM tab0 AS cor0 ---- -73 -73 -73 skipif mysql # not compatible query I rowsort SELECT ALL + + CAST ( 58 AS REAL ) * col0 AS col2 FROM tab0 cor0 ---- 1392 2030 5162 query I rowsort SELECT col2 * - ( col2 + col1 ) AS col2 FROM tab0 ---- -14186 -3927 -98 query I rowsort SELECT ( - col1 ) + - col0 + + col0 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT + 85 + + col0 * - col1 FROM tab0 ---- -1979 -3310 -8014 query I rowsort SELECT + col0 + + ( + col2 * col0 ) + + col1 * - tab0.col1 FROM tab0 ---- -6580 -894 -9339 query I rowsort SELECT - ( + col0 ) + tab0.col2 * col1 FROM tab0 ---- 2814 62 7373 query I rowsort SELECT ( + col1 * - tab0.col0 ) FROM tab0 ---- -2064 -3395 -8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1833 SELECT ALL - - CAST( cor0.col0 AS SIGNED ) - col0 col0 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1833 SELECT ALL - - CAST ( cor0.col0 AS INTEGER ) - col0 col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 85 - 58 * - col1 FROM tab0 AS cor0 ---- 5073 5363 5711 query I rowsort SELECT - + 35 * + col0 AS col2 FROM tab1 AS cor0 ---- -105 -2240 -2800 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 22 - col1 * col1 col0 FROM tab2 AS cor0 ---- -267 -3459 -939 query I rowsort SELECT ALL col0 + - tab2.col2 AS col0 FROM tab2 ---- -20 41 52 query I rowsort SELECT DISTINCT - - 55 + col1 AS col0 FROM tab2 AS cor0 ---- 114 72 86 query I rowsort SELECT col1 AS col1 FROM tab1 WHERE ( NULL ) = NULL ---- query III rowsort SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col0 + + col2 + col0 * col1 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-1841 SELECT ALL - + col1 * col2 DIV - col0 FROM tab1 AS cor0 ---- 15 468 8 skipif mysql # not compatible query I rowsort label-1841 SELECT ALL - + col1 * col2 / - col0 FROM tab1 AS cor0 ---- 15 468 8 query III rowsort SELECT * FROM tab2 WHERE NOT ( - col0 ) = ( NULL ) ---- query I rowsort SELECT - col1 * - col1 - col1 AS col0 FROM tab1 AS cor0 ---- 156 650 90 onlyif mysql # use DIV operator for integer division query I rowsort label-1844 SELECT col2 - col2 DIV + cor0.col0 FROM tab2 AS cor0 ---- 24 26 38 skipif mysql # not compatible query I rowsort label-1844 SELECT col2 - col2 / + cor0.col0 FROM tab2 AS cor0 ---- 24 26 38 query I rowsort SELECT DISTINCT col0 - - tab1.col0 AS col1 FROM tab1 ---- 128 160 6 query IIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-1847 SELECT col1 DIV - cor0.col0 FROM tab1 AS cor0 ---- -8 0 0 skipif mysql # not compatible query I rowsort label-1847 SELECT col1 / - cor0.col0 FROM tab1 AS cor0 ---- -8 0 0 query I rowsort SELECT - - col0 * + col2 * - col2 AS col1 FROM tab1 AS cor0 ---- -207936 -737280 -8748 query I rowsort SELECT ALL - + cor0.col2 * + cor0.col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col2 * - col1 * - cor0.col0 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT - - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT ALL - col2 * + tab2.col2 AS col1 FROM tab2 ---- -1444 -676 -729 query I rowsort SELECT + col1 + col0 * - col0 FROM tab2 cor0 ---- -18 -6025 -6224 query I rowsort SELECT ALL - col2 * tab2.col1 AS col0 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT col2 + + col2 * - 92 AS col1 FROM tab1 ---- -4914 -5187 -8736 query I rowsort SELECT DISTINCT + tab0.col2 * 54 + col0 + + col0 AS col1 FROM tab0 ---- 124 1830 4606 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col2 col0 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT + 46 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 31818c9d4d325eb248735c97cb1dce39 query I rowsort SELECT col1 * - 66 AS col1 FROM tab0 ---- -5676 -6006 -6402 query I rowsort SELECT DISTINCT + col1 * + 67 FROM tab2 ---- 1139 2077 3953 query I rowsort SELECT + cor0.col2 + 59 AS col2 FROM tab0 cor0 ---- 141 60 92 query I rowsort SELECT ALL 81 * cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to f35183e92b95d83214fa5d40535efddb query I rowsort SELECT + ( col1 ) * + col1 + - 7 + col0 FROM tab0 AS cor0 ---- 7413 8363 9437 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1864 SELECT ALL CAST( NULL AS SIGNED ) + col2 col0 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1864 SELECT ALL CAST ( NULL AS INTEGER ) + col2 col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT + 24 * 23 FROM tab1 AS cor0 ---- 552 552 552 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab2, tab2 AS cor0, tab0 AS cor1 ---- 972 values hashing to deaaa983f771be544ffdc26f04a18657 query I rowsort SELECT + col0 * 85 AS col1 FROM tab0 ---- 2040 2975 7565 query I rowsort SELECT + col1 * col0 * + tab1.col1 AS col0 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT ALL + - 86 * col2 FROM tab1 AS cor0 ---- -4644 -4902 -8256 query I rowsort SELECT DISTINCT - col1 * 56 FROM tab2 AS cor0 ---- -1736 -3304 -952 query I rowsort SELECT 57 + cor0.col2 FROM tab0 AS cor0 ---- 139 58 90 query I rowsort SELECT ALL - 82 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to f800b0aad28b82b2deb67f7045c9a45c onlyif mysql # use DIV operator for integer division query I rowsort label-1873 SELECT - + col0 DIV col0 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1873 SELECT - + col0 / col0 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + col1 + + col0 ) col0 FROM tab0 ---- 110 132 180 query I rowsort SELECT - 80 FROM tab1 cor0 ---- -80 -80 -80 query I rowsort SELECT 16 AS col2 FROM tab0, tab1 cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + col2 * 52 col1 FROM tab1 AS cor0 ---- 2782 2954 4979 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 99 * col0 col2 FROM tab0 ---- -2376 -3465 -8811 query I rowsort SELECT DISTINCT col0 + ( - col1 ) AS col0 FROM tab2 cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + + 12 + col2 col2 FROM tab2 AS cor0 ---- 12 12 12 query I rowsort SELECT + col0 - + col1 * - col2 AS col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL - col1 * cor0.col2 * - cor0.col1 + col1 FROM tab0 AS cor0 ---- 244154 679133 9506 onlyif mysql # use DIV operator for integer division query I rowsort label-1883 SELECT DISTINCT - cor0.col2 - - col1 DIV + cor0.col1 AS col0 FROM tab1 cor0 ---- -53 -56 -95 skipif mysql # not compatible query I rowsort label-1883 SELECT DISTINCT - cor0.col2 - - col1 / + cor0.col1 AS col0 FROM tab1 cor0 ---- -53 -56 -95 query I rowsort SELECT ALL + - col2 * + ( + 10 ) AS col0 FROM tab2 AS cor0 ---- -260 -270 -380 query I rowsort SELECT - col1 * ( col0 ) + - col0 FROM tab0 cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-1886 SELECT col2 - col1 DIV + col2 FROM tab0 AS cor0 ---- -96 31 81 skipif mysql # not compatible query I rowsort label-1886 SELECT col2 - col1 / + col2 FROM tab0 AS cor0 ---- -96 31 81 query I rowsort SELECT DISTINCT - col1 + col0 AS col1 FROM tab0 AS cor0 ---- -2 -62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1888 SELECT ALL - - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1888 SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - col0 * 37 - ( + col0 ) FROM tab2 AS cor0 ---- -266 -2964 -3002 query I rowsort SELECT ALL col1 + 67 * + col2 FROM tab0 AS cor0 ---- 164 2297 5585 query I rowsort SELECT + + col1 - - col2 FROM tab2 cor0 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-1892 SELECT DISTINCT - col2 DIV cor0.col1 + + col2 * + col0 + + col1 FROM tab0 AS cor0 ---- 132 7389 878 skipif mysql # not compatible query I rowsort label-1892 SELECT DISTINCT - col2 / cor0.col1 + + col2 * + col0 + + col1 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT ALL - ( - tab2.col1 + col0 ) FROM tab2 ---- -19 -62 24 query IIIIIIIIIIII rowsort SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2 ---- 972 values hashing to ea0f747588ddf5869ee18a5e22d9f237 query I rowsort SELECT tab1.col2 * + col0 * col1 AS col0 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT ALL - col0 * - col1 * + col0 - - col0 FROM tab0 ---- 118860 49560 720900 query I rowsort SELECT + 54 * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to e516ff5a48a407d29d23f5719c7996db query I rowsort SELECT ALL - col1 + + 35 * - col2 FROM tab2 ---- -1347 -969 -976 query I rowsort SELECT ALL - col0 + col1 + col0 AS col0 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT ALL + - col2 - - col0 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT DISTINCT - + col1 + cor0.col2 * + col0 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT DISTINCT 10 * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 240 350 890 query I rowsort SELECT ALL + 53 + tab0.col1 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 8ebf8a463ed6934c4a1fbd29e1cc9e19 query I rowsort SELECT - 31 * - col1 + cor0.col2 * + cor0.col2 + + 35 AS col2 FROM tab2 AS cor0 ---- 1725 2006 2540 query I rowsort SELECT 96 + + col0 FROM tab2 ---- 103 174 175 query I rowsort SELECT ( - col0 * col1 ) + col0 AS col2 FROM tab1 ---- -576 -75 -960 query I rowsort SELECT + 82 + - col2 AS col1 FROM tab2 cor0 ---- 44 55 56 query I rowsort SELECT - 72 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- -1728 -2520 -6408 query I rowsort SELECT col2 * + col2 * col1 - - col0 FROM tab1 ---- 119888 32554 75819 query I rowsort SELECT + 98 - - col0 * col2 FROM tab1 ---- 260 3746 7778 query I rowsort SELECT ALL + + 21 + - col1 * col2 AS col2 FROM tab2 AS cor0 ---- -1513 -625 -816 query I rowsort SELECT col1 * cor0.col2 * col1 FROM tab2 cor0 ---- 10982 25947 90506 query I rowsort SELECT DISTINCT - cor0.col2 + + cor0.col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT ALL + - 84 * col1 FROM tab1 AS cor0 ---- -1092 -2184 -840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + 12 ) + col1 col0 FROM tab0 AS cor0 ---- 74 79 85 query I rowsort SELECT ALL - col1 * col0 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT + 7 * - col1 AS col1 FROM tab0 AS cor0 ---- -602 -637 -679 query I rowsort SELECT + 12 AS col1 FROM tab1 AS cor0 ---- 12 12 12 onlyif mysql # use DIV operator for integer division query I rowsort label-1920 SELECT DISTINCT - - col2 * - 60 + - cor0.col0 DIV + col1 col1 FROM tab0 cor0 ---- -1980 -4920 -60 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1920 SELECT DISTINCT - - col2 * - 60 + - cor0.col0 / + col1 col1 FROM tab0 cor0 ---- -1980 -4920 -60 query I rowsort SELECT DISTINCT col0 * - 41 + col0 * - col1 AS col1 FROM tab1 AS cor0 ---- -201 -3264 -4320 query I rowsort SELECT DISTINCT + 90 + ( col0 ) + 11 AS col1 FROM tab1 AS cor0 ---- 104 165 181 query I rowsort SELECT 34 AS col2 FROM tab0 AS cor0 ---- 34 34 34 query I rowsort SELECT + 80 + - cor0.col0 FROM tab1 cor0 ---- 0 16 77 onlyif mysql # use DIV operator for integer division query I rowsort label-1925 SELECT ALL - - 13 DIV 8 + col2 FROM tab1 cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-1925 SELECT ALL - - 13 / 8 + col2 FROM tab1 cor0 ---- 55 58 97 onlyif mysql # use DIV operator for integer division query I rowsort label-1926 SELECT - col1 DIV + cor0.col0 FROM tab1 AS cor0 ---- -8 0 0 skipif mysql # not compatible query I rowsort label-1926 SELECT - col1 / + cor0.col0 FROM tab1 AS cor0 ---- -8 0 0 query I rowsort SELECT ALL ( + 78 ) * col2 AS col2 FROM tab0 AS cor0 ---- 2574 6396 78 query I rowsort SELECT ( col2 ) + - col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT DISTINCT + col0 + + cor0.col2 + - col0 * col0 * col2 FROM tab0 cor0 ---- -1189 -18951 -649351 query I rowsort SELECT ALL + + cor0.col1 + - col0 AS col1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT + + 68 AS col1 FROM tab1 AS cor0 ---- 68 query I rowsort SELECT 22 - cor1.col2 FROM tab1, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to da36800a23621460a8f1fc0b62de0338 query I rowsort SELECT ALL + col0 * + col2 + - col1 + - 84 * 14 FROM tab0 ---- -1238 -470 6031 query I rowsort SELECT DISTINCT col1 * + col0 + - 55 AS col0 FROM tab1 cor0 ---- 23 585 985 query I rowsort SELECT ALL - col2 + 73 FROM tab0 AS cor0 ---- -9 40 72 query I rowsort SELECT - + col1 + 52 * col1 FROM tab2 AS cor0 ---- 1581 3009 867 query I rowsort SELECT ALL + col0 + 28 * cor0.col0 FROM tab1 AS cor0 ---- 1856 2320 87 query I rowsort SELECT DISTINCT - cor0.col2 * + 91 * + col0 + - col1 FROM tab0 cor0 ---- -3282 -664209 -72158 query I rowsort SELECT + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL col1 + + col2 + + col2 FROM tab0 AS cor0 ---- 152 255 99 onlyif mysql # use DIV operator for integer division query I rowsort label-1941 SELECT + + col2 DIV + col0 FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-1941 SELECT + + col2 / + col0 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT ALL + col1 * - ( col2 ) AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1943 SELECT ALL + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1943 SELECT ALL + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + cor0.col2 * + col0 + - col1 * cor0.col0 FROM tab0 AS cor0 ---- -15397 -2856 -3430 query I rowsort SELECT - col0 - - col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT - - col1 + col1 * 73 * col0 FROM tab0 cor0 ---- 150758 247932 591318 query I rowsort SELECT ALL - 17 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4 query I rowsort SELECT - tab0.col0 + + col1 AS col0 FROM tab0 ---- 2 62 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1949 SELECT CAST( - 97 AS SIGNED ) + - cor0.col1 * + 43 AS col0 FROM tab2 AS cor0 ---- -1430 -2634 -828 skipif mysql # not compatible query I rowsort label-1949 SELECT CAST ( - 97 AS INTEGER ) + - cor0.col1 * + 43 AS col0 FROM tab2 AS cor0 ---- -1430 -2634 -828 onlyif mysql # use DIV operator for integer division query I rowsort label-1950 SELECT - col0 + col2 DIV col0 col1 FROM tab1 ---- -64 -79 15 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1950 SELECT - col0 + col2 / col0 col1 FROM tab1 ---- -64 -79 15 query I rowsort SELECT cor0.col2 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- 327 3507 988 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1952 SELECT cor1.col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2, tab2 cor2 ---- 243 values hashing to 76933ee8cce600e48802fbdea2376d45 skipif mysql # not compatible query I rowsort label-1952 SELECT cor1.col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2, tab2 cor2 ---- 243 values hashing to 76933ee8cce600e48802fbdea2376d45 query I rowsort SELECT DISTINCT 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 query I rowsort SELECT tab2.col0 * + tab2.col0 + col1 * + tab2.col0 AS col1 FROM tab2 ---- 10686 266 7584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 90 + 13 col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to a4b782d7c3e9c22c8343c69c156c0bdd query I rowsort SELECT ALL + 43 AS col1 FROM tab0 ---- 43 43 43 query I rowsort SELECT ALL - + 22 + 46 * col1 AS col0 FROM tab2 AS cor0 ---- 1404 2692 760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 11 col0 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 69116737f3f57e2e3273f6dbb04d036c query I rowsort SELECT ALL - col2 + - tab2.col1 * - ( - 53 ) FROM tab2 ---- -1670 -3153 -939 query I rowsort SELECT ALL + 5 AS col1 FROM tab1 ---- 5 5 5 query I rowsort SELECT + ( + col1 ) + col2 AS col0 FROM tab1 ---- 109 67 80 query I rowsort SELECT ALL 84 + - col1 AS col1 FROM tab0 ---- -13 -2 -7 query I rowsort SELECT DISTINCT + col1 * tab1.col0 + col1 + - tab1.col0 FROM tab1 ---- 101 586 973 query I rowsort SELECT DISTINCT cor0.col1 FROM tab0, tab2 cor0, tab2 cor1 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-1965 SELECT DISTINCT 36 + + col2 DIV col2 AS col0 FROM tab1 ---- 37 skipif mysql # not compatible query I rowsort label-1965 SELECT DISTINCT 36 + + col2 / col2 AS col0 FROM tab1 ---- 37 query I rowsort SELECT col2 * + cor0.col1 - + col2 AS col2 FROM tab1 AS cor0 ---- 1152 1350 513 onlyif mysql # use DIV operator for integer division query I rowsort label-1967 SELECT DISTINCT - 64 DIV + col1 + 11 * - 26 AS col1 FROM tab0 cor0 ---- -286 skipif mysql # not compatible query I rowsort label-1967 SELECT DISTINCT - 64 / + col1 + 11 * - 26 AS col1 FROM tab0 cor0 ---- -286 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 92 col1 FROM tab2 ---- 92 92 92 query I rowsort SELECT ALL col0 + ( col2 ) + col2 FROM tab0 AS cor0 ---- 253 37 90 onlyif mysql # use DIV operator for integer division query I rowsort label-1970 SELECT DISTINCT col0 * + ( col0 ) - + col2 DIV - col1 AS col1 FROM tab1 cor0 ---- 11 4101 6407 skipif mysql # not compatible query I rowsort label-1970 SELECT DISTINCT col0 * + ( col0 ) - + col2 / - col1 AS col1 FROM tab1 cor0 ---- 11 4101 6407 query I rowsort SELECT - col2 + 99 FROM tab2 AS cor0 ---- 61 72 73 query I rowsort SELECT ALL cor0.col2 - col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 + + 40 * cor0.col2 FROM tab1 AS cor0 ---- 2134 2270 3827 query I rowsort SELECT DISTINCT - 92 FROM tab1, tab0 cor0, tab1 AS cor1 ---- -92 query I rowsort SELECT - cor0.col2 * + 84 + col2 AS col1 FROM tab2 AS cor0 ---- -2158 -2241 -3154 query I rowsort SELECT col1 * - 59 * col2 + col1 * col0 * + col2 AS col0 FROM tab1 AS cor0 ---- -78624 26208 2850 query I rowsort SELECT cor0.col1 * 82 FROM tab1 AS cor0 ---- 1066 2132 820 query I rowsort SELECT 48 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 0ef571a8722ab7270aa7272c1174b88e query I rowsort SELECT + col0 + - ( - col1 ) - col1 * col2 FROM tab0 ---- -2728 -7282 35 query I rowsort SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1 ---- -3 -64 -80 query IIIIIIIII rowsort SELECT ALL * FROM tab1, tab2 cor0 CROSS JOIN tab0 AS cor1 ---- 243 values hashing to 566180e0144350a78b0ef3318e8f4c00 query I rowsort SELECT + 18 * ( + col2 ) * col2 FROM tab2 ---- 12168 13122 25992 query I rowsort SELECT DISTINCT + 99 * col0 * - col2 - col2 AS col0 FROM tab1 ---- -16092 -361209 -760416 query I rowsort SELECT DISTINCT 36 + col0 FROM tab1 ---- 100 116 39 query I rowsort SELECT ALL - 71 + + col0 FROM tab1 ---- -68 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-1986 SELECT + col2 DIV col2 - - col1 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-1986 SELECT + col2 / col2 - - col1 FROM tab0 ---- 87 92 98 onlyif mysql # use DIV operator for integer division query I rowsort label-1987 SELECT col1 - col1 DIV col2 AS col2 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-1987 SELECT col1 - col1 / col2 AS col2 FROM tab1 ---- 10 13 26 query I rowsort SELECT - ( tab0.col1 ) + + tab0.col2 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT col0 * + col2 * col2 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT - 39 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to a08a82dc9276c0173448e9a1c89dba93 query I rowsort SELECT - col2 + - col2 * col2 AS col2 FROM tab0 ---- -1122 -2 -6806 query I rowsort SELECT ALL + col1 + col2 + + ( - col1 ) * col2 FROM tab0 AS cor0 ---- -2719 -7289 1 query I rowsort SELECT + 26 - col0 FROM tab0 AS cor0 ---- -63 -9 2 query I rowsort SELECT DISTINCT col0 * + col1 * col2 AS col0 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT + 3 FROM tab1, tab0, tab0 AS cor0, tab2 ---- 81 values hashing to c7bd37716aa9c76e684a54f53d1ee343 query I rowsort SELECT + 10 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1997 SELECT CAST( 79 AS SIGNED ) AS col2 FROM tab2, tab1 cor0 ---- 9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f skipif mysql # not compatible query I rowsort label-1997 SELECT CAST ( 79 AS INTEGER ) AS col2 FROM tab2, tab1 cor0 ---- 9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f query I rowsort SELECT ALL col0 + tab0.col2 - + col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT - cor0.col0 + col1 * - col1 FROM tab1 cor0 ---- -164 -249 -679 onlyif mysql # use DIV operator for integer division query I rowsort label-2000 SELECT ALL 61 DIV + col1 - col2 FROM tab1 AS cor0 ---- -51 -52 -92 skipif mysql # not compatible query I rowsort label-2000 SELECT ALL 61 / + col1 - col2 FROM tab1 AS cor0 ---- -51 -52 -92 query I rowsort SELECT ALL - + 22 + - col2 FROM tab2 AS cor0 ---- -48 -49 -60 query I rowsort SELECT DISTINCT + ( cor0.col2 ) AS col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT 88 + - col2 * col0 FROM tab0 AS cor0 ---- -704 -7210 53 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2004 SELECT + CAST( 14 AS SIGNED ) + - col0 * - col1 * ( col1 ) FROM tab1 cor0 ---- 13534 2042 6414 skipif mysql # not compatible query I rowsort label-2004 SELECT + CAST ( 14 AS INTEGER ) + - col0 * - col1 * ( col1 ) FROM tab1 cor0 ---- 13534 2042 6414 query I rowsort SELECT - tab0.col1 FROM tab0, tab1 cor0 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f onlyif mysql # use DIV operator for integer division query I rowsort label-2006 SELECT ALL + col1 DIV tab2.col0 FROM tab2 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-2006 SELECT ALL + col1 / tab2.col0 FROM tab2 ---- 0 0 4 query I rowsort SELECT ALL + ( - 14 ) + col2 FROM tab1 AS cor0 ---- 40 43 82 onlyif mysql # use DIV operator for integer division query I rowsort label-2008 SELECT ALL - - col2 + + col1 DIV col1 FROM tab2 AS cor0 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-2008 SELECT ALL - - col2 + + col1 / col1 FROM tab2 AS cor0 ---- 27 28 39 query I rowsort SELECT DISTINCT - col2 * - col2 + - col2 AS col1 FROM tab2 AS cor0 ---- 1406 650 702 query I rowsort SELECT ALL - 21 + - col1 FROM tab1 AS cor0 ---- -31 -34 -47 query I rowsort SELECT ALL - - col1 * 89 * cor0.col0 FROM tab2 AS cor0 ---- 119527 19313 409578 query I rowsort SELECT DISTINCT 35 AS col0 FROM tab2 cor0 ---- 35 query I rowsort SELECT - 36 AS col0 FROM tab2 AS cor0 ---- -36 -36 -36 onlyif mysql # use DIV operator for integer division query I rowsort label-2014 SELECT DISTINCT - - col1 DIV + 37 AS col1 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-2014 SELECT DISTINCT - - col1 / + 37 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + 16 + - col1 * col2 AS col0 FROM tab1 AS cor0 ---- -1232 -1388 -554 query I rowsort SELECT ALL + col1 + cor0.col0 * 19 * 44 FROM tab0 AS cor0 ---- 20150 29357 74495 query I rowsort SELECT - - 4 FROM tab2 cor0 ---- 4 4 4 query I rowsort SELECT 78 + + col2 AS col2 FROM tab1 AS cor0 ---- 132 135 174 query I rowsort SELECT ALL - + 29 AS col0 FROM tab0 AS cor0 ---- -29 -29 -29 query I rowsort SELECT - - col2 + - col1 - 22 FROM tab0 AS cor0 ---- -118 -31 -75 query I rowsort SELECT ALL 7 * - cor0.col1 * - col0 AS col1 FROM tab0 AS cor0 ---- 14448 23765 56693 query I rowsort SELECT 91 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT + 68 AS col1 FROM tab2, tab0, tab2 AS cor0, tab1 AS cor1 ---- 81 values hashing to 7ff6433dda3248dce73040b2c590f3da onlyif mysql # use DIV operator for integer division query I rowsort label-2024 SELECT ALL - ( + ( col2 ) ) DIV + 16 AS col1 FROM tab0 ---- -2 -5 0 skipif mysql # not compatible query I rowsort label-2024 SELECT ALL - ( + ( col2 ) ) / + 16 AS col1 FROM tab0 ---- -2 -5 0 query I rowsort SELECT DISTINCT 89 * - 87 FROM tab1 ---- -7743 query I rowsort SELECT ALL 12 FROM tab2 ---- 12 12 12 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2027 SELECT ALL col0 + CAST( 39 AS SIGNED ) FROM tab2 AS cor0 ---- 117 118 46 skipif mysql # not compatible query I rowsort label-2027 SELECT ALL col0 + CAST ( 39 AS INTEGER ) FROM tab2 AS cor0 ---- 117 118 46 query I rowsort SELECT DISTINCT - col2 + + ( - col1 ) FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT DISTINCT - col0 * - col1 + - ( col2 ) FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL - cor0.col2 + ( - col1 + col1 * + ( col0 ) ) AS col1 FROM tab2 AS cor0 ---- 1288 159 4517 query I rowsort SELECT col1 * + col2 + col1 AS col2 FROM tab1 AS cor0 ---- 1261 1430 580 onlyif mysql # use DIV operator for integer division query I rowsort label-2032 SELECT DISTINCT col2 DIV ( 80 ) col1 FROM tab1 AS cor0 ---- 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2032 SELECT DISTINCT col2 / ( 80 ) col1 FROM tab1 AS cor0 ---- 0 1 query I rowsort SELECT - cor0.col2 + ( - col0 * col2 ) FROM tab2 AS cor0 ---- -2054 -216 -3040 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2034 SELECT ALL - + col2 + + CAST( NULL AS DECIMAL ) / - col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2034 SELECT ALL - + col2 + + CAST ( NULL AS REAL ) / - col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col0 + 75 AS col2 FROM tab1 AS cor0 ---- 139 155 78 query I rowsort SELECT DISTINCT + col2 * + col1 + - 46 FROM tab0 AS cor0 ---- 2792 51 7416 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2037 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-2037 SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT col0 * cor0.col2 + col2 FROM tab2 AS cor0 ---- 2054 216 3040 skipif mysql # not compatible query I rowsort SELECT ALL col1 * CAST ( + col1 AS REAL ) + tab1.col0 * + tab1.col0 FROM tab1 ---- 4196 6569 685 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + col1 col1 FROM tab0 ---- 0 query I rowsort SELECT DISTINCT + 51 AS col1 FROM tab1 AS cor0 ---- 51 query I rowsort SELECT - + col0 * - ( - ( col0 ) ) AS col2 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col2 ) * - ( col0 * col1 ) + - col0 col0 FROM tab0 ---- 3360 664029 68088 query I rowsort SELECT + tab0.col1 + + col2 AS col0 FROM tab0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 92 col0 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to c64cb7a81da51f4be0b6906a223e8817 query I rowsort SELECT ALL + 75 * col2 FROM tab0 ---- 2475 6150 75 query I rowsort SELECT - 9 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5 query I rowsort SELECT DISTINCT + cor0.col2 * + cor0.col1 FROM tab2, tab1, tab2 cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2049 SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2049 SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + 92 FROM tab0, tab1 cor0 ---- 9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a query I rowsort SELECT + - col2 * - ( col1 ) AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT col0 * - 68 AS col2 FROM tab0 AS cor0 ---- -1632 -2380 -6052 query I rowsort SELECT DISTINCT col1 + cor0.col2 * 23 AS col2 FROM tab2 AS cor0 ---- 652 657 891 query I rowsort SELECT DISTINCT + + cor0.col2 * ( + 55 ) + + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 152 1901 4601 query I rowsort SELECT ALL col2 + + 28 * - col1 FROM tab0 AS cor0 ---- -2375 -2466 -2715 query I rowsort SELECT col0 * - 82 AS col0 FROM tab0 AS cor0 ---- -1968 -2870 -7298 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( 57 ) col2 FROM tab0 ---- -57 -57 -57 query I rowsort SELECT 4 AS col2 FROM tab2, tab1 cor0 ---- 9 values hashing to 6fec965b60b9885c4af73e85422cfd9b query I rowsort SELECT DISTINCT col1 * 73 FROM tab0 AS cor0 ---- 6278 6643 7081 query I rowsort SELECT + 92 * - col2 FROM tab2 AS cor0 ---- -2392 -2484 -3496 query I rowsort SELECT DISTINCT + + col1 + 7 AS col1 FROM tab2 cor0 ---- 24 38 66 query I rowsort SELECT ALL + 56 AS col1 FROM tab2 AS cor0 ---- 56 56 56 query I rowsort SELECT ALL 2 AS col0 FROM tab0 AS cor0 ---- 2 2 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 * col2 col0 FROM tab1 AS cor0 ---- 2916 3249 9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + cor0.col1 + + cor0.col1 col2 FROM tab0 AS cor0 ---- 258 273 291 onlyif mysql # use DIV operator for integer division query I rowsort label-2066 SELECT DISTINCT - col0 + col1 DIV cor0.col1 col0 FROM tab2 cor0 ---- -6 -77 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2066 SELECT DISTINCT - col0 + col1 / cor0.col1 col0 FROM tab2 cor0 ---- -6 -77 -78 query I rowsort SELECT col1 * 84 AS col0 FROM tab1 AS cor0 ---- 1092 2184 840 query I rowsort SELECT col0 * col1 * - col0 AS col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT ( 97 ) + + col1 FROM tab2 AS cor0 ---- 114 128 156 query I rowsort SELECT DISTINCT 97 AS col0 FROM tab1 AS cor0 ---- 97 query I rowsort SELECT ALL + + cor0.col2 + col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + + col1 * cor0.col0 * ( + col1 ) AS col2 FROM tab2 cor0 ---- 22831 271518 6727 query I rowsort SELECT - col0 * + col1 * 16 FROM tab2 AS cor0 ---- -21488 -3472 -73632 query I rowsort SELECT ALL 41 * + col1 AS col2 FROM tab2 AS cor0 ---- 1271 2419 697 query I rowsort SELECT + 26 * col0 AS col2 FROM tab2 AS cor0 ---- 182 2028 2054 query I rowsort SELECT ALL ( col2 * + col0 ) + col1 FROM tab0 ---- 132 7389 878 query I rowsort SELECT 38 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7 onlyif mysql # use DIV operator for integer division query I rowsort label-2078 SELECT - cor0.col2 + - col1 DIV + 97 + - cor0.col0 FROM tab1 AS cor0 ---- -121 -176 -57 skipif mysql # not compatible query I rowsort label-2078 SELECT - cor0.col2 + - col1 / + 97 + - cor0.col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT + cor0.col1 + col2 + col2 FROM tab2 cor0 ---- 111 85 93 query I rowsort SELECT - - 31 AS col1 FROM tab2 AS cor0 ---- 31 31 31 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 40 * - col1 col1 FROM tab1 cor0 ---- -1040 -400 -520 query I rowsort SELECT 41 + col0 * col2 + - col0 FROM tab1 AS cor0 ---- 200 3625 7641 query I rowsort SELECT - col1 + + cor0.col0 + col1 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2084 SELECT + ( col2 ) * CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-2084 SELECT + ( col2 ) * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT + col2 * col1 + + 21 + 85 AS col1 FROM tab1 cor0 ---- 1354 1510 676 query I rowsort SELECT col1 * 76 AS col1 FROM tab0 AS cor0 ---- 6536 6916 7372 query I rowsort SELECT DISTINCT 66 AS col1 FROM tab1 ---- 66 query I rowsort SELECT DISTINCT tab1.col1 AS col2 FROM tab1, tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT + col1 * col0 * 83 AS col0 FROM tab2 ---- 111469 18011 381966 query I rowsort SELECT DISTINCT - 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- -87 query I rowsort SELECT + tab2.col1 * - tab2.col2 AS col2 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT ALL + col2 * + col1 * - col2 AS col0 FROM tab0 ---- -611884 -93654 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2093 SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( tab0.col1 ) / ( tab0.col2 ) AS col1 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-2093 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( tab0.col1 ) / ( tab0.col2 ) AS col1 FROM tab0 ---- NULL query I rowsort SELECT DISTINCT + 14 AS col1 FROM tab1 ---- 14 query I rowsort SELECT DISTINCT - 17 * 64 FROM tab0, tab1, tab0 AS cor0 ---- -1088 query I rowsort SELECT - ( col1 * + col1 ) AS col2 FROM tab2 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 15 * - col1 col0 FROM tab1 ---- -150 -195 -390 query I rowsort SELECT DISTINCT + col1 * col1 * 22 + + col1 * cor0.col0 AS col0 FROM tab0 cor0 ---- 164776 190281 210393 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * + col0 + + 29 * col0 col2 FROM tab2 AS cor0 ---- 252 8346 8532 onlyif mysql # use DIV operator for integer division query I rowsort label-2100 SELECT ALL + cor0.col2 DIV - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-2100 SELECT ALL + cor0.col2 / - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -1 -18 0 query I rowsort SELECT ALL col2 + - ( + col2 ) * col1 - + col0 AS col0 FROM tab0 ---- -131 -2829 -7469 query I rowsort SELECT - col0 + 76 AS col0 FROM tab0 AS cor0 ---- -13 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-2103 SELECT + col1 DIV 49 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2103 SELECT + col1 / 49 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL - col1 - 2 AS col0 FROM tab1 ---- -12 -15 -28 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2105 SELECT DISTINCT + CAST( tab0.col1 AS SIGNED ) FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-2105 SELECT DISTINCT + CAST ( tab0.col1 AS INTEGER ) FROM tab0 ---- 86 91 97 query I rowsort SELECT ALL ( col2 * col2 ) AS col2 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT ALL col0 * + ( - col2 ) AS col2 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT - col2 * - cor0.col2 + - col2 + - 76 AS col1 FROM tab0 AS cor0 ---- -76 6566 980 query I rowsort SELECT DISTINCT 51 * + col1 AS col0 FROM tab2 AS cor0 ---- 1581 3009 867 query I rowsort SELECT - col2 * col1 * + 58 FROM tab2 AS cor0 ---- -37468 -48546 -88972 query I rowsort SELECT col2 + + col1 * + col2 * 52 FROM tab1 AS cor0 ---- 29697 64992 73062 query I rowsort SELECT ALL 96 * 56 FROM tab0 ---- 5376 5376 5376 query I rowsort SELECT DISTINCT 13 AS col0 FROM tab2, tab1 cor0 ---- 13 query I rowsort SELECT ( - 3 ) FROM tab2 ---- -3 -3 -3 query I rowsort SELECT cor0.col0 * col2 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT + col1 * col0 + + col2 * col0 AS col0 FROM tab0 AS cor0 ---- 15397 2856 3430 onlyif mysql # use DIV operator for integer division query I rowsort label-2117 SELECT DISTINCT + cor0.col1 DIV - col0 AS col2 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-2117 SELECT DISTINCT + cor0.col1 / - col0 AS col2 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT ALL col0 * + tab1.col2 + + tab1.col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT + col2 + + col2 * + ( + tab2.col2 ) AS col2 FROM tab2 ---- 1482 702 756 query I rowsort SELECT DISTINCT - col2 + - col2 * + ( col0 ) AS col2 FROM tab1 ---- -216 -3705 -7776 query I rowsort SELECT ALL + cor0.col2 + tab1.col1 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 4adc79da53b2973c695f7891ad1fab50 query I rowsort SELECT - tab2.col1 + - col2 * col0 FROM tab2 ---- -2087 -220 -3019 query I rowsort SELECT col2 * col1 + + 22 FROM tab1 ---- 1270 1426 592 query I rowsort SELECT + 83 - col2 FROM tab0 ---- 1 50 82 query I rowsort SELECT DISTINCT - col1 + - col2 FROM tab0 ---- -119 -173 -98 query I rowsort SELECT ALL + col1 * + cor0.col1 + + col1 AS col1 FROM tab0 AS cor0 ---- 7482 8372 9506 query I rowsort SELECT ALL + 83 FROM tab2 ---- 83 83 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 2 col0 FROM tab2 AS cor0 ---- -2 -2 -2 query I rowsort SELECT DISTINCT col0 + + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 14 156 158 onlyif mysql # use DIV operator for integer division query I rowsort label-2130 SELECT DISTINCT - col1 DIV CAST( - col2 AS SIGNED ) - - col0 FROM tab0 cor0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-2130 SELECT DISTINCT - col1 / CAST ( - col2 AS INTEGER ) - - col0 FROM tab0 cor0 ---- 132 26 90 query I rowsort SELECT 43 AS col1 FROM tab1, tab2 cor0 ---- 9 values hashing to 199105619049271147956de52e7f5ed4 onlyif mysql # use DIV operator for integer division query I rowsort label-2132 SELECT ALL - - col0 DIV - ( col1 ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2132 SELECT ALL - - col0 / - ( col1 ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * - 22 FROM tab2 AS cor0 ---- -1298 -374 -682 query I rowsort SELECT ALL + cor0.col2 * col0 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 * + col2 col1 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-2136 SELECT DISTINCT + col2 DIV + 25 FROM tab2 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-2136 SELECT DISTINCT + col2 / + 25 FROM tab2 AS cor0 ---- 1 query I rowsort SELECT + col2 * ( + col0 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT tab0.col1 FROM tab0, tab2 cor0 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT DISTINCT + 42 + col0 FROM tab0 ---- 131 66 77 query I rowsort SELECT + col2 * - col2 + - ( + tab2.col2 + + col0 * tab2.col2 ) AS col0 FROM tab2 ---- -2730 -4484 -945 query I rowsort SELECT ALL col1 * col0 - - 54 * cor0.col0 FROM tab2 AS cor0 ---- 5609 595 8814 onlyif mysql # use DIV operator for integer division query I rowsort label-2142 SELECT ALL + col2 DIV + 85 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2142 SELECT ALL + col2 / + 85 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + col1 * - col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + 80 * col1 + cor0.col1 FROM tab1 AS cor0 ---- 1053 2106 810 query I rowsort SELECT - ( + col1 ) * + col0 - + col0 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT 56 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 9c4523312174730bbc525b9977aa99fa query I rowsort SELECT ALL 51 + col2 AS col2 FROM tab2 ---- 77 78 89 query I rowsort SELECT ALL 32 * col1 * col1 + col2 FROM tab1 AS cor0 ---- 21686 3257 5504 query I rowsort SELECT - 89 AS col1 FROM tab1 AS cor0 ---- -89 -89 -89 query I rowsort SELECT ALL - ( 16 ) + - col1 AS col2 FROM tab0 cor0 ---- -102 -107 -113 query I rowsort SELECT ( 23 ) FROM tab0 AS cor0 ---- 23 23 23 query I rowsort SELECT DISTINCT + 64 AS col2 FROM tab1 AS cor0 ---- 64 query I rowsort SELECT ALL + 14 * - 72 FROM tab1 AS cor0 ---- -1008 -1008 -1008 query I rowsort SELECT + col0 - col2 * col1 AS col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT ALL - 18 + - ( cor0.col0 ) FROM tab0 AS cor0 ---- -107 -42 -53 query I rowsort SELECT DISTINCT - col2 + 43 FROM tab2 AS cor0 ---- 16 17 5 skipif mysql # not compatible query I rowsort SELECT DISTINCT + - ( - cor0.col2 ) * + col2 - CAST ( - 50 AS REAL ) AS col1 FROM tab1 AS cor0 ---- 2966 3299 9266 query I rowsort SELECT DISTINCT ( - col1 ) * + col2 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-2159 SELECT - col1 DIV + col1 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2159 SELECT - col1 / + col1 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + ( cor0.col1 ) + + col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT + + col1 * - col2 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + - col2 * + col0 + 7 + - col1 * cor0.col1 FROM tab2 AS cor0 ---- -1143 -3284 -5502 query I rowsort SELECT + 59 * - col1 AS col2 FROM tab1 AS cor0 ---- -1534 -590 -767 query I rowsort SELECT DISTINCT + col0 + + col2 * + col0 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT DISTINCT tab2.col0 * col2 + + col1 FROM tab2 ---- 2087 220 3019 query I rowsort SELECT 27 * 80 FROM tab1 AS cor0 ---- 2160 2160 2160 query I rowsort SELECT + col1 * ( - col2 ) * + tab1.col0 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT tab0.col1 * + ( tab0.col1 ) AS col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT ALL - col2 * 86 FROM tab0 ---- -2838 -7052 -86 query I rowsort SELECT ALL + tab0.col2 + - 17 * 83 AS col2 FROM tab0 ---- -1329 -1378 -1410 onlyif mysql # use DIV operator for integer division query I rowsort label-2171 SELECT + col1 * + col0 + + col0 DIV col2 AS col1 FROM tab0 ---- 2064 3430 8100 skipif mysql # not compatible query I rowsort label-2171 SELECT + col1 * + col0 + + col0 / col2 AS col1 FROM tab0 ---- 2064 3430 8100 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2172 SELECT CAST( NULL AS SIGNED ) * + col1 + - col1 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2172 SELECT CAST ( NULL AS INTEGER ) * + col1 + - col1 AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 81 FROM tab0 ---- -81 query I rowsort SELECT ( - 38 ) AS col0 FROM tab2 ---- -38 -38 -38 query I rowsort SELECT DISTINCT col1 + + 55 AS col0 FROM tab2 AS cor0 ---- 114 72 86 query I rowsort SELECT DISTINCT - + col2 + col0 + col1 FROM tab0 cor0 ---- 131 77 98 query I rowsort SELECT DISTINCT col2 * - col1 + + cor0.col1 * col1 AS col1 FROM tab2 AS cor0 ---- -357 124 1947 query I rowsort SELECT ALL ( col0 ) * col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL cor0.col0 - 83 AS col2 FROM tab1 AS cor0 ---- -19 -3 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-2180 SELECT DISTINCT + + col0 + 7 * - col1 * col0 + 69 DIV + col0 AS col0 FROM tab2 AS cor0 ---- -1503 -32136 -9322 skipif mysql # not compatible query I rowsort label-2180 SELECT DISTINCT + + col0 + 7 * - col1 * col0 + 69 / + col0 AS col0 FROM tab2 AS cor0 ---- -1503 -32136 -9322 query I rowsort SELECT + 77 + - col0 AS col1 FROM tab1 AS cor0 ---- -3 13 74 query I rowsort SELECT - - col1 + + cor0.col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - + col0 * + cor0.col1 * col0 + 78 AS col2 FROM tab1 AS cor0 ---- -156 -40882 -83122 query I rowsort SELECT ALL - 7 FROM tab1 AS cor0 ---- -7 -7 -7 query I rowsort SELECT DISTINCT + - 65 * - col1 AS col1 FROM tab0 AS cor0 ---- 5590 5915 6305 query I rowsort SELECT ALL - 50 * col2 FROM tab2 cor0 ---- -1300 -1350 -1900 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * 44 col1 FROM tab0 AS cor0 ---- -1056 -1540 -3916 query I rowsort SELECT DISTINCT - - col1 * col1 AS col0 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT DISTINCT - cor0.col0 AS col1 FROM tab1, tab0, tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL col1 * 13 AS col2 FROM tab2 ---- 221 403 767 query I rowsort SELECT + col1 * 65 + - cor0.col0 * + col0 FROM tab1 AS cor0 ---- -3446 -5555 1681 query I rowsort SELECT DISTINCT + + col2 * 5 AS col1 FROM tab2 AS cor0 ---- 130 135 190 query I rowsort SELECT ALL - col1 * 18 + 97 AS col0 FROM tab0 AS cor0 ---- -1451 -1541 -1649 query I rowsort SELECT ALL + col1 * + 79 AS col2 FROM tab1 AS cor0 ---- 1027 2054 790 query I rowsort SELECT ALL col0 * col0 * col2 AS col1 FROM tab1 ---- 233472 486 614400 onlyif mysql # use DIV operator for integer division query I rowsort label-2196 SELECT DISTINCT - tab1.col1 DIV + tab1.col0 FROM tab1 ---- -8 0 skipif mysql # not compatible query I rowsort label-2196 SELECT DISTINCT - tab1.col1 / + tab1.col0 FROM tab1 ---- -8 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2197 SELECT col2 DIV col0 FROM tab2 cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-2197 SELECT col2 / col0 FROM tab2 cor0 ---- 0 0 3 query I rowsort SELECT - col1 + col1 * cor0.col2 - col0 AS col2 FROM tab1 cor0 ---- 1155 1375 496 onlyif mysql # use DIV operator for integer division query I rowsort label-2199 SELECT - tab1.col1 DIV col0 AS col1 FROM tab1 ---- -8 0 0 skipif mysql # not compatible query I rowsort label-2199 SELECT - tab1.col1 / col0 AS col1 FROM tab1 ---- -8 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2200 SELECT + + col2 DIV col1 col2 FROM tab2 AS cor0 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2200 SELECT + + col2 / col1 col2 FROM tab2 AS cor0 ---- 0 0 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2201 SELECT + - col0 / CAST( NULL AS SIGNED ) - 32 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2201 SELECT + - col0 / CAST ( NULL AS INTEGER ) - 32 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ( - cor0.col2 ) + + col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT + cor0.col2 + col2 * - col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2204 SELECT - CAST( NULL AS SIGNED ) * cor0.col0 * col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2204 SELECT - CAST ( NULL AS INTEGER ) * cor0.col0 * col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2205 SELECT CAST( col0 AS SIGNED ) DIV - col1 FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-2205 SELECT CAST ( col0 AS INTEGER ) / - col1 FROM tab1 AS cor0 ---- -6 -6 0 query I rowsort SELECT 97 * cor0.col1 FROM tab0 cor0 ---- 8342 8827 9409 query I rowsort SELECT col1 * + 68 AS col1 FROM tab2 ---- 1156 2108 4012 query I rowsort SELECT - ( cor0.col0 + + 42 * cor0.col1 ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to f4dc2a78d872cab7dee49b0379a6e2a9 query I rowsort SELECT DISTINCT - col2 + col0 * + ( 48 ) FROM tab1 AS cor0 ---- 3015 3744 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * col2 + + 88 * 83 col1 FROM tab1 AS cor0 ---- 10220 10553 16520 query I rowsort SELECT - cor0.col1 * + col2 + col0 FROM tab2 cor0 ---- -1456 -567 -830 query I rowsort SELECT DISTINCT col2 * col1 + - tab0.col1 + col2 * - col1 * col2 FROM tab0 ---- -604513 -90902 -97 query I rowsort SELECT ALL ( col0 ) + ( 60 ) FROM tab1 ---- 124 140 63 query I rowsort SELECT + - col1 + - 72 AS col0 FROM tab2 AS cor0 ---- -103 -131 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-2215 SELECT + col1 DIV - 73 + - 15 FROM tab2 AS cor0 ---- -15 -15 -15 skipif mysql # not compatible query I rowsort label-2215 SELECT + col1 / - 73 + - 15 FROM tab2 AS cor0 ---- -15 -15 -15 query I rowsort SELECT DISTINCT - col0 * - col0 FROM tab0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-2217 SELECT ( + col0 ) + ( col1 ) * col0 DIV col1 FROM tab0 ---- 178 48 70 skipif mysql # not compatible query I rowsort label-2217 SELECT ( + col0 ) + ( col1 ) * col0 / col1 FROM tab0 ---- 178 48 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - 74 ) col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 5a477330c946251f814fbbfd08e77c28 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2219 SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-2219 SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2220 SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-2220 SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- NULL query I rowsort SELECT ALL - col1 * col2 * 44 FROM tab0 AS cor0 ---- -124872 -328328 -4268 query I rowsort SELECT 77 AS col1 FROM tab2 AS cor0 ---- 77 77 77 query I rowsort SELECT ALL - col1 + + col1 * cor0.col2 * ( col1 * col0 ) AS col1 FROM tab0 AS cor0 ---- 329218 5857546 60434647 query I rowsort SELECT col0 * + col1 + - col0 AS col2 FROM tab0 cor0 ---- 2040 3360 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-2225 SELECT ALL - + col0 DIV col1 col0 FROM tab2 AS cor0 ---- -1 -4 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2225 SELECT ALL - + col0 / col1 col0 FROM tab2 AS cor0 ---- -1 -4 0 query I rowsort SELECT DISTINCT + col2 + cor0.col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - - col2 * + col2 AS col1 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-2228 SELECT - + 31 + col0 DIV col1 + + 58 FROM tab1 AS cor0 ---- 27 33 33 skipif mysql # not compatible query I rowsort label-2228 SELECT - + 31 + col0 / col1 + + 58 FROM tab1 AS cor0 ---- 27 33 33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 50 * + col0 * - cor0.col1 col2 FROM tab0 AS cor0 ---- -103200 -169750 -404950 query I rowsort SELECT ALL cor0.col1 * - col1 * - col2 FROM tab1 cor0 ---- 16224 36504 5700 query I rowsort SELECT + col1 * 10 FROM tab1 cor0 ---- 100 130 260 query I rowsort SELECT DISTINCT + col1 - - col2 * 7 AS col1 FROM tab0 AS cor0 ---- 104 317 665 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2233 SELECT ALL col2 + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-2233 SELECT ALL col2 + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT + + cor0.col1 * ( + col0 ) FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2235 SELECT + + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2235 SELECT + + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col2 - col0 AS col1 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 3 64 80 query I rowsort SELECT - 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 520dc393896969e02a72ab6c5d92126b query I rowsort SELECT ( 71 ) FROM tab1 AS cor0 ---- 71 71 71 query I rowsort SELECT ALL ( - col2 ) * col0 + col1 FROM tab2 cor0 ---- -158 -1969 -2985 query I rowsort SELECT 93 FROM tab2, tab0 cor0 ---- 9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde query I rowsort SELECT ALL cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT + col1 + col0 + + col1 FROM tab0 AS cor0 ---- 196 229 271 query I rowsort SELECT DISTINCT + col2 + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- 1381 244 4628 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2245 SELECT DISTINCT + col1 + col1 * col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2245 SELECT DISTINCT + col1 + col1 * col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + 59 * col1 FROM tab2 AS cor0 ---- 1003 1829 3481 query I rowsort SELECT - cor0.col2 + + col0 + col1 AS col0 FROM tab2 AS cor0 ---- 11 111 58 query I rowsort SELECT ALL 8 + col0 FROM tab1 AS cor0 ---- 11 72 88 onlyif mysql # use DIV operator for integer division query I rowsort label-2249 SELECT cor0.col1 DIV + cor0.col2 col2 FROM tab0 AS cor0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2249 SELECT cor0.col1 / + cor0.col2 col2 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT + + col1 * col0 + ( + col0 ) + - col2 FROM tab1 AS cor0 ---- 1024 27 647 query I rowsort SELECT ALL + cor0.col0 * col1 * - col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 onlyif mysql # use DIV operator for integer division query I rowsort label-2252 SELECT DISTINCT 11 DIV col1 + ( col0 ) DIV + col0 + + 36 * col1 AS col1 FROM tab0 AS cor0 ---- 3097 3277 3493 skipif mysql # not compatible query I rowsort label-2252 SELECT DISTINCT 11 / col1 + ( col0 ) / + col0 + + 36 * col1 AS col1 FROM tab0 AS cor0 ---- 3097 3277 3493 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2253 SELECT - col2 / + col2 + - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2253 SELECT - col2 / + col2 + - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + 68 FROM tab2 cor0 ---- -68 query I rowsort SELECT ( + 85 ) * col2 - col2 FROM tab1 ---- 4536 4788 8064 query I rowsort SELECT ALL + 36 + 80 FROM tab0 ---- 116 116 116 query I rowsort SELECT - col1 * + ( col0 ) FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - ( - col1 ) + + tab1.col1 AS col0 FROM tab1 ---- 20 26 52 query I rowsort SELECT - 94 + 63 * col1 - - 26 FROM tab2 ---- 1003 1885 3649 query I rowsort SELECT DISTINCT - col2 + tab1.col0 + col2 * col0 AS col1 FROM tab1 ---- 111 3655 7664 query I rowsort SELECT DISTINCT - cor0.col1 + + col1 * 94 FROM tab2 AS cor0 ---- 1581 2883 5487 query I rowsort SELECT - col2 * - cor0.col1 + - 21 * 60 AS col0 FROM tab1 AS cor0 ---- -12 -690 144 onlyif mysql # use DIV operator for integer division query I rowsort label-2263 SELECT DISTINCT - 25 + + col2 + col2 DIV + col1 AS col1 FROM tab1 cor0 ---- 31 37 78 skipif mysql # not compatible query I rowsort label-2263 SELECT DISTINCT - 25 + + col2 + col2 / + col1 AS col1 FROM tab1 cor0 ---- 31 37 78 query I rowsort SELECT ALL + + cor0.col0 + - col2 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL cor0.col1 + col0 AS col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL - 90 + + cor0.col0 FROM tab1 AS cor0 ---- -10 -26 -87 query I rowsort SELECT ( col1 ) * col2 * + col0 FROM tab1 ---- 36480 4212 99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - tab1.col2 ) + tab1.col2 col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT ( + tab1.col0 * - tab1.col0 ) + col1 * - 28 FROM tab1 ---- -4376 -6764 -737 query I rowsort SELECT + cor0.col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT cor1.col1 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT 25 + + col1 * col1 AS col1 FROM tab1 ---- 125 194 701 onlyif mysql # use DIV operator for integer division query I rowsort label-2273 SELECT DISTINCT tab1.col0 + - col0 DIV col0 AS col1 FROM tab1 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-2273 SELECT DISTINCT tab1.col0 + - col0 / col0 AS col1 FROM tab1 ---- 2 63 79 query I rowsort SELECT - 27 AS col0 FROM tab0 cor0 ---- -27 -27 -27 query I rowsort SELECT ALL 62 * - col0 + - ( col0 ) * - col0 AS col0 FROM tab2 AS cor0 ---- -385 1248 1343 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 95 col2 FROM tab1 AS cor0 ---- 95 query I rowsort SELECT ALL + 81 + + col1 * - 44 AS col2 FROM tab0 AS cor0 ---- -3703 -3923 -4187 query I rowsort SELECT 58 * col1 + - col2 AS col0 FROM tab0 ---- 4955 5196 5625 query I rowsort SELECT DISTINCT + 38 * 53 * cor0.col1 FROM tab0 AS cor0 ---- 173204 183274 195358 query I rowsort SELECT col0 * col1 - - cor0.col1 AS col0 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT 85 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b query I rowsort SELECT - col2 * + 15 + col0 AS col0 FROM tab2 cor0 ---- -312 -398 -491 query I rowsort SELECT - cor0.col2 * col0 - + cor0.col2 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT DISTINCT - col1 * - col1 * + col1 AS col1 FROM tab1 AS cor0 ---- 1000 17576 2197 onlyif mysql # use DIV operator for integer division query I rowsort label-2285 SELECT DISTINCT - cor0.col2 DIV - col2 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-2285 SELECT DISTINCT - cor0.col2 / - col2 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT ALL + col1 * col2 * col2 + - ( 54 ) * col2 * col2 + - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -142966 -377869 -81674 onlyif mysql # use DIV operator for integer division query I rowsort label-2287 SELECT DISTINCT + col1 DIV + col0 + - col0 AS col2 FROM tab1 AS cor0 ---- -64 -80 5 skipif mysql # not compatible query I rowsort label-2287 SELECT DISTINCT + col1 / + col0 + - col0 AS col2 FROM tab1 AS cor0 ---- -64 -80 5 query I rowsort SELECT ALL + ( col0 * col1 ) + col1 AS col1 FROM tab0 ---- 2150 3492 8190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 30 * col2 col0 FROM tab1 AS cor0 ---- 1620 1710 2880 query I rowsort SELECT DISTINCT + ( + 31 ) * col0 + 48 * col0 * col0 AS col0 FROM tab1 AS cor0 ---- 198592 309680 525 query I rowsort SELECT + + cor0.col2 * col2 + col1 AS col1 FROM tab2 AS cor0 ---- 1461 735 760 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2292 SELECT DISTINCT + ( cor0.col2 ) * - col2 + 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-2292 SELECT DISTINCT + ( cor0.col2 ) * - col2 + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2293 SELECT + - CAST( col2 AS SIGNED ) + - cor0.col0 col0 FROM tab1 AS cor0 ---- -121 -176 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2293 SELECT + - CAST ( col2 AS INTEGER ) + - cor0.col0 col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT ALL - - ( 99 ) * cor0.col2 - 70 FROM tab0 AS cor0 ---- 29 3197 8048 query I rowsort SELECT ALL + 16 + + ( + cor0.col1 ) + col0 AS col1 FROM tab1 cor0 ---- 109 45 90 query I rowsort SELECT ALL - col1 - col1 AS col0 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT DISTINCT - 70 AS col2 FROM tab1 AS cor0 ---- -70 query I rowsort SELECT DISTINCT 54 * cor0.col0 + + col1 FROM tab0 AS cor0 ---- 1382 1987 4897 query I rowsort SELECT + - 86 + - col1 FROM tab1 AS cor0 ---- -112 -96 -99 query I rowsort SELECT ALL ( 94 ) FROM tab2 AS cor0 ---- 94 94 94 query I rowsort SELECT - + col2 - - ( col1 ) * cor0.col2 AS col1 FROM tab1 cor0 ---- 1152 1350 513 query I rowsort SELECT + 55 - + 79 FROM tab2 AS cor0 ---- -24 -24 -24 query I rowsort SELECT DISTINCT + + 20 + + col1 FROM tab1 AS cor0 ---- 30 33 46 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2304 SELECT ( 76 ) * col1 * CAST( col0 AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0 ---- 156778 257923 615433 skipif mysql # not compatible query I rowsort label-2304 SELECT ( 76 ) * col1 * CAST ( col0 AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0 ---- 156778 257923 615433 query I rowsort SELECT DISTINCT + col0 + col2 + col1 FROM tab0 AS cor0 ---- 133 143 262 query I rowsort SELECT ALL + - col2 + ( cor0.col2 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col1 + 16 AS col1 FROM tab1 AS cor0 ---- -10 3 6 query I rowsort SELECT - ( 61 ) AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 51f53697966a79d306a4570537cd91a1 query I rowsort SELECT - col0 + col1 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- 1264 210 4524 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2310 SELECT col2 + CAST( + col1 AS SIGNED ) + col2 FROM tab0 cor0 ---- 152 255 99 skipif mysql # not compatible query I rowsort label-2310 SELECT col2 + CAST ( + col1 AS INTEGER ) + col2 FROM tab0 cor0 ---- 152 255 99 query I rowsort SELECT + col0 * + col0 * - col0 FROM tab2 AS cor0 ---- -343 -474552 -493039 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 66 * + col0 col2 FROM tab0 AS cor0 ---- -1584 -2310 -5874 query I rowsort SELECT - ( - cor0.col0 ) * - col1 * cor0.col0 + cor0.col2 FROM tab2 AS cor0 ---- -106059 -1492 -358930 query I rowsort SELECT - 40 * col0 * col0 FROM tab0 AS cor0 ---- -23040 -316840 -49000 query I rowsort SELECT - 76 * col0 + cor0.col2 * col2 FROM tab0 AS cor0 ---- -2659 -40 -735 query I rowsort SELECT - col1 + + 37 AS col2 FROM tab0 ---- -49 -54 -60 query I rowsort SELECT + cor0.col0 * + 46 AS col2 FROM tab0 cor0 ---- 1104 1610 4094 query I rowsort SELECT + - col0 * + 86 * cor0.col2 AS col0 FROM tab1 AS cor0 ---- -13932 -313728 -660480 query I rowsort SELECT - - cor0.col1 * + 6 AS col0 FROM tab0 AS cor0 ---- 516 546 582 query I rowsort SELECT + col2 * + ( col2 ) FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT - 42 * col0 AS col0 FROM tab2 AS cor0 ---- -294 -3276 -3318 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 * - col2 col0 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT - 68 * - col0 + ( - col0 * col1 ) AS col1 FROM tab0 AS cor0 ---- -1015 -2047 -432 query I rowsort SELECT ALL - col2 * - col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT ALL 96 + col1 FROM tab2 AS cor0 ---- 113 127 155 query I rowsort SELECT ALL - 18 FROM tab2 AS cor0 ---- -18 -18 -18 query I rowsort SELECT ALL - + 80 * - col1 + - 53 FROM tab1 AS cor0 ---- 2027 747 987 query I rowsort SELECT DISTINCT + 90 + - col1 AS col2 FROM tab0 cor0 ---- -1 -7 4 query I rowsort SELECT DISTINCT + + cor0.col0 * col1 + + col2 AS col0 FROM tab1 AS cor0 ---- 1136 132 697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + - cor0.col1 * + ( + 99 ) * + col2 col0 FROM tab2 AS cor0 ---- -151807 -63937 -82832 query I rowsort SELECT DISTINCT cor0.col1 - - 74 * - col1 FROM tab2 AS cor0 ---- -1241 -2263 -4307 onlyif mysql # use DIV operator for integer division query I rowsort label-2332 SELECT ALL - + col0 + - col0 DIV - cor0.col2 FROM tab1 AS cor0 ---- -3 -63 -80 skipif mysql # not compatible query I rowsort label-2332 SELECT ALL - + col0 + - col0 / - cor0.col2 FROM tab1 AS cor0 ---- -3 -63 -80 query I rowsort SELECT - 59 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f query I rowsort SELECT + + 95 AS col1 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e query I rowsort SELECT col2 * + col1 * + col0 + - col2 + + 6 FROM tab1 ---- 36429 4164 99750 query IIIIIIIIIIII rowsort SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2 ---- 972 values hashing to ed80235f6457dada5cbb50ce9e2a8923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + cor0.col0 col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + col1 - col1 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT - col2 * + col1 + + cor0.col2 FROM tab1 cor0 ---- -1152 -1350 -513 onlyif mysql # use DIV operator for integer division query I rowsort label-2340 SELECT 42 DIV + tab1.col0 FROM tab1, tab0 cor0 ---- 9 values hashing to 8f17c7717daed768d3828a51d27471f0 skipif mysql # not compatible query I rowsort label-2340 SELECT 42 / + tab1.col0 FROM tab1, tab0 cor0 ---- 9 values hashing to 8f17c7717daed768d3828a51d27471f0 query I rowsort SELECT - + col0 * col1 + + cor0.col0 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT + col0 * + 75 AS col1 FROM tab0 AS cor0 ---- 1800 2625 6675 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 31 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - ( - col2 * - col0 ) + col2 * 73 * col0 col0 FROM tab2 AS cor0 ---- 19656 267696 270180 query I rowsort SELECT col2 + col0 * 4 AS col1 FROM tab0 cor0 ---- 129 141 438 query I rowsort SELECT 18 AS col2 FROM tab0 AS cor0 ---- 18 18 18 query I rowsort SELECT ( ( + col1 ) ) + + 2 AS col2 FROM tab1 ---- 12 15 28 query I rowsort SELECT - + 75 * 10 + col0 FROM tab2 AS cor0 ---- -671 -672 -743 query I rowsort SELECT DISTINCT + 36 * + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 3096 3276 3492 query I rowsort SELECT ALL - 80 * 68 + - cor0.col2 + col1 FROM tab0 AS cor0 ---- -5344 -5387 -5431 query I rowsort SELECT ALL col2 * col0 * - col0 + ( + col2 ) * col0 FROM tab2 cor0 ---- -1134 -156156 -234156 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col0 + - 58 col2 FROM tab2 AS cor0 ---- -136 -137 -65 onlyif mysql # use DIV operator for integer division query I rowsort label-2353 SELECT ALL + col2 + + cor0.col1 DIV - col0 FROM tab0 AS cor0 ---- -1 30 81 skipif mysql # not compatible query I rowsort label-2353 SELECT ALL + col2 + + cor0.col1 / - col0 FROM tab0 AS cor0 ---- -1 30 81 query I rowsort SELECT DISTINCT col2 - cor0.col1 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL + col1 - + col2 * + col0 AS col2 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT ALL + col0 + + col2 - + 84 FROM tab2 ---- -50 20 33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2357 SELECT + ( col2 ) + + CAST( 42 * - col0 AS SIGNED ) AS col0 FROM tab1 ---- -2631 -3264 -72 skipif mysql # not compatible query I rowsort label-2357 SELECT + ( col2 ) + + CAST ( 42 * - col0 AS INTEGER ) AS col0 FROM tab1 ---- -2631 -3264 -72 query I rowsort SELECT ALL tab0.col1 - + col1 * + col1 FROM tab0 ---- -7310 -8190 -9312 query I rowsort SELECT ALL + col0 + + col2 * - col0 * col2 AS col1 FROM tab0 AS cor0 ---- -26112 -598347 0 query I rowsort SELECT - 81 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81 onlyif mysql # use DIV operator for integer division query I rowsort label-2361 SELECT + col1 + col1 DIV + ( + col0 ) FROM tab0 AS cor0 ---- 89 92 99 skipif mysql # not compatible query I rowsort label-2361 SELECT + col1 + col1 / + ( + col0 ) FROM tab0 AS cor0 ---- 89 92 99 query I rowsort SELECT DISTINCT + col0 + - col0 * col1 + - col2 * + ( col0 ) FROM tab2 AS cor0 ---- -399 -4266 -6552 query I rowsort SELECT + col0 + ( + col0 ) - - col0 AS col2 FROM tab0 AS cor0 ---- 105 267 72 query I rowsort SELECT - cor0.col2 * + col2 + ( - col1 * - col2 ) AS col1 FROM tab0 AS cor0 ---- 1749 738 96 query I rowsort SELECT ALL col2 + ( col2 ) * + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT + + cor0.col2 * + 54 FROM tab2 AS cor0 ---- 1404 1458 2052 query I rowsort SELECT ALL - col1 + + col0 * 37 FROM tab0 AS cor0 ---- 1198 3202 802 query I rowsort SELECT - cor0.col0 * cor0.col1 + + ( col2 ) AS col1 FROM tab2 AS cor0 ---- -1305 -190 -4576 onlyif mysql # use DIV operator for integer division query I rowsort label-2369 SELECT + cor0.col2 DIV ( - 31 + col0 ) FROM tab2 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-2369 SELECT + cor0.col2 / ( - 31 + col0 ) FROM tab2 AS cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2370 SELECT + col2 DIV 7 AS col2 FROM tab2 AS cor0 ---- 3 3 5 skipif mysql # not compatible query I rowsort label-2370 SELECT + col2 / 7 AS col2 FROM tab2 AS cor0 ---- 3 3 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * + 15 col0 FROM tab0 AS cor0 ---- 1335 360 525 onlyif mysql # use DIV operator for integer division query I rowsort label-2372 SELECT ( - col2 ) DIV - tab0.col0 AS col2 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-2372 SELECT ( - col2 ) / - tab0.col0 AS col2 FROM tab0 ---- 0 0 1 query I rowsort SELECT DISTINCT + 49 * - col1 FROM tab1 ---- -1274 -490 -637 query I rowsort SELECT ALL - col2 - - col2 * cor0.col2 FROM tab0 AS cor0 ---- 0 1056 6642 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 * col2 + - cor0.col0 col1 FROM tab2 AS cor0 ---- 1365 598 722 query I rowsort SELECT DISTINCT - col1 + ( 86 ) FROM tab1 cor0 ---- 60 73 76 query I rowsort SELECT ALL col0 * + 85 FROM tab2 AS cor0 ---- 595 6630 6715 query I rowsort SELECT ALL + + col0 + - ( col0 + col0 ) * - col1 * col1 FROM tab1 AS cor0 ---- 12864 27120 4059 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * - col2 * + col0 col2 FROM tab0 AS cor0 ---- -3395 -664118 -68112 onlyif mysql # use DIV operator for integer division query I rowsort label-2380 SELECT - col2 + - col2 * col0 DIV col1 + 11 AS col2 FROM tab2 ---- -203 -22 -49 skipif mysql # not compatible query I rowsort label-2380 SELECT - col2 + - col2 * col0 / col1 + 11 AS col2 FROM tab2 ---- -203 -22 -49 query I rowsort SELECT DISTINCT - 25 + col2 FROM tab2 cor0 ---- 1 13 2 query I rowsort SELECT + 62 + col0 * col0 + ( col2 * + col2 ) FROM tab0 AS cor0 ---- 1288 14707 1727 query I rowsort SELECT ALL - 29 + col2 * cor0.col2 FROM tab2 AS cor0 ---- 1415 647 700 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2384 SELECT ( - 40 ) + col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2384 SELECT ( - 40 ) + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT col2 + + 81 FROM tab2 AS cor0 ---- 107 108 119 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2386 SELECT + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2386 SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2387 SELECT - col0 DIV tab2.col0 + 35 FROM tab2 ---- 34 34 34 skipif mysql # not compatible query I rowsort label-2387 SELECT - col0 / tab2.col0 + 35 FROM tab2 ---- 34 34 34 query I rowsort SELECT DISTINCT - 55 FROM tab1, tab1 cor0 ---- -55 query I rowsort SELECT - col2 * 11 AS col2 FROM tab2 ---- -286 -297 -418 query I rowsort SELECT DISTINCT - col0 + 30 FROM tab0 ---- -5 -59 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + 97 * + 11 col2 FROM tab1 ---- 1070 1131 1147 query I rowsort SELECT ALL - col2 + col0 + 15 * col0 FROM tab2 ---- 1222 1226 85 query I rowsort SELECT ALL col2 + - tab0.col2 * + tab0.col0 AS col0 FROM tab0 ---- -34 -7216 -759 query I rowsort SELECT ALL - col2 * + col2 AS col0 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT ( + col2 + - col0 ) FROM tab1 ---- -7 16 51 query I rowsort SELECT DISTINCT - col0 + col2 AS col0 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT + 53 * + cor0.col0 + - ( col2 ) FROM tab1 AS cor0 ---- 105 3335 4144 query I rowsort SELECT ALL + cor0.col2 - - cor0.col0 AS col2 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT 34 + - col2 FROM tab2 AS cor0 ---- -4 7 8 query I rowsort SELECT DISTINCT + + 66 + + col2 + - 47 AS col0 FROM tab0 AS cor0 ---- 101 20 52 query I rowsort SELECT + - col1 * - col2 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT ALL cor0.col2 * cor0.col2 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT + col0 * 46 FROM tab0 ---- 1104 1610 4094 query I rowsort SELECT DISTINCT - ( 15 ) AS col0 FROM tab0 ---- -15 query I rowsort SELECT 69 AS col2 FROM tab0 ---- 69 69 69 query I rowsort SELECT 81 - 36 FROM tab1 ---- 45 45 45 query I rowsort SELECT - ( col1 ) + col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT 22 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 query I rowsort SELECT DISTINCT - + col1 - col2 * 54 * col2 FROM tab0 AS cor0 ---- -151 -363187 -58892 query I rowsort SELECT DISTINCT 40 * + col0 + + 70 FROM tab1 AS cor0 ---- 190 2630 3270 query I rowsort SELECT - - 29 * col0 FROM tab1 AS cor0 ---- 1856 2320 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 + + cor0.col1 col2 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT - col1 * - col0 + 45 AS col1 FROM tab2 AS cor0 ---- 1388 262 4647 query I rowsort SELECT ALL + + cor0.col0 + col1 FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2415 SELECT CAST( col1 AS SIGNED ) AS col2 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-2415 SELECT CAST ( col1 AS INTEGER ) AS col2 FROM tab0 ---- 86 91 97 query I rowsort SELECT + ( + 85 ) + - col1 FROM tab0 ---- -1 -12 -6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2417 SELECT - CAST( - col2 AS SIGNED ) * col2 + ( col2 + col1 ) AS col0 FROM tab0 ---- 1208 6897 99 skipif mysql # not compatible query I rowsort label-2417 SELECT - CAST ( - col2 AS INTEGER ) * col2 + ( col2 + col1 ) AS col0 FROM tab0 ---- 1208 6897 99 onlyif mysql # use DIV operator for integer division query I rowsort label-2418 SELECT ( + col0 + - col1 ) * col2 DIV ( tab1.col0 * + 33 ) AS col1 FROM tab1 ---- -12 1 2 skipif mysql # not compatible query I rowsort label-2418 SELECT ( + col0 + - col1 ) * col2 / ( tab1.col0 * + 33 ) AS col1 FROM tab1 ---- -12 1 2 query I rowsort SELECT DISTINCT ( 91 ) + col2 + col2 * - col0 AS col2 FROM tab2 ---- -1911 -2873 -71 query I rowsort SELECT - + 57 + 59 * - col0 AS col1 FROM tab2 AS cor0 ---- -4659 -470 -4718 query I rowsort SELECT DISTINCT - ( + col1 ) + + col0 AS col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT + cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT ( cor0.col2 ) AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT ALL ( col2 ) * + col2 AS col0 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT ALL - cor1.col0 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT - 64 * + col1 * + col0 AS col1 FROM tab2 AS cor0 ---- -13888 -294528 -85952 query I rowsort SELECT + col2 * col0 * + col1 + 54 * col0 - - col2 * col2 FROM tab0 cor0 ---- 5286 675648 70497 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - col2 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - col1 + + col0 * + ( 28 ) FROM tab0 AS cor0 ---- 2401 586 883 query I rowsort SELECT - - col0 + + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ALL + - 34 * - cor0.col2 FROM tab0 AS cor0 ---- 1122 2788 34 query I rowsort SELECT - 77 * col0 AS col1 FROM tab0 cor0 ---- -1848 -2695 -6853 query I rowsort SELECT col1 * col2 + - 84 FROM tab1 AS cor0 ---- 1164 1320 486 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 74 - cor0.col1 * + col0 * - col0 col1 FROM tab0 AS cor0 ---- 118899 49610 720885 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2435 SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( - col0 ) + ( tab2.col2 ) FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-2435 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( - col0 ) + ( tab2.col2 ) FROM tab2 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2436 SELECT - + col2 DIV col1 + + 86 FROM tab2 AS cor0 ---- 84 86 86 skipif mysql # not compatible query I rowsort label-2436 SELECT - + col2 / col1 + + 86 FROM tab2 AS cor0 ---- 84 86 86 query I rowsort SELECT + cor0.col0 * + cor0.col0 - 4 FROM tab1 AS cor0 ---- 4092 5 6396 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2438 SELECT DISTINCT + col1 + CAST( col2 AS SIGNED ) * + col2 FROM tab0 AS cor0 ---- 1175 6815 98 skipif mysql # not compatible query I rowsort label-2438 SELECT DISTINCT + col1 + CAST ( col2 AS INTEGER ) * + col2 FROM tab0 AS cor0 ---- 1175 6815 98 onlyif mysql # use DIV operator for integer division query I rowsort label-2439 SELECT ALL - + col1 + col0 DIV - col2 AS col2 FROM tab1 AS cor0 ---- -11 -13 -26 skipif mysql # not compatible query I rowsort label-2439 SELECT ALL - + col1 + col0 / - col2 AS col2 FROM tab1 AS cor0 ---- -11 -13 -26 query I rowsort SELECT ALL + col0 * ( + ( col1 ) ) AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2441 SELECT + col1 * CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2441 SELECT + col1 * CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 + - 10 FROM tab2 AS cor0 ---- -3 68 69 query I rowsort SELECT tab2.col2 * - col2 AS col2 FROM tab2 ---- -1444 -676 -729 query I rowsort SELECT + tab2.col1 * - col1 - col0 * + col0 FROM tab2 ---- -1010 -6530 -9565 query I rowsort SELECT + - col2 + 53 AS col0 FROM tab2 AS cor0 ---- 15 26 27 onlyif mysql # use DIV operator for integer division query I rowsort label-2446 SELECT ALL - + col2 + col1 DIV col1 AS col1 FROM tab2 AS cor0 ---- -25 -26 -37 skipif mysql # not compatible query I rowsort label-2446 SELECT ALL - + col2 + col1 / col1 AS col1 FROM tab2 AS cor0 ---- -25 -26 -37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * ( col2 ) + - col0 col1 FROM tab2 AS cor0 ---- 182 1950 2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * ( + col0 ) + - col0 col2 FROM tab0 ---- -2088 -3430 -8188 query I rowsort SELECT - 4 * + col0 AS col2 FROM tab0 AS cor0 ---- -140 -356 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2450 SELECT ALL col1 * CAST( + col2 AS SIGNED ) col0 FROM tab2 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2450 SELECT ALL col1 * CAST ( + col2 AS INTEGER ) col0 FROM tab2 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + cor0.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT - col0 * 0 AS col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2453 SELECT + col1 DIV + 27 FROM tab0 AS cor0 ---- 3 3 3 skipif mysql # not compatible query I rowsort label-2453 SELECT + col1 / + 27 FROM tab0 AS cor0 ---- 3 3 3 query I rowsort SELECT + ( + col2 ) + - col0 AS col0 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT + col2 * + ( - col0 ) AS col0 FROM tab0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-2456 SELECT + - 14 DIV 92 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2456 SELECT + - 14 / 92 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - - 6 FROM tab1 cor0 ---- 6 6 6 query I rowsort SELECT DISTINCT - 23 FROM tab2 AS cor0 ---- -23 query I rowsort SELECT - col0 + col1 * - ( + col2 ) FROM tab0 AS cor0 ---- -132 -2862 -7551 query I rowsort SELECT ALL + col1 + + col0 * col1 AS col2 FROM tab2 cor0 ---- 1360 248 4661 query I rowsort SELECT ALL 30 FROM tab0, tab2 AS cor0 ---- 9 values hashing to da5de0c411a2c0f445400f1b63ea9f89 query I rowsort SELECT 28 + + col2 AS col1 FROM tab0 ---- 110 29 61 query I rowsort SELECT + 37 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to c023509f63faa044d654943e6df55ca2 query I rowsort SELECT 19 * cor0.col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to cceada998ac7ee4ff73047acfc238017 query I rowsort SELECT DISTINCT cor0.col2 + + 40 FROM tab1, tab2 AS cor0 ---- 66 67 78 query I rowsort SELECT ALL cor0.col0 * 20 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 0e403c8194e0cdca8192284209548d36 query I rowsort SELECT DISTINCT + col2 * + col2 * + 24 FROM tab2 ---- 16224 17496 34656 onlyif mysql # use DIV operator for integer division query I rowsort label-2468 SELECT + 42 DIV 13 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba skipif mysql # not compatible query I rowsort label-2468 SELECT + 42 / 13 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba query I rowsort SELECT col1 * + 79 + + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1360 2275 3458 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 26 col2 FROM tab2 AS cor0 ---- -26 -26 -26 query I rowsort SELECT DISTINCT - + col2 * col2 + col0 FROM tab2 AS cor0 ---- -1365 -598 -722 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col1 * col2 + - ( - col1 + col1 ) col0 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT ALL + cor0.col2 - - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT - + ( - col0 ) + ( + 45 + + cor0.col0 ) FROM tab2 AS cor0 ---- 201 203 59 query I rowsort SELECT ALL - - 89 + col1 * col2 FROM tab2 AS cor0 ---- 1623 735 926 query I rowsort SELECT DISTINCT 87 * + col0 AS col2 FROM tab2 AS cor0 ---- 609 6786 6873 query I rowsort SELECT ALL + - 3 * col2 AS col0 FROM tab1 AS cor0 ---- -162 -171 -288 query I rowsort SELECT DISTINCT - + col2 * - col0 + cor0.col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT + col2 + + col1 * 72 FROM tab0 AS cor0 ---- 6225 6634 6985 query I rowsort SELECT - + col2 - col0 AS col1 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT ALL 54 FROM tab0 AS cor0 ---- 54 54 54 query I rowsort SELECT col0 + col0 AS col2 FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT + cor0.col0 + + col0 AS col1 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT DISTINCT + + 52 + - col2 AS col0 FROM tab0 cor0 ---- -30 19 51 query I rowsort SELECT ALL 27 + + col1 AS col1 FROM tab2 AS cor0 ---- 44 58 86 query I rowsort SELECT - 92 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -1 -6 5 query I rowsort SELECT ALL + col0 - ( col0 ) AS col0 FROM tab2 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2488 SELECT ALL - CAST( col2 AS SIGNED ) - - col0 FROM tab0 ---- -9 34 7 skipif mysql # not compatible query I rowsort label-2488 SELECT ALL - CAST ( col2 AS INTEGER ) - - col0 FROM tab0 ---- -9 34 7 query I rowsort SELECT + 5 AS col0 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 6797d40099023779b89feb627d94a3e7 onlyif mysql # use DIV operator for integer division query I rowsort label-2490 SELECT - col1 - - col2 DIV + ( - ( + col1 ) ) FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-2490 SELECT - col1 - - col2 / + ( - ( + col1 ) ) FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-2491 SELECT - col1 DIV 11 FROM tab2 ---- -1 -2 -5 skipif mysql # not compatible query I rowsort label-2491 SELECT - col1 / 11 FROM tab2 ---- -1 -2 -5 query I rowsort SELECT DISTINCT - 19 + col2 AS col1 FROM tab1 ---- 35 38 77 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2493 SELECT + ( tab2.col2 ) + + ( + ( + col2 ) ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2493 SELECT + ( tab2.col2 ) + + ( + ( + col2 ) ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col1 * + col2 + 41 + 62 AS col1 FROM tab1 ---- 1351 1507 673 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 - col0 col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col0 + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0 ---- -2919 -3313 -9296 query I rowsort SELECT DISTINCT 39 AS col2 FROM tab2 AS cor0 ---- 39 query I rowsort SELECT + col2 - col1 FROM tab2 cor0 ---- -33 -4 21 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2499 SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-2499 SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab2 cor2 ---- 3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf onlyif mysql # use DIV operator for integer division query I rowsort label-2501 SELECT DISTINCT - 27 DIV col0 - + col2 FROM tab0 AS cor0 ---- -1 -34 -82 skipif mysql # not compatible query I rowsort label-2501 SELECT DISTINCT - 27 / col0 - + col2 FROM tab0 AS cor0 ---- -1 -34 -82 query I rowsort SELECT + tab1.col1 - ( col0 + col2 ) FROM tab1 ---- -111 -163 -31 query I rowsort SELECT 1 + col0 FROM tab2 ---- 79 8 80 query I rowsort SELECT 29 FROM tab2 cor0 ---- 29 29 29 query I rowsort SELECT ALL - col1 + - ( col0 * col1 ) FROM tab1 cor0 ---- -104 -1053 -650 query I rowsort SELECT DISTINCT - cor2.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2 ---- -7 -78 -79 query I rowsort SELECT DISTINCT col2 * - col0 AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-2508 SELECT ALL - - 49 DIV col0 AS col1 FROM tab2 AS cor0 ---- 0 0 7 skipif mysql # not compatible query I rowsort label-2508 SELECT ALL - - 49 / col0 AS col1 FROM tab2 AS cor0 ---- 0 0 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + cor0.col1 * - cor0.col0 col2 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT ALL 2 * col2 AS col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT - 74 AS col2 FROM tab0 ---- -74 query I rowsort SELECT 26 FROM tab0, tab2 cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + col1 col2 FROM tab1 ---- 20 26 52 onlyif mysql # use DIV operator for integer division query I rowsort label-2514 SELECT DISTINCT col0 + - 15 DIV col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-2514 SELECT DISTINCT col0 + - 15 / col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ( - ( col1 ) ) * + 19 AS col0 FROM tab0 AS cor0 ---- -1634 -1729 -1843 query I rowsort SELECT ALL - 8 + col0 FROM tab1 AS cor0 ---- -5 56 72 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2517 SELECT - - CAST( NULL AS SIGNED ) + - col0 * - col0 * 95 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2517 SELECT - - CAST ( NULL AS INTEGER ) + - col0 * - col0 * 95 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 70 * + col1 FROM tab0 AS cor0 ---- 6020 6370 6790 query I rowsort SELECT DISTINCT + - col0 * + col2 + col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2520 SELECT DISTINCT col2 / - ( - col1 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2520 SELECT DISTINCT col2 / - ( - col1 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL + - ( - col1 ) * col0 - - 7 * col2 * + col0 FROM tab0 AS cor0 ---- 3640 59185 7608 query I rowsort SELECT - 67 FROM tab2 cor0 ---- -67 -67 -67 query I rowsort SELECT ALL 21 + - col2 * col0 + - 24 * - col2 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 10053 22293 33555 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2524 SELECT CAST( tab1.col1 AS SIGNED ) col2 FROM tab1 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2524 SELECT CAST ( tab1.col1 AS INTEGER ) col2 FROM tab1 ---- 10 13 26 query I rowsort SELECT + 7 AS col0 FROM tab2 cor0 ---- 7 7 7 query I rowsort SELECT col1 * + ( + tab1.col2 ) * - col1 AS col2 FROM tab1 ---- -16224 -36504 -5700 query I rowsort SELECT - col1 * - col1 * - col2 FROM tab0 cor0 ---- -244068 -679042 -9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2528 SELECT ALL + cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2528 SELECT ALL + cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2529 SELECT ALL - + col1 DIV 46 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2529 SELECT ALL - + col1 / 46 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + + col0 * - 68 + col1 AS col0 FROM tab0 AS cor0 ---- -1546 -2283 -5961 query I rowsort SELECT - col1 * - col1 + col1 * col0 * ( - col1 ) FROM tab0 cor0 ---- -170108 -319906 -728728 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - cor0.col2 col2 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 56 * cor0.col1 * - col2 col0 FROM tab0 AS cor0 ---- 158928 417872 5432 query I rowsort SELECT 87 * 15 AS col0 FROM tab0 AS cor0 ---- 1305 1305 1305 query I rowsort SELECT DISTINCT col0 + col1 * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -1168 -1401 -506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2536 SELECT DISTINCT CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2536 SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ( + col0 ) * cor0.col0 AS col1 FROM tab1 AS cor0 ---- 4096 6400 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2538 SELECT ALL - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-2538 SELECT ALL - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col0 * ( col2 * - 49 ) col1 FROM tab1 AS cor0 ---- -178752 -376320 -7938 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2540 SELECT CAST( + col1 AS SIGNED ) + + col0 * col1 AS col0 FROM tab0 AS cor0 ---- 2150 3492 8190 skipif mysql # not compatible query I rowsort label-2540 SELECT CAST ( + col1 AS INTEGER ) + + col0 * col1 AS col0 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT ALL - 80 + tab0.col2 * - 38 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 32211f9422c0bad08aaaed583ebd08c7 query I rowsort SELECT - col2 + 32 FROM tab1 ---- -22 -25 -64 query I rowsort SELECT col0 + col0 * + col1 * col2 AS col1 FROM tab2 ---- 119730 51113 5866 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2544 SELECT DISTINCT + col2 + CAST( 0 AS SIGNED ) * col0 AS col2 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-2544 SELECT DISTINCT + col2 + CAST ( 0 AS INTEGER ) * col0 AS col2 FROM tab2 ---- 26 27 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2545 SELECT + col2 + CAST( - 88 AS SIGNED ) FROM tab2 AS cor0 ---- -50 -61 -62 skipif mysql # not compatible query I rowsort label-2545 SELECT + col2 + CAST ( - 88 AS INTEGER ) FROM tab2 AS cor0 ---- -50 -61 -62 query I rowsort SELECT + + col2 * - 33 FROM tab1 AS cor0 ---- -1782 -1881 -3168 query I rowsort SELECT + cor1.col1 * cor0.col1 AS col1 FROM tab0, tab1 cor0, tab2 cor1 ---- 27 values hashing to 4307a5c67912e63c47b74283c0988b96 query I rowsort SELECT - 65 AS col1 FROM tab2 ---- -65 -65 -65 query I rowsort SELECT + 5 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 6035628694bdea36f584f3649088551d onlyif mysql # use DIV operator for integer division query I rowsort label-2550 SELECT - - col0 DIV ( col0 ) FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2550 SELECT - - col0 / ( col0 ) FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL tab1.col2 * - col1 AS col2 FROM tab1 ---- -1248 -1404 -570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2552 SELECT ALL + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2552 SELECT ALL + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - col2 + 81 AS col0 FROM tab2 ---- 43 54 55 query I rowsort SELECT tab2.col0 * 34 + + col2 AS col1 FROM tab2 ---- 265 2678 2724 query I rowsort SELECT ALL - 11 * ( col2 ) AS col2 FROM tab2 AS cor0 ---- -286 -297 -418 query I rowsort SELECT cor0.col2 * - col1 + - col2 FROM tab2 cor0 ---- -1560 -684 -864 query I rowsort SELECT ALL + 16 FROM tab1 ---- 16 16 16 query I rowsort SELECT ALL + - 2 + col2 * col1 AS col2 FROM tab1 AS cor0 ---- 1246 1402 568 query I rowsort SELECT cor0.col1 + + col1 AS col2 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT ALL - + col2 + - col1 + - 53 AS col0 FROM tab2 AS cor0 ---- -108 -111 -138 query I rowsort SELECT DISTINCT col1 - + col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT - - cor0.col1 * - col0 + col1 AS col1 FROM tab2 cor0 ---- -1326 -186 -4543 query I rowsort SELECT DISTINCT - ( - col2 * - tab1.col2 ) + col1 FROM tab1 ---- -2890 -3239 -9203 query I rowsort SELECT DISTINCT + tab1.col1 + col2 FROM tab1 ---- 109 67 80 query I rowsort SELECT cor0.col2 * - col1 + - 91 * - col1 AS col0 FROM tab1 cor0 ---- -65 340 962 query I rowsort SELECT col2 + - col1 AS col2 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT ALL - - 36 * cor0.col0 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 0f58541f7c4607959daa265dc3d7862b query I rowsort SELECT col2 * tab0.col0 AS col1 FROM tab0 ---- 35 7298 792 query I rowsort SELECT DISTINCT + col1 * + tab1.col1 + + col2 * + 93 * col0 FROM tab1 ---- 15742 339364 714409 query I rowsort SELECT - ( col1 ) + - cor0.col0 AS col2 FROM tab0 cor0 ---- -110 -132 -180 query I rowsort SELECT col2 * - cor0.col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-2572 SELECT ALL col0 DIV - 63 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-2572 SELECT ALL col0 / - 63 FROM tab1 AS cor0 ---- -1 -1 0 query I rowsort SELECT cor0.col2 + - 79 * col1 FROM tab2 AS cor0 ---- -1305 -2422 -4635 query I rowsort SELECT DISTINCT col0 + 96 FROM tab1 AS cor0 ---- 160 176 99 onlyif mysql # use DIV operator for integer division query I rowsort label-2575 SELECT col1 + + 42 * - col2 + - col2 DIV + col2 FROM tab1 AS cor0 ---- -2243 -2385 -4020 skipif mysql # not compatible query I rowsort label-2575 SELECT col1 + + 42 * - col2 + - col2 / + col2 FROM tab1 AS cor0 ---- -2243 -2385 -4020 query I rowsort SELECT ALL + - col0 * 53 AS col1 FROM tab0 cor0 ---- -1272 -1855 -4717 onlyif mysql # use DIV operator for integer division query I rowsort label-2577 SELECT DISTINCT col0 DIV + ( col1 ) AS col0 FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-2577 SELECT DISTINCT col0 / + ( col1 ) AS col0 FROM tab2 AS cor0 ---- 0 1 4 query I rowsort SELECT - col2 + - ( col2 ) * cor0.col0 AS col0 FROM tab1 AS cor0 ---- -216 -3705 -7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * - col2 col2 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT + col1 + cor0.col2 * + ( col1 ) FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT DISTINCT col2 + - cor0.col2 + 53 * - col2 AS col1 FROM tab2 AS cor0 ---- -1378 -1431 -2014 query I rowsort SELECT ALL - + col0 * col0 - + col1 AS col1 FROM tab0 AS cor0 ---- -1322 -662 -8012 query I rowsort SELECT ALL + - col2 * + ( col0 ) * - col1 + cor0.col2 * col1 AS col1 FROM tab1 AS cor0 ---- 101088 37050 5616 query I rowsort SELECT DISTINCT col0 * cor0.col1 + col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT - + col1 + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT 14 + + col0 FROM tab0 AS cor0 ---- 103 38 49 query I rowsort SELECT + col0 * ( + tab1.col0 * col0 ) - + col1 FROM tab1 ---- 1 262134 511987 onlyif mysql # use DIV operator for integer division query I rowsort label-2588 SELECT - col2 DIV 65 FROM tab2 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2588 SELECT - col2 / 65 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT - + cor0.col0 + - 34 * col0 FROM tab2 AS cor0 ---- -245 -2730 -2765 query I rowsort SELECT ALL 68 FROM tab0 cor0 ---- 68 68 68 query I rowsort SELECT col0 + - ( cor0.col1 ) AS col1 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT + - col2 + col1 * col1 FROM tab0 AS cor0 ---- 7363 8199 9408 onlyif mysql # use DIV operator for integer division query I rowsort label-2593 SELECT - col0 + col1 DIV cor0.col2 - col1 * - col0 AS col1 FROM tab0 AS cor0 ---- 2042 3457 8011 skipif mysql # not compatible query I rowsort label-2593 SELECT - col0 + col1 / cor0.col2 - col1 * - col0 AS col1 FROM tab0 AS cor0 ---- 2042 3457 8011 query I rowsort SELECT col1 + - col2 AS col1 FROM tab2 cor0 ---- -21 33 4 query I rowsort SELECT DISTINCT 96 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1 ---- 96 query I rowsort SELECT DISTINCT + 24 AS col0 FROM tab0 cor0 ---- 24 query I rowsort SELECT - col1 * - 37 AS col1 FROM tab1 ---- 370 481 962 onlyif mysql # use DIV operator for integer division query I rowsort label-2598 SELECT DISTINCT 96 DIV + col0 FROM tab2 ---- 1 13 skipif mysql # not compatible query I rowsort label-2598 SELECT DISTINCT 96 / + col0 FROM tab2 ---- 1 13 query I rowsort SELECT + 62 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b query I rowsort SELECT ALL col2 * tab2.col1 - col1 * - col0 FROM tab2 ---- 1054 1989 6136 query III rowsort SELECT ALL * FROM tab2 WHERE NULL BETWEEN - col2 * - col1 AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2602 SELECT ALL col0 + col2 DIV col0 AS col2 FROM tab0 ---- 25 35 89 skipif mysql # not compatible query I rowsort label-2602 SELECT ALL col0 + col2 / col0 AS col2 FROM tab0 ---- 25 35 89 query I rowsort SELECT DISTINCT col0 * col0 + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * + col2 * col0 ---- query I rowsort SELECT ALL - col0 + tab0.col1 AS col1 FROM tab0 ---- 2 62 62 query I rowsort SELECT DISTINCT col0 - col0 * col2 * tab0.col2 AS col2 FROM tab0 ---- -26112 -598347 0 query I rowsort SELECT - col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1 ---- query I rowsort SELECT col2 FROM tab2 WHERE NULL BETWEEN NULL AND - col2 ---- query III rowsort SELECT * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT ALL + col2 + tab2.col0 AS col0 FROM tab2 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + col2 col1 FROM tab2 ---- 52 54 76 query I rowsort SELECT ALL col1 AS col0 FROM tab2 WHERE col2 / col0 <= NULL ---- query I rowsort SELECT col1 + - col0 * tab1.col0 FROM tab1 ---- -4086 -6387 17 query I rowsort SELECT ALL col1 + col1 * col1 * + col1 FROM tab2 ---- 205438 29822 4930 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab0.col1 + - tab0.col1 col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT + tab2.col0 + col0 + - tab2.col1 AS col2 FROM tab2 ---- -17 141 97 query I rowsort SELECT col2 * - col0 * + col0 AS col2 FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT - col0 * - col0 * col2 FROM tab2 ---- 1323 158184 237158 onlyif mysql # use DIV operator for integer division query I rowsort label-2618 SELECT col1 DIV col2 col0 FROM tab0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2618 SELECT col1 / col2 col0 FROM tab0 ---- 1 2 97 query I rowsort SELECT DISTINCT - tab2.col1 * + col2 + + col0 FROM tab2 WHERE NOT col0 <> NULL ---- query I rowsort SELECT DISTINCT + col1 + - tab1.col0 FROM tab1 ---- -54 -67 23 query III rowsort SELECT ALL * FROM tab0 WHERE col2 < ( - col1 ) ---- query III rowsort SELECT * FROM tab1 WHERE NOT ( + col0 * + col2 ) = NULL ---- query I rowsort SELECT - col1 FROM tab0 WHERE NOT NULL < col0 ---- query I rowsort SELECT ALL + col1 + + col1 AS col1 FROM tab1 cor0 ---- 20 26 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * + col0 - col0 * + col0 col0 FROM tab1 AS cor0 ---- -3456 -5360 69 onlyif mysql # use DIV operator for integer division query I rowsort label-2626 SELECT DISTINCT + cor0.col1 + col0 DIV + col1 AS col2 FROM tab2 AS cor0 ---- 21 31 60 skipif mysql # not compatible query I rowsort label-2626 SELECT DISTINCT + cor0.col1 + col0 / + col1 AS col2 FROM tab2 AS cor0 ---- 21 31 60 query I rowsort SELECT ALL - col2 + - col1 AS col1 FROM tab1 cor0 ---- -109 -67 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 * col2 + cor0.col1 * cor0.col0 col2 FROM tab0 AS cor0 ---- 15561 3492 4902 query I rowsort SELECT DISTINCT cor0.col2 AS col1 FROM tab0, tab2 cor0 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-2630 SELECT ALL col0 DIV col0 + + col2 FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-2630 SELECT ALL col0 / col0 + + col2 FROM tab2 ---- 27 28 39 query I rowsort SELECT - tab2.col0 * + col2 AS col0 FROM tab2 ---- -189 -2028 -3002 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 + col2 * col2 ) NOT BETWEEN ( NULL ) AND ( col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2633 SELECT ALL col0 DIV - tab2.col1 - col1 AS col2 FROM tab2 ---- -21 -31 -60 skipif mysql # not compatible query I rowsort label-2633 SELECT ALL col0 / - tab2.col1 - col1 AS col2 FROM tab2 ---- -21 -31 -60 query I rowsort SELECT DISTINCT col0 + - tab0.col2 * col1 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT + tab0.col0 - - tab0.col0 FROM tab0 ---- 178 48 70 query I rowsort SELECT + col1 - + col2 * col0 * + col2 FROM tab1 ---- -207926 -737267 -8722 query I rowsort SELECT DISTINCT col2 - + col1 * + tab2.col1 AS col0 FROM tab2 ---- -251 -3455 -934 query III rowsort SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 ---- query I rowsort SELECT ALL + tab0.col2 / tab0.col2 FROM tab0 WHERE NOT NULL NOT IN ( - col2 * + col2 ) ---- query III rowsort SELECT * FROM tab1 WHERE NULL IN ( - col0 ) ---- query I rowsort SELECT + + col0 + col2 * + col2 AS col2 FROM tab1 AS cor0 ---- 2919 3313 9296 query I rowsort SELECT + tab1.col0 * tab1.col2 + col0 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT ALL + 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to 8b6a624eb92fb019d9664318e519f062 query I rowsort SELECT + 18 + + col2 AS col1 FROM tab0 ---- 100 19 51 query I rowsort SELECT ALL ( col2 ) * - tab2.col2 FROM tab2 ---- -1444 -676 -729 query I rowsort SELECT ( col0 ) * col0 + - col2 * + col2 AS col0 FROM tab2 AS cor0 ---- -680 4797 5408 query I rowsort SELECT DISTINCT - - col0 * 55 FROM tab1 AS cor0 ---- 165 3520 4400 onlyif mysql # use DIV operator for integer division query I rowsort label-2648 SELECT DISTINCT - + ( + col2 ) + col0 * + cor0.col1 + col2 DIV - cor0.col0 FROM tab1 AS cor0 ---- 583 6 943 skipif mysql # not compatible query I rowsort label-2648 SELECT DISTINCT - + ( + col2 ) + col0 * + cor0.col1 + col2 / - cor0.col0 FROM tab1 AS cor0 ---- 583 6 943 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * + col0 - col1 col1 FROM tab1 AS cor0 ---- -17 4086 6387 query I rowsort SELECT ALL - - col0 + col0 + + col1 FROM tab2 AS cor0 ---- 175 215 45 query I rowsort SELECT ALL - 41 * + col1 FROM tab1 AS cor0 ---- -1066 -410 -533 query I rowsort SELECT DISTINCT - col1 + + col0 + 60 AS col0 FROM tab1 ---- 114 127 37 query I rowsort SELECT DISTINCT + ( - col1 ) + col1 * col2 * col0 AS col2 FROM tab1 ---- 36470 4186 99827 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * - col1 + - ( - ( col1 ) ) * + 48 + - 20 col1 FROM tab2 ---- -669 507 query I rowsort SELECT ALL 94 + col2 AS col2 FROM tab1 ---- 148 151 190 query I rowsort SELECT + ( + tab0.col1 ) - - 65 FROM tab0 ---- 151 156 162 query I rowsort SELECT DISTINCT tab2.col2 * - tab2.col1 + col0 * + col2 * + col1 + ( col2 ) FROM tab2 ---- 118144 50426 5049 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 * - cor0.col0 col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL + 38 AS col1 FROM tab0 AS cor0 ---- 38 38 38 query I rowsort SELECT DISTINCT + 97 * - col1 FROM tab0 AS cor0 ---- -8342 -8827 -9409 query I rowsort SELECT - + 75 * - col2 - + 24 FROM tab1 AS cor0 ---- 4026 4251 7176 query I rowsort SELECT 50 * - col1 - col2 AS col2 FROM tab0 cor0 ---- -4333 -4632 -4851 query I rowsort SELECT DISTINCT - cor0.col1 + col0 * col1 AS col0 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT - col2 * 28 FROM tab1 AS cor0 ---- -1512 -1596 -2688 query I rowsort SELECT DISTINCT col2 * 55 AS col2 FROM tab0 AS cor0 ---- 1815 4510 55 query I rowsort SELECT ALL col1 + - 97 * ( - col1 + - cor0.col1 * + cor0.col1 ) AS col1 FROM tab2 AS cor0 ---- 29699 343439 96255 query I rowsort SELECT + col2 + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL - col0 + + ( + 51 ) AS col1 FROM tab1 cor0 ---- -13 -29 48 onlyif mysql # use DIV operator for integer division query I rowsort label-2669 SELECT - col0 + col2 DIV ( cor0.col0 * CAST( + col1 AS SIGNED ) + + cor0.col1 ) AS col1 FROM tab1 cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-2669 SELECT - col0 + col2 / ( cor0.col0 * CAST ( + col1 AS INTEGER ) + + cor0.col1 ) AS col1 FROM tab1 cor0 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * - cor0.col1 + col2 col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT - cor0.col0 + 7 FROM tab1 AS cor0 ---- -57 -73 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + - col2 col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - col1 + col0 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT ALL - col1 * - 21 FROM tab0 AS cor0 ---- 1806 1911 2037 onlyif mysql # use DIV operator for integer division query I rowsort label-2675 SELECT DISTINCT + - col0 * col2 DIV col1 FROM tab0 AS cor0 ---- -80 -9 0 skipif mysql # not compatible query I rowsort label-2675 SELECT DISTINCT + - col0 * col2 / col1 FROM tab0 AS cor0 ---- -80 -9 0 query I rowsort SELECT ALL - col2 + + col0 AS col1 FROM tab0 ---- -9 34 7 query I rowsort SELECT ALL - col1 + ( col0 ) AS col2 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT ALL col1 * 63 AS col0 FROM tab1 AS cor0 ---- 1638 630 819 onlyif mysql # use DIV operator for integer division query I rowsort label-2679 SELECT DISTINCT + col1 DIV + col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-2679 SELECT DISTINCT + col1 / + col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # use DIV operator for integer division query I rowsort label-2680 SELECT ALL + cor0.col1 DIV - col0 + col2 * + col2 AS col1 FROM tab0 AS cor0 ---- -1 1086 6723 skipif mysql # not compatible query I rowsort label-2680 SELECT ALL + cor0.col1 / - col0 + col2 * + col2 AS col1 FROM tab0 AS cor0 ---- -1 1086 6723 query I rowsort SELECT DISTINCT - col2 - + 67 * + ( col0 ) * - col2 FROM tab1 AS cor0 ---- 10800 244359 514464 query I rowsort SELECT 37 + - ( - col0 + col1 ) * + col1 AS col0 FROM tab0 AS cor0 ---- -145 -5295 -5977 query I rowsort SELECT ALL col2 + + col1 AS col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT + col0 * + col0 + col1 + + col2 FROM tab2 AS cor0 ---- 107 6169 6296 query I rowsort SELECT 25 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 2150 2275 2425 query I rowsort SELECT ALL - 24 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 797d0f7c145f8ac623924448c714bbcc onlyif mysql # use DIV operator for integer division query I rowsort label-2687 SELECT + 53 DIV + col0 AS col2 FROM tab1 AS cor0 ---- 0 0 17 skipif mysql # not compatible query I rowsort label-2687 SELECT + 53 / + col0 AS col2 FROM tab1 AS cor0 ---- 0 0 17 query I rowsort SELECT - col1 + cor0.col1 * col1 AS col0 FROM tab2 cor0 ---- 272 3422 930 onlyif mysql # use DIV operator for integer division query I rowsort label-2689 SELECT + 0 * - 25 DIV - col0 + col1 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-2689 SELECT + 0 * - 25 / - col0 + col1 FROM tab1 ---- 10 13 26 query I rowsort SELECT ( 66 + + col1 ) AS col0 FROM tab2 ---- 125 83 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 10 col2 FROM tab2, tab1 cor0 ---- 10 onlyif mysql # use DIV operator for integer division query I rowsort label-2692 SELECT DISTINCT tab1.col2 DIV col0 FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-2692 SELECT DISTINCT tab1.col2 / col0 FROM tab1 ---- 0 1 18 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( 36 ) * + tab1.col0 col1 FROM tab1 ---- 108 2304 2880 query I rowsort SELECT ALL + 83 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c query I rowsort SELECT ALL 61 * + tab0.col0 AS col0 FROM tab0 ---- 1464 2135 5429 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 55 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to ac76841ceecd2311e80c621d15bacdd3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2697 SELECT + col0 * CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2697 SELECT + col0 * CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 + col0 AS col0 FROM tab0 ---- 178 48 70 query I rowsort SELECT - 35 + col2 FROM tab2 ---- -8 -9 3 query I rowsort SELECT - + col2 * - ( - col0 ) + - col2 AS col0 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT - col0 * - col0 - + 79 * - col0 AS col2 FROM tab1 AS cor0 ---- 12720 246 9152 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2702 SELECT ALL - ( + col0 ) + CAST( NULL AS SIGNED ) * col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2702 SELECT ALL - ( + col0 ) + CAST ( NULL AS INTEGER ) * col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 + col0 * col1 * - col0 FROM tab0 ---- -118728 -49450 -720720 query I rowsort SELECT DISTINCT + col1 + + col0 * - col0 FROM tab2 ---- -18 -6025 -6224 query I rowsort SELECT ALL + 2 + + col2 * + tab2.col2 FROM tab2 ---- 1446 678 731 query I rowsort SELECT + col0 * col2 + - tab2.col1 + - col1 * col2 FROM tab2 ---- -679 2339 435 query I rowsort SELECT DISTINCT + ( 91 ) FROM tab0, tab2 AS cor0 ---- 91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 - col2 col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT cor0.col1 * - 54 + col1 AS col0 FROM tab2 cor0 ---- -1643 -3127 -901 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2710 SELECT DISTINCT + - col0 * - CAST( 72 AS SIGNED ) + col2 + col0 FROM tab1 AS cor0 ---- 273 4729 5936 skipif mysql # not compatible query I rowsort label-2710 SELECT DISTINCT + - col0 * - CAST ( 72 AS INTEGER ) + col2 + col0 FROM tab1 AS cor0 ---- 273 4729 5936 query I rowsort SELECT + + cor0.col0 + ( - col2 ) FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT - + col0 * col2 + - 64 + col1 * - col1 FROM tab2 AS cor0 ---- -1214 -3355 -5573 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2713 SELECT - col2 + + CAST( - col0 + col2 AS SIGNED ) * + col1 * + col0 col2 FROM tab0 cor0 ---- -115431 -56775 18543 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2713 SELECT - col2 + + CAST ( - col0 + col2 AS INTEGER ) * + col1 * + col0 col2 FROM tab0 cor0 ---- -115431 -56775 18543 query I rowsort SELECT ALL col2 * col2 * ( cor0.col2 ) FROM tab2 AS cor0 ---- 17576 19683 54872 query I rowsort SELECT DISTINCT + col1 + 51 AS col1 FROM tab2 AS cor0 ---- 110 68 82 query I rowsort SELECT ALL - col1 + - 5 AS col2 FROM tab2 AS cor0 ---- -22 -36 -64 onlyif mysql # use DIV operator for integer division query I rowsort label-2717 SELECT - col0 * col0 DIV tab1.col2 FROM tab1 ---- -66 -71 0 skipif mysql # not compatible query I rowsort label-2717 SELECT - col0 * col0 / tab1.col2 FROM tab1 ---- -66 -71 0 query I rowsort SELECT ALL col1 + col1 - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -45 40 55 query I rowsort SELECT - col0 * + tab2.col0 FROM tab2 ---- -49 -6084 -6241 query IIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL <> ( + tab1.col2 ) ---- query I rowsort SELECT ALL + col1 - + col1 FROM tab1 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col2 col2 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT + tab0.col0 * + tab0.col0 - + col1 FROM tab0 ---- 1128 490 7830 onlyif mysql # use DIV operator for integer division query I rowsort label-2724 SELECT col0 DIV + col2 col1 FROM tab0 ---- 0 1 35 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2724 SELECT col0 / + col2 col1 FROM tab0 ---- 0 1 35 onlyif mysql # use DIV operator for integer division query I rowsort label-2725 SELECT ALL tab1.col1 DIV col0 + + col1 * + tab1.col2 FROM tab1 ---- 1248 1412 570 skipif mysql # not compatible query I rowsort label-2725 SELECT ALL tab1.col1 / col0 + + col1 * + tab1.col2 FROM tab1 ---- 1248 1412 570 query I rowsort SELECT DISTINCT - col1 + cor0.col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL - col2 - + col2 * - col0 AS col2 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT col1 * + col1 * col1 + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 1057 17630 2293 onlyif mysql # use DIV operator for integer division query I rowsort label-2729 SELECT DISTINCT - col1 DIV col0 + + col1 * cor0.col2 * col2 FROM tab1 cor0 ---- 119808 32490 75808 skipif mysql # not compatible query I rowsort label-2729 SELECT DISTINCT - col1 / col0 + + col1 * cor0.col2 * col2 FROM tab1 cor0 ---- 119808 32490 75808 query I rowsort SELECT ALL - col2 + col0 * col2 AS col2 FROM tab1 AS cor0 ---- 108 3591 7584 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL ) OR ( NULL ) NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT - + col1 * col0 + col2 AS col0 FROM tab1 AS cor0 ---- -24 -583 -944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col1 * + col1 col2 FROM tab2 AS cor0 ---- 327 3507 988 query I rowsort SELECT + 90 + - col2 FROM tab1 ---- -6 33 36 query I rowsort SELECT + col0 * - col1 AS col0 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT + 83 * col1 FROM tab2 AS cor0 ---- 1411 2573 4897 onlyif mysql # use DIV operator for integer division query I rowsort label-2737 SELECT - - col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2737 SELECT - - col1 / cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT + 73 * col0 AS col2 FROM tab0 AS cor0 ---- 1752 2555 6497 query I rowsort SELECT col2 * - col2 - - col0 AS col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query III rowsort SELECT * FROM tab1 AS cor0 WHERE + col0 IN ( col1 * - col0 + cor0.col1 ) AND - col2 <> + col2 + col0 OR ( NULL ) BETWEEN col2 AND NULL ---- query I rowsort SELECT + - col0 + - col1 AS col2 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT - 26 + + col0 AS col0 FROM tab2 ---- -19 52 53 query I rowsort SELECT - 85 - col2 AS col2 FROM tab0 ---- -118 -167 -86 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2744 SELECT + col2 * + col0 - CAST( NULL AS SIGNED ) * - ( col0 * + tab0.col2 ) AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2744 SELECT + col2 * + col0 - CAST ( NULL AS INTEGER ) * - ( col0 * + tab0.col2 ) AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col0 + - col0 FROM tab0 cor0 ---- -178 -48 -70 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 DISTINCT - col0 + col2 + - col1 FROM tab1 AS cor0 ---- -17 25 3 query I rowsort SELECT 27 * tab0.col2 FROM tab0 ---- 2214 27 891 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 - - ( + col0 ) col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT + - col2 * - col2 FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT - col0 * + col1 - col0 * col2 FROM tab2 AS cor0 ---- -406 -4345 -6630 skipif mysql # not compatible query I rowsort SELECT + cor0.col1 * + CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2753 SELECT ALL col2 + + CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2753 SELECT ALL col2 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 + 94 * col1 FROM tab2 AS cor0 ---- 1560 2887 5520 query I rowsort SELECT DISTINCT col2 * - col0 AS col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + cor0.col2 col2 FROM tab2 cor0 ---- 26 27 38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col0 + col0 col2 FROM tab0 cor0 ---- 178 48 70 query I rowsort SELECT DISTINCT - - col1 * - 13 + - col0 * cor0.col2 + ( col1 ) FROM tab2 AS cor0 ---- -2736 -3206 -561 onlyif mysql # use DIV operator for integer division query I rowsort label-2759 SELECT - - col1 DIV - ( col1 ) FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2759 SELECT - - col1 / - ( col1 ) FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + 99 + - col1 * - col0 AS col1 FROM tab2 AS cor0 ---- 1442 316 4701 query I rowsort SELECT ALL - tab1.col0 + col2 + + col1 AS col1 FROM tab1 ---- 29 3 77 query I rowsort SELECT ALL - 62 + - col1 AS col2 FROM tab1 ---- -72 -75 -88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * - 9 col1 FROM tab0 AS cor0 ---- 216 315 801 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2764 SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2764 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 cor0 ---- NULL query I rowsort SELECT + col0 * - col0 - col2 FROM tab0 AS cor0 ---- -1226 -609 -8003 query I rowsort SELECT 6 + col2 AS col0 FROM tab1 AS cor0 ---- 102 60 63 query I rowsort SELECT ALL + 19 * ( - col1 ) * - col2 FROM tab0 AS cor0 ---- 141778 1843 53922 onlyif mysql # use DIV operator for integer division query I rowsort label-2768 SELECT DISTINCT - cor0.col1 * - cor0.col1 + col2 DIV + col0 AS col1 FROM tab0 AS cor0 ---- 7397 8281 9409 skipif mysql # not compatible query I rowsort label-2768 SELECT DISTINCT - cor0.col1 * - cor0.col1 + col2 / + col0 AS col1 FROM tab0 AS cor0 ---- 7397 8281 9409 query I rowsort SELECT ALL + - 72 FROM tab2 cor0 ---- -72 -72 -72 query I rowsort SELECT DISTINCT 17 * - 11 FROM tab0 AS cor0 ---- -187 query I rowsort SELECT ALL - + 75 * + col1 FROM tab1 AS cor0 ---- -1950 -750 -975 query I rowsort SELECT col2 * 66 * col1 AS col1 FROM tab0 cor0 ---- 187308 492492 6402 query I rowsort SELECT + 3 * cor0.col1 FROM tab2 AS cor0 ---- 177 51 93 skipif mysql # not compatible query I rowsort SELECT ALL + + CAST ( - col2 AS REAL ) * + col0 AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT 51 * + col0 FROM tab2 AS cor0 ---- 357 3978 4029 query I rowsort SELECT ALL 43 * col0 FROM tab2 AS cor0 ---- 301 3354 3397 query I rowsort SELECT DISTINCT - 22 AS col1 FROM tab2 cor0 ---- -22 query I rowsort SELECT 26 + col2 * col1 AS col0 FROM tab2 AS cor0 ---- 1560 672 863 onlyif mysql # use DIV operator for integer division query I rowsort label-2779 SELECT ALL - + 25 + - cor0.col0 * - col0 DIV col0 AS col1 FROM tab1 AS cor0 ---- -22 39 55 skipif mysql # not compatible query I rowsort label-2779 SELECT ALL - + 25 + - cor0.col0 * - col0 / col0 AS col1 FROM tab1 AS cor0 ---- -22 39 55 query I rowsort SELECT + col1 * col2 * - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT DISTINCT - col2 + - col2 AS col1 FROM tab2 AS cor0 ---- -52 -54 -76 query I rowsort SELECT DISTINCT col2 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * - col2 col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT cor0.col0 * 65 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 7a6255f826acaf2d31e3f32491824e83 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 cor1, tab2, tab1 AS cor2 ---- 3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c query I rowsort SELECT DISTINCT ( + col2 ) + - tab1.col1 * 42 FROM tab1 ---- -1038 -363 -450 query I rowsort SELECT DISTINCT - 30 AS col2 FROM tab1, tab1 AS cor0 ---- -30 query I rowsort SELECT DISTINCT 24 AS col2 FROM tab2, tab1 cor0 CROSS JOIN tab1 ---- 24 onlyif mysql # use DIV operator for integer division query I rowsort label-2789 SELECT DISTINCT - 29 + col2 DIV CAST( + col1 * + cor0.col1 AS SIGNED ) FROM tab2 AS cor0 ---- -29 skipif mysql # not compatible query I rowsort label-2789 SELECT DISTINCT - 29 + col2 / CAST ( + col1 * + cor0.col1 AS INTEGER ) FROM tab2 AS cor0 ---- -29 query I rowsort SELECT ALL - col1 * col1 + + ( + cor0.col0 ) AS col0 FROM tab0 cor0 ---- -7372 -8192 -9374 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 19 col2 FROM tab0 AS cor0 ---- 19 query I rowsort SELECT DISTINCT + - 48 * col0 AS col1 FROM tab2 AS cor0 ---- -336 -3744 -3792 onlyif mysql # use DIV operator for integer division query I rowsort label-2793 SELECT ALL + cor0.col1 DIV + cor0.col1 + + col2 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-2793 SELECT ALL + cor0.col1 / + cor0.col1 + + col2 FROM tab1 AS cor0 ---- 55 58 97 query I rowsort SELECT + col1 + + col0 * 85 FROM tab1 AS cor0 ---- 281 5450 6813 query I rowsort SELECT DISTINCT - - col2 * + cor0.col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT - col0 + cor0.col1 + col0 AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT col2 + col0 * 13 * - ( cor0.col0 ) FROM tab1 cor0 ---- -53191 -63 -83104 query I rowsort SELECT ALL + 85 * cor0.col1 + col0 AS col1 FROM tab0 cor0 ---- 7334 7824 8280 query I rowsort SELECT col1 * col0 + 89 * - col0 AS col2 FROM tab1 AS cor0 ---- -189 -5056 -6080 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2800 SELECT ALL - + cor0.col1 * col0 + CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2800 SELECT ALL - + cor0.col1 * col0 + CAST ( NULL AS REAL ) * col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 * - col2 * ( - col1 ) + col1 + ( 5 ) * + col2 AS col0 FROM tab0 AS cor0 ---- 244319 679543 9511 query I rowsort SELECT - + col1 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT 96 + - cor0.col1 AS col1 FROM tab2 AS cor0 ---- 37 65 79 query I rowsort SELECT col1 * + col0 + - cor0.col0 * col2 * + 99 + col2 AS col2 FROM tab1 cor0 ---- -15906 -360455 -759184 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2805 SELECT cor0.col1 * CAST( + 71 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 6106 6461 6887 skipif mysql # not compatible query I rowsort label-2805 SELECT cor0.col1 * CAST ( + 71 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 6106 6461 6887 query I rowsort SELECT cor0.col2 + cor0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc query I rowsort SELECT - cor0.col0 * - 40 + col0 + + col1 FROM tab1 AS cor0 ---- 149 2634 3293 query I rowsort SELECT DISTINCT 95 AS col2 FROM tab2 ---- 95 query I rowsort SELECT ALL 7 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to bd991c690468eea3ef45a96817ca3617 query I rowsort SELECT ALL 91 * - 30 + - col1 FROM tab0 cor0 ---- -2816 -2821 -2827 onlyif mysql # use DIV operator for integer division query I rowsort label-2811 SELECT DISTINCT + - cor0.col1 * 69 + + col1 DIV + CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -1173 -2135 -4071 skipif mysql # not compatible query I rowsort label-2811 SELECT DISTINCT + - cor0.col1 * 69 + + col1 / + CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -1173 -2135 -4071 query I rowsort SELECT ALL - col2 * - 74 FROM tab0 AS cor0 ---- 2442 6068 74 query I rowsort SELECT ALL + cor0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT ALL ( + cor0.col0 ) * + col0 AS col0 FROM tab1 AS cor0 ---- 4096 6400 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col1 + col2 col1 FROM tab0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 19 * col0 + tab0.col0 col0 FROM tab0 ---- 1780 480 700 query I rowsort SELECT - 74 + col0 FROM tab0 ---- -39 -50 15 query I rowsort SELECT DISTINCT 70 * + col2 + + col2 * - ( 70 ) AS col2 FROM tab2 ---- 0 query I rowsort SELECT ALL - 52 + - col2 FROM tab1 ---- -106 -109 -148 query I rowsort SELECT - 99 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 64d06513850a26495bc6c2fddeb254b7 query I rowsort SELECT + ( - col1 ) * - col1 AS col0 FROM tab2 ---- 289 3481 961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2822 SELECT + CAST( ( - col0 ) AS SIGNED ) * - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 1225 576 7921 skipif mysql # not compatible query I rowsort label-2822 SELECT + CAST ( ( - col0 ) AS INTEGER ) * - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT ALL 91 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT col1 * col0 - + col1 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT ALL - col1 + - col1 * col1 * 14 AS col1 FROM tab2 AS cor0 ---- -13485 -4063 -48793 query I rowsort SELECT DISTINCT + 76 * + 1 + col2 FROM tab0 AS cor0 ---- 109 158 77 query I rowsort SELECT DISTINCT - tab1.col1 * cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 9 values hashing to 601c129c54e49286b9ededa8928121fc onlyif mysql # use DIV operator for integer division query I rowsort label-2828 SELECT cor0.col2 + + col0 DIV col1 FROM tab2 cor0 ---- 27 27 42 skipif mysql # not compatible query I rowsort label-2828 SELECT cor0.col2 + + col0 / col1 FROM tab2 cor0 ---- 27 27 42 onlyif mysql # use DIV operator for integer division query I rowsort label-2829 SELECT col0 * col0 + + 86 DIV + col0 AS col0 FROM tab2 AS cor0 ---- 6085 61 6242 skipif mysql # not compatible query I rowsort label-2829 SELECT col0 * col0 + + 86 / + col0 AS col0 FROM tab2 AS cor0 ---- 6085 61 6242 query I rowsort SELECT + col0 + ( col0 ) AS col2 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT - col1 - - 19 AS col2 FROM tab2 cor0 ---- -12 -40 2 query I rowsort SELECT 68 * 73 FROM tab1 AS cor0 ---- 4964 4964 4964 query I rowsort SELECT 82 AS col2 FROM tab1 AS cor0 ---- 82 82 82 query I rowsort SELECT - + cor0.col2 * + 29 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 181a5fa3e5c3d15604b1c4c309d11d19 query I rowsort SELECT col2 * + 48 AS col2 FROM tab1 AS cor0 ---- 2592 2736 4608 query I rowsort SELECT DISTINCT - cor0.col0 * 65 FROM tab0, tab1 AS cor0 ---- -195 -4160 -5200 query I rowsort SELECT + - col2 + + col0 AS col2 FROM tab2 AS cor0 ---- -20 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-2838 SELECT ALL - + col2 + col1 DIV col0 FROM tab1 AS cor0 ---- -46 -57 -96 skipif mysql # not compatible query I rowsort label-2838 SELECT ALL - + col2 + col1 / col0 FROM tab1 AS cor0 ---- -46 -57 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-2839 SELECT ALL col1 + - col0 * + ( col2 ) + - col2 * ( + col2 ) DIV - col1 FROM tab1 ---- -24 -3314 -6959 skipif mysql # not compatible query I rowsort label-2839 SELECT ALL col1 + - col0 * + ( col2 ) + - col2 * ( + col2 ) / - col1 FROM tab1 ---- -24 -3314 -6959 query I rowsort SELECT ALL - tab2.col2 + - col1 + col0 FROM tab2 ---- -51 -7 24 query I rowsort SELECT 12 + col1 FROM tab1 ---- 22 25 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2842 SELECT tab2.col2 * col1 / - CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2842 SELECT tab2.col2 * col1 / - CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 * col2 + col0 * cor0.col0 + + 72 AS col1 FROM tab0 AS cor0 ---- 1332 1440 15291 query I rowsort SELECT DISTINCT + col2 * ( + col0 ) + col0 AS col1 FROM tab1 AS cor0 ---- 165 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + ( col2 ) * col1 col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT DISTINCT cor0.col2 - 26 FROM tab0 cor0 ---- -25 56 7 query I rowsort SELECT ALL col1 * cor0.col1 + col2 * col2 FROM tab1 AS cor0 ---- 3349 3592 9385 query I rowsort SELECT DISTINCT - 84 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- -84 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237 query I rowsort SELECT ALL + tab0.col0 - 65 FROM tab0 ---- -30 -41 24 query I rowsort SELECT DISTINCT col2 * - 84 FROM tab0 ---- -2772 -6888 -84 query I rowsort SELECT DISTINCT - col0 + col2 - + col0 * col1 FROM tab2 ---- -1384 -197 -4654 query I rowsort SELECT - - col1 * - col2 * 71 FROM tab1 cor0 ---- -40470 -88608 -99684 query I rowsort SELECT DISTINCT col0 - - ( 13 ) * + col2 AS col1 FROM tab1 ---- 1328 705 805 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 50 col1 FROM tab1 AS cor0 ---- 50 50 50 query I rowsort SELECT - 80 + - col1 AS col2 FROM tab1 AS cor0 ---- -106 -90 -93 query I rowsort SELECT DISTINCT + - cor0.col2 - col2 AS col0 FROM tab0 cor0 ---- -164 -2 -66 query I rowsort SELECT + 43 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 199105619049271147956de52e7f5ed4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2859 SELECT CAST( NULL AS SIGNED ) - col0 * + col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2859 SELECT CAST ( NULL AS INTEGER ) - col0 * + col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT 63 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 38764a6e696d1a6b5095e29ef84959c0 query I rowsort SELECT ALL + 78 FROM tab0 ---- 78 78 78 query I rowsort SELECT 68 * + 18 AS col0 FROM tab2 ---- 1224 1224 1224 query I rowsort SELECT 35 AS col2 FROM tab1 cor0 ---- 35 35 35 query I rowsort SELECT DISTINCT + ( + col2 ) + col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL + 46 + col2 AS col1 FROM tab0 AS cor0 ---- 128 47 79 onlyif mysql # use DIV operator for integer division query I rowsort label-2866 SELECT DISTINCT - col2 DIV - col1 AS col2 FROM tab2 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-2866 SELECT DISTINCT - col2 / - col1 AS col2 FROM tab2 AS cor0 ---- 0 2 query I rowsort SELECT ALL - col0 * 21 AS col0 FROM tab2 AS cor0 ---- -147 -1638 -1659 query I rowsort SELECT ALL - 77 * col2 + col1 AS col1 FROM tab0 AS cor0 ---- -2455 -6223 20 query I rowsort SELECT DISTINCT tab1.col1 + - 80 FROM tab1 ---- -54 -67 -70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2870 SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-2870 SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2871 SELECT ALL - col1 DIV col0 + col1 DIV col0 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2871 SELECT ALL - col1 / col0 + col1 / col0 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort SELECT + col2 + + CAST ( - col2 + col1 AS REAL ) AS col0 FROM tab1 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - ( - col2 ) + col1 col0 FROM tab2 ---- 134 163 65 query I rowsort SELECT + col2 * ( col1 * col2 + - col1 ) AS col0 FROM tab2 ---- 21762 23902 38350 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2 ---- 3645 values hashing to 71d467ba3372dfdd21847af1687c92e7 query I rowsort SELECT + tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT ALL - col1 - + 92 * - col0 FROM tab1 AS cor0 ---- 250 5878 7347 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2878 SELECT + ( 5 ) * - col0 + - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2878 SELECT + ( 5 ) * - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT 34 + col0 FROM tab0 ---- 123 58 69 query I rowsort SELECT DISTINCT - + 66 + col1 AS col0 FROM tab2 AS cor0 ---- -35 -49 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * col2 + - col0 col1 FROM tab2 AS cor0 ---- -196 -2106 -3081 query I rowsort SELECT cor0.col1 + cor0.col2 * col2 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT ALL ( col1 ) * col0 AS col0 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT ( + cor0.col1 ) * col2 + 15 * + 44 * col0 FROM tab2 AS cor0 ---- 52786 53014 5457 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2885 SELECT + CAST( + col2 AS SIGNED ) * - col0 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-2885 SELECT + CAST ( + col2 AS INTEGER ) * - col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL + ( - 1 ) * + col1 + - ( - col2 ) * col1 AS col1 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT - col0 * ( - col2 ) + 57 * col0 AS col2 FROM tab0 AS cor0 ---- 12371 2030 2160 onlyif mysql # use DIV operator for integer division query I rowsort label-2888 SELECT DISTINCT - ( - 4 ) * cor0.col0 DIV - CAST( col0 AS SIGNED ) FROM tab2 AS cor0 ---- -4 skipif mysql # not compatible query I rowsort label-2888 SELECT DISTINCT - ( - 4 ) * cor0.col0 / - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 ---- -4 query I rowsort SELECT DISTINCT - 6 AS col0 FROM tab0 AS cor0 ---- -6 onlyif mysql # use DIV operator for integer division query I rowsort label-2890 SELECT 10 DIV + 20 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2890 SELECT 10 / + 20 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - + ( + 85 ) FROM tab2 AS cor0 ---- -85 -85 -85 query I rowsort SELECT DISTINCT + 24 * col0 + - col0 AS col2 FROM tab2 AS cor0 ---- 161 1794 1817 query I rowsort SELECT + col2 + - 89 FROM tab0 AS cor0 ---- -56 -7 -88 query I rowsort SELECT DISTINCT col1 * + col1 + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 7429 8363 9410 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 83 col1 FROM tab2 cor0 ---- -83 -83 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2896 SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2896 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + col2 * - col1 + col0 - - 27 AS col2 FROM tab2 ---- -1429 -540 -803 query I rowsort SELECT + cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT ALL + tab0.col1 * tab0.col1 AS col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT - - col2 + col2 AS col2 FROM tab2 cor0 ---- 52 54 76 query I rowsort SELECT 73 * col2 FROM tab1 AS cor0 ---- 3942 4161 7008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * ( - cor0.col2 ) col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT - col0 * + 54 * + 90 AS col0 FROM tab0 ---- -116640 -170100 -432540 query I rowsort SELECT - 37 * - cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 81a8169e8f5ee9e10db9d1acf8889b0b onlyif mysql # use DIV operator for integer division query I rowsort label-2905 SELECT DISTINCT - col1 - + col1 DIV col2 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-2905 SELECT DISTINCT - col1 - + col1 / col2 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT - col0 * + ( + 24 ) AS col2 FROM tab2 AS cor0 ---- -168 -1872 -1896 query I rowsort SELECT 35 * tab2.col0 * - col2 FROM tab2 ---- -105070 -6615 -70980 query I rowsort SELECT ALL - col1 * 6 FROM tab2 AS cor0 ---- -102 -186 -354 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to 3a186ad492d315801f56fb30a5e89dbb skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + col0 * - col2 * col1 col1 FROM tab1 AS cor0 ---- -36470 -4186 -99827 onlyif mysql # use DIV operator for integer division query I rowsort label-2911 SELECT col2 * 26 DIV + col1 AS col2 FROM tab0 ---- 0 23 9 skipif mysql # not compatible query I rowsort label-2911 SELECT col2 * 26 / + col1 AS col2 FROM tab0 ---- 0 23 9 query I rowsort SELECT DISTINCT col2 + + 27 + col0 FROM tab0 AS cor0 ---- 198 63 84 query I rowsort SELECT - col1 + 18 - col1 AS col0 FROM tab1 cor0 ---- -2 -34 -8 query I rowsort SELECT DISTINCT - + col0 * ( + cor0.col2 ) + - col0 * ( + ( - cor0.col0 ) ) + 94 FROM tab1 AS cor0 ---- -1186 -59 542 query I rowsort SELECT ALL + + col1 * + 26 AS col1 FROM tab1 AS cor0 ---- 260 338 676 onlyif mysql # use DIV operator for integer division query I rowsort label-2916 SELECT + col0 * + 3 + + 99 * + col0 - ( + ( col1 ) ) DIV 63 AS col0 FROM tab0 AS cor0 ---- 2447 3569 9077 skipif mysql # not compatible query I rowsort label-2916 SELECT + col0 * + 3 + + 99 * + col0 - ( + ( col1 ) ) / 63 AS col0 FROM tab0 AS cor0 ---- 2447 3569 9077 query I rowsort SELECT ALL - 80 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2918 SELECT ALL CAST( 83 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c skipif mysql # not compatible query I rowsort label-2918 SELECT ALL CAST ( 83 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c query I rowsort SELECT DISTINCT - col2 * - 25 AS col0 FROM tab1 AS cor0 ---- 1350 1425 2400 onlyif mysql # use DIV operator for integer division query I rowsort label-2920 SELECT - col2 DIV + col1 col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2920 SELECT - col2 / + col1 col1 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT DISTINCT col0 * ( 76 ) AS col2 FROM tab0 AS cor0 ---- 1824 2660 6764 query I rowsort SELECT + - col1 * - col2 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL + col2 + ( - col2 ) * cor0.col0 FROM tab1 AS cor0 ---- -108 -3591 -7584 onlyif mysql # use DIV operator for integer division query I rowsort label-2924 SELECT DISTINCT - - col2 DIV col2 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-2924 SELECT DISTINCT - - col2 / col2 FROM tab1 AS cor0 ---- 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2925 SELECT DISTINCT - col1 * + CAST( 3 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- -258 -273 -291 skipif mysql # not compatible query I rowsort label-2925 SELECT DISTINCT - col1 * + CAST ( 3 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- -258 -273 -291 query I rowsort SELECT DISTINCT col2 * + ( - col0 ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT col0 * col2 * + col2 FROM tab2 AS cor0 ---- 114076 5103 52728 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * + col0 + + ( + col1 ) col0 FROM tab1 AS cor0 ---- -4086 -6387 17 query I rowsort SELECT - cor0.col2 + + 46 AS col0 FROM tab1 cor0 ---- -11 -50 -8 query I rowsort SELECT + + 18 + col2 * col2 * col2 AS col1 FROM tab1 cor0 ---- 157482 185211 884754 query I rowsort SELECT DISTINCT 0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT col1 + - tab0.col0 * 13 AS col2 FROM tab0 ---- -1066 -226 -358 query I rowsort SELECT DISTINCT - + col0 * - cor0.col2 + + col1 AS col0 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT col0 * - col0 + + col0 AS col2 FROM tab0 AS cor0 ---- -1190 -552 -7832 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 12 col2 FROM tab1 AS cor0 ---- -12 -12 -12 query I rowsort SELECT ALL - + 99 * col2 * col0 FROM tab1 AS cor0 ---- -16038 -361152 -760320 query I rowsort SELECT - 69 * - col0 AS col2 FROM tab0 AS cor0 ---- 1656 2415 6141 query I rowsort SELECT 43 + col0 AS col1 FROM tab1 ---- 107 123 46 onlyif mysql # use DIV operator for integer division query I rowsort label-2939 SELECT ALL 65 DIV tab1.col1 FROM tab1 ---- 2 5 6 skipif mysql # not compatible query I rowsort label-2939 SELECT ALL 65 / tab1.col1 FROM tab1 ---- 2 5 6 query I rowsort SELECT + + col1 * + col2 * col2 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT DISTINCT - 71 * col0 FROM tab0 AS cor0 ---- -1704 -2485 -6319 onlyif mysql # use DIV operator for integer division query I rowsort label-2942 SELECT col0 DIV col1 AS col0 FROM tab2 cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-2942 SELECT col0 / col1 AS col0 FROM tab2 cor0 ---- 0 1 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * col1 * + col0 col0 FROM tab2 ---- 106097 1519 358956 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2944 SELECT CAST( NULL AS SIGNED ) + col2 + tab0.col1 col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2944 SELECT CAST ( NULL AS INTEGER ) + col2 + tab0.col1 col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2945 SELECT ALL CAST( ( - col2 ) AS SIGNED ) + col2 * - col2 FROM tab2 ---- -1482 -702 -756 skipif mysql # not compatible query I rowsort label-2945 SELECT ALL CAST ( ( - col2 ) AS INTEGER ) + col2 * - col2 FROM tab2 ---- -1482 -702 -756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col2 * cor0.col2 col0 FROM tab2 AS cor0 ---- -1444 -676 -729 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * col0 + + col2 col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT ALL 14 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1 ---- 81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff query I rowsort SELECT tab1.col0 + cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to ad83fc90fc898a3cac662a66bc570af3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 53 col2 FROM tab0 AS cor0 ---- 53 53 53 onlyif mysql # use DIV operator for integer division query I rowsort label-2951 SELECT DISTINCT - - col2 * col0 DIV 88 + col2 AS col1 FROM tab1 AS cor0 ---- 183 55 98 skipif mysql # not compatible query I rowsort label-2951 SELECT DISTINCT - - col2 * col0 / 88 + col2 AS col1 FROM tab1 AS cor0 ---- 183 55 98 query I rowsort SELECT DISTINCT col2 + 37 AS col0 FROM tab0 AS cor0 ---- 119 38 70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2953 SELECT + - CAST( 52 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- -52 -52 -52 skipif mysql # not compatible query I rowsort label-2953 SELECT + - CAST ( 52 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- -52 -52 -52 query I rowsort SELECT - 32 * cor0.col2 * col0 AS col1 FROM tab2 AS cor0 ---- -6048 -64896 -96064 query I rowsort SELECT 62 AS col2 FROM tab1 AS cor0 ---- 62 62 62 query I rowsort SELECT - + col1 + + col2 * + col0 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT + col1 * 76 FROM tab0 AS cor0 ---- 6536 6916 7372 query I rowsort SELECT + 75 * - 27 FROM tab1 AS cor0 ---- -2025 -2025 -2025 query I rowsort SELECT ALL + cor2.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2 ---- 243 values hashing to de2705ff0bb8b4f714dafb07497c6119 onlyif mysql # use DIV operator for integer division query I rowsort label-2960 SELECT ALL - col1 DIV col2 AS col1 FROM tab0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-2960 SELECT ALL - col1 / col2 AS col1 FROM tab0 ---- -1 -2 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + - col2 * + col2 col1 FROM tab1 AS cor0 ---- -2862 -3192 -9120 query I rowsort SELECT ALL - col2 * 78 AS col0 FROM tab0 AS cor0 ---- -2574 -6396 -78 query I rowsort SELECT tab0.col0 * + col1 AS col2 FROM tab0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 * - cor0.col1 col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT + col1 * 77 * + col0 AS col1 FROM tab2 ---- 103411 16709 354354 query I rowsort SELECT DISTINCT - + col0 * + col2 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL + - col1 * - cor0.col1 + + col2 AS col1 FROM tab0 AS cor0 ---- 7429 8363 9410 query I rowsort SELECT col1 * + col1 * ( 81 + col0 ) FROM tab0 AS cor0 ---- 1091444 1407770 776580 query I rowsort SELECT - 84 * + col1 + col1 AS col0 FROM tab1 AS cor0 ---- -1079 -2158 -830 query I rowsort SELECT ( + col2 ) - + col2 FROM tab2 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2971 SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - col0 FROM tab2 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-2971 SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - col0 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT ( + 22 + + col2 ) FROM tab0 ---- 104 23 55 query I rowsort SELECT DISTINCT ( col1 ) * col2 AS col1 FROM tab2 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * col2 * - col2 + cor0.col0 + + ( - 2 ) col2 FROM tab2 AS cor0 ---- 114153 5108 52804 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2975 SELECT ALL cor0.col0 + CAST( 81 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 105 116 170 skipif mysql # not compatible query I rowsort label-2975 SELECT ALL cor0.col0 + CAST ( 81 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 105 116 170 query I rowsort SELECT ALL col2 - ( col2 + cor0.col2 ) FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT - + col1 + + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col2 + ( - 35 * - col0 ) AS col2 FROM tab0 AS cor0 ---- 1224 3033 807 onlyif mysql # use DIV operator for integer division query I rowsort label-2979 SELECT - col0 DIV - ( 45 ) + col1 FROM tab0 AS cor0 ---- 86 92 97 skipif mysql # not compatible query I rowsort label-2979 SELECT - col0 / - ( 45 ) + col1 FROM tab0 AS cor0 ---- 86 92 97 query I rowsort SELECT + col2 * tab0.col1 * tab0.col1 FROM tab0 ---- 244068 679042 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-2981 SELECT DISTINCT - col1 * col1 DIV col1 AS col0 FROM tab2 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-2981 SELECT DISTINCT - col1 * col1 / col1 AS col0 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT col0 * + 39 FROM tab2 AS cor0 ---- 273 3042 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-2984 SELECT - + col0 DIV ( col1 ) FROM tab1 cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-2984 SELECT - + col0 / ( col1 ) FROM tab1 cor0 ---- -6 -6 0 query I rowsort SELECT ALL + col0 + + 31 FROM tab2 ---- 109 110 38 query I rowsort SELECT - cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT ALL col0 + + ( col0 ) FROM tab1 ---- 128 160 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * - col0 col2 FROM tab1 AS cor0 WHERE NOT col0 >= ( col0 ) ---- query I rowsort SELECT ALL col0 * + col0 AS col1 FROM tab2 cor0 ---- 49 6084 6241 onlyif mysql # use DIV operator for integer division query I rowsort label-2990 SELECT cor0.col1 DIV - col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-2990 SELECT cor0.col1 / - col0 FROM tab0 AS cor0 ---- -1 -2 -3 onlyif mysql # use DIV operator for integer division query I rowsort label-2991 SELECT col1 DIV + col1 + col2 * - col2 * + col2 AS col2 FROM tab1 ---- -157463 -185192 -884735 skipif mysql # not compatible query I rowsort label-2991 SELECT col1 / + col1 + col2 * - col2 * + col2 AS col2 FROM tab1 ---- -157463 -185192 -884735 query I rowsort SELECT DISTINCT col0 * col0 * col2 AS col1 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT - tab1.col1 + - col1 AS col2 FROM tab1 WHERE NOT NULL <= ( NULL ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col1 + - col1 * col2 col1 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT DISTINCT col2 + tab0.col2 + col0 * col0 AS col0 FROM tab0 ---- 1227 642 8085 query I rowsort SELECT - tab2.col2 * tab2.col1 FROM tab2 ---- -1534 -646 -837 query III rowsort SELECT * FROM tab0 WHERE ( NULL ) IN ( col0 - tab0.col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2998 SELECT DISTINCT + col2 + col2 DIV col1 AS col0 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-2998 SELECT DISTINCT + col2 + col2 / col1 AS col0 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-2999 SELECT DISTINCT - tab1.col2 DIV tab1.col1 AS col1 FROM tab1 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-2999 SELECT DISTINCT - tab1.col2 / tab1.col1 AS col1 FROM tab1 ---- -2 -5 -7 query I rowsort SELECT ALL col2 * + col2 + tab0.col2 + + col0 * + col0 FROM tab0 ---- 1227 14727 1698 query I rowsort SELECT ALL - tab2.col1 * col1 FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT + col0 * + tab1.col2 - col0 FROM tab1 ---- 159 3584 7600 query III rowsort SELECT * FROM tab0 WHERE ( NULL ) IN ( col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-3004 SELECT + col2 * col1 DIV + tab0.col0 + + tab0.col2 * col0 FROM tab0 ---- 37 7381 910 skipif mysql # not compatible query I rowsort label-3004 SELECT + col2 * col1 / + tab0.col0 + + tab0.col2 * col0 FROM tab0 ---- 37 7381 910 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * col0 col0 FROM tab2 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - col0 * - col0 col0 FROM tab2 ---- 343 474552 493039 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - col0 + - col2 NOT BETWEEN col0 AND NULL ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT - col0 * col1 + col2 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL - col0 + + col1 - - col1 * col2 AS col2 FROM tab0 ---- 159 2900 7464 query I rowsort SELECT DISTINCT tab2.col1 FROM tab2 WHERE NULL IN ( col2 - - col0 ) ---- query I rowsort SELECT col1 * + col2 - + col0 AS col1 FROM tab1 ---- 1168 1401 506 query I rowsort SELECT DISTINCT + col1 * + col0 + col0 + - col2 FROM tab1 ---- 1024 27 647 query I rowsort SELECT DISTINCT col1 - col2 * + col2 AS col0 FROM tab0 ---- -1003 -6633 96 query I rowsort SELECT ALL - col1 + - col2 + - col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( tab0.col2 + - col1 + col0 ) AND NULL ---- query I rowsort SELECT ALL - col1 + + col0 + + col0 AS col0 FROM tab2 ---- -17 141 97 query I rowsort SELECT col1 + - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 * - tab2.col2 - + col1 ) ---- query I rowsort SELECT ALL + - col1 + + col2 * col2 AS col1 FROM tab1 AS cor0 ---- 2890 3239 9203 query I rowsort SELECT ALL + - col2 * col0 + col0 + col2 * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -14507 -1560 -35 query I rowsort SELECT ALL + cor0.col1 * col0 + + col1 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT col0 * col2 + tab1.col2 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT + col1 * col1 + + col1 AS col1 FROM tab0 ---- 7482 8372 9506 query I rowsort SELECT - col1 * col0 - col2 AS col2 FROM tab0 ---- -2097 -3396 -8181 onlyif mysql # use DIV operator for integer division query I rowsort label-3023 SELECT + col0 * + col2 DIV - col2 + col0 * col2 AS col1 FROM tab1 ---- 159 3584 7600 skipif mysql # not compatible query I rowsort label-3023 SELECT + col0 * + col2 / - col2 + col0 * col2 AS col1 FROM tab1 ---- 159 3584 7600 onlyif mysql # use DIV operator for integer division query I rowsort label-3024 SELECT col2 DIV + col0 + - col2 AS col0 FROM tab2 ---- -24 -26 -38 skipif mysql # not compatible query I rowsort label-3024 SELECT col2 / + col0 + - col2 AS col0 FROM tab2 ---- -24 -26 -38 query I rowsort SELECT + col1 * col0 - + col1 FROM tab1 ---- 1027 52 630 query I rowsort SELECT DISTINCT col2 * + col0 * - col1 FROM tab2 ---- -119652 -51034 -5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + col2 col2 FROM tab1 ---- 109 67 80 query I rowsort SELECT ALL cor0.col0 + - col0 * cor0.col0 FROM tab2 AS cor0 ---- -42 -6006 -6162 onlyif mysql # use DIV operator for integer division query I rowsort label-3029 SELECT - - cor0.col1 * + col1 DIV + cor0.col1 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-3029 SELECT - - cor0.col1 * + col1 / + cor0.col1 FROM tab2 AS cor0 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 query I rowsort SELECT DISTINCT cor0.col0 + - col2 FROM tab1 AS cor0 ---- -16 -51 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + col0 + - col1 col0 FROM tab1 AS cor0 ---- -20 118 147 query I rowsort SELECT + - cor0.col0 * - col2 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab1 cor1 ---- 972 values hashing to 9364ef7545b07c67767dceb70f02c643 query I rowsort SELECT ALL col1 + - 72 FROM tab0 AS cor0 ---- 14 19 25 query I rowsort SELECT + + cor0.col0 * ( - col0 ) AS col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT DISTINCT + col1 - 64 FROM tab0 AS cor0 ---- 22 27 33 query I rowsort SELECT + 87 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 8661ffbd1a72897c495405c53b816e50 onlyif mysql # use DIV operator for integer division query I rowsort label-3039 SELECT - - cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3039 SELECT - - cor0.col0 / col2 AS col1 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT - + col0 + - 9 * + 80 FROM tab2 AS cor0 ---- -727 -798 -799 query I rowsort SELECT ALL col0 + + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 178 48 70 onlyif mysql # use DIV operator for integer division query I rowsort label-3042 SELECT DISTINCT - + col1 + + col0 - + col2 DIV col1 FROM tab0 AS cor0 ---- -2 -62 skipif mysql # not compatible query I rowsort label-3042 SELECT DISTINCT - + col1 + + col0 - + col2 / col1 FROM tab0 AS cor0 ---- -2 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-3043 SELECT DISTINCT - col2 DIV + ( - col1 + col1 * - ( 49 ) ) AS col0 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-3043 SELECT DISTINCT - col2 / + ( - col1 + col1 * - ( 49 ) ) AS col0 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3044 SELECT + col0 DIV + col0 col0 FROM tab0 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3044 SELECT + col0 / + col0 col0 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT - + cor0.col0 + - cor0.col2 * col0 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT DISTINCT + col2 + col0 * - col0 AS col1 FROM tab2 ---- -22 -6058 -6203 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN NULL AND NULL ---- query I rowsort SELECT DISTINCT - col1 + col0 AS col0 FROM tab1 ---- -23 54 67 query I rowsort SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NULL NOT IN ( + col2 + col1 / - col1 + + tab2.col0 ) ---- query I rowsort SELECT DISTINCT + col1 * - col2 * + col2 + + col2 FROM tab1 ---- -119712 -32433 -75762 query III rowsort SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) <= NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + col0 * + tab2.col2 col1 FROM tab2 WHERE NOT + col1 = NULL ---- query I rowsort SELECT DISTINCT + tab0.col2 + col1 AS col1 FROM tab0 ---- 119 173 98 query I rowsort SELECT DISTINCT + tab0.col0 + col0 AS col2 FROM tab0 ---- 178 48 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 - cor0.col0 col0 FROM tab0 AS cor0 ---- -110 -132 -180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 + col0 col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - + col0 + - col1 AS col1 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT - 22 * col2 * col2 + 15 + + col0 FROM tab0 cor0 ---- -147824 -23919 28 query I rowsort SELECT cor0.col0 * col0 AS col1 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT ALL - col1 * + col2 + + 4 FROM tab2 AS cor0 ---- -1530 -642 -833 query I rowsort SELECT - - 34 FROM tab0 AS cor0 ---- 34 34 34 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT col1 + col2 * col2 NOT IN ( col1 + + tab2.col0 * col0 ) ---- query I rowsort SELECT DISTINCT col1 + + col0 * + col0 AS col0 FROM tab1 ---- 35 4106 6413 onlyif mysql # use DIV operator for integer division query I rowsort label-3064 SELECT ALL col0 DIV col2 + col1 AS col0 FROM tab1 ---- 11 13 26 skipif mysql # not compatible query I rowsort label-3064 SELECT ALL col0 / col2 + col1 AS col0 FROM tab1 ---- 11 13 26 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col0 ) ---- query I rowsort SELECT ( cor0.col0 ) + - col2 * - col1 * - col2 FROM tab0 AS cor0 ---- -611795 -62 -93630 query I rowsort SELECT - 21 + col1 * - cor0.col0 FROM tab1 AS cor0 ---- -1061 -661 -99 query I rowsort SELECT col0 * 99 AS col2 FROM tab2 AS cor0 ---- 693 7722 7821 query I rowsort SELECT col0 + - 34 AS col2 FROM tab2 AS cor0 ---- -27 44 45 query I rowsort SELECT - col1 + col1 * ( col2 + - cor0.col0 ) AS col2 FROM tab1 cor0 ---- -80 1300 195 query I rowsort SELECT - + col0 * 75 * + cor0.col2 FROM tab2 AS cor0 ---- -14175 -152100 -225150 query I rowsort SELECT ALL col2 * - tab1.col0 AS col1 FROM tab1 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3073 SELECT ALL col0 + CAST( NULL AS SIGNED ) * 42 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3073 SELECT ALL col0 + CAST ( NULL AS INTEGER ) * 42 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col1 - 44 AS col1 FROM tab1, tab2 cor0 ---- 9 values hashing to 9fd1a8d03b1cc4ba50d771debb99b76c query I rowsort SELECT DISTINCT col2 * 63 FROM tab1 AS cor0 ---- 3402 3591 6048 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2 ---- 3645 values hashing to a5677c50b23f70287df35c2388a1c9bf query I rowsort SELECT ALL col1 * + ( - col0 ) AS col0 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT ( - ( cor0.col2 ) * cor0.col1 ) FROM tab0, tab0 cor0 ---- 9 values hashing to 86c8e75d83d283b29460c020ab5988af query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 93e5b836e3f52f458344e73ebce589b5 query I rowsort SELECT - - 64 * col2 + - ( - 92 ) FROM tab0 AS cor0 ---- 156 2204 5340 query I rowsort SELECT + col1 + - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + 51 FROM tab2 cor0 ---- 51 51 51 query I rowsort SELECT + col0 * - tab0.col0 + + col0 * col2 FROM tab0 ---- -1190 -623 216 query I rowsort SELECT 73 + + col1 AS col0 FROM tab0 AS cor0 ---- 159 164 170 query I rowsort SELECT - cor0.col0 * col2 + col2 * + col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ( - col0 * + tab1.col1 + col0 ) FROM tab1 ---- -576 -75 -960 query I rowsort SELECT ALL - col2 + col2 AS col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL col0 * col2 * col0 + col2 FROM tab1 AS cor0 ---- 233529 540 614496 query I rowsort SELECT DISTINCT + col0 * col2 + - col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT DISTINCT col1 * col1 + col2 AS col2 FROM tab1 AS cor0 ---- 157 265 730 query I rowsort SELECT DISTINCT col2 + + col2 * col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT DISTINCT + - col0 * col0 + col1 FROM tab2 cor0 ---- -18 -6025 -6224 query I rowsort SELECT DISTINCT col1 * + col1 + col0 * + col2 AS col1 FROM tab0 AS cor0 ---- 15579 8188 9444 query I rowsort SELECT ALL col0 - col1 * - col1 AS col2 FROM tab0 ---- 7420 8370 9444 onlyif mysql # use DIV operator for integer division query I rowsort label-3095 SELECT ALL 31 DIV col1 - - col2 AS col2 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-3095 SELECT ALL 31 / col1 - - col2 AS col2 FROM tab0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( col2 * col2 ) - + col2 * col2 col0 FROM tab2 ---- -1352 -1458 -2888 query I rowsort SELECT - 72 * - col0 + + tab0.col1 FROM tab0 ---- 1814 2617 6499 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3098 SELECT ALL + CAST( NULL AS DECIMAL ) - + col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3098 SELECT ALL + CAST ( NULL AS REAL ) - + col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL + ( tab2.col2 ) - tab2.col2 AS col0 FROM tab2 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( col2 ) col2 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ALL + col0 * 88 FROM tab0 AS cor0 ---- 2112 3080 7832 query I rowsort SELECT + - 0 + col0 - col2 * col0 * + col1 AS col1 FROM tab2 AS cor0 ---- -119574 -50955 -5852 query I rowsort SELECT 36 * 71 FROM tab1 AS cor0 ---- 2556 2556 2556 query I rowsort SELECT DISTINCT cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 86 91 97 query I rowsort SELECT DISTINCT + col0 + + col1 * col1 * col1 AS col2 FROM tab2 AS cor0 ---- 205457 29798 4992 onlyif mysql # use DIV operator for integer division query I rowsort label-3106 SELECT col1 DIV + col0 + col0 * - cor0.col0 FROM tab0 cor0 ---- -1223 -573 -7920 skipif mysql # not compatible query I rowsort label-3106 SELECT col1 / + col0 + col0 * - cor0.col0 FROM tab0 cor0 ---- -1223 -573 -7920 query I rowsort SELECT + 89 + + col2 AS col1 FROM tab1 AS cor0 ---- 143 146 185 query I rowsort SELECT - - cor0.col2 + col0 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- 1226 609 8003 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 49 * col2 + col1 - col2 col0 FROM tab2 cor0 ---- 1307 1327 1841 onlyif mysql # use DIV operator for integer division query I rowsort label-3110 SELECT DISTINCT ( - col1 ) DIV + col0 col2 FROM tab2 AS cor0 ---- -4 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3110 SELECT DISTINCT ( - col1 ) / + col0 col2 FROM tab2 AS cor0 ---- -4 0 query I rowsort SELECT - col2 * col1 - cor0.col0 FROM tab1 AS cor0 ---- -1328 -1407 -634 query I rowsort SELECT ALL + + ( + col2 ) * + col1 * col2 + + col2 AS col2 FROM tab0 AS cor0 ---- 611966 93687 98 query I rowsort SELECT + tab0.col2 * 31 AS col2 FROM tab0 ---- 1023 2542 31 query I rowsort SELECT ALL + ( - col0 + col0 ) AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT cor0.col2 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT + ( col0 ) * - col1 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT - ( 97 ) FROM tab2 AS cor0 ---- -97 -97 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 * col2 col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL - 14 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc query I rowsort SELECT ( - col0 ) + + col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT - cor0.col0 * + col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT + - col0 * + 7 AS col2 FROM tab1 AS cor0 ---- -21 -448 -560 query I rowsort SELECT ALL - + col0 + + 0 AS col1 FROM tab2 cor0 ---- -7 -78 -79 query I rowsort SELECT ALL - ( - 8 ) * col2 FROM tab2 AS cor0 ---- 208 216 304 onlyif mysql # use DIV operator for integer division query I rowsort label-3125 SELECT + + 58 DIV + col0 AS col2 FROM tab0 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-3125 SELECT + + 58 / + col0 AS col2 FROM tab0 AS cor0 ---- 0 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + col0 + + col0 * col1 col2 FROM tab0 AS cor0 ---- 16020 2640 4620 query I rowsort SELECT DISTINCT + cor0.col2 + - 81 FROM tab1 AS cor0 ---- -24 -27 15 query I rowsort SELECT + 26 * col1 - col1 AS col0 FROM tab2 AS cor0 ---- 1475 425 775 query I rowsort SELECT DISTINCT - 14 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 10 21 75 query I rowsort SELECT DISTINCT + + 44 FROM tab2 cor0 ---- 44 query I rowsort SELECT DISTINCT - col1 * - col0 AS col2 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT - 97 + col2 * col1 FROM tab2 AS cor0 ---- 1437 549 740 query I rowsort SELECT ALL - col2 * col0 + col2 * - 45 FROM tab2 AS cor0 ---- -1404 -3198 -4712 query I rowsort SELECT DISTINCT + + col1 + - col0 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT ( + col0 ) - + 55 AS col2 FROM tab2 AS cor0 ---- -48 23 24 query I rowsort SELECT ALL + - col1 + col1 + - 19 FROM tab1 AS cor0 ---- -19 -19 -19 query I rowsort SELECT DISTINCT - 58 AS col1 FROM tab2 cor0 ---- -58 query I rowsort SELECT ALL 43 * cor0.col2 FROM tab2 AS cor0 ---- 1118 1161 1634 query I rowsort SELECT + 33 * tab0.col1 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to d3834505d5e42cb1b3ed13f8b694cb07 query I rowsort SELECT ALL ( col1 ) * - col0 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT - col1 * + col1 * + 37 FROM tab0 cor0 ---- -273652 -306397 -348133 query I rowsort SELECT DISTINCT ( - col0 ) AS col0 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT + ( col1 ) - + col2 FROM tab2 ---- -21 33 4 query I rowsort SELECT DISTINCT - col1 + 56 + col2 FROM tab0 cor0 ---- -40 3 47 query I rowsort SELECT col0 + 84 + col2 FROM tab1 AS cor0 ---- 141 205 260 query I rowsort SELECT DISTINCT - cor0.col1 + cor0.col2 * ( - col2 ) AS col1 FROM tab1 AS cor0 ---- -2942 -3259 -9229 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + ( col1 ) * col0 col2 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT ALL cor0.col0 * col0 AS col0 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT ALL col1 + - ( - col1 + col1 ) AS col2 FROM tab0 cor0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3150 SELECT - col0 + + CAST( NULL AS SIGNED ) + 91 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3150 SELECT - col0 + + CAST ( NULL AS INTEGER ) + 91 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3151 SELECT - col0 DIV - 33 + col0 FROM tab2 AS cor0 ---- 7 80 81 skipif mysql # not compatible query I rowsort label-3151 SELECT - col0 / - 33 + col0 FROM tab2 AS cor0 ---- 7 80 81 query I rowsort SELECT DISTINCT + col1 * ( + 35 ) FROM tab1 AS cor0 ---- 350 455 910 query I rowsort SELECT ALL 28 AS col1 FROM tab2 ---- 28 28 28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 70 * col2 col2 FROM tab0 ---- 2310 5740 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + col2 - tab1.col0 col0 FROM tab1 ---- 54 57 96 query I rowsort SELECT ALL - col2 * col1 + + col2 + + col1 FROM tab1 cor0 ---- -1139 -1324 -503 query I rowsort SELECT col1 + 98 * col2 AS col2 FROM tab1 AS cor0 ---- 5318 5596 9421 query I rowsort SELECT ALL + col0 + + col1 * 42 FROM tab0 AS cor0 ---- 3636 3911 4109 query I rowsort SELECT - col2 + cor0.col1 * 28 FROM tab1 cor0 ---- 223 268 674 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * cor0.col2 col0 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT - col1 + 86 FROM tab2 ---- 27 55 69 query I rowsort SELECT DISTINCT - + ( ( - col0 ) ) FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT - cor0.col2 * - ( col1 * + col2 ) AS col0 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT + ( + ( col2 ) ) * col1 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + ( col0 ) * cor0.col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT - col0 + col0 + - col1 * - cor0.col2 * col2 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT ALL col2 * 81 AS col1 FROM tab2 ---- 2106 2187 3078 query I rowsort SELECT - ( - col2 ) * col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT 88 * col0 FROM tab1 AS cor0 ---- 264 5632 7040 query I rowsort SELECT + 82 + + col1 FROM tab0 AS cor0 ---- 168 173 179 query I rowsort SELECT DISTINCT + tab1.col0 * + 68 FROM tab1 ---- 204 4352 5440 query I rowsort SELECT DISTINCT col1 * ( col2 ) + col2 AS col0 FROM tab0 ---- 2871 7544 98 onlyif mysql # use DIV operator for integer division query I rowsort label-3173 SELECT DISTINCT col2 DIV ( col0 + tab2.col0 * col0 ) FROM tab2 ---- 0 skipif mysql # not compatible query I rowsort label-3173 SELECT DISTINCT col2 / ( col0 + tab2.col0 * col0 ) FROM tab2 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col0 + + tab0.col0 ) col2 FROM tab0 ---- 178 48 70 onlyif mysql # use DIV operator for integer division query I rowsort label-3175 SELECT col2 + 31 DIV col0 AS col1 FROM tab0 AS cor0 ---- 1 34 82 skipif mysql # not compatible query I rowsort label-3175 SELECT col2 + 31 / col0 AS col1 FROM tab0 AS cor0 ---- 1 34 82 query I rowsort SELECT + ( 28 ) FROM tab0 AS cor0 ---- 28 28 28 onlyif mysql # use DIV operator for integer division query I rowsort label-3177 SELECT DISTINCT + - 25 DIV + col0 FROM tab2 AS cor0 ---- -3 0 skipif mysql # not compatible query I rowsort label-3177 SELECT DISTINCT + - 25 / + col0 FROM tab2 AS cor0 ---- -3 0 query I rowsort SELECT ALL + 79 AS col2 FROM tab0 cor0 ---- 79 79 79 onlyif mysql # use DIV operator for integer division query I rowsort label-3179 SELECT ALL + - col0 DIV + col1 + col1 AS col2 FROM tab1 AS cor0 ---- 26 4 7 skipif mysql # not compatible query I rowsort label-3179 SELECT ALL + - col0 / + col1 + col1 AS col2 FROM tab1 AS cor0 ---- 26 4 7 onlyif mysql # use DIV operator for integer division query I rowsort label-3180 SELECT - cor0.col1 DIV 18 FROM tab0 AS cor0 ---- -4 -5 -5 skipif mysql # not compatible query I rowsort label-3180 SELECT - cor0.col1 / 18 FROM tab0 AS cor0 ---- -4 -5 -5 query I rowsort SELECT ALL + ( + col1 ) AS col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT DISTINCT 45 * col2 FROM tab0 AS cor0 ---- 1485 3690 45 query I rowsort SELECT ( - col1 + - tab2.col1 ) * + col0 AS col2 FROM tab2 ---- -2686 -434 -9204 onlyif mysql # use DIV operator for integer division query I rowsort label-3184 SELECT tab2.col1 + + col2 DIV + col0 + col0 FROM tab2 ---- 137 41 96 skipif mysql # not compatible query I rowsort label-3184 SELECT tab2.col1 + + col2 / + col0 + col0 FROM tab2 ---- 137 41 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + col2 col0 FROM tab0 AS cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * col1 + col2 * - col1 + col2 * - ( + col0 ) col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL + col1 - col1 AS col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3188 SELECT ALL + col2 + col0 DIV col0 FROM tab0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-3188 SELECT ALL + col2 + col0 / col0 FROM tab0 ---- 2 34 83 query I rowsort SELECT ALL - 51 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4 query I rowsort SELECT DISTINCT 47 FROM tab0, tab2 AS cor0 ---- 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col1 col0 FROM tab0 ---- 7396 8281 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-3192 SELECT ALL col0 + col2 DIV col0 AS col2 FROM tab0 AS cor0 ---- 25 35 89 skipif mysql # not compatible query I rowsort label-3192 SELECT ALL col0 + col2 / col0 AS col2 FROM tab0 AS cor0 ---- 25 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * 57 + 93 + col2 col0 FROM tab2 AS cor0 ---- 1100 1887 3482 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * - col1 col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ( - col1 ) * cor0.col1 + col2 * col0 FROM tab1 AS cor0 ---- -514 3548 7511 query I rowsort SELECT + ( + col0 ) + + ( col1 ) FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT + col0 * col1 + + col2 * + col2 AS col2 FROM tab1 AS cor0 ---- 10256 2994 3889 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1, tab0 AS cor2 ---- 972 values hashing to ea0f747588ddf5869ee18a5e22d9f237 query I rowsort SELECT ALL col2 * col1 * - col1 AS col0 FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT DISTINCT + col2 * + 62 FROM tab1 AS cor0 ---- 3348 3534 5952 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3201 SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-3201 SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort SELECT - CAST ( col0 AS REAL ) * col0 AS col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-3203 SELECT ( + ( + col2 ) ) DIV + 56 AS col0 FROM tab1 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-3203 SELECT ( + ( + col2 ) ) / + 56 AS col0 FROM tab1 AS cor0 ---- 0 1 1 query I rowsort SELECT DISTINCT col2 + + col1 + - col0 FROM tab0 ---- 63 84 95 query I rowsort SELECT DISTINCT + col1 * + col1 + col1 AS col1 FROM tab2 ---- 306 3540 992 query I rowsort SELECT + tab1.col2 * col0 AS col0 FROM tab1 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-3207 SELECT DISTINCT - col0 DIV + col1 AS col2 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-3207 SELECT DISTINCT - col0 / + col1 AS col2 FROM tab0 ---- 0 query I rowsort SELECT ALL - 2 AS col2 FROM tab1 ---- -2 -2 -2 query I rowsort SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT cor1.col1 + tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 9 values hashing to 07a9fa96c94913f866af2be611e89dab query I rowsort SELECT - 54 * col2 - + col1 FROM tab2 AS cor0 ---- -1463 -1489 -2069 query I rowsort SELECT + col0 * col1 + + 88 * + 46 * - cor0.col1 FROM tab0 AS cor0 ---- -346064 -360269 -389261 query I rowsort SELECT + - 55 AS col1 FROM tab2, tab0 cor0, tab1, tab1 AS cor1 ---- 81 values hashing to 037c686cf473a7e2cc59ce6c19d8dc57 query I rowsort SELECT ALL + col0 + - col1 + col2 AS col2 FROM tab1 AS cor0 ---- 111 163 31 onlyif mysql # use DIV operator for integer division query I rowsort label-3215 SELECT 84 + col0 DIV 87 AS col0 FROM tab0 AS cor0 ---- 84 84 85 skipif mysql # not compatible query I rowsort label-3215 SELECT 84 + col0 / 87 AS col0 FROM tab0 AS cor0 ---- 84 84 85 query I rowsort SELECT ALL - - col2 * + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT + 62 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 51dd2771d516ceb935483eded78a5fa0 onlyif mysql # use DIV operator for integer division query I rowsort label-3218 SELECT 80 DIV col0 AS col0 FROM tab1 ---- 1 1 26 skipif mysql # not compatible query I rowsort label-3218 SELECT 80 / col0 AS col0 FROM tab1 ---- 1 1 26 query I rowsort SELECT + - cor1.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 query I rowsort SELECT DISTINCT col1 * col2 + col0 FROM tab1 ---- 1328 1407 634 query I rowsort SELECT ALL col1 + tab1.col1 AS col0 FROM tab1 ---- 20 26 52 query I rowsort SELECT ALL ( - tab2.col1 * 88 ) + col0 * col1 + + col1 AS col0 FROM tab2 ---- -136 -2480 -531 query I rowsort SELECT col2 + - tab1.col1 * - col2 FROM tab1 ---- 1344 1458 627 query I rowsort SELECT - cor0.col2 + - col2 AS col0 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT DISTINCT tab0.col0 * + col1 + - col1 FROM tab0 ---- 1978 3298 8008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( + col2 ) col0 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT - 35 + + 47 * - col1 AS col1 FROM tab0 cor0 ---- -4077 -4312 -4594 onlyif mysql # use DIV operator for integer division query I rowsort label-3228 SELECT ALL + col2 - + tab2.col1 DIV - col1 FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-3228 SELECT ALL + col2 - + tab2.col1 / - col1 FROM tab2 ---- 27 28 39 query I rowsort SELECT ( col2 ) - col1 AS col0 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT ALL - 59 * - col1 + - col0 FROM tab0 AS cor0 ---- 5050 5280 5688 query I rowsort SELECT ALL - + col1 * - col1 + col1 AS col2 FROM tab0 cor0 ---- 7482 8372 9506 query I rowsort SELECT DISTINCT + 99 + - cor0.col2 * - col0 AS col2 FROM tab2 AS cor0 ---- 2127 288 3101 query I rowsort SELECT DISTINCT col1 + - 21 FROM tab2 AS cor0 ---- -4 10 38 query I rowsort SELECT ALL 14 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 83e5779d2487d12495e7d816c797264f query I rowsort SELECT ALL col0 * col2 * + col0 + - 30 * + cor0.col0 * col2 FROM tab2 AS cor0 ---- -4347 147098 97344 query I rowsort SELECT DISTINCT - 41 * col2 FROM tab2 cor0 ---- -1066 -1107 -1558 query I rowsort SELECT DISTINCT + ( + 80 ) * col0 AS col0 FROM tab1 AS cor0 ---- 240 5120 6400 query I rowsort SELECT ALL 32 FROM tab2 AS cor0 ---- 32 32 32 query I rowsort SELECT ALL col0 * - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + cor1.col1 ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT DISTINCT + 54 AS col1 FROM tab1, tab0 AS cor0 ---- 54 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3242 SELECT + col1 + CAST( 5 AS SIGNED ) col2 FROM tab1 AS cor0 ---- 15 18 31 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3242 SELECT + col1 + CAST ( 5 AS INTEGER ) col2 FROM tab1 AS cor0 ---- 15 18 31 query I rowsort SELECT DISTINCT col0 * 44 + col0 + + col2 FROM tab2 AS cor0 ---- 342 3536 3593 onlyif mysql # use DIV operator for integer division query I rowsort label-3244 SELECT ALL + col1 DIV ( - 72 ) FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3244 SELECT ALL + col1 / ( - 72 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL col1 + + 93 + cor0.col0 * col2 FROM tab1 AS cor0 ---- 281 3751 7786 query I rowsort SELECT DISTINCT - - cor0.col0 + - col2 FROM tab1 AS cor0 ---- -16 -51 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + ( col0 * col2 ) col2 FROM tab1 AS cor0 ---- 136 3638 7667 skipif mysql # not compatible query I rowsort SELECT DISTINCT + - col1 + - CAST ( + 13 AS REAL ) AS col2 FROM tab2 AS cor0 ---- -30 -44 -72 query I rowsort SELECT - - cor2.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 cor2 ---- 243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2 query I rowsort SELECT DISTINCT col1 + col1 * - col1 AS col1 FROM tab2 ---- -272 -3422 -930 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3251 SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-3251 SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT col0 + + col0 + col2 FROM tab0 ---- 260 71 81 onlyif mysql # use DIV operator for integer division query I rowsort label-3253 SELECT ALL CAST( col1 AS SIGNED ) * col1 DIV + col2 + 92 FROM tab1 ---- 104 93 93 skipif mysql # not compatible query I rowsort label-3253 SELECT ALL CAST ( col1 AS INTEGER ) * col1 / + col2 + 92 FROM tab1 ---- 104 93 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3254 SELECT + CAST( NULL AS DECIMAL ) + - col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3254 SELECT + CAST ( NULL AS REAL ) + - col0 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 94 col1 FROM tab0 AS cor0 ---- 94 94 94 query I rowsort SELECT DISTINCT ( col0 ) FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT + ( 72 ) * + col0 FROM tab0 AS cor0 ---- 1728 2520 6408 query I rowsort SELECT col2 + + 38 + + tab1.col0 FROM tab1 ---- 159 214 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - col0 ) * col2 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT + - col1 + 85 * + col1 * + col2 FROM tab1 AS cor0 ---- 106067 119314 48440 query I rowsort SELECT 53 + col1 FROM tab2 AS cor0 ---- 112 70 84 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3262 SELECT DISTINCT 96 * col0 / CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3262 SELECT DISTINCT 96 * col0 / CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL + - 15 * - col0 * col2 AS col0 FROM tab1 cor0 ---- 115200 2430 54720 query I rowsort SELECT DISTINCT - col2 * - col1 - col2 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT DISTINCT + cor0.col2 * - col1 + 64 AS col2 FROM tab0 AS cor0 ---- -2774 -33 -7398 query I rowsort SELECT DISTINCT + + col2 + cor0.col1 * cor0.col0 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT ALL - 42 * - col2 + ( 17 ) AS col1 FROM tab0 AS cor0 ---- 1403 3461 59 query I rowsort SELECT DISTINCT + + col2 * + col0 * - col2 AS col0 FROM tab0 AS cor0 ---- -26136 -35 -598436 query I rowsort SELECT ALL col1 + col1 * ( col0 + col0 ) AS col1 FROM tab1 AS cor0 ---- 1290 182 2093 skipif mysql # not compatible query I rowsort SELECT DISTINCT col2 * col2 + + CAST ( + col0 AS REAL ) AS col0 FROM tab1 AS cor0 ---- 2919 3313 9296 query I rowsort SELECT ALL - - col1 * - col1 + + 65 FROM tab0 AS cor0 ---- -7331 -8216 -9344 query I rowsort SELECT ALL ( col0 ) + + ( cor0.col2 ) * col2 AS col2 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT DISTINCT tab1.col2 + - col2 FROM tab1 ---- 0 query I rowsort SELECT ALL + 17 * + col1 AS col2 FROM tab0 AS cor0 ---- 1462 1547 1649 onlyif mysql # use DIV operator for integer division query I rowsort label-3275 SELECT + col1 + col0 DIV col1 FROM tab1 AS cor0 ---- 16 19 26 skipif mysql # not compatible query I rowsort label-3275 SELECT + col1 + col0 / col1 FROM tab1 AS cor0 ---- 16 19 26 query I rowsort SELECT DISTINCT col2 + col0 * - col2 AS col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-3277 SELECT DISTINCT - + cor0.col0 DIV cor0.col2 FROM tab1 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-3277 SELECT DISTINCT - + cor0.col0 / cor0.col2 FROM tab1 AS cor0 ---- -1 0 query I rowsort SELECT - 78 * cor0.col2 AS col2 FROM tab2 AS cor0 ---- -2028 -2106 -2964 query I rowsort SELECT DISTINCT + col0 * - col1 * - ( col2 ) AS col0 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT tab2.col2 + - 2 + + tab2.col2 FROM tab0, tab1, tab2 AS cor0, tab2 ---- 81 values hashing to f98435dda69473b07a4f928162e01c53 query I rowsort SELECT col0 * col2 * col1 + - col1 * ( + ( + col0 ) + col0 ) AS col2 FROM tab0 AS cor0 ---- -3395 63984 647920 query I rowsort SELECT ALL + ( 70 ) AS col2 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to c76157a7a7ec18de56823b2058b49f32 query I rowsort SELECT tab1.col1 * - tab1.col0 + - col2 FROM tab1 ---- -1136 -132 -697 query I rowsort SELECT DISTINCT + 51 * + col1 FROM tab2 ---- 1581 3009 867 onlyif mysql # use DIV operator for integer division query I rowsort label-3285 SELECT - col1 DIV - col0 AS col2 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-3285 SELECT - col1 / - col0 AS col2 FROM tab2 AS cor0 ---- 0 0 4 query I rowsort SELECT + 75 * - col2 AS col1 FROM tab2 AS cor0 ---- -1950 -2025 -2850 query I rowsort SELECT DISTINCT + - 32 * col2 AS col1 FROM tab2 AS cor0 ---- -1216 -832 -864 onlyif mysql # use DIV operator for integer division query I rowsort label-3288 SELECT ALL - + col0 DIV 1 FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-3288 SELECT ALL - + col0 / 1 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT col0 * - col1 * - col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT col0 * 1 FROM tab0 cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-3291 SELECT + + ( cor0.col2 ) DIV col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3291 SELECT + + ( cor0.col2 ) / col2 FROM tab1 AS cor0 ---- 1 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3292 SELECT - CAST( 81 AS SIGNED ) FROM tab2 cor0 ---- -81 -81 -81 skipif mysql # not compatible query I rowsort label-3292 SELECT - CAST ( 81 AS INTEGER ) FROM tab2 cor0 ---- -81 -81 -81 query I rowsort SELECT - col0 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + cor0.col2 * col1 + 78 AS col0 FROM tab0 cor0 ---- 175 2916 7540 query I rowsort SELECT 24 * + 75 AS col1 FROM tab2, tab2 cor0 CROSS JOIN tab0 ---- 27 values hashing to 0a936354913e5153d6027098820b4c45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * - 52 col2 FROM tab1 AS cor0 ---- -156 -3328 -4160 query I rowsort SELECT + ( col1 ) * col2 - - col2 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT 10 * 31 AS col0 FROM tab0 AS cor0 ---- 310 310 310 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 96 col1 FROM tab2 AS cor0 ---- -96 query I rowsort SELECT ( col1 ) * col2 + + 3 AS col2 FROM tab1 cor0 ---- 1251 1407 573 query I rowsort SELECT ALL - - 50 * 55 AS col0 FROM tab2 AS cor0 ---- 2750 2750 2750 query I rowsort SELECT ALL - cor0.col0 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT - + col2 + 4 FROM tab0 AS cor0 ---- -29 -78 3 query I rowsort SELECT ALL - col0 - 98 FROM tab2 ---- -105 -176 -177 query I rowsort SELECT - col0 + 87 * col0 FROM tab1 AS cor0 ---- 258 5504 6880 query I rowsort SELECT + ( col1 ) * col0 + 55 * col2 FROM tab2 AS cor0 ---- 1702 3433 6032 onlyif mysql # use DIV operator for integer division query I rowsort label-3307 SELECT ALL - col1 DIV + col2 + col2 DIV + 79 FROM tab1 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3307 SELECT ALL - col1 / + col2 + col2 / + 79 FROM tab1 ---- 0 0 1 query I rowsort SELECT 32 + + 44 * - col1 FROM tab1 AS cor0 ---- -1112 -408 -540 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3309 SELECT ALL + CAST( 76 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0 ---- 1976 2052 2888 skipif mysql # not compatible query I rowsort label-3309 SELECT ALL + CAST ( 76 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0 ---- 1976 2052 2888 onlyif mysql # use DIV operator for integer division query I rowsort label-3310 SELECT ALL + - 40 + 88 DIV - col1 FROM tab0 cor0 ---- -40 -40 -41 skipif mysql # not compatible query I rowsort label-3310 SELECT ALL + - 40 + 88 / - col1 FROM tab0 cor0 ---- -40 -40 -41 query I rowsort SELECT ALL 76 + - 74 * - col0 * col0 FROM tab1 AS cor0 ---- 303180 473676 742 query I rowsort SELECT DISTINCT col2 * + 31 FROM tab1 AS cor0 ---- 1674 1767 2976 query I rowsort SELECT ( - 69 ) AS col1 FROM tab0 AS cor0 ---- -69 -69 -69 query I rowsort SELECT - + 5 AS col2 FROM tab0 AS cor0 ---- -5 -5 -5 query I rowsort SELECT - 63 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col1 col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT + 60 * col2 AS col1 FROM tab0 AS cor0 ---- 1980 4920 60 query I rowsort SELECT - - col0 - - col2 AS col0 FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-3319 SELECT - col1 * cor0.col2 + + 84 * col0 DIV - col1 AS col2 FROM tab1 AS cor0 ---- -1107 -1413 -1764 skipif mysql # not compatible query I rowsort label-3319 SELECT - col1 * cor0.col2 + + 84 * col0 / - col1 AS col2 FROM tab1 AS cor0 ---- -1107 -1413 -1764 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + col0 col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT col1 * col0 * + 13 FROM tab0 ---- 105287 26832 44135 query I rowsort SELECT ALL 26 AS col1 FROM tab0 ---- 26 26 26 query I rowsort SELECT DISTINCT cor0.col1 + - cor0.col0 FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT + col1 + + ( col2 ) AS col0 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT - col1 * - 37 AS col0 FROM tab1 cor0 ---- 370 481 962 query I rowsort SELECT ALL + cor0.col2 * 94 FROM tab0 AS cor0 ---- 3102 7708 94 query I rowsort SELECT DISTINCT + col1 * 82 FROM tab1 cor0 ---- 1066 2132 820 query I rowsort SELECT - col1 * + 47 FROM tab2 AS cor0 ---- -1457 -2773 -799 query I rowsort SELECT - col2 * - col1 * 46 FROM tab2 cor0 ---- 29716 38502 70564 query I rowsort SELECT DISTINCT + col1 + - col2 * - 33 AS col2 FROM tab0 cor0 ---- 1175 130 2797 query I rowsort SELECT DISTINCT + - cor0.col0 * 23 + 81 * col1 + col2 AS col2 FROM tab2 AS cor0 ---- -402 2377 3011 query I rowsort SELECT ALL + - col0 - cor0.col1 * - 95 FROM tab2 cor0 ---- 1536 2938 5527 query I rowsort SELECT ALL + 26 * col1 AS col2 FROM tab0 ---- 2236 2366 2522 onlyif mysql # use DIV operator for integer division query I rowsort label-3334 SELECT - col2 * ( + col1 ) DIV - col1 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-3334 SELECT - col2 * ( + col1 ) / - col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL + cor0.col2 * 77 FROM tab0 AS cor0 ---- 2541 6314 77 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3336 SELECT col2 + - CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3336 SELECT col2 + - CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 * - 34 AS col2 FROM tab2 AS cor0 ---- -1054 -2006 -578 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + - col0 * - col2 col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT tab0.col2 + 92 + col2 * col2 AS col0 FROM tab0 ---- 1214 6898 94 query I rowsort SELECT + 54 FROM tab0 cor0 ---- 54 54 54 query I rowsort SELECT - 38 + col1 FROM tab0 AS cor0 ---- 48 53 59 query I rowsort SELECT col0 + + ( col1 ) * col2 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT DISTINCT 86 FROM tab2, tab1 cor0 ---- 86 query I rowsort SELECT - tab1.col1 * col0 AS col0 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT ALL - 73 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3 ---- 243 values hashing to 1c735de9402673b354647705c869fc12 query I rowsort SELECT DISTINCT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 + + col0 col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ALL - col1 * + col0 + 77 FROM tab0 AS cor0 ---- -1987 -3318 -8022 query I rowsort SELECT - col0 - 6 AS col2 FROM tab2 ---- -13 -84 -85 onlyif mysql # use DIV operator for integer division query I rowsort label-3350 SELECT + col2 - col1 DIV CAST( + col0 AS SIGNED ) AS col0 FROM tab2 ---- 23 26 38 skipif mysql # not compatible query I rowsort label-3350 SELECT + col2 - col1 / CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 ---- 23 26 38 query I rowsort SELECT DISTINCT 51 * + col0 AS col1 FROM tab0 ---- 1224 1785 4539 query I rowsort SELECT col0 * col2 - + 36 FROM tab1 ---- 126 3612 7644 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col0 * 64 col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 461ef4be55d240f44dc07da96ad128fd query I rowsort SELECT DISTINCT - col0 * + 63 AS col1 FROM tab1 AS cor0 ---- -189 -4032 -5040 query I rowsort SELECT ( col2 ) * col1 + - col1 * col0 + + col0 FROM tab2 AS cor0 ---- -2990 -618 627 onlyif mysql # use DIV operator for integer division query I rowsort label-3356 SELECT DISTINCT col2 + col0 DIV col0 FROM tab2 AS cor0 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-3356 SELECT DISTINCT col2 + col0 / col0 FROM tab2 AS cor0 ---- 27 28 39 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3357 SELECT ALL + - CAST( col2 AS SIGNED ) * col2 + 73 FROM tab2 cor0 ---- -1371 -603 -656 skipif mysql # not compatible query I rowsort label-3357 SELECT ALL + - CAST ( col2 AS INTEGER ) * col2 + 73 FROM tab2 cor0 ---- -1371 -603 -656 query I rowsort SELECT DISTINCT - tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- -7 -78 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col2 + col1 col2 FROM tab2 ---- -21 33 4 query I rowsort SELECT + tab0.col2 + + col1 FROM tab0 ---- 119 173 98 query I rowsort SELECT ( ( col1 ) ) + ( - col2 + + col1 ) FROM tab2 ---- -4 35 92 query I rowsort SELECT ALL + 20 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4 query I rowsort SELECT ( col2 ) * col2 * col2 FROM tab2 ---- 17576 19683 54872 query I rowsort SELECT + tab2.col0 - + tab2.col2 FROM tab2 ---- -20 41 52 query I rowsort SELECT ALL 92 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 20 * + col2 * col0 col1 FROM tab1 ---- 153600 3240 72960 query I rowsort SELECT 8 + - col1 FROM tab2 ---- -23 -51 -9 query I rowsort SELECT ALL - cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT DISTINCT ( + 59 ) FROM tab2 AS cor0 ---- 59 query I rowsort SELECT + ( 44 ) AS col0 FROM tab2 AS cor0 ---- 44 44 44 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab1.col2 - + col0 * tab1.col1 * col1 col2 FROM tab1 ---- -13424 -1974 -6343 query I rowsort SELECT DISTINCT - 43 AS col2 FROM tab2 ---- -43 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3373 SELECT DISTINCT col2 + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 ---- 109 67 80 skipif mysql # not compatible query I rowsort label-3373 SELECT DISTINCT col2 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT col0 - col1 AS col2 FROM tab0 ---- -2 -62 query I rowsort SELECT DISTINCT - + 0 * col0 + 99 * + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 693 7722 7821 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * col2 col0 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT - col0 * - col2 + - col1 AS col0 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT DISTINCT - - col0 + - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT DISTINCT + col1 * ( col1 * cor0.col0 ) - + col1 FROM tab0 AS cor0 ---- 177418 329218 736918 query I rowsort SELECT DISTINCT - col1 * col1 * col1 FROM tab1 AS cor0 ---- -1000 -17576 -2197 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col0 + col2 col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 onlyif mysql # use DIV operator for integer division query I rowsort label-3382 SELECT col1 DIV - col1 AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3382 SELECT col1 / - col1 AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT col2 * 55 AS col1 FROM tab0 cor0 ---- 1815 4510 55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3384 SELECT + col0 - CAST( - 78 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 142 158 81 skipif mysql # not compatible query I rowsort label-3384 SELECT + col0 - CAST ( - 78 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 142 158 81 onlyif mysql # use DIV operator for integer division query I rowsort label-3385 SELECT ALL - - col1 + + 39 DIV + col2 AS col0 FROM tab0 AS cor0 ---- 136 87 91 skipif mysql # not compatible query I rowsort label-3385 SELECT ALL - - col1 + + 39 / + col2 AS col0 FROM tab0 AS cor0 ---- 136 87 91 onlyif mysql # use DIV operator for integer division query I rowsort label-3386 SELECT ALL - - col0 DIV + col2 AS col0 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3386 SELECT ALL - - col0 / + col2 AS col0 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT + col1 + - col0 * cor0.col0 FROM tab0 AS cor0 ---- -1128 -490 -7830 query I rowsort SELECT - cor0.col2 + + ( - ( - col1 ) ) FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL + - col1 + + col0 * col1 FROM tab1 cor0 ---- 1027 52 630 query I rowsort SELECT DISTINCT - - cor0.col1 - - 81 AS col1 FROM tab0 AS cor0 ---- 167 172 178 query I rowsort SELECT ALL + col1 + - 27 AS col2 FROM tab2 AS cor0 ---- -10 32 4 query I rowsort SELECT col2 * ( - col1 + + col1 ) AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT + col1 * + ( col0 ) * col1 AS col0 FROM tab0 ---- 177504 329315 737009 query I rowsort SELECT 22 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 query I rowsort SELECT - tab2.col2 + col2 * - col0 AS col1 FROM tab2 ---- -2054 -216 -3040 onlyif mysql # use DIV operator for integer division query I rowsort label-3396 SELECT + col1 DIV - 9 FROM tab0 ---- -10 -10 -9 skipif mysql # not compatible query I rowsort label-3396 SELECT + col1 / - 9 FROM tab0 ---- -10 -10 -9 query I rowsort SELECT ALL col0 + - 54 AS col1 FROM tab1 ---- -51 10 26 query I rowsort SELECT ALL + cor0.col0 + + col0 AS col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT - col1 * 90 AS col1 FROM tab1 ---- -1170 -2340 -900 query I rowsort SELECT + ( - 39 ) - + col1 FROM tab1 AS cor0 ---- -49 -52 -65 onlyif mysql # use DIV operator for integer division query I rowsort label-3401 SELECT 70 * + col2 + col0 DIV cor0.col0 FROM tab0 AS cor0 ---- 2311 5741 71 skipif mysql # not compatible query I rowsort label-3401 SELECT 70 * + col2 + col0 / cor0.col0 FROM tab0 AS cor0 ---- 2311 5741 71 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3402 SELECT - CAST( NULL AS SIGNED ) + + col2 col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3402 SELECT - CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 - + col1 * col2 col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT ALL col0 * cor0.col2 + col0 + + col0 AS col2 FROM tab0 AS cor0 ---- 105 7476 840 query I rowsort SELECT DISTINCT col1 * 57 + - col0 + + col0 AS col1 FROM tab2 AS cor0 ---- 1767 3363 969 query I rowsort SELECT + 68 * + cor0.col1 + + col1 AS col1 FROM tab0 AS cor0 ---- 5934 6279 6693 onlyif mysql # use DIV operator for integer division query I rowsort label-3407 SELECT col2 DIV - 49 AS col1 FROM tab0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-3407 SELECT col2 / - 49 AS col1 FROM tab0 ---- -1 0 0 query I rowsort SELECT DISTINCT - col2 + 40 * col1 FROM tab2 ---- 1213 2334 642 query I rowsort SELECT ALL - ( - cor0.col2 ) AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT + cor0.col1 + + col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT + 60 AS col1 FROM tab1 AS cor0 ---- 60 60 60 query I rowsort SELECT col2 + + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT + - ( + col2 ) AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT - - ( - col0 ) * + col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT 3 FROM tab2 cor0 ---- 3 query I rowsort SELECT ALL - + cor0.col0 + col2 * + ( col0 ) * + col0 FROM tab2 AS cor0 ---- 1316 158106 237079 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 * col0 col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - ( + cor0.col0 ) + + cor0.col0 * + 16 AS col2 FROM tab2 AS cor0 ---- 105 1170 1185 query I rowsort SELECT ALL 77 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 051bf10c50e061d74ad0a4d205a1c622 query I rowsort SELECT ALL - ( + 57 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 520dc393896969e02a72ab6c5d92126b query I rowsort SELECT + ( col2 + 10 ) FROM tab1 ---- 106 64 67 onlyif mysql # use DIV operator for integer division query I rowsort label-3422 SELECT DISTINCT - + 17 + + col0 * CAST( + ( col2 ) AS SIGNED ) DIV 53 AS col0 FROM tab0 AS cor0 ---- -17 -3 120 skipif mysql # not compatible query I rowsort label-3422 SELECT DISTINCT - + 17 + + col0 * CAST ( + ( col2 ) AS INTEGER ) / 53 AS col0 FROM tab0 AS cor0 ---- -17 -3 120 query I rowsort SELECT + + cor0.col1 * - col0 AS col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL cor0.col2 * col0 + + ( + cor0.col1 ) FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT + - ( col2 ) FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT - ( 22 ) * - col1 AS col0 FROM tab2 ---- 1298 374 682 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( col1 ) col0 FROM tab0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3428 SELECT ALL - CAST( 93 AS SIGNED ) FROM tab2 ---- -93 -93 -93 skipif mysql # not compatible query I rowsort label-3428 SELECT ALL - CAST ( 93 AS INTEGER ) FROM tab2 ---- -93 -93 -93 query I rowsort SELECT + ( - col0 ) AS col1 FROM tab1 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 72 col1 FROM tab1 ---- 72 72 72 query I rowsort SELECT ALL ( ( col2 ) ) FROM tab2 ---- 26 27 38 query I rowsort SELECT - ( - cor1.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT + - cor0.col0 * - col2 - - col0 * col2 FROM tab2 AS cor0 ---- 378 4056 6004 query I rowsort SELECT cor0.col0 - - col0 AS col2 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT ( + col1 ) + 44 * - col0 * col0 AS col0 FROM tab1 AS cor0 ---- -180214 -281587 -370 onlyif mysql # use DIV operator for integer division query I rowsort label-3436 SELECT col0 DIV - col0 + - col2 * - col1 AS col1 FROM tab2 AS cor0 ---- 1533 645 836 skipif mysql # not compatible query I rowsort label-3436 SELECT col0 / - col0 + - col2 * - col1 AS col1 FROM tab2 AS cor0 ---- 1533 645 836 query I rowsort SELECT - col0 * col0 - 48 AS col1 FROM tab2 cor0 ---- -6132 -6289 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 7 * - col1 - + tab1.col2 col1 FROM tab1 ---- -5 128 13 query I rowsort SELECT DISTINCT + 46 FROM tab1, tab1 AS cor0 ---- 46 onlyif mysql # use DIV operator for integer division query I rowsort label-3440 SELECT - ( - col1 ) - col2 DIV - 6 FROM tab1 ---- 19 29 35 skipif mysql # not compatible query I rowsort label-3440 SELECT - ( - col1 ) - col2 / - 6 FROM tab1 ---- 19 29 35 query I rowsort SELECT + 79 + 52 AS col2 FROM tab0 AS cor0 ---- 131 131 131 query I rowsort SELECT - 89 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 924a74d31360fa4301c953b423a4710e query I rowsort SELECT col0 + - 4 * col0 FROM tab0 ---- -105 -267 -72 query I rowsort SELECT - 73 * - cor0.col1 AS col0 FROM tab2 cor0 ---- 1241 2263 4307 query I rowsort SELECT - 94 FROM tab0, tab2 AS cor0 ---- 9 values hashing to a95bfa539191d3f72f6548147d7efb9e query I rowsort SELECT ALL + ( - col2 ) * + col0 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT ALL col1 + - col1 AS col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL - ( col1 ) + - col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT DISTINCT + ( 55 ) - - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 133 134 62 query I rowsort SELECT DISTINCT + - col0 + 25 AS col1 FROM tab1 AS cor0 ---- -39 -55 22 onlyif mysql # use DIV operator for integer division query I rowsort label-3451 SELECT + + col2 DIV col0 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 87 91 97 skipif mysql # not compatible query I rowsort label-3451 SELECT + + col2 / col0 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 87 91 97 query I rowsort SELECT ALL + col1 * + 37 + col1 * col2 FROM tab2 cor0 ---- 1275 1984 3717 query I rowsort SELECT + ( col2 ) + col1 AS col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT 15 * col1 + col0 AS col1 FROM tab2 AS cor0 ---- 334 472 963 query I rowsort SELECT DISTINCT - ( col0 ) + + col2 + - col2 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-3456 SELECT - - 96 DIV + col0 + + col0 + - ( cor0.col2 ) DIV - col0 AS col1 FROM tab0 AS cor0 ---- 29 37 90 skipif mysql # not compatible query I rowsort label-3456 SELECT - - 96 / + col0 + + col0 + - ( cor0.col2 ) / - col0 AS col1 FROM tab0 AS cor0 ---- 29 37 90 query I rowsort SELECT ALL + col0 * 93 FROM tab0 AS cor0 ---- 2232 3255 8277 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 10 * - col2 col1 FROM tab2 AS cor0 ---- 260 270 380 query I rowsort SELECT ALL col2 + - col1 * 63 AS col2 FROM tab1 AS cor0 ---- -1584 -573 -723 query I rowsort SELECT DISTINCT + - col0 * col0 + col1 * - col1 * + col2 AS col1 FROM tab0 AS cor0 ---- -10634 -244644 -686963 onlyif mysql # use DIV operator for integer division query I rowsort label-3461 SELECT DISTINCT 85 DIV col2 AS col1 FROM tab0 AS cor0 ---- 1 2 85 skipif mysql # not compatible query I rowsort label-3461 SELECT DISTINCT 85 / col2 AS col1 FROM tab0 AS cor0 ---- 1 2 85 onlyif mysql # use DIV operator for integer division query I rowsort label-3462 SELECT ALL col2 * + col1 - col0 DIV col0 AS col2 FROM tab0 AS cor0 ---- 2837 7461 96 skipif mysql # not compatible query I rowsort label-3462 SELECT ALL col2 * + col1 - col0 / col0 AS col2 FROM tab0 AS cor0 ---- 2837 7461 96 query I rowsort SELECT DISTINCT - col1 - col0 * - ( + col1 ) FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT ALL - 81 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to bab7cb237ee73283089388c330f59598 query I rowsort SELECT DISTINCT - cor0.col1 * - col1 + col1 AS col2 FROM tab1 AS cor0 ---- 110 182 702 query I rowsort SELECT ALL + col0 - - cor0.col2 * 96 FROM tab0 AS cor0 ---- 131 3192 7961 query I rowsort SELECT + 37 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to a10b03e72860b949bdff53827700a9a8 query I rowsort SELECT 36 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 4d1892e880125dc90345721151acb22c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3469 SELECT - col0 * cor0.col2 * - CAST( - col2 + - col2 AS SIGNED ) FROM tab0 AS cor0 ---- -1196872 -52272 -70 skipif mysql # not compatible query I rowsort label-3469 SELECT - col0 * cor0.col2 * - CAST ( - col2 + - col2 AS INTEGER ) FROM tab0 AS cor0 ---- -1196872 -52272 -70 query I rowsort SELECT - cor0.col0 + col1 * col0 AS col0 FROM tab2 AS cor0 ---- 1264 210 4524 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * + 60 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to bcace913b02f67b9596380ee1965ba58 query I rowsort SELECT + - col2 * 36 * + col2 FROM tab2 AS cor0 ---- -24336 -26244 -51984 query I rowsort SELECT - col0 + - 57 + - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -213 -215 -71 query I rowsort SELECT ALL + col0 + ( - col2 ) * col1 AS col2 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT col2 * - 35 * 41 + + col0 AS col2 FROM tab0 ---- -117581 -1400 -47331 query I rowsort SELECT - col2 * 80 FROM tab1 AS cor0 ---- -4320 -4560 -7680 query I rowsort SELECT ALL ( + 37 + cor0.col2 ) AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 25dc868fb8250f96bf40c539dcc3e267 query I rowsort SELECT - ( - cor0.col0 ) + + 16 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 53c25b7052cbb3298b89c94a5bb072ef query I rowsort SELECT ALL + cor0.col1 * col1 * - ( col0 ) FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT ALL - 67 + col2 AS col0 FROM tab1 AS cor0 ---- -10 -13 29 query I rowsort SELECT - 27 * cor0.col1 * + col1 + 96 * 8 FROM tab0 AS cor0 ---- -198924 -222819 -253275 query I rowsort SELECT ALL - + col2 * 75 + col0 * - 0 * ( + col1 * - col1 ) FROM tab2 cor0 ---- -1950 -2025 -2850 query I rowsort SELECT DISTINCT 52 + - 66 AS col2 FROM tab0 AS cor0 ---- -14 query I rowsort SELECT + col0 * + col1 * - cor0.col2 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT + col0 * col2 * + 13 AS col2 FROM tab2 ---- 2457 26364 39026 query I rowsort SELECT - 58 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to a38440572743ed8a3d8af7b49a5388c9 query I rowsort SELECT DISTINCT + 80 AS col0 FROM tab1, tab1 cor0 ---- 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * - 23 + 14 col1 FROM tab2 ---- -147 -1780 -1803 query I rowsort SELECT DISTINCT - tab0.col0 + ( + 84 ) * col2 * - col0 + col1 * - col2 FROM tab0 ---- -3072 -620583 -69390 onlyif mysql # use DIV operator for integer division query I rowsort label-3490 SELECT col0 + 65 * col1 DIV cor0.col2 col1 FROM tab0 AS cor0 ---- 161 193 6340 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3490 SELECT col0 + 65 * col1 / cor0.col2 col1 FROM tab0 AS cor0 ---- 161 193 6340 query I rowsort SELECT ALL - cor0.col1 * 47 * col0 + - col1 + + cor0.col1 AS col0 FROM tab1 AS cor0 ---- -30080 -3666 -48880 query I rowsort SELECT DISTINCT - col1 - - col1 FROM tab2 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * 55 + + cor0.col2 col2 FROM tab1 AS cor0 ---- -2916 -3078 -5184 onlyif mysql # use DIV operator for integer division query I rowsort label-3494 SELECT + col0 DIV + col1 AS col0 FROM tab1 ---- 0 6 6 skipif mysql # not compatible query I rowsort label-3494 SELECT + col0 / + col1 AS col0 FROM tab1 ---- 0 6 6 query I rowsort SELECT ALL + + col2 * + ( 1 + cor0.col1 ) AS col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT - col1 - ( - col1 ) FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3497 SELECT - - col0 DIV ( - 43 ) FROM tab0 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-3497 SELECT - - col0 / ( - 43 ) FROM tab0 AS cor0 ---- -2 0 0 query I rowsort SELECT cor0.col0 * + col1 + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 skipif mysql # not compatible query I rowsort SELECT + + col1 + CAST ( col2 + + col2 AS REAL ) / - col2 AS col0 FROM tab0 AS cor0 ---- 84 89 95 query I rowsort SELECT DISTINCT - + col0 * ( 31 ) AS col0 FROM tab0 AS cor0 ---- -1085 -2759 -744 query I rowsort SELECT + col1 + 59 AS col2 FROM tab0 AS cor0 ---- 145 150 156 query I rowsort SELECT + + col1 * + 0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - + 1 FROM tab2 AS cor0 ---- -1 -1 -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3504 SELECT col0 * CAST( NULL AS SIGNED ) / tab2.col0 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3504 SELECT col0 * CAST ( NULL AS INTEGER ) / tab2.col0 AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - cor0.col0 * + col2 + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT tab1.col1 + - 76 * col2 FROM tab1 ---- -4078 -4322 -7283 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 74 col2 FROM tab0 AS cor0 ---- -74 -74 -74 query I rowsort SELECT ALL - + 11 FROM tab0 AS cor0 ---- -11 -11 -11 query I rowsort SELECT - ( - cor0.col2 ) * cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d query I rowsort SELECT DISTINCT + 35 + + col0 AS col1 FROM tab0 cor0 ---- 124 59 70 query I rowsort SELECT 97 + - 92 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6797d40099023779b89feb627d94a3e7 query I rowsort SELECT DISTINCT - col0 + col2 * - 49 * + col0 + col1 FROM tab1 AS cor0 ---- -178806 -376387 -7915 query I rowsort SELECT ALL + - col1 - col1 AS col0 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT DISTINCT - + cor0.col1 FROM tab0, tab2, tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-3515 SELECT DISTINCT + col1 DIV col0 AS col1 FROM tab1 ---- 0 8 skipif mysql # not compatible query I rowsort label-3515 SELECT DISTINCT + col1 / col0 AS col1 FROM tab1 ---- 0 8 query I rowsort SELECT + col1 * + ( + col2 + + cor0.col2 ) FROM tab2 cor0 ---- 1292 1674 3068 query I rowsort SELECT DISTINCT 35 AS col1 FROM tab2, tab0 AS cor0 ---- 35 query I rowsort SELECT DISTINCT + 80 FROM tab0, tab2 AS cor0 ---- 80 query I rowsort SELECT ALL + tab1.col1 AS col0 FROM tab1, tab0, tab1 cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL 87 * + 15 FROM tab0, tab2 cor0 ---- 9 values hashing to 5c1fe99b7792d9cf384c28553d343140 query I rowsort SELECT + ( col2 + tab2.col0 ) * ( - col2 ) AS col0 FROM tab2 ---- -2704 -4446 -918 query I rowsort SELECT + col1 + col1 * col2 * + 30 AS col2 FROM tab2 ---- 19397 25141 46079 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( tab1.col1 * col0 ) col2 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT - ( - 54 + - col1 * - col2 ) AS col0 FROM tab2 ---- -1480 -592 -783 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3525 SELECT DISTINCT - CAST( NULL AS SIGNED ) - ( - col2 ) * + ( col0 ) col2 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3525 SELECT DISTINCT - CAST ( NULL AS INTEGER ) - ( - col2 ) * + ( col0 ) col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ( col1 ) * col0 AS col0 FROM tab1 AS cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col0 col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3528 SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 87 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3528 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 87 FROM tab0 cor0 ---- NULL query I rowsort SELECT ALL ( + col1 * + col2 ) FROM tab1 ---- 1248 1404 570 query I rowsort SELECT ALL + + 38 FROM tab0 AS cor0 ---- 38 38 38 query I rowsort SELECT DISTINCT - col2 + cor0.col1 AS col2 FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT + 5 * + col0 + - col2 AS col0 FROM tab0 AS cor0 ---- 174 363 87 query I rowsort SELECT 40 FROM tab2 cor0 ---- 40 40 40 onlyif mysql # use DIV operator for integer division query I rowsort label-3534 SELECT 12 DIV - col2 FROM tab0 AS cor0 ---- -12 0 0 skipif mysql # not compatible query I rowsort label-3534 SELECT 12 / - col2 FROM tab0 AS cor0 ---- -12 0 0 query I rowsort SELECT - + cor0.col0 * col0 AS col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT ALL - tab2.col2 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 onlyif mysql # use DIV operator for integer division query I rowsort label-3537 SELECT col2 DIV - col1 + - col2 AS col0 FROM tab0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-3537 SELECT col2 / - col1 + - col2 AS col0 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT ALL 94 + cor0.col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 7beaac63b2b0d5e3c2df409531e6410f query I rowsort SELECT 14 + + col2 AS col2 FROM tab2 ---- 40 41 52 query I rowsort SELECT + ( cor0.col0 ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6 query I rowsort SELECT + col1 * - col2 * - col2 AS col1 FROM tab2 cor0 ---- 22599 24548 39884 query I rowsort SELECT DISTINCT ( col1 ) * + col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ( col0 ) * + col2 AS col0 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT ALL + + 8 + - col2 * + col2 FROM tab1 AS cor0 ---- -2908 -3241 -9208 onlyif mysql # use DIV operator for integer division query I rowsort label-3545 SELECT DISTINCT + ( - col2 ) DIV col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-3545 SELECT DISTINCT + ( - col2 ) / col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 + - ( + col0 ) * + col0 + cor0.col0 col1 FROM tab1 cor0 ---- -3 -3968 -6240 query I rowsort SELECT DISTINCT + 66 * col1 AS col1 FROM tab0 AS cor0 ---- 5676 6006 6402 query I rowsort SELECT ALL col2 * + col2 - 38 FROM tab2 AS cor0 ---- 1406 638 691 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3549 SELECT ALL + 69 + col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- 231 3717 7749 skipif mysql # not compatible query I rowsort label-3549 SELECT ALL + 69 + col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- 231 3717 7749 query I rowsort SELECT + + 19 * + col1 AS col0 FROM tab2 cor0 ---- 1121 323 589 query I rowsort SELECT DISTINCT + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - 65 AS col0 FROM tab1 AS cor0 ---- -65 -65 -65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3553 SELECT DISTINCT - ( - col1 ) + CAST( - col0 AS SIGNED ) * col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 skipif mysql # not compatible query I rowsort label-3553 SELECT DISTINCT - ( - col1 ) + CAST ( - col0 AS INTEGER ) * col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT ALL col0 + + col2 AS col0 FROM tab1 AS cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-3555 SELECT DISTINCT 77 DIV col2 - - 14 FROM tab1 cor0 ---- 14 15 skipif mysql # not compatible query I rowsort label-3555 SELECT DISTINCT 77 / col2 - - 14 FROM tab1 cor0 ---- 14 15 query I rowsort SELECT 79 + - col0 * col0 FROM tab0 ---- -1146 -497 -7842 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 71 col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to e72f95c346714d3065a96d67a6fd5062 query I rowsort SELECT ALL - + cor0.col0 * ( + col0 ) FROM tab2 AS cor0 ---- -49 -6084 -6241 onlyif mysql # use DIV operator for integer division query I rowsort label-3559 SELECT - col1 DIV 57 + col1 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-3559 SELECT - col1 / 57 + col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT - col2 * - 60 AS col1 FROM tab0 AS cor0 ---- 1980 4920 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( - cor1.col0 ) col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - col1 col2 FROM tab0 ---- 2064 3395 8099 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to 773bb916e463ebc075d701108532badb onlyif mysql # use DIV operator for integer division query I rowsort label-3564 SELECT - col2 + - col0 DIV + col2 + - col0 FROM tab0 AS cor0 ---- -172 -57 -71 skipif mysql # not compatible query I rowsort label-3564 SELECT - col2 + - col0 / + col2 + - col0 FROM tab0 AS cor0 ---- -172 -57 -71 query I rowsort SELECT DISTINCT 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1 ---- 23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3566 SELECT ALL CAST( - 25 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 40ac8fd000b2e49317aed2411077839e skipif mysql # not compatible query I rowsort label-3566 SELECT ALL CAST ( - 25 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 40ac8fd000b2e49317aed2411077839e skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + + 75 col0 FROM tab0 AS cor0 ---- 110 164 99 query I rowsort SELECT - ( + col1 ) * col1 + 89 * - col1 + + col1 AS col0 FROM tab0 AS cor0 ---- -14964 -16289 -17945 onlyif mysql # use DIV operator for integer division query I rowsort label-3569 SELECT CAST( col1 AS SIGNED ) DIV - col1 AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3569 SELECT CAST ( col1 AS INTEGER ) / - col1 AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT - - 68 FROM tab1 AS cor0 ---- 68 onlyif mysql # use DIV operator for integer division query I rowsort label-3571 SELECT + - ( col2 ) DIV cor0.col2 + - 83 * + 23 + - cor0.col0 FROM tab0 AS cor0 ---- -1934 -1945 -1999 skipif mysql # not compatible query I rowsort label-3571 SELECT + - ( col2 ) / cor0.col2 + - 83 * + 23 + - cor0.col0 FROM tab0 AS cor0 ---- -1934 -1945 -1999 query I rowsort SELECT col2 + - 82 AS col0 FROM tab1 ---- -25 -28 14 query I rowsort SELECT - ( - col2 * - col1 ) + 31 FROM tab2 ---- -1503 -615 -806 query I rowsort SELECT ALL - ( col1 ) + col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 42 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1 ---- 81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3576 SELECT + CAST( NULL AS DECIMAL ) * + col0 + col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3576 SELECT + CAST ( NULL AS REAL ) * + col0 + col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 * col1 + cor0.col0 FROM tab2 AS cor0 ---- -1264 -210 -4524 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + - 82 * col2 col1 FROM tab2 AS cor0 ---- -2158 -2241 -3154 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 12 + ( - col0 ) col1 FROM tab2 AS cor0 ---- -66 -67 5 query I rowsort SELECT DISTINCT - - 86 * col1 AS col1 FROM tab0 AS cor0 ---- 7396 7826 8342 onlyif mysql # use DIV operator for integer division query I rowsort label-3581 SELECT + - col2 + col2 DIV col1 AS col0 FROM tab2 cor0 ---- -26 -27 -36 skipif mysql # not compatible query I rowsort label-3581 SELECT + - col2 + col2 / col1 AS col0 FROM tab2 cor0 ---- -26 -27 -36 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3582 SELECT ALL - + CAST( 64 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -64 -64 -64 skipif mysql # not compatible query I rowsort label-3582 SELECT ALL - + CAST ( 64 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -64 -64 -64 query I rowsort SELECT DISTINCT + + col0 + 67 AS col0 FROM tab1 AS cor0 ---- 131 147 70 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( - col1 AS REAL ) * cor0.col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL + - 8 AS col2 FROM tab0 AS cor0 ---- -8 -8 -8 query I rowsort SELECT + + 40 AS col2 FROM tab2 AS cor0 ---- 40 40 40 query I rowsort SELECT DISTINCT - 44 AS col1 FROM tab2 AS cor0 ---- -44 query I rowsort SELECT col2 + - 69 AS col0 FROM tab0 AS cor0 ---- -36 -68 13 query I rowsort SELECT + + 42 AS col1 FROM tab0 AS cor0 ---- 42 42 42 onlyif mysql # use DIV operator for integer division query I rowsort label-3590 SELECT DISTINCT - 37 DIV 12 FROM tab0 AS cor0 ---- -3 skipif mysql # not compatible query I rowsort label-3590 SELECT DISTINCT - 37 / 12 FROM tab0 AS cor0 ---- -3 query I rowsort SELECT ( + 10 ) + col0 FROM tab2 cor0 ---- 17 88 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - ( col0 ) col2 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3593 SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-3593 SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 + + col2 * + 70 * col2 col2 FROM tab1 AS cor0 ---- 204146 227440 645133 query I rowsort SELECT - + col1 + + 47 * - 32 AS col1 FROM tab1 AS cor0 ---- -1514 -1517 -1530 query I rowsort SELECT + col1 + - 40 + + col0 * col2 FROM tab1 ---- 148 3618 7653 query I rowsort SELECT DISTINCT - col2 * + 8 + ( - col2 ) AS col2 FROM tab2 AS cor0 ---- -234 -243 -342 query I rowsort SELECT ALL + col0 + + ( col1 ) + col2 AS col2 FROM tab1 AS cor0 ---- 131 189 83 query I rowsort SELECT DISTINCT - col2 + + col1 * - col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT DISTINCT + col2 * 23 AS col2 FROM tab1 AS cor0 ---- 1242 1311 2208 query I rowsort SELECT ALL + 14 FROM tab1 AS cor0 ---- 14 14 14 query I rowsort SELECT DISTINCT + - col1 * col2 * col0 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT ALL + + ( 9 ) + + col2 AS col0 FROM tab1 AS cor0 ---- 105 63 66 onlyif mysql # use DIV operator for integer division query I rowsort label-3604 SELECT DISTINCT + ( col0 ) + - cor0.col0 DIV + 1 AS col2 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-3604 SELECT DISTINCT + ( col0 ) + - cor0.col0 / + 1 AS col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL - col2 + 70 AS col2 FROM tab0 cor0 ---- -12 37 69 query I rowsort SELECT ALL ( + col2 ) + + cor0.col2 FROM tab0 AS cor0 ---- 164 2 66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 * + col2 col2 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT + - col2 + cor0.col2 FROM tab1 cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - col1 ) + 41 col2 FROM tab1 AS cor0 ---- 15 28 31 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3610 SELECT - ( + col0 ) - CAST( NULL AS SIGNED ) * - 58 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3610 SELECT - ( + col0 ) - CAST ( NULL AS INTEGER ) * - 58 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col2 * col1 + col1 * col2 * cor0.col0 FROM tab0 AS cor0 ---- 3298 65274 656656 query I rowsort SELECT ALL - 4 + - col2 AS col0 FROM tab2 cor0 ---- -30 -31 -42 query I rowsort SELECT ( col0 ) * - 14 AS col1 FROM tab0 AS cor0 ---- -1246 -336 -490 query I rowsort SELECT - + 70 * col2 AS col1 FROM tab0 AS cor0 ---- -2310 -5740 -70 query I rowsort SELECT DISTINCT - - col2 * - ( 73 ) FROM tab0 AS cor0 ---- -2409 -5986 -73 query I rowsort SELECT DISTINCT col0 * cor0.col0 AS col1 FROM tab1 cor0 ---- 4096 6400 9 query I rowsort SELECT cor0.col2 + + cor0.col2 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to e5ee086d16e1b2450d3f7ac8d26a0f7b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col2 + col2 col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT - + tab2.col2 AS col1 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT DISTINCT + col2 * - ( + ( col2 ) + - ( + ( + col0 ) ) ) FROM tab0 ---- -297 34 574 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + ( + cor0.col0 ) * cor0.col0 col0 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT ALL col2 * col0 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 70 7387 816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3623 SELECT ALL + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3623 SELECT ALL + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 + + col2 + - ( col2 ) AS col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + cor0.col2 * - col1 * col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT + - col0 * + col2 AS col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT col0 + 62 AS col0 FROM tab1 AS cor0 ---- 126 142 65 query I rowsort SELECT DISTINCT - ( + col0 ) * + col0 + col0 AS col2 FROM tab1 cor0 ---- -4032 -6 -6320 query I rowsort SELECT + 99 * col0 FROM tab0 AS cor0 ---- 2376 3465 8811 onlyif mysql # use DIV operator for integer division query I rowsort label-3630 SELECT ALL - col2 DIV col1 + - cor0.col0 DIV ( col0 ) - col2 FROM tab0 AS cor0 ---- -2 -34 -83 skipif mysql # not compatible query I rowsort label-3630 SELECT ALL - col2 / col1 + - cor0.col0 / ( col0 ) - col2 FROM tab0 AS cor0 ---- -2 -34 -83 query I rowsort SELECT ALL - 73 + ( - col2 ) FROM tab2 AS cor0 ---- -100 -111 -99 query I rowsort SELECT DISTINCT + 57 FROM tab1, tab0 AS cor0 ---- 57 query I rowsort SELECT col1 + - ( + tab1.col2 ) FROM tab1 ---- -28 -47 -83 query I rowsort SELECT - col2 * - col1 + col0 AS col2 FROM tab1 ---- 1328 1407 634 query I rowsort SELECT + 7 * col0 FROM tab2 AS cor0 ---- 49 546 553 query I rowsort SELECT DISTINCT - 55 AS col0 FROM tab1, tab0 cor0 ---- -55 query I rowsort SELECT ALL + + 30 FROM tab2 AS cor0 ---- 30 30 30 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 40 col2 FROM tab0 AS cor0 ---- 40 40 40 query I rowsort SELECT - 61 * + cor0.col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to c792bd96b6665050f0d569a6a2b825c2 query I rowsort SELECT ALL 16 + 2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query I rowsort SELECT ALL + col1 * ( + col0 ) * tab0.col2 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT ALL + tab0.col0 * 17 FROM tab0 ---- 1513 408 595 query I rowsort SELECT + - col1 * + col2 AS col2 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT tab0.col1 * + col1 + col0 * + tab0.col0 AS col1 FROM tab0 ---- 10634 16202 7972 query I rowsort SELECT + cor0.col1 + 2 * 10 + - col0 FROM tab1 AS cor0 ---- -34 -47 43 query I rowsort SELECT - tab1.col2 * - tab1.col2 + + 13 + - col1 AS col0 FROM tab1 ---- 2903 3252 9216 query I rowsort SELECT 49 * col1 * col0 FROM tab2 ---- 10633 225498 65807 query I rowsort SELECT + col2 - + 67 * - col0 AS col2 FROM tab2 AS cor0 ---- 496 5252 5331 query I rowsort SELECT 85 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3650 SELECT col1 * - CAST( - col2 AS SIGNED ) + + col1 * ( + 49 ) AS col0 FROM tab2 AS cor0 ---- 1479 2356 4425 skipif mysql # not compatible query I rowsort label-3650 SELECT col1 * - CAST ( - col2 AS INTEGER ) + + col1 * ( + 49 ) AS col0 FROM tab2 AS cor0 ---- 1479 2356 4425 query I rowsort SELECT - col2 * ( col2 ) * col1 FROM tab1 AS cor0 ---- -119808 -32490 -75816 query I rowsort SELECT ALL col1 * col1 + col0 AS col1 FROM tab0 AS cor0 ---- 7420 8370 9444 onlyif mysql # use DIV operator for integer division query I rowsort label-3653 SELECT col1 DIV - 84 + col0 * col2 AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 skipif mysql # not compatible query I rowsort label-3653 SELECT col1 / - 84 + col0 * col2 AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + col0 + 59 FROM tab2 AS cor0 ---- 137 138 66 query I rowsort SELECT DISTINCT col1 + 75 * 29 + + col2 AS col1 FROM tab0 AS cor0 ---- 2273 2294 2348 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + col1 * 54 col2 FROM tab1 ---- 1458 597 798 query I rowsort SELECT ALL - 45 * col0 + - col2 AS col0 FROM tab1 ---- -189 -2937 -3696 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col1 col0 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT 79 * - col1 FROM tab1 ---- -1027 -2054 -790 query I rowsort SELECT tab2.col2 * col0 + col1 * col2 AS col0 FROM tab2 ---- 1026 3562 3648 query IIIIIIIIIIII rowsort SELECT * FROM tab1, tab0, tab2 AS cor0, tab2 cor1 ---- 972 values hashing to a698694a7dac245e42212ff0316bdf45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * tab1.col0 + col0 col1 FROM tab1 ---- 12 4160 6480 query I rowsort SELECT col0 + cor0.col1 * 81 FROM tab1 cor0 ---- 1133 2109 874 query I rowsort SELECT DISTINCT + cor0.col1 + 68 FROM tab2, tab2 AS cor0 ---- 127 85 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 * + col0 col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - + 96 FROM tab1 AS cor0 ---- -96 -96 -96 query I rowsort SELECT col1 + 26 AS col0 FROM tab0 AS cor0 ---- 112 117 123 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + - col1 * col0 col2 FROM tab0 AS cor0 ---- -2150 -3492 -8190 query I rowsort SELECT ALL - cor0.col1 * col2 + col0 + + col2 AS col2 FROM tab2 AS cor0 ---- -1430 -529 -803 query I rowsort SELECT DISTINCT + cor0.col0 + + col1 * - cor0.col0 FROM tab1 AS cor0 ---- -576 -75 -960 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3671 SELECT - + col2 + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 53 9 96 skipif mysql # not compatible query I rowsort label-3671 SELECT - + col2 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL - col0 * cor0.col2 + col0 AS col1 FROM tab1 AS cor0 ---- -159 -3584 -7600 onlyif mysql # use DIV operator for integer division query I rowsort label-3673 SELECT DISTINCT + col1 DIV + 42 - - 60 FROM tab2 AS cor0 ---- 60 61 skipif mysql # not compatible query I rowsort label-3673 SELECT DISTINCT + col1 / + 42 - - 60 FROM tab2 AS cor0 ---- 60 61 query I rowsort SELECT DISTINCT col0 * col1 + + col2 * col1 * col1 + - col2 AS col2 FROM tab1 AS cor0 ---- 17168 36528 6283 query I rowsort SELECT ALL - col0 - ( + ( + cor0.col1 ) ) AS col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT + cor0.col0 + ( col2 ) * - col2 AS col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 onlyif mysql # use DIV operator for integer division query I rowsort label-3677 SELECT col0 DIV 58 - - col2 col2 FROM tab0 AS cor0 ---- 1 33 83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3677 SELECT col0 / 58 - - col2 col2 FROM tab0 AS cor0 ---- 1 33 83 onlyif mysql # use DIV operator for integer division query I rowsort label-3678 SELECT + - col0 + + col2 - + col1 DIV - 5 col1 FROM tab1 AS cor0 ---- -5 18 56 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3678 SELECT + - col0 + + col2 - + col1 / - 5 col1 FROM tab1 AS cor0 ---- -5 18 56 query I rowsort SELECT + cor0.col1 * col2 + + col2 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT + 77 + col0 * + col0 AS col0 FROM tab2 AS cor0 ---- 126 6161 6318 query I rowsort SELECT + cor0.col0 * 73 AS col0 FROM tab1 AS cor0 ---- 219 4672 5840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 41 col0 FROM tab0 AS cor0 ---- 41 41 41 query I rowsort SELECT DISTINCT col0 + + tab2.col2 AS col0 FROM tab2 ---- 104 117 34 query I rowsort SELECT col0 * - 66 + cor0.col0 * + col1 FROM tab1 AS cor0 ---- -120 -3584 -4240 query I rowsort SELECT + - col0 + + cor0.col0 - - col0 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT + + 14 + 11 FROM tab0 AS cor0 ---- 25 25 25 onlyif mysql # use DIV operator for integer division query I rowsort label-3687 SELECT ALL - 18 DIV - col1 + col0 AS col0 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3687 SELECT ALL - 18 / - col1 + col0 AS col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT + - 82 AS col1 FROM tab0 AS cor0 ---- -82 -82 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * cor0.col2 + 40 col0 FROM tab2 AS cor0 ---- -1494 -606 -797 query I rowsort SELECT cor0.col1 * cor0.col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to ae5946db6904798b8afac35f5777bb79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3691 SELECT ALL ( col2 ) + - CAST( NULL AS SIGNED ) * - 33 * - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3691 SELECT ALL ( col2 ) + - CAST ( NULL AS INTEGER ) * - 33 * - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + ( col1 ) * + col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL col1 * col1 * - ( - ( col1 ) + - ( + ( - col0 ) ) * - 53 ) AS col2 FROM tab2 AS cor0 ---- 1214956 14595833 386322 query I rowsort SELECT + cor0.col0 - col1 AS col2 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL 99 AS col2 FROM tab0 AS cor0 ---- 99 99 99 query I rowsort SELECT DISTINCT - - col0 * + cor0.col0 + + 32 * - col2 FROM tab0 cor0 ---- -480 1193 5297 query I rowsort SELECT 39 * + col0 AS col2 FROM tab0 AS cor0 ---- 1365 3471 936 query I rowsort SELECT - 62 * col0 + + 12 AS col1 FROM tab2 AS cor0 ---- -422 -4824 -4886 query I rowsort SELECT + col1 * col0 + cor0.col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT DISTINCT + 33 * - cor0.col1 AS col0 FROM tab0 cor0 ---- -2838 -3003 -3201 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3701 SELECT ALL col0 * col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3701 SELECT ALL col0 * col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3702 SELECT 59 + col1 * + CAST( - 98 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -1607 -2979 -5723 skipif mysql # not compatible query I rowsort label-3702 SELECT 59 + col1 * + CAST ( - 98 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -1607 -2979 -5723 query I rowsort SELECT DISTINCT + 32 - 57 FROM tab0 ---- -25 query I rowsort SELECT ALL + ( + col1 ) - col1 AS col1 FROM tab0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - col2 - col0 col1 FROM tab0 ---- -70 -7387 -816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3706 SELECT + CAST( NULL AS SIGNED ) * tab2.col2 * col1 + + CAST( NULL AS SIGNED ) + + col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3706 SELECT + CAST ( NULL AS INTEGER ) * tab2.col2 * col1 + + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - col2 + col0 + col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT + col0 - cor0.col1 AS col0 FROM tab2 cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT - 15 FROM tab0, tab1, tab1 AS cor0 ---- -15 query I rowsort SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3711 SELECT CAST( - col1 * col1 AS SIGNED ) FROM tab0 ---- -7396 -8281 -9409 skipif mysql # not compatible query I rowsort label-3711 SELECT CAST ( - col1 * col1 AS INTEGER ) FROM tab0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT col0 + col0 * - 35 FROM tab2 ---- -238 -2652 -2686 query I rowsort SELECT - 83 * - col2 * - 99 + col2 + col1 * col1 * col2 FROM tab1 ---- -407160 -462612 -772512 query I rowsort SELECT DISTINCT 12 * col1 + ( col2 ) + + tab2.col1 FROM tab2 ---- 259 430 793 query I rowsort SELECT 38 + + col2 + col0 FROM tab0 ---- 209 74 95 query I rowsort SELECT col1 * col2 + col1 - + col2 AS col1 FROM tab0 ---- 193 2891 7471 onlyif mysql # use DIV operator for integer division query I rowsort label-3717 SELECT DISTINCT cor0.col0 DIV col1 AS col0 FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-3717 SELECT DISTINCT cor0.col0 / col1 AS col0 FROM tab2 AS cor0 ---- 0 1 4 onlyif mysql # use DIV operator for integer division query I rowsort label-3718 SELECT cor0.col1 DIV + col1 + - ( + col2 ) * - col2 * col0 FROM tab2 AS cor0 ---- 114077 5104 52729 skipif mysql # not compatible query I rowsort label-3718 SELECT cor0.col1 / + col1 + - ( + col2 ) * - col2 * col0 FROM tab2 AS cor0 ---- 114077 5104 52729 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 + + cor0.col0 col1 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT 19 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11 query I rowsort SELECT + 41 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e query I rowsort SELECT ALL 57 + - col0 * + col1 AS col0 FROM tab2 AS cor0 ---- -1286 -160 -4545 query I rowsort SELECT ALL - col2 + + col2 + - col0 AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ( + col2 ) + + cor0.col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT ALL + 39 - col1 * + col1 AS col0 FROM tab2 ---- -250 -3442 -922 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 - col2 col2 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3727 SELECT + - CAST( NULL AS DECIMAL ) / 76 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3727 SELECT + - CAST ( NULL AS REAL ) / 76 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3728 SELECT ALL - CAST( + 10 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0 ---- -100 -130 -260 skipif mysql # not compatible query I rowsort label-3728 SELECT ALL - CAST ( + 10 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0 ---- -100 -130 -260 query I rowsort SELECT DISTINCT + - 71 * - col0 + - cor0.col0 * ( col2 ) AS col0 FROM tab2 AS cor0 ---- 2607 308 3510 query I rowsort SELECT ALL - - 22 * + col1 FROM tab2 AS cor0 ---- 1298 374 682 query I rowsort SELECT DISTINCT - 36 + - col2 FROM tab1 AS cor0 ---- -132 -90 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-3732 SELECT - cor0.col1 DIV 38 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3732 SELECT - cor0.col1 / 38 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort SELECT + + col0 * - CAST ( - col0 AS REAL ) AS col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT cor0.col1 + col2 AS col1 FROM tab0 cor0 ---- 119 173 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3735 SELECT + tab1.col1 * - tab1.col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3735 SELECT + tab1.col1 * - tab1.col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT 30 * cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 9693f5ea9151a0c78bc109319136ccd6 query I rowsort SELECT col0 * - 74 * 79 AS col0 FROM tab0 AS cor0 ---- -140304 -204610 -520294 query I rowsort SELECT DISTINCT + - col0 + + 8 AS col0 FROM tab0 AS cor0 ---- -16 -27 -81 query I rowsort SELECT ALL + col1 * + 60 AS col0 FROM tab0 AS cor0 ---- 5160 5460 5820 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * + cor0.col2 col0 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3741 SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-3741 SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # use DIV operator for integer division query I rowsort label-3742 SELECT ALL - col1 + col0 * - col0 + col2 DIV - 35 AS col1 FROM tab2 ---- -6143 -6259 -80 skipif mysql # not compatible query I rowsort label-3742 SELECT ALL - col1 + col0 * - col0 + col2 / - 35 AS col1 FROM tab2 ---- -6143 -6259 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-3743 SELECT col1 + - ( + col1 ) DIV - col0 AS col2 FROM tab2 AS cor0 ---- 17 35 59 skipif mysql # not compatible query I rowsort label-3743 SELECT col1 + - ( + col1 ) / - col0 AS col2 FROM tab2 AS cor0 ---- 17 35 59 query I rowsort SELECT ALL - col2 * - 17 FROM tab0 AS cor0 ---- 1394 17 561 onlyif mysql # use DIV operator for integer division query I rowsort label-3745 SELECT DISTINCT + col2 + col0 DIV col1 + + col2 FROM tab2 cor0 ---- 53 54 80 skipif mysql # not compatible query I rowsort label-3745 SELECT DISTINCT + col2 + col0 / col1 + + col2 FROM tab2 cor0 ---- 53 54 80 query I rowsort SELECT ALL + cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT 2 + - 1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to da8a72a7967c0c73d91239275230aed9 query I rowsort SELECT DISTINCT + 5 * + cor0.col1 FROM tab1 AS cor0 ---- 130 50 65 query I rowsort SELECT DISTINCT - tab2.col1 * - col2 * + col1 FROM tab2 ---- 10982 25947 90506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 29 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e query I rowsort SELECT ALL - col1 + + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT col1 - col1 AS col1 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT + col0 * col1 + col0 FROM tab2 AS cor0 ---- 1422 224 4680 onlyif mysql # use DIV operator for integer division query I rowsort label-3754 SELECT + + col0 + + col0 DIV 43 AS col2 FROM tab0 AS cor0 ---- 24 35 91 skipif mysql # not compatible query I rowsort label-3754 SELECT + + col0 + + col0 / 43 AS col2 FROM tab0 AS cor0 ---- 24 35 91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * - col2 col2 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT - col1 * 24 + + col2 FROM tab0 AS cor0 ---- -2031 -2102 -2327 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + 54 * ( - cor0.col0 ) * col0 col0 FROM tab2 cor0 ---- -2615 -328477 -336997 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 97 col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c query I rowsort SELECT ALL + + col1 * - col1 + - col2 FROM tab1 AS cor0 ---- -157 -265 -730 query I rowsort SELECT - col1 + 63 FROM tab2 cor0 ---- 32 4 46 query I rowsort SELECT ALL + cor0.col1 + col2 * col0 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT ALL - ( + tab0.col2 + - col0 * 51 ) FROM tab0 ---- 1191 1784 4457 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3763 SELECT ALL - CAST( NULL AS SIGNED ) + - cor0.col1 * col0 * 51 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3763 SELECT ALL - CAST ( NULL AS INTEGER ) + - cor0.col1 * col0 * 51 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 62 col0 FROM tab1, tab0 cor0 ---- 9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + 23 * col1 col1 FROM tab1 AS cor0 ---- 173 203 544 query I rowsort SELECT - cor0.col1 * col1 - - ( 67 ) AS col1 FROM tab2 AS cor0 ---- -222 -3414 -894 query I rowsort SELECT 96 * col1 - - col0 FROM tab1 AS cor0 ---- 1024 1328 2499 query I rowsort SELECT col2 * col1 * col1 - + col0 * + col0 FROM tab1 AS cor0 ---- 1604 36495 9824 query I rowsort SELECT ALL - 44 AS col0 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79 query I rowsort SELECT col0 * 93 FROM tab1 ---- 279 5952 7440 query I rowsort SELECT + 15 * col1 AS col2 FROM tab2 ---- 255 465 885 onlyif mysql # use DIV operator for integer division query I rowsort label-3772 SELECT - ( col1 + tab1.col2 ) DIV + 19 FROM tab1 ---- -3 -4 -5 skipif mysql # not compatible query I rowsort label-3772 SELECT - ( col1 + tab1.col2 ) / + 19 FROM tab1 ---- -3 -4 -5 query I rowsort SELECT 6 * col2 AS col0 FROM tab2 ---- 156 162 228 query I rowsort SELECT ALL - 95 AS col0 FROM tab2 ---- -95 -95 -95 query I rowsort SELECT DISTINCT 66 * 80 FROM tab0 ---- 5280 query I rowsort SELECT ALL - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT col0 * 88 AS col1 FROM tab0 ---- 2112 3080 7832 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3778 SELECT DISTINCT + CAST( NULL AS DECIMAL ) / cor0.col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3778 SELECT DISTINCT + CAST ( NULL AS REAL ) / cor0.col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL ( - col0 ) * + col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - + 88 * + 76 AS col2 FROM tab2 AS cor0 ---- -6688 -6688 -6688 onlyif mysql # use DIV operator for integer division query I rowsort label-3781 SELECT DISTINCT - 90 DIV col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-3781 SELECT DISTINCT - 90 / col0 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT - + col0 + - col2 + cor0.col2 * 53 * cor0.col2 FROM tab2 AS cor0 ---- 35724 38603 76415 query I rowsort SELECT - - col1 + col2 * + col1 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT ALL - + col0 * - ( - col0 ) FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT DISTINCT - col0 * - col0 * cor0.col1 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT col2 + - col0 - col0 FROM tab0 ---- -15 -69 -96 query I rowsort SELECT DISTINCT col0 * col2 - - 67 AS col2 FROM tab2 ---- 2095 256 3069 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3 ---- 3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07 query I rowsort SELECT ALL tab0.col2 * cor1.col0 + - 75 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to b47423bb923b2846d6e79dd19e1a6e86 query I rowsort SELECT + col2 + - col0 * tab1.col2 FROM tab1 ---- -108 -3591 -7584 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( 19 * col2 AS REAL ) + - col1 / 66 FROM tab1 ---- -1026 -1083 -1824 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 26 + + col0 + col2 col1 FROM tab0 ---- 197 62 83 query I rowsort SELECT DISTINCT - col1 + + 25 * - tab2.col1 AS col1 FROM tab2 ---- -1534 -442 -806 query I rowsort SELECT ALL ( + 79 ) * + col1 + - 52 AS col1 FROM tab2 ---- 1291 2397 4609 query I rowsort SELECT ALL + - col0 + 13 FROM tab0 AS cor0 ---- -11 -22 -76 query I rowsort SELECT 52 AS col2 FROM tab2 AS cor0 ---- 52 52 52 query I rowsort SELECT + col0 * + 4 * - col0 + ( - col0 ) FROM tab1 AS cor0 ---- -16448 -25680 -39 query I rowsort SELECT DISTINCT - ( col1 ) + col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - ( col2 ) * col0 + + col1 AS col0 FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3800 SELECT DISTINCT ( 64 ) / + tab2.col1 + - CAST( NULL AS SIGNED ) * + col1 + - col2 col2 FROM tab2 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3800 SELECT DISTINCT ( 64 ) / + tab2.col1 + - CAST ( NULL AS INTEGER ) * + col1 + - col2 col2 FROM tab2 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( col2 ) col1 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT - ( col2 ) + + col2 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3803 SELECT + - col0 DIV - ( + 42 ) AS col1 FROM tab2 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-3803 SELECT + - col0 / - ( + 42 ) AS col1 FROM tab2 AS cor0 ---- 0 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-3804 SELECT + - col2 DIV col0 + + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 4 78 79 skipif mysql # not compatible query I rowsort label-3804 SELECT + - col2 / col0 + + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 4 78 79 query I rowsort SELECT + col1 + col2 * cor0.col0 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL cor0.col1 + cor0.col0 - + 34 AS col1 FROM tab2 AS cor0 ---- 103 4 62 query I rowsort SELECT DISTINCT + 0 FROM tab0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3808 SELECT ALL cor0.col0 DIV + 63 AS col1 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3808 SELECT ALL cor0.col0 / + 63 AS col1 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT - cor0.col0 * + col1 + + col0 AS col2 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT col2 * col2 + 82 * - col2 AS col2 FROM tab2 AS cor0 ---- -1456 -1485 -1672 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3811 SELECT ALL - cor0.col1 * CAST( - 43 AS SIGNED ) AS col1 FROM tab0 cor0 ---- 3698 3913 4171 skipif mysql # not compatible query I rowsort label-3811 SELECT ALL - cor0.col1 * CAST ( - 43 AS INTEGER ) AS col1 FROM tab0 cor0 ---- 3698 3913 4171 query I rowsort SELECT ALL 5 + 98 FROM tab2, tab1 AS cor0 ---- 9 values hashing to a6436390b76d026d00c9c9e8c68d8420 query I rowsort SELECT DISTINCT - col0 * col0 * col1 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT DISTINCT + col0 - - ( - col1 ) AS col2 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL + col1 * - col2 + col0 * col2 FROM tab0 AS cor0 ---- -164 -2046 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + cor0.col0 col2 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT col0 - col0 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 36 * 94 * - col1 FROM tab2 AS cor0 ---- 104904 199656 57528 onlyif mysql # use DIV operator for integer division query I rowsort label-3819 SELECT + col0 + 31 DIV + col0 AS col2 FROM tab2 AS cor0 ---- 11 78 79 skipif mysql # not compatible query I rowsort label-3819 SELECT + col0 + 31 / + col0 AS col2 FROM tab2 AS cor0 ---- 11 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-3820 SELECT ALL - - col2 + - col1 DIV col1 AS col0 FROM tab0 AS cor0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-3820 SELECT ALL - - col2 + - col1 / col1 AS col0 FROM tab0 AS cor0 ---- 0 32 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3821 SELECT DISTINCT + CAST( 5 AS SIGNED ) * - col1 + + 78 FROM tab2 AS cor0 ---- -217 -7 -77 skipif mysql # not compatible query I rowsort label-3821 SELECT DISTINCT + CAST ( 5 AS INTEGER ) * - col1 + + 78 FROM tab2 AS cor0 ---- -217 -7 -77 query I rowsort SELECT ALL + 81 * + col0 + + col0 FROM tab2 AS cor0 ---- 574 6396 6478 query I rowsort SELECT ALL + 9 - - 55 * + col1 FROM tab2 AS cor0 ---- 1714 3254 944 onlyif mysql # use DIV operator for integer division query I rowsort label-3824 SELECT - cor0.col0 + cor0.col0 DIV - col1 FROM tab1 cor0 ---- -3 -70 -86 skipif mysql # not compatible query I rowsort label-3824 SELECT - cor0.col0 + cor0.col0 / - col1 FROM tab1 cor0 ---- -3 -70 -86 query I rowsort SELECT - 61 * col1 FROM tab2 AS cor0 ---- -1037 -1891 -3599 onlyif mysql # use DIV operator for integer division query I rowsort label-3826 SELECT + + col0 - col1 * col1 DIV 98 AS col2 FROM tab1 AS cor0 ---- -3 63 79 skipif mysql # not compatible query I rowsort label-3826 SELECT + + col0 - col1 * col1 / 98 AS col2 FROM tab1 AS cor0 ---- -3 63 79 onlyif mysql # use DIV operator for integer division query I rowsort label-3827 SELECT ALL - col2 DIV cor0.col1 AS col2 FROM tab2 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-3827 SELECT ALL - col2 / cor0.col1 AS col2 FROM tab2 AS cor0 ---- -2 0 0 query I rowsort SELECT DISTINCT + 19 * + col0 + col1 AS col0 FROM tab2 AS cor0 ---- 1518 1541 164 query I rowsort SELECT ALL - + 9 * col2 FROM tab2 AS cor0 ---- -234 -243 -342 query I rowsort SELECT ALL + col2 * 52 FROM tab1 cor0 ---- 2808 2964 4992 query I rowsort SELECT DISTINCT 19 * + col0 + - col0 AS col0 FROM tab2 AS cor0 ---- 126 1404 1422 query I rowsort SELECT col1 * col0 + - ( + col0 ) AS col1 FROM tab0 ---- 2040 3360 8010 query I rowsort SELECT + cor0.col2 * - 69 + + col2 FROM tab2 AS cor0 ---- -1768 -1836 -2584 query I rowsort SELECT DISTINCT + col0 * 35 - col1 * - col0 AS col1 FROM tab1 ---- 183 2880 3840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3835 SELECT tab0.col2 + CAST( - col0 AS SIGNED ) - + tab0.col1 * + col0 AS col0 FROM tab0 ---- -2055 -3429 -8106 skipif mysql # not compatible query I rowsort label-3835 SELECT tab0.col2 + CAST ( - col0 AS INTEGER ) - + tab0.col1 * + col0 AS col0 FROM tab0 ---- -2055 -3429 -8106 onlyif mysql # use DIV operator for integer division query I rowsort label-3836 SELECT ALL - - col1 DIV + col1 - - CAST( 67 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 68 68 68 skipif mysql # not compatible query I rowsort label-3836 SELECT ALL - - col1 / + col1 - - CAST ( 67 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 68 68 68 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 col2 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT ALL + + col0 * + col1 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT 37 FROM tab2 cor0 ---- 37 query I rowsort SELECT ALL - 18 * - col2 AS col0 FROM tab1 AS cor0 ---- 1026 1728 972 onlyif mysql # use DIV operator for integer division query I rowsort label-3841 SELECT - + 68 + - col0 DIV - col0 FROM tab2 AS cor0 ---- -67 -67 -67 skipif mysql # not compatible query I rowsort label-3841 SELECT - + 68 + - col0 / - col0 FROM tab2 AS cor0 ---- -67 -67 -67 onlyif mysql # use DIV operator for integer division query I rowsort label-3842 SELECT DISTINCT - col1 + + col1 DIV - 56 FROM tab1 cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-3842 SELECT DISTINCT - col1 + + col1 / - 56 FROM tab1 cor0 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3843 SELECT DISTINCT - + 42 * - col0 + + ( - col0 * col1 ) + CAST( col2 AS SIGNED ) FROM tab0 cor0 ---- -1023 -1924 -4279 skipif mysql # not compatible query I rowsort label-3843 SELECT DISTINCT - + 42 * - col0 + + ( - col0 * col1 ) + CAST ( col2 AS INTEGER ) FROM tab0 cor0 ---- -1023 -1924 -4279 query I rowsort SELECT ALL col2 + col0 * - col1 * - col2 FROM tab2 AS cor0 ---- 119678 51072 5886 query I rowsort SELECT ALL - - col2 + col2 AS col1 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT - cor0.col1 + col1 * + col0 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT ALL ( - tab2.col0 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT ALL + - col0 + + cor0.col1 AS col2 FROM tab1 AS cor0 ---- -54 -67 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + col2 col2 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3850 SELECT + + 14 + + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3850 SELECT + + 14 + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3851 SELECT DISTINCT + - col2 DIV col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-3851 SELECT DISTINCT + - col2 / col1 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT ALL - - cor0.col0 * - col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL + + col1 * - 15 AS col2 FROM tab1 AS cor0 ---- -150 -195 -390 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 99 col1 FROM tab1 ---- 99 99 99 query I rowsort SELECT ALL 87 AS col1 FROM tab2 ---- 87 87 87 query I rowsort SELECT - + col1 * - col0 * cor0.col1 + col2 FROM tab0 AS cor0 ---- 177537 329316 737091 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * col1 col1 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT col0 + + col2 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 182 196 41 query I rowsort SELECT DISTINCT - col2 + col0 + col1 * + col2 * col1 AS col2 FROM tab2 AS cor0 ---- 11023 25927 90558 query I rowsort SELECT ALL + col1 - - col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT + + cor0.col1 + col0 AS col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ALL - col0 * col1 + + col2 + col2 FROM tab0 ---- -1998 -3393 -7935 query I rowsort SELECT ALL + col0 + col2 + tab1.col2 AS col2 FROM tab1 ---- 111 178 272 query I rowsort SELECT + cor0.col2 + - col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + - col1 * col0 + col0 AS col1 FROM tab1 AS cor0 ---- -576 -75 -960 onlyif mysql # use DIV operator for integer division query I rowsort label-3866 SELECT + col2 * col2 + - col1 DIV + col1 AS col0 FROM tab1 AS cor0 ---- 2915 3248 9215 skipif mysql # not compatible query I rowsort label-3866 SELECT + col2 * col2 + - col1 / + col1 AS col0 FROM tab1 AS cor0 ---- 2915 3248 9215 query I rowsort SELECT ALL col2 FROM tab1 WHERE NULL NOT IN ( col1 ) ---- query I rowsort SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2 + - cor0.col1 ) ---- query I rowsort SELECT + cor0.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT ALL + - col2 * - col2 AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 onlyif mysql # use DIV operator for integer division query I rowsort label-3871 SELECT - + col2 + col2 DIV col2 col2 FROM tab1 AS cor0 ---- -53 -56 -95 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3871 SELECT - + col2 + col2 / col2 col2 FROM tab1 AS cor0 ---- -53 -56 -95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 43 col2 FROM tab2 ---- 43 onlyif mysql # use DIV operator for integer division query I rowsort label-3873 SELECT col0 DIV col2 + col2 * tab0.col1 + + col1 col0 FROM tab0 ---- 229 2924 7554 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3873 SELECT col0 / col2 + col2 * tab0.col1 + + col1 col0 FROM tab0 ---- 229 2924 7554 query I rowsort SELECT DISTINCT + tab2.col0 + col2 AS col2 FROM tab2 ---- 104 117 34 query I rowsort SELECT DISTINCT col0 * + col1 + - col1 + col0 FROM tab2 ---- 1405 193 4621 query I rowsort SELECT DISTINCT - tab1.col1 * - col1 AS col1 FROM tab1 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col0 * col2 * col1 + + col1 col0 FROM tab2 ---- 119711 51051 5890 query I rowsort SELECT col1 + + col1 + + col1 * col0 AS col1 FROM tab0 ---- 2236 3589 8281 query I rowsort SELECT DISTINCT + tab1.col2 * - tab1.col0 + + col1 + + col2 * col2 AS col1 FROM tab1 ---- -389 1549 2780 query I rowsort SELECT ALL - col2 * col1 + - col2 * tab1.col0 FROM tab1 ---- -1566 -4218 -8928 query I rowsort SELECT DISTINCT - col2 + col0 AS col0 FROM tab2 ---- -20 41 52 query I rowsort SELECT DISTINCT + col1 * col2 * col1 FROM tab0 AS cor0 ---- 244068 679042 9409 query I rowsort SELECT ALL col2 + + col0 * - col0 + + col1 FROM tab2 AS cor0 ---- -5999 -6186 9 query I rowsort SELECT + tab2.col0 * - col0 AS col2 FROM tab2 ---- -49 -6084 -6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col0 * - col0 col1 FROM tab0 ---- -1225 -576 -7921 query I rowsort SELECT ALL + col1 * + cor0.col0 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT - cor0.col2 - col0 AS col0 FROM tab0 AS cor0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-3888 SELECT - col1 DIV col1 col0 FROM tab1 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3888 SELECT - col1 / col1 col0 FROM tab1 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + cor0.col1 + col1 * - col2 col1 FROM tab0 cor0 ---- -2728 -7282 35 onlyif mysql # use DIV operator for integer division query I rowsort label-3890 SELECT col2 DIV + tab1.col0 + - col0 col1 FROM tab1 ---- -64 -79 15 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3890 SELECT col2 / + tab1.col0 + - col0 col1 FROM tab1 ---- -64 -79 15 query I rowsort SELECT + - 21 * cor0.col2 + 9 FROM tab2 cor0 ---- -537 -558 -789 onlyif mysql # use DIV operator for integer division query I rowsort label-3892 SELECT col1 + + col2 DIV - col2 FROM tab1 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-3892 SELECT col1 + + col2 / - col2 FROM tab1 ---- 12 25 9 query I rowsort SELECT DISTINCT col2 * col1 * + col0 AS col2 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT + col0 - + col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col2 + + col2 AS col1 FROM tab1 ---- 0 query I rowsort SELECT + tab2.col1 + - col0 AS col0 FROM tab2 WHERE NULL = NULL ---- query I rowsort SELECT - tab1.col1 * + col1 FROM tab1 WHERE NOT + col1 BETWEEN ( col1 ) AND - col2 ---- -100 -169 -676 query I rowsort SELECT ALL + tab2.col0 * col1 + col2 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT - col2 + - col0 * + col0 AS col0 FROM tab0 ---- -1226 -609 -8003 query I rowsort SELECT - - col2 + + col2 * - 23 FROM tab0 AS cor0 ---- -1804 -22 -726 query I rowsort SELECT DISTINCT cor0.col2 * tab1.col1 - + tab1.col2 AS col0 FROM tab1, tab0, tab2 AS cor0 ---- 9 values hashing to 750ec8c353977f771f61bccb783993b5 query I rowsort SELECT + - 58 AS col1 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to a38440572743ed8a3d8af7b49a5388c9 query I rowsort SELECT ALL - col1 - col0 AS col1 FROM tab2 WHERE NULL <= - col2 * col1 * + col2 ---- query I rowsort SELECT DISTINCT col0 + + col0 * col2 * - col1 FROM tab1 ---- -36416 -4209 -99760 query I rowsort SELECT col1 * col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL ---- query IIIIII rowsort SELECT * FROM tab1, tab0 AS cor0 WHERE NULL <= NULL ---- query III rowsort SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-3908 SELECT ALL cor0.col2 * col0 * + col0 + + col2 * + col0 + - col1 DIV col0 FROM tab1 AS cor0 ---- 237120 622080 640 skipif mysql # not compatible query I rowsort label-3908 SELECT ALL cor0.col2 * col0 * + col0 + + col2 * + col0 + - col1 / col0 FROM tab1 AS cor0 ---- 237120 622080 640 query I rowsort SELECT ALL col0 + + col1 * cor0.col1 FROM tab2 AS cor0 ---- 3559 368 968 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT DISTINCT col1 * col2 - col2 * - col2 * - col1 FROM tab0 cor0 ---- -604422 -90816 0 query I rowsort SELECT - cor0.col1 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL col0 + col2 * col2 FROM tab2 ---- 1523 736 754 query III rowsort SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN + tab1.col2 AND - col1 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT DISTINCT - col0 + + tab2.col1 AS col2 FROM tab2 ---- -19 -62 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + + col1 col2 FROM tab0 WHERE NULL NOT IN ( - col1 ) ---- query III rowsort SELECT * FROM tab0 WHERE ( col1 ) NOT IN ( col1 * + col0 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IN ( col2 + tab2.col2 * - col2 * + col2 + + col0 ) ---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND col2 * col1 * + col0 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col2 * col2 col1 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT ALL col0 * + tab2.col1 - col2 FROM tab2 ---- 1305 190 4576 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col0 + - col1 * col1 col1 FROM tab2 ---- -3559 -368 -968 onlyif mysql # use DIV operator for integer division query I rowsort label-3923 SELECT ALL col2 + col0 DIV col2 col0 FROM tab0 ---- 33 36 83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3923 SELECT ALL col2 + col0 / col2 col0 FROM tab0 ---- 33 36 83 onlyif mysql # use DIV operator for integer division query I rowsort label-3924 SELECT ALL tab0.col1 + tab0.col1 DIV + col0 col2 FROM tab0 ---- 89 92 99 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3924 SELECT ALL tab0.col1 + tab0.col1 / + col0 col2 FROM tab0 ---- 89 92 99 query I rowsort SELECT DISTINCT + col2 + + col2 * + col2 AS col1 FROM tab2 ---- 1482 702 756 query I rowsort SELECT + - col0 * + cor0.col2 * + 14 FROM tab1 AS cor0 ---- -107520 -2268 -51072 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + + col2 * cor0.col2 col2 FROM tab0 cor0 ---- 1122 2 6806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 87 col2 FROM tab0 AS cor0 ---- 87 87 87 query I rowsort SELECT ALL + col0 * + col0 AS col1 FROM tab0 cor0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 48 col2 FROM tab0 ---- -48 query I rowsort SELECT 74 * + col1 * + 53 FROM tab1 ---- 101972 39220 50986 query I rowsort SELECT ALL - col2 - + tab1.col0 AS col0 FROM tab1 ---- -121 -176 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-3933 SELECT ALL + col2 DIV 24 FROM tab0 AS cor0 ---- 0 1 3 skipif mysql # not compatible query I rowsort label-3933 SELECT ALL + col2 / 24 FROM tab0 AS cor0 ---- 0 1 3 query I rowsort SELECT ALL col0 - - col1 AS col2 FROM tab2 ---- 137 38 96 query I rowsort SELECT + col1 + cor0.col2 - - col2 FROM tab0 AS cor0 ---- 152 255 99 query I rowsort SELECT ALL col1 * + col1 + - 39 - col1 FROM tab1 ---- 117 51 611 query I rowsort SELECT ALL - 60 - col1 * + tab1.col2 FROM tab1 ---- -1308 -1464 -630 onlyif mysql # use DIV operator for integer division query I rowsort label-3938 SELECT ALL ( - 79 ) DIV - tab0.col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 3294894d5691618c467f11d859a940f4 skipif mysql # not compatible query I rowsort label-3938 SELECT ALL ( - 79 ) / - tab0.col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 3294894d5691618c467f11d859a940f4 query I rowsort SELECT + + 37 * + col2 FROM tab0 AS cor0 ---- 1221 3034 37 query I rowsort SELECT DISTINCT - + col0 * 90 * - col2 AS col2 FROM tab0 AS cor0 ---- 3150 656820 71280 query I rowsort SELECT col1 + 34 AS col0 FROM tab0 AS cor0 ---- 120 125 131 query I rowsort SELECT + 54 * col2 FROM tab0 AS cor0 ---- 1782 4428 54 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + col1 - + col2 col2 FROM tab0 ---- 2805 7380 96 query I rowsort SELECT ALL + col2 + + 31 * 73 FROM tab0 ---- 2264 2296 2345 query I rowsort SELECT DISTINCT col0 + - ( col1 ) AS col1 FROM tab0 ---- -2 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-3946 SELECT + cor0.col1 DIV cor0.col0 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-3946 SELECT + cor0.col1 / cor0.col0 FROM tab2 AS cor0 ---- 0 0 4 onlyif mysql # use DIV operator for integer division query I rowsort label-3947 SELECT ALL - - col0 DIV 80 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3947 SELECT ALL - - col0 / 80 FROM tab0 AS cor0 ---- 0 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-3948 SELECT col0 * col1 DIV - col0 col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3948 SELECT col0 * col1 / - col0 col1 FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-3949 SELECT - 27 DIV - col0 AS col0 FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-3949 SELECT - 27 / - col0 AS col0 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT - 47 + - tab0.col0 FROM tab0 ---- -136 -71 -82 query I rowsort SELECT col0 * col2 * tab2.col2 + + col0 FROM tab2 ---- 114155 5110 52806 onlyif mysql # use DIV operator for integer division query I rowsort label-3952 SELECT + tab0.col1 DIV + col0 - + col1 AS col2 FROM tab0 ---- -83 -90 -95 skipif mysql # not compatible query I rowsort label-3952 SELECT + tab0.col1 / + col0 - + col1 AS col2 FROM tab0 ---- -83 -90 -95 query I rowsort SELECT ALL - 40 AS col0 FROM tab2 ---- -40 -40 -40 query I rowsort SELECT - tab0.col2 - + col1 FROM tab0 ---- -119 -173 -98 query I rowsort SELECT DISTINCT + + col2 * + col0 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - ( + ( + col2 ) ) AS col2 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT ( - 33 ) FROM tab1 ---- -33 query I rowsort SELECT ALL + 20 AS col0 FROM tab2 ---- 20 20 20 query I rowsort SELECT ALL 21 FROM tab2, tab1 AS cor0 ---- 9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7 onlyif mysql # use DIV operator for integer division query I rowsort label-3960 SELECT ALL - - col1 DIV + col0 FROM tab1 cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-3960 SELECT ALL - - col1 / + col0 FROM tab1 cor0 ---- 0 0 8 onlyif mysql # use DIV operator for integer division query I rowsort label-3961 SELECT 47 DIV col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3961 SELECT 47 / col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 * cor0.col1 + col0 AS col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT - + col0 + - col0 AS col2 FROM tab0 cor0 ---- -178 -48 -70 query I rowsort SELECT + 88 AS col0 FROM tab2 AS cor0 ---- 88 88 88 query I rowsort SELECT col2 * col0 * - col2 + - col0 FROM tab0 ---- -26160 -598525 -70 query I rowsort SELECT DISTINCT + - 63 * - col0 FROM tab0 cor0 ---- 1512 2205 5607 query I rowsort SELECT DISTINCT + - ( col2 ) + col1 + col0 AS col0 FROM tab0 AS cor0 ---- 131 77 98 query I rowsort SELECT DISTINCT 80 * col1 FROM tab2 AS cor0 ---- 1360 2480 4720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 + col1 col2 FROM tab2 AS cor0 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + - col0 col1 FROM tab0 AS cor0 ---- -178 -48 -70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - cor0.col1 * + col2 + col2 col0 FROM tab2 cor0 ---- 1560 684 864 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3972 SELECT col2 * CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3972 SELECT col2 * CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 - + ( 77 ) AS col0 FROM tab1 AS cor0 ---- -20 -23 19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 + + 81 col1 FROM tab1 AS cor0 ---- 135 138 177 query I rowsort SELECT - col0 * col1 * ( - col1 ) + - col2 AS col2 FROM tab2 cor0 ---- 22793 271492 6700 query I rowsort SELECT ALL - - col0 + col2 * ( col1 ) FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT - tab2.col2 * ( - col1 ) * col1 - col0 FROM tab2 ---- 10903 25940 90428 query I rowsort SELECT ALL 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 onlyif mysql # use DIV operator for integer division query I rowsort label-3979 SELECT DISTINCT + tab1.col0 + - ( col2 ) DIV + col0 AS col0 FROM tab1 ---- -15 64 79 skipif mysql # not compatible query I rowsort label-3979 SELECT DISTINCT + tab1.col0 + - ( col2 ) / + col0 AS col0 FROM tab1 ---- -15 64 79 onlyif mysql # use DIV operator for integer division query I rowsort label-3980 SELECT ALL + col2 DIV col0 + tab1.col1 AS col1 FROM tab1 ---- 10 14 44 skipif mysql # not compatible query I rowsort label-3980 SELECT ALL + col2 / col0 + tab1.col1 AS col1 FROM tab1 ---- 10 14 44 onlyif mysql # use DIV operator for integer division query I rowsort label-3981 SELECT - col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3981 SELECT - col1 / cor0.col1 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT col0 + ( - 88 ) FROM tab2 AS cor0 ---- -10 -81 -9 query I rowsort SELECT DISTINCT + col2 + col0 AS col1 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT col1 + + col2 - - 64 FROM tab1 AS cor0 ---- 131 144 173 query I rowsort SELECT DISTINCT + col1 * col0 * - col0 - + col0 AS col2 FROM tab1 AS cor0 ---- -237 -41024 -83280 query I rowsort SELECT ALL - + col1 * + cor0.col2 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL col0 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( col0 AS REAL ) + col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT ALL cor0.col0 + col1 + col2 FROM tab1 AS cor0 ---- 131 189 83 query I rowsort SELECT DISTINCT + + ( + cor0.col1 ) + + col2 AS col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT ALL - col0 + ( col2 ) FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT - col0 * - cor0.col1 - col2 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT ALL 96 + col1 FROM tab1 cor0 ---- 106 109 122 onlyif mysql # use DIV operator for integer division query I rowsort label-3994 SELECT DISTINCT tab0.col1 + 57 DIV col0 FROM tab0 ---- 88 91 98 skipif mysql # not compatible query I rowsort label-3994 SELECT DISTINCT tab0.col1 + 57 / col0 FROM tab0 ---- 88 91 98 query I rowsort SELECT - col0 + + 4 * - 3 AS col0 FROM tab2 ---- -19 -90 -91 onlyif mysql # use DIV operator for integer division query I rowsort label-3996 SELECT DISTINCT - col0 DIV col1 - col0 AS col0 FROM tab0 cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-3996 SELECT DISTINCT - col0 / col1 - col0 AS col0 FROM tab0 cor0 ---- -24 -35 -89 query I rowsort SELECT 26 * ( col1 ) + + col0 FROM tab2 AS cor0 ---- 1612 521 813 query I rowsort SELECT - col1 + + col0 * + col1 AS col1 FROM tab0 ---- 1978 3298 8008 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3999 SELECT + col2 / CAST( NULL AS DECIMAL ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3999 SELECT + col2 / CAST ( NULL AS REAL ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 + + ( 15 + col0 ) AS col2 FROM tab2 ---- 171 173 29 onlyif mysql # use DIV operator for integer division query I rowsort label-4001 SELECT DISTINCT + col1 * 34 - - 95 DIV col1 AS col0 FROM tab0 AS cor0 ---- 2925 3095 3298 skipif mysql # not compatible query I rowsort label-4001 SELECT DISTINCT + col1 * 34 - - 95 / col1 AS col0 FROM tab0 AS cor0 ---- 2925 3095 3298 onlyif mysql # use DIV operator for integer division query I rowsort label-4002 SELECT DISTINCT - + col0 + - col2 DIV col2 AS col0 FROM tab1 cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-4002 SELECT DISTINCT - + col0 + - col2 / col2 AS col0 FROM tab1 cor0 ---- -4 -65 -81 query I rowsort SELECT + - col2 - + 64 * + col1 AS col2 FROM tab0 cor0 ---- -5537 -5906 -6209 onlyif mysql # use DIV operator for integer division query I rowsort label-4004 SELECT - col0 DIV col1 + + col0 * + col1 + + col1 AS col2 FROM tab1 cor0 ---- 104 1047 644 skipif mysql # not compatible query I rowsort label-4004 SELECT - col0 / col1 + + col0 * + col1 + + col1 AS col2 FROM tab1 cor0 ---- 104 1047 644 query I rowsort SELECT col2 + - col0 * col0 AS col2 FROM tab1 AS cor0 ---- -4039 -6304 45 onlyif mysql # use DIV operator for integer division query I rowsort label-4006 SELECT ALL + col1 DIV - col2 - col1 AS col0 FROM tab0 AS cor0 ---- -194 -88 -92 skipif mysql # not compatible query I rowsort label-4006 SELECT ALL + col1 / - col2 - col1 AS col0 FROM tab0 AS cor0 ---- -194 -88 -92 query I rowsort SELECT - ( + col1 ) * col1 + 39 * + col2 + - col2 FROM tab1 AS cor0 ---- 1376 2066 3479 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4008 SELECT + cor0.col0 + col1 + - cor0.col1 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 ---- -2728 -7282 35 skipif mysql # not compatible query I rowsort label-4008 SELECT + cor0.col0 + col1 + - cor0.col1 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 ---- -2728 -7282 35 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4009 SELECT - CAST( + cor0.col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-4009 SELECT - CAST ( + cor0.col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-4010 SELECT - col2 DIV col1 AS col0 FROM tab2 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-4010 SELECT - col2 / col1 AS col0 FROM tab2 ---- -2 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4011 SELECT ( + col1 ) + col0 DIV ( cor0.col0 ) + + col2 DIV 50 FROM tab1 cor0 ---- 12 15 28 skipif mysql # not compatible query I rowsort label-4011 SELECT ( + col1 ) + col0 / ( cor0.col0 ) + + col2 / 50 FROM tab1 cor0 ---- 12 15 28 query I rowsort SELECT + 66 - - col1 FROM tab0 AS cor0 ---- 152 157 163 query I rowsort SELECT - col2 * + col2 + + col1 AS col0 FROM tab0 AS cor0 ---- -1003 -6633 96 onlyif mysql # use DIV operator for integer division query I rowsort label-4014 SELECT ALL - - col1 * col2 + - ( - col2 ) DIV col0 FROM tab2 AS cor0 ---- 1534 646 840 skipif mysql # not compatible query I rowsort label-4014 SELECT ALL - - col1 * col2 + - ( - col2 ) / col0 FROM tab2 AS cor0 ---- 1534 646 840 onlyif mysql # use DIV operator for integer division query I rowsort label-4015 SELECT DISTINCT + col2 DIV + col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4015 SELECT DISTINCT + col2 / + col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL + ( + col2 ) + + col0 FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-4017 SELECT DISTINCT + - cor0.col2 DIV - col0 + 58 col2 FROM tab0 AS cor0 ---- 58 59 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4017 SELECT DISTINCT + - cor0.col2 / - col0 + 58 col2 FROM tab0 AS cor0 ---- 58 59 query I rowsort SELECT ALL + 72 AS col0 FROM tab0 AS cor0 ---- 72 72 72 query I rowsort SELECT DISTINCT - col1 - - col0 * - col1 FROM tab0 AS cor0 ---- -2150 -3492 -8190 query I rowsort SELECT ALL + cor0.col0 * col0 + + col0 AS col1 FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT 58 * cor0.col2 FROM tab2 AS cor0 ---- 1508 1566 2204 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 92 * + col1 col2 FROM tab1 AS cor0 ---- 1196 2392 920 query I rowsort SELECT - - cor0.col2 * - col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT + 3 + - cor0.col2 FROM tab0, tab2 cor0 ---- -23 -24 -35 query I rowsort SELECT col1 * - 4 FROM tab0 AS cor0 ---- -344 -364 -388 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4026 SELECT - CAST( NULL AS SIGNED ) + 23 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4026 SELECT - CAST ( NULL AS INTEGER ) + 23 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4027 SELECT + cor0.col1 * CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4027 SELECT + cor0.col1 * CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 * + ( - col2 ) FROM tab2 AS cor0 ---- -189 -2028 -3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 12 * col0 col1 FROM tab1 ---- 36 768 960 query I rowsort SELECT ALL + ( + col0 + 74 ) AS col0 FROM tab2 ---- 152 153 81 query I rowsort SELECT DISTINCT + - col2 * cor0.col1 + + col2 AS col1 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT + col2 + col0 * + col1 * col2 FROM tab1 cor0 ---- 36537 4266 99936 onlyif mysql # use DIV operator for integer division query I rowsort label-4033 SELECT DISTINCT + - col0 DIV + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-4033 SELECT DISTINCT + - col0 / + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4034 SELECT - col2 * - CAST( - ( col2 ) + + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4034 SELECT - col2 * - CAST ( - ( col2 ) + + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4035 SELECT - col1 DIV - CAST( col0 AS SIGNED ) FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-4035 SELECT - col1 / - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 ---- 0 0 4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4036 SELECT DISTINCT - CAST( NULL AS SIGNED ) * 7 FROM tab2, tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4036 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 7 FROM tab2, tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - ( col1 ) * + col1 AS col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT ALL + 62 AS col0 FROM tab2 AS cor0 ---- 62 62 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4039 SELECT + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-4039 SELECT + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 66 col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 29794915b585eea848ad670075452c88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * col0 col1 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT DISTINCT 81 * - col2 FROM tab1 AS cor0 ---- -4374 -4617 -7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 + + 52 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 79f2a80d09cc407c4397aed6402206f2 query I rowsort SELECT + 68 * - col2 + + col2 AS col0 FROM tab2 AS cor0 ---- -1742 -1809 -2546 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4045 SELECT col2 + col2 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- 246 3 99 skipif mysql # not compatible query I rowsort label-4045 SELECT col2 + col2 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- 246 3 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 95 + col0 col0 FROM tab1 AS cor0 ---- -15 -31 -92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4047 SELECT tab1.col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-4047 SELECT tab1.col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL - 0 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT + cor0.col1 * + cor0.col2 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT + 21 * - col0 + cor0.col1 * - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -141 -1984 -2720 query I rowsort SELECT tab2.col0 + - col0 * - col2 * - 66 AS col2 FROM tab2 ---- -12467 -133770 -198053 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4052 SELECT DISTINCT - 81 * + col2 + col0 * - CAST( - col0 AS SIGNED ) + col2 FROM tab1 AS cor0 ---- -1280 -4311 -464 skipif mysql # not compatible query I rowsort label-4052 SELECT DISTINCT - 81 * + col2 + col0 * - CAST ( - col0 AS INTEGER ) + col2 FROM tab1 AS cor0 ---- -1280 -4311 -464 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4053 SELECT DISTINCT - + CAST( + col1 AS SIGNED ) + col1 + col0 * cor0.col2 FROM tab0 AS cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-4053 SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) + col1 + col0 * cor0.col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT + col1 * + 55 * col0 + col2 FROM tab1 AS cor0 ---- 35257 4344 57296 query I rowsort SELECT ALL - + cor0.col0 * + 83 - col0 * 97 FROM tab2 cor0 ---- -1260 -14040 -14220 query I rowsort SELECT - + 60 FROM tab0 AS cor0 ---- -60 -60 -60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4057 SELECT DISTINCT + CAST( col2 AS SIGNED ) * - cor0.col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 skipif mysql # not compatible query I rowsort label-4057 SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - cor0.col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT ALL - ( col1 ) * col2 + col1 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT ALL - cor0.col0 * col1 - + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT - + 80 FROM tab2 AS cor0 ---- -80 -80 -80 skipif mysql # not compatible query I rowsort SELECT DISTINCT + + col2 * 6 + col1 * + CAST ( 88 AS REAL ) AS col1 FROM tab1 AS cor0 ---- 1222 1720 2612 query I rowsort SELECT ALL + 58 - + cor0.col0 * + col0 * ( col1 ) AS col1 FROM tab2 AS cor0 ---- -106039 -1461 -358898 query I rowsort SELECT ALL + 86 * - cor0.col1 + col0 AS col2 FROM tab2 AS cor0 ---- -1383 -2659 -4996 onlyif mysql # use DIV operator for integer division query I rowsort label-4064 SELECT DISTINCT - + col1 * cor0.col1 DIV + CAST( - 4 AS SIGNED ) FROM tab0 AS cor0 ---- 1849 2070 2352 skipif mysql # not compatible query I rowsort label-4064 SELECT DISTINCT - + col1 * cor0.col1 / + CAST ( - 4 AS INTEGER ) FROM tab0 AS cor0 ---- 1849 2070 2352 query I rowsort SELECT ALL - col2 * - col0 + + 41 AS col2 FROM tab1 AS cor0 ---- 203 3689 7721 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 69 col1 FROM tab2 AS cor0 ---- 69 query I rowsort SELECT DISTINCT 19 + + col0 * - col1 AS col0 FROM tab0 AS cor0 ---- -2045 -3376 -8080 query I rowsort SELECT ALL - - 22 + col2 FROM tab0 AS cor0 ---- 104 23 55 query I rowsort SELECT DISTINCT 63 + cor1.col0 FROM tab2, tab0 cor0, tab0 AS cor1 ---- 152 87 98 query I rowsort SELECT 21 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 312c166f4dc412730c43555105b1f44b query I rowsort SELECT DISTINCT - 2 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- -2 query I rowsort SELECT + - cor0.col0 - 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 80e27b5bc25d7bc4a7264c419431a964 query I rowsort SELECT - col0 - 54 * col2 AS col1 FROM tab1 ---- -2919 -3142 -5264 query I rowsort SELECT ALL + ( cor0.col0 ) * col0 AS col0 FROM tab0 AS cor0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-4075 SELECT ALL - col2 DIV 57 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4075 SELECT ALL - col2 / 57 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 76 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * 53 col2 FROM tab2 cor0 ---- 371 4134 4187 query I rowsort SELECT col2 * col2 * - col2 FROM tab0 AS cor0 ---- -1 -35937 -551368 query I rowsort SELECT ALL - col1 * - tab1.col1 FROM tab1 ---- 100 169 676 query I rowsort SELECT ALL - - col0 + + col2 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT col2 + ( 92 * - col2 ) FROM tab0 AS cor0 ---- -3003 -7462 -91 query I rowsort SELECT + col0 * + ( + col1 ) + col0 AS col2 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT - - 40 FROM tab2 AS cor0 ---- 40 40 40 query I rowsort SELECT ALL - ( col2 ) + + col0 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT col1 + ( - col2 ) FROM tab2 ---- -21 33 4 query I rowsort SELECT + col2 - 52 AS col0 FROM tab0 ---- -19 -51 30 query I rowsort SELECT 82 * + cor0.col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 669f1d4f8fa3ee4e77110d388fdff94d query I rowsort SELECT ALL 85 AS col0 FROM tab1 AS cor0 ---- 85 85 85 query I rowsort SELECT - 6 + - 71 * - col2 FROM tab1 cor0 ---- 3828 4041 6810 query I rowsort SELECT - ( col2 ) * - col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + ( cor0.col2 ) * col1 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-4092 SELECT ALL - 43 DIV + col0 FROM tab1 AS cor0 ---- -14 0 0 skipif mysql # not compatible query I rowsort label-4092 SELECT ALL - 43 / + col0 FROM tab1 AS cor0 ---- -14 0 0 query I rowsort SELECT DISTINCT - 95 + col0 AS col2 FROM tab1 AS cor0 ---- -15 -31 -92 query I rowsort SELECT - 47 + col1 FROM tab2 AS cor0 ---- -16 -30 12 query I rowsort SELECT - 74 + cor0.col0 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 65b7e6103f6940bf34cab1e662fe6488 query I rowsort SELECT - + 49 * 75 AS col1 FROM tab1 cor0 ---- -3675 -3675 -3675 query I rowsort SELECT - 21 * 71 FROM tab1, tab1 AS cor0 ---- 9 values hashing to d3e14edd26761f54ffd03e0ed171476c query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab1 cor3 ---- 3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c query I rowsort SELECT - col2 * + ( + col1 ) FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT + col2 * - col0 + col1 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT 52 + - 17 * - col0 FROM tab0 ---- 1565 460 647 query I rowsort SELECT DISTINCT - col0 * - col2 * tab1.col0 FROM tab1 ---- 233472 486 614400 query I rowsort SELECT col1 - + col1 * col0 * + 97 AS col2 FROM tab2 ---- -130254 -21018 -446335 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4104 SELECT DISTINCT - CAST( + 79 AS SIGNED ) AS col0 FROM tab0 ---- -79 skipif mysql # not compatible query I rowsort label-4104 SELECT DISTINCT - CAST ( + 79 AS INTEGER ) AS col0 FROM tab0 ---- -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * 65 col0 FROM tab2 AS cor0 ---- -455 -5070 -5135 query I rowsort SELECT DISTINCT 16 FROM tab2, tab2 AS cor0 ---- 16 query I rowsort SELECT DISTINCT + + 17 FROM tab2 AS cor0 ---- 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col1 ) * - col2 * - 57 col0 FROM tab1 AS cor0 ---- -32490 -71136 -80028 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 80 * tab2.col1 col2 FROM tab2 ---- 1360 2480 4720 query I rowsort SELECT ALL ( - cor0.col0 ) AS col2 FROM tab0, tab0 cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e onlyif mysql # use DIV operator for integer division query I rowsort label-4111 SELECT DISTINCT + 45 DIV col1 - col2 AS col0 FROM tab0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-4111 SELECT DISTINCT + 45 / col1 - col2 AS col0 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT - + col1 - - col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT + col1 * - col2 - + col0 * + col2 FROM tab1 ---- -1566 -4218 -8928 query I rowsort SELECT - 31 + col0 AS col0 FROM tab1 ---- -28 33 49 query I rowsort SELECT DISTINCT 66 AS col2 FROM tab2, tab0, tab1 AS cor0 ---- 66 query I rowsort SELECT ALL + + col0 * + cor0.col2 - + col1 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT - + ( - cor0.col0 ) FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT ALL - ( + col1 ) * col0 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT cor0.col2 - - 26 FROM tab2, tab0, tab1 AS cor0, tab1 ---- 81 values hashing to 26ee5ea22edfb3e719e4863e9f4f7c40 query I rowsort SELECT DISTINCT - cor0.col1 * cor0.col0 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT - cor0.col2 + 74 * 91 FROM tab1 cor0 ---- 6638 6677 6680 query I rowsort SELECT DISTINCT col2 + - ( - col0 ) * - col2 FROM tab0 cor0 ---- -34 -7216 -759 query I rowsort SELECT - col1 * col0 - col1 * col1 FROM tab2 AS cor0 ---- -1178 -1632 -8083 query I rowsort SELECT DISTINCT + col0 + + col1 AS col2 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL - col1 + - ( col2 ) * col2 FROM tab0 AS cor0 ---- -1175 -6815 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col2 * - 56 + ( + col2 ) * col0 * 51 col1 FROM tab1 AS cor0 ---- 11286 189240 397056 query I rowsort SELECT - col2 + + 44 * col1 * col0 AS col1 FROM tab1 cor0 ---- 28103 3378 45664 query I rowsort SELECT + col1 * - 52 + - col0 AS col1 FROM tab2 AS cor0 ---- -1619 -3146 -963 query I rowsort SELECT DISTINCT - cor0.col2 + - 36 FROM tab1 AS cor0 ---- -132 -90 -93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4130 SELECT DISTINCT + + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4130 SELECT DISTINCT + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL - col2 + - col2 * col1 AS col0 FROM tab2 AS cor0 ---- -1560 -684 -864 onlyif mysql # use DIV operator for integer division query I rowsort label-4132 SELECT ALL - CAST( - col0 AS SIGNED ) DIV col2 FROM tab1 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-4132 SELECT ALL - CAST ( - col0 AS INTEGER ) / col2 FROM tab1 ---- 0 0 1 query I rowsort SELECT - + 40 FROM tab0 AS cor0 ---- -40 -40 -40 query I rowsort SELECT DISTINCT + 36 * col0 * + col0 AS col0 FROM tab2 ---- 1764 219024 224676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4135 SELECT DISTINCT + col1 + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4135 SELECT DISTINCT + col1 + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + - cor0.col2 * col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL + 20 * - col1 FROM tab1 ---- -200 -260 -520 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 35 * col1 col1 FROM tab2 AS cor0 ---- 1085 2065 595 query I rowsort SELECT + 77 * + col0 FROM tab0 AS cor0 ---- 1848 2695 6853 query I rowsort SELECT cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 onlyif mysql # use DIV operator for integer division query I rowsort label-4141 SELECT DISTINCT col2 DIV - col2 AS col1 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-4141 SELECT DISTINCT col2 / - col2 AS col1 FROM tab0 AS cor0 ---- -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4142 SELECT ALL + col2 * CAST( col1 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0 ---- 132 2862 7551 skipif mysql # not compatible query I rowsort label-4142 SELECT ALL + col2 * CAST ( col1 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT + - col1 + + ( col1 ) * - col0 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT ALL + col1 * col1 + - ( - col1 ) FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT DISTINCT + col2 - 36 FROM tab2 cor0 ---- -10 -9 2 query I rowsort SELECT DISTINCT - cor0.col0 * + 88 AS col1 FROM tab0 AS cor0 ---- -2112 -3080 -7832 query I rowsort SELECT + col1 * col2 + - col1 FROM tab2 AS cor0 ---- 1475 629 806 onlyif mysql # use DIV operator for integer division query I rowsort label-4148 SELECT ALL - col1 DIV ( - 61 ) FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4148 SELECT ALL - col1 / ( - 61 ) FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + + col0 col2 FROM tab2 cor0 ---- 104 117 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4150 SELECT ALL + cor0.col1 - + 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-4150 SELECT ALL + cor0.col1 - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col2 * - col2 + cor0.col2 * col1 * + 33 FROM tab0 AS cor0 ---- 252970 3202 94743 query I rowsort SELECT col0 * ( 15 ) AS col0 FROM tab2 AS cor0 ---- 105 1170 1185 query I rowsort SELECT col0 + col2 * col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT + col0 * - col0 + + col2 FROM tab2 AS cor0 ---- -22 -6058 -6203 query I rowsort SELECT ALL - 93 * col2 + + col2 FROM tab2 AS cor0 ---- -2392 -2484 -3496 query I rowsort SELECT - ( + col1 ) AS col0 FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT ( col0 ) * - cor0.col0 + 96 * - col2 FROM tab0 AS cor0 ---- -1321 -15793 -3744 onlyif mysql # use DIV operator for integer division query I rowsort label-4158 SELECT ALL - - col1 DIV - col1 + - col0 AS col0 FROM tab2 cor0 ---- -79 -8 -80 skipif mysql # not compatible query I rowsort label-4158 SELECT ALL - - col1 / - col1 + - col0 AS col0 FROM tab2 cor0 ---- -79 -8 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-4159 SELECT col0 DIV + col2 col2 FROM tab0 AS cor0 ---- 0 1 35 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4159 SELECT col0 / + col2 col2 FROM tab0 AS cor0 ---- 0 1 35 onlyif mysql # use DIV operator for integer division query I rowsort label-4160 SELECT DISTINCT - 63 DIV - ( cor0.col1 ) FROM tab1 AS cor0 ---- 2 4 6 skipif mysql # not compatible query I rowsort label-4160 SELECT DISTINCT - 63 / - ( cor0.col1 ) FROM tab1 AS cor0 ---- 2 4 6 query I rowsort SELECT ALL + cor1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT ALL cor0.col2 * - col2 AS col0 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT col0 * - col2 AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT + + cor0.col1 * + 12 + - col1 * - ( + col2 ) AS col1 FROM tab0 AS cor0 ---- 1261 3870 8554 query I rowsort SELECT ALL + cor0.col1 AS col1 FROM tab1, tab2 cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT - + col1 + + col1 * - col2 FROM tab2 AS cor0 ---- -1593 -663 -868 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4167 SELECT CAST( NULL AS SIGNED ) + col2 * col2 AS col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4167 SELECT CAST ( NULL AS INTEGER ) + col2 * col2 AS col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - 76 AS col0 FROM tab1 AS cor0 ---- -76 -76 -76 query I rowsort SELECT + col1 * + col2 * - cor0.col1 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT + col2 + ( col1 ) * + col2 FROM tab0 AS cor0 ---- 2871 7544 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 + col0 * + col1 col1 FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT ALL 60 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2 ---- 243 values hashing to 76f3d52d720563c757a3ef12ad50dc37 query I rowsort SELECT - col0 * ( cor0.col2 ) FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + col0 * - cor0.col0 * col0 FROM tab0 AS cor0 ---- -13824 -42875 -704969 query I rowsort SELECT - col1 * 74 AS col1 FROM tab0 AS cor0 ---- -6364 -6734 -7178 query I rowsort SELECT DISTINCT 26 + + col0 FROM tab2 ---- 104 105 33 query I rowsort SELECT ( 15 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4178 SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab2 cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-4178 SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab2 cor0 ---- 26 27 38 query I rowsort SELECT col1 * 71 AS col2 FROM tab2 ---- 1207 2201 4189 query I rowsort SELECT DISTINCT 18 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 18 query I rowsort SELECT + cor0.col2 * - 68 AS col0 FROM tab1 cor0 ---- -3672 -3876 -6528 query I rowsort SELECT ALL col2 * 38 FROM tab1 ---- 2052 2166 3648 query I rowsort SELECT ALL col0 * - 60 AS col2 FROM tab1 ---- -180 -3840 -4800 query I rowsort SELECT ALL - 19 - 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a onlyif mysql # use DIV operator for integer division query I rowsort label-4185 SELECT col1 DIV col1 - col0 AS col1 FROM tab0 ---- -23 -34 -88 skipif mysql # not compatible query I rowsort label-4185 SELECT col1 / col1 - col0 AS col1 FROM tab0 ---- -23 -34 -88 query I rowsort SELECT DISTINCT tab2.col1 + col0 + col0 * col1 AS col0 FROM tab2 ---- 1439 255 4739 query I rowsort SELECT + cor0.col0 + + 58 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to ed2018dec6b071f154fd8cf9a42cc36c query I rowsort SELECT col0 * cor0.col2 + col2 FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4189 SELECT DISTINCT col2 * + CAST( - col1 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0 ---- -1612 -725 -844 skipif mysql # not compatible query I rowsort label-4189 SELECT DISTINCT col2 * + CAST ( - col1 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT DISTINCT tab1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4191 SELECT col1 + + CAST( 34 AS SIGNED ) AS col2 FROM tab0 ---- 120 125 131 skipif mysql # not compatible query I rowsort label-4191 SELECT col1 + + CAST ( 34 AS INTEGER ) AS col2 FROM tab0 ---- 120 125 131 query IIIIIIIII rowsort SELECT ALL * FROM tab1, tab2, tab0 cor0 WHERE NOT tab2.col1 > ( NULL ) ---- query I rowsort SELECT DISTINCT col2 * + ( 64 ) FROM tab0 ---- 2112 5248 64 onlyif mysql # use DIV operator for integer division query I rowsort label-4194 SELECT ALL + - col2 * col1 + col1 DIV cor0.col1 col2 FROM tab1 AS cor0 ---- -1247 -1403 -569 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4194 SELECT ALL + - col2 * col1 + col1 / cor0.col1 col2 FROM tab1 AS cor0 ---- -1247 -1403 -569 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col2 * + CAST ( col1 AS REAL ) + col0 AS col1 FROM tab1 cor0 ---- -1168 -1401 -506 query I rowsort SELECT + cor1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT cor0.col2 + - 82 AS col0 FROM tab0 cor0 ---- -49 -81 0 query I rowsort SELECT + + col2 * - 59 * col1 + - col0 * col2 FROM tab2 AS cor0 ---- -41116 -49572 -92534 onlyif mysql # use DIV operator for integer division query I rowsort label-4199 SELECT DISTINCT - cor0.col0 DIV + col1 + col2 AS col1 FROM tab1 cor0 ---- 51 54 90 skipif mysql # not compatible query I rowsort label-4199 SELECT DISTINCT - cor0.col0 / + col1 + col2 AS col1 FROM tab1 cor0 ---- 51 54 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4200 SELECT ALL + col1 * + CAST( NULL AS SIGNED ) + - col0 * + col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4200 SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + - col0 * + col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4201 SELECT ALL col2 DIV col2 + col2 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-4201 SELECT ALL col2 / col2 + col2 FROM tab0 AS cor0 ---- 2 34 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 - col1 * - tab0.col0 col0 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ALL + col0 - + 81 FROM tab0 ---- -46 -57 8 onlyif mysql # use DIV operator for integer division query I rowsort label-4204 SELECT ALL + col1 DIV col1 - col0 AS col2 FROM tab2 ---- -6 -77 -78 skipif mysql # not compatible query I rowsort label-4204 SELECT ALL + col1 / col1 - col0 AS col2 FROM tab2 ---- -6 -77 -78 query I rowsort SELECT - tab2.col1 + - col0 + - col2 FROM tab2 ---- -134 -163 -65 query I rowsort SELECT ALL + - col1 * col0 AS col0 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT - col1 * - cor0.col1 - - col0 FROM tab0 AS cor0 ---- 7420 8370 9444 query I rowsort SELECT - - col2 + + 76 * - col1 AS col0 FROM tab1 cor0 ---- -1922 -703 -892 query I rowsort SELECT DISTINCT 40 * - col0 + 93 * 40 AS col0 FROM tab0 AS cor0 ---- 160 2320 2760 query I rowsort SELECT ALL 50 FROM tab1 AS cor0 ---- 50 50 50 query I rowsort SELECT - 73 + col1 AS col2 FROM tab0 AS cor0 ---- 13 18 24 query I rowsort SELECT DISTINCT 6 + col1 + + ( + ( + col2 ) * col1 ) FROM tab2 AS cor0 ---- 1599 669 874 onlyif mysql # use DIV operator for integer division query I rowsort label-4213 SELECT DISTINCT + col2 DIV + col2 + + 24 col0 FROM tab0 AS cor0 ---- 25 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4213 SELECT DISTINCT + col2 / + col2 + + 24 col0 FROM tab0 AS cor0 ---- 25 query I rowsort SELECT ALL + 63 * - col0 + + col0 * col2 AS col2 FROM tab1 AS cor0 ---- -27 -384 2640 query I rowsort SELECT ALL 50 * col1 + - ( col0 ) AS col1 FROM tab0 AS cor0 ---- 4276 4461 4815 query I rowsort SELECT DISTINCT - 51 + col0 FROM tab0 AS cor0 ---- -16 -27 38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col1 + 13 col1 FROM tab2 AS cor0 ---- 1356 230 4615 query I rowsort SELECT ALL - col1 - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT ALL + 85 * col2 + cor0.col1 * col1 AS col1 FROM tab2 cor0 ---- 3256 3519 5691 query I rowsort SELECT + 54 * col2 AS col2 FROM tab0 ---- 1782 4428 54 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4221 SELECT CAST( 53 + col2 AS SIGNED ) * + col1 FROM tab2 ---- 1547 2480 4661 skipif mysql # not compatible query I rowsort label-4221 SELECT CAST ( 53 + col2 AS INTEGER ) * + col1 FROM tab2 ---- 1547 2480 4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 + col2 col0 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT col2 * col2 AS col1 FROM tab2 cor0 ---- 1444 676 729 query I rowsort SELECT DISTINCT + 68 + col0 + - col2 * tab0.col1 FROM tab0 ---- -2746 -7305 6 onlyif mysql # use DIV operator for integer division query I rowsort label-4225 SELECT DISTINCT - - col2 + - col2 * col2 DIV + col0 FROM tab2 AS cor0 ---- -77 18 20 skipif mysql # not compatible query I rowsort label-4225 SELECT DISTINCT - - col2 + - col2 * col2 / + col0 FROM tab2 AS cor0 ---- -77 18 20 query I rowsort SELECT DISTINCT + cor0.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-4227 SELECT DISTINCT + 25 - col1 DIV col2 FROM tab0 ---- -72 23 24 skipif mysql # not compatible query I rowsort label-4227 SELECT DISTINCT + 25 - col1 / col2 FROM tab0 ---- -72 23 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col2 * + col1 + col0 * col1 col0 FROM tab2 AS cor0 ---- 12325 26164 95108 query I rowsort SELECT + + col2 * 76 FROM tab2 AS cor0 ---- 1976 2052 2888 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4230 SELECT + - col0 + + CAST( NULL AS DECIMAL ) 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-4230 SELECT + - col0 + + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 92 + col2 FROM tab2 ---- -54 -65 -66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col1 * + tab1.col2 col1 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT ALL tab0.col1 + - col2 AS col0 FROM tab0 ---- 53 9 96 query I rowsort SELECT ALL - 48 + + cor0.col1 * cor0.col0 * - col0 FROM tab0 AS cor0 ---- -118873 -49584 -720859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col2 ) col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL + - 92 FROM tab0 AS cor0 ---- -92 -92 -92 query I rowsort SELECT ( col1 ) * col1 + col2 FROM tab2 AS cor0 ---- 327 3507 988 query I rowsort SELECT DISTINCT - + col0 * 43 FROM tab1 AS cor0 ---- -129 -2752 -3440 query I rowsort SELECT ALL - 95 * + 11 FROM tab1 AS cor0 ---- -1045 -1045 -1045 query I rowsort SELECT + col2 + - col2 * col0 * - col1 AS col2 FROM tab2 AS cor0 ---- 119678 51072 5886 query I rowsort SELECT DISTINCT - - cor0.col2 * - cor0.col1 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + + 55 * col2 FROM tab0 AS cor0 ---- 1815 4510 55 query I rowsort SELECT col1 * + 79 AS col0 FROM tab1 cor0 ---- 1027 2054 790 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + tab0.col0 col1 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 - + ( - col2 ) col1 FROM tab1 ---- 121 176 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( 33 ) + col1 col0 FROM tab1 AS cor0 ---- 43 46 59 query I rowsort SELECT + + 37 + + col2 * - col0 FROM tab1 cor0 ---- -125 -3611 -7643 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4248 SELECT ALL + CAST( NULL AS SIGNED ) * 97 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4248 SELECT ALL + CAST ( NULL AS INTEGER ) * 97 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 + - 15 AS col2 FROM tab0 AS cor0 ---- -14 18 67 query I rowsort SELECT DISTINCT - - 34 * - col1 + - col1 AS col0 FROM tab0 AS cor0 ---- -3010 -3185 -3395 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 54 col2 FROM tab1 AS cor0 ---- -54 -54 -54 query I rowsort SELECT ALL + ( 48 ) + - col0 * 3 FROM tab2 AS cor0 ---- -186 -189 27 query I rowsort SELECT 71 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2 query I rowsort SELECT ALL ( + 40 + col0 ) * 7 AS col1 FROM tab1 ---- 301 728 840 query I rowsort SELECT - 9 * + col1 FROM tab2 AS cor0 ---- -153 -279 -531 query I rowsort SELECT col1 * col0 * - col1 + col0 * + col0 AS col0 FROM tab2 AS cor0 ---- -16590 -265434 -6678 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * - col0 col2 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT ALL + tab2.col1 * + tab2.col1 FROM tab2 ---- 289 3481 961 query I rowsort SELECT col1 * col2 + cor0.col0 FROM tab1 AS cor0 ---- 1328 1407 634 onlyif mysql # use DIV operator for integer division query I rowsort label-4260 SELECT col1 * + col2 * cor0.col1 + col0 DIV col2 AS col2 FROM tab0 AS cor0 ---- 244068 679043 9444 skipif mysql # not compatible query I rowsort label-4260 SELECT col1 * + col2 * cor0.col1 + col0 / col2 AS col2 FROM tab0 AS cor0 ---- 244068 679043 9444 query I rowsort SELECT - cor0.col2 * - cor0.col2 * col1 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT - col2 + cor0.col0 * col0 AS col2 FROM tab0 AS cor0 ---- 1224 543 7839 onlyif mysql # use DIV operator for integer division query I rowsort label-4263 SELECT ALL + 94 + col1 * col2 + - tab2.col1 DIV + col0 AS col1 FROM tab2 ---- 1628 740 927 skipif mysql # not compatible query I rowsort label-4263 SELECT ALL + 94 + col1 * col2 + - tab2.col1 / + col0 AS col1 FROM tab2 ---- 1628 740 927 query I rowsort SELECT ALL + 88 + - col1 FROM tab1 ---- 62 75 78 onlyif mysql # use DIV operator for integer division query I rowsort label-4265 SELECT ALL 6 DIV - 11 AS col2 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4265 SELECT ALL 6 / - 11 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT col2 * 11 AS col2 FROM tab2 ---- 286 297 418 onlyif mysql # use DIV operator for integer division query I rowsort label-4267 SELECT - 55 DIV col0 AS col1 FROM tab0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-4267 SELECT - 55 / col0 AS col1 FROM tab0 ---- -1 -2 0 query I rowsort SELECT DISTINCT + ( - tab0.col0 + - col2 ) AS col1 FROM tab0 ---- -171 -36 -57 query I rowsort SELECT ALL + col2 + col0 + + col2 AS col2 FROM tab2 ---- 130 155 61 query I rowsort SELECT ALL - 11 * + 35 + col2 FROM tab2 ---- -347 -358 -359 query I rowsort SELECT ALL + col0 + col1 * col2 FROM tab2 ---- 1612 725 844 query III rowsort SELECT * FROM tab0 WHERE ( NOT NULL <> NULL ) AND NOT ( + col0 - col1 ) NOT IN ( col1 ) ---- query I rowsort SELECT - + col0 * col2 AS col0 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT - 79 * + col2 + + col1 * col0 FROM tab2 AS cor0 ---- -1659 -1916 2548 query I rowsort SELECT - - 52 + col1 + - cor0.col1 AS col0 FROM tab1 AS cor0 ---- 52 52 52 query I rowsort SELECT + + 74 * cor0.col0 * + col0 AS col1 FROM tab2 cor0 ---- 3626 450216 461834 query I rowsort SELECT col2 * - cor0.col1 + - col1 AS col0 FROM tab2 AS cor0 ---- -1593 -663 -868 onlyif mysql # use DIV operator for integer division query I rowsort label-4278 SELECT ALL - - col2 DIV - col0 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-4278 SELECT ALL - - col2 / - col0 FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT ALL - - 10 * col1 * + col2 AS col0 FROM tab1 AS cor0 ---- 12480 14040 5700 query I rowsort SELECT - 96 * - col0 + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 291 6208 7760 query I rowsort SELECT ALL - col2 FROM tab1 WHERE NOT col2 * col2 * col1 NOT IN ( + col2 / col0 ) ---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( NULL ) >= NULL ---- query I rowsort SELECT - tab2.col1 - - col1 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND col2 / col2 ---- query I rowsort SELECT DISTINCT col2 + + col0 + col0 FROM tab2 ---- 182 196 41 query III rowsort SELECT ALL * FROM tab1 WHERE - col2 - + col1 * + col0 / - col2 <= NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4286 SELECT ALL col2 DIV col2 AS col2 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4286 SELECT ALL col2 / col2 AS col2 FROM tab0 ---- 1 1 1 query I rowsort SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( col1 + col2 / + col2 ) < NULL ---- query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 ---- query I rowsort SELECT ALL col1 + - tab2.col1 - + col2 AS col0 FROM tab2 ---- -26 -27 -38 query III rowsort SELECT ALL * FROM tab1 WHERE NOT col2 - col0 / col2 <> - col0 + - col0 * + col0 + col2 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4291 SELECT DISTINCT col2 * + col1 DIV col1 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-4291 SELECT DISTINCT col2 * + col1 / col1 FROM tab2 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-4292 SELECT + tab2.col1 DIV + col0 AS col2 FROM tab2 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-4292 SELECT + tab2.col1 / + col0 AS col2 FROM tab2 ---- 0 0 4 query I rowsort SELECT col0 * - col2 + col1 FROM tab1 ---- -136 -3638 -7667 query III rowsort SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL ---- query III rowsort SELECT * FROM tab1 WHERE NOT col0 + - col0 NOT IN ( - col2 / col1 ) ---- query I rowsort SELECT ALL - tab0.col1 * - col2 AS col2 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT col0 FROM tab2 WHERE NULL >= ( - col1 ) ---- query I rowsort SELECT ALL + col2 + + col1 AS col0 FROM tab2 ---- 55 58 85 query I rowsort SELECT DISTINCT col1 * col1 * + col2 AS col2 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT col2 + + col2 * col0 + + col1 FROM tab0 ---- 133 7471 911 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + col1 col1 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL - col0 * - col0 AS col0 FROM tab1 WHERE NULL <= ( NULL ) ---- query I rowsort SELECT ALL + col1 + col1 * + tab0.col2 FROM tab0 ---- 194 2924 7553 query I rowsort SELECT ALL tab1.col1 * col1 + + col0 * col1 FROM tab1 ---- 1209 740 754 query I rowsort SELECT DISTINCT - col1 + col1 * col0 AS col0 FROM tab0 ---- 1978 3298 8008 onlyif mysql # use DIV operator for integer division query I rowsort label-4307 SELECT col0 + col2 DIV tab0.col0 FROM tab0 ---- 25 35 89 skipif mysql # not compatible query I rowsort label-4307 SELECT col0 + col2 / tab0.col0 FROM tab0 ---- 25 35 89 query I rowsort SELECT DISTINCT col0 * col1 * tab2.col0 FROM tab2 ---- 106097 1519 358956 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL < ( NULL ) ---- query I rowsort SELECT ALL col1 * tab0.col0 AS col1 FROM tab0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col0 + - col0 col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT col2 + cor0.col0 FROM tab0 cor0 ---- 171 36 57 query III rowsort SELECT * FROM tab2 cor0 WHERE ( - col0 + col0 ) <= NULL ---- query I rowsort SELECT col2 FROM tab2 AS cor0 WHERE NOT ( - col0 + col0 ) BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT DISTINCT + col0 * + col2 * + col2 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT col2 AS col0 FROM tab1 WHERE NOT + col1 NOT IN ( + col0 ) ---- query I rowsort SELECT col0 * + col0 * - col2 FROM tab1 ---- -233472 -486 -614400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4318 SELECT ALL - + CAST( - col2 AS SIGNED ) - + col1 AS col2 FROM tab0 AS cor0 ---- -53 -9 -96 skipif mysql # not compatible query I rowsort label-4318 SELECT ALL - + CAST ( - col2 AS INTEGER ) - + col1 AS col2 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL - ( 39 ) * + col2 + + col1 * 49 * - col0 AS col0 FROM tab2 AS cor0 ---- -11686 -226512 -67289 query I rowsort SELECT ALL + ( col0 ) * + col0 * 5 + col1 FROM tab0 AS cor0 ---- 2966 39696 6222 query I rowsort SELECT - col2 * 90 AS col0 FROM tab2 AS cor0 ---- -2340 -2430 -3420 query I rowsort SELECT DISTINCT + 84 * - col0 - col2 AS col0 FROM tab0 AS cor0 ---- -2049 -2941 -7558 query I rowsort SELECT col2 * - 37 FROM tab2 AS cor0 ---- -1406 -962 -999 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4324 SELECT - + 85 * + col1 + col0 - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 ---- -7310 -7735 -8245 skipif mysql # not compatible query I rowsort label-4324 SELECT - + 85 * + col1 + col0 - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 ---- -7310 -7735 -8245 query I rowsort SELECT DISTINCT 36 AS col0 FROM tab2 AS cor0 ---- 36 query I rowsort SELECT + + ( col1 ) * + col2 * col0 + - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 119626 50996 5832 query I rowsort SELECT ALL - col2 - 56 FROM tab2 ---- -82 -83 -94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4328 SELECT - tab0.col0 * CAST( 52 AS SIGNED ) * col1 + + col2 + + col1 * tab0.col2 * col0 AS col2 FROM tab0 ---- -173144 -39183 243052 skipif mysql # not compatible query I rowsort label-4328 SELECT - tab0.col0 * CAST ( 52 AS INTEGER ) * col1 + + col2 + + col1 * tab0.col2 * col0 AS col2 FROM tab0 ---- -173144 -39183 243052 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + col1 + tab0.col0 * + col1 - col1 col2 FROM tab0 ---- 16107 4042 6693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + 73 col2 FROM tab1 AS cor0 ---- 83 86 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * + col0 col1 FROM tab1 cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort SELECT - ( + ( col2 ) ) * CAST ( col1 AS REAL ) - - col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT ALL + ( - col0 ) + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 + - 40 AS col2 FROM tab0 AS cor0 ---- -16 -5 49 query I rowsort SELECT DISTINCT + col2 * + 53 AS col1 FROM tab2 ---- 1378 1431 2014 query I rowsort SELECT - col1 * - 61 AS col1 FROM tab0 ---- 5246 5551 5917 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 + - cor0.col1 col0 FROM tab2 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4338 SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 + - col2 AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-4338 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 + - col2 AS col0 FROM tab1 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4339 SELECT CAST( tab0.col1 + + col1 AS SIGNED ) * - ( - 97 ) FROM tab0 ---- 16684 17654 18818 skipif mysql # not compatible query I rowsort label-4339 SELECT CAST ( tab0.col1 + + col1 AS INTEGER ) * - ( - 97 ) FROM tab0 ---- 16684 17654 18818 query I rowsort SELECT ALL - - ( ( - col1 ) ) AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT - - ( + col2 ) * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT + cor0.col2 * col0 + col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT DISTINCT - 47 AS col0 FROM tab0 AS cor0 ---- -47 query I rowsort SELECT DISTINCT 85 * col0 * + col1 AS col1 FROM tab0 AS cor0 ---- 175440 288575 688415 query I rowsort SELECT ALL + ( 71 ) * - col1 * col0 + - col1 FROM tab0 ---- -146630 -241142 -575120 query I rowsort SELECT + - col2 + ( + cor0.col2 ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col0 * 99 FROM tab2 AS cor0 ---- -693 -7722 -7821 query I rowsort SELECT 54 + 23 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to d7b027bca5d37c67e29013904def8125 query I rowsort SELECT + 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b query I rowsort SELECT - - col2 * - col1 AS col0 FROM tab0 cor0 ---- -2838 -7462 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4351 SELECT ALL CAST( 11 AS SIGNED ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 skipif mysql # not compatible query I rowsort label-4351 SELECT ALL CAST ( 11 AS INTEGER ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 query I rowsort SELECT - col0 * col0 + col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT DISTINCT col2 + + 30 AS col0 FROM tab2 AS cor0 ---- 56 57 68 query I rowsort SELECT + ( - 83 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to d55748f39f403ec273099c0d87b0bfbb query I rowsort SELECT col2 * + tab2.col1 + + col0 AS col1 FROM tab2 ---- 1612 725 844 query I rowsort SELECT col2 + + 39 FROM tab2 ---- 65 66 77 query I rowsort SELECT ALL cor0.col2 + + col2 * 24 FROM tab1 AS cor0 ---- 1350 1425 2400 query I rowsort SELECT ALL - cor0.col0 + + ( - 40 ) + - col2 * + col1 AS col1 FROM tab2 AS cor0 ---- -1652 -765 -884 query I rowsort SELECT col0 * 60 FROM tab1 AS cor0 ---- 180 3840 4800 query I rowsort SELECT DISTINCT + + col2 * - col2 + - col1 AS col1 FROM tab0 AS cor0 ---- -1175 -6815 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * col1 * col2 col1 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT DISTINCT 21 * + col2 FROM tab2 AS cor0 ---- 546 567 798 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 71 col0 FROM tab1 AS cor0 ---- -71 -71 -71 query I rowsort SELECT - col0 * 93 FROM tab1 AS cor0 ---- -279 -5952 -7440 query I rowsort SELECT DISTINCT + 67 * col2 FROM tab2 AS cor0 ---- 1742 1809 2546 query I rowsort SELECT + col1 * - 25 FROM tab1 ---- -250 -325 -650 query I rowsort SELECT + + 26 FROM tab1 AS cor0 ---- 26 26 26 query I rowsort SELECT DISTINCT - col2 * - cor0.col0 + - col1 AS col0 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT ALL + 41 * cor0.col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 9480e887f0cd1334bb950c8d1abb4bf1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4370 SELECT + tab0.col1 + + CAST( NULL AS SIGNED ) / - 14 AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4370 SELECT + tab0.col1 + + CAST ( NULL AS INTEGER ) / - 14 AS col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4371 SELECT + col0 + ( + cor0.col2 ) DIV + col0 AS col1 FROM tab2 AS cor0 ---- 10 78 79 skipif mysql # not compatible query I rowsort label-4371 SELECT + col0 + ( + cor0.col2 ) / + col0 AS col1 FROM tab2 AS cor0 ---- 10 78 79 query I rowsort SELECT ALL + ( col1 ) + ( 76 * col0 ) FROM tab0 AS cor0 ---- 1910 2757 6855 query I rowsort SELECT ALL + ( + 38 ) FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb query I rowsort SELECT + 90 + + col2 AS col2 FROM tab1 ---- 144 147 186 query I rowsort SELECT ALL 66 FROM tab1, tab2, tab1 cor0 ---- 27 values hashing to 897b6122ac98340b78905f39d81897fc query I rowsort SELECT DISTINCT - col1 + col2 + + ( + 87 ) * col2 AS col0 FROM tab2 AS cor0 ---- 2229 2345 3327 query I rowsort SELECT ALL + ( col2 ) + col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT DISTINCT - 30 + col2 FROM tab2 AS cor0 ---- -3 -4 8 query I rowsort SELECT 85 AS col2 FROM tab0 cor0 ---- 85 85 85 query I rowsort SELECT + - 78 FROM tab1 AS cor0 ---- -78 -78 -78 query I rowsort SELECT col2 + + col0 * col1 FROM tab1 AS cor0 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-4382 SELECT DISTINCT + - 54 DIV col0 + col0 * - 18 FROM tab0 AS cor0 ---- -1602 -434 -631 skipif mysql # not compatible query I rowsort label-4382 SELECT DISTINCT + - 54 / col0 + col0 * - 18 FROM tab0 AS cor0 ---- -1602 -434 -631 query I rowsort SELECT + col2 * + 85 AS col2 FROM tab1 AS cor0 ---- 4590 4845 8160 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 + - cor0.col0 col1 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT - col0 + + 60 FROM tab1 AS cor0 ---- -20 -4 57 onlyif mysql # use DIV operator for integer division query I rowsort label-4386 SELECT DISTINCT col0 - 42 DIV - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 25 77 89 skipif mysql # not compatible query I rowsort label-4386 SELECT DISTINCT col0 - 42 / - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 25 77 89 query I rowsort SELECT DISTINCT + col0 * - col2 + + ( + col1 ) + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -133 -3574 -7587 query I rowsort SELECT col2 * - col1 + + ( - tab1.col2 ) AS col2 FROM tab1 ---- -1344 -1458 -627 query I rowsort SELECT - 86 AS col0 FROM tab0 ---- -86 -86 -86 query I rowsort SELECT - ( + col0 ) + tab0.col2 AS col0 FROM tab0 ---- -34 -7 9 query I rowsort SELECT col2 - col0 * + ( + col0 ) AS col2 FROM tab2 ---- -22 -6058 -6203 query I rowsort SELECT ALL - col2 * + col1 + + 26 AS col1 FROM tab0 AS cor0 ---- -2812 -71 -7436 query I rowsort SELECT - col2 * + 57 + 15 FROM tab2 AS cor0 ---- -1467 -1524 -2151 query I rowsort SELECT - cor0.col0 + 32 FROM tab0 AS cor0 ---- -3 -57 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 + + 92 * + col1 col0 FROM tab0 AS cor0 ---- 7879 8290 8923 query I rowsort SELECT + + col0 + 17 FROM tab1 AS cor0 ---- 20 81 97 query I rowsort SELECT - col2 + col2 * + col2 * col1 AS col1 FROM tab0 ---- 611802 93621 96 query I rowsort SELECT - 32 + + col2 FROM tab0 ---- -31 1 50 query I rowsort SELECT ALL - cor0.col1 + - 98 FROM tab2, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 21192f5debf42368a35b84a5ee6860a5 query I rowsort SELECT 53 * cor0.col2 * - col0 FROM tab2 AS cor0 ---- -10017 -107484 -159106 query I rowsort SELECT - - 56 * + col1 FROM tab1 AS cor0 ---- 1456 560 728 query I rowsort SELECT ALL + - col0 * + 30 FROM tab0 AS cor0 ---- -1050 -2670 -720 query I rowsort SELECT ( + col1 ) + col2 - + cor0.col2 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT + tab2.col1 + 76 FROM tab2 ---- 107 135 93 query I rowsort SELECT tab2.col2 * col0 + col0 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT + + ( col0 ) * col2 * + 49 AS col0 FROM tab1 AS cor0 ---- 178752 376320 7938 query I rowsort SELECT col0 + + ( col2 ) FROM tab2 ---- 104 117 34 query I rowsort SELECT 13 * 80 FROM tab2 AS cor0 ---- 1040 1040 1040 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab2 cor0, tab1, tab0 cor1 ---- 972 values hashing to e84152c0bf436177d3b3d80e42832d4f onlyif mysql # use DIV operator for integer division query I rowsort label-4410 SELECT col2 DIV - 40 FROM tab0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-4410 SELECT col2 / - 40 FROM tab0 ---- -2 0 0 query I rowsort SELECT - ( 68 ) * + col1 AS col1 FROM tab2 ---- -1156 -2108 -4012 query I rowsort SELECT ALL + 43 * cor0.col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to ca3b5386786f44a3c284894966f3d484 query I rowsort SELECT DISTINCT - ( ( col2 ) ) AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4414 SELECT col1 * col1 + col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4414 SELECT col1 * col1 + col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 9 * - 72 + - col2 * + 28 + col0 col1 FROM tab1 AS cor0 ---- -2157 -2180 -3256 query I rowsort SELECT + 94 * col1 - - col0 * col2 AS col0 FROM tab0 AS cor0 ---- 15852 8876 9153 query I rowsort SELECT ALL - + 25 * - col2 AS col0 FROM tab2 AS cor0 ---- 650 675 950 query I rowsort SELECT - tab0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT DISTINCT + 89 + + col1 FROM tab2 AS cor0 ---- 106 120 148 query I rowsort SELECT cor0.col2 + col1 * col2 - + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL - ( cor0.col0 ) * - 61 FROM tab0 AS cor0 ---- 1464 2135 5429 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + ( - col2 ) * + 42 col0 FROM tab0 AS cor0 ---- -1386 -3444 -42 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 64 col1 FROM tab1 ---- -64 -64 -64 query I rowsort SELECT + 83 AS col1 FROM tab1 ---- 83 83 83 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2, tab2 cor1 ---- 972 values hashing to a698694a7dac245e42212ff0316bdf45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4426 SELECT 69 * col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4426 SELECT 69 * col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4427 SELECT - 73 * col0 DIV - 33 AS col2 FROM tab1 AS cor0 ---- 141 176 6 skipif mysql # not compatible query I rowsort label-4427 SELECT - 73 * col0 / - 33 AS col2 FROM tab1 AS cor0 ---- 141 176 6 onlyif mysql # use DIV operator for integer division query I rowsort label-4428 SELECT DISTINCT tab0.col1 + - col1 * - col2 DIV col2 - + col2 DIV - CAST( 34 * col2 AS SIGNED ) FROM tab0 ---- 172 182 194 skipif mysql # not compatible query I rowsort label-4428 SELECT DISTINCT tab0.col1 + - col1 * - col2 / col2 - + col2 / - CAST ( 34 * col2 AS INTEGER ) FROM tab0 ---- 172 182 194 query I rowsort SELECT ( col0 ) + - 65 FROM tab2 AS cor0 ---- -58 13 14 onlyif mysql # use DIV operator for integer division query I rowsort label-4430 SELECT + col1 * + col0 * 99 + cor0.col1 DIV + col0 FROM tab0 cor0 ---- 204339 336107 801802 skipif mysql # not compatible query I rowsort label-4430 SELECT + col1 * + col0 * 99 + cor0.col1 / + col0 FROM tab0 cor0 ---- 204339 336107 801802 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 + + cor1.col2 * + 27 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to c3ba7c1cada96807ee4047dd3b2eb7de query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 cor2 ---- 3645 values hashing to b3ea820890445d59f3f7464a1521d42d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * - col1 + 28 col0 FROM tab1 AS cor0 ---- -141 -648 -72 query I rowsort SELECT + - col2 + ( ( col2 ) ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + 75 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 75 query I rowsort SELECT ALL - col0 + col0 * col0 FROM tab0 ---- 1190 552 7832 onlyif mysql # use DIV operator for integer division query I rowsort label-4437 SELECT - col0 DIV + 67 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-4437 SELECT - col0 / + 67 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT 91 - - 82 AS col0 FROM tab1 ---- 173 173 173 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 23 - - col0 col2 FROM tab2 ---- -16 55 56 query I rowsort SELECT ( cor0.col1 ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT ALL + + ( 78 ) + col2 FROM tab0 AS cor0 ---- 111 160 79 query I rowsort SELECT cor0.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c query I rowsort SELECT ALL + 32 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to d30a2acbf33c88274474306936d3227b onlyif mysql # use DIV operator for integer division query I rowsort label-4444 SELECT - 82 * cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0 ---- -82 -82 -82 skipif mysql # not compatible query I rowsort label-4444 SELECT - 82 * cor0.col2 / col2 AS col0 FROM tab1 AS cor0 ---- -82 -82 -82 query I rowsort SELECT DISTINCT col0 * - col0 + - col2 AS col0 FROM tab2 AS cor0 ---- -6110 -6279 -76 query I rowsort SELECT ALL - col0 - + col2 AS col0 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT DISTINCT + col1 + + col0 AS col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL - col1 * - 65 FROM tab1 AS cor0 ---- 1690 650 845 query I rowsort SELECT DISTINCT col1 * - 34 + - col0 FROM tab2 AS cor0 ---- -1061 -2084 -657 query I rowsort SELECT ALL col0 * col0 * - col1 FROM tab2 cor0 ---- -106097 -1519 -358956 query I rowsort SELECT col2 + 97 * - 84 FROM tab2 AS cor0 ---- -8110 -8121 -8122 query I rowsort SELECT - col0 * ( 74 ) FROM tab2 cor0 ---- -518 -5772 -5846 query I rowsort SELECT DISTINCT col0 * col1 * ( col1 * cor0.col1 ) + - col2 * + col1 FROM tab0 AS cor0 ---- 15262506 31943458 67060357 onlyif mysql # use DIV operator for integer division query I rowsort label-4454 SELECT ALL + col1 * + col2 - ( + col2 ) DIV 86 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-4454 SELECT ALL + col1 * + col2 - ( + col2 ) / 86 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL - + col0 + + 67 FROM tab2 cor0 ---- -11 -12 60 query I rowsort SELECT col2 + ( 66 ) FROM tab0 AS cor0 ---- 148 67 99 query I rowsort SELECT ALL ( col0 ) * cor0.col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT DISTINCT - ( col1 ) + col2 * + col2 + - col2 AS col0 FROM tab1 cor0 ---- 2836 3182 9107 query I rowsort SELECT 50 + - 93 AS col2 FROM tab1 AS cor0 ---- -43 -43 -43 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4460 SELECT ALL + CAST( NULL AS SIGNED ) * 99 + - col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4460 SELECT ALL + CAST ( NULL AS INTEGER ) * 99 + - col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 * - cor0.col1 + + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 onlyif mysql # use DIV operator for integer division query I rowsort label-4462 SELECT col0 DIV - CAST( + col0 AS SIGNED ) col1 FROM tab0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4462 SELECT col0 / - CAST ( + col0 AS INTEGER ) col1 FROM tab0 ---- -1 -1 -1 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb query I rowsort SELECT - col2 * col0 * - 48 AS col2 FROM tab0 ---- 1680 350304 38016 query I rowsort SELECT ALL - 94 + - col1 FROM tab0 AS cor0 ---- -180 -185 -191 query I rowsort SELECT 38 * + col1 AS col1 FROM tab2 AS cor0 ---- 1178 2242 646 query I rowsort SELECT ALL + - col0 + - cor0.col1 + ( - col0 * col0 ) FROM tab2 AS cor0 ---- -6221 -6337 -87 query III rowsort SELECT ALL * FROM tab0 WHERE + col1 + + col1 + - col2 * - col1 > - col1 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT col1 - - tab1.col1 AS col2 FROM tab1 ---- 20 26 52 query I rowsort SELECT + col1 * col0 + col0 AS col1 FROM tab1 WHERE NOT ( NULL ) <= ( col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4471 SELECT ALL - tab2.col1 + tab2.col0 DIV + col0 FROM tab2 ---- -16 -30 -58 skipif mysql # not compatible query I rowsort label-4471 SELECT ALL - tab2.col1 + tab2.col0 / + col0 FROM tab2 ---- -16 -30 -58 query III rowsort SELECT * FROM tab2 WHERE NULL NOT IN ( tab2.col2 - + col0 ) ---- query I rowsort SELECT col0 FROM tab1 WHERE ( col2 ) IN ( + col1 ) ---- query I rowsort SELECT DISTINCT tab1.col1 * tab1.col1 AS col0 FROM tab1 ---- 100 169 676 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 cor0, tab2 AS cor1, tab0 cor2 ---- 972 values hashing to 63ccb67e72ebac679a0221202c067b9e query I rowsort SELECT DISTINCT + - cor0.col1 * cor0.col0 FROM tab0, tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL 3 AS col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 3e22859a313d85a6146c6df5f23d77cf query I rowsort SELECT DISTINCT 83 FROM tab1, tab2, tab2 AS cor0 ---- 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4479 SELECT DISTINCT cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4479 SELECT DISTINCT cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 cor0 ---- NULL query I rowsort SELECT DISTINCT + col1 + - col1 AS col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT - 71 FROM tab1, tab2, tab2 cor0, tab1 AS cor1 ---- 81 values hashing to ac364708ef97c5cf80f126fc088b952e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4482 SELECT DISTINCT - - cor0.col2 * CAST( NULL AS DECIMAL ) + - col0 * - col0 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4482 SELECT DISTINCT - - cor0.col2 * CAST ( NULL AS REAL ) + - col0 * - col0 AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT 27 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1a3cef5c33b8f87ffeded378fd207753 query I rowsort SELECT + + col1 + col0 * - col2 AS col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT - + cor0.col2 * + col1 * col2 AS col2 FROM tab0 AS cor0 ---- -611884 -93654 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-4486 SELECT DISTINCT + col0 DIV - cor0.col1 col0 FROM tab1 AS cor0 ---- -6 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4486 SELECT DISTINCT + col0 / - cor0.col1 col0 FROM tab1 AS cor0 ---- -6 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * + 29 col1 FROM tab2 AS cor0 ---- -203 -2262 -2291 query I rowsort SELECT DISTINCT col0 + tab2.col0 AS col2 FROM tab2 ---- 14 156 158 query I rowsort SELECT col1 * tab0.col2 * + col2 AS col2 FROM tab0 ---- 611884 93654 97 onlyif mysql # use DIV operator for integer division query I rowsort label-4490 SELECT col2 + 50 DIV + col1 + - CAST( 69 AS SIGNED ) * col2 FROM tab0 ---- -2244 -5576 -68 skipif mysql # not compatible query I rowsort label-4490 SELECT col2 + 50 / + col1 + - CAST ( 69 AS INTEGER ) * col2 FROM tab0 ---- -2244 -5576 -68 query I rowsort SELECT - ( - 79 ) AS col2 FROM tab0 ---- 79 79 79 query I rowsort SELECT ALL - tab2.col2 + col2 * col2 AS col1 FROM tab2 ---- 1406 650 702 query I rowsort SELECT ALL 25 * 66 + - col2 AS col2 FROM tab1 ---- 1554 1593 1596 query I rowsort SELECT ALL + ( - col2 ) + - col0 * ( - tab1.col0 ) + - col0 FROM tab1 ---- -48 3975 6224 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + cor0.col1 col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - ( + ( - col2 ) ) AS col1 FROM tab1 AS cor0 ---- 54 57 96 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2 ---- 3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e query I rowsort SELECT ALL col2 * col2 + - col2 * + col1 FROM tab0 AS cor0 ---- -1749 -738 -96 query I rowsort SELECT col1 + - col1 * tab0.col0 AS col2 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT DISTINCT - 59 * - col1 FROM tab1 AS cor0 ---- 1534 590 767 query I rowsort SELECT col2 + col2 + col0 AS col1 FROM tab2 AS cor0 ---- 130 155 61 query I rowsort SELECT DISTINCT - - 70 AS col0 FROM tab1 AS cor0 ---- 70 query I rowsort SELECT + cor0.col1 * col0 + - col1 AS col0 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT DISTINCT + 7 AS col1 FROM tab0 AS cor0 ---- 7 query I rowsort SELECT ALL - col1 * col1 * col0 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT col2 * col2 + col1 AS col2 FROM tab1 AS cor0 ---- 2942 3259 9229 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4507 SELECT ALL + ( - cor0.col0 ) + - CAST( col1 AS SIGNED ) FROM tab1 cor0 ---- -29 -74 -93 skipif mysql # not compatible query I rowsort label-4507 SELECT ALL + ( - cor0.col0 ) + - CAST ( col1 AS INTEGER ) FROM tab1 cor0 ---- -29 -74 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-4508 SELECT ALL - - cor0.col1 DIV + 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-4508 SELECT ALL - - cor0.col1 / + col2 col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 57 * + col0 col2 FROM tab1 AS cor0 ---- 171 3648 4560 query I rowsort SELECT ALL - ( col0 ) * col0 + + col0 AS col0 FROM tab1 ---- -4032 -6 -6320 onlyif mysql # use DIV operator for integer division query I rowsort label-4511 SELECT ALL - + ( col1 ) + + col2 DIV col0 col2 FROM tab1 AS cor0 ---- -10 -12 -8 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4511 SELECT ALL - + ( col1 ) + + col2 / col0 col2 FROM tab1 AS cor0 ---- -10 -12 -8 query I rowsort SELECT DISTINCT - - 58 * col1 AS col0 FROM tab2 AS cor0 ---- 1798 3422 986 query I rowsort SELECT - - col0 * - col0 AS col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT 77 + - cor0.col0 AS col0 FROM tab0 AS cor0 ---- -12 42 53 onlyif mysql # use DIV operator for integer division query I rowsort label-4515 SELECT - + ( col0 ) DIV cor0.col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4515 SELECT - + ( col0 ) / cor0.col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4516 SELECT ALL - tab1.col2 * col0 DIV + col2 AS col1 FROM tab1 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-4516 SELECT ALL - tab1.col2 * col0 / + col2 AS col1 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT + col2 * ( + col1 ) FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT 90 AS col1 FROM tab2, tab2 cor0 ---- 90 onlyif mysql # use DIV operator for integer division query I rowsort label-4519 SELECT ALL col2 DIV 93 AS col2 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4519 SELECT ALL col2 / 93 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL col2 - + col0 * col2 AS col1 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT ( - 69 ) FROM tab2 AS cor0 ---- -69 -69 -69 query I rowsort SELECT col0 * + 79 AS col2 FROM tab1 AS cor0 ---- 237 5056 6320 query I rowsort SELECT ALL + col0 - + 95 * - tab0.col0 AS col0 FROM tab0 ---- 2304 3360 8544 query I rowsort SELECT 15 * + 23 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to c28164cb4d89b32dea084feb435cf0ce query I rowsort SELECT tab1.col2 * - col1 AS col0 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT + ( 0 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + - ( col2 ) * col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT + - col0 - - col0 * + col2 AS col2 FROM tab1 AS cor0 ---- 159 3584 7600 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4529 SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-4529 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 74 * + col0 * - col0 col0 FROM tab2 ---- -3626 -450216 -461834 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4531 SELECT CAST( NULL AS SIGNED ) col2 FROM tab1, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4531 SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT 67 AS col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to eea8a0738728ea55e4e7ba1506c9905a query I rowsort SELECT DISTINCT + - col1 + col1 * 16 FROM tab1 AS cor0 ---- 150 195 390 query I rowsort SELECT 21 AS col2 FROM tab1 AS cor0 ---- 21 21 21 query I rowsort SELECT - + 84 * col2 FROM tab1 AS cor0 ---- -4536 -4788 -8064 query I rowsort SELECT DISTINCT 80 AS col2 FROM tab1 ---- 80 query I rowsort SELECT - col2 * ( + ( - col1 ) ) FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT - 2 * + col0 AS col2 FROM tab1 ---- -128 -160 -6 query I rowsort SELECT + col2 * col2 * - 22 AS col1 FROM tab0 AS cor0 ---- -147928 -22 -23958 query I rowsort SELECT + + col1 + 89 * - col1 AS col2 FROM tab0 AS cor0 ---- -7568 -8008 -8536 query I rowsort SELECT DISTINCT col0 * - ( + col0 + col2 ) * - col0 FROM tab2 ---- 1666 632736 730197 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab1.col2 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-4543 SELECT ALL + - col0 DIV - 29 - col2 FROM tab1 AS cor0 ---- -54 -55 -94 skipif mysql # not compatible query I rowsort label-4543 SELECT ALL + - col0 / - 29 - col2 FROM tab1 AS cor0 ---- -54 -55 -94 onlyif mysql # use DIV operator for integer division query I rowsort label-4544 SELECT DISTINCT - - col2 DIV col0 - + col2 * col0 FROM tab0 AS cor0 ---- -35 -7298 -791 skipif mysql # not compatible query I rowsort label-4544 SELECT DISTINCT - - col2 / col0 - + col2 * col0 FROM tab0 AS cor0 ---- -35 -7298 -791 query I rowsort SELECT DISTINCT + col2 + col1 * + 70 AS col0 FROM tab1 AS cor0 ---- 1006 1874 757 query I rowsort SELECT ALL + + cor0.col1 * - 91 FROM tab0 AS cor0 ---- -7826 -8281 -8827 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( cor0.col1 ) + - cor0.col0 col0 FROM tab0 AS cor0 ---- 2 62 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4548 SELECT ALL + CAST( NULL AS SIGNED ) * - col1 + cor0.col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4548 SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 + cor0.col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( - col2 ) * - col2 * + col2 AS col2 FROM tab1 AS cor0 ---- 157464 185193 884736 query I rowsort SELECT DISTINCT - 38 * 39 - - col1 AS col2 FROM tab2 AS cor0 ---- -1423 -1451 -1465 query I rowsort SELECT col1 - 36 AS col1 FROM tab1 ---- -10 -23 -26 query I rowsort SELECT tab1.col0 + 91 FROM tab1 ---- 155 171 94 query I rowsort SELECT ALL - 54 * + cor0.col0 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 38dffa194e4f26144544463cfdfa1fcd query I rowsort SELECT DISTINCT + + col0 * + col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT cor0.col0 - col2 AS col0 FROM tab2 cor0 ---- -20 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-4556 SELECT ALL - cor0.col0 DIV - col1 FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-4556 SELECT ALL - cor0.col0 / - col1 FROM tab2 AS cor0 ---- 0 1 4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4557 SELECT ALL - + 94 + col0 * CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4557 SELECT ALL - + 94 + col0 * CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 * col1 + + col0 AS col0 FROM tab0 AS cor0 ---- 7420 8370 9444 query I rowsort SELECT + + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - col0 * 51 FROM tab0 ---- -1224 -1785 -4539 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 15 col1 FROM tab0 cor0 ---- 15 query I rowsort SELECT - ( tab1.col0 ) * col1 AS col1 FROM tab1 ---- -1040 -640 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-4563 SELECT + col0 + tab0.col0 DIV - col1 AS col2 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-4563 SELECT + col0 + tab0.col0 / - col1 AS col2 FROM tab0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 93 col2 FROM tab1 AS cor0 ---- -93 -93 -93 query I rowsort SELECT DISTINCT 3 AS col0 FROM tab2, tab0 cor0 ---- 3 query I rowsort SELECT DISTINCT - - col0 * - 45 AS col1 FROM tab2 AS cor0 ---- -315 -3510 -3555 onlyif mysql # use DIV operator for integer division query I rowsort label-4567 SELECT ALL - + col2 DIV col0 + + col0 FROM tab0 AS cor0 ---- 23 35 89 skipif mysql # not compatible query I rowsort label-4567 SELECT ALL - + col2 / col0 + + col0 FROM tab0 AS cor0 ---- 23 35 89 query I rowsort SELECT - col1 * + 10 + col0 * col1 FROM tab0 ---- 1204 2425 7189 onlyif mysql # use DIV operator for integer division query I rowsort label-4569 SELECT ALL tab2.col1 DIV - tab2.col0 FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-4569 SELECT ALL tab2.col1 / - tab2.col0 FROM tab2 ---- -4 0 0 query I rowsort SELECT + 43 AS col1 FROM tab0 ---- 43 43 43 query I rowsort SELECT ALL 96 * col1 FROM tab1 ---- 1248 2496 960 query I rowsort SELECT ALL - 85 FROM tab2 AS cor0 ---- -85 -85 -85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4573 SELECT ALL 84 * col1 + CAST( col2 AS SIGNED ) FROM tab0 cor0 ---- 7257 7726 8149 skipif mysql # not compatible query I rowsort label-4573 SELECT ALL 84 * col1 + CAST ( col2 AS INTEGER ) FROM tab0 cor0 ---- 7257 7726 8149 query I rowsort SELECT col0 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4575 SELECT - 8 + col1 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -297 -3489 -969 skipif mysql # not compatible query I rowsort label-4575 SELECT - 8 + col1 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -297 -3489 -969 query I rowsort SELECT + + col1 * - col0 AS col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT - 59 * cor0.col2 FROM tab2 AS cor0 ---- -1534 -1593 -2242 query I rowsort SELECT DISTINCT + 63 * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2079 5166 63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 89 col1 FROM tab0 cor0 ---- 89 89 89 onlyif mysql # use DIV operator for integer division query I rowsort label-4580 SELECT ALL + col1 DIV + col1 AS col2 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4580 SELECT ALL + col1 / + col1 AS col2 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL + 67 + + col1 FROM tab2 AS cor0 ---- 126 84 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4582 SELECT - - col1 + + CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4582 SELECT - - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 + 43 * col0 FROM tab0 AS cor0 ---- 1118 1602 3918 query I rowsort SELECT - col2 + col2 * col0 AS col2 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT DISTINCT - 88 FROM tab1, tab2 AS cor0 ---- -88 query I rowsort SELECT ALL + col1 * - 19 + ( col0 ) FROM tab0 AS cor0 ---- -1610 -1640 -1808 query I rowsort SELECT + cor0.col2 * - 14 FROM tab1 cor0 ---- -1344 -756 -798 query I rowsort SELECT ALL col2 + col0 * + 45 FROM tab1 AS cor0 ---- 189 2937 3696 query I rowsort SELECT + col2 * + 6 - col0 FROM tab0 AS cor0 ---- -29 174 403 query I rowsort SELECT DISTINCT - col1 - 69 FROM tab2 cor0 ---- -100 -128 -86 onlyif mysql # use DIV operator for integer division query I rowsort label-4591 SELECT + + col0 + + col1 DIV - col0 AS col2 FROM tab1 cor0 ---- -5 64 80 skipif mysql # not compatible query I rowsort label-4591 SELECT + + col0 + + col1 / - col0 AS col2 FROM tab1 cor0 ---- -5 64 80 query I rowsort SELECT ALL - col2 + + 59 * col2 FROM tab0 AS cor0 ---- 1914 4756 58 query I rowsort SELECT + col2 + col2 * - 63 FROM tab1 AS cor0 ---- -3348 -3534 -5952 query I rowsort SELECT ALL + col2 + + 56 AS col1 FROM tab2 AS cor0 ---- 82 83 94 query I rowsort SELECT ALL + col1 + + 81 FROM tab0 AS cor0 ---- 167 172 178 query I rowsort SELECT DISTINCT - col1 * + ( col0 ) AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL + cor0.col2 * col0 + - col0 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT DISTINCT - col1 + col1 * col2 FROM tab1 cor0 ---- 1235 1378 560 query I rowsort SELECT + - col0 + cor0.col1 AS col1 FROM tab2 cor0 ---- -19 -62 24 query I rowsort SELECT ALL - 71 * col1 + - col2 FROM tab2 AS cor0 ---- -1245 -2228 -4215 query I rowsort SELECT DISTINCT 14 * - 64 + col2 FROM tab2 AS cor0 ---- -858 -869 -870 query I rowsort SELECT DISTINCT - 70 + col2 FROM tab2 AS cor0 ---- -32 -43 -44 query I rowsort SELECT - ( - col1 ) * col1 AS col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT col1 * col1 + col2 * tab1.col0 FROM tab1 ---- 3748 7849 838 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1 ---- 243 values hashing to 9ed1a6a444254225f040123c46b7f70c query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab1 cor3 ---- 3645 values hashing to 6275704c8dcc358f1d7c268582457eaa query I rowsort SELECT DISTINCT - - col0 * + col0 + col0 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT DISTINCT 87 * + col0 AS col2 FROM tab1 AS cor0 ---- 261 5568 6960 query I rowsort SELECT - - 50 + col0 * cor0.col2 FROM tab1 AS cor0 ---- 212 3698 7730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 + + cor0.col0 col2 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT - 69 * 90 + + col1 AS col2 FROM tab1 AS cor0 ---- -6184 -6197 -6200 query I rowsort SELECT - col2 * - col2 + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT col2 + + cor0.col1 * - col0 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL col2 * - 38 + + col2 FROM tab1 AS cor0 ---- -1998 -2109 -3552 query I rowsort SELECT DISTINCT - ( col2 ) * + col0 * col2 - + col1 FROM tab1 AS cor0 ---- -207946 -737293 -8774 query I rowsort SELECT - - 6 * + cor0.col2 + + col0 FROM tab1 AS cor0 ---- 327 406 656 query I rowsort SELECT ALL - 38 * - col0 AS col0 FROM tab0 cor0 ---- 1330 3382 912 onlyif mysql # use DIV operator for integer division query I rowsort label-4618 SELECT ALL - + cor0.col2 DIV 49 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4618 SELECT ALL - + cor0.col2 / 49 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT - ( - 57 ) * - col2 + + col0 AS col1 FROM tab2 cor0 ---- -1404 -1532 -2087 query I rowsort SELECT - 32 * col1 * + col1 FROM tab1 AS cor0 ---- -21632 -3200 -5408 query I rowsort SELECT tab2.col0 + + tab2.col1 * - col1 FROM tab2 ---- -210 -3403 -954 onlyif mysql # use DIV operator for integer division query I rowsort label-4622 SELECT + ( col0 ) DIV - col0 + + col0 FROM tab0 cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-4622 SELECT + ( col0 ) / - col0 + + col0 FROM tab0 cor0 ---- 23 34 88 query I rowsort SELECT - ( - col2 ) + + col2 * cor0.col2 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT ALL 72 * col1 FROM tab0 ---- 6192 6552 6984 query I rowsort SELECT + - ( col0 ) + + col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL 57 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query I rowsort SELECT 77 AS col0 FROM tab1 AS cor0 ---- 77 77 77 query I rowsort SELECT DISTINCT 47 AS col1 FROM tab0, tab2 AS cor0 ---- 47 query I rowsort SELECT - cor1.col1 * + tab1.col1 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to ec78ec5613a97992c479f6a19b49c758 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 44 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d query I rowsort SELECT + ( - col1 ) * + tab2.col2 * + col2 + col1 FROM tab2 ---- -22568 -24531 -39825 onlyif mysql # use DIV operator for integer division query I rowsort label-4632 SELECT col2 + tab0.col0 DIV + tab0.col2 col2 FROM tab0 ---- 33 36 83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4632 SELECT col2 + tab0.col0 / + tab0.col2 col2 FROM tab0 ---- 33 36 83 query I rowsort SELECT + col2 + 32 AS col1 FROM tab1 ---- 128 86 89 onlyif mysql # use DIV operator for integer division query I rowsort label-4634 SELECT ALL col0 DIV CAST( ( col0 ) * CAST( + col1 AS SIGNED ) AS SIGNED ) + tab0.col0 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-4634 SELECT ALL col0 / CAST ( ( col0 ) * CAST ( + col1 AS INTEGER ) AS INTEGER ) + tab0.col0 FROM tab0 ---- 24 35 89 query I rowsort SELECT - col1 + col1 + col0 AS col1 FROM tab2 ---- 7 78 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4636 SELECT ALL col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4636 SELECT ALL col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + cor0.col1 + col0 * col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT 49 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT + col0 + - 45 - - col0 FROM tab0 AS cor0 ---- 133 25 3 query I rowsort SELECT ALL + - col0 - 72 FROM tab2 AS cor0 ---- -150 -151 -79 query I rowsort SELECT 9 AS col2 FROM tab0 AS cor0 ---- 9 9 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4642 SELECT CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-4642 SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT + col1 * - col2 * 22 FROM tab0 ---- -164164 -2134 -62436 query I rowsort SELECT col0 * + tab0.col2 * col1 AS col2 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT + 55 * + col2 AS col0 FROM tab1 ---- 2970 3135 5280 query I rowsort SELECT + 73 AS col0 FROM tab2 ---- 73 73 73 query I rowsort SELECT + col1 * + col1 AS col2 FROM tab2 ---- 289 3481 961 query I rowsort SELECT + tab1.col1 + + ( - col2 ) AS col0 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT col0 + - 93 FROM tab2 ---- -14 -15 -86 query I rowsort SELECT DISTINCT + col2 + - 7 * + col2 FROM tab1 AS cor0 ---- -324 -342 -576 query I rowsort SELECT ALL + - cor0.col0 AS col1 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT ALL - - col2 + 19 * - col2 AS col2 FROM tab2 AS cor0 ---- -468 -486 -684 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 41 col1 FROM tab1, tab2 cor0 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e query I rowsort SELECT + col1 * - tab2.col0 * - col0 FROM tab2 ---- 106097 1519 358956 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 22 * + col2 col2 FROM tab2 AS cor0 ---- -572 -594 -836 query I rowsort SELECT - col0 * + col1 + + col1 * - col1 FROM tab2 AS cor0 ---- -1178 -1632 -8083 query I rowsort SELECT ( tab1.col2 ) AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT - 62 + 48 + col1 * + 56 AS col2 FROM tab2 AS cor0 ---- 1722 3290 938 onlyif mysql # use DIV operator for integer division query I rowsort label-4659 SELECT + col2 DIV 29 AS col2 FROM tab1 AS cor0 ---- 1 1 3 skipif mysql # not compatible query I rowsort label-4659 SELECT + col2 / 29 AS col2 FROM tab1 AS cor0 ---- 1 1 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * col0 + tab2.col2 * - 25 col0 FROM tab2 ---- -626 5291 5434 onlyif mysql # use DIV operator for integer division query I rowsort label-4661 SELECT ALL + 79 DIV + 86 + - col1 AS col2 FROM tab1 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-4661 SELECT ALL + 79 / + 86 + - col1 AS col2 FROM tab1 ---- -10 -13 -26 query I rowsort SELECT DISTINCT - ( - col0 ) + tab0.col1 + ( 65 ) AS col2 FROM tab0 ---- 175 197 245 query I rowsort SELECT 72 - tab0.col2 AS col2 FROM tab0 ---- -10 39 71 query I rowsort SELECT + col1 + + ( col2 ) * - col1 + col2 AS col0 FROM tab1 ---- -1139 -1324 -503 query I rowsort SELECT ALL 95 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4666 SELECT ALL - col1 * col0 / + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4666 SELECT ALL - col1 * col0 / + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - 81 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1 query I rowsort SELECT ALL tab1.col1 * - ( - col0 ) + ( col0 ) FROM tab1 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + - cor0.col0 col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT 88 * cor0.col1 FROM tab1 AS cor0 ---- 1144 2288 880 query I rowsort SELECT DISTINCT + + cor0.col0 * + col0 FROM tab1 AS cor0 ---- 4096 6400 9 onlyif mysql # use DIV operator for integer division query I rowsort label-4672 SELECT 5 + - col2 DIV col0 FROM tab2 cor0 ---- 2 5 5 skipif mysql # not compatible query I rowsort label-4672 SELECT 5 + - col2 / col0 FROM tab2 cor0 ---- 2 5 5 query I rowsort SELECT ALL - - 8 * col1 FROM tab1 AS cor0 ---- 104 208 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4674 SELECT ALL - 63 * + col1 * ( ( - col1 ) ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4674 SELECT ALL - 63 * + col1 * ( ( - col1 ) ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - cor0.col0 - + 89 FROM tab0 cor0 ---- -113 -124 -178 query I rowsort SELECT + - col1 * col0 + + col2 AS col1 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT - col0 + + cor0.col0 * col1 * - cor0.col1 FROM tab0 AS cor0 ---- -177528 -329350 -737098 query I rowsort SELECT - - col0 + 36 * col1 FROM tab2 AS cor0 ---- 1123 2202 691 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 + + ( col2 + cor0.col1 ) * - ( ( col1 ) ) col2 FROM tab2 AS cor0 ---- -1771 -4989 -897 query I rowsort SELECT ALL - - cor0.col1 * cor0.col1 + col1 * col1 AS col1 FROM tab0 cor0 ---- 14792 16562 18818 query I rowsort SELECT DISTINCT 25 + - col1 + + 2 FROM tab1 ---- 1 14 17 query I rowsort SELECT - + col2 + 77 FROM tab0 AS cor0 ---- -5 44 76 onlyif mysql # use DIV operator for integer division query I rowsort label-4683 SELECT - + cor0.col1 DIV + ( col2 ) - col0 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-4683 SELECT - + cor0.col1 / + ( col2 ) - col0 col1 FROM tab0 AS cor0 ---- -132 -26 -90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( 90 ) col0 FROM tab2 AS cor0 ---- 90 90 90 query I rowsort SELECT DISTINCT col0 * col0 + col0 FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT DISTINCT + + 18 * - 93 - col2 FROM tab1 AS cor0 ---- -1728 -1731 -1770 query I rowsort SELECT DISTINCT ( - col2 ) + col1 AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-4688 SELECT DISTINCT + 81 DIV col1 + - col2 * + 28 FROM tab0 cor0 ---- -2296 -28 -924 skipif mysql # not compatible query I rowsort label-4688 SELECT DISTINCT + 81 / col1 + - col2 * + 28 FROM tab0 cor0 ---- -2296 -28 -924 query I rowsort SELECT - col2 * - tab0.col1 AS col1 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT col1 + - col0 + col0 AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT + col0 * + col1 + 37 AS col2 FROM tab2 AS cor0 ---- 1380 254 4639 query I rowsort SELECT col0 + + col2 * col0 * - col1 FROM tab0 AS cor0 ---- -3360 -664029 -68088 query I rowsort SELECT ALL - col2 + + 81 AS col1 FROM tab0 cor0 ---- -1 48 80 onlyif mysql # use DIV operator for integer division query I rowsort label-4694 SELECT ALL - col2 * col2 DIV + col1 col1 FROM tab2 AS cor0 ---- -11 -23 -84 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4694 SELECT ALL - col2 * col2 / + col1 col1 FROM tab2 AS cor0 ---- -11 -23 -84 query I rowsort SELECT col1 * 34 AS col2 FROM tab0 AS cor0 ---- 2924 3094 3298 query I rowsort SELECT ALL col2 * - col1 + 8 FROM tab2 ---- -1526 -638 -829 query I rowsort SELECT ALL - col0 + col2 + 24 * 88 FROM tab2 ---- 2060 2071 2132 query I rowsort SELECT col0 + - tab1.col2 AS col1 FROM tab1 ---- -16 -51 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4699 SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4699 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0 ---- NULL query I rowsort SELECT col0 + + col1 + + col1 AS col2 FROM tab2 AS cor0 ---- 113 196 69 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 + - ( col0 ) col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 + + ( + 6 + col0 ) FROM tab0 AS cor0 ---- 6 6 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 + cor0.col0 + 13 col2 FROM tab2 AS cor0 ---- -7 54 65 onlyif mysql # use DIV operator for integer division query I rowsort label-4704 SELECT DISTINCT cor0.col2 DIV ( col0 ) AS col2 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-4704 SELECT DISTINCT cor0.col2 / ( col0 ) AS col2 FROM tab0 AS cor0 ---- 0 1 query I rowsort SELECT DISTINCT - - col0 * 84 FROM tab0 AS cor0 ---- 2016 2940 7476 query I rowsort SELECT + + col2 * - ( - col0 ) + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT ALL + cor0.col1 * 42 AS col0 FROM tab2 AS cor0 ---- 1302 2478 714 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d query I rowsort SELECT col2 * 70 * col2 + col0 AS col0 FROM tab1 ---- 204123 227494 645200 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * col1 - col1 col1 FROM tab2 cor0 ---- -1593 -663 -868 query I rowsort SELECT ( + col0 ) + col1 AS col2 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT - col2 + col2 AS col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL + ( + col1 ) * - col2 * col2 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT DISTINCT - - col2 * - 99 * + col0 + 57 AS col2 FROM tab2 AS cor0 ---- -18654 -200715 -297141 onlyif mysql # use DIV operator for integer division query I rowsort label-4715 SELECT DISTINCT ( col2 ) DIV - col1 AS col0 FROM tab1 cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-4715 SELECT DISTINCT ( col2 ) / - col1 AS col0 FROM tab1 cor0 ---- -2 -5 -7 onlyif mysql # use DIV operator for integer division query I rowsort label-4716 SELECT ALL + cor0.col2 + + ( - cor0.col2 ) DIV + col2 AS col0 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-4716 SELECT ALL + cor0.col2 + + ( - cor0.col2 ) / + col2 AS col0 FROM tab1 AS cor0 ---- 53 56 95 query I rowsort SELECT ( 51 ) * - col1 + + col2 FROM tab2 AS cor0 ---- -1554 -2983 -829 query I rowsort SELECT - - cor0.col2 + + col2 * col0 AS col2 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT + cor0.col2 * - 89 + - col2 * col1 FROM tab1 AS cor0 ---- -5643 -6210 -9792 query I rowsort SELECT col2 * + cor0.col0 * + cor0.col1 FROM tab2 cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL - tab0.col1 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 onlyif mysql # use DIV operator for integer division query I rowsort label-4722 SELECT + tab2.col1 + col1 + 52 DIV col0 FROM tab2 ---- 118 34 69 skipif mysql # not compatible query I rowsort label-4722 SELECT + tab2.col1 + col1 + 52 / col0 FROM tab2 ---- 118 34 69 query I rowsort SELECT DISTINCT - - ( col2 ) + col2 FROM tab0 AS cor0 ---- 164 2 66 onlyif mysql # use DIV operator for integer division query I rowsort label-4724 SELECT col2 DIV + col0 - + 61 AS col0 FROM tab2 AS cor0 ---- -58 -61 -61 skipif mysql # not compatible query I rowsort label-4724 SELECT col2 / + col0 - + 61 AS col0 FROM tab2 AS cor0 ---- -58 -61 -61 query I rowsort SELECT + 27 * col2 AS col0 FROM tab2 cor0 ---- 1026 702 729 query I rowsort SELECT ALL 12 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -204 -372 -708 query I rowsort SELECT 64 - 26 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb query I rowsort SELECT ALL - 63 * + col2 FROM tab1 AS cor0 ---- -3402 -3591 -6048 query I rowsort SELECT + col1 * col0 + 1 + col1 AS col2 FROM tab0 AS cor0 ---- 2151 3493 8191 query I rowsort SELECT - + ( col1 ) + 3 * - col2 AS col2 FROM tab0 cor0 ---- -100 -185 -337 query I rowsort SELECT ALL col1 * + col1 + col2 + + col0 AS col2 FROM tab1 AS cor0 ---- 221 345 733 query I rowsort SELECT DISTINCT ( col0 ) + 43 AS col0 FROM tab1 AS cor0 ---- 107 123 46 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4733 SELECT - 42 * + col0 + + CAST( NULL AS SIGNED ) * cor0.col0 * - col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4733 SELECT - 42 * + col0 + + CAST ( NULL AS INTEGER ) * cor0.col0 * - col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 8 * cor0.col1 - - col2 * + cor0.col0 * - col2 FROM tab0 AS cor0 ---- -26824 -599164 -811 onlyif mysql # use DIV operator for integer division query I rowsort label-4735 SELECT DISTINCT + col2 * + col0 + + col0 DIV + col1 FROM tab1 AS cor0 ---- 162 3654 7686 skipif mysql # not compatible query I rowsort label-4735 SELECT DISTINCT + col2 * + col0 + + col0 / + col1 FROM tab1 AS cor0 ---- 162 3654 7686 query I rowsort SELECT DISTINCT + - col1 + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL - 34 + col0 FROM tab0 AS cor0 ---- -10 1 55 query I rowsort SELECT col2 + - 98 + + col1 FROM tab1 AS cor0 ---- -18 -31 11 query I rowsort SELECT + cor0.col0 * ( + 53 ) FROM tab2 AS cor0 ---- 371 4134 4187 query I rowsort SELECT ALL + col2 * - col2 AS col0 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT 2 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4742 SELECT + col2 * - 11 + 70 + + cor0.col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -515 3539 5414 skipif mysql # not compatible query I rowsort label-4742 SELECT + col2 * - 11 + 70 + + cor0.col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -515 3539 5414 query I rowsort SELECT - col0 + - tab0.col0 AS col1 FROM tab0 ---- -178 -48 -70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 69 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 query I rowsort SELECT DISTINCT - - col2 * 2 AS col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT + + 6 * + col1 + col0 FROM tab2 AS cor0 ---- 181 193 432 query I rowsort SELECT cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT ALL 45 * + col1 - col0 * - col0 AS col2 FROM tab1 cor0 ---- 1179 4546 6985 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4749 SELECT ALL + CAST( - col2 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0 ---- -9 34 7 skipif mysql # not compatible query I rowsort label-4749 SELECT ALL + CAST ( - col2 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT + - ( col1 ) * col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT + + 50 FROM tab2 AS cor0 ---- 50 50 50 query I rowsort SELECT col0 * - col0 - - col2 * col2 FROM tab1 ---- -847 2816 2907 query I rowsort SELECT + - 21 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 631fbd1fd929405aba54a22c2a06c757 query I rowsort SELECT ALL + col0 * - 8 - col2 FROM tab1 cor0 ---- -569 -736 -78 query I rowsort SELECT ALL + 52 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 7f4ae30893ab330784829711032ae599 query I rowsort SELECT - cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d query I rowsort SELECT + - ( col2 ) + + col0 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT ALL + 38 AS col2 FROM tab1 ---- 38 38 38 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 ( + col2 ) + - col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT + - col1 * - col1 AS col0 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT col0 * - 1 + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 + - ( col0 ) FROM tab1 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4764 SELECT CAST( - 56 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0 ---- -115 -73 -87 skipif mysql # not compatible query I rowsort label-4764 SELECT CAST ( - 56 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0 ---- -115 -73 -87 query I rowsort SELECT - - 27 * col0 + col0 FROM tab1 AS cor0 ---- 1792 2240 84 query I rowsort SELECT DISTINCT - col2 + + cor0.col1 FROM tab2 cor0 ---- -21 33 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + col2 ) * - col0 col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - + ( ( + col2 ) ) FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT col1 * - col2 + + ( col1 * + col2 ) FROM tab0 AS cor0 ---- 0 query I rowsort SELECT cor1.col2 - 17 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to e3a1392281a31b38a8e57faec227652c query I rowsort SELECT cor0.col1 * - ( col1 ) + col2 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT + cor0.col0 * col0 + - col1 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT col2 * - col2 * + 96 FROM tab2 ---- -138624 -64896 -69984 query I rowsort SELECT - 97 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 12bd12d33f03250bee508c5641e140d5 query I rowsort SELECT - + cor0.col1 * + ( 55 ) + col0 AS col1 FROM tab1 AS cor0 ---- -1427 -486 -635 query I rowsort SELECT + col0 + 10 AS col2 FROM tab2 AS cor0 ---- 17 88 89 onlyif mysql # use DIV operator for integer division query I rowsort label-4777 SELECT - col1 + + col1 DIV col0 FROM tab2 ---- -17 -27 -59 skipif mysql # not compatible query I rowsort label-4777 SELECT - col1 + + col1 / col0 FROM tab2 ---- -17 -27 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 87 col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to fa0cdd86483844cda3bb806e032d5c64 query I rowsort SELECT + col0 * + ( - col1 ) AS col0 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + - col0 - cor0.col2 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT ALL - cor0.col1 * col1 * - col0 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT 13 + ( col2 + + 55 ) * col1 AS col2 FROM tab2 AS cor0 ---- 1594 2555 4792 query I rowsort SELECT ALL - col1 * col0 + col1 FROM tab1 AS cor0 ---- -1027 -52 -630 onlyif mysql # use DIV operator for integer division query I rowsort label-4784 SELECT col1 + + col1 DIV 63 AS col1 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-4784 SELECT col1 + + col1 / 63 AS col1 FROM tab1 ---- 10 13 26 query I rowsort SELECT + col0 * + col2 + col2 FROM tab1 cor0 ---- 216 3705 7776 query I rowsort SELECT ALL + 61 AS col1 FROM tab1 AS cor0 ---- 61 61 61 query I rowsort SELECT + cor0.col2 + col0 * col0 FROM tab1 AS cor0 ---- 4153 63 6496 onlyif mysql # use DIV operator for integer division query I rowsort label-4788 SELECT ALL + ( col0 ) DIV col0 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4788 SELECT ALL + ( col0 ) / col0 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd onlyif mysql # use DIV operator for integer division query I rowsort label-4790 SELECT col2 DIV col0 + - 86 + col1 FROM tab0 ---- 1 11 5 skipif mysql # not compatible query I rowsort label-4790 SELECT col2 / col0 + - 86 + col1 FROM tab0 ---- 1 11 5 query I rowsort SELECT + col1 + + tab0.col2 - 20 FROM tab0 ---- 153 78 99 onlyif mysql # use DIV operator for integer division query I rowsort label-4792 SELECT ALL col2 * - col1 + + col0 DIV tab2.col1 - - col1 AS col1 FROM tab2 ---- -1474 -625 -806 skipif mysql # not compatible query I rowsort label-4792 SELECT ALL col2 * - col1 + + col0 / tab2.col1 - - col1 AS col1 FROM tab2 ---- -1474 -625 -806 query I rowsort SELECT ALL col2 - col1 AS col2 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT tab0.col1 * 79 AS col0 FROM tab0 ---- 6794 7189 7663 query I rowsort SELECT - col2 * + ( + col0 ) AS col1 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT ALL + tab1.col2 + + col1 * col0 FROM tab1 ---- 1136 132 697 query I rowsort SELECT ALL col1 + + col1 * + col0 FROM tab1 ---- 104 1053 650 query I rowsort SELECT ALL + col1 + tab2.col0 AS col2 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL 10 + - 78 + - col2 FROM tab1 ---- -122 -125 -164 onlyif mysql # use DIV operator for integer division query I rowsort label-4800 SELECT DISTINCT - cor0.col2 DIV - 27 FROM tab0 AS cor0 ---- 0 1 3 skipif mysql # not compatible query I rowsort label-4800 SELECT DISTINCT - cor0.col2 / - 27 FROM tab0 AS cor0 ---- 0 1 3 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab1 cor2 ---- 972 values hashing to 0a9194f200a4220e419d35c461f9fcfe query I rowsort SELECT 30 * col2 * col2 FROM tab1 cor0 ---- 276480 87480 97470 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col2 - - col1 col0 FROM tab2 ---- 55 58 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4804 SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-4804 SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - + tab0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT DISTINCT + 75 * + tab1.col1 FROM tab1 ---- 1950 750 975 query I rowsort SELECT cor0.col1 * - cor0.col0 AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT col1 + 13 FROM tab0 AS cor0 ---- 104 110 99 query I rowsort SELECT + col0 + + col0 - - col1 AS col1 FROM tab2 AS cor0 ---- 175 215 45 query I rowsort SELECT - col2 * + 23 - 66 AS col2 FROM tab1 AS cor0 ---- -1308 -1377 -2274 query I rowsort SELECT + col0 + cor0.col0 * + 15 AS col1 FROM tab2 cor0 ---- 112 1248 1264 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab1 AS cor2 ---- 3645 values hashing to c0625992cd48bef51317edf43a55d9e4 query I rowsort SELECT DISTINCT - 23 * + tab1.col1 + + 86 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1 ---- -144 -213 -512 query I rowsort SELECT + - col2 + - col1 - - col2 * - col2 FROM tab2 AS cor0 ---- -1499 -761 -787 query I rowsort SELECT - + col0 * col1 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL - 35 * - col0 FROM tab2 ---- 245 2730 2765 query I rowsort SELECT + col0 * + col0 - ( - col1 ) FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT col2 * + cor0.col1 + + col1 * - col0 AS col2 FROM tab0 AS cor0 ---- -3298 -637 774 onlyif mysql # use DIV operator for integer division query I rowsort label-4819 SELECT ALL + - col2 DIV 31 col2 FROM tab1 AS cor0 ---- -1 -1 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4819 SELECT ALL + - col2 / 31 col2 FROM tab1 AS cor0 ---- -1 -1 -3 query I rowsort SELECT ALL col1 - - col0 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT - + cor0.col0 * + col2 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT + col1 * col2 + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1261 1430 580 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4823 SELECT col1 * col2 * + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4823 SELECT col1 * col2 * + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4824 SELECT DISTINCT col1 DIV + col0 AS col2 FROM tab2 ---- 0 4 skipif mysql # not compatible query I rowsort label-4824 SELECT DISTINCT col1 / + col0 AS col2 FROM tab2 ---- 0 4 query I rowsort SELECT + col1 + 60 FROM tab2 AS cor0 ---- 119 77 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4826 SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-4826 SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL 48 * + col0 + ( col0 ) AS col0 FROM tab0 ---- 1176 1715 4361 query I rowsort SELECT tab2.col2 + - col1 * col1 FROM tab2 ---- -251 -3455 -934 query I rowsort SELECT ALL - col0 - - col0 * - col1 FROM tab0 ---- -2088 -3430 -8188 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col2 + + col0 AND col2 * col1 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4831 SELECT col0 DIV + col0 AS col1 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4831 SELECT col0 / + col0 AS col1 FROM tab1 ---- 1 1 1 query I rowsort SELECT ALL col1 + col0 * - col1 * + col0 FROM tab0 ---- -118728 -49450 -720720 query I rowsort SELECT DISTINCT col0 + + tab2.col2 * col2 FROM tab2 ---- 1523 736 754 query I rowsort SELECT col1 - - col2 AS col1 FROM tab1 ---- 109 67 80 query I rowsort SELECT DISTINCT col1 + + col2 * - col1 AS col1 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT col0 - tab2.col2 * col1 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT DISTINCT col2 - - col0 FROM tab1 ---- 121 176 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + col2 col2 FROM tab0 ---- 119 173 98 query III rowsort SELECT * FROM tab2 WHERE NOT ( col0 ) >= NULL ---- query I rowsort SELECT tab1.col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0 * col0 ) ---- query I rowsort SELECT col0 - - tab1.col1 AS col0 FROM tab1 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-4842 SELECT col0 DIV col1 + col1 * col1 FROM tab0 ---- 7396 8281 9409 skipif mysql # not compatible query I rowsort label-4842 SELECT col0 / col1 + col1 * col1 FROM tab0 ---- 7396 8281 9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * - tab1.col1 + + col2 col0 FROM tab1 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-4844 SELECT DISTINCT + col0 DIV tab0.col1 AS col1 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-4844 SELECT DISTINCT + col0 / tab0.col1 AS col1 FROM tab0 ---- 0 query I rowsort SELECT DISTINCT col2 + col2 * + tab0.col1 * - col1 + - col0 AS col0 FROM tab0 ---- -244059 -679049 -9443 query I rowsort SELECT ALL col1 + col1 + col1 * + col1 FROM tab1 ---- 120 195 728 query I rowsort SELECT - col0 + tab2.col0 * col0 AS col1 FROM tab2 ---- 42 6006 6162 query III rowsort SELECT * FROM tab0 WHERE NOT - col0 IN ( col2 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 onlyif mysql # use DIV operator for integer division query I rowsort label-4849 SELECT DISTINCT col1 DIV - tab0.col1 + - tab0.col1 FROM tab0 ---- -87 -92 -98 skipif mysql # not compatible query I rowsort label-4849 SELECT DISTINCT col1 / - tab0.col1 + - tab0.col1 FROM tab0 ---- -87 -92 -98 query I rowsort SELECT DISTINCT + col0 * - col1 * + col2 - col2 FROM tab2 ---- -119678 -51072 -5886 query I rowsort SELECT - col1 + col2 * tab0.col2 AS col1 FROM tab0 ---- -96 1003 6633 query I rowsort SELECT col0 + col1 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN + col0 + col2 AND NULL ---- query I rowsort SELECT DISTINCT col0 + col1 FROM tab0 WHERE NOT ( col0 ) = ( NULL ) ---- query I rowsort SELECT ALL + col0 + - col1 * - col2 * + col2 FROM tab1 ---- 119888 32554 75819 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4855 SELECT ALL - CAST( NULL AS SIGNED ) * + col2 * col2 col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4855 SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 * col2 col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ( - 43 ) + + col2 FROM tab0 ---- -10 -42 39 query I rowsort SELECT DISTINCT - 8 AS col2 FROM tab2 ---- -8 query I rowsort SELECT + col0 + col0 * - 53 FROM tab2 AS cor0 ---- -364 -4056 -4108 onlyif mysql # use DIV operator for integer division query I rowsort label-4859 SELECT col0 DIV - cor0.col2 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-4859 SELECT col0 / - cor0.col2 FROM tab0 AS cor0 ---- -1 -35 0 query I rowsort SELECT - ( col2 ) * - ( - 4 ) AS col1 FROM tab2 AS cor0 ---- -104 -108 -152 query I rowsort SELECT ALL tab2.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 col0 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc onlyif mysql # use DIV operator for integer division query I rowsort label-4863 SELECT DISTINCT + 23 * col2 DIV col1 + 89 FROM tab2 AS cor0 ---- 109 140 99 skipif mysql # not compatible query I rowsort label-4863 SELECT DISTINCT + 23 * col2 / col1 + 89 FROM tab2 AS cor0 ---- 109 140 99 query I rowsort SELECT + + 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to e5fbf5d129b181bacd6113bbc8732496 query I rowsort SELECT 66 + - col1 AS col0 FROM tab0 AS cor0 ---- -20 -25 -31 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4866 SELECT col0 + + col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4866 SELECT col0 + + col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 + - col1 * + 62 FROM tab1 AS cor0 ---- -1638 -630 -819 query I rowsort SELECT DISTINCT - + 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- -32 query I rowsort SELECT ALL - tab1.col0 * + 1 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT DISTINCT - col2 * + ( - ( + col1 ) ) + + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT - + cor0.col1 + + ( - 79 ) + + col1 AS col1 FROM tab0 AS cor0 ---- -79 -79 -79 query I rowsort SELECT ALL col2 * + 73 + col1 FROM tab2 AS cor0 ---- 1957 2002 2791 query I rowsort SELECT + col2 * col1 + col1 * cor0.col0 FROM tab2 AS cor0 ---- 1054 1989 6136 query I rowsort SELECT ALL - cor0.col2 * - col1 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # use DIV operator for integer division query I rowsort label-4875 SELECT DISTINCT - + col2 DIV - col1 col0 FROM tab2 AS cor0 ---- 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4875 SELECT DISTINCT - + col2 / - col1 col0 FROM tab2 AS cor0 ---- 0 2 query I rowsort SELECT + - cor0.col2 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT - cor0.col0 * - 63 FROM tab2 AS cor0 ---- 441 4914 4977 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + ( 25 ) * col2 + ( - col1 ) col1 FROM tab1 AS cor0 ---- 1298 1405 2374 onlyif mysql # use DIV operator for integer division query I rowsort label-4879 SELECT DISTINCT col1 + col0 DIV 91 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-4879 SELECT DISTINCT col1 + col0 / 91 FROM tab0 AS cor0 ---- 86 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-4880 SELECT - - cor0.col0 + col1 DIV col1 AS col2 FROM tab2 AS cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-4880 SELECT - - cor0.col0 + col1 / col1 AS col2 FROM tab2 AS cor0 ---- 79 8 80 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2 AS cor2 ---- 972 values hashing to a9068b700464993db9fae6f630605fde query I rowsort SELECT + cor0.col2 + + col1 FROM tab1 cor0 ---- 109 67 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col1 col0 FROM tab1 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-4884 SELECT 90 - col0 DIV col2 AS col1 FROM tab1 ---- 89 90 90 skipif mysql # not compatible query I rowsort label-4884 SELECT 90 - col0 / col2 AS col1 FROM tab1 ---- 89 90 90 query I rowsort SELECT - cor0.col0 + - col2 * - col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT col1 + ( 83 ) FROM tab1 AS cor0 ---- 109 93 96 query IIIIII rowsort SELECT * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL ) ---- query I rowsort SELECT + col2 + col1 * - 94 FROM tab1 ---- -1126 -2390 -883 onlyif mysql # use DIV operator for integer division query I rowsort label-4889 SELECT DISTINCT - col1 DIV 99 FROM tab0 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4889 SELECT DISTINCT - col1 / 99 FROM tab0 cor0 ---- 0 query I rowsort SELECT ALL + - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-4891 SELECT + ( 65 + col2 ) DIV 35 FROM tab0 ---- 1 2 4 skipif mysql # not compatible query I rowsort label-4891 SELECT + ( 65 + col2 ) / 35 FROM tab0 ---- 1 2 4 query I rowsort SELECT - 77 + + ( + col0 ) AS col1 FROM tab2 AS cor0 ---- -70 1 2 query I rowsort SELECT DISTINCT + 20 AS col0 FROM tab2, tab0 AS cor0 ---- 20 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor1.col2 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- -1 -33 -82 query I rowsort SELECT ALL cor0.col0 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab0 cor2 ---- 3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d query I rowsort SELECT ALL + 47 AS col0 FROM tab2 AS cor0 ---- 47 47 47 query I rowsort SELECT - + col0 * + cor0.col0 - + 14 FROM tab1 cor0 ---- -23 -4110 -6414 query I rowsort SELECT ALL + col1 + col0 * + col0 AS col0 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT ALL 75 AS col0 FROM tab0 ---- 75 75 75 onlyif mysql # use DIV operator for integer division query I rowsort label-4901 SELECT ( tab2.col1 ) DIV - col0 FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-4901 SELECT ( tab2.col1 ) / - col0 FROM tab2 ---- -4 0 0 query I rowsort SELECT + col0 * - 50 FROM tab1 ---- -150 -3200 -4000 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 35 col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b query I rowsort SELECT DISTINCT + + ( 63 ) FROM tab2, tab1, tab2 AS cor0 ---- 63 query I rowsort SELECT DISTINCT - 85 AS col1 FROM tab2, tab2 AS cor0 ---- -85 query I rowsort SELECT DISTINCT col0 + col2 * col2 FROM tab0 cor0 ---- 1113 36 6813 query I rowsort SELECT ALL - - col2 * col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL + 76 * cor0.col2 - 31 * - ( cor0.col1 * col1 ) AS col1 FROM tab0 AS cor0 ---- 231784 262943 291755 query I rowsort SELECT - + ( col1 ) - col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT cor0.col0 + col0 AS col1 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT DISTINCT tab0.col1 - col1 * + ( col1 ) AS col0 FROM tab0 ---- -7310 -8190 -9312 query I rowsort SELECT DISTINCT col2 * + col2 + cor0.col1 + - col2 * 58 FROM tab1 AS cor0 ---- -190 -47 3661 query I rowsort SELECT DISTINCT 7 * tab0.col2 AS col1 FROM tab0 ---- 231 574 7 query I rowsort SELECT + cor0.col1 + col2 * - col0 * - col0 AS col0 FROM tab0 AS cor0 ---- 1322 19094 649613 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * col2 + cor0.col1 col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab1.col2 * tab1.col0 col0 FROM tab1, tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - ( + tab2.col0 ) AS col1 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT + 40 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0 query I rowsort SELECT ( 73 ) FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 3933a906d17a820ccf95467e2206df8f query I rowsort SELECT ( + col2 ) * + col1 + col0 - - col1 * + col2 AS col0 FROM tab1 ---- 1204 2576 2811 query I rowsort SELECT ALL ( col2 ) - + 22 FROM tab0 ---- -21 11 60 onlyif mysql # use DIV operator for integer division query I rowsort label-4922 SELECT DISTINCT - col2 DIV - 50 FROM tab2 ---- 0 skipif mysql # not compatible query I rowsort label-4922 SELECT DISTINCT - col2 / - 50 FROM tab2 ---- 0 query I rowsort SELECT tab1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT DISTINCT - + 87 AS col1 FROM tab0 AS cor0 ---- -87 query I rowsort SELECT ALL - ( ( col2 ) ) + - ( + col2 ) AS col0 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT + cor0.col0 AS col1 FROM tab2, tab0, tab0 cor0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT ALL + 13 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 81 values hashing to b092e3fa17e78608cf120e97d1bfff67 query I rowsort SELECT col2 * - col1 + - col1 FROM tab1 ---- -1261 -1430 -580 query I rowsort SELECT - - 49 * + col0 * col1 FROM tab0 AS cor0 ---- 101136 166355 396851 query I rowsort SELECT + 83 AS col1 FROM tab0 AS cor0 ---- 83 83 83 query I rowsort SELECT cor0.col2 * + ( col0 ) FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4932 SELECT DISTINCT - + CAST( 56 AS SIGNED ) * col0 FROM tab0 AS cor0 ---- -1344 -1960 -4984 skipif mysql # not compatible query I rowsort label-4932 SELECT DISTINCT - + CAST ( 56 AS INTEGER ) * col0 FROM tab0 AS cor0 ---- -1344 -1960 -4984 query I rowsort SELECT ALL - col1 * - col1 AS col2 FROM tab1 AS cor0 ---- 100 169 676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4934 SELECT CAST( + ( col0 ) AS SIGNED ) FROM tab2 cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-4934 SELECT CAST ( + ( col0 ) AS INTEGER ) FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT - col1 * - 52 * + col0 FROM tab2 AS cor0 ---- 11284 239304 69836 query I rowsort SELECT col0 * 34 FROM tab0 AS cor0 ---- 1190 3026 816 query I rowsort SELECT - 61 * col1 AS col0 FROM tab1 AS cor0 ---- -1586 -610 -793 query I rowsort SELECT - tab0.col0 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT - 18 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 09afafec657a5e9f082beb6a16ec85de query I rowsort SELECT DISTINCT - 9 FROM tab1, tab0 AS cor0, tab1 cor1 ---- -9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + + col1 col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col1 + - 67 FROM tab1 AS cor0 ---- -41 -54 -57 query I rowsort SELECT DISTINCT + + col1 + 36 AS col1 FROM tab1 AS cor0 ---- 46 49 62 query I rowsort SELECT ALL + 61 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55 onlyif mysql # use DIV operator for integer division query I rowsort label-4945 SELECT col2 DIV col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4945 SELECT col2 / col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col1 * - col1 + - col2 col0 FROM tab2 AS cor0 ---- -327 -3507 -988 onlyif mysql # use DIV operator for integer division query I rowsort label-4947 SELECT ALL col2 + ( + col2 ) DIV col0 FROM tab1 AS cor0 ---- 57 72 97 skipif mysql # not compatible query I rowsort label-4947 SELECT ALL col2 + ( + col2 ) / col0 FROM tab1 AS cor0 ---- 57 72 97 query I rowsort SELECT DISTINCT col1 * ( + col1 * col2 ) + - col1 FROM tab1 cor0 ---- 16211 36478 5690 query I rowsort SELECT - + col2 - - ( col0 ) FROM tab2 AS cor0 ---- -20 41 52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4950 SELECT DISTINCT - ( 34 ) * cor0.col1 + - CAST( NULL AS SIGNED ) * 85 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4950 SELECT DISTINCT - ( 34 ) * cor0.col1 + - CAST ( NULL AS INTEGER ) * 85 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4951 SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 + cor0.col0 col1 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4951 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 + cor0.col0 col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + 5 + - 43 * col2 AS col2 FROM tab2 AS cor0 ---- -1113 -1156 -1629 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4953 SELECT - CAST( NULL AS SIGNED ) * 15 - + cor0.col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4953 SELECT - CAST ( NULL AS INTEGER ) * 15 - + cor0.col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4954 SELECT - - cor0.col1 DIV + cor0.col0 FROM tab0 AS cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-4954 SELECT - - cor0.col1 / + cor0.col0 FROM tab0 AS cor0 ---- 1 2 3 query I rowsort SELECT DISTINCT - ( - col1 ) * - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT - cor0.col0 * 17 + col0 FROM tab0 AS cor0 ---- -1424 -384 -560 query I rowsort SELECT ALL + col2 * + col1 + col1 FROM tab2 cor0 ---- 1593 663 868 query I rowsort SELECT ALL + + 29 + 42 AS col0 FROM tab0 AS cor0 ---- 71 71 71 query I rowsort SELECT + col1 + - 68 FROM tab2 AS cor0 ---- -37 -51 -9 query I rowsort SELECT + 51 AS col1 FROM tab0 AS cor0 ---- 51 51 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4961 SELECT ALL + CAST( NULL AS SIGNED ) / + col2 + + col0 * + col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4961 SELECT ALL + CAST ( NULL AS INTEGER ) / + col2 + + col0 * + col1 FROM tab2 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4962 SELECT - col2 DIV col0 + + 8 col0 FROM tab2 ---- 5 8 8 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4962 SELECT - col2 / col0 + + 8 col0 FROM tab2 ---- 5 8 8 onlyif mysql # use DIV operator for integer division query I rowsort label-4963 SELECT col1 DIV + CAST( - col0 AS SIGNED ) col2 FROM tab0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4963 SELECT col1 / + CAST ( - col0 AS INTEGER ) col2 FROM tab0 ---- -1 -2 -3 query I rowsort SELECT DISTINCT col1 * + 95 * + col1 - + tab1.col0 FROM tab1 ---- 15975 64217 9436 query I rowsort SELECT ALL col0 - 97 FROM tab2 ---- -18 -19 -90 query I rowsort SELECT - ( + col0 ) + + col0 * col2 FROM tab2 AS cor0 ---- 182 1950 2923 query I rowsort SELECT ALL + cor0.col2 + + col1 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + - 17 AS col0 FROM tab1 AS cor0 ---- -17 query I rowsort SELECT ALL col0 * col1 - + ( - col2 ) AS col0 FROM tab1 AS cor0 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-4970 SELECT + col1 + col2 DIV 42 AS col0 FROM tab1 AS cor0 ---- 11 15 27 skipif mysql # not compatible query I rowsort label-4970 SELECT + col1 + col2 / 42 AS col0 FROM tab1 AS cor0 ---- 11 15 27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 91 + - col1 col1 FROM tab2 AS cor0 ---- 32 60 74 query I rowsort SELECT DISTINCT - 47 FROM tab0 cor0 ---- -47 query I rowsort SELECT ALL - - cor0.col0 + - col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * + col1 * - cor0.col2 + ( - col1 ) - 87 col0 FROM tab1 AS cor0 ---- -119908 -32587 -75929 query I rowsort SELECT DISTINCT - - 1 FROM tab1 AS cor0 ---- 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4976 SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4976 SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL 83 + + col1 AS col1 FROM tab1 ---- 109 93 96 query I rowsort SELECT DISTINCT cor0.col2 + col1 AS col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT - - col1 + + col0 AS col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT - + 2 FROM tab1 AS cor0 ---- -2 -2 -2 onlyif mysql # use DIV operator for integer division query I rowsort label-4981 SELECT ALL 28 + - col0 DIV CAST( col1 AS SIGNED ) FROM tab0 cor0 ---- 28 28 28 skipif mysql # not compatible query I rowsort label-4981 SELECT ALL 28 + - col0 / CAST ( col1 AS INTEGER ) FROM tab0 cor0 ---- 28 28 28 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4982 SELECT DISTINCT - col2 * col1 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4982 SELECT DISTINCT - col2 * col1 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ( col1 ) * ( - 6 ) AS col2 FROM tab0 AS cor0 ---- -516 -546 -582 query I rowsort SELECT ALL + cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + + col2 col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT DISTINCT + ( - cor0.col2 ) + + col0 * + col0 FROM tab2 AS cor0 ---- 22 6058 6203 query I rowsort SELECT ALL - + 68 * - 86 * + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to e0f89e89793a1cfa7092e035b67fa652 onlyif mysql # use DIV operator for integer division query I rowsort label-4988 SELECT ALL + col2 + + col2 DIV ( - col1 ) AS col1 FROM tab1 AS cor0 ---- 52 52 89 skipif mysql # not compatible query I rowsort label-4988 SELECT ALL + col2 + + col2 / ( - col1 ) AS col1 FROM tab1 AS cor0 ---- 52 52 89 query I rowsort SELECT DISTINCT cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 17 31 59 query I rowsort SELECT ALL + 44 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d query I rowsort SELECT - col1 + 72 * 92 AS col1 FROM tab2 AS cor0 ---- 6565 6593 6607 query I rowsort SELECT + col2 + 14 AS col0 FROM tab1 cor0 ---- 110 68 71 query I rowsort SELECT cor0.col1 * - ( cor0.col0 ) FROM tab1, tab0 AS cor0 ---- 9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52 query I rowsort SELECT DISTINCT 61 AS col1 FROM tab2 ---- 61 query I rowsort SELECT col2 * col1 + tab0.col2 * col2 FROM tab0 ---- 14186 3927 98 query I rowsort SELECT DISTINCT 50 * - col2 FROM tab0 ---- -1650 -4100 -50 query I rowsort SELECT + tab0.col1 + + tab0.col0 AS col1 FROM tab0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * col2 col0 FROM tab2 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-4999 SELECT DISTINCT - col2 * col2 DIV + cor0.col1 - col1 FROM tab1 AS cor0 ---- -138 -334 -721 skipif mysql # not compatible query I rowsort label-4999 SELECT DISTINCT - col2 * col2 / + cor0.col1 - col1 FROM tab1 AS cor0 ---- -138 -334 -721 onlyif mysql # use DIV operator for integer division query I rowsort label-5000 SELECT ALL - col0 DIV 42 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-5000 SELECT ALL - col0 / 42 FROM tab1 AS cor0 ---- -1 -1 0 query I rowsort SELECT DISTINCT + + col1 * - ( + col1 ) FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT col0 * col0 - 21 AS col0 FROM tab2 cor0 ---- 28 6063 6220 query I rowsort SELECT + 96 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 22c5141a629f0ef396738ee2c8be6303 query I rowsort SELECT DISTINCT col1 * + col2 + col2 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT col2 + 22 + col2 FROM tab1 ---- 130 136 214 query I rowsort SELECT - + col2 + 55 + - col1 FROM tab2 AS cor0 ---- -3 -30 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 30 * - col1 col1 FROM tab0 ---- -2580 -2730 -2910 query I rowsort SELECT DISTINCT + cor0.col2 * + 26 AS col0 FROM tab1, tab1 AS cor0 ---- 1404 1482 2496 query I rowsort SELECT DISTINCT - 24 AS col2 FROM tab1 AS cor0 ---- -24 query I rowsort SELECT cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT - - col2 + - col1 * + ( col1 ) FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT DISTINCT + - 72 + - col1 AS col0 FROM tab0 AS cor0 ---- -158 -163 -169 query I rowsort SELECT - col1 * col0 + ( + col2 ) + - col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT cor0.col2 * col1 + + col2 + col2 FROM tab1 AS cor0 ---- 1440 1512 684 query I rowsort SELECT DISTINCT cor0.col1 * - col2 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-5016 SELECT ALL - CAST( + col2 AS SIGNED ) * + col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-5016 SELECT ALL - CAST ( + col2 AS INTEGER ) * + col0 / cor0.col0 AS col1 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT - - col1 + 64 AS col1 FROM tab1 AS cor0 ---- 74 77 90 query I rowsort SELECT ALL - cor0.col2 + cor0.col0 * col2 AS col1 FROM tab1 AS cor0 ---- 108 3591 7584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * col1 col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + ( + 47 ) AS col0 FROM tab2 AS cor0 ---- 47 query I rowsort SELECT ALL + + 80 AS col0 FROM tab2 AS cor0 ---- 80 80 80 query I rowsort SELECT DISTINCT - 90 * 57 AS col0 FROM tab1 AS cor0 ---- -5130 query I rowsort SELECT ALL - 90 + 85 FROM tab1 AS cor0 ---- -5 -5 -5 query I rowsort SELECT DISTINCT col0 * - ( - 95 * + col1 ) AS col1 FROM tab0 ---- 196080 322525 769405 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5026 SELECT ( - col0 * 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-5026 SELECT ( - col0 * col1 ) + CAST ( NULL AS INTEGER ) col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + col1 - - col0 AS col2 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT + - col2 + 87 AS col1 FROM tab2 AS cor0 ---- 49 60 61 onlyif mysql # use DIV operator for integer division query I rowsort label-5029 SELECT - col2 * col1 + + 64 DIV col1 FROM tab0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-5029 SELECT - col2 * col1 + + 64 / col1 FROM tab0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-5030 SELECT DISTINCT cor0.col0 DIV + 38 FROM tab0, tab1 cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-5030 SELECT DISTINCT cor0.col0 / + 38 FROM tab0, tab1 cor0 ---- 0 1 2 onlyif mysql # use DIV operator for integer division query I rowsort label-5031 SELECT + 11 + col2 DIV + col1 AS col1 FROM tab0 cor0 ---- 11 11 11 skipif mysql # not compatible query I rowsort label-5031 SELECT + 11 + col2 / + col1 AS col1 FROM tab0 cor0 ---- 11 11 11 onlyif mysql # use DIV operator for integer division query I rowsort label-5032 SELECT - - 22 DIV + col1 + + 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-5032 SELECT - - 22 / + col1 + + col0 col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT 80 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1040 2080 800 query I rowsort SELECT col2 * - col2 + - col0 AS col0 FROM tab0 AS cor0 ---- -1113 -36 -6813 query I rowsort SELECT + 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + - col0 col0 FROM tab2 ---- -41 -52 20 onlyif mysql # use DIV operator for integer division query I rowsort label-5037 SELECT - col1 DIV 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-5037 SELECT - col1 / col1 col2 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT 87 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 8661ffbd1a72897c495405c53b816e50 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5039 SELECT + tab1.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5039 SELECT + tab1.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - tab2.col2 * col0 + col0 FROM tab2 ---- -182 -1950 -2923 query I rowsort SELECT DISTINCT col0 * ( + col1 ) FROM tab2 ---- 1343 217 4602 query I rowsort SELECT DISTINCT col2 + + 0 AS col1 FROM tab1 AS cor0 ---- 54 57 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5043 SELECT - + cor0.col2 * CAST( + ( + col1 ) AS SIGNED ) * cor0.col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 skipif mysql # not compatible query I rowsort label-5043 SELECT - + cor0.col2 * CAST ( + ( + col1 ) AS INTEGER ) * cor0.col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query IIIIII rowsort SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL >= ( NULL ) ---- query I rowsort SELECT ALL - col2 + + ( - 74 ) AS col2 FROM tab0 AS cor0 ---- -107 -156 -75 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5046 SELECT ALL - - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5046 SELECT ALL - - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT col2 * 78 AS col1 FROM tab0 AS cor0 ---- 2574 6396 78 query I rowsort SELECT + cor0.col0 * ( + ( + col0 ) ) AS col1 FROM tab0 AS cor0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-5049 SELECT - col0 DIV - 37 FROM tab2 AS cor0 ---- 0 2 2 skipif mysql # not compatible query I rowsort label-5049 SELECT - col0 / - 37 FROM tab2 AS cor0 ---- 0 2 2 query I rowsort SELECT DISTINCT + cor0.col1 + - 45 * + 4 FROM tab0 cor0 ---- -83 -89 -94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5051 SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5051 SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL col2 + 10 FROM tab2 AS cor0 ---- 36 37 48 query I rowsort SELECT - 2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ec11209ab257030053484fc13a1f6d17 query I rowsort SELECT ALL - cor0.col2 + col2 + col0 FROM tab2 AS cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 + col2 col2 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL - 52 * col0 AS col2 FROM tab1 cor0 ---- -156 -3328 -4160 onlyif mysql # use DIV operator for integer division query I rowsort label-5057 SELECT DISTINCT + col2 DIV + col2 AS col1 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-5057 SELECT DISTINCT + col2 / + col2 AS col1 FROM tab0 AS cor0 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-5058 SELECT - col1 DIV 15 AS col1 FROM tab0 AS cor0 ---- -5 -6 -6 skipif mysql # not compatible query I rowsort label-5058 SELECT - col1 / 15 AS col1 FROM tab0 AS cor0 ---- -5 -6 -6 query I rowsort SELECT ALL + - ( - col2 ) + - col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5060 SELECT + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5060 SELECT + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL - + col1 * 16 + col0 FROM tab1 AS cor0 ---- -128 -413 -96 query I rowsort SELECT DISTINCT - 51 AS col2 FROM tab0, tab0 cor0 ---- -51 query I rowsort SELECT ALL - col1 * col1 + + col1 AS col2 FROM tab2 AS cor0 ---- -272 -3422 -930 skipif mysql # not compatible query I rowsort SELECT ALL + 44 * - col1 + CAST ( + col1 AS REAL ) FROM tab0 ---- -3698 -3913 -4171 query I rowsort SELECT ALL + - ( - col1 ) + col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT ALL + 81 FROM tab0 ---- 81 81 81 query I rowsort SELECT - + cor0.col2 * col0 AS col1 FROM tab2 cor0 ---- -189 -2028 -3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + col2 * - cor0.col2 col0 FROM tab1 AS cor0 ---- -2919 -3313 -9296 query I rowsort SELECT ALL col1 * cor0.col0 + - col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT ALL col0 + ( - col2 ) * + col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + + ( - 32 + col1 ) col0 FROM tab2 AS cor0 ---- -32 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * ( col1 ) + + col0 col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT - - col0 * + 62 + col0 * col1 AS col2 FROM tab2 AS cor0 ---- 6241 651 9438 query I rowsort SELECT ALL - - col1 + ( + col2 ) * + cor0.col1 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT + col1 + + ( - col1 ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col1 * 59 + 17 + col2 AS col1 FROM tab0 AS cor0 ---- 5124 5468 5741 query I rowsort SELECT DISTINCT col1 * - ( + col2 ) + col0 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT tab1.col2 * col0 + ( - col1 ) FROM tab1 ---- 136 3638 7667 query I rowsort SELECT DISTINCT 50 + tab0.col0 AS col2 FROM tab0 ---- 139 74 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab2.col1 * col1 + + col0 col2 FROM tab2 ---- 3559 368 968 onlyif mysql # use DIV operator for integer division query I rowsort label-5081 SELECT ALL col2 DIV + col0 + - col0 AS col0 FROM tab0 ---- -23 -35 -89 skipif mysql # not compatible query I rowsort label-5081 SELECT ALL col2 / + col0 + - col0 AS col0 FROM tab0 ---- -23 -35 -89 query I rowsort SELECT ALL col1 * col0 + col1 AS col2 FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT ALL + 14 + - col1 FROM tab0 ---- -72 -77 -83 query I rowsort SELECT DISTINCT + 87 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 87 query I rowsort SELECT ALL - 42 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 56f86ff01cd96a3511acd46e0e811e27 query I rowsort SELECT ALL 51 * col1 FROM tab2 ---- 1581 3009 867 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + ( col1 ) * + col2 col1 FROM tab0 AS cor0 ---- 2838 7462 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab2.col2 col0 FROM tab2 ---- 26 27 38 query I rowsort SELECT - 91 AS col2 FROM tab2 ---- -91 -91 -91 query I rowsort SELECT DISTINCT + - col0 * col1 AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - col1 - + col0 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT DISTINCT + - col0 - col2 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT ALL 88 + - col0 FROM tab2 AS cor0 ---- 10 81 9 query I rowsort SELECT ALL col1 + col2 * - col2 FROM tab0 ---- -1003 -6633 96 query I rowsort SELECT ALL + col2 + tab0.col0 * - col0 + col1 AS col1 FROM tab0 ---- -1127 -457 -7748 query I rowsort SELECT DISTINCT 15 AS col0 FROM tab2, tab1 AS cor0 ---- 15 query I rowsort SELECT DISTINCT - col2 + + 13 AS col1 FROM tab2 ---- -13 -14 -25 query I rowsort SELECT ALL 34 FROM tab2, tab0 cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT col0 + col0 + col1 FROM tab1 ---- 138 173 32 query I rowsort SELECT + col0 * - ( ( + col1 ) ) AS col0 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - col1 * - ( col1 + col2 ) * col1 FROM tab1 cor0 ---- 18421 54080 6700 query I rowsort SELECT cor0.col2 + - cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT DISTINCT + 58 FROM tab1 cor0 ---- 58 onlyif mysql # use DIV operator for integer division query I rowsort label-5104 SELECT col0 * + col1 DIV cor0.col1 + col1 + col0 * + col0 col0 FROM tab0 AS cor0 ---- 1357 686 8101 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5104 SELECT col0 * + col1 / cor0.col1 + col1 + col0 * + col0 col0 FROM tab0 AS cor0 ---- 1357 686 8101 query I rowsort SELECT ALL - - 75 * - col0 FROM tab1 cor0 ---- -225 -4800 -6000 query I rowsort SELECT - col0 + 77 FROM tab2 cor0 ---- -1 -2 70 onlyif mysql # use DIV operator for integer division query I rowsort label-5107 SELECT DISTINCT + + col2 + cor0.col2 DIV col2 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-5107 SELECT DISTINCT + + col2 + cor0.col2 / col2 FROM tab1 AS cor0 ---- 55 58 97 query I rowsort SELECT ALL + + 39 AS col1 FROM tab2 AS cor0 ---- 39 39 39 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5109 SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0 ---- 178 48 70 skipif mysql # not compatible query I rowsort label-5109 SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0 ---- 178 48 70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5110 SELECT CAST( NULL AS SIGNED ) + - col0 * - col0 * + ( 39 ) + col0 * + 13 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5110 SELECT CAST ( NULL AS INTEGER ) + - col0 * - col0 * + ( 39 ) + col0 * + 13 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5111 SELECT + col1 + col1 DIV + col0 AS col0 FROM tab2 cor0 ---- 17 35 59 skipif mysql # not compatible query I rowsort label-5111 SELECT + col1 + col1 / + col0 AS col0 FROM tab2 cor0 ---- 17 35 59 query I rowsort SELECT ALL - 63 AS col2 FROM tab0 AS cor0 ---- -63 -63 -63 query I rowsort SELECT ALL + - 65 * 57 FROM tab1 AS cor0 ---- -3705 -3705 -3705 onlyif mysql # use DIV operator for integer division query I rowsort label-5114 SELECT - - col1 + col0 DIV - col1 FROM tab1 AS cor0 ---- 26 4 7 skipif mysql # not compatible query I rowsort label-5114 SELECT - - col1 + col0 / - col1 FROM tab1 AS cor0 ---- 26 4 7 query I rowsort SELECT + - 82 + - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -115 -164 -83 query I rowsort SELECT + 30 + 62 * + col2 AS col0 FROM tab0 AS cor0 ---- 2076 5114 92 query I rowsort SELECT col0 - - col2 * + col2 AS col1 FROM tab2 ---- 1523 736 754 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5118 SELECT ALL + col0 + - CAST( 50 AS SIGNED ) AS col0 FROM tab1 ---- -47 14 30 skipif mysql # not compatible query I rowsort label-5118 SELECT ALL + col0 + - CAST ( 50 AS INTEGER ) AS col0 FROM tab1 ---- -47 14 30 query I rowsort SELECT DISTINCT - col1 + - 17 FROM tab0 ---- -103 -108 -114 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col2 ) + + col0 col0 FROM tab0 AS cor0 ---- -9 34 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5121 SELECT + CAST( NULL AS DECIMAL ) + col0 * + col2 + + 79 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5121 SELECT + CAST ( NULL AS REAL ) + col0 * + col2 + + 79 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 18 * col2 FROM tab0 ---- 1476 18 594 query I rowsort SELECT - 68 + + col1 FROM tab2 AS cor0 ---- -37 -51 -9 query I rowsort SELECT - 76 * col1 FROM tab2 AS cor0 ---- -1292 -2356 -4484 query I rowsort SELECT - + 78 * + col0 + - col1 + - cor0.col1 FROM tab1 AS cor0 ---- -286 -5012 -6266 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 * - col1 col1 FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT - 41 + - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0 ---- 121 3607 7639 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5128 SELECT DISTINCT + CAST( NULL AS SIGNED ) * tab1.col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-5128 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * tab1.col0 FROM tab1 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5129 SELECT DISTINCT CAST( + col2 AS SIGNED ) * col0 DIV col0 FROM tab1 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-5129 SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col0 / col0 FROM tab1 ---- 54 57 96 query I rowsort SELECT + 31 AS col0 FROM tab0 ---- 31 31 31 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab0.col0 col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT col1 - - cor0.col2 * + 19 FROM tab2 AS cor0 ---- 544 553 739 query I rowsort SELECT ALL - col0 + + col2 * col2 AS col2 FROM tab1 AS cor0 ---- 2913 3185 9136 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5134 SELECT + col1 + CAST( + ( - col0 ) * + 52 AS SIGNED ) FROM tab1 AS cor0 ---- -130 -3318 -4147 skipif mysql # not compatible query I rowsort label-5134 SELECT + col1 + CAST ( + ( - col0 ) * + 52 AS INTEGER ) FROM tab1 AS cor0 ---- -130 -3318 -4147 query I rowsort SELECT - col2 * ( 50 ) + col2 FROM tab0 AS cor0 ---- -1617 -4018 -49 query I rowsort SELECT ALL cor0.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT DISTINCT cor0.col0 + + 41 FROM tab1, tab0 AS cor0 ---- 130 65 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5138 SELECT - col1 + ( col1 ) + - tab0.col1 * CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5138 SELECT - col1 + ( col1 ) + - tab0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT col1 - + 73 * + col0 FROM tab2 AS cor0 ---- -480 -5635 -5750 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5140 SELECT DISTINCT - col1 * - CAST( cor0.col0 AS SIGNED ) - - col1 * - col0 AS col2 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5140 SELECT DISTINCT - col1 * - CAST ( cor0.col0 AS INTEGER ) - - col1 * - col0 AS col2 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL - col1 * + 28 FROM tab2 cor0 ---- -1652 -476 -868 onlyif mysql # use DIV operator for integer division query I rowsort label-5142 SELECT col0 DIV + tab0.col1 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5142 SELECT col0 / + tab0.col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT + 97 + col2 FROM tab2 AS cor0 ---- 123 124 135 query I rowsort SELECT + ( + col1 ) * col1 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT - 25 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 40ac8fd000b2e49317aed2411077839e query I rowsort SELECT ALL - 55 * - 93 FROM tab2 ---- 5115 5115 5115 onlyif mysql # use DIV operator for integer division query I rowsort label-5147 SELECT DISTINCT + - cor0.col2 + + col2 DIV - col0 FROM tab1 AS cor0 ---- -57 -72 -97 skipif mysql # not compatible query I rowsort label-5147 SELECT DISTINCT + - cor0.col2 + + col2 / - col0 FROM tab1 AS cor0 ---- -57 -72 -97 query I rowsort SELECT DISTINCT - - 63 * col0 FROM tab0 AS cor0 ---- 1512 2205 5607 query I rowsort SELECT ALL + ( + col1 ) * + col1 + + cor0.col1 FROM tab2 cor0 ---- 306 3540 992 query I rowsort SELECT DISTINCT + - ( col2 ) - - cor0.col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT - col2 + cor0.col0 FROM tab0 cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 1 33 82 query I rowsort SELECT DISTINCT cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 17 col1 FROM tab2 AS cor0 ---- 17 17 17 onlyif mysql # use DIV operator for integer division query I rowsort label-5156 SELECT ALL + col1 DIV + col0 FROM tab0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-5156 SELECT ALL + col1 / + col0 FROM tab0 ---- 1 2 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * + 10 col2 FROM tab2 ---- 70 780 790 query I rowsort SELECT DISTINCT - 11 - - cor0.col2 AS col1 FROM tab1, tab0 AS cor0 ---- -10 22 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 0 * ( col2 ) + + col2 col1 FROM tab1 AS cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 95 col1 FROM tab1 AS cor0 ---- -95 query I rowsort SELECT 60 FROM tab2, tab2 AS cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT ALL 99 + + 46 AS col2 FROM tab1 ---- 145 145 145 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5163 SELECT DISTINCT - CAST( + col1 AS SIGNED ) + col2 FROM tab2 ---- -33 -4 21 skipif mysql # not compatible query I rowsort label-5163 SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col2 FROM tab2 ---- -33 -4 21 query I rowsort SELECT ALL - col0 + 9 FROM tab2 ---- -69 -70 2 query I rowsort SELECT ALL + 21 * - col1 AS col2 FROM tab2 ---- -1239 -357 -651 query I rowsort SELECT DISTINCT - cor0.col2 + tab1.col2 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 4b3cfe493ab82d61f577d990b98c32a6 query I rowsort SELECT ALL col1 * - 15 AS col2 FROM tab1 ---- -150 -195 -390 query I rowsort SELECT DISTINCT 45 AS col1 FROM tab0, tab2 AS cor0 ---- 45 query I rowsort SELECT + 3 * - cor0.col1 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- -24 27 57 query I rowsort SELECT ( + col2 ) * col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT - 68 + tab2.col2 * col2 AS col2 FROM tab2 ---- 1376 608 661 query I rowsort SELECT + 42 + + col0 FROM tab2 AS cor0 ---- 120 121 49 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + col0 col2 FROM tab2 ---- 14 156 158 query I rowsort SELECT col0 + - tab1.col0 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL + col2 + tab0.col0 AS col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT + - col0 * col0 + col0 + col2 FROM tab0 AS cor0 ---- -1189 -519 -7750 query I rowsort SELECT DISTINCT col1 + tab1.col2 * - col1 FROM tab1 ---- -1235 -1378 -560 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL < NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-5179 SELECT DISTINCT col0 DIV col1 + - col0 FROM tab1 AS cor0 ---- -3 -58 -74 skipif mysql # not compatible query I rowsort label-5179 SELECT DISTINCT col0 / col1 + - col0 FROM tab1 AS cor0 ---- -3 -58 -74 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) BETWEEN + col1 AND NULL ---- query I rowsort SELECT 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 DISTINCT col0 * - col0 col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 + col2 + + cor0.col2 * col0 col1 FROM tab2 AS cor0 ---- 1976 209 2961 query I rowsort SELECT col1 + col2 * col2 FROM tab0 AS cor0 ---- 1175 6815 98 onlyif mysql # use DIV operator for integer division query I rowsort label-5185 SELECT ALL - col0 + col0 DIV + col1 AS col2 FROM tab1 ---- -3 -58 -74 skipif mysql # not compatible query I rowsort label-5185 SELECT ALL - col0 + col0 / + col1 AS col2 FROM tab1 ---- -3 -58 -74 query I rowsort SELECT ALL + col2 - col2 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT - col0 - + tab1.col1 * col0 FROM tab1 ---- -1120 -704 -81 query I rowsort SELECT - + col2 * col1 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT col1 - + col2 * + col1 AS col2 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT + col1 + - col0 * col0 FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT DISTINCT - col0 * - cor0.col0 + - col2 AS col1 FROM tab0 AS cor0 ---- 1224 543 7839 query I rowsort SELECT ALL + + col0 + - col2 + col1 * - col2 FROM tab2 cor0 ---- -1482 -605 -857 query I rowsort SELECT DISTINCT - col0 + col1 * col2 AS col2 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT + col2 + + col2 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT DISTINCT - col0 + - col2 + + col2 * cor0.col0 FROM tab0 AS cor0 ---- -1 7127 735 query I rowsort SELECT + col2 + + col1 * col1 + col1 AS col0 FROM tab0 AS cor0 ---- 7515 8454 9507 query I rowsort SELECT ALL + + col1 * - col2 * cor0.col1 + col1 + + col1 AS col2 FROM tab0 AS cor0 ---- -243896 -678860 -9215 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * col2 col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT + col1 * + tab2.col0 * - col2 - col0 FROM tab2 ---- -119730 -51113 -5866 onlyif mysql # use DIV operator for integer division query I rowsort label-5200 SELECT DISTINCT - col0 DIV col1 - col1 FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-5200 SELECT DISTINCT - col0 / col1 - col1 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT col0 * + tab1.col1 - - col0 * - col0 AS col0 FROM tab1 ---- -3456 -5360 69 query I rowsort SELECT DISTINCT + col0 * - cor0.col1 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT col0 * - col2 * - col1 FROM tab0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT + col2 * + col0 * col1 AS col1 FROM tab1 ---- 36480 4212 99840 onlyif mysql # use DIV operator for integer division query I rowsort label-5205 SELECT col1 + col1 DIV + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 18 32 60 skipif mysql # not compatible query I rowsort label-5205 SELECT col1 + col1 / + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 18 32 60 query I rowsort SELECT + + col0 * col1 + col2 AS col0 FROM tab1 AS cor0 ---- 1136 132 697 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5207 SELECT - col1 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 ---- -1534 -646 -837 skipif mysql # not compatible query I rowsort label-5207 SELECT - col1 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + + col0 * ( col2 ) * col0 FROM tab2 cor0 ---- 1323 158184 237158 query I rowsort SELECT ALL cor0.col0 - - cor0.col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT DISTINCT + 0 AS col2 FROM tab2, tab0 AS cor0 ---- 0 query I rowsort SELECT ALL + - 24 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 797d0f7c145f8ac623924448c714bbcc query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 cor0, tab2, tab0 AS cor1 ---- 972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d query I rowsort SELECT + tab1.col0 * + col0 AS col2 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT - cor0.col2 * + col2 * col1 + + col0 FROM tab2 AS cor0 ---- -22592 -24469 -39806 onlyif mysql # use DIV operator for integer division query I rowsort label-5215 SELECT DISTINCT + col1 + col0 DIV - tab1.col1 AS col0 FROM tab1 ---- 26 4 7 skipif mysql # not compatible query I rowsort label-5215 SELECT DISTINCT + col1 + col0 / - tab1.col1 AS col0 FROM tab1 ---- 26 4 7 query I rowsort SELECT - 70 * + 13 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5a33904d51f9d268fe7a6a33c21e5033 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * 8 col2 FROM tab1 ---- -24 -512 -640 query I rowsort SELECT DISTINCT + col0 * + ( + 23 ) + + col2 AS col0 FROM tab2 AS cor0 ---- 1820 1855 188 query I rowsort SELECT - ( - 57 ) FROM tab1, tab1 AS cor0 ---- 9 values hashing to 61da70c624ad60604a668f7f8f29392a query I rowsort SELECT 68 + - col0 FROM tab2 ---- -10 -11 61 query I rowsort SELECT DISTINCT + tab2.col0 - col0 AS col2 FROM tab2 ---- 0 query I rowsort SELECT - col0 - col1 AS col0 FROM tab0 AS cor0 ---- -110 -132 -180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5223 SELECT DISTINCT CAST( + col2 AS SIGNED ) - col1 col0 FROM tab0 ---- -53 -9 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5223 SELECT DISTINCT CAST ( + col2 AS INTEGER ) - col1 col0 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT 45 + tab2.col0 FROM tab2 ---- 123 124 52 query I rowsort SELECT DISTINCT 66 * + col0 AS col0 FROM tab1 AS cor0 ---- 198 4224 5280 query I rowsort SELECT ALL - col0 + + 72 + - tab0.col2 FROM tab0 ---- -99 15 36 query I rowsort SELECT ALL - cor0.col0 + col2 FROM tab1 cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-5228 SELECT - - 48 DIV col2 AS col0 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5228 SELECT - - 48 / col2 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + 8 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to ffc5b4c98b57ae546521175995c49c57 query I rowsort SELECT 41 + col2 AS col2 FROM tab1 ---- 137 95 98 query I rowsort SELECT - - col1 * cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + - col1 * col2 * + 19 AS col2 FROM tab1 AS cor0 ---- -10830 -23712 -26676 query I rowsort SELECT ALL - - 50 + col2 FROM tab0 cor0 ---- 132 51 83 query I rowsort SELECT DISTINCT - col0 * + col0 * + 1 AS col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT DISTINCT + col1 * col2 - ( col2 ) FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT - + 3 + - col1 * - col2 AS col2 FROM tab1 cor0 ---- 1245 1401 567 query I rowsort SELECT - - 2 + col1 AS col1 FROM tab1 cor0 ---- 12 15 28 query I rowsort SELECT ALL 56 + col2 * col2 FROM tab2 cor0 ---- 1500 732 785 query I rowsort SELECT + - col0 * col2 + col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT ALL - + 13 - cor0.col0 FROM tab1 AS cor0 ---- -16 -77 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-5241 SELECT - col2 + + col0 DIV + 58 AS col0 FROM tab0 AS cor0 ---- -1 -33 -81 skipif mysql # not compatible query I rowsort label-5241 SELECT - col2 + + col0 / + 58 AS col0 FROM tab0 AS cor0 ---- -1 -33 -81 query I rowsort SELECT DISTINCT ( + col0 ) * + col0 AS col2 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT ALL + + col2 * cor0.col0 AS col1 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT col1 * + col1 - col2 * cor0.col0 FROM tab2 AS cor0 ---- -2713 1453 772 query I rowsort SELECT col0 + 51 AS col1 FROM tab1 AS cor0 ---- 115 131 54 query I rowsort SELECT - col0 * + cor0.col2 + col1 FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5247 SELECT + col2 * - CAST( col2 AS SIGNED ) * cor0.col1 - col2 FROM tab0 cor0 ---- -611966 -93687 -98 skipif mysql # not compatible query I rowsort label-5247 SELECT + col2 * - CAST ( col2 AS INTEGER ) * cor0.col1 - col2 FROM tab0 cor0 ---- -611966 -93687 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-5248 SELECT col2 DIV ( col0 * col1 ) + - col0 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-5248 SELECT col2 / ( col0 * col1 ) + - col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT + - col1 + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 * - 50 * - col1 FROM tab0 AS cor0 ---- -369800 -414050 -470450 query I rowsort SELECT cor0.col0 * col0 + + col2 * col1 AS col2 FROM tab0 AS cor0 ---- 1322 15383 3414 query I rowsort SELECT ALL - col0 + col1 * tab0.col0 AS col2 FROM tab0 ---- 2040 3360 8010 query I rowsort SELECT + col1 * + 76 * col0 AS col2 FROM tab1 AS cor0 ---- 48640 5928 79040 query I rowsort SELECT + cor0.col1 + col1 * - ( col0 * cor0.col2 ) FROM tab0 AS cor0 ---- -3298 -664027 -68026 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5255 SELECT + - CAST( - col0 AS SIGNED ) * col1 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-5255 SELECT + - CAST ( - col0 AS INTEGER ) * col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT cor0.col1 * 74 + - col0 FROM tab2 cor0 ---- 1179 2287 4288 query I rowsort SELECT DISTINCT + - ( - col1 ) * + col0 - ( col2 ) AS col1 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT ALL - col2 + 33 AS col0 FROM tab0 AS cor0 ---- -49 0 32 query I rowsort SELECT DISTINCT - ( - 45 ) + col2 AS col2 FROM tab2 AS cor0 ---- 71 72 83 query I rowsort SELECT - + ( 73 ) * col2 + - ( col2 ) FROM tab1 AS cor0 ---- -3996 -4218 -7104 query I rowsort SELECT ALL 21 AS col2 FROM tab2 cor0 ---- 21 21 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 38 col0 FROM tab2 ---- 38 38 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5263 SELECT + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-5263 SELECT + 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-5264 SELECT - + 43 DIV - col0 FROM tab1 AS cor0 ---- 0 0 14 skipif mysql # not compatible query I rowsort label-5264 SELECT - + 43 / - col0 FROM tab1 AS cor0 ---- 0 0 14 query I rowsort SELECT ALL - 93 * col2 AS col2 FROM tab2 AS cor0 ---- -2418 -2511 -3534 query I rowsort SELECT DISTINCT - col2 + col1 + + col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - - 46 + col2 AS col0 FROM tab2 AS cor0 ---- 72 73 84 query I rowsort SELECT 67 AS col2 FROM tab0 cor0 ---- 67 67 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * + 64 col0 FROM tab0 ---- -2112 -5248 -64 query I rowsort SELECT - 47 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 6942a0d9558277afd0d00408d65cf5aa query I rowsort SELECT ALL col1 * col0 + col2 + + col1 AS col0 FROM tab1 ---- 1149 158 707 query I rowsort SELECT ALL - col0 + + ( col1 * - 88 ) AS col1 FROM tab1 ---- -1224 -2291 -944 query I rowsort SELECT - 59 + - col0 AS col0 FROM tab0 AS cor0 ---- -148 -83 -94 query I rowsort SELECT ALL - + 89 AS col2 FROM tab1 AS cor0 ---- -89 -89 -89 query I rowsort SELECT DISTINCT - cor0.col0 * col0 AS col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT + + col0 * col0 * col2 FROM tab1 AS cor0 ---- 233472 486 614400 onlyif mysql # use DIV operator for integer division query I rowsort label-5277 SELECT + cor0.col2 * col0 DIV + ( 96 ) AS col1 FROM tab0 AS cor0 ---- 0 76 8 skipif mysql # not compatible query I rowsort label-5277 SELECT + cor0.col2 * col0 / + ( 96 ) AS col1 FROM tab0 AS cor0 ---- 0 76 8 query I rowsort SELECT ALL - cor0.col0 * + col1 + col2 AS col0 FROM tab1 cor0 ---- -24 -583 -944 query I rowsort SELECT DISTINCT - col2 * - cor0.col0 + col1 AS col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT ( col1 ) * - cor0.col1 FROM tab2 cor0 ---- -289 -3481 -961 query I rowsort SELECT - 55 * - col2 * + col1 FROM tab1 AS cor0 ---- 31350 68640 77220 query I rowsort SELECT tab0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0, tab1 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 query I rowsort SELECT DISTINCT + - 28 * - col0 AS col2 FROM tab0 AS cor0 ---- 2492 672 980 query I rowsort SELECT ALL - col2 * cor0.col0 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT - col2 - - col1 AS col1 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT - + cor1.col2 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1 ---- 81 values hashing to 87af467938ef355540b8de24db1bf3b8 query I rowsort SELECT DISTINCT - + col0 * - 72 + cor0.col2 FROM tab2 cor0 ---- 531 5642 5726 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5288 SELECT ALL - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5288 SELECT ALL - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col0 + ( col1 ) + col2 FROM tab1 AS cor0 ---- 29 3 77 query I rowsort SELECT ALL + - col0 * cor0.col2 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-5291 SELECT - col0 DIV tab0.col1 AS col2 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5291 SELECT - col0 / tab0.col1 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT + cor0.col1 * + ( - col2 ) + - col1 AS col2 FROM tab0 AS cor0 ---- -194 -2924 -7553 query I rowsort SELECT + + col2 * - col0 + col1 * col2 * col1 AS col1 FROM tab2 AS cor0 ---- 25758 7980 88478 query I rowsort SELECT ALL 96 + + col0 AS col0 FROM tab0 AS cor0 ---- 120 131 185 query I rowsort SELECT + ( col2 ) + cor0.col2 + + 84 AS col0 FROM tab1 AS cor0 ---- 192 198 276 onlyif mysql # use DIV operator for integer division query I rowsort label-5296 SELECT ALL + + col1 + - col2 DIV - col2 AS col2 FROM tab0 AS cor0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-5296 SELECT ALL + + col1 + - col2 / - col2 AS col2 FROM tab0 AS cor0 ---- 87 92 98 query I rowsort SELECT + - col2 * - cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + 55 + - col0 * + col2 + + col1 AS col2 FROM tab1 AS cor0 ---- -3583 -7612 -81 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2 ---- 972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163 onlyif mysql # use DIV operator for integer division query I rowsort label-5300 SELECT DISTINCT - ( + 87 ) DIV col2 + - ( + col2 ) FROM tab1 AS cor0 ---- -55 -58 -96 skipif mysql # not compatible query I rowsort label-5300 SELECT DISTINCT - ( + 87 ) / col2 + - ( + col2 ) FROM tab1 AS cor0 ---- -55 -58 -96 query I rowsort SELECT - - col2 + cor0.col0 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-5302 SELECT DISTINCT - + 39 DIV + col1 + - col0 FROM tab1 AS cor0 ---- -4 -67 -83 skipif mysql # not compatible query I rowsort label-5302 SELECT DISTINCT - + 39 / + col1 + - col0 FROM tab1 AS cor0 ---- -4 -67 -83 query I rowsort SELECT DISTINCT col2 * - 57 FROM tab0 cor0 ---- -1881 -4674 -57 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-5305 SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 - - col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5305 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 - - col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ( col2 ) + col0 AS col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + col2 + + 35 AS col2 FROM tab2 AS cor0 ---- 61 62 73 query I rowsort SELECT DISTINCT + col2 * col2 * col0 + - cor0.col2 AS col1 FROM tab1 AS cor0 ---- 207879 737184 8694 query I rowsort SELECT ALL + + 1 + - 59 - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -140 -59 -91 onlyif mysql # use DIV operator for integer division query I rowsort label-5310 SELECT - col1 * + ( tab0.col2 ) DIV col2 col1 FROM tab0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5310 SELECT - col1 * + ( tab0.col2 ) / col2 col1 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT ALL - col1 * - col1 - col1 * - col2 * 75 FROM tab1 ---- 105976 42850 93769 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5312 SELECT ALL - - CAST( - cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-5312 SELECT ALL - - CAST ( - cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT - col2 - + ( col2 * col2 ) FROM tab0 ---- -1122 -2 -6806 query I rowsort SELECT DISTINCT col0 + + 46 FROM tab2 ---- 124 125 53 onlyif mysql # use DIV operator for integer division query I rowsort label-5315 SELECT ( + col2 ) DIV col0 - 13 FROM tab2 ---- -10 -13 -13 skipif mysql # not compatible query I rowsort label-5315 SELECT ( + col2 ) / col0 - 13 FROM tab2 ---- -10 -13 -13 query I rowsort SELECT col2 + col2 + + col1 AS col2 FROM tab1 ---- 124 134 205 onlyif mysql # use DIV operator for integer division query I rowsort label-5317 SELECT - + col2 + + col0 DIV col0 AS col0 FROM tab0 AS cor0 ---- -32 -81 0 skipif mysql # not compatible query I rowsort label-5317 SELECT - + col2 + + col0 / col0 AS col0 FROM tab0 AS cor0 ---- -32 -81 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5318 SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col1 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-5318 SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 ---- 3 64 80 query I rowsort SELECT ALL + cor0.col0 * 38 FROM tab0 AS cor0 ---- 1330 3382 912 query I rowsort SELECT 80 + - 61 FROM tab0 cor0 ---- 19 19 19 query I rowsort SELECT DISTINCT + col2 * - col2 * - col0 + 48 + + 12 FROM tab1 AS cor0 ---- 207996 737340 8808 query I rowsort SELECT cor1.col1 + - 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to bef5d0ea6570dac62fad53f83995ef3f query I rowsort SELECT - 99 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 64d06513850a26495bc6c2fddeb254b7 query I rowsort SELECT - col0 - cor0.col1 AS col1 FROM tab1 AS cor0 ---- -29 -74 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-5325 SELECT + tab0.col1 * ( tab0.col1 ) DIV col1 col0 FROM tab0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5325 SELECT + tab0.col1 * ( tab0.col1 ) / col1 col0 FROM tab0 ---- 86 91 97 query I rowsort SELECT ALL + - cor0.col0 * ( + cor0.col1 ) * - col2 + 22 FROM tab1 AS cor0 ---- 36502 4234 99862 query I rowsort SELECT ALL - col1 - - col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 86 FROM tab0 ---- 86 86 86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 + cor0.col1 col0 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-5330 SELECT - ( col2 ) DIV + 52 - col0 FROM tab1 AS cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-5330 SELECT - ( col2 ) / + 52 - col0 FROM tab1 AS cor0 ---- -4 -65 -81 query I rowsort SELECT DISTINCT col2 * + col0 + - ( + col2 ) FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT - 62 + + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -59 18 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 85 col1 FROM tab1 ---- 85 85 85 query I rowsort SELECT 99 + col0 FROM tab0 AS cor0 ---- 123 134 188 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5335 SELECT - cor0.col2 * + col0 + col1 / ( col2 ) + CAST( NULL AS SIGNED ) * - 79 * - col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5335 SELECT - cor0.col2 * + col0 + col1 / ( col2 ) + CAST ( NULL AS INTEGER ) * - 79 * - col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + - col1 + + col0 * ( col0 + - col0 ) FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT cor0.col1 * + cor0.col0 + - cor0.col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT DISTINCT - cor0.col0 * col1 + 73 AS col0 FROM tab1 AS cor0 ---- -5 -567 -967 query I rowsort SELECT col0 * col0 + - col2 * col1 + ( - 36 ) AS col0 FROM tab2 AS cor0 ---- -824 4514 5559 query I rowsort SELECT - col0 + col1 + - cor0.col2 AS col2 FROM tab2 cor0 ---- -100 -3 -45 query I rowsort SELECT - col0 + ( cor0.col1 ) * col2 FROM tab0 AS cor0 ---- 2814 62 7373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - tab1.col2 * col0 col2 FROM tab1 ---- 233472 486 614400 query I rowsort SELECT DISTINCT col2 + + col0 + + 53 FROM tab0 ---- 110 224 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 45 + col0 + ( col0 ) col0 FROM tab1 ---- 173 205 51 query I rowsort SELECT cor0.col1 + - 95 AS col0 FROM tab1 AS cor0 ---- -69 -82 -85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5346 SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5346 SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b 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 DISTINCT - 30 * col1 - - col1 AS col1 FROM tab2 AS cor0 ---- -1711 -493 -899 query I rowsort SELECT DISTINCT col0 * + cor0.col0 + col0 AS col1 FROM tab0 cor0 ---- 1260 600 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-5350 SELECT ALL + - 6 + col1 DIV col2 AS col2 FROM tab1 AS cor0 ---- -6 -6 -6 skipif mysql # not compatible query I rowsort label-5350 SELECT ALL + - 6 + col1 / col2 AS col2 FROM tab1 AS cor0 ---- -6 -6 -6 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( + ( col2 ) AS REAL ) + ( col0 ) FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5352 SELECT DISTINCT CAST( - tab1.col1 AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-5352 SELECT DISTINCT CAST ( - tab1.col1 AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- -10 -13 -26 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab0 cor2 ---- 3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6 query I rowsort SELECT DISTINCT + ( + col2 ) * + col1 + col2 AS col1 FROM tab0 cor0 ---- 2871 7544 98 query I rowsort SELECT + ( tab1.col0 ) FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT DISTINCT col1 * col1 - tab2.col2 FROM tab2 ---- 251 3455 934 query I rowsort SELECT ALL - 91 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 745d1c3a09d935465cad552325c5c945 onlyif mysql # use DIV operator for integer division query I rowsort label-5358 SELECT col1 + - col1 DIV + cor0.col0 FROM tab0 AS cor0 ---- 83 90 95 skipif mysql # not compatible query I rowsort label-5358 SELECT col1 + - col1 / + cor0.col0 FROM tab0 AS cor0 ---- 83 90 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 - col1 * ( col1 ) col1 FROM tab0 cor0 ---- -7372 -8192 -9374 query I rowsort SELECT ( - 4 * + col1 ) + + tab1.col1 + - col1 AS col2 FROM tab1 ---- -104 -40 -52 query I rowsort SELECT DISTINCT + col0 - - col0 FROM tab0 ---- 178 48 70 query I rowsort SELECT ALL col1 * 82 FROM tab0 ---- 7052 7462 7954 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 71 col1 FROM tab1, tab0 AS cor0 ---- 71 query I rowsort SELECT + - 33 * - col1 FROM tab2 cor0 ---- 1023 1947 561 query I rowsort SELECT 70 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1 ---- 972 values hashing to 4c46de5c1773124597e14f3b372fc4ea onlyif mysql # use DIV operator for integer division query I rowsort label-5367 SELECT - 89 DIV 44 FROM tab1, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 20c9213316527d507e26425041e08387 skipif mysql # not compatible query I rowsort label-5367 SELECT - 89 / 44 FROM tab1, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 20c9213316527d507e26425041e08387 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 71 col2 FROM tab2 ---- -71 -71 -71 query I rowsort SELECT ALL - tab0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0, tab1 ---- 81 values hashing to 87af467938ef355540b8de24db1bf3b8 query I rowsort SELECT 95 - + tab0.col2 FROM tab0 ---- 13 62 94 query I rowsort SELECT 36 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 4d1892e880125dc90345721151acb22c onlyif mysql # use DIV operator for integer division query I rowsort label-5372 SELECT DISTINCT + col0 * col2 DIV + col0 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-5372 SELECT DISTINCT + col0 * col2 / + col0 FROM tab2 ---- 26 27 38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * - 50 col2 FROM tab1 ---- -2700 -2850 -4800 query I rowsort SELECT - ( col1 ) * + col1 + - ( + col2 ) * - col0 FROM tab0 AS cor0 ---- -6604 -9374 -983 query I rowsort SELECT DISTINCT + col1 * - ( col2 * col1 + - col2 ) FROM tab1 ---- -14976 -35100 -5130 onlyif mysql # use DIV operator for integer division query I rowsort label-5376 SELECT col2 * 4 + - tab1.col2 DIV col1 col2 FROM tab1 ---- 214 223 377 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5376 SELECT col2 * 4 + - tab1.col2 / col1 col2 FROM tab1 ---- 214 223 377 query I rowsort SELECT + - col2 * ( col1 ) * - col1 AS col2 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT - col1 * - col1 + - col2 AS col2 FROM tab2 AS cor0 ---- 251 3455 934 query I rowsort SELECT + col1 * 6 FROM tab2 AS cor0 ---- 102 186 354 query I rowsort SELECT + col2 + 74 * col1 FROM tab1 AS cor0 ---- 1058 1978 797 query I rowsort SELECT + ( + col1 ) + col2 AS col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT + - 87 + + col2 * cor0.col0 FROM tab1 AS cor0 ---- 3561 75 7593 query I rowsort SELECT cor0.col2 * col2 + col1 AS col0 FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT + 81 * col1 FROM tab1 ---- 1053 2106 810 query I rowsort SELECT + - col0 + - col1 * ( - col0 ) FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT DISTINCT - col0 + col0 * + col0 FROM tab0 AS cor0 ---- 1190 552 7832 onlyif mysql # use DIV operator for integer division query I rowsort label-5387 SELECT + col1 DIV + tab1.col1 AS col1 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5387 SELECT + col1 / + tab1.col1 AS col1 FROM tab1 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-5388 SELECT ( tab1.col0 * ( tab1.col1 ) ) + col1 + - col0 DIV - col0 AS col2 FROM tab1 ---- 105 1054 651 skipif mysql # not compatible query I rowsort label-5388 SELECT ( tab1.col0 * ( tab1.col1 ) ) + col1 + - col0 / - col0 AS col2 FROM tab1 ---- 105 1054 651 query I rowsort SELECT ALL + 20 + - col1 + col2 FROM tab1 ---- 103 48 67 query I rowsort SELECT col1 * + cor0.col2 * + ( - ( + col0 ) ) AS col2 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT 56 + col2 * - col1 - 20 FROM tab0 ---- -2802 -61 -7426 query I rowsort SELECT DISTINCT col2 * - col2 * - col1 - - col0 FROM tab0 ---- 132 611973 93678 query I rowsort SELECT ALL + + 17 FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to e0dd9155e4d67132637a04c18ef46b2a query I rowsort SELECT col1 * + ( col1 ) + - col2 + 62 FROM tab2 cor0 ---- 313 3517 996 query I rowsort SELECT - cor0.col1 + - 28 AS col1 FROM tab2 AS cor0 ---- -45 -59 -87 query I rowsort SELECT + col1 * + cor0.col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT - col2 * - col0 * + col2 FROM tab2 AS cor0 ---- 114076 5103 52728 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 * cor0.col1 col1 FROM tab1 cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5399 SELECT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5399 SELECT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 + cor0.col0 + col1 FROM tab2 cor0 ---- 175 215 45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5401 SELECT - + col2 * - CAST( + ( col1 ) AS SIGNED ) * CAST( col0 AS SIGNED ) + + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 3492 664209 68198 skipif mysql # not compatible query I rowsort label-5401 SELECT - + col2 * - CAST ( + ( col1 ) AS INTEGER ) * CAST ( col0 AS INTEGER ) + + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 3492 664209 68198 query I rowsort SELECT - - col2 * - cor0.col2 + col0 * cor0.col2 * - col0 FROM tab1 AS cor0 ---- -236721 -3402 -623616 query I rowsort SELECT DISTINCT col1 - 38 FROM tab2 AS cor0 ---- -21 -7 21 query I rowsort SELECT + - col2 * + col2 * + col0 AS col1 FROM tab1 AS cor0 ---- -207936 -737280 -8748 query I rowsort SELECT - ( + 55 ) + col0 FROM tab1 AS cor0 ---- -52 25 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5406 SELECT + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5406 SELECT + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL cor0.col0 * col1 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - - col2 * cor0.col1 + - ( - col0 + cor0.col1 ) AS col1 FROM tab0 AS cor0 ---- 2776 35 7460 query I rowsort SELECT DISTINCT - - ( - 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 DISTINCT 80 * + col0 AS col2 FROM tab2 ---- 560 6240 6320 query I rowsort SELECT DISTINCT 57 * col1 * - 10 AS col0 FROM tab2 AS cor0 ---- -17670 -33630 -9690 query I rowsort SELECT DISTINCT + col1 * col2 + - 76 * 98 AS col0 FROM tab0 AS cor0 ---- -4610 -7351 14 query I rowsort SELECT + 94 + col0 FROM tab1 AS cor0 ---- 158 174 97 query I rowsort SELECT DISTINCT + col2 - cor0.col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL + - col2 * col0 + + 32 AS col1 FROM tab0 AS cor0 ---- -3 -7266 -760 query I rowsort SELECT DISTINCT + + col1 - + col1 AS col2 FROM tab1 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5418 SELECT ALL + + col1 DIV - col1 AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5418 SELECT ALL + + col1 / - col1 AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL 4 AS col0 FROM tab0 AS cor0 ---- 4 4 4 query I rowsort SELECT - - 25 AS col1 FROM tab2 AS cor0 ---- 25 25 25 query I rowsort SELECT DISTINCT 25 + col1 AS col0 FROM tab0 cor0 ---- 111 116 122 query I rowsort SELECT DISTINCT col1 * - col2 + 76 AS col1 FROM tab0 AS cor0 ---- -21 -2762 -7386 query I rowsort SELECT ALL + ( - 47 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 6942a0d9558277afd0d00408d65cf5aa query I rowsort SELECT ALL + col2 + + col1 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT + 43 AS col2 FROM tab2 AS cor0 ---- 43 query I rowsort SELECT DISTINCT + ( col1 ) * cor0.col2 + - 66 * + col1 FROM tab0 AS cor0 ---- -2838 -6305 1456 query I rowsort SELECT + col2 + - cor0.col0 * - 28 FROM tab1 AS cor0 ---- 138 1849 2336 onlyif mysql # use DIV operator for integer division query I rowsort label-5428 SELECT ALL - + col1 + col0 DIV ( + col2 ) AS col1 FROM tab1 cor0 ---- -13 -26 -9 skipif mysql # not compatible query I rowsort label-5428 SELECT ALL - + col1 + col0 / ( + col2 ) AS col1 FROM tab1 cor0 ---- -13 -26 -9 query I rowsort SELECT - 56 * col2 AS col0 FROM tab0 cor0 ---- -1848 -4592 -56 query I rowsort SELECT ALL 55 FROM tab0 AS cor0 ---- 55 55 55 query I rowsort SELECT ALL - - col1 - + col1 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5432 SELECT + 75 DIV col1 FROM tab2 AS cor0 ---- 1 2 4 skipif mysql # not compatible query I rowsort label-5432 SELECT + 75 / col1 FROM tab2 AS cor0 ---- 1 2 4 onlyif mysql # use DIV operator for integer division query I rowsort label-5433 SELECT DISTINCT - - 22 + col2 DIV CAST( 92 * + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 22 skipif mysql # not compatible query I rowsort label-5433 SELECT DISTINCT - - 22 + col2 / CAST ( 92 * + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 22 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 85 * col0 col0 FROM tab2 AS cor0 ---- -595 -6630 -6715 query I rowsort SELECT - col2 * + col2 AS col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT - col0 + + 0 * col1 * - col0 + 31 * + 53 * col2 FROM tab0 AS cor0 ---- 134637 1608 54195 query I rowsort SELECT ALL - col2 + - col2 FROM tab1 cor0 ---- -108 -114 -192 query I rowsort SELECT - + col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT ALL col1 + col2 + + ( - col0 + 53 ) AS col2 FROM tab0 AS cor0 ---- 116 137 148 onlyif mysql # use DIV operator for integer division query I rowsort label-5440 SELECT col1 + col2 DIV + 97 + col2 * + tab0.col0 FROM tab0 ---- 132 7389 878 skipif mysql # not compatible query I rowsort label-5440 SELECT col1 + col2 / + 97 + col2 * + tab0.col0 FROM tab0 ---- 132 7389 878 query I rowsort SELECT DISTINCT 97 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 97 onlyif mysql # use DIV operator for integer division query I rowsort label-5442 SELECT DISTINCT - 44 DIV cor0.col0 FROM tab2, tab1 AS cor0 ---- -14 0 skipif mysql # not compatible query I rowsort label-5442 SELECT DISTINCT - 44 / cor0.col0 FROM tab2, tab1 AS cor0 ---- -14 0 query I rowsort SELECT - 19 * col2 + + col1 * col1 + - cor0.col0 AS col0 FROM tab2 cor0 ---- -512 2909 441 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5444 SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5444 SELECT DISTINCT - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5445 SELECT ALL + col0 * ( - col1 ) + - CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -1422 -224 -4680 skipif mysql # not compatible query I rowsort label-5445 SELECT ALL + col0 * ( - col1 ) + - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT ALL - cor0.col0 + + col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT ALL + + ( 29 ) - col2 * col1 FROM tab1 AS cor0 ---- -1219 -1375 -541 query I rowsort SELECT + col0 - + col0 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT col1 + + tab1.col1 FROM tab1 ---- 20 26 52 query I rowsort SELECT DISTINCT + + col1 * + col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - ( + 93 ) FROM tab1 ---- -93 -93 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-5452 SELECT 58 DIV + col0 + + col1 FROM tab2 ---- 17 39 59 skipif mysql # not compatible query I rowsort label-5452 SELECT 58 / + col0 + + col1 FROM tab2 ---- 17 39 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5453 SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 61 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-5453 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 61 FROM tab1 ---- NULL query I rowsort SELECT DISTINCT - col2 * - 74 * col1 AS col2 FROM tab0 ---- 210012 552188 7178 query I rowsort SELECT - + ( - 14 ) AS col2 FROM tab2 AS cor0 ---- 14 14 14 query I rowsort SELECT DISTINCT ( col1 ) * col0 + col2 AS col2 FROM tab2 cor0 ---- 1381 244 4628 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5457 SELECT - CAST( NULL AS DECIMAL ) * tab2.col2 + - col0 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5457 SELECT - CAST ( NULL AS REAL ) * tab2.col2 + - col0 AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col1 + col0 * col1 AS col0 FROM tab1 ---- 104 1053 650 query I rowsort SELECT DISTINCT - 87 + - 41 FROM tab2, tab1 cor0 ---- -128 query I rowsort SELECT ALL col2 * ( col1 ) * col1 AS col2 FROM tab2 AS cor0 ---- 10982 25947 90506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5461 SELECT DISTINCT col1 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-5461 SELECT DISTINCT col1 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5462 SELECT ALL - col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5462 SELECT ALL - col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + col1 + + col0 * + col1 AS col0 FROM tab0 cor0 ---- 1978 3298 8008 query I rowsort SELECT ALL - + cor0.col1 * col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab1, tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT ALL - col2 * 89 FROM tab1 AS cor0 ---- -4806 -5073 -8544 query I rowsort SELECT DISTINCT + 64 * + 53 FROM tab2 AS cor0 ---- 3392 query I rowsort SELECT ALL - - 46 + 1 AS col1 FROM tab1 cor0 ---- 47 47 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + + 51 col0 FROM tab1 cor0 ---- -3 -45 -6 query I rowsort SELECT 95 * + tab2.col0 AS col1 FROM tab2 ---- 665 7410 7505 query I rowsort SELECT + 40 * 72 AS col0 FROM tab2 ---- 2880 2880 2880 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5472 SELECT ALL CAST( NULL AS SIGNED ) * 83 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5472 SELECT ALL CAST ( NULL AS INTEGER ) * 83 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT + col1 * + col0 + 80 * col1 FROM tab0 AS cor0 ---- 11155 15379 8944 onlyif mysql # use DIV operator for integer division query I rowsort label-5475 SELECT DISTINCT + col2 DIV col2 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-5475 SELECT DISTINCT + col2 / col2 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT + ( - col0 ) * - col2 FROM tab0 AS cor0 ---- 35 7298 792 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab1 cor0, tab2 cor1, tab1 cor2 ---- 972 values hashing to 4c0813b2179303fdf58f082d81d6d03c query I rowsort SELECT DISTINCT - 23 * + tab2.col1 FROM tab2, tab1, tab0 AS cor0 ---- -1357 -391 -713 query I rowsort SELECT ALL cor0.col2 + col1 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT - 53 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2876418587c77a182d88db2907b0a51a query I rowsort SELECT ALL + col0 * col0 * col1 FROM tab1 AS cor0 ---- 234 40960 83200 onlyif mysql # use DIV operator for integer division query I rowsort label-5482 SELECT DISTINCT - col1 DIV 84 AS col1 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-5482 SELECT DISTINCT - col1 / 84 AS col1 FROM tab0 AS cor0 ---- -1 query I rowsort SELECT ALL + col0 * 27 FROM tab2 AS cor0 ---- 189 2106 2133 query I rowsort SELECT - cor0.col0 * - col2 + 52 AS col2 FROM tab1 AS cor0 ---- 214 3700 7732 onlyif mysql # use DIV operator for integer division query I rowsort label-5485 SELECT - col2 DIV col1 AS col0 FROM tab2 cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-5485 SELECT - col2 / col1 AS col0 FROM tab2 cor0 ---- -2 0 0 query I rowsort SELECT 60 - - col1 AS col2 FROM tab0 ---- 146 151 157 query I rowsort SELECT 22 + + col0 * + col0 AS col2 FROM tab0 ---- 1247 598 7943 query I rowsort SELECT DISTINCT col1 * + tab2.col1 FROM tab2 ---- 289 3481 961 query I rowsort SELECT ALL + 61 AS col1 FROM tab0 ---- 61 61 61 query I rowsort SELECT - + cor0.col1 + - col1 * + 84 FROM tab2 cor0 ---- -1445 -2635 -5015 query I rowsort SELECT - 0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT + tab0.col0 * - col2 + col0 * - tab0.col0 FROM tab0 ---- -1260 -1368 -15219 query I rowsort SELECT - 89 * + col2 AS col1 FROM tab0 cor0 ---- -2937 -7298 -89 query I rowsort SELECT DISTINCT - - ( + col2 ) + - col0 * col0 + + col2 AS col0 FROM tab1 AS cor0 ---- -3982 -6208 99 onlyif mysql # use DIV operator for integer division query I rowsort label-5495 SELECT ALL col1 DIV - col1 col2 FROM tab0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5495 SELECT ALL col1 / - col1 col2 FROM tab0 ---- -1 -1 -1 query I rowsort SELECT + 76 + col1 FROM tab0 AS cor0 ---- 162 167 173 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 83 + col2 col2 FROM tab2 AS cor0 ---- 109 110 121 query I rowsort SELECT + col0 * col2 + - col1 AS col0 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT - col2 * + cor0.col2 * col2 + + 56 FROM tab2 AS cor0 ---- -17520 -19627 -54816 query I rowsort SELECT ALL + col1 + 74 AS col1 FROM tab2 ---- 105 133 91 onlyif mysql # use DIV operator for integer division query I rowsort label-5501 SELECT ALL - col1 DIV - col0 + - col1 AS col0 FROM tab2 ---- -17 -27 -59 skipif mysql # not compatible query I rowsort label-5501 SELECT ALL - col1 / - col0 + - col1 AS col0 FROM tab2 ---- -17 -27 -59 query I rowsort SELECT col2 * 73 AS col1 FROM tab1 ---- 3942 4161 7008 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5503 SELECT + - CAST( 39 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 504d14939d58aeb4a14f31c80de5b53e skipif mysql # not compatible query I rowsort label-5503 SELECT + - CAST ( 39 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 504d14939d58aeb4a14f31c80de5b53e skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 60 col2 FROM tab2 ---- 60 60 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5505 SELECT cor0.col0 + + col1 * - CAST( 91 AS SIGNED ) FROM tab1 AS cor0 ---- -1103 -2363 -846 skipif mysql # not compatible query I rowsort label-5505 SELECT cor0.col0 + + col1 * - CAST ( 91 AS INTEGER ) FROM tab1 AS cor0 ---- -1103 -2363 -846 query I rowsort SELECT DISTINCT - 57 + col2 * ( - col0 ) FROM tab0 AS cor0 ---- -7355 -849 -92 query I rowsort SELECT ALL - 58 - col1 * - 93 AS col0 FROM tab1 AS cor0 ---- 1151 2360 872 query I rowsort SELECT DISTINCT + + col1 * cor0.col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT col1 - col2 * + col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT ALL + ( cor0.col1 ) * col0 AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - cor1.col0 FROM tab2, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT ALL + 46 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 31818c9d4d325eb248735c97cb1dce39 query I rowsort SELECT ALL + - col2 * 4 AS col2 FROM tab0 AS cor0 ---- -132 -328 -4 query I rowsort SELECT DISTINCT + 29 * 16 + + col1 FROM tab1 AS cor0 ---- 474 477 490 query I rowsort SELECT + col0 * 48 FROM tab1 AS cor0 ---- 144 3072 3840 query I rowsort SELECT ( + 40 ) * col2 * col1 AS col0 FROM tab1 ---- 22800 49920 56160 query I rowsort SELECT DISTINCT - 40 FROM tab0, tab0 AS cor0 ---- -40 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5518 SELECT CAST( - col0 AS SIGNED ) + - col2 AS col1 FROM tab2 ---- -104 -117 -34 skipif mysql # not compatible query I rowsort label-5518 SELECT CAST ( - col0 AS INTEGER ) + - col2 AS col1 FROM tab2 ---- -104 -117 -34 onlyif mysql # use DIV operator for integer division query I rowsort label-5519 SELECT DISTINCT + 25 * col1 - col0 DIV col0 col0 FROM tab2 ---- 1474 424 774 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5519 SELECT DISTINCT + 25 * col1 - col0 / col0 col0 FROM tab2 ---- 1474 424 774 query I rowsort SELECT + col0 + col1 * col1 + col0 FROM tab1 AS cor0 ---- 228 329 682 query I rowsort SELECT DISTINCT + - 25 AS col1 FROM tab0 AS cor0 ---- -25 onlyif mysql # use DIV operator for integer division query I rowsort label-5522 SELECT DISTINCT - - 5 DIV col1 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5522 SELECT DISTINCT - - 5 / col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL col2 + + col1 AS col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT - - col0 + + col0 + col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 7444 8459 9479 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5525 SELECT - CAST( + ( - col2 ) * col1 AS SIGNED ) FROM tab0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-5525 SELECT - CAST ( + ( - col2 ) * col1 AS INTEGER ) FROM tab0 ---- 2838 7462 97 query I rowsort SELECT 40 * + 30 * col2 + + tab1.col2 + + col2 FROM tab1 ---- 115392 64908 68514 onlyif mysql # use DIV operator for integer division query I rowsort label-5527 SELECT col2 DIV 79 AS col1 FROM tab1 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5527 SELECT col2 / 79 AS col1 FROM tab1 ---- 0 0 1 query I rowsort SELECT ALL - col2 + col1 + - col1 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT - - col0 * col1 AS col0 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL - 65 * - tab0.col1 AS col1 FROM tab0 ---- 5590 5915 6305 query I rowsort SELECT - 53 FROM tab1 ---- -53 -53 -53 query I rowsort SELECT DISTINCT - + col1 * col1 * + col0 + cor0.col1 AS col0 FROM tab0 cor0 ---- -177418 -329218 -736918 query I rowsort SELECT ALL - - cor0.col0 + + ( - col0 ) - - col1 * - col0 AS col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT + - col1 * - 13 FROM tab0 AS cor0 ---- 1118 1183 1261 query I rowsort SELECT ALL + + cor0.col2 * - ( + col2 ) - - cor0.col0 * + col2 FROM tab1 AS cor0 ---- -1536 -2754 399 query I rowsort SELECT ALL - col1 * col2 * col0 - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -3492 -664209 -68198 query I rowsort SELECT + cor0.col1 * cor0.col2 * - 98 FROM tab0 AS cor0 ---- -278124 -731276 -9506 query I rowsort SELECT ALL - 31 * col0 FROM tab0 ---- -1085 -2759 -744 query I rowsort SELECT - cor0.col2 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * + ( 50 ) col0 FROM tab0 AS cor0 ---- 1200 1750 4450 query I rowsort SELECT ALL + + col2 * - 93 FROM tab1 AS cor0 ---- -5022 -5301 -8928 onlyif mysql # use DIV operator for integer division query I rowsort label-5542 SELECT - tab2.col2 DIV tab2.col1 + + col2 FROM tab2 ---- 26 27 36 skipif mysql # not compatible query I rowsort label-5542 SELECT - tab2.col2 / tab2.col1 + + col2 FROM tab2 ---- 26 27 36 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col0 col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT - tab2.col2 + col1 * col2 AS col2 FROM tab2 ---- 1508 608 810 query I rowsort SELECT ALL - col2 * - tab2.col0 AS col2 FROM tab2 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-5546 SELECT DISTINCT col1 DIV tab1.col0 FROM tab1 ---- 0 8 skipif mysql # not compatible query I rowsort label-5546 SELECT DISTINCT col1 / tab1.col0 FROM tab1 ---- 0 8 query III rowsort SELECT * FROM tab0 WHERE NOT NULL IN ( + col1 ) AND NOT ( NULL ) >= - col1 * col1 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-5548 SELECT DISTINCT tab0.col2 DIV col2 AS col1 FROM tab0 ---- 1 skipif mysql # not compatible query I rowsort label-5548 SELECT DISTINCT tab0.col2 / col2 AS col1 FROM tab0 ---- 1 query I rowsort SELECT ALL + tab1.col2 * col2 AS col1 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT ALL + col1 * col0 + + col1 AS col0 FROM tab0 cor0 ---- 2150 3492 8190 query I rowsort SELECT ALL - col2 + + col2 * + cor0.col2 FROM tab0 cor0 ---- 0 1056 6642 query I rowsort SELECT DISTINCT - + col1 * + col2 + + col0 * - col0 AS col0 FROM tab0 AS cor0 ---- -1322 -15383 -3414 query I rowsort SELECT DISTINCT col2 + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT - + col2 * + col2 * col0 FROM tab0 AS cor0 ---- -26136 -35 -598436 query I rowsort SELECT + - col1 + + cor0.col2 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL - + col0 * - col0 * col2 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT DISTINCT + col0 + + col0 * col2 FROM tab0 ---- 70 7387 816 query I rowsort SELECT ALL - + 68 + - col1 FROM tab1 cor0 ---- -78 -81 -94 query I rowsort SELECT DISTINCT - 31 AS col1 FROM tab1 AS cor0 ---- -31 onlyif mysql # use DIV operator for integer division query I rowsort label-5560 SELECT + 17 DIV - col2 + col2 + col2 AS col0 FROM tab0 AS cor0 ---- -15 164 66 skipif mysql # not compatible query I rowsort label-5560 SELECT + 17 / - col2 + col2 + col2 AS col0 FROM tab0 AS cor0 ---- -15 164 66 query I rowsort SELECT DISTINCT - cor0.col0 + cor0.col1 * col0 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT col1 * col2 * col2 + cor0.col0 * col2 + + cor0.col2 FROM tab1 AS cor0 ---- 127584 36195 76032 query I rowsort SELECT - col2 * cor0.col1 + - col0 + + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0 ---- -14849 -167 -3654 query I rowsort SELECT - 73 * + col1 AS col0 FROM tab2 AS cor0 ---- -1241 -2263 -4307 query I rowsort SELECT DISTINCT + col2 * - col2 + col0 AS col2 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT + + cor0.col2 + + cor0.col0 * col1 AS col2 FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT DISTINCT + col0 * + col2 + - col0 + col0 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT - - col2 + - col1 AS col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT cor0.col1 + + cor0.col1 + col1 * + col2 FROM tab1 AS cor0 ---- 1274 1456 590 query IIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL <> NULL ---- query I rowsort SELECT DISTINCT 85 + + col0 * tab1.col0 FROM tab1 ---- 4181 6485 94 query I rowsort SELECT + + cor0.col1 * - col2 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 29 * col1 col2 FROM tab0 AS cor0 ---- 2494 2639 2813 query I rowsort SELECT - + 14 + + col1 AS col0 FROM tab1 AS cor0 ---- -1 -4 12 query I rowsort SELECT - 62 * tab1.col0 FROM tab1 ---- -186 -3968 -4960 onlyif mysql # use DIV operator for integer division query I rowsort label-5576 SELECT 66 + - ( + col1 ) DIV col0 AS col0 FROM tab0 ---- 63 64 65 skipif mysql # not compatible query I rowsort label-5576 SELECT 66 + - ( + col1 ) / col0 AS col0 FROM tab0 ---- 63 64 65 query I rowsort SELECT DISTINCT + 11 AS col2 FROM tab0 AS cor0 ---- 11 query I rowsort SELECT ALL - + cor0.col0 + + col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT - - col1 + col2 * + ( - col0 ) FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT ALL - - col2 + + col0 AS col0 FROM tab1 cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-5581 SELECT - tab2.col0 DIV + 43 AS col2 FROM tab2 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-5581 SELECT - tab2.col0 / + 43 AS col2 FROM tab2 ---- -1 -1 0 query I rowsort SELECT DISTINCT - 11 FROM tab0, tab0 AS cor0 ---- -11 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2 ---- 972 values hashing to e84152c0bf436177d3b3d80e42832d4f query I rowsort SELECT DISTINCT - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- -17 -31 -59 query I rowsort SELECT DISTINCT tab1.col0 + + tab1.col1 AS col0 FROM tab1 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-5586 SELECT ALL col0 * ( - 34 ) DIV col1 + - col1 + col2 AS col0 FROM tab0 ---- -108 -42 -62 skipif mysql # not compatible query I rowsort label-5586 SELECT ALL col0 * ( - 34 ) / col1 + - col1 + col2 AS col0 FROM tab0 ---- -108 -42 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + ( - col2 ) * - col0 col2 FROM tab1 AS cor0 ---- 188 3658 7693 onlyif mysql # use DIV operator for integer division query I rowsort label-5588 SELECT DISTINCT + ( + cor0.col2 ) DIV - cor0.col0 FROM tab0 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-5588 SELECT DISTINCT + ( + cor0.col2 ) / - cor0.col0 FROM tab0 AS cor0 ---- -1 0 query I rowsort SELECT + 24 + - cor0.col1 FROM tab1 AS cor0 ---- -2 11 14 query I rowsort SELECT DISTINCT cor0.col0 * col2 * col0 AS col1 FROM tab0 AS cor0 ---- 1225 19008 649522 query I rowsort SELECT - tab2.col2 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 onlyif mysql # use DIV operator for integer division query I rowsort label-5592 SELECT ALL 62 DIV col1 FROM tab2 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-5592 SELECT ALL 62 / col1 FROM tab2 ---- 1 2 3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5593 SELECT + + CAST( NULL AS SIGNED ) + - col1 * - col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5593 SELECT + + CAST ( NULL AS INTEGER ) + - col1 * - col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 + col2 col2 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT + + 41 * 2 * cor0.col2 + - col0 * 53 + col0 AS col0 FROM tab1 AS cor0 ---- 1346 3712 4272 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5596 SELECT + CAST( - col1 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0 ---- -289 -3481 -961 skipif mysql # not compatible query I rowsort label-5596 SELECT + CAST ( - col1 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT - 5 + col1 AS col2 FROM tab2 AS cor0 ---- 12 26 54 query I rowsort SELECT col1 * col2 + 86 + 52 FROM tab2 cor0 ---- 1672 784 975 query I rowsort SELECT ( - col0 ) * + 29 + 30 + col0 AS col1 FROM tab0 AS cor0 ---- -2462 -642 -950 query I rowsort SELECT - + col2 + - col1 AS col0 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT cor0.col2 * - col2 AS col1 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT ALL - col1 + col1 * ( - 38 ) AS col1 FROM tab0 AS cor0 ---- -3354 -3549 -3783 query I rowsort SELECT - + col0 - col0 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT 70 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 query I rowsort SELECT + col1 + - ( 38 ) FROM tab2 AS cor0 ---- -21 -7 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col2 col2 FROM tab2 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-5607 SELECT DISTINCT col1 DIV + 71 FROM tab0 ---- 1 skipif mysql # not compatible query I rowsort label-5607 SELECT DISTINCT col1 / + 71 FROM tab0 ---- 1 query I rowsort SELECT - col2 * - 91 + col2 - cor0.col1 FROM tab1 AS cor0 ---- 4942 5234 8819 query I rowsort SELECT ALL - 30 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to a96370a8187089b6b83ce9bfbade5142 query I rowsort SELECT + 86 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4 query I rowsort SELECT - col1 + ( col0 ) AS col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT col2 * 15 * - col1 + + col1 AS col2 FROM tab1 AS cor0 ---- -18707 -21034 -8540 onlyif mysql # use DIV operator for integer division query I rowsort label-5613 SELECT - 15 * col0 - col0 DIV - cor0.col1 FROM tab2 AS cor0 ---- -105 -1169 -1181 skipif mysql # not compatible query I rowsort label-5613 SELECT - 15 * col0 - col0 / - cor0.col1 FROM tab2 AS cor0 ---- -105 -1169 -1181 onlyif mysql # use DIV operator for integer division query I rowsort label-5614 SELECT ALL + col0 + + col0 DIV - 46 AS col2 FROM tab1 ---- 3 63 79 skipif mysql # not compatible query I rowsort label-5614 SELECT ALL + col0 + + col0 / - 46 AS col2 FROM tab1 ---- 3 63 79 query I rowsort SELECT DISTINCT 28 * ( col2 ) AS col0 FROM tab2 AS cor0 ---- 1064 728 756 query I rowsort SELECT - cor0.col1 + + col2 * col1 * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -3492 -664209 -68198 query I rowsort SELECT col1 - col1 * col2 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT - ( + col1 ) * col1 * col0 FROM tab1 AS cor0 ---- -13520 -2028 -6400 onlyif mysql # use DIV operator for integer division query I rowsort label-5619 SELECT + col1 DIV + 98 FROM tab2 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5619 SELECT + col1 / + 98 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT ALL + 63 FROM tab0, tab1 AS cor0 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 query I rowsort SELECT ALL - 26 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 47d0574274146de273829785364ada39 query I rowsort SELECT ALL + col1 + ( - col1 ) + + col1 * - col0 AS col0 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - 76 AS col1 FROM tab2, tab2 cor0 ---- -76 onlyif mysql # use DIV operator for integer division query I rowsort label-5624 SELECT ALL - - 52 DIV + col0 AS col1 FROM tab1 AS cor0 ---- 0 0 17 skipif mysql # not compatible query I rowsort label-5624 SELECT ALL - - 52 / + col0 AS col1 FROM tab1 AS cor0 ---- 0 0 17 query I rowsort SELECT DISTINCT + - col2 * - col1 AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-5626 SELECT + ( - col2 ) DIV col2 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5626 SELECT + ( - col2 ) / col2 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-5627 SELECT DISTINCT + + col1 DIV 97 AS col1 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5627 SELECT DISTINCT + + col1 / 97 AS col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT col0 + col2 - cor0.col0 AS col2 FROM tab1 AS cor0 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-5629 SELECT 0 DIV + col0 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5629 SELECT 0 / + col0 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + cor0.col2 * + cor0.col1 col1 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT + col2 + ( + col0 ) FROM tab1 ---- 121 176 57 query I rowsort SELECT + tab1.col2 + ( col2 ) FROM tab1 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-5633 SELECT + tab1.col0 * + 86 - 31 DIV col1 AS col2 FROM tab1 ---- 257 5501 6878 skipif mysql # not compatible query I rowsort label-5633 SELECT + tab1.col0 * + 86 - 31 / col1 AS col2 FROM tab1 ---- 257 5501 6878 query I rowsort SELECT ALL col1 * col0 * + col1 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT - + col2 + + col2 AS col2 FROM tab0 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 85 - - col2 col1 FROM tab0 cor0 ---- -3 -52 -84 query I rowsort SELECT DISTINCT + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT col1 * - col2 + col1 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT 38 + + col1 * 24 AS col0 FROM tab0 AS cor0 ---- 2102 2222 2366 query I rowsort SELECT + col1 * col0 + col1 FROM tab1 cor0 ---- 104 1053 650 query I rowsort SELECT DISTINCT ( + 35 ) AS col0 FROM tab1 ---- 35 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5642 SELECT + col2 * - col1 + CAST( NULL AS SIGNED ) * - 63 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5642 SELECT + col2 * - col1 + CAST ( NULL AS INTEGER ) * - 63 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + ( col2 ) + col1 * - col0 FROM tab0 AS cor0 ---- -2031 -3394 -8017 onlyif mysql # use DIV operator for integer division query I rowsort label-5644 SELECT DISTINCT cor0.col1 DIV - col0 FROM tab0 cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-5644 SELECT DISTINCT cor0.col1 / - col0 FROM tab0 cor0 ---- -1 -2 -3 query I rowsort SELECT DISTINCT col2 * col0 + + col1 * 73 AS col1 FROM tab2 ---- 2452 4243 6335 query I rowsort SELECT DISTINCT + col2 * + col1 + + col0 FROM tab2 AS cor0 ---- 1612 725 844 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + 49 ) col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 49 query I rowsort SELECT - 23 AS col0 FROM tab0 ---- -23 -23 -23 query I rowsort SELECT + ( + cor0.col0 ) AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + 33 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5651 SELECT DISTINCT + col0 + + col2 * CAST( NULL AS SIGNED ) * + col1 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-5651 SELECT DISTINCT + col0 + + col2 * CAST ( NULL AS INTEGER ) * + col1 FROM tab2 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5652 SELECT col2 * - CAST( NULL AS SIGNED ) + - 65 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5652 SELECT col2 * - CAST ( NULL AS INTEGER ) + - 65 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5653 SELECT ALL col1 + - tab2.col0 * CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5653 SELECT ALL col1 + - tab2.col0 * CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + 85 - - col0 FROM tab0 ---- 109 120 174 query I rowsort SELECT ALL + cor0.col1 * + 81 + - cor0.col0 + + col2 AS col0 FROM tab2 AS cor0 ---- 1336 2531 4727 query I rowsort SELECT DISTINCT col2 * 41 - cor0.col2 FROM tab2 AS cor0 ---- 1040 1080 1520 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 + + cor0.col2 col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT col1 * + 5 FROM tab2 AS cor0 ---- 155 295 85 query I rowsort SELECT ALL - - cor0.col2 - - 26 FROM tab0 AS cor0 ---- 108 27 59 query I rowsort SELECT ALL - tab0.col0 * col1 + col1 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT - - 16 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc query I rowsort SELECT ALL + 58 + + tab0.col0 + - ( - col2 ) AS col0 FROM tab0 ---- 115 229 94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5663 SELECT DISTINCT CAST( 71 AS SIGNED ) FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 71 skipif mysql # not compatible query I rowsort label-5663 SELECT DISTINCT CAST ( 71 AS INTEGER ) FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 71 onlyif mysql # use DIV operator for integer division query I rowsort label-5664 SELECT DISTINCT - 63 DIV 1 AS col2 FROM tab2, tab0 cor0, tab0, tab0 AS cor1 ---- -63 skipif mysql # not compatible query I rowsort label-5664 SELECT DISTINCT - 63 / 1 AS col2 FROM tab2, tab0 cor0, tab0, tab0 AS cor1 ---- -63 query I rowsort SELECT ALL 36 FROM tab0, tab1 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 query I rowsort SELECT ALL + + col1 * - 29 + + cor0.col2 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- -177 -62 153 query I rowsort SELECT + col2 + 97 FROM tab0 AS cor0 ---- 130 179 98 onlyif mysql # use DIV operator for integer division query I rowsort label-5668 SELECT DISTINCT col1 DIV 84 + 32 FROM tab0 AS cor0 ---- 33 skipif mysql # not compatible query I rowsort label-5668 SELECT DISTINCT col1 / 84 + 32 FROM tab0 AS cor0 ---- 33 query I rowsort SELECT DISTINCT - + cor0.col1 * ( col0 * - col0 ) AS col1 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT DISTINCT + col1 + 36 FROM tab1 AS cor0 ---- 46 49 62 query I rowsort SELECT ALL - + cor0.col0 + - col1 * + cor0.col0 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT DISTINCT - col1 * 28 + col1 AS col1 FROM tab2 cor0 ---- -1593 -459 -837 query I rowsort SELECT ALL + col0 + - 72 * col2 FROM tab2 AS cor0 ---- -1794 -1937 -2657 query I rowsort SELECT DISTINCT + 69 FROM tab2, tab1 cor0 ---- 69 query I rowsort SELECT + 43 * - 5 - + col1 FROM tab1 AS cor0 ---- -225 -228 -241 onlyif mysql # use DIV operator for integer division query I rowsort label-5676 SELECT ALL 55 DIV 44 AS col1 FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5676 SELECT ALL 55 / 44 AS col1 FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT - ( col1 ) * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT + 13 * 28 AS col1 FROM tab2 AS cor0 ---- 364 onlyif mysql # use DIV operator for integer division query I rowsort label-5679 SELECT ( tab1.col0 + - col2 ) DIV ( + col1 ) FROM tab1 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-5679 SELECT ( tab1.col0 + - col2 ) / ( + col1 ) FROM tab1 ---- -1 -1 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5680 SELECT + col0 DIV 54 + col2 * + cor0.col0 * col0 FROM tab0 AS cor0 ---- 1225 19008 649523 skipif mysql # not compatible query I rowsort label-5680 SELECT + col0 / 54 + col2 * + cor0.col0 * col0 FROM tab0 AS cor0 ---- 1225 19008 649523 query I rowsort SELECT DISTINCT - + col1 * - cor0.col2 * + 54 FROM tab1 cor0 ---- 30780 67392 75816 query I rowsort SELECT + + col1 + col1 + 15 * col2 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- 138266 43792 48755 query I rowsort SELECT ALL + - col0 * cor0.col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - + 10 + cor0.col1 FROM tab2 AS cor0 ---- 21 49 7 query I rowsort SELECT 99 + + col2 AS col0 FROM tab1 ---- 153 156 195 query I rowsort SELECT DISTINCT + col1 * cor0.col2 + col0 FROM tab1 cor0 ---- 1328 1407 634 query I rowsort SELECT ALL 99 * + col2 AS col2 FROM tab2 AS cor0 ---- 2574 2673 3762 query I rowsort SELECT - - 75 * - col1 FROM tab2 cor0 ---- -1275 -2325 -4425 onlyif mysql # use DIV operator for integer division query I rowsort label-5689 SELECT + - col1 DIV col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5689 SELECT + - col1 / col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - - cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT - col0 + col0 + ( + 68 ) AS col1 FROM tab2 cor0 ---- 68 68 68 query I rowsort SELECT col2 - col0 AS col1 FROM tab0 WHERE NOT - col1 BETWEEN ( NULL ) AND ( NULL ) ---- query I rowsort SELECT DISTINCT + col1 + col1 * col0 + col0 FROM tab1 ---- 107 1133 714 query I rowsort SELECT ALL col0 + col0 + - col1 FROM tab1 ---- -20 118 147 query I rowsort SELECT ALL + col2 * + col1 AS col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT + tab1.col2 FROM tab1 WHERE ( - col1 ) <= NULL ---- query I rowsort SELECT DISTINCT col0 * col2 + - col0 * + col2 AS col2 FROM tab2 ---- 0 query I rowsort SELECT col1 * + col2 + + tab0.col0 * col2 AS col2 FROM tab0 ---- 132 14760 3630 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * col0 * tab2.col1 + + col1 col2 FROM tab2 ---- 106114 1550 359015 query I rowsort SELECT + col1 + col1 + + col2 * col1 AS col0 FROM tab2 ---- 1652 680 899 query I rowsort SELECT ALL - col2 * + col0 * - col0 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT - col1 + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( + col1 ) ---- query I rowsort SELECT ALL - col1 + + tab1.col0 FROM tab1 ---- -23 54 67 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col2 + col1 ) ---- query I rowsort SELECT - col0 * + col2 + + tab2.col1 - col1 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT col2 * + col2 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col1 ) ---- query I rowsort SELECT tab1.col1 * - col1 AS col1 FROM tab1 ---- -100 -169 -676 query III rowsort SELECT * FROM tab2 WHERE NULL IN ( col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-5709 SELECT DISTINCT + col2 * col0 + + tab1.col0 DIV - col2 + col1 AS col2 FROM tab1 ---- 188 3657 7693 skipif mysql # not compatible query I rowsort label-5709 SELECT DISTINCT + col2 * col0 + + tab1.col0 / - col2 + col1 AS col2 FROM tab1 ---- 188 3657 7693 query I rowsort SELECT tab0.col2 + + col2 * col1 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT - col1 + - tab2.col0 * - col0 * - col2 + col0 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT + 61 + - col1 AS col1 FROM tab1 AS cor0 ---- 35 48 51 query I rowsort SELECT ALL + col1 + + tab0.col1 FROM tab0 WHERE - tab0.col1 <> NULL ---- query I rowsort SELECT DISTINCT + col2 + + col2 * col2 * + col1 FROM tab2 ---- 22626 24586 39910 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 col1 FROM tab1 WHERE NOT col2 * col0 = NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-5716 SELECT col2 + + tab1.col2 DIV col0 FROM tab1 ---- 57 72 97 skipif mysql # not compatible query I rowsort label-5716 SELECT col2 + + tab1.col2 / col0 FROM tab1 ---- 57 72 97 query I rowsort SELECT DISTINCT col0 * - tab0.col0 + - col1 * col1 FROM tab0 ---- -10634 -16202 -7972 query I rowsort SELECT ALL col2 * col2 + col2 AS col2 FROM tab2 ---- 1482 702 756 query I rowsort SELECT ALL + col1 + - col0 AS col0 FROM tab1 ---- -54 -67 23 query I rowsort SELECT + col1 * col1 + col0 AS col0 FROM tab0 AS cor0 ---- 7420 8370 9444 query I rowsort SELECT + col0 * col2 + + col1 FROM tab1 AS cor0 ---- 188 3658 7693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 onlyif mysql # use DIV operator for integer division query I rowsort label-5723 SELECT col1 * col0 DIV + col2 + + col0 * col0 AS col2 FROM tab0 ---- 4620 638 8019 skipif mysql # not compatible query I rowsort label-5723 SELECT col1 * col0 / + col2 + + col0 * col0 AS col2 FROM tab0 ---- 4620 638 8019 query I rowsort SELECT DISTINCT - cor0.col1 FROM tab0 cor0 CROSS JOIN tab1 ---- -86 -91 -97 query I rowsort SELECT + col2 * tab2.col0 AS col1 FROM tab2 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-5726 SELECT ALL col0 DIV col0 + + col2 DIV col0 col1 FROM tab2 ---- 1 1 4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5726 SELECT ALL col0 / col0 + + col2 / col0 col1 FROM tab2 ---- 1 1 4 query I rowsort SELECT ALL col0 + tab1.col2 AS col1 FROM tab1 ---- 121 176 57 query I rowsort SELECT ALL tab2.col1 - + col2 * + col0 * - col0 FROM tab2 ---- 1354 158243 237175 query I rowsort SELECT DISTINCT col2 * + col1 + col0 FROM tab2 ---- 1612 725 844 query I rowsort SELECT - tab0.col2 + + tab0.col2 * col2 AS col2 FROM tab0 ---- 0 1056 6642 query I rowsort SELECT DISTINCT + col1 * + col0 AS col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT ALL col2 + + col2 AS col0 FROM tab1 ---- 108 114 192 query I rowsort SELECT tab1.col0 * col2 * col0 + col0 * + tab1.col0 AS col1 FROM tab1 ---- 237568 495 620800 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN NULL AND NULL ---- query I rowsort SELECT + col2 AS col2 FROM tab1 cor0 WHERE col1 * - col2 * col2 NOT BETWEEN + col2 AND - col2 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-5736 SELECT DISTINCT - tab1.col2 * col0 DIV col2 - col2 FROM tab1 ---- -121 -176 -57 skipif mysql # not compatible query I rowsort label-5736 SELECT DISTINCT - tab1.col2 * col0 / col2 - col2 FROM tab1 ---- -121 -176 -57 query I rowsort SELECT ALL - col2 * + col2 + col2 + col1 FROM tab2 AS cor0 ---- -1389 -591 -671 query I rowsort SELECT DISTINCT - 56 * + 89 AS col0 FROM tab1, tab2 cor0 ---- -4984 query I rowsort SELECT ALL - 71 AS col1 FROM tab1, tab2 cor0 ---- 9 values hashing to e72f95c346714d3065a96d67a6fd5062 query I rowsort SELECT 82 FROM tab2, tab0 AS cor0 ---- 9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c query I rowsort SELECT + - cor0.col1 * col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - 77 * - col1 FROM tab1 ---- 1001 2002 770 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 * - col2 col2 FROM tab2 AS cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab0.col1 col2 FROM tab0, tab0 AS cor0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5745 SELECT ALL - CAST( NULL AS DECIMAL ) - col2 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5745 SELECT ALL - CAST ( NULL AS REAL ) - col2 AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL + 45 * - col1 * - col0 - ( 79 * + col2 ) FROM tab0 ---- 152696 357977 90273 query I rowsort SELECT - - ( cor0.col1 ) + - col0 FROM tab2 AS cor0 ---- -19 -62 24 skipif mysql # not compatible query I rowsort SELECT - CAST ( - col1 AS REAL ) FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + - 91 * ( col0 ) FROM tab2 AS cor0 ---- -637 -7098 -7189 query I rowsort SELECT 74 * - cor0.col2 FROM tab2 cor0 ---- -1924 -1998 -2812 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 34 col0 FROM tab2 ---- 34 34 34 query I rowsort SELECT ALL - col2 * col1 + cor0.col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT - + col1 + 32 * + 24 FROM tab1 AS cor0 ---- 742 755 758 query I rowsort SELECT col2 * col0 * col2 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT + col1 * 31 * col1 FROM tab1 AS cor0 ---- 20956 3100 5239 query I rowsort SELECT + - col0 * ( col1 + - col1 ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 71 + cor0.col1 AS col0 FROM tab1, tab0, tab0 AS cor0 ---- 157 162 168 query I rowsort SELECT + + col0 + col1 AS col2 FROM tab0 AS cor0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 22 + + ( tab2.col2 ) col2 FROM tab2 ---- 48 49 60 query I rowsort SELECT ALL + 45 + col0 AS col0 FROM tab1 AS cor0 ---- 109 125 48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 - col1 col0 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT ALL + col0 + + col1 * ( col0 ) FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT DISTINCT - + col2 + + col1 - - cor0.col0 FROM tab1 AS cor0 ---- -25 -3 17 query I rowsort SELECT 61 + + col1 AS col0 FROM tab0 ---- 147 152 158 query I rowsort SELECT - col0 + - col1 AS col1 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT + tab1.col0 + col1 * - tab1.col0 * col2 FROM tab1 ---- -36416 -4209 -99760 onlyif mysql # use DIV operator for integer division query I rowsort label-5767 SELECT col0 DIV + col2 + + col0 AS col0 FROM tab1 ---- 3 65 80 skipif mysql # not compatible query I rowsort label-5767 SELECT col0 / + col2 + + col0 AS col0 FROM tab1 ---- 3 65 80 query I rowsort SELECT ALL - cor0.col2 * + col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL 12 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6 onlyif mysql # use DIV operator for integer division query I rowsort label-5770 SELECT ALL + 60 DIV - col1 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5770 SELECT ALL + 60 / - col1 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5771 SELECT + tab0.col2 DIV - col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5771 SELECT + tab0.col2 / - col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT 31 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 31 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - 74 ) col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 5a567947d14593676e3825756f8e6130 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab1 cor0, tab0 AS cor1, tab1 cor2 ---- 972 values hashing to 0a9194f200a4220e419d35c461f9fcfe query I rowsort SELECT - col0 + 71 AS col1 FROM tab2 AS cor0 ---- -7 -8 64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * + ( + col0 * col2 ) col0 FROM tab1 AS cor0 ---- -207936 -737280 -8748 query I rowsort SELECT DISTINCT - + col1 + col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT cor0.col0 * - 65 FROM tab0 AS cor0 ---- -1560 -2275 -5785 query I rowsort SELECT DISTINCT + 89 FROM tab0, tab2 AS cor0 ---- 89 onlyif mysql # use DIV operator for integer division query I rowsort label-5780 SELECT DISTINCT - col1 + + 47 DIV col1 AS col2 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-5780 SELECT DISTINCT - col1 + + 47 / col1 AS col2 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT col2 * - col0 + - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -132 -7389 -878 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5782 SELECT DISTINCT - - CAST( col2 AS SIGNED ) * - col1 + - col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 skipif mysql # not compatible query I rowsort label-5782 SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * - col1 + - col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT DISTINCT 39 * 22 AS col0 FROM tab0 AS cor0 ---- 858 query I rowsort SELECT + - ( + col0 ) * col1 + 16 AS col1 FROM tab2 cor0 ---- -1327 -201 -4586 onlyif mysql # use DIV operator for integer division query I rowsort label-5785 SELECT - CAST( - col2 AS SIGNED ) DIV col1 + 34 DIV col0 AS col2 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5785 SELECT - CAST ( - col2 AS INTEGER ) / col1 + 34 / col0 AS col2 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT - 76 FROM tab2, tab1, tab2 AS cor0, tab0 ---- 81 values hashing to 30b3ee36c95bb84d1f6a640c4d41cf15 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 - - col2 col1 FROM tab0 ---- 171 36 57 query I rowsort SELECT DISTINCT col2 * col2 * + cor0.col2 FROM tab2 AS cor0 ---- 17576 19683 54872 onlyif mysql # use DIV operator for integer division query I rowsort label-5789 SELECT DISTINCT - tab2.col2 DIV tab2.col1 FROM tab2 ---- -2 0 skipif mysql # not compatible query I rowsort label-5789 SELECT DISTINCT - tab2.col2 / tab2.col1 FROM tab2 ---- -2 0 query I rowsort SELECT ALL + 8 + - tab1.col1 FROM tab1, tab2 cor0 ---- 9 values hashing to 55d5095749018f0d23567c1211b97c22 query I rowsort SELECT - - 14 + + 59 * col0 FROM tab0 cor0 ---- 1430 2079 5265 query I rowsort SELECT DISTINCT + cor0.col1 + - 73 FROM tab2 AS cor0 ---- -14 -42 -56 query I rowsort SELECT ALL - ( 57 ) + - col1 * col0 AS col2 FROM tab2 cor0 ---- -1400 -274 -4659 query I rowsort SELECT + - 67 * 30 * col2 AS col1 FROM tab2 cor0 ---- -52260 -54270 -76380 query I rowsort SELECT DISTINCT col2 + + 12 FROM tab1 AS cor0 ---- 108 66 69 query I rowsort SELECT - ( col0 ) * col2 + col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT + cor0.col0 * - col2 + - col0 + 20 AS col2 FROM tab2 cor0 ---- -176 -2086 -3061 query I rowsort SELECT ALL ( + 34 ) FROM tab2 AS cor0 ---- 34 34 34 query I rowsort SELECT ALL - tab1.col1 + + col0 * - col0 + - col0 FROM tab1 ---- -38 -4170 -6493 query I rowsort SELECT DISTINCT 78 AS col1 FROM tab0, tab1 AS cor0 ---- 78 query I rowsort SELECT col1 + - 73 FROM tab1 ---- -47 -60 -63 query I rowsort SELECT ALL + 3 * + 25 * col0 AS col2 FROM tab0 ---- 1800 2625 6675 onlyif mysql # use DIV operator for integer division query I rowsort label-5803 SELECT col1 * + col1 + + tab1.col0 DIV col0 + col2 FROM tab1 ---- 158 266 731 skipif mysql # not compatible query I rowsort label-5803 SELECT col1 * + col1 + + tab1.col0 / col0 + col2 FROM tab1 ---- 158 266 731 query I rowsort SELECT cor0.col2 + tab0.col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to fdd2f547b28e02db29f913671a199b7b query I rowsort SELECT ALL + col0 * - 22 + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -2049 -614 -867 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 - 72 col0 FROM tab1 AS cor0 ---- -15 -18 24 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5807 SELECT ALL + col2 + ( ( col2 ) ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5807 SELECT ALL + col2 + ( ( col2 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col1 * col2 + 62 FROM tab1 AS cor0 ---- 1310 1466 632 query I rowsort SELECT ALL col0 * 48 + + 42 * col1 FROM tab0 AS cor0 ---- 4764 5754 8094 query I rowsort SELECT ALL - - col0 + col1 * ( - col2 * 29 ) FROM tab1 AS cor0 ---- -16466 -36112 -40713 query I rowsort SELECT col0 + col0 * + ( col2 ) * tab1.col1 FROM tab1 ---- 36544 4215 99920 query I rowsort SELECT ALL - 33 AS col0 FROM tab1 ---- -33 -33 -33 query I rowsort SELECT DISTINCT + 66 * + col2 * - tab2.col1 AS col1 FROM tab2 ---- -101244 -42636 -55242 query I rowsort SELECT - col1 - + col1 * 73 AS col2 FROM tab1 ---- -1924 -740 -962 query I rowsort SELECT col1 * - col1 + + col2 FROM tab0 ---- -7363 -8199 -9408 query I rowsort SELECT ALL col1 + - col2 * col2 FROM tab2 ---- -1427 -617 -698 query I rowsort SELECT ALL + + col2 + - col1 AS col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT col2 + + col2 * + col2 FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT ALL + col1 * 0 * - ( col0 ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col2 + + 45 AS col1 FROM tab0 AS cor0 ---- 127 46 78 query I rowsort SELECT ALL + col1 + col1 * - col0 AS col2 FROM tab2 AS cor0 ---- -1326 -186 -4543 onlyif mysql # use DIV operator for integer division query I rowsort label-5822 SELECT ALL - col1 DIV - 91 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5822 SELECT ALL - col1 / - 91 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5823 SELECT ALL - col0 - ( col2 ) DIV col2 AS col0 FROM tab1 AS cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-5823 SELECT ALL - col0 - ( col2 ) / col2 AS col0 FROM tab1 AS cor0 ---- -4 -65 -81 query I rowsort SELECT DISTINCT cor0.col2 + + ( + col1 ) * cor0.col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT 27 * - col2 FROM tab0 ---- -2214 -27 -891 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 62 * col1 col1 FROM tab1 ---- 1612 620 806 onlyif mysql # use DIV operator for integer division query I rowsort label-5827 SELECT ALL col2 DIV col1 + 5 AS col2 FROM tab0 ---- 5 5 5 skipif mysql # not compatible query I rowsort label-5827 SELECT ALL col2 / col1 + 5 AS col2 FROM tab0 ---- 5 5 5 query I rowsort SELECT + 15 + + col0 - 92 FROM tab0 cor0 ---- -42 -53 12 onlyif mysql # use DIV operator for integer division query I rowsort label-5829 SELECT + + cor0.col1 DIV cor0.col0 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-5829 SELECT + + cor0.col1 / cor0.col0 FROM tab2 AS cor0 ---- 0 0 4 query I rowsort SELECT + col0 * col2 * - 14 AS col0 FROM tab2 AS cor0 ---- -2646 -28392 -42028 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * tab1.col0 col0 FROM tab1 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 23 * tab0.col2 col0 FROM tab0 ---- -1886 -23 -759 query I rowsort SELECT DISTINCT - 32 * col2 FROM tab1 cor0 ---- -1728 -1824 -3072 query I rowsort SELECT - col2 + col2 * - 37 FROM tab0 AS cor0 ---- -1254 -3116 -38 query I rowsort SELECT + col1 + col1 * 62 AS col1 FROM tab0 AS cor0 ---- 5418 5733 6111 query I rowsort SELECT cor0.col1 + + 25 AS col0 FROM tab0 AS cor0 ---- 111 116 122 query I rowsort SELECT + - col0 + ( + col0 ) * + col0 AS col0 FROM tab1 cor0 ---- 4032 6 6320 query I rowsort SELECT - + cor0.col2 + + 65 FROM tab0 AS cor0 ---- -17 32 64 onlyif mysql # use DIV operator for integer division query I rowsort label-5839 SELECT ALL col0 * col0 + + col2 DIV - col1 AS col1 FROM tab1 ---- 4091 6393 7 skipif mysql # not compatible query I rowsort label-5839 SELECT ALL col0 * col0 + + col2 / - col1 AS col1 FROM tab1 ---- 4091 6393 7 query I rowsort SELECT - + cor0.col0 * + cor0.col2 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - col2 + col0 * - col1 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT + + col1 * col2 * + col1 AS col1 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT cor0.col0 + - col2 * + cor0.col1 FROM tab2 AS cor0 ---- -1456 -567 -830 onlyif mysql # use DIV operator for integer division query I rowsort label-5844 SELECT ( col1 ) DIV + col1 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5844 SELECT ( col1 ) / + col1 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT - col2 * 48 AS col0 FROM tab1 AS cor0 ---- -2592 -2736 -4608 query I rowsort SELECT DISTINCT cor0.col2 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT ALL + - ( col2 ) * cor0.col2 AS col0 FROM tab2 AS cor0 ---- -1444 -676 -729 onlyif mysql # use DIV operator for integer division query I rowsort label-5848 SELECT DISTINCT col0 * - col2 DIV + col2 col1 FROM tab1 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5848 SELECT DISTINCT col0 * - col2 / + col2 col1 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT col1 * ( + col2 ) FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + + 84 * - ( cor0.col0 * + col2 ) + + 8 FROM tab2 AS cor0 ---- -15868 -170344 -252160 query I rowsort SELECT + ( ( col2 ) ) * col1 + col0 AS col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT + 22 * col2 + - 34 AS col0 FROM tab0 AS cor0 ---- -12 1770 692 query I rowsort SELECT - col0 + col1 - + 40 AS col0 FROM tab2 AS cor0 ---- -102 -16 -59 query I rowsort SELECT ALL 2 + + tab1.col1 AS col1 FROM tab1, tab1 cor0, tab2, tab2 AS cor1 ---- 81 values hashing to 8f9436a0356f164f03efe44982b32c29 query I rowsort SELECT DISTINCT + col0 * col0 * - col1 AS col2 FROM tab0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT 74 FROM tab0, tab1 cor0 ---- 74 query I rowsort SELECT ALL cor0.col2 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT + 61 * col1 FROM tab0 AS cor0 ---- 5246 5551 5917 onlyif mysql # use DIV operator for integer division query I rowsort label-5859 SELECT 78 DIV col1 FROM tab2 AS cor0 ---- 1 2 4 skipif mysql # not compatible query I rowsort label-5859 SELECT 78 / col1 FROM tab2 AS cor0 ---- 1 2 4 onlyif mysql # use DIV operator for integer division query I rowsort label-5860 SELECT col0 DIV - cor0.col1 FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-5860 SELECT col0 / - cor0.col1 FROM tab1 AS cor0 ---- -6 -6 0 query I rowsort SELECT ALL ( cor0.col0 ) * + col1 + col2 AS col0 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT DISTINCT 83 * col2 + ( col1 + - col0 ) FROM tab2 AS cor0 ---- 2139 2265 3092 query I rowsort SELECT ALL - + cor0.col1 + - cor0.col1 * + ( col1 ) + col0 * col0 AS col0 FROM tab2 cor0 ---- -943 2544 5935 query I rowsort SELECT DISTINCT - col0 - - col1 AS col0 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT ALL col2 + col0 + ( ( col1 ) ) AS col1 FROM tab1 AS cor0 ---- 131 189 83 query I rowsort SELECT ALL - 13 * - col1 AS col1 FROM tab1 ---- 130 169 338 query I rowsort SELECT + col1 * cor0.col1 + - 50 * col0 FROM tab2 AS cor0 ---- -3661 -419 611 query I rowsort SELECT col0 + + col0 * col0 * - col1 FROM tab2 ---- -106018 -1512 -358878 query I rowsort SELECT DISTINCT 33 + col1 FROM tab1 AS cor0 ---- 43 46 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + + ( col2 ) col2 FROM tab1 cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT 66 * col0 + + col0 + - ( - col1 + - cor0.col2 ) AS col1 FROM tab0 AS cor0 ---- 1727 2443 6136 query I rowsort SELECT DISTINCT + + 43 - + cor0.col2 AS col2 FROM tab2 cor0 ---- 16 17 5 query I rowsort SELECT ALL - 55 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to ac76841ceecd2311e80c621d15bacdd3 query I rowsort SELECT - col1 * + 85 - col2 AS col0 FROM tab0 ---- -7343 -7817 -8246 query I rowsort SELECT ALL ( + tab1.col2 + col1 ) AS col1 FROM tab1 ---- 109 67 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5876 SELECT CAST( NULL AS SIGNED ) + ( + col0 + + 52 ) * - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5876 SELECT CAST ( NULL AS INTEGER ) + ( + col0 + + 52 ) * - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( col0 ) col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT DISTINCT - col1 * - col2 * col1 - col1 AS col2 FROM tab0 AS cor0 ---- 243982 678951 9312 query I rowsort SELECT col0 * 84 + col0 * - col1 AS col1 FROM tab0 AS cor0 ---- -455 -48 -623 query I rowsort SELECT - - col2 * - ( col1 ) + + col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT ALL + + col2 + col2 * - col2 * col2 AS col2 FROM tab0 AS cor0 ---- -35904 -551286 0 query I rowsort SELECT col1 * ( 64 ) + + col1 FROM tab0 AS cor0 ---- 5590 5915 6305 onlyif mysql # use DIV operator for integer division query I rowsort label-5884 SELECT - col2 DIV - col1 + ( col2 ) * + col1 + + col0 AS col2 FROM tab1 ---- 1335 1409 639 skipif mysql # not compatible query I rowsort label-5884 SELECT - col2 / - col1 + ( col2 ) * + col1 + + col0 AS col2 FROM tab1 ---- 1335 1409 639 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5885 SELECT ALL col2 + - col1 * - col2 - col2 * col0 * - CAST( ( col2 ) AS SIGNED ) FROM tab0 ---- 133 29007 605980 skipif mysql # not compatible query I rowsort label-5885 SELECT ALL col2 + - col1 * - col2 - col2 * col0 * - CAST ( ( col2 ) AS INTEGER ) FROM tab0 ---- 133 29007 605980 query I rowsort SELECT ALL tab1.col0 + + col0 AS col0 FROM tab1 ---- 128 160 6 query I rowsort SELECT DISTINCT col2 + - 43 AS col2 FROM tab2 ---- -16 -17 -5 query I rowsort SELECT col2 * - ( + col2 ) * col1 + col2 AS col2 FROM tab2 ---- -22572 -24510 -39858 query I rowsort SELECT ALL 34 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT DISTINCT + col2 * + col0 * - col0 FROM tab1 ---- -233472 -486 -614400 onlyif mysql # use DIV operator for integer division query I rowsort label-5891 SELECT ( col2 ) + col0 DIV + 3 FROM tab2 ---- 29 52 64 skipif mysql # not compatible query I rowsort label-5891 SELECT ( col2 ) + col0 / + 3 FROM tab2 ---- 29 52 64 query I rowsort SELECT DISTINCT tab0.col1 + 75 AS col1 FROM tab0, tab2, tab1 AS cor0 ---- 161 166 172 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5893 SELECT - ( ( col0 ) ) * ( + 55 ) - col2 * CAST( - col0 AS SIGNED ) FROM tab2 ---- -1343 -196 -2262 skipif mysql # not compatible query I rowsort label-5893 SELECT - ( ( col0 ) ) * ( + 55 ) - col2 * CAST ( - col0 AS INTEGER ) FROM tab2 ---- -1343 -196 -2262 onlyif mysql # use DIV operator for integer division query I rowsort label-5894 SELECT DISTINCT - 57 DIV - col2 FROM tab0 ---- 0 1 57 skipif mysql # not compatible query I rowsort label-5894 SELECT DISTINCT - 57 / - col2 FROM tab0 ---- 0 1 57 query I rowsort SELECT ALL tab1.col1 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # use DIV operator for integer division query I rowsort label-5896 SELECT DISTINCT + col2 DIV 16 AS col0 FROM tab1 ---- 3 6 skipif mysql # not compatible query I rowsort label-5896 SELECT DISTINCT + col2 / 16 AS col0 FROM tab1 ---- 3 6 query I rowsort SELECT + col1 + col1 * col1 FROM tab0 AS cor0 ---- 7482 8372 9506 query I rowsort SELECT ALL - - col0 * cor0.col2 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-5899 SELECT ALL + ( + col1 ) DIV 8 AS col1 FROM tab2 AS cor0 ---- 2 3 7 skipif mysql # not compatible query I rowsort label-5899 SELECT ALL + ( + col1 ) / 8 AS col1 FROM tab2 AS cor0 ---- 2 3 7 query I rowsort SELECT + 91 * col2 + + col0 FROM tab2 AS cor0 ---- 2444 2464 3537 query I rowsort SELECT ALL - 13 + + col1 FROM tab0 AS cor0 ---- 73 78 84 query I rowsort SELECT ALL col1 + + col0 - col0 * + col0 FROM tab0 AS cor0 ---- -1093 -466 -7741 query I rowsort SELECT - + col1 + col0 * - ( + cor0.col1 ) - col0 * + 71 * - col2 AS col2 FROM tab1 AS cor0 ---- 11398 258358 544227 query I rowsort SELECT DISTINCT col1 + - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - 59 + - col1 * col0 FROM tab2 AS cor0 ---- -1402 -276 -4661 query I rowsort SELECT ALL + 55 + col2 AS col2 FROM tab1 AS cor0 ---- 109 112 151 query I rowsort SELECT + col1 + + cor0.col0 * - col2 - 69 FROM tab1 AS cor0 ---- -205 -3707 -7736 query I rowsort SELECT ALL - + 74 * - col1 AS col0 FROM tab0 AS cor0 ---- 6364 6734 7178 query I rowsort SELECT ALL - col1 * tab0.col0 AS col0 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - + col2 + + col1 AS col0 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT + col0 * tab0.col1 + + col2 + col0 AS col2 FROM tab0 ---- 2121 3431 8270 query I rowsort SELECT DISTINCT 66 FROM tab1, tab2 cor0, tab0 cor1 ---- 66 query I rowsort SELECT ALL - col0 * + col2 + col0 FROM tab1 ---- -159 -3584 -7600 query I rowsort SELECT ALL col2 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL + cor0.col1 + col0 * - 94 * + 94 AS col2 FROM tab2 AS cor0 ---- -61821 -689149 -698027 query I rowsort SELECT DISTINCT + 19 AS col0 FROM tab1 cor0 ---- 19 query I rowsort SELECT ALL + 92 * col0 * ( - col0 * col1 ) + - col0 FROM tab2 AS cor0 ---- -139755 -33024030 -9761003 onlyif mysql # use DIV operator for integer division query I rowsort label-5918 SELECT - + col2 * + ( + col2 ) + + col0 DIV col1 AS col0 FROM tab0 AS cor0 ---- -1 -1089 -6724 skipif mysql # not compatible query I rowsort label-5918 SELECT - + col2 * + ( + col2 ) + + col0 / col1 AS col0 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT DISTINCT - col2 * + 43 AS col1 FROM tab0 AS cor0 ---- -1419 -3526 -43 query I rowsort SELECT + col1 * ( + col2 * col1 ) + + col2 * 24 FROM tab2 AS cor0 ---- 11894 26595 91130 onlyif mysql # use DIV operator for integer division query I rowsort label-5921 SELECT ALL - - col1 + col2 * + col1 DIV col1 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-5921 SELECT ALL - - col1 + col2 * + col1 / col1 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-5922 SELECT - - cor0.col1 DIV - 10 FROM tab0 AS cor0 ---- -8 -9 -9 skipif mysql # not compatible query I rowsort label-5922 SELECT - - cor0.col1 / - 10 FROM tab0 AS cor0 ---- -8 -9 -9 query I rowsort SELECT col0 * - col1 * col2 + col1 AS col2 FROM tab0 AS cor0 ---- -3298 -664027 -68026 query I rowsort SELECT + - col0 + col1 * - 86 AS col1 FROM tab2 AS cor0 ---- -1541 -2673 -5152 query I rowsort SELECT - cor0.col1 * ( col0 ) - + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -2150 -3492 -8190 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5926 SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5926 SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT + col2 * col0 * + col2 AS col0 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT 1 + tab0.col2 AS col1 FROM tab0 ---- 2 34 83 onlyif mysql # use DIV operator for integer division query I rowsort label-5929 SELECT - 97 + tab1.col1 DIV col2 + - col1 AS col0 FROM tab1 ---- -107 -110 -123 skipif mysql # not compatible query I rowsort label-5929 SELECT - 97 + tab1.col1 / col2 + - col1 AS col0 FROM tab1 ---- -107 -110 -123 query I rowsort SELECT ALL + 19 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 86c53e8567a17c8d91fc5aff119e0498 query I rowsort SELECT DISTINCT - col0 + - col1 * - col2 + 21 AS col0 FROM tab1 ---- 1189 1422 527 onlyif mysql # use DIV operator for integer division query I rowsort label-5932 SELECT col0 * col0 DIV tab0.col1 + + col1 * + col1 + col1 AS col2 FROM tab0 ---- 7488 8459 9518 skipif mysql # not compatible query I rowsort label-5932 SELECT col0 * col0 / tab0.col1 + + col1 * + col1 + col1 AS col2 FROM tab0 ---- 7488 8459 9518 query I rowsort SELECT - cor0.col0 + col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5934 SELECT + col1 + - col2 DIV - 41 AS col1 FROM tab0 AS cor0 ---- 86 93 97 skipif mysql # not compatible query I rowsort label-5934 SELECT + col1 + - col2 / - 41 AS col1 FROM tab0 AS cor0 ---- 86 93 97 query I rowsort SELECT DISTINCT col1 + + col1 - 52 * 16 FROM tab1 ---- -780 -806 -812 query I rowsort SELECT DISTINCT - 4 - tab0.col1 FROM tab0 ---- -101 -90 -95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5937 SELECT - CAST( NULL AS SIGNED ) + - 43 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5937 SELECT - CAST ( NULL AS INTEGER ) + - 43 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + cor0.col2 + ( col1 * ( col0 ) ) FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT ALL + + 55 AS col1 FROM tab2 AS cor0 ---- 55 55 55 query I rowsort SELECT DISTINCT - col1 * - col2 + + col2 + col1 * ( col1 + - col1 ) * col1 FROM tab0 cor0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT 13 * col0 * + cor0.col2 FROM tab1 AS cor0 ---- 2106 47424 99840 query I rowsort SELECT ALL + + 30 * - col1 * - col1 + col1 FROM tab1 AS cor0 ---- 20306 3010 5083 query I rowsort SELECT DISTINCT - + ( + col2 ) AS col1 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT ALL + + col2 * - col2 * + col1 FROM tab1 AS cor0 ---- -119808 -32490 -75816 query I rowsort SELECT DISTINCT col2 * col1 + col0 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT - col0 * - 50 FROM tab1 AS cor0 ---- 150 3200 4000 query I rowsort SELECT DISTINCT + 51 * + cor0.col0 + col1 FROM tab0 cor0 ---- 1310 1882 4630 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5948 SELECT ALL - CAST( NULL AS SIGNED ) * 4 * - col2 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-5948 SELECT ALL - CAST ( NULL AS INTEGER ) * 4 * - col2 col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5949 SELECT + 85 * col1 + col0 DIV 87 col2 FROM tab2 AS cor0 ---- 1445 2635 5015 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5949 SELECT + 85 * col1 + col0 / 87 col2 FROM tab2 AS cor0 ---- 1445 2635 5015 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5950 SELECT - CAST( NULL AS SIGNED ) / 1 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-5950 SELECT - CAST ( NULL AS INTEGER ) / 1 col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 + col1 + col2 FROM tab0 ---- 152 255 99 query I rowsort SELECT ALL - col1 * tab1.col0 + + tab1.col1 FROM tab1 ---- -1027 -52 -630 onlyif mysql # use DIV operator for integer division query I rowsort label-5953 SELECT DISTINCT 16 + + col0 * col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0 ---- 23 94 95 skipif mysql # not compatible query I rowsort label-5953 SELECT DISTINCT 16 + + col0 * col0 / cor0.col0 AS col2 FROM tab2 AS cor0 ---- 23 94 95 query I rowsort SELECT - col0 * + 61 FROM tab1 cor0 ---- -183 -3904 -4880 query I rowsort SELECT ALL - - ( col1 ) + - col2 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL - + col1 + - 55 + col2 AS col2 FROM tab1 AS cor0 ---- -27 -8 28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + col1 ) col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL + 99 * + col1 FROM tab2 AS cor0 ---- 1683 3069 5841 query I rowsort SELECT ALL - 0 + - 56 FROM tab0 AS cor0 ---- -56 -56 -56 query I rowsort SELECT ALL + 72 * + col1 AS col1 FROM tab0 ---- 6192 6552 6984 query I rowsort SELECT - 55 + + tab2.col2 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 151036a32c722c771b2dbacbf9db6532 query I rowsort SELECT tab0.col1 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT - - 23 AS col2 FROM tab1 AS cor0 ---- 23 23 23 onlyif mysql # use DIV operator for integer division query I rowsort label-5964 SELECT 6 DIV tab1.col0 + + col0 FROM tab1 ---- 5 64 80 skipif mysql # not compatible query I rowsort label-5964 SELECT 6 / tab1.col0 + + col0 FROM tab1 ---- 5 64 80 query I rowsort SELECT DISTINCT - tab0.col2 * 23 FROM tab0 ---- -1886 -23 -759 query I rowsort SELECT 42 + col0 FROM tab1 cor0 ---- 106 122 45 query I rowsort SELECT DISTINCT col1 * ( + col2 ) AS col2 FROM tab2 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( tab2.col1 ) col0 FROM tab2, tab1 cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5969 SELECT - CAST( - 62 AS SIGNED ) AS col2 FROM tab2 ---- 62 62 62 skipif mysql # not compatible query I rowsort label-5969 SELECT - CAST ( - 62 AS INTEGER ) AS col2 FROM tab2 ---- 62 62 62 query I rowsort SELECT 76 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 30b8941a700cffd5b983116383bd42d5 onlyif mysql # use DIV operator for integer division query I rowsort label-5971 SELECT ( - col2 ) DIV + tab1.col0 FROM tab1 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-5971 SELECT ( - col2 ) / + tab1.col0 FROM tab1 ---- -1 -18 0 query I rowsort SELECT DISTINCT tab1.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1 ---- 54 57 96 query I rowsort SELECT col1 * 13 + col1 FROM tab1 AS cor0 ---- 140 182 364 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 - col2 - - col1 col0 FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT - + col0 + + col1 + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -80 29 61 query I rowsort SELECT ALL - - 22 + + col0 + 54 * col0 AS col1 FROM tab2 AS cor0 ---- 407 4312 4367 query I rowsort SELECT + 31 * col2 + - col1 + + col2 * + cor0.col1 FROM tab1 AS cor0 ---- 2327 3052 4211 query I rowsort SELECT DISTINCT - 84 * + col2 FROM tab2 AS cor0 ---- -2184 -2268 -3192 query I rowsort SELECT + ( - col1 ) * + ( 71 ) AS col1 FROM tab0 AS cor0 ---- -6106 -6461 -6887 query I rowsort SELECT DISTINCT + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-5982 SELECT ALL - col2 + col2 DIV 58 FROM tab0 AS cor0 ---- -1 -33 -81 skipif mysql # not compatible query I rowsort label-5982 SELECT ALL - col2 + col2 / 58 FROM tab0 AS cor0 ---- -1 -33 -81 query I rowsort SELECT col0 * cor0.col1 + col2 AS col0 FROM tab2 cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT + col1 * - tab0.col2 AS col1 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT - col0 * - cor0.col0 * col0 AS col0 FROM tab1 AS cor0 ---- 262144 27 512000 query I rowsort SELECT ALL + col0 * col0 * col0 + col0 AS col2 FROM tab2 AS cor0 ---- 350 474630 493118 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + - col0 col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - 65 + - col0 FROM tab2 AS cor0 ---- -143 -144 -72 query I rowsort SELECT DISTINCT - + col0 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT - col1 * + col0 * 95 FROM tab0 AS cor0 ---- -196080 -322525 -769405 query I rowsort SELECT ALL col0 - 47 * - col2 * + cor0.col0 FROM tab2 AS cor0 ---- 141173 8890 95394 query I rowsort SELECT + cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 cor2 ---- 81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6 query I rowsort SELECT + col2 * 0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + cor0.col0 * + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + 65 * - 4 col2 FROM tab0 ---- -178 -227 -259 query I rowsort SELECT DISTINCT - col1 + 71 AS col1 FROM tab1 ---- 45 58 61 query I rowsort SELECT + + col0 * col0 + - col0 AS col0 FROM tab2 AS cor0 ---- 42 6006 6162 query I rowsort SELECT ( - 20 ) * + col2 FROM tab0 AS cor0 ---- -1640 -20 -660 query I rowsort SELECT ALL col2 * - col1 + cor0.col0 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT + 0 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT 32 AS col0 FROM tab0 AS cor0 ---- 32 32 32 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2 ---- 3645 values hashing to ca91d1f523a87017f672304548e91a77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + col2 col1 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT + + col1 + - col0 * 1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT 59 FROM tab0 ---- 59 query I rowsort SELECT - 89 * tab0.col1 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to b6f3523080e90163525e137ed26bace6 query I rowsort SELECT DISTINCT col0 + - 35 FROM tab0 cor0 ---- -11 0 54 query I rowsort SELECT - col1 + ( col0 ) FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT - cor0.col0 * + col2 + + col0 * col1 + col0 * col0 AS col0 FROM tab0 AS cor0 ---- 1848 4585 8722 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + col2 col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL + + 98 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to f9dee8c21116f1aed64ac5160e190809 query I rowsort SELECT + col2 + col0 - - col0 FROM tab1 AS cor0 ---- 185 256 60 query I rowsort SELECT tab1.col2 * + tab1.col1 * col1 AS col0 FROM tab1 ---- 16224 36504 5700 query I rowsort SELECT - + col0 - col1 FROM tab0 cor0 ---- -110 -132 -180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + - col1 * col1 col0 FROM tab1 AS cor0 ---- -43 -622 -73 onlyif mysql # use DIV operator for integer division query I rowsort label-6016 SELECT DISTINCT + + 91 + col2 + 75 DIV cor0.col0 AS col1 FROM tab0 AS cor0 ---- 127 173 94 skipif mysql # not compatible query I rowsort label-6016 SELECT DISTINCT + + 91 + col2 + 75 / cor0.col0 AS col1 FROM tab0 AS cor0 ---- 127 173 94 query I rowsort SELECT 29 * + col0 + + cor0.col2 FROM tab2 AS cor0 ---- 2288 230 2329 query I rowsort SELECT DISTINCT + + 83 + - col1 FROM tab0 AS cor0 ---- -14 -3 -8 query I rowsort SELECT DISTINCT 34 AS col1 FROM tab1 cor0 ---- 34 query I rowsort SELECT - cor0.col1 * - cor0.col2 + + col1 AS col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT ALL + 82 + col2 AS col0 FROM tab2 AS cor0 ---- 108 109 120 onlyif mysql # use DIV operator for integer division query I rowsort label-6022 SELECT + - col1 DIV cor0.col1 - 86 FROM tab0 cor0 ---- -87 -87 -87 skipif mysql # not compatible query I rowsort label-6022 SELECT + - col1 / cor0.col1 - 86 FROM tab0 cor0 ---- -87 -87 -87 query I rowsort SELECT - col1 + col1 + 98 * - col2 AS col0 FROM tab2 ---- -2548 -2646 -3724 query I rowsort SELECT ALL + ( 94 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24 query I rowsort SELECT ALL cor0.col2 AS col0 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT + 25 * col1 FROM tab1 AS cor0 ---- 250 325 650 query I rowsort SELECT ALL + ( col2 ) + 51 FROM tab0 AS cor0 ---- 133 52 84 query I rowsort SELECT DISTINCT + col0 + col1 * col2 + - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 131 2829 7469 query I rowsort SELECT ALL col2 * + col0 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL + 85 * + col1 FROM tab0 AS cor0 ---- 7310 7735 8245 query I rowsort SELECT ALL + col1 + - cor0.col2 * + col0 AS col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT DISTINCT - col2 * + col0 AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT 66 * col1 AS col2 FROM tab0 AS cor0 ---- 5676 6006 6402 query I rowsort SELECT ALL col0 * - col2 * - cor0.col2 + col0 + col2 FROM tab2 AS cor0 ---- 114193 5137 52832 query I rowsort SELECT ALL cor0.col0 + + col2 * cor0.col2 * + col2 AS col0 FROM tab0 AS cor0 ---- 35961 36 551457 query I rowsort SELECT ALL - 54 + col2 - col0 AS col0 FROM tab0 ---- -45 -61 -88 query I rowsort SELECT + col0 + + ( 63 ) AS col0 FROM tab1 cor0 ---- 127 143 66 query I rowsort SELECT + - cor2.col2 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1, tab2, tab0 AS cor2 ---- 243 values hashing to 3e2b81ca10484cbfc66f186955e0e920 query I rowsort SELECT - col1 + col1 * 63 FROM tab0 AS cor0 ---- 5332 5642 6014 onlyif mysql # use DIV operator for integer division query I rowsort label-6040 SELECT DISTINCT + col1 DIV - col0 AS col2 FROM tab2 AS cor0 ---- -4 0 skipif mysql # not compatible query I rowsort label-6040 SELECT DISTINCT + col1 / - col0 AS col2 FROM tab2 AS cor0 ---- -4 0 query I rowsort SELECT ALL - cor0.col1 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 79 + col2 col0 FROM tab1 ---- -22 -25 17 query I rowsort SELECT DISTINCT - col2 + - tab0.col2 - + tab0.col1 FROM tab0 ---- -152 -255 -99 query I rowsort SELECT DISTINCT - + 85 + + 45 FROM tab0 AS cor0 ---- -40 query I rowsort SELECT ALL + + 36 * col2 FROM tab1 AS cor0 ---- 1944 2052 3456 query I rowsort SELECT DISTINCT col0 * col2 + - col2 AS col0 FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT + cor0.col2 + + 96 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 4cc6d661237c3c5695e17a7ef8a55cb6 query I rowsort SELECT ALL - tab0.col1 * col1 + col2 AS col0 FROM tab0 ---- -7363 -8199 -9408 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6049 SELECT DISTINCT col2 * + CAST( ( + col2 ) AS SIGNED ) + 25 FROM tab0 ---- 1114 26 6749 skipif mysql # not compatible query I rowsort label-6049 SELECT DISTINCT col2 * + CAST ( ( + col2 ) AS INTEGER ) + 25 FROM tab0 ---- 1114 26 6749 query I rowsort SELECT ALL 76 + - col0 FROM tab2 AS cor0 ---- -2 -3 69 query I rowsort SELECT - 8 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e query I rowsort SELECT + 55 AS col0 FROM tab2 ---- 55 55 55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6053 SELECT - CAST( col1 AS SIGNED ) - col2 FROM tab2 ---- -55 -58 -85 skipif mysql # not compatible query I rowsort label-6053 SELECT - CAST ( col1 AS INTEGER ) - col2 FROM tab2 ---- -55 -58 -85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( - tab1.col1 + + col2 ) col1 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT DISTINCT 93 FROM tab1 ---- 93 query I rowsort SELECT DISTINCT ( col2 ) * col2 + - col1 * - col2 FROM tab2 AS cor0 ---- 1566 2090 2210 onlyif mysql # use DIV operator for integer division query I rowsort label-6057 SELECT ALL 64 DIV 59 AS col0 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6057 SELECT ALL 64 / 59 AS col0 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT - ( 23 ) + col2 AS col1 FROM tab0 ---- -22 10 59 query I rowsort SELECT 62 FROM tab2, tab0 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b query I rowsort SELECT DISTINCT + 46 AS col2 FROM tab2 ---- 46 query I rowsort SELECT - ( - 74 ) FROM tab2 ---- 74 74 74 query I rowsort SELECT + 67 * + col0 + + ( + 75 ) AS col0 FROM tab1 cor0 ---- 276 4363 5435 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6063 SELECT ALL - CAST( col1 AS SIGNED ) * - col0 FROM tab1 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-6063 SELECT ALL - CAST ( col1 AS INTEGER ) * - col0 FROM tab1 ---- 1040 640 78 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3 query I rowsort SELECT ALL + ( col2 * ( - tab2.col1 ) + - tab2.col0 ) FROM tab2 ---- -1612 -725 -844 query I rowsort SELECT ALL cor0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT col1 * col2 + tab0.col2 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT + 21 + col2 * col2 FROM tab1 AS cor0 ---- 2937 3270 9237 query I rowsort SELECT - + col0 + + col1 * + col1 FROM tab2 AS cor0 ---- 210 3403 954 query I rowsort SELECT 93 FROM tab1 cor0 ---- 93 93 93 query I rowsort SELECT DISTINCT + + 68 * col0 + - ( - ( cor0.col2 ) * col0 ) FROM tab1 AS cor0 ---- 13120 366 8000 query I rowsort SELECT ALL - - 21 + col2 AS col2 FROM tab2 AS cor0 ---- 47 48 59 query I rowsort SELECT ALL col2 * 55 * 25 + tab1.col0 FROM tab1 ---- 132080 74253 78439 query I rowsort SELECT ALL + col2 * col1 + - col0 AS col0 FROM tab1 ---- 1168 1401 506 query I rowsort SELECT DISTINCT col2 * - ( - ( col1 ) ) FROM tab1 ---- 1248 1404 570 query I rowsort SELECT col1 * + ( + tab2.col2 + - col0 ) FROM tab2 ---- -3068 -697 620 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * + col1 + 11 col1 FROM tab0 ---- 7407 8292 9420 query I rowsort SELECT ALL tab0.col2 + 52 * 87 FROM tab0 ---- 4525 4557 4606 query I rowsort SELECT ALL - col1 + 70 AS col0 FROM tab1 ---- 44 57 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 + - col2 * + col2 col2 FROM tab1 AS cor0 ---- -2942 -3259 -9229 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * ( + cor0.col2 ) + col1 * col0 col2 FROM tab2 AS cor0 ---- 2787 5278 946 query I rowsort SELECT + cor0.col0 * col0 * - col2 FROM tab0 AS cor0 ---- -1225 -19008 -649522 onlyif mysql # use DIV operator for integer division query I rowsort label-6083 SELECT ALL col0 DIV + 67 col0 FROM tab1 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6083 SELECT ALL col0 / + 67 col0 FROM tab1 ---- 0 0 1 query I rowsort SELECT col2 * 16 FROM tab0 AS cor0 ---- 1312 16 528 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * + 3 col0 FROM tab2 AS cor0 ---- -21 -234 -237 query I rowsort SELECT ALL - col2 * + col2 + cor0.col2 * - col0 AS col2 FROM tab2 AS cor0 ---- -2704 -4446 -918 query I rowsort SELECT DISTINCT + col0 * + col0 - col2 FROM tab0 AS cor0 ---- 1224 543 7839 query I rowsort SELECT ( col2 ) * - col2 + cor0.col1 * 56 FROM tab1 cor0 ---- -1460 -2689 -8488 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + col1 ) * + col1 + 24 col2 FROM tab2 AS cor0 ---- 313 3505 985 query I rowsort SELECT ALL + 22 + 35 AS col0 FROM tab1 AS cor0 ---- 57 57 57 onlyif mysql # use DIV operator for integer division query I rowsort label-6091 SELECT DISTINCT + - col2 DIV + col1 - - cor0.col1 FROM tab1 AS cor0 ---- 24 5 6 skipif mysql # not compatible query I rowsort label-6091 SELECT DISTINCT + - col2 / + col1 - - cor0.col1 FROM tab1 AS cor0 ---- 24 5 6 query I rowsort SELECT ALL - cor0.col1 * - col1 + - col1 * 7 AS col1 FROM tab2 AS cor0 ---- 170 3068 744 query I rowsort SELECT ALL + - col0 - col2 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT DISTINCT + + ( col0 ) AS col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL col1 * 71 + - col1 + col1 FROM tab1 AS cor0 ---- 1846 710 923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6096 SELECT + CAST( + col2 AS SIGNED ) + col2 + + 20 AS col1 FROM tab2 AS cor0 ---- 72 74 96 skipif mysql # not compatible query I rowsort label-6096 SELECT + CAST ( + col2 AS INTEGER ) + col2 + + 20 AS col1 FROM tab2 AS cor0 ---- 72 74 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + col1 col2 FROM tab1 cor0 ---- 20 26 52 query I rowsort SELECT - 87 + + col2 * + col1 AS col2 FROM tab0 cor0 ---- 10 2751 7375 query I rowsort SELECT - 53 * - col0 * col1 FROM tab1 AS cor0 ---- 33920 4134 55120 query I rowsort SELECT - cor0.col0 * ( + cor0.col1 * + col1 + - cor0.col2 ) FROM tab0 AS cor0 ---- -176712 -329280 -729711 query IIIIII rowsort SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) = NULL ---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL ) ---- query III rowsort SELECT ALL * FROM tab1 WHERE NULL >= NULL ---- query I rowsort SELECT ALL col1 FROM tab0 WHERE col1 * + col0 * + col0 IN ( - col2 / tab0.col1 ) ---- query III rowsort SELECT * FROM tab1 WHERE NOT + col1 / col0 IN ( col1 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) NOT IN ( col1 ) ---- query I rowsort SELECT DISTINCT + col0 + + col2 AS col1 FROM tab0 ---- 171 36 57 query I rowsort SELECT - col1 + col1 * tab1.col0 * col0 AS col0 FROM tab1 ---- 208 40950 83187 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + col2 * - col0 col1 FROM tab0 ---- -7209 -768 0 query III rowsort SELECT * FROM tab1 WHERE NOT NULL <= - tab1.col1 + col1 * + col0 ---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6112 SELECT DISTINCT col0 + - col2 DIV col1 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-6112 SELECT DISTINCT col0 + - col2 / col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT col1 * col2 AS col1 FROM tab1 WHERE NOT + col2 / - col2 <= NULL ---- query I rowsort SELECT ALL - tab1.col1 + col1 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT - col0 + col0 * - col2 AS col2 FROM tab1 cor0 ---- -165 -3712 -7760 query I rowsort SELECT + col1 * + col1 + col2 AS col1 FROM tab0 AS cor0 ---- 7429 8363 9410 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + col1 * col2 col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT col0 * - col1 * - tab2.col1 FROM tab2 ---- 22831 271518 6727 query I rowsort SELECT ALL tab2.col0 * + col2 + tab2.col2 AS col0 FROM tab2 ---- 2054 216 3040 query III rowsort SELECT ALL * FROM tab2 WHERE col0 IN ( col1 ) ---- query I rowsort SELECT DISTINCT + col1 + col2 * col0 FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT - + col1 * cor0.col1 + - col0 * - col0 FROM tab1 AS cor0 ---- -667 3996 6231 onlyif mysql # use DIV operator for integer division query I rowsort label-6123 SELECT + cor0.col2 DIV + col1 FROM tab1 cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-6123 SELECT + cor0.col2 / + col1 FROM tab1 cor0 ---- 2 5 7 query I rowsort SELECT DISTINCT + col1 - - col2 * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 132 7389 878 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6125 SELECT DISTINCT - col0 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 1225 576 7921 skipif mysql # not compatible query I rowsort label-6125 SELECT DISTINCT - col0 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT 82 * tab2.col0 FROM tab2 ---- 574 6396 6478 query I rowsort SELECT + + col0 - - col1 AS col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - col2 + - col0 * ( + 12 ) AS col1 FROM tab0 ---- -1150 -321 -421 query I rowsort SELECT DISTINCT - 26 AS col1 FROM tab1, tab0, tab2 AS cor0 ---- -26 query I rowsort SELECT - 23 + + col0 - ( - col2 ) FROM tab1 ---- 153 34 98 query I rowsort SELECT DISTINCT ( 75 ) FROM tab1, tab2 cor0, tab2, tab0 AS cor1 ---- 75 query I rowsort SELECT - - 72 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 cor1 ---- 81 values hashing to e1618abfe12be6a950cc575d695639b7 query I rowsort SELECT ALL + - col0 * + ( - col2 ) AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT ALL - col1 * cor0.col2 * col1 AS col2 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT ALL + + col0 + + 55 * col0 AS col0 FROM tab2 AS cor0 ---- 392 4368 4424 query I rowsort SELECT DISTINCT - col1 * + cor0.col2 * ( - col0 * - col0 ) AS col0 FROM tab2 AS cor0 ---- -4031686 -41013 -9332856 query I rowsort SELECT ALL - + col2 * ( + col1 ) + cor0.col0 + - col0 AS col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + col1 + + col2 * + col2 + - col0 AS col1 FROM tab1 ---- 2939 3195 9149 query I rowsort SELECT - col0 + + tab0.col1 * + col0 - - tab0.col1 * col1 FROM tab0 ---- 12769 16291 9436 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - col0 * + col2 BETWEEN NULL AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6141 SELECT ALL + col0 DIV + col1 + col2 FROM tab1 ---- 102 54 63 skipif mysql # not compatible query I rowsort label-6141 SELECT ALL + col0 / + col1 + col2 FROM tab1 ---- 102 54 63 query I rowsort SELECT + col2 + col1 + col1 AS col0 FROM tab1 ---- 106 122 77 query I rowsort SELECT - tab2.col1 * tab2.col1 FROM tab2 ---- -289 -3481 -961 query III rowsort SELECT * FROM tab2 WHERE NULL NOT IN ( col1 ) ---- query I rowsort SELECT DISTINCT tab0.col2 * col1 + col1 AS col0 FROM tab0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT col1 + - col0 * + col2 AS col0 FROM tab2 ---- -158 -1969 -2985 query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> NULL ---- query I rowsort SELECT - col0 - - col2 AS col2 FROM tab0 ---- -34 -7 9 query I rowsort SELECT DISTINCT col0 + + col2 * col0 AS col2 FROM tab0 ---- 70 7387 816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( 60 ) col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1d2ab302ae60f95b15e68cf89083b162 onlyif mysql # use DIV operator for integer division query I rowsort label-6151 SELECT 61 DIV col0 + - col1 * - 50 FROM tab1 AS cor0 ---- 1320 500 650 skipif mysql # not compatible query I rowsort label-6151 SELECT 61 / col0 + - col1 * - 50 FROM tab1 AS cor0 ---- 1320 500 650 query I rowsort SELECT + col2 * col0 + tab1.col2 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT DISTINCT - tab2.col1 + - col2 * + col2 AS col0 FROM tab2 ---- -1461 -735 -760 query I rowsort SELECT DISTINCT + 92 AS col2 FROM tab1 AS cor0 ---- 92 onlyif mysql # use DIV operator for integer division query I rowsort label-6155 SELECT - cor0.col0 DIV ( col1 ) FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-6155 SELECT - cor0.col0 / ( col1 ) FROM tab1 AS cor0 ---- -6 -6 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6156 SELECT ALL cor0.col1 * CAST( col2 AS SIGNED ) * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 244068 679042 9409 skipif mysql # not compatible query I rowsort label-6156 SELECT ALL cor0.col1 * CAST ( col2 AS INTEGER ) * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 244068 679042 9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6157 SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6157 SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - col1 + 91 AS col1 FROM tab0 AS cor0 ---- -6 0 5 query I rowsort SELECT DISTINCT col2 * + ( 73 ) FROM tab0 AS cor0 ---- 2409 5986 73 query I rowsort SELECT DISTINCT + cor0.col1 + - ( col0 ) FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT + col2 * 43 FROM tab0 AS cor0 ---- 1419 3526 43 query I rowsort SELECT col1 + + col2 * - col1 AS col0 FROM tab0 cor0 ---- -2752 -7371 0 query I rowsort SELECT - col1 * - col2 * col2 AS col2 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT DISTINCT col1 * + col1 + + col1 FROM tab1 cor0 ---- 110 182 702 query I rowsort SELECT ALL 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 + ( col1 ) col0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL + col0 * + 58 FROM tab0 AS cor0 ---- 1392 2030 5162 query I rowsort SELECT ALL + col1 * + col2 - col1 AS col0 FROM tab1 AS cor0 ---- 1235 1378 560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab0.col0 * 55 + - tab0.col2 col1 FROM tab0 ---- 1287 1924 4813 query I rowsort SELECT + + 27 FROM tab0 AS cor0 ---- 27 27 27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 82 col0 FROM tab0, tab1 AS cor0 ---- 82 query I rowsort SELECT DISTINCT - 77 + - col1 FROM tab0 AS cor0 ---- -163 -168 -174 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 78 * - col0 col1 FROM tab0 AS cor0 ---- 1872 2730 6942 query I rowsort SELECT 75 + + col2 AS col2 FROM tab2 AS cor0 ---- 101 102 113 query I rowsort SELECT ALL + - 22 + col1 AS col2 FROM tab2 AS cor0 ---- -5 37 9 query I rowsort SELECT + 40 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0 query I rowsort SELECT + col0 * col0 + + 40 AS col0 FROM tab0 AS cor0 ---- 1265 616 7961 query I rowsort SELECT ALL - + cor0.col2 + + col0 - - ( - col1 ) * - cor0.col1 FROM tab0 AS cor0 ---- 7387 8288 9443 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * col0 + col1 * col1 col1 FROM tab2 AS cor0 ---- 1150 3291 5509 onlyif mysql # use DIV operator for integer division query I rowsort label-6180 SELECT DISTINCT - + col0 DIV col2 + + ( + col0 ) FROM tab1 AS cor0 ---- 3 63 80 skipif mysql # not compatible query I rowsort label-6180 SELECT DISTINCT - + col0 / col2 + + ( + col0 ) FROM tab1 AS cor0 ---- 3 63 80 query I rowsort SELECT DISTINCT + 95 * col2 + - cor0.col2 AS col0 FROM tab1 AS cor0 ---- 5076 5358 9024 query I rowsort SELECT - - ( col2 ) + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT + col2 * + col2 AS col0 FROM tab2 ---- 1444 676 729 query I rowsort SELECT ALL col0 * 10 AS col0 FROM tab0 AS cor0 ---- 240 350 890 query I rowsort SELECT ALL col0 * + col2 AS col0 FROM tab2 cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-6186 SELECT col2 + - cor0.col0 DIV + 17 FROM tab2 AS cor0 ---- 22 27 34 skipif mysql # not compatible query I rowsort label-6186 SELECT col2 + - cor0.col0 / + 17 FROM tab2 AS cor0 ---- 22 27 34 query I rowsort SELECT - col2 + - col1 * - col2 * tab1.col0 AS col0 FROM tab1 ---- 36423 4158 99744 query I rowsort SELECT ( tab2.col2 ) + col1 AS col1 FROM tab2 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-6189 SELECT cor0.col0 DIV 3 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ee130d2504170a7fb58638ba02ca053d skipif mysql # not compatible query I rowsort label-6189 SELECT cor0.col0 / 3 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ee130d2504170a7fb58638ba02ca053d onlyif mysql # use DIV operator for integer division query I rowsort label-6190 SELECT - col1 DIV - tab1.col1 - col0 * col2 * + col0 FROM tab1 ---- -233471 -485 -614399 skipif mysql # not compatible query I rowsort label-6190 SELECT - col1 / - tab1.col1 - col0 * col2 * + col0 FROM tab1 ---- -233471 -485 -614399 query I rowsort SELECT ALL + 5 + col0 FROM tab0 ---- 29 40 94 query I rowsort SELECT ALL - 53 + tab2.col1 AS col1 FROM tab2 ---- -22 -36 6 query I rowsort SELECT + + col2 + 82 FROM tab0 AS cor0 ---- 115 164 83 query I rowsort SELECT + - col1 * + col0 + - col0 * - col0 FROM tab1 cor0 ---- -69 3456 5360 query I rowsort SELECT ALL + col2 * + col1 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * + 76 + col0 col2 FROM tab1 AS cor0 ---- -225 -4800 -6000 query I rowsort SELECT DISTINCT - - col2 + 69 * cor0.col0 FROM tab2 cor0 ---- 510 5408 5489 query I rowsort SELECT 15 * col0 * + col2 FROM tab1 ---- 115200 2430 54720 query I rowsort SELECT DISTINCT col2 * col1 * 87 + + col0 * + col1 FROM tab2 ---- 138060 57545 73036 query I rowsort SELECT + col1 * ( - ( - col0 ) ) + col2 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ( - ( tab1.col2 ) ) AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + col0 col1 FROM tab1 ---- 128 160 6 query I rowsort SELECT DISTINCT 18 + - 96 AS col0 FROM tab2, tab1 AS cor0 ---- -78 onlyif mysql # use DIV operator for integer division query I rowsort label-6204 SELECT - col2 DIV + 62 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6204 SELECT - col2 / + 62 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT 61 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55 query I rowsort SELECT + col1 * + col2 + col0 FROM tab1 ---- 1328 1407 634 query I rowsort SELECT + col0 + ( col1 ) AS col2 FROM tab0 ---- 110 132 180 query I rowsort SELECT - col1 + tab2.col1 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT + tab1.col2 * + col0 * - tab1.col0 AS col0 FROM tab1 ---- -233472 -486 -614400 query I rowsort SELECT 71 * col2 - + 33 AS col1 FROM tab1 AS cor0 ---- 3801 4014 6783 query I rowsort SELECT - ( - cor0.col0 ) * - 95 + + col0 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- -1157 -1488 -3290 onlyif mysql # use DIV operator for integer division query I rowsort label-6212 SELECT + 70 DIV tab1.col2 AS col2 FROM tab1 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-6212 SELECT + 70 / tab1.col2 AS col2 FROM tab1 ---- 0 1 1 query I rowsort SELECT - 44 + tab2.col0 FROM tab2 ---- -37 34 35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + - col2 + col0 * - 84 col1 FROM tab0 ---- -2016 -2940 -7476 query I rowsort SELECT ALL ( ( tab0.col0 ) ) + ( + 31 + col1 ) * - col2 AS col0 FROM tab0 ---- -3837 -93 -9915 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab0.col1 + ( - col1 ) col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL - col2 + 92 FROM tab1 ---- -4 35 38 query I rowsort SELECT ALL - + col1 - col2 AS col2 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT ALL + + col1 * + col1 + + 49 AS col2 FROM tab1 AS cor0 ---- 149 218 725 query I rowsort SELECT - + col1 * col2 + col2 * - 66 * + col1 FROM tab0 cor0 ---- -190146 -499954 -6499 query I rowsort SELECT ALL + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT ALL - - col2 * + col1 + - col2 * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- 10464 3819 4320 query I rowsort SELECT DISTINCT 51 + + col1 FROM tab2 AS cor0 ---- 110 68 82 query I rowsort SELECT - 9 * col0 FROM tab1 cor0 ---- -27 -576 -720 query I rowsort SELECT - - ( col2 ) * + col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 + col0 * - col2 - + col1 * - col0 col2 FROM tab1 AS cor0 ---- -138 -3065 -6736 query I rowsort SELECT col0 * + col1 + col2 * 2 AS col0 FROM tab1 AS cor0 ---- 1232 186 754 query I rowsort SELECT DISTINCT 42 * - col1 FROM tab1 ---- -1092 -420 -546 query I rowsort SELECT DISTINCT col1 * 75 AS col2 FROM tab1 ---- 1950 750 975 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6230 SELECT + col0 * 27 + + col2 * - CAST( NULL AS SIGNED ) * + col2 + - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6230 SELECT + col0 * 27 + + col2 * - CAST ( NULL AS INTEGER ) * + col2 + - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + col0 * + col0 FROM tab0 cor0 ---- 1225 576 7921 query I rowsort SELECT - col1 + - col0 + + col2 FROM tab0 cor0 ---- -131 -77 -98 query I rowsort SELECT 6 + + col0 AS col1 FROM tab0 AS cor0 ---- 30 41 95 query I rowsort SELECT - col0 * col0 * + ( col1 ) FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT - + 59 + col1 * ( - col2 ) FROM tab2 AS cor0 ---- -1593 -705 -896 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + + col0 col1 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT + ( 68 ) FROM tab0 ---- 68 68 68 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6238 SELECT + CAST( col1 AS SIGNED ) * - col1 FROM tab1 ---- -100 -169 -676 skipif mysql # not compatible query I rowsort label-6238 SELECT + CAST ( col1 AS INTEGER ) * - col1 FROM tab1 ---- -100 -169 -676 query I rowsort SELECT col1 * - 72 AS col0 FROM tab0 ---- -6192 -6552 -6984 query I rowsort SELECT ALL 81 + + col2 FROM tab2 AS cor0 ---- 107 108 119 query I rowsort SELECT - - col0 * col0 + + ( col2 ) + + col0 AS col1 FROM tab0 cor0 ---- 1261 633 8092 query I rowsort SELECT - 94 * col2 FROM tab0 ---- -3102 -7708 -94 query I rowsort SELECT DISTINCT col2 * + 37 AS col2 FROM tab1 ---- 1998 2109 3552 query I rowsort SELECT + col0 * 17 FROM tab2 AS cor0 ---- 119 1326 1343 onlyif mysql # use DIV operator for integer division query I rowsort label-6245 SELECT + col0 * + 67 + - col1 * col2 DIV 15 AS col1 FROM tab2 AS cor0 ---- 414 5124 5250 skipif mysql # not compatible query I rowsort label-6245 SELECT + col0 * + 67 + - col1 * col2 / 15 AS col1 FROM tab2 AS cor0 ---- 414 5124 5250 query I rowsort SELECT - + col0 + ( - 96 ) + col0 * - col1 FROM tab1 AS cor0 ---- -1216 -177 -800 query I rowsort SELECT + - col2 + - col2 * + cor0.col0 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT + col2 + - col0 + col1 AS col2 FROM tab2 AS cor0 ---- -24 51 7 query I rowsort SELECT ALL tab0.col2 * 2 * + 13 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 461c22d854be0001e8f8005306ff5d99 query I rowsort SELECT - + col0 * + 1 - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT col0 - ( + 39 * + col1 ) FROM tab0 AS cor0 ---- -3330 -3460 -3748 query I rowsort SELECT - - col1 + col2 AS col2 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT - 77 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to 3a24155cb91ceff1e67bb51c07b72107 onlyif mysql # use DIV operator for integer division query I rowsort label-6254 SELECT DISTINCT col2 * - col1 + + 30 DIV col2 + col2 col0 FROM tab1 ---- -1152 -1350 -513 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6254 SELECT DISTINCT col2 * - col1 + + 30 / col2 + col2 col0 FROM tab1 ---- -1152 -1350 -513 query I rowsort SELECT - 27 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a query I rowsort SELECT col0 * + ( col0 * tab0.col0 ) FROM tab0 ---- 13824 42875 704969 query I rowsort SELECT - 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to aea3eb70e9270b660d4c81f39b11409b query I rowsort SELECT - col2 * + 42 + col1 FROM tab2 cor0 ---- -1033 -1103 -1579 query I rowsort SELECT 78 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 query I rowsort SELECT ALL + - ( - cor0.col2 ) + - col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - cor0.col2 + + col2 * col2 FROM tab2 AS cor0 ---- 1406 650 702 query I rowsort SELECT DISTINCT - + 97 * cor0.col2 FROM tab1 AS cor0 ---- -5238 -5529 -9312 query I rowsort SELECT ALL 44 + - 37 AS col2 FROM tab2 cor0 ---- 7 7 7 query I rowsort SELECT col2 + + col0 * col1 AS col1 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT ALL 13 + 93 FROM tab2 cor0 ---- 106 106 106 query I rowsort SELECT DISTINCT + + 31 * - col0 FROM tab2 AS cor0 ---- -217 -2418 -2449 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6267 SELECT - - col0 + + ( - cor0.col2 ) * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6267 SELECT - - col0 + + ( - cor0.col2 ) * - CAST ( NULL AS REAL ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - ( - col0 ) + col1 + 97 * - col1 FROM tab2 cor0 ---- -1553 -2969 -5586 query I rowsort SELECT ALL - tab2.col0 * - col1 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - 2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- -2 onlyif mysql # use DIV operator for integer division query I rowsort label-6271 SELECT + col1 DIV ( + col2 ) AS col1 FROM tab0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-6271 SELECT + col1 / ( + col2 ) AS col1 FROM tab0 ---- 1 2 97 query I rowsort SELECT ALL - 10 FROM tab0, tab1 AS cor0 ---- 9 values hashing to f68f33032846e21ee6b2c668fc10355e query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab0, tab1 AS cor1 ---- 3645 values hashing to b8435223668db186a5012e4112253f28 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6274 SELECT ALL CAST( - col1 AS SIGNED ) - col1 AS col2 FROM tab2 ---- -118 -34 -62 skipif mysql # not compatible query I rowsort label-6274 SELECT ALL CAST ( - col1 AS INTEGER ) - col1 AS col2 FROM tab2 ---- -118 -34 -62 query I rowsort SELECT ( 48 ) AS col2 FROM tab0 cor0 ---- 48 48 48 query I rowsort SELECT + col0 * + col1 + col0 * + ( + col0 ) FROM tab2 AS cor0 ---- 10686 266 7584 query I rowsort SELECT - + 62 + ( cor0.col0 * cor0.col1 ) + col1 AS col2 FROM tab0 AS cor0 ---- 2088 3430 8128 query I rowsort SELECT 5 - + tab2.col0 FROM tab2 ---- -2 -73 -74 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 DISTINCT - ( col2 ) + + col1 FROM tab1 ---- -28 -47 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6281 SELECT - CAST( col2 AS SIGNED ) + cor0.col0 col0 FROM tab0 cor0 ---- -9 34 7 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6281 SELECT - CAST ( col2 AS INTEGER ) + cor0.col0 col0 FROM tab0 cor0 ---- -9 34 7 query I rowsort SELECT ALL + - 70 * - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ba36a491b9449714cd439d795c621d57 query I rowsort SELECT + cor0.col2 - 66 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 4db7e4bfd6dbc27615e0281f7a428dc4 query I rowsort SELECT DISTINCT 90 AS col2 FROM tab2 ---- 90 query I rowsort SELECT DISTINCT 66 * - col2 AS col2 FROM tab2 ---- -1716 -1782 -2508 query I rowsort SELECT col2 + 69 FROM tab0 AS cor0 ---- 102 151 70 query I rowsort SELECT ALL + 95 * - tab2.col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 55f04e0ce0dee30d2f57216e372567a9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 col2 FROM tab0, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT - - col1 * col0 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 13520 2028 6400 onlyif mysql # use DIV operator for integer division query I rowsort label-6290 SELECT 91 DIV cor0.col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 730b8a577fdba3362d4d98f720c132c4 skipif mysql # not compatible query I rowsort label-6290 SELECT 91 / cor0.col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 730b8a577fdba3362d4d98f720c132c4 query I rowsort SELECT - ( - tab2.col0 ) - col1 FROM tab2 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab2.col2 * col1 * + col0 + col1 col1 FROM tab2 ---- -119593 -51017 -5828 query I rowsort SELECT DISTINCT 8 + + 74 * + col0 FROM tab1 ---- 230 4744 5928 query I rowsort SELECT ALL - 4 * - col0 - + col1 * 34 AS col2 FROM tab2 AS cor0 ---- -1026 -1694 -262 query I rowsort SELECT + 9 * + col1 FROM tab0 cor0 ---- 774 819 873 query I rowsort SELECT ALL + - col0 + col0 * col0 FROM tab2 AS cor0 ---- 42 6006 6162 onlyif mysql # use DIV operator for integer division query I rowsort label-6297 SELECT col2 * + col1 + + CAST( col1 + col0 AS SIGNED ) * col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1671 742 875 skipif mysql # not compatible query I rowsort label-6297 SELECT col2 * + col1 + + CAST ( col1 + col0 AS INTEGER ) * col1 / cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1671 742 875 query I rowsort SELECT - 56 + + col1 AS col1 FROM tab0 ---- 30 35 41 query I rowsort SELECT ALL ( + col0 ) + + col2 FROM tab0 ---- 171 36 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6300 SELECT - col0 * col1 + tab2.col2 * CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6300 SELECT - col0 * col1 + tab2.col2 * CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 7 col1 FROM tab2 ---- 7 onlyif mysql # use DIV operator for integer division query I rowsort label-6302 SELECT ALL - + col1 + - col0 + col1 * col2 DIV - col2 AS col1 FROM tab0 AS cor0 ---- -196 -229 -271 skipif mysql # not compatible query I rowsort label-6302 SELECT ALL - + col1 + - col0 + col1 * col2 / - col2 AS col1 FROM tab0 AS cor0 ---- -196 -229 -271 query I rowsort SELECT ALL - 59 + - col2 + ( + col2 ) FROM tab2 AS cor0 ---- -59 -59 -59 query I rowsort SELECT DISTINCT + + col1 * + col2 + 15 FROM tab2 AS cor0 ---- 1549 661 852 onlyif mysql # use DIV operator for integer division query I rowsort label-6305 SELECT DISTINCT - 59 * col2 DIV 50 - + col0 * col1 AS col2 FROM tab0 AS cor0 ---- -2102 -3396 -8195 skipif mysql # not compatible query I rowsort label-6305 SELECT DISTINCT - 59 * col2 / 50 - + col0 * col1 AS col2 FROM tab0 AS cor0 ---- -2102 -3396 -8195 query I rowsort SELECT ALL + 30 AS col2 FROM tab0 cor0 ---- 30 30 30 query I rowsort SELECT DISTINCT + + col0 + - col1 AS col0 FROM tab0 AS cor0 ---- -2 -62 query I rowsort SELECT ALL - col2 + cor0.col1 FROM tab0 cor0 ---- 53 9 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 58 col2 FROM tab2 AS cor0 ---- -58 -58 -58 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6310 SELECT DISTINCT + + 42 + col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6310 SELECT DISTINCT + + 42 + col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - 50 + cor0.col1 FROM tab2 AS cor0 ---- -19 -33 9 query I rowsort SELECT - ( + col1 ) + ( col0 ) AS col1 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT + - cor0.col1 * - col1 - - 93 AS col1 FROM tab2 AS cor0 ---- 1054 3574 382 onlyif mysql # use DIV operator for integer division query I rowsort label-6314 SELECT ALL - col0 DIV CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-6314 SELECT ALL - col0 / CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- -1 -35 0 query I rowsort SELECT ALL - - col2 * col0 AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-6316 SELECT + cor0.col1 * + col2 + 5 * col1 DIV - col0 - col2 AS col1 FROM tab1 AS cor0 ---- 1152 1307 513 skipif mysql # not compatible query I rowsort label-6316 SELECT + cor0.col1 * + col2 + 5 * col1 / - col0 - col2 AS col1 FROM tab1 AS cor0 ---- 1152 1307 513 query I rowsort SELECT DISTINCT + + cor0.col1 * - col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT ALL col1 * col2 * tab2.col2 + - col0 + + col0 FROM tab2 ---- 22599 24548 39884 query I rowsort SELECT + - cor0.col1 + + col0 * - col0 FROM tab2 cor0 ---- -6143 -6258 -80 query I rowsort SELECT - 29 + + col0 * - col0 * + ( + col1 ) FROM tab1 AS cor0 ---- -263 -40989 -83229 onlyif mysql # use DIV operator for integer division query I rowsort label-6321 SELECT DISTINCT + + col0 DIV + col0 FROM tab0 cor0 ---- 1 skipif mysql # not compatible query I rowsort label-6321 SELECT DISTINCT + + col0 / + col0 FROM tab0 cor0 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-6322 SELECT ALL - 4 DIV - cor0.col1 AS col0 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6322 SELECT ALL - 4 / - cor0.col1 AS col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6323 SELECT ALL + - col0 DIV + 28 AS col2 FROM tab2 AS cor0 ---- -2 -2 0 skipif mysql # not compatible query I rowsort label-6323 SELECT ALL + - col0 / + 28 AS col2 FROM tab2 AS cor0 ---- -2 -2 0 query I rowsort SELECT ALL + + col1 + 32 FROM tab2 AS cor0 ---- 49 63 91 query I rowsort SELECT ALL col0 * + col0 + + col1 - col2 AS col1 FROM tab1 ---- -19 4049 6317 query I rowsort SELECT ALL col1 * 45 + + cor0.col1 FROM tab1 AS cor0 ---- 1196 460 598 query I rowsort SELECT - cor0.col0 * + col0 FROM tab2 cor0 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT + ( 42 ) + - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -36 -37 35 query I rowsort SELECT + 54 FROM tab0, tab1 cor0 ---- 9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09 query I rowsort SELECT ALL + ( 93 ) + + col0 FROM tab1 AS cor0 ---- 157 173 96 query I rowsort SELECT 79 - - col2 FROM tab0 AS cor0 ---- 112 161 80 query I rowsort SELECT DISTINCT - col2 + + 60 AS col2 FROM tab1 AS cor0 ---- -36 3 6 onlyif mysql # use DIV operator for integer division query I rowsort label-6333 SELECT + col0 DIV - col0 AS col2 FROM tab1 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-6333 SELECT + col0 / - col0 AS col2 FROM tab1 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-6334 SELECT 47 + - col1 DIV + col1 - - col1 AS col1 FROM tab0 AS cor0 ---- 132 137 143 skipif mysql # not compatible query I rowsort label-6334 SELECT 47 + - col1 / + col1 - - col1 AS col1 FROM tab0 AS cor0 ---- 132 137 143 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6335 SELECT - CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6335 SELECT - CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6336 SELECT - ( + col2 ) * + cor0.col1 + CAST( - col0 * col1 AS SIGNED ) - CAST( col1 + + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -1284 -1511 -2381 skipif mysql # not compatible query I rowsort label-6336 SELECT - ( + col2 ) * + cor0.col1 + CAST ( - col0 * col1 AS INTEGER ) - CAST ( col1 + + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -1284 -1511 -2381 query I rowsort SELECT ALL cor0.col2 * + col0 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT - col0 * + col1 + + col2 * 35 FROM tab1 AS cor0 ---- 1355 1812 2320 onlyif mysql # use DIV operator for integer division query I rowsort label-6339 SELECT DISTINCT + ( 57 ) DIV col2 AS col1 FROM tab0 AS cor0 ---- 0 1 57 skipif mysql # not compatible query I rowsort label-6339 SELECT DISTINCT + ( 57 ) / col2 AS col1 FROM tab0 AS cor0 ---- 0 1 57 query I rowsort SELECT ALL - 90 * col1 FROM tab1 AS cor0 ---- -1170 -2340 -900 query I rowsort SELECT + 26 * col0 AS col1 FROM tab1 AS cor0 ---- 1664 2080 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6342 SELECT DISTINCT + CAST( + col0 AS SIGNED ) + col0 * + col1 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 skipif mysql # not compatible query I rowsort label-6342 SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + col0 * + col1 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 94 + col1 col2 FROM tab0 AS cor0 ---- 180 185 191 onlyif mysql # use DIV operator for integer division query I rowsort label-6344 SELECT col2 * + col2 + - col2 DIV + col2 FROM tab0 cor0 ---- 0 1088 6723 skipif mysql # not compatible query I rowsort label-6344 SELECT col2 * + col2 + - col2 / + col2 FROM tab0 cor0 ---- 0 1088 6723 query I rowsort SELECT - 14 + tab2.col2 FROM tab2, tab2 cor0 ---- 9 values hashing to e83adf15b239e38acf492469eaddc85f query I rowsort SELECT DISTINCT + ( + 40 ) AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 ---- 40 query I rowsort SELECT - 27 * - col1 AS col0 FROM tab1 AS cor0 ---- 270 351 702 query I rowsort SELECT col1 + + 99 * + col2 FROM tab1 ---- 5372 5653 9517 query I rowsort SELECT + 61 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55 onlyif mysql # use DIV operator for integer division query I rowsort label-6350 SELECT ALL col2 DIV - CAST( + cor0.col2 * col2 AS SIGNED ) AS col0 FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6350 SELECT ALL col2 / - CAST ( + cor0.col2 * col2 AS INTEGER ) AS col0 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6351 SELECT ALL - + col0 / - CAST( NULL AS SIGNED ) + - col0 * col1 * - col0 + col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6351 SELECT ALL - + col0 / - CAST ( NULL AS INTEGER ) + - col0 * col1 * - col0 + col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6352 SELECT col2 DIV col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-6352 SELECT col2 / col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT DISTINCT 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6354 SELECT col2 + CAST( col2 AS SIGNED ) + - tab2.col0 FROM tab2 ---- -26 -3 47 skipif mysql # not compatible query I rowsort label-6354 SELECT col2 + CAST ( col2 AS INTEGER ) + - tab2.col0 FROM tab2 ---- -26 -3 47 query I rowsort SELECT + col1 + + col0 AS col2 FROM tab1 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-6356 SELECT - tab1.col0 DIV - col0 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6356 SELECT - tab1.col0 / - col0 FROM tab1 ---- 1 1 1 query I rowsort SELECT - col1 + 49 * cor0.col0 FROM tab0 AS cor0 ---- 1090 1618 4270 query I rowsort SELECT 82 - + col2 FROM tab1 AS cor0 ---- -14 25 28 query I rowsort SELECT - tab0.col1 FROM tab0, tab1, tab1 AS cor0, tab2 AS cor1 ---- 81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 80 col2 FROM tab0, tab2 cor0 ---- 80 query I rowsort SELECT - + col1 * - 82 + - cor0.col0 FROM tab2 AS cor0 ---- 1315 2535 4760 query I rowsort SELECT - + col0 * + col0 + 69 FROM tab1 AS cor0 ---- -4027 -6331 60 query I rowsort SELECT + col0 * col1 + col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT col2 + + 16 * - 46 FROM tab0 AS cor0 ---- -654 -703 -735 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col1 * - col1 col0 FROM tab2 ---- 289 3481 961 query I rowsort SELECT ALL + col0 * tab1.col0 AS col1 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT + col2 - + col0 FROM tab2 ---- -41 -52 20 query I rowsort SELECT ALL - col2 + + ( 40 ) AS col2 FROM tab0 ---- -42 39 7 query I rowsort SELECT 64 + + cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to e17a8e276b93e40162ab558a44779f9c query I rowsort SELECT col0 * 59 * - tab2.col2 FROM tab2 ---- -11151 -119652 -177118 query I rowsort SELECT DISTINCT + col1 * - col1 + col1 + + col1 AS col1 FROM tab2 ---- -255 -3363 -899 query I rowsort SELECT DISTINCT + col1 * - col1 + - col1 FROM tab2 AS cor0 ---- -306 -3540 -992 query I rowsort SELECT ALL + ( col2 ) * - tab2.col2 AS col2 FROM tab2 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT - ( + col2 ) * + col0 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT ( - col0 ) AS col0 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT + + 6 FROM tab2 AS cor0 ---- 6 6 6 query I rowsort SELECT + + ( + col2 ) * - col1 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT + + 33 AS col2 FROM tab1 AS cor0 ---- 33 33 33 query I rowsort SELECT 34 + col1 AS col2 FROM tab2 ---- 51 65 93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col1 * tab1.col0 ) + col2 * + col0 col0 FROM tab1 ---- 3008 6640 84 query I rowsort SELECT DISTINCT - col1 * 80 AS col0 FROM tab1 ---- -1040 -2080 -800 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6382 SELECT + CAST( + col2 * col0 + 82 AS SIGNED ) FROM tab0 ---- 117 7380 874 skipif mysql # not compatible query I rowsort label-6382 SELECT + CAST ( + col2 * col0 + 82 AS INTEGER ) FROM tab0 ---- 117 7380 874 query I rowsort SELECT - + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT + + col0 * + cor0.col1 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6385 SELECT + - col2 + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6385 SELECT + - col2 + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + 51 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4 query I rowsort SELECT DISTINCT + ( col0 + - col0 ) * col0 * tab1.col1 AS col1 FROM tab1 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6388 SELECT ALL col2 DIV col1 AS col1 FROM tab1 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-6388 SELECT ALL col2 / col1 AS col1 FROM tab1 ---- 2 5 7 query I rowsort SELECT 92 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- 2392 2484 3496 query I rowsort SELECT DISTINCT + 84 + col1 AS col2 FROM tab0 AS cor0 ---- 170 175 181 query I rowsort SELECT ALL cor0.col2 + + col2 - col2 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT ALL - col1 + ( cor0.col0 ) AS col0 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT ALL 65 * tab1.col0 * ( col0 ) FROM tab1 ---- 266240 416000 585 query I rowsort SELECT cor0.col0 * col0 + + col2 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT ALL + col1 + + ( col0 ) AS col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT + col1 * + 53 + 97 * col1 + 23 AS col1 FROM tab1 AS cor0 ---- 1523 1973 3923 query I rowsort SELECT col2 * col1 - col0 * + col1 * 53 FROM tab0 AS cor0 ---- -106554 -179838 -421785 onlyif mysql # use DIV operator for integer division query I rowsort label-6398 SELECT DISTINCT + col1 - col0 DIV col0 FROM tab2 AS cor0 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-6398 SELECT DISTINCT + col1 - col0 / col0 FROM tab2 AS cor0 ---- 16 30 58 onlyif mysql # use DIV operator for integer division query I rowsort label-6399 SELECT + col1 + + col1 DIV col1 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-6399 SELECT + col1 + + col1 / col1 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT + col0 * col1 * - col2 - col1 FROM tab1 AS cor0 ---- -36490 -4238 -99853 query I rowsort SELECT ALL col2 * - col1 + + col2 * + col1 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col1 + ( - cor0.col2 * col2 ) AS col0 FROM tab1 AS cor0 ---- -2890 -3239 -9203 query I rowsort SELECT + 65 + col0 FROM tab0 ---- 100 154 89 query I rowsort SELECT DISTINCT - cor0.col0 FROM tab0, tab2, tab0 AS cor0, tab1 ---- -24 -35 -89 query I rowsort SELECT + tab1.col2 * col0 - 82 FROM tab1 ---- 3566 7598 80 query I rowsort SELECT ALL - 36 AS col2 FROM tab1 AS cor0 ---- -36 -36 -36 query I rowsort SELECT ALL + col0 * + col2 AS col2 FROM tab1 cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-6408 SELECT col2 DIV + col2 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-6408 SELECT col2 / + col2 col2 FROM tab0 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 40 + - col1 col2 FROM tab0 AS cor0 ---- -126 -131 -137 query I rowsort SELECT 82 AS col2 FROM tab0 cor0 ---- 82 82 82 query I rowsort SELECT - 91 + + col0 * - col2 AS col1 FROM tab1 AS cor0 ---- -253 -3739 -7771 query I rowsort SELECT ALL + 98 * + 53 + col2 * 51 * col2 FROM tab0 AS cor0 ---- 348118 5245 60733 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6413 SELECT CAST( - 24 AS SIGNED ) * col0 + + cor0.col2 FROM tab2 AS cor0 ---- -141 -1846 -1858 skipif mysql # not compatible query I rowsort label-6413 SELECT CAST ( - 24 AS INTEGER ) * col0 + + cor0.col2 FROM tab2 AS cor0 ---- -141 -1846 -1858 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6414 SELECT tab0.col2 * + CAST( col0 AS SIGNED ) AS col1 FROM tab0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-6414 SELECT tab0.col2 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 ---- 35 7298 792 query I rowsort SELECT col2 * ( + col2 ) FROM tab0 ---- 1 1089 6724 query I rowsort SELECT - col0 * 26 * + col2 + 83 FROM tab0 ---- -189665 -20509 -827 query I rowsort SELECT DISTINCT + col2 + 86 AS col2 FROM tab1 AS cor0 ---- 140 143 182 query I rowsort SELECT - col1 * - col2 - 4 * - cor0.col2 FROM tab0 AS cor0 ---- 101 2970 7790 query I rowsort SELECT DISTINCT col1 * + 46 + col0 FROM tab2 AS cor0 ---- 1433 2792 861 query I rowsort SELECT - col1 + - ( - col0 ) FROM tab2 AS cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * col2 + + col0 * col2 + cor0.col1 col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT + col1 + - 72 FROM tab2 cor0 ---- -13 -41 -55 query I rowsort SELECT - cor0.col0 + col1 AS col1 FROM tab0 cor0 ---- 2 62 62 query I rowsort SELECT - + col1 * ( cor0.col1 * + col0 ) + col0 + + col2 FROM tab2 AS cor0 ---- -22714 -271414 -6693 query I rowsort SELECT - - cor0.col1 * + col1 AS col2 FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT - ( col1 ) * col2 - + 36 FROM tab0 ---- -133 -2874 -7498 query I rowsort SELECT DISTINCT 21 * + col0 - col2 AS col2 FROM tab1 ---- 1287 1584 9 onlyif mysql # use DIV operator for integer division query I rowsort label-6428 SELECT DISTINCT 37 - - tab2.col1 DIV + col1 AS col0 FROM tab2 ---- 38 skipif mysql # not compatible query I rowsort label-6428 SELECT DISTINCT 37 - - tab2.col1 / + col1 AS col0 FROM tab2 ---- 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6429 SELECT DISTINCT col2 - - col2 * - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-6429 SELECT DISTINCT col2 - - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6430 SELECT + tab2.col1 DIV col1 AS col1 FROM tab2 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6430 SELECT + tab2.col1 / col1 AS col1 FROM tab2 ---- 1 1 1 query I rowsort SELECT ( col0 ) + col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT col0 * tab0.col2 * + ( tab0.col2 ) FROM tab0 ---- 26136 35 598436 query I rowsort SELECT + - col2 * - col2 + cor0.col1 * + col0 FROM tab0 AS cor0 ---- 14823 3153 3396 query I rowsort SELECT col0 + - 81 FROM tab2 AS cor0 ---- -2 -3 -74 query I rowsort SELECT DISTINCT - tab2.col2 + - 74 AS col1 FROM tab2 ---- -100 -101 -112 query I rowsort SELECT - col0 * 65 + ( + col2 * + col2 + + col0 ) AS col0 FROM tab0 ---- -2239 -447 1028 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * ( col1 ) * - tab1.col2 col2 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT ALL cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT ALL - col1 + col1 * 32 FROM tab0 ---- 2666 2821 3007 query I rowsort SELECT ALL - cor0.col0 * col1 + col0 AS col1 FROM tab2 AS cor0 ---- -1264 -210 -4524 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6441 SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + ( col1 ) / - col0 AS col0 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-6441 SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + ( col1 ) / - col0 AS col0 FROM tab2 ---- NULL query I rowsort SELECT DISTINCT 81 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( cor0.col2 ) * + col0 col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT + + ( col1 ) + 8 FROM tab0 AS cor0 ---- 105 94 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 84 col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1 ---- 81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9 query I rowsort SELECT ALL - tab2.col1 * + ( tab2.col1 * - ( + tab2.col2 ) ) AS col2 FROM tab2 ---- 10982 25947 90506 query I rowsort SELECT ALL - col0 * - col1 * col1 + col2 * + tab2.col1 FROM tab2 ---- 23477 273052 7564 query I rowsort SELECT col2 - + col2 * - col1 AS col0 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT col0 + + col2 + ( - col0 ) * - tab0.col1 * col1 FROM tab0 ---- 177561 329351 737180 query I rowsort SELECT DISTINCT col2 * - col0 + col1 * col0 FROM tab1 ---- -3008 -6640 -84 query I rowsort SELECT ALL - 52 - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -106 -109 -148 query I rowsort SELECT ALL 58 AS col2 FROM tab2 AS cor0 ---- 58 58 58 query I rowsort SELECT DISTINCT 64 * + col2 * col1 FROM tab2 AS cor0 ---- 41344 53568 98176 query I rowsort SELECT ALL + 75 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 22042bfd4d787415457a42bb93d48eea query I rowsort SELECT + - cor0.col1 * col0 + col2 * col0 FROM tab2 AS cor0 ---- -2574 -28 1659 query I rowsort SELECT DISTINCT ( + col2 ) + + col0 FROM tab1 cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT - 41 * - col2 - - col0 AS col0 FROM tab2 AS cor0 ---- 1114 1144 1637 query I rowsort SELECT ALL + 40 AS col1 FROM tab2 AS cor0 ---- 40 40 40 query I rowsort SELECT ALL - 54 AS col1 FROM tab2 ---- -54 -54 -54 onlyif mysql # use DIV operator for integer division query I rowsort label-6460 SELECT + col2 DIV + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6460 SELECT + col2 / + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - - 94 FROM tab2 AS cor0 ---- 94 94 94 query I rowsort SELECT DISTINCT + - 4 FROM tab1 AS cor0 ---- -4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + cor0.col1 * col0 col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT ( col0 ) * + col2 * - col0 FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT ALL + - col2 - col1 AS col2 FROM tab1 AS cor0 ---- -109 -67 -80 query III rowsort SELECT ALL * FROM tab2 WHERE col0 NOT IN ( + col1 * col2 - + col2 ) AND ( NULL ) BETWEEN NULL AND - col1 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a onlyif mysql # use DIV operator for integer division query I rowsort label-6468 SELECT tab1.col1 DIV col1 AS col0 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6468 SELECT tab1.col1 / col1 AS col0 FROM tab1 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 77 * + ( + col1 + + col1 ) col1 FROM tab0 ---- 13244 14014 14938 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6470 SELECT ALL - + CAST( - col0 AS SIGNED ) + col2 * + col2 AS col0 FROM tab1 cor0 ---- 2919 3313 9296 skipif mysql # not compatible query I rowsort label-6470 SELECT ALL - + CAST ( - col0 AS INTEGER ) + col2 * + col2 AS col0 FROM tab1 cor0 ---- 2919 3313 9296 query I rowsort SELECT ALL - + 10 AS col0 FROM tab2 AS cor0 ---- -10 -10 -10 query I rowsort SELECT + ( - col2 ) FROM tab0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT col1 * + 13 FROM tab0 ---- 1118 1183 1261 query I rowsort SELECT - 85 + - col0 FROM tab1 ---- -149 -165 -88 query I rowsort SELECT ALL - ( + col0 ) + col1 + + col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT + col0 + + 65 FROM tab2 AS cor0 ---- 143 144 72 query I rowsort SELECT ALL + ( col2 ) * col1 AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT - 45 + + col1 FROM tab0 AS cor0 ---- 41 46 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + ( col1 ) col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - - col2 * 15 * col1 FROM tab1 AS cor0 ---- 18720 21060 8550 query I rowsort SELECT - 45 * col2 FROM tab0 AS cor0 ---- -1485 -3690 -45 query I rowsort SELECT col2 * - col2 * - col2 AS col1 FROM tab1 AS cor0 ---- 157464 185193 884736 query I rowsort SELECT ALL col1 + cor0.col2 + col0 FROM tab0 AS cor0 ---- 133 143 262 query I rowsort SELECT DISTINCT + 83 - - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 116 165 84 query I rowsort SELECT ALL - cor0.col1 * - cor0.col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 128 160 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + col0 * - col2 col1 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT + 6 * + col2 * - col1 + col1 AS col1 FROM tab1 ---- -3410 -7475 -8398 query I rowsort SELECT col2 * col2 + col2 * col2 AS col1 FROM tab0 ---- 13448 2 2178 query I rowsort SELECT + 42 * - 85 * + tab1.col2 + tab1.col0 AS col0 FROM tab1 ---- -192777 -203426 -342640 query I rowsort SELECT 94 + 97 AS col0 FROM tab0 ---- 191 191 191 onlyif mysql # use DIV operator for integer division query I rowsort label-6492 SELECT DISTINCT - 86 DIV - col1 AS col2 FROM tab2 ---- 1 2 5 skipif mysql # not compatible query I rowsort label-6492 SELECT DISTINCT - 86 / - col1 AS col2 FROM tab2 ---- 1 2 5 onlyif mysql # use DIV operator for integer division query I rowsort label-6493 SELECT - 65 * + col0 + + tab0.col2 DIV + col1 AS col1 FROM tab0 ---- -1560 -2275 -5785 skipif mysql # not compatible query I rowsort label-6493 SELECT - 65 * + col0 + + tab0.col2 / + col1 AS col1 FROM tab0 ---- -1560 -2275 -5785 query I rowsort SELECT DISTINCT + 43 AS col1 FROM tab1 ---- 43 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6495 SELECT + CAST( NULL AS SIGNED ) * 29 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif mysql # not compatible query I rowsort label-6495 SELECT + CAST ( NULL AS INTEGER ) * 29 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c onlyif mysql # use DIV operator for integer division query I rowsort label-6496 SELECT - col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-6496 SELECT - col1 / + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -4 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6497 SELECT ( - col0 ) DIV - cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6497 SELECT ( - col0 ) / - cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6498 SELECT + - 83 DIV cor0.col1 col1 FROM tab2 AS cor0 ---- -1 -2 -4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6498 SELECT + - 83 / cor0.col1 col1 FROM tab2 AS cor0 ---- -1 -2 -4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6499 SELECT CAST( NULL AS SIGNED ) + + 92 + col2 col1 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6499 SELECT CAST ( NULL AS INTEGER ) + + 92 + col2 col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col1 + + col0 - + col1 FROM tab2 ---- 7 78 79 query I rowsort SELECT col0 * 55 * - col2 + col2 - col1 * tab0.col2 AS col0 FROM tab0 ---- -2021 -408770 -46365 query I rowsort SELECT + col1 * - 97 + col1 FROM tab2 ---- -1632 -2976 -5664 query I rowsort SELECT - col0 + + col0 * + col2 FROM tab2 ---- 182 1950 2923 query I rowsort SELECT ALL 70 AS col2 FROM tab1 ---- 70 70 70 query I rowsort SELECT + 13 * col2 FROM tab0 ---- 1066 13 429 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col2 + - 82 col2 FROM tab2 AS cor0 ---- -1526 -758 -811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * - col0 col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT + cor0.col0 * ( - 51 * + col2 ) AS col0 FROM tab0 AS cor0 ---- -1785 -372198 -40392 query I rowsort SELECT ALL - col1 * col2 + col1 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT ALL col2 + 37 * - col0 FROM tab0 ---- -1294 -3211 -855 query I rowsort SELECT ALL + col2 + 69 FROM tab2 ---- 107 95 96 query I rowsort SELECT 74 AS col2 FROM tab0, tab0 cor0 ---- 9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31 query I rowsort SELECT + 65 + - cor0.col0 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 5c9ab66aca99a79f259390cd549de016 query I rowsort SELECT - col2 * ( + ( - col2 ) ) FROM tab1 ---- 2916 3249 9216 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6515 SELECT col1 + CAST( NULL AS DECIMAL ) * - col2 col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6515 SELECT col1 + CAST ( NULL AS REAL ) * - col2 col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6516 SELECT DISTINCT - col1 + + col1 DIV col0 AS col0 FROM tab2 AS cor0 ---- -17 -27 -59 skipif mysql # not compatible query I rowsort label-6516 SELECT DISTINCT - col1 + + col1 / col0 AS col0 FROM tab2 AS cor0 ---- -17 -27 -59 skipif mysql # not compatible query I rowsort SELECT CAST ( cor0.col2 AS REAL ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL ( - 46 ) + + col1 FROM tab0 AS cor0 ---- 40 45 51 query I rowsort SELECT ALL - - col1 * col1 + + col0 FROM tab1 cor0 ---- 164 249 679 query I rowsort SELECT ALL 22 + - 30 AS col1 FROM tab0 AS cor0 ---- -8 -8 -8 query I rowsort SELECT DISTINCT 33 * 46 AS col1 FROM tab2 AS cor0 ---- 1518 query I rowsort SELECT + cor0.col0 + col2 AS col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT - 52 * col0 + - col2 FROM tab0 AS cor0 ---- -1281 -1821 -4710 query I rowsort SELECT + tab1.col2 + - 98 * + tab1.col1 FROM tab1 ---- -1178 -2494 -923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6525 SELECT CAST( + 91 AS SIGNED ) + + col0 FROM tab0 AS cor0 ---- 115 126 180 skipif mysql # not compatible query I rowsort label-6525 SELECT CAST ( + 91 AS INTEGER ) + + col0 FROM tab0 AS cor0 ---- 115 126 180 query I rowsort SELECT DISTINCT - 24 + - col0 AS col2 FROM tab0 AS cor0 ---- -113 -48 -59 query I rowsort SELECT + + 73 * - col2 AS col2 FROM tab1 AS cor0 ---- -3942 -4161 -7008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col2 col1 FROM tab2 AS cor0 ---- -1444 -676 -729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6529 SELECT CAST( + 84 AS SIGNED ) + - col0 col2 FROM tab1 AS cor0 ---- 20 4 81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6529 SELECT CAST ( + 84 AS INTEGER ) + - col0 col2 FROM tab1 AS cor0 ---- 20 4 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6530 SELECT DISTINCT CAST( NULL AS SIGNED ) / cor0.col0 + + cor0.col0 / - 10 - - cor0.col2 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6530 SELECT DISTINCT CAST ( NULL AS INTEGER ) / cor0.col0 + + cor0.col0 / - 10 - - cor0.col2 AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ( 92 ) + - col1 AS col2 FROM tab2 cor0 ---- 33 61 75 onlyif mysql # use DIV operator for integer division query I rowsort label-6532 SELECT ALL - col2 DIV + 92 FROM tab1 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-6532 SELECT ALL - col2 / + 92 FROM tab1 cor0 ---- -1 0 0 query I rowsort SELECT - 78 * + 19 FROM tab0 AS cor0 ---- -1482 -1482 -1482 query I rowsort SELECT + + 9 FROM tab1 AS cor0 ---- 9 9 9 query I rowsort SELECT ALL + ( - col0 ) + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT ALL + 21 * 74 FROM tab1 cor0 ---- 1554 1554 1554 query I rowsort SELECT DISTINCT 74 * ( col0 ) FROM tab1 AS cor0 ---- 222 4736 5920 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6538 SELECT + - col2 * col0 - CAST( NULL AS DECIMAL ) / col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6538 SELECT + - col2 * col0 - CAST ( NULL AS REAL ) / col1 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT - + col1 + col2 + 14 AS col1 FROM tab1 AS cor0 ---- 42 61 97 query I rowsort SELECT ALL - 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to de0811e670e75d2aeeb657e32bddb0c0 query I rowsort SELECT ALL + 84 + + col2 * - 33 * col0 FROM tab0 AS cor0 ---- -1071 -240750 -26052 query I rowsort SELECT DISTINCT - 6 * cor0.col1 * col1 AS col2 FROM tab0 AS cor0 ---- -44376 -49686 -56454 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 84 * col0 col2 FROM tab0 cor0 ---- -2016 -2940 -7476 query I rowsort SELECT 37 * col2 - ( cor0.col1 + - col2 ) * 9 FROM tab0 AS cor0 ---- -827 2953 744 query I rowsort SELECT ALL - 86 + col2 FROM tab1 AS cor0 ---- -29 -32 10 query I rowsort SELECT ( + col0 + - tab1.col2 ) AS col2 FROM tab1 ---- -16 -51 7 onlyif mysql # use DIV operator for integer division query I rowsort label-6547 SELECT - col0 + col2 DIV ( col0 ) FROM tab0 AS cor0 ---- -23 -35 -89 skipif mysql # not compatible query I rowsort label-6547 SELECT - col0 + col2 / ( col0 ) FROM tab0 AS cor0 ---- -23 -35 -89 query I rowsort SELECT DISTINCT + - col1 * - col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + col0 + col2 * - col2 + + col2 AS col0 FROM tab1 AS cor0 ---- -2859 -3128 -9040 query I rowsort SELECT ALL - cor0.col0 + + col1 * - col1 FROM tab1 AS cor0 ---- -164 -249 -679 query I rowsort SELECT - - col1 + - ( - col1 ) * - cor0.col2 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT ALL - + col0 * + ( + col2 ) * + col1 AS col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT + col0 + 79 FROM tab2 AS cor0 ---- 157 158 86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 + + ( - col2 ) col2 FROM tab0 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6555 SELECT ALL col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6555 SELECT ALL col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6556 SELECT ALL col2 DIV + col1 + 44 DIV + ( - col0 ) FROM tab1 ---- -12 5 7 skipif mysql # not compatible query I rowsort label-6556 SELECT ALL col2 / + col1 + 44 / + ( - col0 ) FROM tab1 ---- -12 5 7 query I rowsort SELECT + - 30 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to a96370a8187089b6b83ce9bfbade5142 query I rowsort SELECT DISTINCT + 78 * col0 + col0 * ( + col0 * 15 ) FROM tab0 ---- 10512 125757 21105 query I rowsort SELECT + + 80 AS col0 FROM tab1 cor0 ---- 80 80 80 query I rowsort SELECT DISTINCT + + ( - col1 ) * + col1 AS col1 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT - + col0 + - col0 * - ( 39 * col1 ) FROM tab2 AS cor0 ---- 179400 52298 8456 onlyif mysql # use DIV operator for integer division query I rowsort label-6562 SELECT DISTINCT col2 DIV - col1 col0 FROM tab0 cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6562 SELECT DISTINCT col2 / - col1 col0 FROM tab0 cor0 ---- 0 query I rowsort SELECT DISTINCT col2 + + ( col0 ) AS col2 FROM tab1 AS cor0 ---- 121 176 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + 10 * + ( cor0.col2 + + col1 ) col1 FROM tab2 AS cor0 ---- 533 549 791 query I rowsort SELECT + - col0 * + ( col1 ) + cor0.col1 * - col2 FROM tab0 AS cor0 ---- -15561 -3492 -4902 query I rowsort SELECT ALL - col1 + ( col1 ) * + cor0.col1 FROM tab2 cor0 ---- 272 3422 930 onlyif mysql # use DIV operator for integer division query I rowsort label-6567 SELECT DISTINCT + cor0.col2 DIV - cor0.col1 + - col0 * col2 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3004 skipif mysql # not compatible query I rowsort label-6567 SELECT DISTINCT + cor0.col2 / - cor0.col1 + - col0 * col2 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3004 query I rowsort SELECT DISTINCT col2 * - 7 + cor0.col0 AS col1 FROM tab0 cor0 ---- -207 -485 28 query I rowsort SELECT DISTINCT 44 * col1 + - col0 FROM tab1 ---- 1141 376 492 query I rowsort SELECT DISTINCT col0 - - col2 AS col2 FROM tab1 ---- 121 176 57 query I rowsort SELECT ALL 66 AS col2 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 897b6122ac98340b78905f39d81897fc query I rowsort SELECT DISTINCT - 30 - - col0 AS col2 FROM tab1 ---- -27 34 50 query I rowsort SELECT DISTINCT - ( col0 ) * col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT - ( col2 ) * col0 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT + - 97 * - col2 FROM tab0 AS cor0 ---- 3201 7954 97 onlyif mysql # use DIV operator for integer division query I rowsort label-6576 SELECT + + ( + col2 ) + - col1 * col2 DIV + col1 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6576 SELECT + + ( + col2 ) + - col1 * col2 / + col1 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 + + col2 * - col0 * + 19 FROM tab1 AS cor0 ---- -145907 -3052 -69302 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6578 SELECT ALL + - CAST( - col2 AS SIGNED ) * - col0 + - col0 FROM tab2 AS cor0 ---- -196 -2106 -3081 skipif mysql # not compatible query I rowsort label-6578 SELECT ALL + - CAST ( - col2 AS INTEGER ) * - col0 + - col0 FROM tab2 AS cor0 ---- -196 -2106 -3081 query I rowsort SELECT DISTINCT - + 26 * ( col1 + col2 ) AS col0 FROM tab2 AS cor0 ---- -1430 -1508 -2210 query I rowsort SELECT DISTINCT + col2 + ( ( col0 ) ) * + col1 FROM tab0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + - ( + col2 + + col1 ) col2 FROM tab0 AS cor0 ---- -195 -205 -264 query I rowsort SELECT DISTINCT - col1 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT 40 * col0 AS col2 FROM tab1 AS cor0 ---- 120 2560 3200 query I rowsort SELECT + col1 + - 29 FROM tab0 AS cor0 ---- 57 62 68 query I rowsort SELECT DISTINCT + - 95 * col1 FROM tab1 AS cor0 ---- -1235 -2470 -950 query I rowsort SELECT DISTINCT - + cor0.col2 + col0 FROM tab1 AS cor0 ---- -16 -51 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6587 SELECT ALL - CAST( + cor0.col1 AS SIGNED ) * col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-6587 SELECT ALL - CAST ( + cor0.col1 AS INTEGER ) * col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL - col1 * ( + col1 + - cor0.col2 ) AS col0 FROM tab0 cor0 ---- -4558 -819 -9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * - 18 col0 FROM tab2 ---- -1062 -306 -558 onlyif mysql # use DIV operator for integer division query I rowsort label-6590 SELECT + col1 DIV + col0 AS col2 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-6590 SELECT + col1 / + col0 AS col2 FROM tab1 AS cor0 ---- 0 0 8 onlyif mysql # use DIV operator for integer division query I rowsort label-6591 SELECT + - 81 DIV + col0 FROM tab0 AS cor0 ---- -2 -3 0 skipif mysql # not compatible query I rowsort label-6591 SELECT + - 81 / + col0 FROM tab0 AS cor0 ---- -2 -3 0 query I rowsort SELECT - col2 * + col2 + - 15 * - col0 AS col2 FROM tab1 cor0 ---- -2289 -2871 -8016 query I rowsort SELECT - cor0.col0 * - cor0.col1 FROM tab1 AS cor0 ---- 1040 640 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6594 SELECT ALL - CAST( tab0.col0 AS SIGNED ) col2 FROM tab0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6594 SELECT ALL - CAST ( tab0.col0 AS INTEGER ) col2 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT ( col2 + + col1 ) FROM tab1 ---- 109 67 80 query I rowsort SELECT - tab1.col0 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT + 94 AS col1 FROM tab0 ---- 94 94 94 query I rowsort SELECT + + 12 + col0 FROM tab1 AS cor0 ---- 15 76 92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 col2 FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT + 90 AS col0 FROM tab1, tab1 AS cor0 ---- 90 query I rowsort SELECT col1 * 28 * + 98 + + col1 FROM tab2 AS cor0 ---- 161955 46665 85095 onlyif mysql # use DIV operator for integer division query I rowsort label-6602 SELECT - cor0.col2 + 89 DIV col0 AS col0 FROM tab1 AS cor0 ---- -25 -56 -95 skipif mysql # not compatible query I rowsort label-6602 SELECT - cor0.col2 + 89 / col0 AS col0 FROM tab1 AS cor0 ---- -25 -56 -95 query I rowsort SELECT ( 38 ) FROM tab0 ---- 38 38 38 query I rowsort SELECT DISTINCT col1 * + col1 + col2 FROM tab1 AS cor0 ---- 157 265 730 query I rowsort SELECT - 17 AS col1 FROM tab0 AS cor0 ---- -17 -17 -17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + + col2 col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL - col2 + - 13 * cor0.col2 FROM tab0 cor0 ---- -1148 -14 -462 query I rowsort SELECT - 78 * - ( col0 ) FROM tab1 ---- 234 4992 6240 query I rowsort SELECT DISTINCT col2 * - 95 FROM tab2 ---- -2470 -2565 -3610 query I rowsort SELECT 44 * tab1.col1 AS col1 FROM tab1 ---- 1144 440 572 query I rowsort SELECT ALL - 65 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 744531575c1b6461ed2916d4940e4d23 onlyif mysql # use DIV operator for integer division query I rowsort label-6612 SELECT - 43 + ( col0 ) DIV - 75 AS col2 FROM tab1 AS cor0 ---- -43 -43 -44 skipif mysql # not compatible query I rowsort label-6612 SELECT - 43 + ( col0 ) / - 75 AS col2 FROM tab1 AS cor0 ---- -43 -43 -44 query I rowsort SELECT - + 83 + - col1 FROM tab0 AS cor0 ---- -169 -174 -180 query I rowsort SELECT ALL - + 81 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1053 -2106 -810 query I rowsort SELECT ALL - - cor0.col2 * + cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8 query I rowsort SELECT DISTINCT - - 93 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 ---- 93 query I rowsort SELECT ALL col1 * 27 FROM tab1 AS cor0 ---- 270 351 702 query I rowsort SELECT col0 * + 60 + - col0 FROM tab2 AS cor0 ---- 413 4602 4661 query I rowsort SELECT ALL + + col2 * cor0.col2 - col2 AS col0 FROM tab2 AS cor0 ---- 1406 650 702 query I rowsort SELECT DISTINCT + cor0.col0 FROM tab0, tab0 cor0 ---- 24 35 89 query I rowsort SELECT ALL + col1 + + 83 AS col1 FROM tab0 cor0 ---- 169 174 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * col2 col0 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT ( - 95 ) AS col0 FROM tab2 ---- -95 query I rowsort SELECT + col2 * + cor0.col0 + + 59 + col0 AS col2 FROM tab0 AS cor0 ---- 129 7446 875 query I rowsort SELECT - tab2.col1 AS col1 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT DISTINCT - 94 AS col1 FROM tab0 ---- -94 query I rowsort SELECT - col2 * col1 + - 17 FROM tab2 AS cor0 ---- -1551 -663 -854 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6628 SELECT DISTINCT + col2 * - CAST( - cor0.col1 AS SIGNED ) + - col1 + - 70 FROM tab1 AS cor0 ---- 1165 1308 490 skipif mysql # not compatible query I rowsort label-6628 SELECT DISTINCT + col2 * - CAST ( - cor0.col1 AS INTEGER ) + - col1 + - 70 FROM tab1 AS cor0 ---- 1165 1308 490 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6629 SELECT DISTINCT - col1 * - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort label-6629 SELECT DISTINCT - col1 * - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT + 51 FROM tab1 ---- 51 51 51 query I rowsort SELECT + 32 * col0 * - col1 AS col0 FROM tab1 ---- -20480 -2496 -33280 query I rowsort SELECT - 62 * col2 FROM tab1 ---- -3348 -3534 -5952 query I rowsort SELECT 11 * cor0.col2 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to 3cc87622a8962ac006100580f8aa516b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6634 SELECT DISTINCT + col2 + - CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-6634 SELECT DISTINCT + col2 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0 ---- 0 query I rowsort SELECT 2 * - col0 AS col0 FROM tab1 ---- -128 -160 -6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6636 SELECT ALL col1 + CAST( + col2 AS SIGNED ) * col1 * + col0 FROM tab0 cor0 ---- 3492 664209 68198 skipif mysql # not compatible query I rowsort label-6636 SELECT ALL col1 + CAST ( + col2 AS INTEGER ) * col1 * + col0 FROM tab0 cor0 ---- 3492 664209 68198 query I rowsort SELECT DISTINCT + + cor0.col0 * + 36 FROM tab1 AS cor0 ---- 108 2304 2880 query I rowsort SELECT ALL + col2 * - 55 FROM tab1 AS cor0 ---- -2970 -3135 -5280 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * 86 + col2 + col1 col0 FROM tab2 AS cor0 ---- 660 6793 6849 query I rowsort SELECT - 79 * 45 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 9243c2957cd4725439654491fecc5079 onlyif mysql # use DIV operator for integer division query I rowsort label-6641 SELECT ALL - col0 * 83 DIV col1 FROM tab0 ---- -23 -29 -81 skipif mysql # not compatible query I rowsort label-6641 SELECT ALL - col0 * 83 / col1 FROM tab0 ---- -23 -29 -81 onlyif mysql # use DIV operator for integer division query I rowsort label-6642 SELECT DISTINCT col2 + col2 DIV - col1 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-6642 SELECT DISTINCT col2 + col2 / - col1 FROM tab0 ---- 1 33 82 query I rowsort SELECT DISTINCT - col1 + - ( - col2 ) * col2 AS col2 FROM tab1 AS cor0 ---- 2890 3239 9203 query I rowsort SELECT DISTINCT + - col1 * col0 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + col0 + + 98 AS col2 FROM tab1 AS cor0 ---- 101 162 178 query I rowsort SELECT ALL col2 * + 83 AS col0 FROM tab1 ---- 4482 4731 7968 query I rowsort SELECT ALL + col2 * 31 FROM tab0 cor0 ---- 1023 2542 31 query I rowsort SELECT + 48 - - 77 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 5ea5de51b4e638a78c890dd7b3eaef7c query I rowsort SELECT + col2 + col1 * tab2.col0 AS col0 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT ALL 53 * tab0.col2 AS col0 FROM tab0 ---- 1749 4346 53 query I rowsort SELECT 14 * - col0 AS col0 FROM tab2 ---- -1092 -1106 -98 query I rowsort SELECT + 46 - tab0.col2 AS col0 FROM tab0 ---- -36 13 45 query I rowsort SELECT 92 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a query I rowsort SELECT 10 - col2 * - col0 AS col0 FROM tab2 ---- 199 2038 3012 query I rowsort SELECT ALL + 60 FROM tab0, tab2 AS cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT DISTINCT 47 + tab1.col2 FROM tab1, tab1 AS cor0 ---- 101 104 143 query I rowsort SELECT + 60 + + col0 FROM tab0 AS cor0 ---- 149 84 95 onlyif mysql # use DIV operator for integer division query I rowsort label-6658 SELECT ALL + col0 DIV col2 + 24 + - col2 col2 FROM tab0 AS cor0 ---- -57 -9 58 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6658 SELECT ALL + col0 / col2 + 24 + - col2 col2 FROM tab0 AS cor0 ---- -57 -9 58 query I rowsort SELECT DISTINCT 75 + col1 AS col2 FROM tab0 cor0 ---- 161 166 172 query I rowsort SELECT - cor0.col1 * col1 + + col1 FROM tab0 AS cor0 ---- -7310 -8190 -9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + col1 col2 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT + col2 * col1 + + col1 FROM tab1 cor0 ---- 1261 1430 580 query I rowsort SELECT ALL + - cor0.col0 + + cor0.col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT col2 + col0 * - col0 * col2 AS col2 FROM tab0 AS cor0 ---- -1224 -18975 -649440 query I rowsort SELECT DISTINCT + + col0 - col1 AS col1 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT col2 + - col1 * 58 + + col1 AS col0 FROM tab0 cor0 ---- -4869 -5105 -5528 query I rowsort SELECT DISTINCT col2 * col1 * - 12 - col2 * col0 FROM tab2 AS cor0 ---- -10233 -10754 -20436 query I rowsort SELECT col0 * col1 + - col0 FROM tab0 AS cor0 ---- 2040 3360 8010 query I rowsort SELECT + - col2 - col0 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- -1226 -609 -8003 onlyif mysql # use DIV operator for integer division query I rowsort label-6670 SELECT DISTINCT - - col2 + - col1 DIV 5 + - 27 AS col2 FROM tab2 AS cor0 ---- -12 -6 8 skipif mysql # not compatible query I rowsort label-6670 SELECT DISTINCT - - col2 + - col1 / 5 + - 27 AS col2 FROM tab2 AS cor0 ---- -12 -6 8 query I rowsort SELECT ( 7 ) AS col2 FROM tab1, tab0, tab0 AS cor0, tab2 AS cor1 ---- 81 values hashing to bd991c690468eea3ef45a96817ca3617 query I rowsort SELECT + cor0.col0 AS col0 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 query I rowsort SELECT + - cor0.col1 * col2 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + col1 * + 56 AS col1 FROM tab1 ---- 1456 560 728 query I rowsort SELECT ALL - - col0 + - 19 FROM tab0 AS cor0 ---- 16 5 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 8 + - cor0.col2 col1 FROM tab2 AS cor0 ---- -34 -35 -46 query I rowsort SELECT DISTINCT col1 * - col0 * + col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT ALL + col1 + cor0.col2 * - col0 FROM tab0 cor0 ---- -706 -7207 62 query I rowsort SELECT ALL + + col2 + 98 AS col1 FROM tab2 AS cor0 ---- 124 125 136 query I rowsort SELECT DISTINCT - col0 * - 73 + + col0 FROM tab1 AS cor0 ---- 222 4736 5920 query I rowsort SELECT DISTINCT - col0 * ( + col2 ) FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL + col2 * col1 - col2 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT - - 76 + - cor0.col1 * col1 FROM tab0 AS cor0 ---- -7320 -8205 -9333 query I rowsort SELECT ALL - 25 FROM tab0 AS cor0 ---- -25 -25 -25 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6685 SELECT - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-6685 SELECT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT + col0 * col1 + - col0 AS col0 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT ALL cor0.col2 * ( col0 * + 37 ) - col0 * col2 AS col1 FROM tab0 cor0 ---- 1260 262728 28512 query I rowsort SELECT DISTINCT - - 3 + - col1 * col2 AS col2 FROM tab1 AS cor0 ---- -1245 -1401 -567 query I rowsort SELECT 20 * col0 + + 83 FROM tab2 AS cor0 ---- 1643 1663 223 onlyif mysql # use DIV operator for integer division query I rowsort label-6690 SELECT DISTINCT col0 DIV col0 AS col0 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-6690 SELECT DISTINCT col0 / col0 AS col0 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT + col0 + + col1 * col1 * col2 + col0 AS col0 FROM tab1 AS cor0 ---- 16384 36510 5828 query I rowsort SELECT + 11 * + col1 + - col0 AS col0 FROM tab2 ---- 108 334 571 query I rowsort SELECT DISTINCT - - 88 * col2 FROM tab2 AS cor0 ---- 2288 2376 3344 query I rowsort SELECT + 97 * col1 AS col2 FROM tab0 AS cor0 ---- 8342 8827 9409 query I rowsort SELECT ALL - 69 AS col2 FROM tab2 AS cor0 ---- -69 -69 -69 query I rowsort SELECT ALL - + cor0.col0 * + col0 * + 18 FROM tab1 AS cor0 ---- -115200 -162 -73728 query I rowsort SELECT - col2 * + col2 * col0 AS col2 FROM tab0 AS cor0 ---- -26136 -35 -598436 query I rowsort SELECT DISTINCT cor0.col1 * - cor0.col1 + col1 FROM tab1 AS cor0 ---- -156 -650 -90 query I rowsort SELECT ALL - + col0 * col0 FROM tab1 cor0 ---- -4096 -6400 -9 query I rowsort SELECT - col0 + col2 + - col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL - + 22 * - col2 FROM tab1 cor0 ---- 1188 1254 2112 query I rowsort SELECT ALL + col1 * + col0 + + ( col0 ) FROM tab1 cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT + + col0 * - col2 - - col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT DISTINCT col2 + 10 * col0 FROM tab2 AS cor0 ---- 806 828 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6705 SELECT ALL + col1 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6705 SELECT ALL + col1 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 + ( 16 ) AS col0 FROM tab2 cor0 ---- 23 94 95 query I rowsort SELECT 9 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6708 SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 cor0, tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-6708 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 cor0, tab0 AS cor1 ---- NULL query I rowsort SELECT DISTINCT 34 + col1 AS col1 FROM tab0 ---- 120 125 131 query I rowsort SELECT ALL + + col0 * col0 * col1 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT + + cor0.col2 + col0 + + 6 FROM tab2 cor0 ---- 110 123 40 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6712 SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6712 SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL col2 + 44 FROM tab2 AS cor0 ---- 70 71 82 onlyif mysql # use DIV operator for integer division query I rowsort label-6714 SELECT + - col0 + - ( col2 ) DIV - col0 AS col2 FROM tab2 AS cor0 ---- -4 -78 -79 skipif mysql # not compatible query I rowsort label-6714 SELECT + - col0 + - ( col2 ) / - col0 AS col2 FROM tab2 AS cor0 ---- -4 -78 -79 query I rowsort SELECT ALL col0 * + col0 + + col1 * + ( - col2 ) AS col0 FROM tab0 ---- -2262 1128 459 query I rowsort SELECT col1 + 91 + + col2 * + col0 AS col2 FROM tab2 AS cor0 ---- 2178 311 3110 query I rowsort SELECT - col2 + 52 + - 4 FROM tab2 cor0 ---- 10 21 22 query I rowsort SELECT - col2 + 15 * + cor0.col0 FROM tab0 AS cor0 ---- 1253 327 524 query I rowsort SELECT 16 + col0 * - col1 FROM tab1 AS cor0 ---- -1024 -62 -624 onlyif mysql # use DIV operator for integer division query I rowsort label-6720 SELECT + - col0 DIV + col2 + - col2 + + cor0.col0 FROM tab0 AS cor0 ---- -1 -9 6 skipif mysql # not compatible query I rowsort label-6720 SELECT + - col0 / + col2 + - col2 + + cor0.col0 FROM tab0 AS cor0 ---- -1 -9 6 query I rowsort SELECT + col1 * - col1 + col2 + + col1 AS col1 FROM tab1 AS cor0 ---- -33 -596 -60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6722 SELECT DISTINCT - 16 + + ( + col0 * + CAST( NULL AS SIGNED ) ) FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-6722 SELECT DISTINCT - 16 + + ( + col0 * + CAST ( NULL AS INTEGER ) ) FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 98 col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to f17b7008a7deae1eb5a2e707ec237638 query I rowsort SELECT ALL 70 * col2 * + ( - col1 ) FROM tab1 ---- -39900 -87360 -98280 query I rowsort SELECT ALL + 73 + - col0 FROM tab0 ---- -16 38 49 query I rowsort SELECT ALL 58 + col0 + + col2 FROM tab0 ---- 115 229 94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 79 col0 FROM tab0 cor0 ---- -79 -79 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 * + col0 col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL + cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1 ---- 81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 972 values hashing to 380241bbc503a31e70494611a87ffd99 query I rowsort SELECT - col2 * - col1 AS col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT + + col0 + ( - cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT 15 + - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -63 -64 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6734 SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6734 SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - + col1 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-6736 SELECT ALL - col1 DIV + col0 + col0 FROM tab0 AS cor0 ---- 21 33 88 skipif mysql # not compatible query I rowsort label-6736 SELECT ALL - col1 / + col0 + col0 FROM tab0 AS cor0 ---- 21 33 88 query I rowsort SELECT ALL col0 * col2 * + ( - col0 ) - col1 FROM tab2 AS cor0 ---- -1354 -158243 -237175 query I rowsort SELECT + - col2 + + ( - col2 ) * col2 FROM tab1 AS cor0 ---- -2970 -3306 -9312 query I rowsort SELECT - col1 * col1 - col0 * + col0 AS col1 FROM tab2 cor0 ---- -1010 -6530 -9565 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6740 SELECT col2 * + CAST( - 22 AS SIGNED ) AS col0 FROM tab1 ---- -1188 -1254 -2112 skipif mysql # not compatible query I rowsort label-6740 SELECT col2 * + CAST ( - 22 AS INTEGER ) AS col0 FROM tab1 ---- -1188 -1254 -2112 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6741 SELECT - col1 + + CAST( 32 AS SIGNED ) * col2 - col2 AS col2 FROM tab1 ---- 1648 1757 2963 skipif mysql # not compatible query I rowsort label-6741 SELECT - col1 + + CAST ( 32 AS INTEGER ) * col2 - col2 AS col2 FROM tab1 ---- 1648 1757 2963 query I rowsort SELECT 91 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT 10 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176 query I rowsort SELECT cor0.col1 + col1 * - col0 * + col0 FROM tab0 AS cor0 ---- -118728 -49450 -720720 query I rowsort SELECT + 99 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67 query I rowsort SELECT ALL - ( + 16 ) * + cor0.col0 FROM tab2 AS cor0 ---- -112 -1248 -1264 query I rowsort SELECT DISTINCT cor0.col1 + + col1 * - col0 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT + + ( - ( col0 ) ) + + col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + - col0 * col2 AS col0 FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT - + col2 * - col1 + + col1 AS col2 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT DISTINCT - ( + ( col0 ) ) FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT - tab0.col1 * ( tab0.col1 ) AS col2 FROM tab0 ---- -7396 -8281 -9409 query I rowsort SELECT ALL - col1 * + 24 AS col1 FROM tab1 ---- -240 -312 -624 query I rowsort SELECT - + ( col1 ) * col2 + + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1152 -1350 -513 onlyif mysql # use DIV operator for integer division query I rowsort label-6755 SELECT + col0 + + 59 DIV - col1 AS col0 FROM tab2 AS cor0 ---- 6 76 77 skipif mysql # not compatible query I rowsort label-6755 SELECT + col0 + + 59 / - col1 AS col0 FROM tab2 AS cor0 ---- 6 76 77 onlyif mysql # use DIV operator for integer division query I rowsort label-6756 SELECT + col0 DIV - col0 + - col0 FROM tab2 AS cor0 ---- -79 -8 -80 skipif mysql # not compatible query I rowsort label-6756 SELECT + col0 / - col0 + - col0 FROM tab2 AS cor0 ---- -79 -8 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-6757 SELECT + col0 * col1 DIV + col0 AS col1 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-6757 SELECT + col0 * col1 / + col0 AS col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT DISTINCT 61 FROM tab1, tab0 cor0 ---- 61 query I rowsort SELECT ALL + 40 * col1 AS col1 FROM tab2 AS cor0 ---- 1240 2360 680 query I rowsort SELECT ALL - 45 * - 65 AS col1 FROM tab1 AS cor0 ---- 2925 2925 2925 query I rowsort SELECT cor0.col2 * 6 * - col1 - ( col2 ) AS col2 FROM tab0 AS cor0 ---- -17061 -44854 -583 query I rowsort SELECT - col1 * + 82 FROM tab0 cor0 ---- -7052 -7462 -7954 query I rowsort SELECT - cor1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 85 * 41 col0 FROM tab1 AS cor0 ---- 3485 3485 3485 query I rowsort SELECT DISTINCT - - ( ( + col0 ) ) FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT - 94 + col0 AS col1 FROM tab0 AS cor0 ---- -5 -59 -70 query I rowsort SELECT 99 - - tab0.col2 FROM tab0 ---- 100 132 181 query I rowsort SELECT 34 AS col0 FROM tab1 ---- 34 34 34 query I rowsort SELECT DISTINCT - col0 * col0 + - col1 FROM tab2 ---- -6143 -6258 -80 query I rowsort SELECT DISTINCT col0 + col0 + tab2.col0 AS col1 FROM tab2 ---- 21 234 237 onlyif mysql # use DIV operator for integer division query I rowsort label-6771 SELECT DISTINCT + ( col0 ) + col1 DIV col1 + - col1 AS col2 FROM tab0 cor0 ---- -1 -61 skipif mysql # not compatible query I rowsort label-6771 SELECT DISTINCT + ( col0 ) + col1 / col1 + - col1 AS col2 FROM tab0 cor0 ---- -1 -61 query I rowsort SELECT DISTINCT + 4 AS col0 FROM tab2, tab0, tab2 AS cor0 ---- 4 query I rowsort SELECT ( + col2 * + col0 ) FROM tab1 ---- 162 3648 7680 query I rowsort SELECT ( - 94 ) - + col2 FROM tab1 cor0 ---- -148 -151 -190 query I rowsort SELECT - col2 * + 55 FROM tab1 ---- -2970 -3135 -5280 query I rowsort SELECT + tab1.col0 - 65 * 86 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to e76552f8298f7d5cb611f1b2d476e216 query I rowsort SELECT + col0 * - ( + 66 ) AS col0 FROM tab1 cor0 ---- -198 -4224 -5280 query I rowsort SELECT DISTINCT + - col1 + - col2 * - 22 FROM tab0 AS cor0 ---- -75 1713 640 onlyif mysql # use DIV operator for integer division query I rowsort label-6779 SELECT - col2 DIV ( - col1 ) AS col0 FROM tab2 cor0 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-6779 SELECT - col2 / ( - col1 ) AS col0 FROM tab2 cor0 ---- 0 0 2 query I rowsort SELECT DISTINCT - + col1 + ( col2 ) * + cor0.col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT ALL cor0.col0 * - ( + col0 ) + col1 FROM tab1 cor0 ---- -4086 -6387 17 query I rowsort SELECT ALL 66 * + tab0.col0 * ( col2 ) FROM tab0 ---- 2310 481668 52272 query I rowsort SELECT ALL - cor0.col1 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT ALL tab0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT + tab1.col1 * 45 AS col0 FROM tab1, tab1 AS cor0 ---- 1170 450 585 onlyif mysql # use DIV operator for integer division query I rowsort label-6786 SELECT ALL + col1 DIV tab2.col1 FROM tab2 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6786 SELECT ALL + col1 / tab2.col1 FROM tab2 ---- 1 1 1 query I rowsort SELECT ALL col1 * + 74 + 78 + col2 AS col0 FROM tab0 AS cor0 ---- 6475 6894 7257 query I rowsort SELECT ALL + col1 * - 16 AS col2 FROM tab2 AS cor0 ---- -272 -496 -944 query I rowsort SELECT col2 * 54 FROM tab0 AS cor0 ---- 1782 4428 54 query I rowsort SELECT - col1 * - 15 + col1 AS col1 FROM tab2 cor0 ---- 272 496 944 query I rowsort SELECT - cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + + col2 col0 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT col1 * - col0 + col2 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT 49 + col2 AS col0 FROM tab1 AS cor0 ---- 103 106 145 query I rowsort SELECT col1 + 86 AS col2 FROM tab2 ---- 103 117 145 query I rowsort SELECT ( + col0 ) * col0 + - 2 AS col2 FROM tab2 ---- 47 6082 6239 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 82 col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1 ---- 81 values hashing to c7d52549709c0d1194b36919dde4afb7 query I rowsort SELECT - col1 + ( + col2 ) * col2 FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT DISTINCT col2 * - col2 * 48 AS col2 FROM tab2 ---- -32448 -34992 -69312 onlyif mysql # use DIV operator for integer division query I rowsort label-6800 SELECT - ( + col0 ) DIV - 52 + + tab1.col0 DIV + col1 FROM tab1 ---- 0 7 7 skipif mysql # not compatible query I rowsort label-6800 SELECT - ( + col0 ) / - 52 + + tab1.col0 / + col1 FROM tab1 ---- 0 7 7 query I rowsort SELECT - 18 AS col1 FROM tab2 ---- -18 -18 -18 query I rowsort SELECT DISTINCT col0 + tab2.col0 + - col2 FROM tab2 ---- -13 120 130 query I rowsort SELECT DISTINCT tab2.col0 + 70 - col0 FROM tab2 ---- 70 query I rowsort SELECT DISTINCT + col1 + ( col1 ) * - col0 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT + tab1.col0 * 26 AS col2 FROM tab1 ---- 1664 2080 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6806 SELECT ALL - tab2.col0 * CAST( NULL AS DECIMAL ) - col2 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6806 SELECT ALL - tab2.col0 * CAST ( NULL AS REAL ) - col2 AS col2 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6807 SELECT ALL + col0 * - 31 * - tab0.col2 + col2 DIV tab0.col2 FROM tab0 ---- 1086 226239 24553 skipif mysql # not compatible query I rowsort label-6807 SELECT ALL + col0 * - 31 * - tab0.col2 + col2 / tab0.col2 FROM tab0 ---- 1086 226239 24553 query I rowsort SELECT DISTINCT + col1 + - 99 AS col0 FROM tab0 ---- -13 -2 -8 query I rowsort SELECT DISTINCT - col1 + 27 AS col2 FROM tab0 ---- -59 -64 -70 query I rowsort SELECT DISTINCT + col0 + 54 * - col1 AS col1 FROM tab2 ---- -1667 -3108 -839 query I rowsort SELECT DISTINCT + col2 * 93 + + ( - col0 ) AS col2 FROM tab2 ---- 2340 2504 3455 onlyif mysql # use DIV operator for integer division query I rowsort label-6812 SELECT ALL col2 DIV CAST( col0 AS SIGNED ) + + col2 FROM tab0 ---- 1 34 82 skipif mysql # not compatible query I rowsort label-6812 SELECT ALL col2 / CAST ( col0 AS INTEGER ) + + col2 FROM tab0 ---- 1 34 82 query I rowsort SELECT - col2 + - col1 + + col0 AS col0 FROM tab1 cor0 ---- -29 -3 -77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 col1 FROM tab2 cor0 ---- -17 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( col1 ) + col2 col2 FROM tab0 AS cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 67 + + col0 col0 FROM tab1 AS cor0 ---- 131 147 70 query I rowsort SELECT ALL ( col0 ) * col0 AS col1 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT ALL - col0 + + col2 + + col1 * - col2 AS col2 FROM tab1 AS cor0 ---- -1232 -1353 -577 query I rowsort SELECT col2 + 89 FROM tab0 AS cor0 ---- 122 171 90 query I rowsort SELECT DISTINCT + 7 AS col1 FROM tab2 AS cor0 ---- 7 query I rowsort SELECT ALL + col2 + - ( col1 ) FROM tab1 AS cor0 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-6822 SELECT + + ( col1 ) DIV col0 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-6822 SELECT + + ( col1 ) / col0 FROM tab2 AS cor0 ---- 0 0 4 query I rowsort SELECT ALL - ( col2 ) * - col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT ALL col0 * cor0.col0 AS col2 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT DISTINCT - - col1 * col2 + col2 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 133 2895 7633 query I rowsort SELECT 61 * + 27 + col2 AS col2 FROM tab1 AS cor0 ---- 1701 1704 1743 query I rowsort SELECT + + 64 + - col1 AS col1 FROM tab2 AS cor0 ---- 33 47 5 query I rowsort SELECT DISTINCT - col0 * + col2 + - col2 FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT ALL 31 * - 11 AS col2 FROM tab0 ---- -341 -341 -341 query I rowsort SELECT - + col0 - - 82 * + col1 AS col2 FROM tab2 AS cor0 ---- 1315 2535 4760 query I rowsort SELECT 36 * - col2 + col2 AS col1 FROM tab0 AS cor0 ---- -1155 -2870 -35 query I rowsort SELECT ALL col2 * tab0.col0 + col2 AS col2 FROM tab0 ---- 36 7380 825 query I rowsort SELECT DISTINCT + col0 * col1 + + tab1.col1 * col2 AS col2 FROM tab1 ---- 1210 1482 2288 query I rowsort SELECT - + 46 AS col1 FROM tab1 AS cor0 ---- -46 -46 -46 query I rowsort SELECT + - 83 * cor0.col2 FROM tab0 cor0 ---- -2739 -6806 -83 query I rowsort SELECT + col1 * col0 + + cor0.col2 FROM tab2 AS cor0 ---- 1381 244 4628 onlyif mysql # use DIV operator for integer division query I rowsort label-6837 SELECT 55 DIV + col2 + col1 FROM tab0 AS cor0 ---- 152 87 91 skipif mysql # not compatible query I rowsort label-6837 SELECT 55 / + col2 + col1 FROM tab0 AS cor0 ---- 152 87 91 query I rowsort SELECT ALL 22 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 onlyif mysql # use DIV operator for integer division query I rowsort label-6839 SELECT DISTINCT - col0 DIV + col2 + - cor0.col2 FROM tab0 AS cor0 ---- -33 -36 -83 skipif mysql # not compatible query I rowsort label-6839 SELECT DISTINCT - col0 / + col2 + - cor0.col2 FROM tab0 AS cor0 ---- -33 -36 -83 query I rowsort SELECT ALL + col2 * - col1 - - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT DISTINCT + col0 + 90 * + col2 FROM tab0 cor0 ---- 125 2994 7469 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col1 col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ( 78 ) AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 query I rowsort SELECT + col0 * + ( 47 ) FROM tab0 AS cor0 ---- 1128 1645 4183 query I rowsort SELECT + col2 * - ( - col1 ) FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT + col0 + - col1 AS col0 FROM tab0 cor0 ---- -2 -62 -62 query I rowsort SELECT + - col2 * 42 + + cor0.col2 * col1 FROM tab1 cor0 ---- -1824 -2784 -864 query I rowsort SELECT + ( 26 ) FROM tab1 AS cor0 ---- 26 26 26 query I rowsort SELECT 85 + 43 FROM tab0 AS cor0 ---- 128 128 128 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * + col1 * 95 col0 FROM tab1 ---- 60800 7410 98800 query I rowsort SELECT ALL + col0 + 89 * col0 FROM tab1 AS cor0 ---- 270 5760 7200 query I rowsort SELECT col0 + col0 * col1 FROM tab2 AS cor0 ---- 1422 224 4680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + cor0.col0 col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT col1 - - col2 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT col2 * + 37 - + ( col1 ) * col0 AS col0 FROM tab1 cor0 ---- 1469 1920 2512 query I rowsort SELECT col2 + + 94 AS col1 FROM tab2 AS cor0 ---- 120 121 132 query I rowsort SELECT ALL col0 * - ( - 93 ) + + col2 AS col0 FROM tab1 cor0 ---- 333 6009 7536 query I rowsort SELECT DISTINCT col1 - ( cor0.col0 ) * col2 * + col1 FROM tab2 AS cor0 ---- -119593 -51017 -5828 query I rowsort SELECT - cor0.col1 + - col1 * + col0 FROM tab1 AS cor0 ---- -104 -1053 -650 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * col0 + - col0 col0 FROM tab0 AS cor0 ---- 0 7209 768 skipif mysql # not compatible query I rowsort SELECT col2 + CAST ( 85 AS REAL ) * + cor0.col0 FROM tab2 AS cor0 ---- 622 6656 6753 query I rowsort SELECT DISTINCT - 97 - col1 AS col1 FROM tab0 ---- -183 -188 -194 query I rowsort SELECT ALL + 26 * col0 * - 83 AS col2 FROM tab0 ---- -192062 -51792 -75530 query I rowsort SELECT ALL 4 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 730dff78e83112374961ea711f98ebaa onlyif mysql # use DIV operator for integer division query I rowsort label-6865 SELECT ALL col1 DIV - col1 AS col1 FROM tab1 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-6865 SELECT ALL col1 / - col1 AS col1 FROM tab1 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 82 * tab2.col1 col1 FROM tab2 ---- -1394 -2542 -4838 query I rowsort SELECT ALL col0 * 72 + - ( col2 ) + - 27 FROM tab1 ---- 135 4524 5637 query I rowsort SELECT 79 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1 query I rowsort SELECT + + cor0.col1 * col2 + cor0.col0 + - col1 * col1 FROM tab1 AS cor0 ---- 1159 534 731 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6870 SELECT + col1 * CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6870 SELECT + col1 * CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort SELECT DISTINCT col1 + CAST ( col1 AS REAL ) / + col1 FROM tab0 ---- 87 92 98 query I rowsort SELECT + cor0.col0 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2 ---- 243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2 query I rowsort SELECT ( + cor0.col1 ) * col1 FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT + tab1.col2 - ( - col0 * 8 ) AS col2 FROM tab1 ---- 569 736 78 query I rowsort SELECT - 61 * col1 AS col2 FROM tab2 AS cor0 ---- -1037 -1891 -3599 query I rowsort SELECT col1 * col1 AS col1 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT + col1 * col0 + + col1 - col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - 23 FROM tab0 cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d query I rowsort SELECT + + 24 + + col0 AS col1 FROM tab0 AS cor0 ---- 113 48 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 24 col1 FROM tab2 cor0 ---- 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 91 col0 FROM tab0 AS cor0 ---- 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6882 SELECT col2 * - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6882 SELECT col2 * - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + ( + col0 ) * - col1 FROM tab0 cor0 ---- -2064 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 51 + - cor0.col2 * col0 col0 FROM tab2 AS cor0 ---- -138 -1977 -2951 onlyif mysql # use DIV operator for integer division query I rowsort label-6885 SELECT DISTINCT col0 DIV col1 AS col2 FROM tab2 cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-6885 SELECT DISTINCT col0 / col1 AS col2 FROM tab2 cor0 ---- 0 1 4 query I rowsort SELECT 82 * - cor0.col0 FROM tab0 cor0 ---- -1968 -2870 -7298 onlyif mysql # use DIV operator for integer division query I rowsort label-6887 SELECT DISTINCT - + cor0.col2 DIV + col0 - col2 FROM tab1 AS cor0 ---- -57 -72 -97 skipif mysql # not compatible query I rowsort label-6887 SELECT DISTINCT - + cor0.col2 / + col0 - col2 FROM tab1 AS cor0 ---- -57 -72 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-6888 SELECT ALL + 94 + + col0 DIV + col1 AS col2 FROM tab0 AS cor0 ---- 94 94 94 skipif mysql # not compatible query I rowsort label-6888 SELECT ALL + 94 + + col0 / + col1 AS col2 FROM tab0 AS cor0 ---- 94 94 94 query I rowsort SELECT DISTINCT + - col1 * + col1 AS col0 FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT - + col1 * + cor0.col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL col1 - + 92 FROM tab1 cor0 ---- -66 -79 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 - - 99 col2 FROM tab0 AS cor0 ---- 123 134 188 query I rowsort SELECT DISTINCT cor0.col0 * col0 * cor0.col0 FROM tab2 AS cor0 ---- 343 474552 493039 query I rowsort SELECT + col2 - 77 FROM tab0 AS cor0 ---- -44 -76 5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6895 SELECT DISTINCT + col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6895 SELECT DISTINCT + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6896 SELECT ALL - col2 * + col1 * - 89 + + col0 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 104672 124947 46634 skipif mysql # not compatible query I rowsort label-6896 SELECT ALL - col2 * + col1 * - 89 + + col0 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 104672 124947 46634 query I rowsort SELECT DISTINCT - 93 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- -93 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 + - 6 + 40 FROM tab1 AS cor0 ---- 34 34 34 onlyif mysql # use DIV operator for integer division query I rowsort label-6900 SELECT ALL + + 92 DIV - ( + col1 ) FROM tab2 AS cor0 ---- -1 -2 -5 skipif mysql # not compatible query I rowsort label-6900 SELECT ALL + + 92 / - ( + col1 ) FROM tab2 AS cor0 ---- -1 -2 -5 query I rowsort SELECT - + cor0.col1 + - col2 AS col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT - 46 + + col1 + - col2 AS col2 FROM tab2 AS cor0 ---- -13 -42 -67 query I rowsort SELECT DISTINCT - 55 AS col2 FROM tab1 AS cor0 ---- -55 onlyif mysql # use DIV operator for integer division query I rowsort label-6904 SELECT DISTINCT + - col0 DIV + col0 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-6904 SELECT DISTINCT + - col0 / + col0 FROM tab0 AS cor0 ---- -1 query I rowsort SELECT + cor0.col0 * 60 AS col1 FROM tab2 AS cor0 ---- 420 4680 4740 onlyif mysql # use DIV operator for integer division query I rowsort label-6906 SELECT + + ( 55 ) DIV + col0 + + col2 col2 FROM tab0 AS cor0 ---- 2 35 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6906 SELECT + + ( 55 ) / + col0 + + col2 col2 FROM tab0 AS cor0 ---- 2 35 82 query I rowsort SELECT DISTINCT 62 * col2 FROM tab0 AS cor0 ---- 2046 5084 62 query I rowsort SELECT DISTINCT ( cor0.col2 ) + col0 AS col1 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT 85 * + col2 FROM tab2 AS cor0 ---- 2210 2295 3230 query I rowsort SELECT DISTINCT - + col2 + col1 * + ( - col1 ) * col0 FROM tab0 cor0 ---- -177537 -329316 -737091 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 52 col0 FROM tab1 ---- 52 query I rowsort SELECT DISTINCT - col0 + - col2 AS col0 FROM tab2 ---- -104 -117 -34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6913 SELECT CAST( NULL AS SIGNED ) / col2 + + col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6913 SELECT CAST ( NULL AS INTEGER ) / col2 + + col1 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6914 SELECT ALL + CAST( NULL AS SIGNED ) * col0 + tab2.col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6914 SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + tab2.col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL - 7 * + cor0.col1 + - cor0.col1 FROM tab0 AS cor0 ---- -688 -728 -776 query I rowsort SELECT - cor0.col0 * col0 * - ( - col0 ) AS col0 FROM tab0 cor0 ---- -13824 -42875 -704969 query I rowsort SELECT + 96 + - col1 * 96 FROM tab1 AS cor0 ---- -1152 -2400 -864 query I rowsort SELECT DISTINCT - ( + cor0.col2 ) * 53 AS col1 FROM tab0 AS cor0 ---- -1749 -4346 -53 query I rowsort SELECT DISTINCT - 94 AS col0 FROM tab0, tab1 AS cor0 ---- -94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col1 * col0 + + col2 col1 FROM tab2 ---- 119678 51072 5886 query I rowsort SELECT ALL 74 + - 48 FROM tab0 ---- 26 26 26 query I rowsort SELECT 40 - + col0 AS col1 FROM tab0 ---- -49 16 5 query I rowsort SELECT ALL 70 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 query I rowsort SELECT ALL - - col0 * + col0 AS col2 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT ALL + col2 * col1 * - col1 AS col0 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT ALL - - 90 * + col2 FROM tab0 cor0 ---- 2970 7380 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - 39 ) col0 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to a08a82dc9276c0173448e9a1c89dba93 query I rowsort SELECT DISTINCT + col0 * ( col0 ) AS col1 FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # use DIV operator for integer division query I rowsort label-6929 SELECT DISTINCT 56 + + col2 DIV - col0 AS col0 FROM tab2 AS cor0 ---- 53 56 skipif mysql # not compatible query I rowsort label-6929 SELECT DISTINCT 56 + + col2 / - col0 AS col0 FROM tab2 AS cor0 ---- 53 56 query I rowsort SELECT DISTINCT + - ( col1 ) AS col2 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT 1 * cor0.col2 + - cor0.col2 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6932 SELECT DISTINCT + + cor0.col1 DIV col1 AS col0 FROM tab0 cor0 ---- 1 skipif mysql # not compatible query I rowsort label-6932 SELECT DISTINCT + + cor0.col1 / col1 AS col0 FROM tab0 cor0 ---- 1 query I rowsort SELECT - + col0 + - col1 + - col0 AS col0 FROM tab1 AS cor0 ---- -138 -173 -32 query I rowsort SELECT - col1 + col2 * - 19 FROM tab2 cor0 ---- -544 -553 -739 query I rowsort SELECT + 6 * col0 FROM tab2 AS cor0 ---- 42 468 474 query I rowsort SELECT DISTINCT 56 FROM tab1, tab2 AS cor0 ---- 56 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6937 SELECT - 59 / col0 + + col1 * ( col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6937 SELECT - 59 / col0 + + col1 * ( col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 + + cor0.col0 + 40 * col0 AS col0 FROM tab0 AS cor0 ---- 1017 1436 3731 query I rowsort SELECT ALL 2 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 535345c50a19fdab97ce05d1837b1f09 query I rowsort SELECT ( 87 ) * tab0.col0 FROM tab0 ---- 2088 3045 7743 query I rowsort SELECT ALL + col1 * col1 * col1 FROM tab0 ---- 636056 753571 912673 query I rowsort SELECT DISTINCT - col1 * - 98 + 73 FROM tab2 AS cor0 ---- 1739 3111 5855 query I rowsort SELECT - col2 + - col2 * col1 AS col1 FROM tab1 AS cor0 ---- -1344 -1458 -627 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + 46 col2 FROM tab0 AS cor0 ---- 1518 3772 46 query I rowsort SELECT DISTINCT + col0 * - ( + ( - col1 ) ) + ( + 29 ) FROM tab2 cor0 ---- 1372 246 4631 query I rowsort SELECT DISTINCT + col1 + 55 * ( col2 ) + col2 AS col2 FROM tab0 AS cor0 ---- 153 1934 4683 query I rowsort SELECT DISTINCT + col1 + - col2 * col1 * - col1 FROM tab1 AS cor0 ---- 16237 36530 5710 query I rowsort SELECT - + col0 + 22 AS col1 FROM tab0 AS cor0 ---- -13 -2 -67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * ( + 60 ) col1 FROM tab1 AS cor0 ---- -180 -3840 -4800 query I rowsort SELECT ( + col2 ) + 99 AS col1 FROM tab1 ---- 153 156 195 query I rowsort SELECT - ( - col2 ) + ( - col1 ) FROM tab1 ---- 28 47 83 query I rowsort SELECT ALL ( tab2.col0 ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab0.col1 + col1 + 38 col1 FROM tab0 ---- 38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + - ( 13 ) col2 FROM tab2 ---- -6 65 66 query I rowsort SELECT ALL 14 FROM tab1, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to 409c1790b702540dd9dc067c1965b7c0 query I rowsort SELECT col0 + ( col1 ) * tab0.col2 * - ( 91 ) + - col0 AS col2 FROM tab0 ---- -258258 -679042 -8827 query I rowsort SELECT DISTINCT col0 * 20 FROM tab1 AS cor0 ---- 1280 1600 60 query I rowsort SELECT - col0 + + col1 * - col1 * col0 - - col0 AS col0 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT ALL - col0 * ( 54 ) FROM tab2 AS cor0 ---- -378 -4212 -4266 query I rowsort SELECT ALL - col0 + + cor0.col1 * - col2 FROM tab2 cor0 ---- -1612 -725 -844 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + 54 * 12 col0 FROM tab1 AS cor0 ---- 568 584 645 query I rowsort SELECT DISTINCT - col2 * + col0 + + cor0.col1 AS col0 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT - 88 AS col1 FROM tab0 cor0 ---- -88 -88 -88 onlyif mysql # use DIV operator for integer division query I rowsort label-6964 SELECT + ( + cor0.col0 ) DIV - col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6964 SELECT + ( + cor0.col0 ) / - col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + 72 AS col0 FROM tab2, tab1 AS cor0 ---- 72 onlyif mysql # use DIV operator for integer division query I rowsort label-6966 SELECT 41 DIV col1 FROM tab1 ---- 1 3 4 skipif mysql # not compatible query I rowsort label-6966 SELECT 41 / col1 FROM tab1 ---- 1 3 4 query I rowsort SELECT - col2 - - 66 FROM tab1 cor0 ---- -30 12 9 query I rowsort SELECT + 44 FROM tab0, tab2 cor0, tab2, tab2 cor1 ---- 81 values hashing to 19a2b9512177749564ba22ea2213fe3f query I rowsort SELECT 85 * - 77 - col0 FROM tab0 AS cor0 ---- -6569 -6580 -6634 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6970 SELECT + + CAST( col0 AS SIGNED ) - - col0 FROM tab0 AS cor0 ---- 178 48 70 skipif mysql # not compatible query I rowsort label-6970 SELECT + + CAST ( col0 AS INTEGER ) - - col0 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT + + ( - cor0.col2 ) * col1 + ( 29 ) * - col2 FROM tab2 AS cor0 ---- -1620 -1748 -2288 query I rowsort SELECT + + ( + col0 ) + col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT + + 65 AS col1 FROM tab0 AS cor0 ---- 65 query I rowsort SELECT ALL - 91 * + col2 AS col1 FROM tab1 AS cor0 ---- -4914 -5187 -8736 query I rowsort SELECT + + col0 + + col0 + - 11 FROM tab0 AS cor0 ---- 167 37 59 query I rowsort SELECT DISTINCT - cor0.col0 * col0 + + 82 - + col0 AS col0 FROM tab2 AS cor0 ---- -6080 -6238 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 - + ( col1 ) * + col1 col2 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT ALL - - col2 * - col0 + + 69 AS col1 FROM tab2 cor0 ---- -120 -1959 -2933 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 cor1, tab2, tab2 cor2 ---- 3645 values hashing to 42d854e4c33cb5afd5528228bff9250d query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 * + col0 / + col0 ) OR NOT col2 IN ( - cor0.col0 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT + + col0 * col2 * col0 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT + cor0.col1 * + col1 * col0 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT DISTINCT cor0.col2 + + col1 * - col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 onlyif mysql # use DIV operator for integer division query I rowsort label-6984 SELECT DISTINCT col2 DIV + tab1.col0 AS col1 FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-6984 SELECT DISTINCT col2 / + tab1.col0 AS col1 FROM tab1 ---- 0 1 18 query I rowsort SELECT ALL col1 * - col0 AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-6986 SELECT ALL + + col1 DIV - cor0.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-6986 SELECT ALL + + col1 / - cor0.col0 col0 FROM tab1 AS cor0 ---- -8 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + col1 col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT tab2.col2 * - tab2.col2 FROM tab2 ---- -1444 -676 -729 query III rowsort SELECT DISTINCT * FROM tab2 WHERE col0 >= col0 + col2 ---- query I rowsort SELECT + col0 + - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT - col2 * col1 * - col1 FROM tab1 ---- 16224 36504 5700 query I rowsort SELECT DISTINCT - col1 - col0 AS col0 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT col2 * - col0 + + col0 FROM tab0 ---- -7209 -768 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6994 SELECT ALL + col1 DIV + col1 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6994 SELECT ALL + col1 / + col1 FROM tab1 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 - + col1 col1 FROM tab0 AS cor0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 col0 FROM tab1 WHERE NOT NULL <> ( - col2 + + col2 * col0 ) ---- query I rowsort SELECT col1 AS col2 FROM tab2 WHERE NOT col0 + col0 * col0 * col0 NOT BETWEEN ( - col0 ) AND col1 ---- query I rowsort SELECT - tab0.col1 + - tab0.col1 FROM tab0 ---- -172 -182 -194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * + col0 * col0 + tab2.col1 * + tab2.col2 * + col1 col0 FROM tab2 ---- 117079 27466 449462 query I rowsort SELECT DISTINCT col0 * + col0 - - col1 AS col1 FROM tab1 AS cor0 ---- 35 4106 6413 query I rowsort SELECT + col0 + + col2 * + tab2.col2 FROM tab2 ---- 1523 736 754 query III rowsort SELECT * FROM tab1 WHERE NOT NULL IN ( + col2 ) ---- query I rowsort SELECT - tab2.col1 + - col2 * tab2.col0 AS col2 FROM tab2 ---- -2087 -220 -3019 query III rowsort SELECT DISTINCT * FROM tab2 WHERE col2 + col0 IN ( col1 ) ---- query I rowsort SELECT ALL col2 * - col1 * col1 + tab0.col0 AS col2 FROM tab0 ---- -244044 -678953 -9374 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + col0 NOT IN ( tab0.col1 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT col0 + - tab2.col1 + col0 AS col2 FROM tab2 ---- -17 141 97 onlyif mysql # use DIV operator for integer division query I rowsort label-7008 SELECT - 61 DIV - col0 FROM tab0 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-7008 SELECT - 61 / - col0 FROM tab0 AS cor0 ---- 0 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 * - cor0.col1 col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT + col0 + cor0.col0 + - col2 FROM tab1 AS cor0 ---- -48 64 71 onlyif mysql # use DIV operator for integer division query I rowsort label-7011 SELECT DISTINCT + col2 + + col2 DIV - col0 FROM tab2 cor0 ---- 24 26 38 skipif mysql # not compatible query I rowsort label-7011 SELECT DISTINCT + col2 + + col2 / - col0 FROM tab2 cor0 ---- 24 26 38 query I rowsort SELECT ALL cor0.col2 + + cor0.col0 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 - cor0.col2 col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL + - col0 + col1 + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 101 586 973 query I rowsort SELECT + 8 * col2 + 28 FROM tab0 AS cor0 ---- 292 36 684 query I rowsort SELECT + + 89 + + col1 * + col0 AS col0 FROM tab2 AS cor0 ---- 1432 306 4691 query I rowsort SELECT + ( + 83 + + cor1.col2 ) FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 620ccc9081f68000c50636941d84dcdf query I rowsort SELECT DISTINCT + + col2 - - col0 * - 45 AS col0 FROM tab0 AS cor0 ---- -1047 -1574 -3923 query I rowsort SELECT ALL + - col2 + col1 * ( - col0 ) AS col2 FROM tab1 AS cor0 ---- -1136 -132 -697 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7020 SELECT ALL - - col2 + - col0 + - CAST( col0 AS SIGNED ) * col2 * + ( ( col0 ) + col2 ) AS col0 FROM tab2 cor0 ---- -210964 -351275 -6406 skipif mysql # not compatible query I rowsort label-7020 SELECT ALL - - col2 + - col0 + - CAST ( col0 AS INTEGER ) * col2 * + ( ( col0 ) + col2 ) AS col0 FROM tab2 cor0 ---- -210964 -351275 -6406 onlyif mysql # use DIV operator for integer division query I rowsort label-7021 SELECT ALL - - col2 + col2 DIV col1 AS col1 FROM tab1 AS cor0 ---- 103 56 62 skipif mysql # not compatible query I rowsort label-7021 SELECT ALL - - col2 + col2 / col1 AS col1 FROM tab1 AS cor0 ---- 103 56 62 query I rowsort SELECT ALL + col2 * + col0 AS col0 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT col0 * col0 + col1 AS col2 FROM tab0 ---- 1322 662 8012 query I rowsort SELECT col0 * - tab0.col1 * tab0.col0 FROM tab0 ---- -118825 -49536 -720811 query III rowsort SELECT ALL * FROM tab0 WHERE NOT col1 + - col1 = NULL ---- query I rowsort SELECT ALL + col2 * col0 AS col1 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT DISTINCT - col0 * col1 + + col1 + col0 FROM tab0 ---- -1954 -3263 -7919 query I rowsort SELECT ALL + col0 + col0 - col2 * - col2 AS col2 FROM tab0 ---- 1137 6902 71 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( cor0.col0 + cor0.col2 ) <> ( col0 ) ---- query I rowsort SELECT ALL col2 + + col1 + cor0.col1 FROM tab1 AS cor0 WHERE ( col2 ) < NULL ---- query I rowsort SELECT col1 * col2 * - col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 onlyif mysql # use DIV operator for integer division query I rowsort label-7032 SELECT DISTINCT - cor0.col1 DIV + col0 AS col2 FROM tab2 AS cor0 ---- -4 0 skipif mysql # not compatible query I rowsort label-7032 SELECT DISTINCT - cor0.col1 / + col0 AS col2 FROM tab2 AS cor0 ---- -4 0 query I rowsort SELECT + col1 * col1 + + col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( tab0.col1 * + col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-7034 SELECT DISTINCT col0 * - col1 + col0 DIV col0 FROM tab1 ---- -1039 -639 -77 skipif mysql # not compatible query I rowsort label-7034 SELECT DISTINCT col0 * - col1 + col0 / col0 FROM tab1 ---- -1039 -639 -77 query I rowsort SELECT + tab0.col0 AS col0 FROM tab0 WHERE NOT - col0 > col0 ---- 24 35 89 query III rowsort SELECT * FROM tab1 WHERE NOT NULL < col1 + col1 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * col2 + + col1 col2 FROM tab1 ---- 2942 3259 9229 query III rowsort SELECT * FROM tab0 WHERE NOT - col1 IN ( col2 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT DISTINCT + col2 + col2 - - tab1.col2 FROM tab1 ---- 162 171 288 query I rowsort SELECT ALL col1 + tab0.col1 + + col0 * col2 FROM tab0 ---- 229 7480 964 onlyif mysql # use DIV operator for integer division query I rowsort label-7041 SELECT ALL + col2 DIV - col1 col1 FROM tab2 ---- -2 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7041 SELECT ALL + col2 / - col1 col1 FROM tab2 ---- -2 0 0 query I rowsort SELECT tab1.col0 + + tab1.col0 FROM tab1 ---- 128 160 6 query I rowsort SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + col1 + - col1 ) AND NULL ---- query III rowsort SELECT * FROM tab1 WHERE ( - col2 ) > ( col2 ) ---- query III rowsort SELECT * FROM tab0 WHERE + col2 NOT IN ( col0 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 onlyif mysql # use DIV operator for integer division query I rowsort label-7046 SELECT DISTINCT - col2 DIV tab1.col2 - col1 DIV col2 col0 FROM tab1 ---- -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7046 SELECT DISTINCT - col2 / tab1.col2 - col1 / col2 col0 FROM tab1 ---- -1 onlyif mysql # use DIV operator for integer division query I rowsort label-7047 SELECT DISTINCT + col2 + + col0 DIV tab2.col1 AS col2 FROM tab2 ---- 27 42 skipif mysql # not compatible query I rowsort label-7047 SELECT DISTINCT + col2 + + col0 / tab2.col1 AS col2 FROM tab2 ---- 27 42 onlyif mysql # use DIV operator for integer division query I rowsort label-7048 SELECT ALL col0 + + col0 DIV col2 AS col2 FROM tab1 ---- 3 65 80 skipif mysql # not compatible query I rowsort label-7048 SELECT ALL col0 + + col0 / col2 AS col2 FROM tab1 ---- 3 65 80 query I rowsort SELECT DISTINCT - 79 + - col1 FROM tab2 AS cor0 ---- -110 -138 -96 query I rowsort SELECT 82 * - cor0.col0 AS col1 FROM tab1 AS cor0 ---- -246 -5248 -6560 query I rowsort SELECT ALL + cor0.col2 * cor0.col2 - 36 * 72 AS col0 FROM tab2 AS cor0 ---- -1148 -1863 -1916 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 80 * - cor0.col1 col1 FROM tab0 AS cor0 ---- 6880 7280 7760 query I rowsort SELECT DISTINCT - 83 + col0 AS col2 FROM tab1 AS cor0 ---- -19 -3 -80 query I rowsort SELECT ALL + cor0.col0 * + col1 + - col2 * col1 AS col0 FROM tab1 AS cor0 ---- -1326 -208 70 query I rowsort SELECT - col1 + + col1 * col0 AS col0 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT ALL - + 89 * - col0 - cor0.col0 * + col0 FROM tab2 AS cor0 ---- 574 790 858 query I rowsort SELECT DISTINCT ( - col1 * tab2.col2 + + col2 ) FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT - col1 * 77 * - 28 FROM tab2 AS cor0 ---- 127204 36652 66836 query I rowsort SELECT DISTINCT + 56 AS col1 FROM tab1, tab0 AS cor0 ---- 56 onlyif mysql # use DIV operator for integer division query I rowsort label-7060 SELECT col0 DIV - col0 AS col0 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7060 SELECT col0 / - col0 AS col0 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT tab2.col0 * 85 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 0da078821e50a7125af78a6823b284c4 query I rowsort SELECT + col1 * + col1 * + col1 AS col0 FROM tab1 ---- 1000 17576 2197 query I rowsort SELECT + - col2 * ( col0 * - col0 ) + ( col2 ) AS col2 FROM tab2 AS cor0 ---- 1350 158210 237196 query I rowsort SELECT + + cor0.col0 * col1 + + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT DISTINCT - col2 + - col1 * col0 AS col0 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT ALL - col1 * - col1 + col0 AS col1 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT - 75 + + 96 AS col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 312c166f4dc412730c43555105b1f44b query I rowsort SELECT + - col0 * col0 + col1 AS col2 FROM tab0 cor0 ---- -1128 -490 -7830 query I rowsort SELECT + + 5 * - col2 AS col1 FROM tab2 AS cor0 ---- -130 -135 -190 query I rowsort SELECT DISTINCT + 82 * + col1 - col2 AS col1 FROM tab2 cor0 ---- 1356 2515 4812 query I rowsort SELECT DISTINCT 98 AS col1 FROM tab1, tab0 AS cor0 ---- 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7072 SELECT DISTINCT + - ( - col1 ) + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-7072 SELECT DISTINCT + - ( - col1 ) + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 + col2 * col2 col2 FROM tab1 AS cor0 ---- 2862 3192 9120 query I rowsort SELECT DISTINCT - cor0.col2 - + col0 AS col1 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT DISTINCT - 31 AS col2 FROM tab1 ---- -31 query I rowsort SELECT 76 + col0 FROM tab1 ---- 140 156 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + col1 * 23 col1 FROM tab0 AS cor0 ---- 2002 2182 2266 query I rowsort SELECT - 36 + col1 * col1 FROM tab2 ---- 253 3445 925 query I rowsort SELECT + 81 * cor0.col0 FROM tab2 AS cor0 ---- 567 6318 6399 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + 32 col1 FROM tab1, tab0 cor0 ---- 9 values hashing to d30a2acbf33c88274474306936d3227b query I rowsort SELECT ALL 33 * col0 FROM tab2 AS cor0 ---- 231 2574 2607 query I rowsort SELECT cor0.col1 + col2 * + col0 AS col1 FROM tab2 AS cor0 ---- 2087 220 3019 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 5 + - 90 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- -85 query I rowsort SELECT ALL - 55 AS col1 FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to b90e74bece5521b514096c5b6e105fde skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * ( - col1 ) * + col2 col0 FROM tab0 cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT cor0.col2 + col0 AS col1 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT ALL + cor0.col1 * col0 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT + cor0.col0 * col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL + 51 AS col2 FROM tab2 ---- 51 51 51 query I rowsort SELECT DISTINCT col1 * tab1.col0 AS col0 FROM tab1 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 72 col1 FROM tab1 AS cor0 ---- -72 -72 -72 query I rowsort SELECT + 73 AS col0 FROM tab0 cor0 ---- 73 73 73 query I rowsort SELECT - 78 + - col2 * - col2 AS col1 FROM tab2 AS cor0 ---- 1366 598 651 query I rowsort SELECT DISTINCT + 30 FROM tab0, tab1 cor0, tab2 cor1 ---- 30 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 76 col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 30b8941a700cffd5b983116383bd42d5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7096 SELECT CAST( 44 * col2 AS SIGNED ) FROM tab0 ---- 1452 3608 44 skipif mysql # not compatible query I rowsort label-7096 SELECT CAST ( 44 * col2 AS INTEGER ) FROM tab0 ---- 1452 3608 44 query I rowsort SELECT 8 AS col0 FROM tab2, tab2 cor0, tab0, tab0 AS cor1 ---- 81 values hashing to a42c42e56e75960d97c09dd731d99c01 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7098 SELECT CAST( + col1 AS SIGNED ) + col0 * - 10 * col2 FROM tab2 AS cor0 ---- -1859 -20221 -30003 skipif mysql # not compatible query I rowsort label-7098 SELECT CAST ( + col1 AS INTEGER ) + col0 * - 10 * col2 FROM tab2 AS cor0 ---- -1859 -20221 -30003 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7099 SELECT ALL CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7099 SELECT ALL CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7100 SELECT + + col2 + - col2 + + col1 DIV + col0 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-7100 SELECT + + col2 + - col2 + + col1 / + col0 FROM tab2 AS cor0 ---- 0 0 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + cor0.col2 col0 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT - 46 FROM tab1, tab2 cor0 ---- 9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d query I rowsort SELECT ALL + + col0 * ( 16 ) + + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 1281 1307 143 query I rowsort SELECT DISTINCT cor0.col1 * col1 + col0 * 95 * ( + cor0.col1 ) + - col1 FROM tab1 AS cor0 ---- 60890 8060 98956 onlyif mysql # use DIV operator for integer division query I rowsort label-7105 SELECT DISTINCT + + col2 DIV - col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -57 -72 -97 skipif mysql # not compatible query I rowsort label-7105 SELECT DISTINCT + + col2 / - col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -57 -72 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-7106 SELECT ALL - + cor0.col2 DIV - col0 AS col2 FROM tab1 AS cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-7106 SELECT ALL - + cor0.col2 / - col0 AS col2 FROM tab1 AS cor0 ---- 0 1 18 query I rowsort SELECT + col2 * + 90 AS col1 FROM tab0 AS cor0 ---- 2970 7380 90 query I rowsort SELECT DISTINCT ( + col0 ) * col2 + - col2 * - col2 AS col2 FROM tab2 cor0 ---- 2704 4446 918 query I rowsort SELECT + - 70 FROM tab1 AS cor0 ---- -70 -70 -70 query I rowsort SELECT ALL 25 FROM tab0 AS cor0 ---- 25 25 25 query I rowsort SELECT - + 84 AS col1 FROM tab2 AS cor0 ---- -84 -84 -84 query I rowsort SELECT ALL + cor0.col1 + col2 * col2 - - cor0.col1 * cor0.col1 * col1 FROM tab0 AS cor0 ---- 637231 760386 912771 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( + 68 ) col1 FROM tab2 AS cor0 ---- 68 68 68 query I rowsort SELECT DISTINCT 40 AS col2 FROM tab1 AS cor0 ---- 40 query I rowsort SELECT ALL - col1 * col1 + col1 AS col0 FROM tab2 AS cor0 ---- -272 -3422 -930 query I rowsort SELECT - ( + 45 ) + tab1.col1 AS col0 FROM tab1, tab0, tab0 cor0, tab2 ---- 81 values hashing to 2f6ed3aa8d08551bc39c664e58330da8 query I rowsort SELECT DISTINCT + + col2 + - 46 AS col1 FROM tab1 AS cor0 ---- 11 50 8 query I rowsort SELECT ALL - - 40 * + col2 AS col1 FROM tab1 AS cor0 ---- 2160 2280 3840 query I rowsort SELECT ALL + 85 * - col1 + col0 FROM tab2 AS cor0 ---- -1366 -2628 -4937 query I rowsort SELECT DISTINCT + col0 * + col1 * col2 + col1 * col1 AS col1 FROM tab1 AS cor0 ---- 100009 36580 4888 query I rowsort SELECT ALL + + col0 * - col2 + + col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 onlyif mysql # use DIV operator for integer division query I rowsort label-7122 SELECT - - col1 DIV + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-7122 SELECT - - col1 / + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 0 0 8 query I rowsort SELECT - ( col0 ) * col1 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - 77 + col2 * + ( - col1 ) FROM tab0 AS cor0 ---- -174 -2915 -7539 query I rowsort SELECT + - 79 + - col2 * - col1 AS col1 FROM tab1 AS cor0 ---- 1169 1325 491 query I rowsort SELECT - col1 * + col0 + - ( col0 * cor0.col2 + - col1 * 69 ) AS col0 FROM tab0 AS cor0 ---- -9118 3078 3263 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 58 * - col1 col0 FROM tab1 AS cor0 ---- 1508 580 754 query I rowsort SELECT ALL col1 * 68 FROM tab0 AS cor0 ---- 5848 6188 6596 query I rowsort SELECT DISTINCT - col1 * - col2 * + 35 + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 22689 29302 53768 query I rowsort SELECT DISTINCT col0 * 23 AS col1 FROM tab1 AS cor0 ---- 1472 1840 69 query I rowsort SELECT col0 + ( + col2 ) AS col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + + col0 + - col1 * col0 FROM tab0 cor0 ---- -2040 -3360 -8010 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor1.col1 col0 FROM tab0, tab1 AS cor0, tab0 cor1, tab1 cor2 ---- 86 91 97 query I rowsort SELECT - tab1.col0 - - 93 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 73e9002e5ae251aa654389f65536d054 query I rowsort SELECT ALL + col2 + ( col0 ) * cor0.col0 AS col1 FROM tab2 AS cor0 ---- 6110 6279 76 onlyif mysql # use DIV operator for integer division query I rowsort label-7136 SELECT - col2 DIV 56 + col2 * + col1 AS col2 FROM tab0 AS cor0 ---- 2838 7461 97 skipif mysql # not compatible query I rowsort label-7136 SELECT - col2 / 56 + col2 * + col1 AS col2 FROM tab0 AS cor0 ---- 2838 7461 97 query I rowsort SELECT + + col2 * col2 + col0 + col2 * col0 AS col0 FROM tab0 cor0 ---- 14111 1905 71 query I rowsort SELECT ALL - + col2 * + ( + col2 ) AS col1 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT DISTINCT - col2 + + 27 * - col2 AS col0 FROM tab0 AS cor0 ---- -2296 -28 -924 query I rowsort SELECT ALL + col2 + ( col2 ) AS col1 FROM tab0 AS cor0 ---- 164 2 66 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7141 SELECT ALL col1 * CAST( 37 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 1147 2183 629 skipif mysql # not compatible query I rowsort label-7141 SELECT ALL col1 * CAST ( 37 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 1147 2183 629 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * - ( + col2 ) col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT + col2 + col1 + 87 * col0 FROM tab2 AS cor0 ---- 667 6871 6928 query I rowsort SELECT col0 * + col0 + cor0.col1 * - col1 FROM tab2 cor0 ---- -912 2603 5952 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7145 SELECT ALL col2 + + col0 / + 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-7145 SELECT ALL col2 + + col0 / + CAST ( NULL AS INTEGER ) col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + tab0.col1 - + col2 AS col2 FROM tab0 ---- 53 9 96 onlyif mysql # use DIV operator for integer division query I rowsort label-7147 SELECT DISTINCT - col1 + - col1 + ( ( - col2 ) ) DIV - col1 FROM tab2 ---- -118 -32 -62 skipif mysql # not compatible query I rowsort label-7147 SELECT DISTINCT - col1 + - col1 + ( ( - col2 ) ) / - col1 FROM tab2 ---- -118 -32 -62 query I rowsort SELECT DISTINCT + col1 + + 25 FROM tab0 AS cor0 ---- 111 116 122 onlyif mysql # use DIV operator for integer division query I rowsort label-7149 SELECT - col1 DIV 2 + - cor0.col0 + + col0 FROM tab2 AS cor0 ---- -15 -29 -8 skipif mysql # not compatible query I rowsort label-7149 SELECT - col1 / 2 + - cor0.col0 + + col0 FROM tab2 AS cor0 ---- -15 -29 -8 query I rowsort SELECT - col2 * col1 + col1 AS col0 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT - + col2 * - 98 + col1 FROM tab0 AS cor0 ---- 195 3320 8127 query I rowsort SELECT ALL + + cor0.col1 * 31 FROM tab2 AS cor0 ---- 1829 527 961 onlyif mysql # use DIV operator for integer division query I rowsort label-7153 SELECT DISTINCT + col0 DIV - 13 FROM tab1 AS cor0 ---- -4 -6 0 skipif mysql # not compatible query I rowsort label-7153 SELECT DISTINCT + col0 / - 13 FROM tab1 AS cor0 ---- -4 -6 0 skipif mysql # not compatible query I rowsort SELECT CAST ( 82 AS REAL ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c onlyif mysql # use DIV operator for integer division query I rowsort label-7155 SELECT col0 + 67 * 82 DIV + col1 FROM tab0 ---- 149 87 91 skipif mysql # not compatible query I rowsort label-7155 SELECT col0 + 67 * 82 / + col1 FROM tab0 ---- 149 87 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7156 SELECT ALL - CAST( NULL AS SIGNED ) * + ( - col0 ) AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7156 SELECT ALL - CAST ( NULL AS INTEGER ) * + ( - col0 ) AS col0 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7157 SELECT ALL - 17 DIV - col0 AS col0 FROM tab2 AS cor0 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-7157 SELECT ALL - 17 / - col0 AS col0 FROM tab2 AS cor0 ---- 0 0 2 onlyif mysql # use DIV operator for integer division query I rowsort label-7158 SELECT + col2 + col1 DIV - col1 AS col0 FROM tab1 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-7158 SELECT + col2 + col1 / - col1 AS col0 FROM tab1 ---- 53 56 95 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a query I rowsort SELECT ALL cor0.col2 + tab1.col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 1b6920525e1810523fdee3171c929510 query I rowsort SELECT 7 * - col0 FROM tab2 ---- -49 -546 -553 query I rowsort SELECT ALL 29 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 4c56285992bcb76e1aac22e6d23d1318 query I rowsort SELECT DISTINCT + col1 * + col0 + tab1.col2 FROM tab1 ---- 1136 132 697 query I rowsort SELECT ALL 45 + - col0 AS col1 FROM tab2 ---- -33 -34 38 onlyif mysql # use DIV operator for integer division query I rowsort label-7165 SELECT DISTINCT col1 DIV col2 col1 FROM tab0 AS cor0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7165 SELECT DISTINCT col1 / col2 col1 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7166 SELECT DISTINCT - col2 * - cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7166 SELECT DISTINCT - col2 * - cor0.col1 * CAST ( NULL AS REAL ) FROM tab1 cor0 ---- NULL query I rowsort SELECT DISTINCT - - col0 * col2 AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT + tab1.col0 * - col1 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT ALL ( 15 ) AS col1 FROM tab2 ---- 15 15 15 query I rowsort SELECT - 16 + - 52 FROM tab0 ---- -68 -68 -68 skipif mysql # not compatible query I rowsort SELECT CAST ( - col2 + col0 AS REAL ) AS col1 FROM tab2 ---- -20 41 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 65 * - col2 col2 FROM tab1 AS cor0 ---- 3510 3705 6240 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7173 SELECT ALL - 18 + - 22 * - col2 * + CAST( + 43 AS SIGNED ) FROM tab2 AS cor0 ---- 24578 25524 35930 skipif mysql # not compatible query I rowsort label-7173 SELECT ALL - 18 + - 22 * - col2 * + CAST ( + 43 AS INTEGER ) FROM tab2 AS cor0 ---- 24578 25524 35930 onlyif mysql # use DIV operator for integer division query I rowsort label-7174 SELECT DISTINCT - 19 DIV ( - col1 + CAST( ( - col2 ) AS SIGNED ) * + CAST( col0 AS SIGNED ) ) AS col1 FROM tab2 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7174 SELECT DISTINCT - 19 / ( - col1 + CAST ( ( - col2 ) AS INTEGER ) * + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2 cor0 ---- 0 query I rowsort SELECT ALL - - col2 * + col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL col1 + - tab1.col0 FROM tab1 ---- -54 -67 23 query I rowsort SELECT cor0.col0 FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT ALL cor0.col2 * - col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-7179 SELECT ALL + col0 + - col0 DIV + ( col0 * col1 + col1 ) FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-7179 SELECT ALL + col0 + - col0 / + ( col0 * col1 + col1 ) FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-7180 SELECT ALL + 81 DIV col2 FROM tab1 cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-7180 SELECT ALL + 81 / col2 FROM tab1 cor0 ---- 0 1 1 query I rowsort SELECT DISTINCT + 76 * + tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1 ---- 532 5928 6004 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 73 * + col1 + + cor0.col1 * - 56 col2 FROM tab1 cor0 ---- -1290 -1677 -3354 query I rowsort SELECT DISTINCT - col2 + col1 + + col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT + col1 * 18 FROM tab2 AS cor0 ---- 1062 306 558 query I rowsort SELECT DISTINCT col2 + - cor0.col2 * + ( cor0.col2 + col0 ) * - 5 AS col2 FROM tab0 AS cor0 ---- 181 70192 9438 query I rowsort SELECT + + col2 + 79 FROM tab1 AS cor0 ---- 133 136 175 query I rowsort SELECT DISTINCT - + col2 + - 25 * + ( cor0.col2 ) + + 50 AS col1 FROM tab1 AS cor0 ---- -1354 -1432 -2446 query I rowsort SELECT cor0.col0 * ( 51 ) AS col0 FROM tab0 AS cor0 ---- 1224 1785 4539 query I rowsort SELECT ALL + - col2 + cor0.col0 * 0 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT + - col1 * + col1 + - col0 AS col0 FROM tab0 AS cor0 ---- -7420 -8370 -9444 query I rowsort SELECT col1 + - ( + col2 ) AS col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT col1 * + col0 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - - col1 * + ( cor0.col2 ) + + col1 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT col0 + ( 57 ) AS col2 FROM tab2 AS cor0 ---- 135 136 64 query I rowsort SELECT DISTINCT - 26 AS col2 FROM tab0, tab0 AS cor0 ---- -26 query I rowsort SELECT col0 * - 48 FROM tab2 ---- -336 -3744 -3792 query I rowsort SELECT ALL + col1 + 15 FROM tab0 AS cor0 ---- 101 106 112 query I rowsort SELECT DISTINCT 37 + col2 * col2 * - col2 + - 70 AS col0 FROM tab0 AS cor0 ---- -34 -35970 -551401 query I rowsort SELECT ( col1 ) + col1 * + col0 AS col0 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT - ( cor0.col1 ) * + col0 AS col1 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - col0 * + 83 FROM tab1 AS cor0 ---- -249 -5312 -6640 query I rowsort SELECT - 64 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7203 SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7203 SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * ( + col2 ) - + 82 col0 FROM tab1 AS cor0 ---- 1166 1322 488 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7205 SELECT + CAST( 54 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0 ---- 136 55 87 skipif mysql # not compatible query I rowsort label-7205 SELECT + CAST ( 54 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0 ---- 136 55 87 query I rowsort SELECT - + col1 + col0 * - 39 FROM tab0 AS cor0 ---- -1022 -1462 -3562 query I rowsort SELECT - 45 * - cor0.col0 AS col0 FROM tab1 cor0 ---- 135 2880 3600 query I rowsort SELECT 49 * col0 FROM tab0 cor0 ---- 1176 1715 4361 query I rowsort SELECT DISTINCT 44 AS col0 FROM tab2 AS cor0 ---- 44 query I rowsort SELECT + cor0.col2 * col1 + ( 34 ) * - col1 * + 97 FROM tab1 AS cor0 ---- -32410 -41626 -84344 query I rowsort SELECT DISTINCT col2 + col1 + col2 * - 35 FROM tab1 ---- -1810 -1928 -3251 query I rowsort SELECT DISTINCT + 61 AS col0 FROM tab2 ---- 61 query I rowsort SELECT - col2 * + col2 + col0 + col2 FROM tab2 ---- -1327 -572 -695 query I rowsort SELECT DISTINCT 91 * - col1 AS col2 FROM tab0 ---- -7826 -8281 -8827 query I rowsort SELECT DISTINCT - - 92 + + ( cor1.col0 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 156 172 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 47 col2 FROM tab0 ---- 47 47 47 query I rowsort SELECT - col1 * + col2 + - ( - col2 ) * + 30 + + col2 AS col1 FROM tab1 AS cor0 ---- 1197 1728 270 onlyif mysql # use DIV operator for integer division query I rowsort label-7218 SELECT ALL + - 74 DIV col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-7218 SELECT ALL + - 74 / col1 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT + cor0.col2 FROM tab0, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT + 49 * col0 * - tab0.col0 FROM tab0 ---- -28224 -388129 -60025 onlyif mysql # use DIV operator for integer division query I rowsort label-7221 SELECT DISTINCT col1 * col2 DIV col1 + + 66 * col2 FROM tab2 AS cor0 ---- 1742 1809 2546 skipif mysql # not compatible query I rowsort label-7221 SELECT DISTINCT col1 * col2 / col1 + + 66 * col2 FROM tab2 AS cor0 ---- 1742 1809 2546 query I rowsort SELECT ALL + ( - col0 * col1 ) FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT + tab1.col0 * - 75 - col0 FROM tab1 ---- -228 -4864 -6080 onlyif mysql # use DIV operator for integer division query I rowsort label-7224 SELECT DISTINCT - tab1.col1 DIV col1 + + col1 FROM tab1 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-7224 SELECT DISTINCT - tab1.col1 / col1 + + col1 FROM tab1 ---- 12 25 9 query I rowsort SELECT - 35 + col0 * + tab1.col1 FROM tab1 ---- 1005 43 605 query I rowsort SELECT + 22 AS col2 FROM tab2 AS cor0 ---- 22 22 22 query I rowsort SELECT DISTINCT + col1 * - col1 + - col2 AS col1 FROM tab1 AS cor0 ---- -157 -265 -730 query I rowsort SELECT DISTINCT 60 + col2 AS col1 FROM tab0 AS cor0 ---- 142 61 93 query I rowsort SELECT ALL - 13 + col1 AS col0 FROM tab1 AS cor0 ---- -3 0 13 onlyif mysql # use DIV operator for integer division query I rowsort label-7230 SELECT 22 DIV - col2 AS col0 FROM tab0 cor0 ---- -22 0 0 skipif mysql # not compatible query I rowsort label-7230 SELECT 22 / - col2 AS col0 FROM tab0 cor0 ---- -22 0 0 query I rowsort SELECT ALL + col0 * col1 * ( + 79 * - col0 ) + col2 AS col2 FROM tab0 AS cor0 ---- -3913311 -56943987 -9387174 query I rowsort SELECT DISTINCT - + col0 + + cor0.col0 * 40 * col0 FROM tab2 AS cor0 ---- 1953 243282 249561 query I rowsort SELECT - col1 * - 32 AS col0 FROM tab1 AS cor0 ---- 320 416 832 query I rowsort SELECT col0 + - col2 * - 85 FROM tab0 cor0 ---- 120 2829 7059 query I rowsort SELECT ALL + cor0.col2 + + col1 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - cor0.col2 ) * col2 col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - col1 col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL - 7 * - 58 + - col1 AS col1 FROM tab1 AS cor0 ---- 380 393 396 query I rowsort SELECT ALL + + 96 AS col2 FROM tab0 AS cor0 ---- 96 96 96 query I rowsort SELECT DISTINCT col0 + ( + col2 * cor0.col0 ) AS col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT - col0 + - col2 * - col2 AS col1 FROM tab1 cor0 ---- 2913 3185 9136 query I rowsort SELECT ALL 6 FROM tab2 AS cor0 ---- 6 6 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 28 * col1 - + cor0.col2 col2 FROM tab2 AS cor0 ---- 1626 438 841 query I rowsort SELECT + - ( - col0 ) * col2 + col2 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT ALL ( + 79 ) AS col2 FROM tab2 AS cor0 ---- 79 79 79 query I rowsort SELECT + + ( ( - col2 ) ) * col1 + + cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT DISTINCT - + col0 + ( + col1 * col1 ) FROM tab0 AS cor0 ---- 7372 8192 9374 query I rowsort SELECT DISTINCT + col0 * col0 + + col1 * 0 AS col1 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT ALL + col1 * - col2 * col2 + col0 * col1 - + col2 FROM tab2 AS cor0 ---- -22409 -23243 -35308 query I rowsort SELECT DISTINCT + 66 * - tab0.col2 AS col2 FROM tab0, tab2 AS cor0 ---- -2178 -5412 -66 query I rowsort SELECT DISTINCT - 78 * col0 FROM tab1 AS cor0 ---- -234 -4992 -6240 query I rowsort SELECT + ( + col2 ) + col1 AS col2 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-7253 SELECT DISTINCT 96 DIV col0 + + col0 FROM tab2 ---- 20 79 80 skipif mysql # not compatible query I rowsort label-7253 SELECT DISTINCT 96 / col0 + + col0 FROM tab2 ---- 20 79 80 query I rowsort SELECT DISTINCT + col1 * - col2 * + col1 AS col0 FROM tab0 AS cor0 ---- -244068 -679042 -9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7255 SELECT DISTINCT - CAST( - 1 AS SIGNED ) FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-7255 SELECT DISTINCT - CAST ( - 1 AS INTEGER ) FROM tab0 AS cor0 ---- 1 query I rowsort SELECT DISTINCT - col2 * - 23 AS col1 FROM tab2 AS cor0 ---- 598 621 874 query I rowsort SELECT + col0 * col1 * col2 AS col1 FROM tab0 cor0 ---- 3395 664118 68112 query I rowsort SELECT + 27 * - 55 AS col0 FROM tab2 AS cor0 ---- -1485 -1485 -1485 query I rowsort SELECT - - col2 * + ( col0 ) + col2 - + col2 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - + 31 * 31 FROM tab2 cor0 ---- -961 query I rowsort SELECT - 7 * col1 + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0 ---- -555 -569 -678 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7262 SELECT - + ( col1 ) * CAST( NULL AS SIGNED ) + - col1 * - col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7262 SELECT - + ( col1 ) * CAST ( NULL AS INTEGER ) + - col1 * - col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7263 SELECT DISTINCT cor0.col1 DIV - 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-7263 SELECT DISTINCT cor0.col1 / - col0 col2 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT ALL 14 AS col2 FROM tab2, tab1 cor0, tab0 cor1, tab1 AS cor2 ---- 81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff query I rowsort SELECT ALL + + 17 AS col0 FROM tab0 AS cor0 ---- 17 17 17 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab2 AS cor1 ---- 3645 values hashing to 773bb916e463ebc075d701108532badb query I rowsort SELECT ALL col0 + - tab1.col0 * - col1 FROM tab1 ---- 1120 704 81 query I rowsort SELECT - + col2 * + 31 FROM tab2 AS cor0 ---- -1178 -806 -837 query I rowsort SELECT DISTINCT + 45 FROM tab2, tab0 AS cor0, tab1 cor1 ---- 45 query I rowsort SELECT DISTINCT col2 * col0 + + col1 AS col0 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT ALL cor0.col2 * + cor0.col1 + 13 + col2 AS col1 FROM tab2 AS cor0 ---- 1573 697 877 query I rowsort SELECT col0 * 95 FROM tab2 cor0 ---- 665 7410 7505 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 10 col2 FROM tab0, tab0 AS cor0 ---- -10 query I rowsort SELECT col2 - col2 * + col0 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT ALL col1 * ( + col2 ) AS col2 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT - ( 51 ) * + col2 FROM tab0 cor0 ---- -1683 -4182 -51 query I rowsort SELECT 12 * 29 AS col1 FROM tab1, tab2 cor0 ---- 9 values hashing to 888a8cb743aa97be3b2dcc7f6e95044b query I rowsort SELECT - col0 * ( - ( + col0 ) ) AS col1 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT col0 * 56 + ( + tab2.col1 ) * + col0 * col0 AS col2 FROM tab2 ---- 110521 1911 363324 query I rowsort SELECT + tab0.col2 * - ( 9 ) + + col2 AS col1 FROM tab0 ---- -264 -656 -8 query I rowsort SELECT + col2 + ( col0 ) + - col0 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT col1 + cor0.col1 * - col0 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT - cor0.col2 * + col0 + col0 + col1 AS col1 FROM tab0 AS cor0 ---- -682 -7118 97 query I rowsort SELECT - col2 * col2 * - col2 AS col0 FROM tab1 AS cor0 ---- 157464 185193 884736 query I rowsort SELECT + cor0.col0 * 86 AS col1 FROM tab0 AS cor0 ---- 2064 3010 7654 query I rowsort SELECT ALL + 17 * + col0 * + 54 + col0 FROM tab0 ---- 22056 32165 81791 query I rowsort SELECT + + cor0.col1 * + col2 + col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT - 43 * col2 AS col0 FROM tab1 cor0 ---- -2322 -2451 -4128 query I rowsort SELECT ( + col2 ) * - col1 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ( - cor0.col2 ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 query I rowsort SELECT 56 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 9c4523312174730bbc525b9977aa99fa query I rowsort SELECT cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT + col2 AS col0 FROM tab1 WHERE NULL >= ( NULL ) ---- query I rowsort SELECT + + 89 + col2 + + ( 80 ) * + col1 AS col1 FROM tab2 AS cor0 ---- 1487 2596 4835 query I rowsort SELECT + 62 + cor0.col1 + - cor0.col0 FROM tab0 AS cor0 ---- 124 124 64 query I rowsort SELECT DISTINCT col0 * tab1.col2 AS col0 FROM tab1 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-7297 SELECT col0 DIV - col2 + col0 DIV col0 col2 FROM tab1 ---- 0 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7297 SELECT col0 / - col2 + col0 / col0 col2 FROM tab1 ---- 0 1 1 query I rowsort SELECT ALL col0 * - col0 * - col2 AS col1 FROM tab0 ---- 1225 19008 649522 query III rowsort SELECT * FROM tab1 WHERE NOT - col2 + - col0 * - col2 + - col2 IN ( - col1 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query III rowsort SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( + col1 + - col2 * col2 / col2 ) AND ( - col1 ) ---- query III rowsort SELECT * FROM tab2 WHERE - col1 + col0 IN ( col0 ) ---- query I rowsort SELECT col1 + tab1.col0 * col2 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT ALL tab1.col2 AS col1 FROM tab1 WHERE NOT col0 + col1 + - col2 >= ( NULL ) ---- query I rowsort SELECT DISTINCT - col2 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2 ---- query I rowsort SELECT - tab0.col0 * + col1 * + col1 AS col2 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT ALL - col2 + + col0 + col1 AS col2 FROM tab2 ---- 11 111 58 onlyif mysql # use DIV operator for integer division query I rowsort label-7307 SELECT ALL - tab0.col0 * col1 DIV + col2 FROM tab0 ---- -3395 -62 -98 skipif mysql # not compatible query I rowsort label-7307 SELECT ALL - tab0.col0 * col1 / + col2 FROM tab0 ---- -3395 -62 -98 query I rowsort SELECT cor0.col1 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT DISTINCT - col2 * - col1 * + 5 FROM tab0 ---- 14190 37310 485 query I rowsort SELECT 3 * + col2 AS col1 FROM tab2 AS cor0 ---- 114 78 81 query I rowsort SELECT - col1 + - cor0.col1 * + col0 AS col1 FROM tab0 AS cor0 ---- -2150 -3492 -8190 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7312 SELECT - ( col1 ) * + CAST( NULL AS SIGNED ) * - col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7312 SELECT - ( col1 ) * + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 * col1 col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT + col1 * - col2 * - col1 AS col0 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT ALL + col0 + 53 * col2 AS col1 FROM tab0 cor0 ---- 1773 4435 88 query I rowsort SELECT - 99 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 64d06513850a26495bc6c2fddeb254b7 query I rowsort SELECT - col2 + 31 - + 37 AS col2 FROM tab1 ---- -102 -60 -63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * 76 col1 FROM tab0 ---- 6536 6916 7372 query I rowsort SELECT col1 + col2 AS col2 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT + col2 * + col1 * col0 + col1 AS col1 FROM tab2 ---- 119711 51051 5890 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7321 SELECT - col2 - - CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7321 SELECT - col2 - - CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + col2 + - ( + col1 ) + col0 AS col0 FROM tab2 ---- 100 3 45 query I rowsort SELECT + cor0.col1 + - ( col2 ) + + col0 * - 74 AS col2 FROM tab2 AS cor0 ---- -514 -5739 -5867 query I rowsort SELECT col0 * + 70 + col2 + - col0 FROM tab0 AS cor0 ---- 1689 2416 6223 query I rowsort SELECT - 82 + cor0.col1 AS col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 7162f83fd4500575cc14b9aeb331e4ed query I rowsort SELECT + tab0.col0 FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 query I rowsort SELECT ALL + 67 FROM tab0 ---- 67 67 67 query I rowsort SELECT DISTINCT cor0.col0 + - cor0.col1 AS col0 FROM tab2, tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT + + cor0.col0 + - 31 * col1 FROM tab1 AS cor0 ---- -246 -323 -803 query I rowsort SELECT - col0 - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT ( 57 ) AS col0 FROM tab1 ---- 57 57 57 query I rowsort SELECT ALL + + 44 * col1 FROM tab0 AS cor0 ---- 3784 4004 4268 onlyif mysql # use DIV operator for integer division query I rowsort label-7333 SELECT DISTINCT - 67 DIV col0 + col2 FROM tab1 cor0 ---- 32 56 96 skipif mysql # not compatible query I rowsort label-7333 SELECT DISTINCT - 67 / col0 + col2 FROM tab1 cor0 ---- 32 56 96 query I rowsort SELECT ALL - col2 + col2 * col0 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT ALL cor0.col2 * cor0.col2 * col2 AS col2 FROM tab1 AS cor0 ---- 157464 185193 884736 query I rowsort SELECT + ( col0 ) * col1 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT 60 * + col2 FROM tab2 ---- 1560 1620 2280 query I rowsort SELECT ALL + col0 * - col1 * col1 FROM tab1 AS cor0 ---- -13520 -2028 -6400 onlyif mysql # use DIV operator for integer division query I rowsort label-7339 SELECT col1 * col0 DIV col1 + col1 AS col2 FROM tab0 AS cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-7339 SELECT col1 * col0 / col1 + col1 AS col2 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT tab0.col0 * + col0 * + col2 + + col2 - - col1 AS col2 FROM tab0 ---- 1323 19127 649695 onlyif mysql # use DIV operator for integer division query I rowsort label-7341 SELECT tab1.col1 + + col0 DIV + col1 AS col1 FROM tab1 ---- 16 19 26 skipif mysql # not compatible query I rowsort label-7341 SELECT tab1.col1 + + col0 / + col1 AS col1 FROM tab1 ---- 16 19 26 query I rowsort SELECT ALL col1 * col2 + col1 * + col0 FROM tab1 ---- 1210 1482 2288 query I rowsort SELECT - col0 + tab1.col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT + col2 + col0 + + col0 AS col2 FROM tab2 ---- 182 196 41 query I rowsort SELECT ALL + col0 + col1 * + col0 AS col1 FROM tab2 AS cor0 ---- 1422 224 4680 onlyif mysql # use DIV operator for integer division query I rowsort label-7346 SELECT - col2 * - cor0.col0 + col1 DIV - cor0.col0 FROM tab1 AS cor0 ---- 154 3648 7680 skipif mysql # not compatible query I rowsort label-7346 SELECT - col2 * - cor0.col0 + col1 / - cor0.col0 FROM tab1 AS cor0 ---- 154 3648 7680 query I rowsort SELECT + + cor0.col1 + - col0 + - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL col2 * + col1 * + col0 AS col1 FROM tab1 AS cor0 ---- 36480 4212 99840 onlyif mysql # use DIV operator for integer division query I rowsort label-7349 SELECT ALL col2 DIV col0 + + col0 AS col1 FROM tab0 ---- 25 35 89 skipif mysql # not compatible query I rowsort label-7349 SELECT ALL col2 / col0 + + col0 AS col1 FROM tab0 ---- 25 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-7350 SELECT tab1.col1 + - col0 DIV + col0 + col1 * col2 FROM tab1 ---- 1260 1429 579 skipif mysql # not compatible query I rowsort label-7350 SELECT tab1.col1 + - col0 / + col0 + col1 * col2 FROM tab1 ---- 1260 1429 579 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 * cor0.col2 col1 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 02081120b66025475df9f31f465bcbe4 query I rowsort SELECT col1 + col0 * + col2 AS col2 FROM tab0 ---- 132 7389 878 query I rowsort SELECT - tab1.col0 * + col2 + col2 + col0 FROM tab1 ---- -105 -3527 -7504 query I rowsort SELECT ALL + col2 + - col1 + col0 AS col0 FROM tab0 AS cor0 ---- -29 -61 80 query I rowsort SELECT DISTINCT - col0 * - col1 AS col1 FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7356 SELECT CAST( col2 AS SIGNED ) AS col2 FROM tab1 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-7356 SELECT CAST ( col2 AS INTEGER ) AS col2 FROM tab1 ---- 54 57 96 query I rowsort SELECT DISTINCT col2 + col0 * - col1 + - col0 AS col1 FROM tab2 AS cor0 ---- -1384 -197 -4654 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + - col0 col0 FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT - 24 + col0 * - col1 AS col1 FROM tab2 cor0 ---- -1367 -241 -4626 query I rowsort SELECT DISTINCT + 15 AS col2 FROM tab1 AS cor0 ---- 15 query I rowsort SELECT ALL + + col2 + - col0 AS col2 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT ALL col1 * + 25 FROM tab0 ---- 2150 2275 2425 query I rowsort SELECT + tab0.col2 + 81 FROM tab0 ---- 114 163 82 query I rowsort SELECT DISTINCT + col0 + col2 * - col1 - + col2 AS col1 FROM tab2 ---- -1482 -605 -857 query I rowsort SELECT ( - col1 ) * col2 - col2 * + col0 AS col1 FROM tab1 ---- -1566 -4218 -8928 query I rowsort SELECT ALL - - 42 FROM tab0 AS cor0 ---- 42 42 42 query I rowsort SELECT DISTINCT - - col2 * cor0.col1 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT + + 17 FROM tab2 AS cor0 ---- 17 17 17 query I rowsort SELECT - 47 * col2 FROM tab1 AS cor0 ---- -2538 -2679 -4512 query I rowsort SELECT DISTINCT col2 * + tab1.col1 + + col2 FROM tab1 ---- 1344 1458 627 query I rowsort SELECT col2 + tab1.col1 AS col0 FROM tab1 ---- 109 67 80 query I rowsort SELECT ALL col2 * tab1.col2 AS col1 FROM tab1 WHERE ( NULL ) IN ( + col1 ) ---- query I rowsort SELECT ALL col0 * - col0 + col2 FROM tab1 ---- -4039 -6304 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + - col0 col2 FROM tab0 ---- -171 -36 -57 query I rowsort SELECT ALL col1 * + tab1.col2 + tab1.col1 * - tab1.col1 AS col1 FROM tab1 ---- 1079 470 728 query I rowsort SELECT - tab0.col0 AS col1 FROM tab0 WHERE NOT col0 NOT BETWEEN col2 AND - col2 ---- query I rowsort SELECT ALL tab2.col0 * col2 - col1 FROM tab2 ---- 158 1969 2985 query I rowsort SELECT DISTINCT + tab2.col0 + + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + col2 * + col0 AND NULL ---- query I rowsort SELECT ALL col2 + cor0.col1 * cor0.col2 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT ALL + col2 + + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT col0 AS col1 FROM tab2 WHERE - col1 * - col2 = NULL ---- query III rowsort SELECT * FROM tab0 WHERE NOT ( + col0 / col1 ) >= ( + col2 + - col0 ) ---- 24 86 33 query I rowsort SELECT col2 * + col1 FROM tab2 WHERE ( col0 ) NOT BETWEEN col1 AND NULL ---- 837 query I rowsort SELECT DISTINCT col2 * - col2 + - col0 * col2 FROM tab0 ---- -14022 -1881 -36 query I rowsort SELECT + tab0.col0 + + tab0.col0 * - col0 FROM tab0 ---- -1190 -552 -7832 query I rowsort SELECT DISTINCT col1 * col0 + + col2 * - col1 * col0 FROM tab2 ---- -115050 -49691 -5642 query I rowsort SELECT col1 AS col0 FROM tab0 WHERE NOT ( NULL ) < col2 - col0 * - col0 ---- query I rowsort SELECT - col2 AS col1 FROM tab1 WHERE ( NULL ) >= NULL ---- query I rowsort SELECT + tab2.col1 - - col0 * + col0 FROM tab2 ---- 6143 6258 80 query I rowsort SELECT ALL col1 * col0 AS col1 FROM tab1 WHERE NOT + col0 IN ( tab1.col1 ) ---- 1040 640 78 query I rowsort SELECT + col1 FROM tab2 WHERE NOT NULL < ( NULL ) ---- query I rowsort SELECT + tab1.col2 - col1 FROM tab1 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-7393 SELECT ALL - col0 + + col0 DIV - col1 FROM tab2 ---- -7 -79 -83 skipif mysql # not compatible query I rowsort label-7393 SELECT ALL - col0 + + col0 / - col1 FROM tab2 ---- -7 -79 -83 query I rowsort SELECT ALL col0 * col0 + + tab2.col0 FROM tab2 ---- 56 6162 6320 query I rowsort SELECT ALL col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT ALL col1 + tab1.col2 * - col1 AS col0 FROM tab1 ---- -1235 -1378 -560 query I rowsort SELECT - col0 - + col1 AS col0 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT ALL col2 + col1 * + col0 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ALL col1 + tab1.col0 AS col0 FROM tab1 ---- 29 74 93 query III rowsort SELECT * FROM tab1 WHERE NOT + col1 / col2 = + col2 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT DISTINCT - tab0.col2 + col0 AS col2 FROM tab0 ---- -9 34 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 col1 FROM tab1 WHERE ( NULL ) > NULL ---- query I rowsort SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT NULL < NULL ---- query I rowsort SELECT - tab1.col1 + col0 * tab1.col1 FROM tab1 ---- 1027 52 630 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 + col0 * col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-7406 SELECT ALL - - col0 DIV + col2 + + col2 FROM tab1 cor0 ---- 54 58 96 skipif mysql # not compatible query I rowsort label-7406 SELECT ALL - - col0 / + col2 + + col2 FROM tab1 cor0 ---- 54 58 96 query I rowsort SELECT ALL - col1 * - col2 * col0 - col2 AS col2 FROM tab1 AS cor0 ---- 36423 4158 99744 query I rowsort SELECT DISTINCT + - col2 - - col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - col2 * col0 * col1 AS col1 FROM tab2 AS cor0 ---- -119652 -51034 -5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col0 col0 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT DISTINCT col2 * col2 - col1 FROM tab1 AS cor0 ---- 2890 3239 9203 onlyif mysql # use DIV operator for integer division query I rowsort label-7412 SELECT DISTINCT - - col2 DIV - cor0.col1 + - col1 * + col2 AS col0 FROM tab2 AS cor0 ---- -1534 -648 -837 skipif mysql # not compatible query I rowsort label-7412 SELECT DISTINCT - - col2 / - cor0.col1 + - col1 * + col2 AS col0 FROM tab2 AS cor0 ---- -1534 -648 -837 query I rowsort SELECT + + cor0.col2 + - col2 FROM tab2 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7414 SELECT DISTINCT + - col2 DIV col0 + - col2 * col2 + col0 FROM tab1 cor0 ---- -2931 -3185 -9137 skipif mysql # not compatible query I rowsort label-7414 SELECT DISTINCT + - col2 / col0 + - col2 * col2 + col0 FROM tab1 cor0 ---- -2931 -3185 -9137 query I rowsort SELECT ALL - - col0 * col0 - - col1 FROM tab1 cor0 ---- 35 4106 6413 onlyif mysql # use DIV operator for integer division query I rowsort label-7416 SELECT ALL + + col0 + + cor0.col2 DIV - col1 AS col2 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-7416 SELECT ALL + + col0 + + cor0.col2 / - col1 AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL cor0.col1 * col1 * + cor0.col1 + + col2 - col0 * col2 AS col2 FROM tab2 AS cor0 ---- 1949 203377 29629 onlyif mysql # use DIV operator for integer division query I rowsort label-7418 SELECT col2 DIV - col2 + cor0.col0 col1 FROM tab0 AS cor0 ---- 23 34 88 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7418 SELECT col2 / - col2 + cor0.col0 col1 FROM tab0 AS cor0 ---- 23 34 88 query I rowsort SELECT DISTINCT col0 + col1 * col0 + col2 * col2 FROM tab0 AS cor0 ---- 14912 3177 3431 query I rowsort SELECT DISTINCT col0 * + col0 - - col1 AS col0 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT - tab2.col2 + + col0 AS col2 FROM tab2 ---- -20 41 52 query I rowsort SELECT ALL - 40 + col2 FROM tab1 cor0 ---- 14 17 56 query I rowsort SELECT + ( - col0 ) + + col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 21 * col2 + col0 FROM tab1 AS cor0 ---- -1131 -1133 -1936 query I rowsort SELECT + col2 + + col2 * + cor0.col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT ( 95 ) * cor0.col2 - + ( - col0 * - col2 + 69 ) AS col0 FROM tab2 AS cor0 ---- 2307 373 539 query I rowsort SELECT ALL + col1 * ( + col0 * + 50 ) + + col2 FROM tab2 AS cor0 ---- 10877 230126 67188 query I rowsort SELECT ALL - + 7 + col2 AS col1 FROM tab1 cor0 ---- 47 50 89 query I rowsort SELECT - + col2 * - col0 + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT + - col1 * - col1 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT + - ( col1 ) AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-7432 SELECT ALL + + col1 * col1 DIV + col0 FROM tab1 AS cor0 ---- 1 2 225 skipif mysql # not compatible query I rowsort label-7432 SELECT ALL + + col1 * col1 / + col0 FROM tab1 AS cor0 ---- 1 2 225 onlyif mysql # use DIV operator for integer division query I rowsort label-7433 SELECT col0 * col0 + col1 DIV - col1 AS col1 FROM tab1 ---- 4095 6399 8 skipif mysql # not compatible query I rowsort label-7433 SELECT col0 * col0 + col1 / - col1 AS col1 FROM tab1 ---- 4095 6399 8 query I rowsort SELECT DISTINCT 90 * col2 * + ( - ( - tab1.col0 ) ) FROM tab1 ---- 14580 328320 691200 query I rowsort SELECT + col1 * 83 AS col1 FROM tab0 cor0 ---- 7138 7553 8051 query I rowsort SELECT DISTINCT 15 FROM tab0, tab2 cor0, tab1 cor1 ---- 15 onlyif mysql # use DIV operator for integer division query I rowsort label-7437 SELECT col2 * + ( col0 ) DIV col0 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-7437 SELECT col2 * + ( col0 ) / col0 FROM tab0 ---- 1 33 82 query I rowsort SELECT DISTINCT + col2 * col1 + col2 AS col0 FROM tab2 ---- 1560 684 864 onlyif mysql # use DIV operator for integer division query I rowsort label-7439 SELECT ALL + tab0.col0 DIV ( + col2 ) + - col2 FROM tab0 ---- -33 -81 34 skipif mysql # not compatible query I rowsort label-7439 SELECT ALL + tab0.col0 / ( + col2 ) + - col2 FROM tab0 ---- -33 -81 34 query I rowsort SELECT + - col1 * cor0.col0 + - col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT - - 14 AS col1 FROM tab1 AS cor0 ---- 14 14 14 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col1 * - col0 + col1 col2 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT DISTINCT + ( + tab1.col2 ) AS col1 FROM tab1, tab1 AS cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab0.col0 * - 91 col1 FROM tab0 ---- -2184 -3185 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-7445 SELECT + col2 + col0 DIV 23 AS col0 FROM tab0 ---- 2 34 85 skipif mysql # not compatible query I rowsort label-7445 SELECT + col2 + col0 / 23 AS col0 FROM tab0 ---- 2 34 85 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col1 + CAST ( col1 AS REAL ) FROM tab2 ---- 0 query I rowsort SELECT + 85 + col2 FROM tab2 AS cor0 ---- 111 112 123 query I rowsort SELECT ALL cor0.col1 + + col1 AS col2 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT - 20 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to eb3a66728062963cccbd15bd2f5c9eee query I rowsort SELECT ALL col0 * + ( 14 ) FROM tab0 ---- 1246 336 490 query I rowsort SELECT ALL 30 * col0 AS col1 FROM tab0 ---- 1050 2670 720 onlyif mysql # use DIV operator for integer division query I rowsort label-7452 SELECT + col1 DIV - col0 AS col2 FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-7452 SELECT + col1 / - col0 AS col2 FROM tab2 ---- -4 0 0 query I rowsort SELECT ALL col0 * 12 AS col0 FROM tab0 ---- 1068 288 420 query I rowsort SELECT 36 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 onlyif mysql # use DIV operator for integer division query I rowsort label-7455 SELECT + 97 DIV + col1 AS col1 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7455 SELECT + 97 / + col1 AS col1 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT 74 + col1 - + col0 FROM tab2 AS cor0 ---- 12 55 98 onlyif mysql # use DIV operator for integer division query I rowsort label-7457 SELECT - + 78 DIV col2 AS col1 FROM tab0 AS cor0 ---- -2 -78 0 skipif mysql # not compatible query I rowsort label-7457 SELECT - + 78 / col2 AS col1 FROM tab0 AS cor0 ---- -2 -78 0 query I rowsort SELECT - col1 + 18 AS col0 FROM tab0 ---- -68 -73 -79 query I rowsort SELECT + tab0.col2 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT + 56 AS col0 FROM tab0 ---- 56 56 56 query I rowsort SELECT DISTINCT + 22 AS col1 FROM tab0 ---- 22 query I rowsort SELECT ALL + cor0.col1 FROM tab1, tab0, tab1 AS cor0, tab2 ---- 81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c query I rowsort SELECT + - col2 * 61 * - cor0.col0 AS col1 FROM tab2 AS cor0 ---- 11529 123708 183122 query I rowsort SELECT + cor0.col1 + - cor0.col0 * 67 FROM tab1 AS cor0 ---- -175 -4278 -5347 query I rowsort SELECT DISTINCT tab2.col0 * ( - cor0.col2 ) FROM tab2, tab1 cor0 ---- 9 values hashing to 99e52647357b835698a6730896ff820d query I rowsort SELECT 33 * cor0.col0 FROM tab0 cor0 ---- 1155 2937 792 query I rowsort SELECT ALL - col2 + + col1 * col0 * col2 FROM tab1 AS cor0 ---- 36423 4158 99744 query I rowsort SELECT DISTINCT - col2 * - col1 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT - cor0.col2 * - col2 - - col0 * 6 AS col0 FROM tab1 cor0 ---- 2934 3633 9696 query I rowsort SELECT - ( - col1 ) * col0 + + col2 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT ALL - - cor0.col0 * - col0 * - col1 AS col1 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT - - col1 - col0 AS col1 FROM tab1 AS cor0 ---- -54 -67 23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7473 SELECT ALL - cor0.col1 * CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-7473 SELECT ALL - cor0.col1 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * + 88 col1 FROM tab1 AS cor0 ---- -1144 -2288 -880 query I rowsort SELECT ALL col1 * 51 + col0 + col0 FROM tab1 AS cor0 ---- 1332 638 823 query I rowsort SELECT DISTINCT - - col1 + + 20 AS col2 FROM tab1 AS cor0 ---- 30 33 46 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7477 SELECT DISTINCT - + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7477 SELECT DISTINCT - + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT col0 + - 12 * - 86 FROM tab2 AS cor0 ---- 1039 1110 1111 query I rowsort SELECT ALL - col2 * col2 + 63 - col0 AS col2 FROM tab1 AS cor0 ---- -2856 -3250 -9233 query I rowsort SELECT ALL + col1 + 41 + col2 * col0 FROM tab2 AS cor0 ---- 2128 261 3060 query I rowsort SELECT - + col2 * - 50 - - cor0.col0 FROM tab2 AS cor0 ---- 1357 1378 1979 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7482 SELECT ALL - cor0.col1 + CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0 ---- -23 54 67 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7482 SELECT ALL - cor0.col1 + CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT + cor0.col0 - + col1 * ( col0 ) * 21 AS col2 FROM tab1 AS cor0 ---- -13376 -1635 -21760 query I rowsort SELECT ALL + tab2.col2 * - tab2.col1 AS col2 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT 9 * cor0.col2 + + col0 AS col1 FROM tab2 AS cor0 ---- 250 312 421 query I rowsort SELECT + col0 * + col2 + col0 + col1 * col1 * + col0 AS col2 FROM tab0 AS cor0 ---- 178320 329385 744396 query I rowsort SELECT ALL + - col0 + cor0.col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - 83 + col1 + col1 AS col0 FROM tab1 cor0 ---- -31 -57 -63 query I rowsort SELECT DISTINCT - + 5 FROM tab0 cor0 ---- -5 query I rowsort SELECT ALL + col1 * col0 + + col0 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7491 SELECT - CAST( NULL AS SIGNED ) * + col0 / col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7491 SELECT - CAST ( NULL AS INTEGER ) * + col0 / col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7492 SELECT - ( - 7 ) + + col0 DIV col2 FROM tab0 AS cor0 ---- 42 7 8 skipif mysql # not compatible query I rowsort label-7492 SELECT - ( - 7 ) + + col0 / col2 FROM tab0 AS cor0 ---- 42 7 8 onlyif mysql # use DIV operator for integer division query I rowsort label-7493 SELECT col1 + - col1 + col2 DIV col0 AS col1 FROM tab0 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7493 SELECT col1 + - col1 + col2 / col0 AS col1 FROM tab0 cor0 ---- 0 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-7494 SELECT ( col1 ) DIV col0 FROM tab1 cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-7494 SELECT ( col1 ) / col0 FROM tab1 cor0 ---- 0 0 8 onlyif mysql # use DIV operator for integer division query I rowsort label-7495 SELECT DISTINCT col0 DIV - col1 FROM tab0 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7495 SELECT DISTINCT col0 / - col1 FROM tab0 cor0 ---- 0 query I rowsort SELECT ALL 20 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4 query I rowsort SELECT DISTINCT + 12 FROM tab0, tab0 AS cor0 ---- 12 query I rowsort SELECT 57 FROM tab2, tab1 cor0 ---- 9 values hashing to 61da70c624ad60604a668f7f8f29392a query I rowsort SELECT DISTINCT - col2 * 87 FROM tab2 AS cor0 ---- -2262 -2349 -3306 query I rowsort SELECT + + 51 + 66 AS col2 FROM tab0 AS cor0 ---- 117 117 117 query I rowsort SELECT DISTINCT - 0 * - col0 AS col0 FROM tab1 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7502 SELECT ALL CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7502 SELECT ALL CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 26 + - 98 * - col0 * 12 FROM tab0 AS cor0 ---- 104638 28198 41134 query I rowsort SELECT DISTINCT col2 * 90 FROM tab2 ---- 2340 2430 3420 query I rowsort SELECT ( 50 ) AS col0 FROM tab0, tab0 cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 query I rowsort SELECT - col1 * + ( - ( + col0 ) ) FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - ( 31 ) FROM tab2 ---- -31 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1, tab0 AS cor1 ---- 3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc query I rowsort SELECT + tab1.col2 + col2 * tab1.col1 * - col2 AS col0 FROM tab1 ---- -119712 -32433 -75762 query I rowsort SELECT DISTINCT - 37 FROM tab0 AS cor0 ---- -37 query I rowsort SELECT + + ( cor0.col0 ) + - cor0.col0 * cor0.col2 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT + ( col1 ) * - col2 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-7513 SELECT + col0 * - col0 - - col2 DIV - col0 AS col1 FROM tab0 ---- -1225 -577 -7921 skipif mysql # not compatible query I rowsort label-7513 SELECT + col0 * - col0 - - col2 / - col0 AS col1 FROM tab0 ---- -1225 -577 -7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col2 ) + 52 col0 FROM tab1 AS cor0 ---- 106 109 148 query I rowsort SELECT col0 - col1 * col2 AS col0 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT ALL + 46 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 31818c9d4d325eb248735c97cb1dce39 query I rowsort SELECT DISTINCT + - col1 * - cor0.col2 * col0 AS col1 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-7518 SELECT - cor0.col2 DIV col0 AS col0 FROM tab0 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-7518 SELECT - cor0.col2 / col0 AS col0 FROM tab0 cor0 ---- -1 0 0 query I rowsort SELECT ALL - col1 * col0 + - col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 84 col2 FROM tab2 cor0 ---- 84 84 84 query I rowsort SELECT DISTINCT - + ( - col0 ) AS col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + - 49 * col2 * - 56 FROM tab0 AS cor0 ---- 225008 2744 90552 query I rowsort SELECT - - col2 * + col1 * + col1 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT + 22 * col1 + 45 FROM tab0 AS cor0 ---- 1937 2047 2179 query I rowsort SELECT DISTINCT - col2 + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0 ---- -327 -3507 -988 query I rowsort SELECT ALL col0 + - col1 * col0 FROM tab1 ---- -576 -75 -960 query I rowsort SELECT DISTINCT + col0 * - col1 + - col1 + col0 FROM tab0 AS cor0 ---- -2126 -3457 -8101 query I rowsort SELECT + col0 + - 80 * - cor0.col1 * col2 FROM tab1 AS cor0 ---- 112323 45664 99920 query I rowsort SELECT ALL col1 * - ( - 79 ) FROM tab2 AS cor0 ---- 1343 2449 4661 onlyif mysql # use DIV operator for integer division query I rowsort label-7530 SELECT DISTINCT + col1 + - 28 DIV - 29 + + col2 AS col2 FROM tab1 AS cor0 ---- 109 67 80 skipif mysql # not compatible query I rowsort label-7530 SELECT DISTINCT + col1 + - 28 / - 29 + + col2 AS col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT ALL - col0 - col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT ALL col1 * + col0 - col0 FROM tab1 cor0 ---- 576 75 960 query I rowsort SELECT + cor0.col1 * - 24 + - 2 FROM tab1 AS cor0 ---- -242 -314 -626 query I rowsort SELECT DISTINCT - col1 * - col1 + 25 * + col0 FROM tab2 AS cor0 ---- 1136 2264 5431 query I rowsort SELECT - col0 + col2 * + 43 + col0 AS col0 FROM tab0 ---- 1419 3526 43 query I rowsort SELECT DISTINCT 60 - 36 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2 ---- 24 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7537 SELECT ALL CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-7537 SELECT ALL CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0 ---- -17 -31 -59 query I rowsort SELECT - - 19 * + col2 AS col0 FROM tab1 AS cor0 ---- 1026 1083 1824 query I rowsort SELECT ALL + 86 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 query I rowsort SELECT DISTINCT ( ( - col0 ) ) FROM tab2 AS cor0 ---- -7 -78 -79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7541 SELECT CAST( NULL AS SIGNED ) * + col0 + + col2 * 31 * - col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7541 SELECT CAST ( NULL AS INTEGER ) * + col0 + + col2 * 31 * - col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( col2 ) + - col0 FROM tab2 AS cor0 ---- -104 -117 -34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 70 + col1 col1 FROM tab2 AS cor0 ---- 101 129 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * 59 * + 46 col0 FROM tab2 ---- 18998 211692 214406 query I rowsort SELECT ALL + 72 * cor0.col1 FROM tab0 AS cor0 ---- 6192 6552 6984 onlyif mysql # use DIV operator for integer division query I rowsort label-7546 SELECT ALL + cor0.col0 + col0 * col1 DIV col2 FROM tab1 cor0 ---- 4 75 90 skipif mysql # not compatible query I rowsort label-7546 SELECT ALL + cor0.col0 + col0 * col1 / col2 FROM tab1 cor0 ---- 4 75 90 query I rowsort SELECT DISTINCT col1 + col1 AS col2 FROM tab1 cor0 ---- 20 26 52 query I rowsort SELECT - 36 + col1 * 15 FROM tab0 ---- 1254 1329 1419 query I rowsort SELECT + 18 AS col1 FROM tab1 ---- 18 18 18 query I rowsort SELECT + col0 - + 46 AS col0 FROM tab2 AS cor0 ---- -39 32 33 query I rowsort SELECT - + col2 + ( col0 ) AS col0 FROM tab2 AS cor0 ---- -20 41 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 29 col1 FROM tab0 ---- -29 -29 -29 query I rowsort SELECT DISTINCT - ( - col1 ) AS col1 FROM tab2 ---- 17 31 59 query I rowsort SELECT col1 + + col1 * + col1 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT col1 - 19 AS col0 FROM tab2 AS cor0 ---- -2 12 40 query I rowsort SELECT - col1 + + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT - col2 + - col2 - + 26 FROM tab2 AS cor0 ---- -102 -78 -80 query I rowsort SELECT + col2 * + 37 FROM tab2 AS cor0 ---- 1406 962 999 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7559 SELECT + col0 * - CAST( + col0 AS SIGNED ) * + col2 + col0 FROM tab0 AS cor0 ---- -1190 -18984 -649433 skipif mysql # not compatible query I rowsort label-7559 SELECT + col0 * - CAST ( + col0 AS INTEGER ) * + col2 + col0 FROM tab0 AS cor0 ---- -1190 -18984 -649433 query I rowsort SELECT - + col1 * + ( - col0 ) FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + 41 * col1 AS col2 FROM tab0 cor0 ---- 3526 3731 3977 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7562 SELECT + CAST( NULL AS SIGNED ) + col0 / cor0.col1 AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7562 SELECT + CAST ( NULL AS INTEGER ) + col0 / cor0.col1 AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + 75 * + col0 col0 FROM tab2 AS cor0 ---- 525 5850 5925 query I rowsort SELECT col2 + 66 AS col0 FROM tab0 AS cor0 ---- 148 67 99 query I rowsort SELECT DISTINCT - col2 * col0 + - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -196 -2106 -3081 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7566 SELECT - CAST( NULL AS DECIMAL ) * 31 + col0 * + col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7566 SELECT - CAST ( NULL AS REAL ) * 31 + col0 * + col0 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( cor0.col2 ) + col1 col2 FROM tab0 AS cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 33 * col2 + + col0 col1 FROM tab2 AS cor0 ---- -1175 -780 -884 query I rowsort SELECT ALL 5 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6797d40099023779b89feb627d94a3e7 query I rowsort SELECT DISTINCT 83 * col0 + col1 FROM tab1 AS cor0 ---- 275 5322 6653 query I rowsort SELECT - + 12 * - col0 AS col1 FROM tab0 AS cor0 ---- 1068 288 420 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7572 SELECT ALL col0 * col1 + CAST( col2 AS SIGNED ) * + col1 FROM tab2 AS cor0 ---- 1054 1989 6136 skipif mysql # not compatible query I rowsort label-7572 SELECT ALL col0 * col1 + CAST ( col2 AS INTEGER ) * + col1 FROM tab2 AS cor0 ---- 1054 1989 6136 query I rowsort SELECT DISTINCT + col1 * + col0 + ( - col2 ) FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT + 67 * col1 + col2 FROM tab2 cor0 ---- 1177 2104 3979 query I rowsort SELECT DISTINCT 47 + - col1 AS col0 FROM tab2 AS cor0 ---- -12 16 30 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7576 SELECT cor0.col0 * + col0 + - CAST( - cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 35 4106 6413 skipif mysql # not compatible query I rowsort label-7576 SELECT cor0.col0 * + col0 + - CAST ( - cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 35 4106 6413 query I rowsort SELECT + col1 + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 1461 735 760 query I rowsort SELECT ALL - cor0.col1 * col1 FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT cor0.col0 + + col0 * 45 FROM tab0 AS cor0 ---- 1104 1610 4094 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 + - ( col1 ) * col1 * - ( col0 ) col2 FROM tab2 AS cor0 ---- 22869 271544 6754 query I rowsort SELECT - col1 + + 88 FROM tab2 AS cor0 ---- 29 57 71 onlyif mysql # use DIV operator for integer division query I rowsort label-7582 SELECT DISTINCT col1 DIV - 52 - col1 FROM tab2 AS cor0 ---- -17 -31 -60 skipif mysql # not compatible query I rowsort label-7582 SELECT DISTINCT col1 / - 52 - col1 FROM tab2 AS cor0 ---- -17 -31 -60 query I rowsort SELECT ALL + cor0.col2 * - col0 AS col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT cor0.col1 + + 88 FROM tab1, tab0 AS cor0 ---- 174 179 185 query I rowsort SELECT DISTINCT col0 * + ( col0 ) FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT ( - cor0.col0 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT 82 * + col1 * + col1 AS col2 FROM tab1 cor0 ---- 13858 55432 8200 query IIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL >= ( - cor0.col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-7589 SELECT col0 + - col0 DIV col2 + - col0 AS col1 FROM tab1 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-7589 SELECT col0 + - col0 / col2 + - col0 AS col1 FROM tab1 cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7590 SELECT - CAST( - col2 AS SIGNED ) + col1 DIV - col0 + col1 FROM tab2 AS cor0 ---- 54 55 85 skipif mysql # not compatible query I rowsort label-7590 SELECT - CAST ( - col2 AS INTEGER ) + col1 / - col0 + col1 FROM tab2 AS cor0 ---- 54 55 85 query I rowsort SELECT DISTINCT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 26 27 38 query I rowsort SELECT 46 FROM tab0, tab2 cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to 086e8f56201fbf4c0ce74087e710811d query I rowsort SELECT + + 48 * - 39 + col2 FROM tab1 AS cor0 ---- -1776 -1815 -1818 query I rowsort SELECT DISTINCT + 10 + col2 + - col2 AS col1 FROM tab0 AS cor0 ---- 10 query I rowsort SELECT + cor0.col2 * - 19 + + col0 * 62 FROM tab0 AS cor0 ---- 2151 3960 861 query I rowsort SELECT 42 FROM tab1, tab1 cor0 ---- 9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442 query I rowsort SELECT tab1.col0 * - 18 FROM tab1 ---- -1152 -1440 -54 query I rowsort SELECT - col1 * 15 FROM tab2 ---- -255 -465 -885 query I rowsort SELECT + 26 + - 86 * - col2 FROM tab2 ---- 2262 2348 3294 query I rowsort SELECT DISTINCT col0 * col2 + col2 FROM tab0 ---- 36 7380 825 query I rowsort SELECT ALL + 80 * - 14 FROM tab0 AS cor0 ---- -1120 -1120 -1120 query I rowsort SELECT ALL - col0 + + 4 FROM tab1 ---- -60 -76 1 onlyif mysql # use DIV operator for integer division query I rowsort label-7603 SELECT - col2 DIV cor0.col1 + col0 DIV col0 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7603 SELECT - col2 / cor0.col1 + col0 / col0 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + col0 + ( col2 + - col1 ) * + col1 AS col2 FROM tab0 AS cor0 ---- -4534 -730 -9277 query I rowsort SELECT col2 + + 51 FROM tab0 ---- 133 52 84 query I rowsort SELECT ALL - col0 * ( col0 ) + - col0 AS col0 FROM tab1 AS cor0 ---- -12 -4160 -6480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7607 SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7607 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL - - 22 * + col2 * + col1 FROM tab0 AS cor0 ---- 164164 2134 62436 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7609 SELECT DISTINCT col0 * col0 + - col1 * CAST( + cor0.col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0 ---- -1604 -36495 -9824 skipif mysql # not compatible query I rowsort label-7609 SELECT DISTINCT col0 * col0 + - col1 * CAST ( + cor0.col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0 ---- -1604 -36495 -9824 query I rowsort SELECT DISTINCT - 96 * - 53 AS col2 FROM tab2 ---- 5088 query I rowsort SELECT - 37 FROM tab0 ---- -37 -37 -37 query I rowsort SELECT ALL 21 FROM tab0, tab0 AS cor0 ---- 9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7 query I rowsort SELECT DISTINCT - cor0.col1 + - cor0.col0 * cor0.col0 FROM tab1 AS cor0 ---- -35 -4106 -6413 onlyif mysql # use DIV operator for integer division query I rowsort label-7614 SELECT + ( col0 ) DIV cor0.col0 AS col1 FROM tab2 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7614 SELECT + ( col0 ) / cor0.col0 AS col1 FROM tab2 cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-7615 SELECT DISTINCT + col0 * col2 DIV + col0 AS col2 FROM tab0 cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-7615 SELECT DISTINCT + col0 * col2 / + col0 AS col2 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT ALL col1 * col0 AS col2 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - col1 + + col2 * col2 FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT DISTINCT + + col1 * + 43 + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1144 440 572 query I rowsort SELECT DISTINCT - 18 AS col0 FROM tab2, tab2 AS cor0 ---- -18 query I rowsort SELECT ALL col1 * + col0 + + col0 * + col2 FROM tab2 ---- 406 4345 6630 onlyif mysql # use DIV operator for integer division query I rowsort label-7621 SELECT 74 * col1 DIV - col0 FROM tab0 ---- -205 -265 -75 skipif mysql # not compatible query I rowsort label-7621 SELECT 74 * col1 / - col0 FROM tab0 ---- -205 -265 -75 query I rowsort SELECT + 19 - - col1 FROM tab2 ---- 36 50 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - col0 col1 FROM tab2 ---- 49 6084 6241 onlyif mysql # use DIV operator for integer division query I rowsort label-7624 SELECT tab2.col0 * col0 DIV 4 - + 83 DIV + col0 AS col0 FROM tab2 ---- 1 1520 1559 skipif mysql # not compatible query I rowsort label-7624 SELECT tab2.col0 * col0 / 4 - + 83 / + col0 AS col0 FROM tab2 ---- 1 1520 1559 query I rowsort SELECT DISTINCT 58 + - cor0.col1 AS col2 FROM tab1 AS cor0 ---- 32 45 48 query I rowsort SELECT + + cor0.col0 + col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + - col2 * + col0 + col1 FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # use DIV operator for integer division query I rowsort label-7628 SELECT ALL + + col1 + + cor0.col2 DIV + col0 AS col0 FROM tab0 AS cor0 ---- 87 91 97 skipif mysql # not compatible query I rowsort label-7628 SELECT ALL + + col1 + + cor0.col2 / + col0 AS col0 FROM tab0 AS cor0 ---- 87 91 97 query I rowsort SELECT DISTINCT + cor0.col2 - col0 AS col0 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT ALL - col0 + - 74 * col1 AS col2 FROM tab1 AS cor0 ---- -1042 -1927 -804 query I rowsort SELECT ALL + col0 * - 20 AS col0 FROM tab0 AS cor0 ---- -1780 -480 -700 query I rowsort SELECT col2 * + cor0.col0 + cor0.col1 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT col2 + 21 * - col0 AS col2 FROM tab0 cor0 ---- -1787 -471 -734 query I rowsort SELECT DISTINCT - - col2 + 58 FROM tab0 AS cor0 ---- 140 59 91 query I rowsort SELECT DISTINCT + col2 * cor0.col1 * + col1 + + col0 AS col0 FROM tab0 AS cor0 ---- 244092 679131 9444 query I rowsort SELECT ALL - + col2 + - 36 FROM tab0 AS cor0 ---- -118 -37 -69 query I rowsort SELECT ALL - col1 + - col0 * + col2 AS col2 FROM tab1 AS cor0 ---- -188 -3658 -7693 onlyif mysql # use DIV operator for integer division query I rowsort label-7638 SELECT ALL col1 + col1 DIV - 60 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-7638 SELECT ALL col1 + col1 / - 60 FROM tab1 ---- 10 13 26 query I rowsort SELECT col2 + col2 * - ( - tab2.col2 ) AS col0 FROM tab2 ---- 1482 702 756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 51 + - col1 col0 FROM tab0 ---- -35 -40 -46 query I rowsort SELECT + col2 + 90 AS col2 FROM tab2 AS cor0 ---- 116 117 128 query I rowsort SELECT ALL + col0 * + ( col1 ) + col2 * + col0 FROM tab1 AS cor0 ---- 240 4288 8720 query I rowsort SELECT DISTINCT - col0 * 37 FROM tab1 AS cor0 ---- -111 -2368 -2960 onlyif mysql # use DIV operator for integer division query I rowsort label-7644 SELECT DISTINCT col0 DIV - 79 AS col1 FROM tab2 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-7644 SELECT DISTINCT col0 / - 79 AS col1 FROM tab2 AS cor0 ---- -1 0 query I rowsort SELECT - cor0.col2 * col1 AS col0 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT col0 * + ( 1 + + cor0.col0 ) AS col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT ALL col1 * + 2 + - col1 * + col2 * - 56 FROM tab2 AS cor0 ---- 36210 46934 86022 query I rowsort SELECT col2 * + col1 * - cor0.col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT + col0 * col1 + col2 FROM tab1 ---- 1136 132 697 query I rowsort SELECT ALL col2 + - tab2.col0 AS col2 FROM tab2 ---- -41 -52 20 query I rowsort SELECT ALL - col2 + col2 * tab2.col1 AS col2 FROM tab2 ---- 1508 608 810 query I rowsort SELECT - 44 + col2 FROM tab0 AS cor0 ---- -11 -43 38 query I rowsort SELECT + - ( + 63 ) FROM tab0 AS cor0 ---- -63 -63 -63 query I rowsort SELECT ALL + 8 AS col1 FROM tab0 cor0 ---- 8 8 8 query I rowsort SELECT - 31 * - col1 FROM tab1 AS cor0 ---- 310 403 806 onlyif mysql # use DIV operator for integer division query I rowsort label-7656 SELECT + cor0.col1 DIV - cor0.col2 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-7656 SELECT + cor0.col1 / - cor0.col2 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT + - cor0.col0 + col1 FROM tab0 AS cor0 ---- 2 62 62 onlyif mysql # use DIV operator for integer division query I rowsort label-7658 SELECT DISTINCT + col0 * col1 + - ( col1 + col0 ) DIV - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 ---- 1041 641 87 skipif mysql # not compatible query I rowsort label-7658 SELECT DISTINCT + col0 * col1 + - ( col1 + col0 ) / - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 ---- 1041 641 87 query I rowsort SELECT col0 * + col2 - - col2 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT DISTINCT 77 AS col1 FROM tab0, tab1, tab0 AS cor0 ---- 77 query I rowsort SELECT DISTINCT + 72 AS col1 FROM tab0, tab0 AS cor0 ---- 72 query I rowsort SELECT + col1 * col1 * - col2 + col2 FROM tab1 ---- -16128 -36450 -5643 query I rowsort SELECT DISTINCT 54 * col0 FROM tab1 AS cor0 ---- 162 3456 4320 query I rowsort SELECT 51 * - col2 * + 94 FROM tab2 AS cor0 ---- -124644 -129438 -182172 query I rowsort SELECT ALL + + 74 FROM tab2 AS cor0 ---- 74 74 74 query I rowsort SELECT + + col1 - col2 * + cor0.col0 FROM tab1 AS cor0 ---- -136 -3638 -7667 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7667 SELECT - 34 + col2 * CAST( - col2 AS SIGNED ) - cor0.col2 FROM tab2 AS cor0 ---- -1516 -736 -790 skipif mysql # not compatible query I rowsort label-7667 SELECT - 34 + col2 * CAST ( - col2 AS INTEGER ) - cor0.col2 FROM tab2 AS cor0 ---- -1516 -736 -790 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 75 * 88 * col2 col1 FROM tab2 AS cor0 ---- -171600 -178200 -250800 query I rowsort SELECT col2 + + ( col0 ) * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT col0 + ( tab0.col0 * col0 ) FROM tab0 ---- 1260 600 8010 query I rowsort SELECT ALL tab0.col0 * - 62 FROM tab0, tab1, tab1 cor0 ---- 27 values hashing to 760fde5e59ab7e3ec6e34269912b2ebc onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7672 SELECT + CAST( - col1 AS SIGNED ) * col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 skipif mysql # not compatible query I rowsort label-7672 SELECT + CAST ( - col1 AS INTEGER ) * col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT ( 48 ) AS col1 FROM tab1 AS cor0 ---- 48 48 48 query I rowsort SELECT DISTINCT + col1 * + ( + col0 + tab2.col1 ) * 50 FROM tab2 ---- 404150 58900 81600 query I rowsort SELECT 39 AS col1 FROM tab0 ---- 39 39 39 query I rowsort SELECT ALL + cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT + 79 * + col1 AS col1 FROM tab1 AS cor0 ---- 1027 2054 790 query I rowsort SELECT DISTINCT - ( col2 + - col0 ) FROM tab2 ---- -20 41 52 query I rowsort SELECT DISTINCT tab1.col0 * col2 * + tab1.col2 + 91 FROM tab1 ---- 208027 737371 8839 query I rowsort SELECT ALL + col1 * + 43 AS col2 FROM tab2 AS cor0 ---- 1333 2537 731 query I rowsort SELECT DISTINCT col2 * - ( ( col2 ) ) + - col1 FROM tab0 AS cor0 ---- -1175 -6815 -98 query I rowsort SELECT DISTINCT - col2 + + 61 FROM tab2 AS cor0 ---- 23 34 35 query I rowsort SELECT DISTINCT col1 * + 29 AS col0 FROM tab2 ---- 1711 493 899 query I rowsort SELECT ALL + col1 * - ( + 3 ) AS col2 FROM tab0 AS cor0 ---- -258 -273 -291 query I rowsort SELECT ALL + col2 + - 60 AS col1 FROM tab2 ---- -22 -33 -34 query I rowsort SELECT - col2 * + col2 + col2 * col2 AS col2 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7687 SELECT col0 + + CAST( NULL AS DECIMAL ) * - 76 * - col0 col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7687 SELECT col0 + + CAST ( NULL AS REAL ) * - 76 * - col0 col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col2 + + col1 * 83 FROM tab2 ---- 1373 2546 4871 query I rowsort SELECT cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7690 SELECT DISTINCT - - CAST( col0 AS SIGNED ) + cor0.col1 FROM tab2 AS cor0 ---- 137 38 96 skipif mysql # not compatible query I rowsort label-7690 SELECT DISTINCT - - CAST ( col0 AS INTEGER ) + cor0.col1 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-7691 SELECT DISTINCT - + 40 DIV - ( col2 ) + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 25 75 89 skipif mysql # not compatible query I rowsort label-7691 SELECT DISTINCT - + 40 / - ( col2 ) + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 25 75 89 query I rowsort SELECT - col0 * + col2 + col1 * col0 FROM tab2 AS cor0 ---- -1659 2574 28 onlyif mysql # use DIV operator for integer division query I rowsort label-7693 SELECT + 22 DIV 81 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-7693 SELECT + 22 / 81 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT DISTINCT 44 FROM tab1, tab2 AS cor0 ---- 44 query I rowsort SELECT DISTINCT - ( - col1 ) + - col1 AS col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT + - ( col1 ) * + cor0.col2 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7697 SELECT col1 + col1 * - CAST( NULL AS SIGNED ) / col1 - col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7697 SELECT col1 + col1 * - CAST ( NULL AS INTEGER ) / col1 - col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - col2 + col0 - col2 * - col0 * col2 FROM tab2 AS cor0 ---- 114117 5083 52780 query I rowsort SELECT ALL - 87 AS col0 FROM tab1 ---- -87 -87 -87 query I rowsort SELECT - col2 + col2 - col2 AS col2 FROM tab2 ---- -26 -27 -38 query I rowsort SELECT - 98 FROM tab2 cor0 ---- -98 -98 -98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7702 SELECT + col0 + - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7702 SELECT + col0 + - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 * + col1 * 45 FROM tab1 AS cor0 ---- -25650 -56160 -63180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7704 SELECT ALL + cor0.col2 - 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-7704 SELECT ALL + cor0.col2 - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col1 + - ( col2 ) FROM tab0 cor0 ---- 53 9 96 query I rowsort SELECT + col1 - + col0 * + col0 FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT + col1 * - col2 + col1 FROM tab0 AS cor0 ---- -2752 -7371 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7708 SELECT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7708 SELECT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7709 SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7709 SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - 5 * 11 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1 ---- -55 query I rowsort SELECT - col0 * + col2 * + col1 + + col0 FROM tab2 AS cor0 ---- -119574 -50955 -5852 query I rowsort SELECT col0 + - 66 * col0 FROM tab2 AS cor0 ---- -455 -5070 -5135 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7713 SELECT ALL cor0.col0 + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -20 41 52 skipif mysql # not compatible query I rowsort label-7713 SELECT ALL cor0.col0 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT - col0 + + col2 + + col0 FROM tab2 cor0 ---- 26 27 38 query I rowsort SELECT ALL - col2 * cor0.col0 * col0 FROM tab2 AS cor0 ---- -1323 -158184 -237158 query I rowsort SELECT DISTINCT col2 + col0 + 44 FROM tab0 cor0 ---- 101 215 80 query I rowsort SELECT DISTINCT - 18 + + col1 FROM tab1 AS cor0 ---- -5 -8 8 onlyif mysql # use DIV operator for integer division query I rowsort label-7718 SELECT ALL - col0 + - col2 DIV col1 AS col2 FROM tab1 AS cor0 ---- -5 -69 -87 skipif mysql # not compatible query I rowsort label-7718 SELECT ALL - col0 + - col2 / col1 AS col2 FROM tab1 AS cor0 ---- -5 -69 -87 query I rowsort SELECT + 80 + + col1 * ( cor0.col1 * - col2 ) FROM tab0 AS cor0 ---- -243988 -678962 -9329 query I rowsort SELECT + - tab0.col2 FROM tab0, tab2 cor0, tab2, tab2 AS cor1 ---- 81 values hashing to 87af467938ef355540b8de24db1bf3b8 query I rowsort SELECT 22 * col0 + col0 + + 36 FROM tab0 AS cor0 ---- 2083 588 841 onlyif mysql # use DIV operator for integer division query I rowsort label-7722 SELECT - 39 * tab1.col2 + col2 * ( + col2 ) + + tab1.col2 DIV tab1.col1 FROM tab1 ---- 1031 5479 812 skipif mysql # not compatible query I rowsort label-7722 SELECT - 39 * tab1.col2 + col2 * ( + col2 ) + + tab1.col2 / tab1.col1 FROM tab1 ---- 1031 5479 812 query I rowsort SELECT ALL + ( col2 ) * col2 FROM tab0 ---- 1 1089 6724 onlyif mysql # use DIV operator for integer division query I rowsort label-7724 SELECT ALL col1 * col1 DIV 30 FROM tab1 ---- 22 3 5 skipif mysql # not compatible query I rowsort label-7724 SELECT ALL col1 * col1 / 30 FROM tab1 ---- 22 3 5 query I rowsort SELECT ALL + ( + tab0.col0 ) * + tab0.col1 AS col1 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT cor0.col0 * + col2 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT + - col1 + + col1 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT ALL col1 - - 95 AS col2 FROM tab1 ---- 105 108 121 query I rowsort SELECT ALL + 87 FROM tab2, tab0 AS cor0 ---- 9 values hashing to fa0cdd86483844cda3bb806e032d5c64 onlyif mysql # use DIV operator for integer division query I rowsort label-7730 SELECT col0 DIV + 94 + - col1 AS col2 FROM tab2 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-7730 SELECT col0 / + 94 + - col1 AS col2 FROM tab2 ---- -17 -31 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-7731 SELECT - tab1.col1 + CAST( - ( + col1 ) AS SIGNED ) DIV + ( col1 ) FROM tab1 ---- -11 -14 -27 skipif mysql # not compatible query I rowsort label-7731 SELECT - tab1.col1 + CAST ( - ( + col1 ) AS INTEGER ) / + ( col1 ) FROM tab1 ---- -11 -14 -27 query I rowsort SELECT - col2 * 97 - + col0 FROM tab0 ---- -132 -3225 -8043 query I rowsort SELECT ALL col0 * 55 FROM tab1 ---- 165 3520 4400 query I rowsort SELECT - tab2.col0 + - 78 AS col1 FROM tab2 ---- -156 -157 -85 query I rowsort SELECT 50 * - col1 - col1 * ( col2 + + col2 ) * - 93 FROM tab2 AS cor0 ---- 119306 154132 282374 onlyif mysql # use DIV operator for integer division query I rowsort label-7736 SELECT col1 DIV col1 + - col1 * CAST( - 7 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 603 638 680 skipif mysql # not compatible query I rowsort label-7736 SELECT col1 / col1 + - col1 * CAST ( - 7 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 603 638 680 query I rowsort SELECT - ( col0 ) + col1 FROM tab1 cor0 ---- -54 -67 23 query I rowsort SELECT ALL col2 + + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT - col0 + 82 + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 1042 157 658 query I rowsort SELECT 95 * + col1 AS col2 FROM tab0 AS cor0 ---- 8170 8645 9215 query I rowsort SELECT ALL - col1 * + col0 - col1 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT ALL + col0 + col2 * + col0 FROM tab0 ---- 70 7387 816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + 29 col1 FROM tab1 cor0 ---- 39 42 55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7744 SELECT ALL CAST( ( - col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-7744 SELECT ALL CAST ( ( - col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT - col0 * - col0 * - col0 AS col0 FROM tab2 AS cor0 ---- -343 -474552 -493039 query I rowsort SELECT ( + col2 ) * - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT ( - 67 ) * - col1 FROM tab0 AS cor0 ---- 5762 6097 6499 query I rowsort SELECT ALL col1 + col1 AS col0 FROM tab0 cor0 ---- 172 182 194 query I rowsort SELECT - ( ( col2 ) ) + - 22 AS col0 FROM tab0 AS cor0 ---- -104 -23 -55 query I rowsort SELECT DISTINCT - col2 + ( + col1 ) AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-7751 SELECT - + col1 * - col0 * - col1 + + col2 DIV col2 AS col1 FROM tab0 AS cor0 ---- -177503 -329314 -737008 skipif mysql # not compatible query I rowsort label-7751 SELECT - + col1 * - col0 * - col1 + + col2 / col2 AS col1 FROM tab0 AS cor0 ---- -177503 -329314 -737008 query I rowsort SELECT DISTINCT - + col1 + 51 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1612 -3068 -884 onlyif mysql # use DIV operator for integer division query I rowsort label-7753 SELECT DISTINCT + + ( - 8 ) DIV cor0.col0 col1 FROM tab2 AS cor0 ---- -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7753 SELECT DISTINCT + + ( - 8 ) / cor0.col0 col1 FROM tab2 AS cor0 ---- -1 0 query I rowsort SELECT - + col2 + - cor0.col1 + col0 AS col2 FROM tab0 AS cor0 ---- -63 -84 -95 query I rowsort SELECT ALL - - 76 * col0 FROM tab1 AS cor0 ---- 228 4864 6080 query I rowsort SELECT + ( - col2 ) - + col1 FROM tab1 AS cor0 ---- -109 -67 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7757 SELECT + col0 + ( - col2 ) + + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7757 SELECT + col0 + ( - col2 ) + + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 + + col2 + - col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT 33 + col0 * tab1.col2 AS col2 FROM tab1 ---- 195 3681 7713 query I rowsort SELECT DISTINCT + tab1.col2 * col1 + - col0 FROM tab1 ---- 1168 1401 506 query I rowsort SELECT ALL col2 * - col2 + col0 AS col0 FROM tab2 ---- -1365 -598 -722 query I rowsort SELECT ALL + tab2.col1 + ( col0 ) * - col2 AS col1 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT col2 * 62 FROM tab2 ---- 1612 1674 2356 query I rowsort SELECT DISTINCT - col2 * col2 + + tab2.col2 * col0 AS col1 FROM tab2 ---- -540 1352 1558 onlyif mysql # use DIV operator for integer division query I rowsort label-7765 SELECT DISTINCT 92 + - col0 DIV - tab0.col1 FROM tab0 ---- 92 skipif mysql # not compatible query I rowsort label-7765 SELECT DISTINCT 92 + - col0 / - tab0.col1 FROM tab0 ---- 92 onlyif mysql # use DIV operator for integer division query I rowsort label-7766 SELECT DISTINCT col0 DIV col0 + - col2 FROM tab1 ---- -53 -56 -95 skipif mysql # not compatible query I rowsort label-7766 SELECT DISTINCT col0 / col0 + - col2 FROM tab1 ---- -53 -56 -95 query I rowsort SELECT col0 * tab2.col1 * - col0 FROM tab2 ---- -106097 -1519 -358956 query I rowsort SELECT tab0.col1 * col1 * + col2 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT - ( - col1 ) + col1 * ( 8 ) AS col2 FROM tab0 ---- 774 819 873 query I rowsort SELECT col2 * 47 AS col2 FROM tab0 ---- 1551 3854 47 query I rowsort SELECT - - 89 + + col1 FROM tab2 AS cor0 ---- 106 120 148 query I rowsort SELECT ALL - 43 - + col1 FROM tab2 AS cor0 ---- -102 -60 -74 onlyif mysql # use DIV operator for integer division query I rowsort label-7773 SELECT DISTINCT + col0 DIV + col0 AS col2 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-7773 SELECT DISTINCT + col0 / + col0 AS col2 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT - + ( - col1 ) - col1 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - 81 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1 query I rowsort SELECT DISTINCT ( + ( cor0.col1 ) ) + col1 * - 10 FROM tab2 AS cor0 ---- -153 -279 -531 query I rowsort SELECT DISTINCT - col2 * - 45 + + col0 FROM tab1 AS cor0 ---- 2433 2629 4400 query I rowsort SELECT - col1 - + ( col1 ) FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT - col1 * col1 - - 45 * cor0.col0 FROM tab2 AS cor0 ---- -646 29 3266 query I rowsort SELECT - 67 * - cor0.col0 + ( 44 ) AS col2 FROM tab0 AS cor0 ---- 1652 2389 6007 query I rowsort SELECT ALL + 67 * - cor0.col2 + 34 + col2 AS col0 FROM tab1 AS cor0 ---- -3530 -3728 -6302 query I rowsort SELECT DISTINCT - col0 * col0 * 66 AS col1 FROM tab0 cor0 ---- -38016 -522786 -80850 query I rowsort SELECT DISTINCT 51 + 58 FROM tab1 ---- 109 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7784 SELECT + CAST( + col2 AS SIGNED ) * - col1 + col0 AS col1 FROM tab2 ---- -1456 -567 -830 skipif mysql # not compatible query I rowsort label-7784 SELECT + CAST ( + col2 AS INTEGER ) * - col1 + col0 AS col1 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT - col1 + + col1 * col0 * + col0 FROM tab0 ---- 118728 49450 720720 query I rowsort SELECT 50 - col2 * + col0 FROM tab2 AS cor0 ---- -139 -1978 -2952 query I rowsort SELECT + - col0 * col2 - + col0 AS col1 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT ALL + col2 * col0 * col2 FROM tab0 AS cor0 ---- 26136 35 598436 query I rowsort SELECT DISTINCT + 45 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 45 query I rowsort SELECT - + col1 * ( + col2 ) FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + - cor0.col0 * col1 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT 83 + col2 FROM tab0 ---- 116 165 84 onlyif mysql # use DIV operator for integer division query I rowsort label-7793 SELECT ALL - 22 + + col0 * 79 DIV col1 col2 FROM tab1 ---- -13 464 483 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7793 SELECT ALL - 22 + + col0 * 79 / col1 col2 FROM tab1 ---- -13 464 483 query I rowsort SELECT + ( col2 ) - 59 FROM tab0 ---- -26 -58 23 query I rowsort SELECT col1 + - col0 * + col0 AS col0 FROM tab0 AS cor0 ---- -1128 -490 -7830 query I rowsort SELECT ALL + col1 * ( + col1 ) + - cor0.col2 FROM tab1 AS cor0 ---- 43 622 73 onlyif mysql # use DIV operator for integer division query I rowsort label-7797 SELECT DISTINCT + col0 DIV col2 AS col1 FROM tab1 cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-7797 SELECT DISTINCT + col0 / col2 AS col1 FROM tab1 cor0 ---- 0 1 query I rowsort SELECT DISTINCT + col0 - - ( - 79 ) FROM tab2 AS cor0 ---- -1 -72 0 query I rowsort SELECT DISTINCT - col0 * - col2 - cor0.col0 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT + col1 * ( col2 ) AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL - col2 * ( col0 ) AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL + - col1 * - col0 * + col1 + + col2 * 43 FROM tab1 AS cor0 ---- 17648 4350 8851 query I rowsort SELECT col1 * 54 + - col0 FROM tab2 ---- 1667 3108 839 query I rowsort SELECT + col0 - 62 FROM tab2 ---- -55 16 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 13 col0 FROM tab2 AS cor0 ---- 13 13 13 query I rowsort SELECT DISTINCT 25 AS col1 FROM tab1, tab1 AS cor0 ---- 25 query I rowsort SELECT DISTINCT - 61 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1 ---- -61 query I rowsort SELECT ALL col2 * - 22 + + col1 AS col0 FROM tab0 AS cor0 ---- -1713 -640 75 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7809 SELECT DISTINCT + + CAST( 14 AS SIGNED ) FROM tab0 AS cor0 ---- 14 skipif mysql # not compatible query I rowsort label-7809 SELECT DISTINCT + + CAST ( 14 AS INTEGER ) FROM tab0 AS cor0 ---- 14 onlyif mysql # use DIV operator for integer division query I rowsort label-7810 SELECT ALL + + ( 37 ) * col1 + + col1 DIV - col1 FROM tab0 AS cor0 ---- 3181 3366 3588 skipif mysql # not compatible query I rowsort label-7810 SELECT ALL + + ( 37 ) * col1 + + col1 / - col1 FROM tab0 AS cor0 ---- 3181 3366 3588 query I rowsort SELECT col1 * 39 + col0 AS col1 FROM tab0 AS cor0 ---- 3378 3638 3818 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7812 SELECT CAST( ( - col2 ) AS SIGNED ) col1 FROM tab0 AS cor0 ---- -1 -33 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7812 SELECT CAST ( ( - col2 ) AS INTEGER ) col1 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT - cor0.col0 - col1 FROM tab1 cor0 ---- -29 -74 -93 query I rowsort SELECT - 72 + - col1 * + col1 AS col0 FROM tab0 cor0 ---- -7468 -8353 -9481 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * cor0.col1 col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT 92 + - col0 FROM tab2 AS cor0 ---- 13 14 85 query I rowsort SELECT ALL - col1 * - col2 + tab0.col0 FROM tab0 ---- 132 2862 7551 onlyif mysql # use DIV operator for integer division query I rowsort label-7818 SELECT DISTINCT + col0 * col2 DIV - col0 + col1 * col2 * - col1 AS col0 FROM tab1 ---- -16320 -36558 -5757 skipif mysql # not compatible query I rowsort label-7818 SELECT DISTINCT + col0 * col2 / - col0 + col1 * col2 * - col1 AS col0 FROM tab1 ---- -16320 -36558 -5757 query I rowsort SELECT ALL col2 + - 44 FROM tab2 ---- -17 -18 -6 query I rowsort SELECT + 45 + + col1 - 35 * - col2 FROM tab2 AS cor0 ---- 1014 1021 1392 onlyif mysql # use DIV operator for integer division query I rowsort label-7821 SELECT + ( cor0.col0 ) * - col2 + - col2 DIV - 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-7821 SELECT + ( cor0.col0 ) * - col2 + - col2 / - col2 col2 FROM tab0 AS cor0 ---- -34 -7297 -791 query I rowsort SELECT - 70 - col1 FROM tab1 cor0 ---- -80 -83 -96 query I rowsort SELECT ALL 81 * col0 FROM tab0 ---- 1944 2835 7209 query I rowsort SELECT col2 * + 47 + - col2 FROM tab2 AS cor0 ---- 1196 1242 1748 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7825 SELECT ( col2 ) * CAST( NULL AS DECIMAL ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7825 SELECT ( col2 ) * CAST ( NULL AS REAL ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT DISTINCT col2 * - col1 + - ( - col2 + - col2 ) FROM tab0 AS cor0 ---- -2772 -7298 -95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7828 SELECT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-7828 SELECT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + 42 AS col0 FROM tab2 ---- 42 42 42 query I rowsort SELECT 29 AS col0 FROM tab0 ---- 29 29 29 query I rowsort SELECT DISTINCT col1 + - 51 FROM tab0 AS cor0 ---- 35 40 46 onlyif mysql # use DIV operator for integer division query I rowsort label-7832 SELECT + - col0 * col2 DIV ( - col1 ) + - 33 AS col1 FROM tab2 AS cor0 ---- -27 1 143 skipif mysql # not compatible query I rowsort label-7832 SELECT + - col0 * col2 / ( - col1 ) + - 33 AS col1 FROM tab2 AS cor0 ---- -27 1 143 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 * 9 * + col1 col2 FROM tab0 AS cor0 ---- -25542 -67158 -873 onlyif mysql # use DIV operator for integer division query I rowsort label-7834 SELECT col1 DIV 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-7834 SELECT col1 / col2 col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7835 SELECT ALL + col2 DIV cor0.col1 + ( cor0.col2 * + cor0.col1 + col1 ) col2 FROM tab2 AS cor0 ---- 1593 665 868 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7835 SELECT ALL + col2 / cor0.col1 + ( cor0.col2 * + cor0.col1 + col1 ) col2 FROM tab2 AS cor0 ---- 1593 665 868 onlyif mysql # use DIV operator for integer division query I rowsort label-7836 SELECT - col0 DIV 74 FROM tab2 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-7836 SELECT - col0 / 74 FROM tab2 AS cor0 ---- -1 -1 0 query I rowsort SELECT ALL + - 13 FROM tab0, tab1, tab2 cor0 ---- 27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7838 SELECT + + col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 skipif mysql # not compatible query I rowsort label-7838 SELECT + + col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT col1 + 26 AS col0 FROM tab2 cor0 ---- 43 57 85 query I rowsort SELECT ALL - - col0 + 21 FROM tab2 AS cor0 ---- 100 28 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 + - 28 col2 FROM tab2 AS cor0 ---- -11 3 31 query I rowsort SELECT ALL + col0 * ( + ( - col2 ) ) * col1 AS col1 FROM tab1 AS cor0 ---- -36480 -4212 -99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * - ( 12 ) col1 FROM tab2 AS cor0 ---- -312 -324 -456 query I rowsort SELECT col1 * col2 + + ( col0 + - 83 ) * + 26 FROM tab1 cor0 ---- -676 1170 76 onlyif mysql # use DIV operator for integer division query I rowsort label-7845 SELECT DISTINCT + col2 DIV ( - col0 ) FROM tab0 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-7845 SELECT DISTINCT + col2 / ( - col0 ) FROM tab0 AS cor0 ---- -1 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7846 SELECT - col0 + + ( - 72 ) DIV - col2 FROM tab1 AS cor0 ---- -2 -63 -80 skipif mysql # not compatible query I rowsort label-7846 SELECT - col0 + + ( - 72 ) / - col2 FROM tab1 AS cor0 ---- -2 -63 -80 query I rowsort SELECT DISTINCT cor0.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 54 57 96 query I rowsort SELECT + col2 + + ( 29 ) * + col2 AS col1 FROM tab0 cor0 ---- 2460 30 990 query I rowsort SELECT - col2 * - ( 90 ) AS col1 FROM tab1 cor0 ---- 4860 5130 8640 onlyif mysql # use DIV operator for integer division query I rowsort label-7850 SELECT ALL col0 DIV - col0 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7850 SELECT ALL col0 / - col0 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + col0 * 39 + + col2 FROM tab2 AS cor0 ---- 300 3068 3119 query I rowsort SELECT + tab1.col2 * col0 + tab1.col0 AS col2 FROM tab1 ---- 165 3712 7760 onlyif mysql # use DIV operator for integer division query I rowsort label-7853 SELECT + col1 DIV + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7853 SELECT + col1 / + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7854 SELECT CAST( NULL AS SIGNED ) + 0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7854 SELECT CAST ( NULL AS INTEGER ) + 0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - 31 + - col1 FROM tab1 ---- -41 -44 -57 query I rowsort SELECT DISTINCT 92 + - col0 - + ( - col2 ) * col0 FROM tab2 ---- 2042 274 3015 query I rowsort SELECT cor0.col2 * + cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 00f153c5d80e692faff5018d8701b92d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7858 SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-7858 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7859 SELECT 31 DIV col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7859 SELECT 31 / col0 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT - - 79 AS col1 FROM tab1 AS cor0 ---- 79 79 79 query I rowsort SELECT DISTINCT - 20 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- -20 query I rowsort SELECT + - col2 + - col2 * + cor0.col0 FROM tab0 AS cor0 ---- -36 -7380 -825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7863 SELECT DISTINCT + CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0 ---- -7 -78 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7863 SELECT DISTINCT + CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0 ---- -7 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-7864 SELECT cor0.col0 - col0 DIV col1 col1 FROM tab0 cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7864 SELECT cor0.col0 - col0 / col1 col1 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT - ( col1 ) - + col0 * ( - 59 ) AS col1 FROM tab0 AS cor0 ---- 1330 1968 5160 query I rowsort SELECT + col2 * + 99 + - col0 AS col2 FROM tab2 AS cor0 ---- 2496 2666 3683 query I rowsort SELECT ALL col1 + - col1 * col1 AS col1 FROM tab0 AS cor0 ---- -7310 -8190 -9312 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7868 SELECT - CAST( - cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-7868 SELECT - CAST ( - cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT - col2 - col2 * col1 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT DISTINCT cor0.col1 * + col2 * - col1 AS col0 FROM tab1 cor0 ---- -16224 -36504 -5700 query I rowsort SELECT ALL + + cor0.col2 + + col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT + - 91 - - cor0.col1 * + col2 AS col1 FROM tab0 cor0 ---- 2747 6 7371 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7873 SELECT CAST( col1 AS SIGNED ) * col2 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7873 SELECT CAST ( col1 AS INTEGER ) * col2 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7874 SELECT DISTINCT col0 + + col1 * cor0.col0 DIV ( col1 ) FROM tab0 AS cor0 ---- 178 48 70 skipif mysql # not compatible query I rowsort label-7874 SELECT DISTINCT col0 + + col1 * cor0.col0 / ( col1 ) FROM tab0 AS cor0 ---- 178 48 70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7875 SELECT DISTINCT + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7875 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7876 SELECT col2 DIV ( - col0 ) + col0 col2 FROM tab2 AS cor0 ---- 4 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7876 SELECT col2 / ( - col0 ) + col0 col2 FROM tab2 AS cor0 ---- 4 78 79 skipif mysql # not compatible query I rowsort SELECT ALL CAST ( + cor0.col1 AS REAL ) - + col0 * col1 AS col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 onlyif mysql # use DIV operator for integer division query I rowsort label-7878 SELECT - 99 * + cor0.col0 + col1 DIV ( col0 ) FROM tab0 AS cor0 ---- -2373 -3463 -8810 skipif mysql # not compatible query I rowsort label-7878 SELECT - 99 * + cor0.col0 + col1 / ( col0 ) FROM tab0 AS cor0 ---- -2373 -3463 -8810 onlyif mysql # use DIV operator for integer division query I rowsort label-7879 SELECT DISTINCT - 44 DIV - col2 FROM tab0 AS cor0 ---- 0 1 44 skipif mysql # not compatible query I rowsort label-7879 SELECT DISTINCT - 44 / - col2 FROM tab0 AS cor0 ---- 0 1 44 onlyif mysql # use DIV operator for integer division query I rowsort label-7880 SELECT ( + col1 ) + col2 DIV + col0 AS col1 FROM tab2 AS cor0 ---- 17 34 59 skipif mysql # not compatible query I rowsort label-7880 SELECT ( + col1 ) + col2 / + col0 AS col1 FROM tab2 AS cor0 ---- 17 34 59 query I rowsort SELECT DISTINCT - 66 + cor0.col0 * col1 AS col1 FROM tab0 AS cor0 ---- 1998 3329 8033 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 47 + - ( col0 ) col1 FROM tab2 AS cor0 ---- -125 -126 -54 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7883 SELECT - CAST( NULL AS DECIMAL ) + - col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7883 SELECT - CAST ( NULL AS REAL ) + - col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 3 AS col2 FROM tab2 AS cor0 ---- -3 query I rowsort SELECT DISTINCT + col2 + - col0 * col2 AS col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT + - cor0.col0 * + col2 - col2 AS col1 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT + col2 * + col0 - col2 AS col0 FROM tab1 ---- 108 3591 7584 query I rowsort SELECT DISTINCT + + col2 * + col2 * cor0.col0 + - 60 AS col1 FROM tab0 AS cor0 ---- -25 26076 598376 query I rowsort SELECT ALL + - 4 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 22 23 34 onlyif mysql # use DIV operator for integer division query I rowsort label-7890 SELECT ALL tab2.col0 DIV - col0 + + col2 AS col0 FROM tab2 ---- 25 26 37 skipif mysql # not compatible query I rowsort label-7890 SELECT ALL tab2.col0 / - col0 + + col2 AS col0 FROM tab2 ---- 25 26 37 query I rowsort SELECT col1 + col1 * - ( col2 ) AS col2 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT - col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT col0 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7894 SELECT ALL col2 * - CAST( 53 AS SIGNED ) AS col1 FROM tab0 ---- -1749 -4346 -53 skipif mysql # not compatible query I rowsort label-7894 SELECT ALL col2 * - CAST ( 53 AS INTEGER ) AS col1 FROM tab0 ---- -1749 -4346 -53 onlyif mysql # use DIV operator for integer division query I rowsort label-7895 SELECT ALL - col2 DIV cor0.col0 - - col1 AS col2 FROM tab1 AS cor0 ---- 10 12 8 skipif mysql # not compatible query I rowsort label-7895 SELECT ALL - col2 / cor0.col0 - - col1 AS col2 FROM tab1 AS cor0 ---- 10 12 8 query I rowsort SELECT 57 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to 61da70c624ad60604a668f7f8f29392a query I rowsort SELECT DISTINCT - col1 * + col0 * - 27 AS col0 FROM tab2 ---- 124254 36261 5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 43 col0 FROM tab1, tab2 cor0 ---- -43 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab2.col0 col1 FROM tab2 ---- 7 78 79 query I rowsort SELECT ALL + col0 * ( col0 ) AS col0 FROM tab1 ---- 4096 6400 9 onlyif mysql # use DIV operator for integer division query I rowsort label-7901 SELECT + col1 + - tab0.col0 + - col0 DIV + ( - col1 ) FROM tab0 ---- 2 62 62 skipif mysql # not compatible query I rowsort label-7901 SELECT + col1 + - tab0.col0 + - col0 / + ( - col1 ) FROM tab0 ---- 2 62 62 query I rowsort SELECT DISTINCT - 14 + col2 AS col2 FROM tab1 ---- 40 43 82 query I rowsort SELECT DISTINCT 88 AS col2 FROM tab0 ---- 88 query I rowsort SELECT + tab1.col1 AS col2 FROM tab1, tab2 cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 query I rowsort SELECT DISTINCT - col0 * + 54 AS col2 FROM tab1 ---- -162 -3456 -4320 query I rowsort SELECT + 29 * 22 * + col1 AS col2 FROM tab1 AS cor0 ---- 16588 6380 8294 onlyif mysql # use DIV operator for integer division query I rowsort label-7907 SELECT + CAST( 92 AS SIGNED ) DIV cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-7907 SELECT + CAST ( 92 AS INTEGER ) / cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-7908 SELECT DISTINCT + 95 DIV + col1 FROM tab0 ---- 0 1 skipif mysql # not compatible query I rowsort label-7908 SELECT DISTINCT + 95 / + col1 FROM tab0 ---- 0 1 query I rowsort SELECT DISTINCT col1 + + 98 * - col2 + + col1 * - col2 FROM tab2 AS cor0 ---- -3452 -4023 -4353 query I rowsort SELECT ALL col2 + col0 + col1 AS col0 FROM tab0 ---- 133 143 262 onlyif mysql # use DIV operator for integer division query I rowsort label-7911 SELECT - 95 + + col0 DIV + cor0.col2 AS col1 FROM tab1 cor0 ---- -94 -95 -95 skipif mysql # not compatible query I rowsort label-7911 SELECT - 95 + + col0 / + cor0.col2 AS col1 FROM tab1 cor0 ---- -94 -95 -95 query I rowsort SELECT DISTINCT + - col2 * col1 + - col2 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT DISTINCT + ( - tab1.col2 ) AS col0 FROM tab1 ---- -54 -57 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-7914 SELECT col2 DIV + col1 col0 FROM tab1 AS cor0 ---- 2 5 7 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7914 SELECT col2 / + col1 col0 FROM tab1 AS cor0 ---- 2 5 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 99 * col2 col2 FROM tab0 AS cor0 ---- 3267 8118 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 * - col2 col0 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT - col1 + col2 * + ( - col1 ) * - col0 FROM tab2 AS cor0 ---- 119593 51017 5828 query I rowsort SELECT ALL col2 * col2 * col2 + - col1 + 67 AS col0 FROM tab1 AS cor0 ---- 157505 185250 884790 query I rowsort SELECT DISTINCT - cor0.col0 * - col1 + 59 AS col0 FROM tab1 AS cor0 ---- 1099 137 699 query I rowsort SELECT DISTINCT - col0 * - 53 AS col1 FROM tab2 AS cor0 ---- 371 4134 4187 query I rowsort SELECT ALL + cor0.col2 + + cor0.col0 * col2 * col2 FROM tab2 AS cor0 ---- 114114 5130 52754 skipif mysql # not compatible query I rowsort SELECT DISTINCT col1 * + CAST ( + col0 AS REAL ) AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - col0 + + col2 AS col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT col0 * - 62 FROM tab2 AS cor0 ---- -434 -4836 -4898 query I rowsort SELECT 50 + col0 AS col2 FROM tab2 ---- 128 129 57 query I rowsort SELECT col0 + + ( - col0 ) * + col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT - ( + tab1.col1 ) AS col1 FROM tab1 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7928 SELECT DISTINCT CAST( - 15 AS SIGNED ) FROM tab2 ---- -15 skipif mysql # not compatible query I rowsort label-7928 SELECT DISTINCT CAST ( - 15 AS INTEGER ) FROM tab2 ---- -15 onlyif mysql # use DIV operator for integer division query I rowsort label-7929 SELECT col1 DIV - tab0.col0 AS col2 FROM tab0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-7929 SELECT col1 / - tab0.col0 AS col2 FROM tab0 ---- -1 -2 -3 query I rowsort SELECT - 52 * + col0 * col0 AS col1 FROM tab2 ---- -2548 -316368 -324532 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7931 SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 / + col1 AS col0 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-7931 SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 / + col1 AS col0 FROM tab2 ---- NULL query I rowsort SELECT - ( col1 ) + 3 AS col1 FROM tab0 AS cor0 ---- -83 -88 -94 onlyif mysql # use DIV operator for integer division query I rowsort label-7933 SELECT + + 76 DIV + col0 + col1 FROM tab1 AS cor0 ---- 11 13 51 skipif mysql # not compatible query I rowsort label-7933 SELECT + + 76 / + col0 + col1 FROM tab1 AS cor0 ---- 11 13 51 query I rowsort SELECT + col1 * col2 + - col0 * + col1 AS col2 FROM tab0 AS cor0 ---- -3298 -637 774 onlyif mysql # use DIV operator for integer division query I rowsort label-7935 SELECT - - col0 + col2 + - 64 DIV + col1 AS col2 FROM tab1 AS cor0 ---- 115 172 55 skipif mysql # not compatible query I rowsort label-7935 SELECT - - col0 + col2 + - 64 / + col1 AS col2 FROM tab1 AS cor0 ---- 115 172 55 query I rowsort SELECT DISTINCT - - col1 * + col2 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7937 SELECT ALL - + cor0.col2 + + col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7937 SELECT ALL - + cor0.col2 + + col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 * - col2 + col0 + + 1 * col0 FROM tab1 AS cor0 ---- -156 -3520 -7520 query I rowsort SELECT - 35 + + cor0.col1 AS col1 FROM tab2 AS cor0 ---- -18 -4 24 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT - - cor0.col2 + col0 + CAST ( col0 AS REAL ) * + col2 col2 FROM tab0 AS cor0 ---- 71 7469 849 query I rowsort SELECT DISTINCT col1 * 24 - - 92 FROM tab2 AS cor0 ---- 1508 500 836 query I rowsort SELECT - col2 * 1 AS col2 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT - col1 + - col2 AS col1 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT col2 + + 6 * - col0 AS col0 FROM tab0 AS cor0 ---- -111 -209 -452 query I rowsort SELECT + col2 * ( col0 + - col0 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT col0 * + 36 FROM tab2 AS cor0 ---- 252 2808 2844 query I rowsort SELECT - - col1 * col2 + - col2 FROM tab2 cor0 ---- 1508 608 810 query I rowsort SELECT ALL + 36 * col0 FROM tab1 AS cor0 ---- 108 2304 2880 query I rowsort SELECT col2 * - col1 + + col0 AS col0 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT ALL - col1 + - col2 FROM tab2 cor0 ---- -55 -58 -85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 39 + 24 * cor0.col1 col2 FROM tab2 AS cor0 ---- 1455 447 783 query I rowsort SELECT + 25 FROM tab0 ---- 25 25 25 query I rowsort SELECT 19 * 34 FROM tab0 AS cor0 ---- 646 646 646 query I rowsort SELECT ALL + 10 AS col0 FROM tab1 AS cor0 ---- 10 10 10 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7955 SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( col2 ) - 81 * col1 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7955 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( col2 ) - 81 * col1 AS col2 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7956 SELECT ALL - CAST( NULL AS SIGNED ) * - cor0.col0 / col0 + - 73 col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7956 SELECT ALL - CAST ( NULL AS INTEGER ) * - cor0.col0 / col0 + - 73 col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7957 SELECT - + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7957 SELECT - + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 * + 28 AS col0 FROM tab2 AS cor0 ---- -196 -2184 -2212 query I rowsort SELECT DISTINCT ( 26 ) * + col2 * col2 AS col0 FROM tab0 ---- 174824 26 28314 query I rowsort SELECT DISTINCT - ( - col0 ) * col0 FROM tab0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-7961 SELECT - ( col0 ) * - tab2.col0 DIV - ( col0 ) AS col0 FROM tab2 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-7961 SELECT - ( col0 ) * - tab2.col0 / - ( col0 ) AS col0 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT DISTINCT cor1.col1 * - 85 + 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- -7283 -7708 -8218 query I rowsort SELECT DISTINCT - - col1 * col2 + - ( - col1 ) FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT ALL col2 + - cor0.col2 * col2 FROM tab2 cor0 ---- -1406 -650 -702 query I rowsort SELECT DISTINCT 19 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 19 query I rowsort SELECT ALL + - 10 * - col1 + - col1 FROM tab0 AS cor0 ---- 774 819 873 query I rowsort SELECT + 94 AS col0 FROM tab2, tab1 cor0 CROSS JOIN tab0 ---- 27 values hashing to a4d239626cf0546ac1b2f57bb8407089 skipif mysql # not compatible query I rowsort SELECT CAST ( col0 AS REAL ) + + col1 + + col0 FROM tab2 ---- 175 215 45 query I rowsort SELECT col2 + + ( - col2 ) * col0 AS col1 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT - 51 + - 4 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to ac76841ceecd2311e80c621d15bacdd3 onlyif mysql # use DIV operator for integer division query I rowsort label-7971 SELECT - col1 * col2 DIV + 83 col2 FROM tab0 AS cor0 ---- -1 -34 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7971 SELECT - col1 * col2 / + 83 col2 FROM tab0 AS cor0 ---- -1 -34 -89 query I rowsort SELECT DISTINCT + - col2 * - col2 + - cor0.col0 AS col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT - 84 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 02f1688b8610806ca28739b1735f6ae4 onlyif mysql # use DIV operator for integer division query I rowsort label-7974 SELECT ALL col0 DIV + 31 AS col0 FROM tab1 ---- 0 2 2 skipif mysql # not compatible query I rowsort label-7974 SELECT ALL col0 / + 31 AS col0 FROM tab1 ---- 0 2 2 query I rowsort SELECT + col0 * col0 - 87 FROM tab2 ---- -38 5997 6154 query I rowsort SELECT 45 AS col2 FROM tab1, tab0 cor0 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 query I rowsort SELECT DISTINCT + tab0.col2 * ( col0 ) * col0 AS col2 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT + + col1 + - ( + col1 ) FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * col0 col1 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT ALL cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col2 + 46 + + 47 col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 05914312b297696d8f1d59f325ce1fc0 query I rowsort SELECT + 54 AS col1 FROM tab0 AS cor0 ---- 54 54 54 query I rowsort SELECT ALL + + cor0.col2 + col0 * + ( - cor0.col0 * col0 ) AS col0 FROM tab2 AS cor0 ---- -316 -474526 -493001 onlyif mysql # use DIV operator for integer division query I rowsort label-7984 SELECT DISTINCT + col1 * col0 + - ( ( + col2 ) ) DIV + ( - col1 * + cor0.col0 ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-7984 SELECT DISTINCT + col1 * col0 + - ( ( + col2 ) ) / + ( - col1 * + cor0.col0 ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT + col2 * col1 - col2 * col0 FROM tab0 AS cor0 ---- 164 2046 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * col2 col1 FROM tab0 cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-7987 SELECT DISTINCT - col1 DIV - 89 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-7987 SELECT DISTINCT - col1 / - 89 FROM tab0 AS cor0 ---- 0 1 query I rowsort SELECT col0 - + 5 AS col2 FROM tab0 AS cor0 ---- 19 30 84 query I rowsort SELECT ALL + + col2 * - ( + 50 ) AS col1 FROM tab1 AS cor0 ---- -2700 -2850 -4800 onlyif mysql # use DIV operator for integer division query I rowsort label-7990 SELECT - + col0 + - 6 * 61 DIV + col0 FROM tab1 cor0 ---- -125 -69 -84 skipif mysql # not compatible query I rowsort label-7990 SELECT - + col0 + - 6 * 61 / + col0 FROM tab1 cor0 ---- -125 -69 -84 query I rowsort SELECT 22 * - 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 00cdfc806c22c9613f84c2f07fef099f onlyif mysql # use DIV operator for integer division query I rowsort label-7992 SELECT ALL col0 + - 93 DIV - 78 FROM tab1 cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-7992 SELECT ALL col0 + - 93 / - 78 FROM tab1 cor0 ---- 4 65 81 query I rowsort SELECT - + cor0.col0 + col0 * + ( col2 ) FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT DISTINCT - - col0 * - cor0.col2 * - cor0.col0 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT + + 32 + - 22 * col2 FROM tab1 AS cor0 ---- -1156 -1222 -2080 query I rowsort SELECT ALL - 10 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to f68f33032846e21ee6b2c668fc10355e query I rowsort SELECT ALL + + col2 * col1 AS col0 FROM tab2 cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 16 * + cor0.col1 col1 FROM tab1 AS cor0 ---- 160 208 416 query I rowsort SELECT - 12 AS col0 FROM tab1 ---- -12 -12 -12 query I rowsort SELECT + cor0.col2 + col2 * col0 AS col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT ALL col2 * + col2 - cor0.col1 FROM tab0 AS cor0 ---- -96 1003 6633 query I rowsort SELECT DISTINCT - col1 - + cor0.col1 * + col1 * col2 AS col0 FROM tab2 AS cor0 ---- -10999 -25978 -90565 query I rowsort SELECT ALL 69 + + col0 * col0 AS col2 FROM tab0 AS cor0 ---- 1294 645 7990 query I rowsort SELECT - col1 + ( cor0.col1 ) AS col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT ALL ( + col1 ) + - col2 + - col2 AS col1 FROM tab2 AS cor0 ---- -23 -59 7 query I rowsort SELECT ALL 50 * col1 AS col2 FROM tab0 AS cor0 ---- 4300 4550 4850 query I rowsort SELECT 55 AS col0 FROM tab0 cor0 ---- 55 55 55 query I rowsort SELECT DISTINCT - col2 + - col1 AS col2 FROM tab2 cor0 ---- -55 -58 -85 query I rowsort SELECT ALL + col1 * col0 * + 7 + col0 AS col2 FROM tab0 AS cor0 ---- 14472 23800 56782 query I rowsort SELECT DISTINCT - 40 + col0 FROM tab0 AS cor0 ---- -16 -5 49 onlyif mysql # use DIV operator for integer division query I rowsort label-8011 SELECT ALL - col0 * col0 DIV 90 AS col0 FROM tab0 AS cor0 ---- -13 -6 -88 skipif mysql # not compatible query I rowsort label-8011 SELECT ALL - col0 * col0 / 90 AS col0 FROM tab0 AS cor0 ---- -13 -6 -88 query I rowsort SELECT DISTINCT col1 * col0 - col0 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT + ( col0 ) AS col2 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT ALL - - col0 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT DISTINCT 40 + cor0.col2 AS col1 FROM tab2 cor0 ---- 66 67 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * cor0.col0 col0 FROM tab0 cor0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 72 * col0 + 24 col1 FROM tab0 AS cor0 ---- -1704 -2496 -6384 query I rowsort SELECT ALL - ( ( col1 ) ) AS col2 FROM tab1 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8019 SELECT ALL CAST( 96 AS SIGNED ) FROM tab0 ---- 96 96 96 skipif mysql # not compatible query I rowsort label-8019 SELECT ALL CAST ( 96 AS INTEGER ) FROM tab0 ---- 96 96 96 query I rowsort SELECT + 22 - 1 AS col2 FROM tab0 ---- 21 21 21 query I rowsort SELECT 52 * + col0 + col1 * col0 AS col1 FROM tab2 ---- 5451 581 8658 query I rowsort SELECT - 66 + tab0.col0 FROM tab0 ---- -31 -42 23 query I rowsort SELECT col0 + 67 FROM tab0 ---- 102 156 91 query I rowsort SELECT ALL - 8 FROM tab2 cor0 ---- -8 -8 -8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 + + col2 * 85 col0 FROM tab0 AS cor0 ---- 2772 6888 84 query I rowsort SELECT + col0 * - cor0.col1 * 22 + - col2 AS col1 FROM tab2 AS cor0 ---- -101270 -29584 -4801 query I rowsort SELECT DISTINCT + col2 * col1 + - col0 * - col1 + + col2 FROM tab0 ---- 15643 3493 4935 query I rowsort SELECT col2 + 4 * - col1 FROM tab1 ---- -50 17 44 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8029 SELECT + cor0.col2 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-8029 SELECT + cor0.col2 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL - 63 AS col2 FROM tab2 ---- -63 -63 -63 query I rowsort SELECT - col1 * - col1 * - 81 FROM tab2 ---- -23409 -281961 -77841 query I rowsort SELECT + col1 + + 54 AS col0 FROM tab1 ---- 64 67 80 query I rowsort SELECT - col0 + - 52 * tab0.col1 * tab0.col2 + + 15 * tab0.col1 * col2 FROM tab0 ---- -105030 -276183 -3624 query I rowsort SELECT + col0 + 0 + - col0 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8035 SELECT col1 * 5 + + col1 DIV col0 AS col2 FROM tab1 ---- 138 50 65 skipif mysql # not compatible query I rowsort label-8035 SELECT col1 * 5 + + col1 / col0 AS col2 FROM tab1 ---- 138 50 65 query I rowsort SELECT + col0 + - col1 * - col2 FROM tab0 ---- 132 2862 7551 query I rowsort SELECT col0 - 42 FROM tab1 AS cor0 ---- -39 22 38 query I rowsort SELECT + - 31 * col2 FROM tab1 cor0 ---- -1674 -1767 -2976 query I rowsort SELECT - + ( + ( col2 ) ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT - - col2 + ( col0 ) AS col1 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT tab1.col1 + col2 + + ( tab1.col1 ) FROM tab1 ---- 106 122 77 query I rowsort SELECT ALL + col0 + col2 AS col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT cor0.col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT - col1 + ( col2 ) * + tab1.col2 * col0 FROM tab1 ---- 207926 737267 8722 query I rowsort SELECT + col0 * cor0.col2 * + col0 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT DISTINCT col0 * - ( - col1 ) AS col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT - + 45 * - 51 FROM tab1 AS cor0 ---- 2295 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 73 col0 FROM tab2 AS cor0 ---- -73 -73 -73 query I rowsort SELECT ALL - col1 + - col0 + - col0 FROM tab2 AS cor0 ---- -175 -215 -45 query I rowsort SELECT DISTINCT col1 + + 23 FROM tab0 AS cor0 ---- 109 114 120 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8051 SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8051 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 93 col0 FROM tab2 AS cor0 ---- 93 query I rowsort SELECT ALL + 61 FROM tab0 cor0 ---- 61 61 61 query I rowsort SELECT cor0.col2 + - cor0.col1 AS col0 FROM tab1 AS cor0 ---- 28 47 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 18 * - 53 col2 FROM tab2 AS cor0 ---- 954 954 954 query I rowsort SELECT - - col0 * cor0.col2 + - col1 FROM tab1 cor0 ---- 136 3638 7667 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col1 ) + + col1 + col1 col0 FROM tab2 cor0 ---- 177 51 93 query I rowsort SELECT DISTINCT + - col0 * ( col1 ) AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab2, tab1 cor2 ---- 3645 values hashing to c0625992cd48bef51317edf43a55d9e4 query I rowsort SELECT - cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 col0 FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT + col0 * ( + col0 ) AS col0 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT ALL col0 - - ( col1 ) FROM tab1 ---- 29 74 93 query I rowsort SELECT DISTINCT 94 AS col0 FROM tab0, tab2 AS cor0 ---- 94 query I rowsort SELECT col1 * ( 67 * + col0 ) FROM tab1 ---- 42880 5226 69680 query I rowsort SELECT - col2 * tab1.col1 AS col0 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT + + col1 - col0 FROM tab0 cor0 ---- 2 62 62 query I rowsort SELECT 89 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 860d55eb6785972467218a9c3badb5ad onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8069 SELECT DISTINCT + col2 - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 ---- 171 36 57 skipif mysql # not compatible query I rowsort label-8069 SELECT DISTINCT + col2 - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 ---- 171 36 57 query I rowsort SELECT - tab0.col2 * 43 + + col1 * - col2 + + col2 AS col1 FROM tab0 ---- -10906 -139 -4224 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8071 SELECT ALL CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8071 SELECT ALL CAST ( NULL AS REAL ) * col0 AS col2 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8072 SELECT DISTINCT - col2 DIV 90 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-8072 SELECT DISTINCT - col2 / 90 FROM tab0 ---- 0 query I rowsort SELECT DISTINCT tab1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8074 SELECT ALL + CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8074 SELECT ALL + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - ( col2 ) * + col2 AS col2 FROM tab0 ---- -1 -1089 -6724 query I rowsort SELECT + 65 + - col0 FROM tab2 ---- -13 -14 58 query I rowsort SELECT - + 99 * + col1 FROM tab2 AS cor0 ---- -1683 -3069 -5841 query I rowsort SELECT 50 * - col1 AS col2 FROM tab2 AS cor0 ---- -1550 -2950 -850 query I rowsort SELECT + - ( col1 ) * - col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT - 57 - + col1 FROM tab1 ---- -67 -70 -83 query I rowsort SELECT col1 - - tab2.col1 AS col1 FROM tab2 ---- 118 34 62 query I rowsort SELECT DISTINCT + - 74 * col0 + ( - 45 + + col0 ) FROM tab1 AS cor0 ---- -264 -4717 -5885 query I rowsort SELECT - 11 AS col0 FROM tab0 cor0 ---- -11 -11 -11 query I rowsort SELECT 92 AS col0 FROM tab2 AS cor0 ---- 92 92 92 query I rowsort SELECT ALL + + col1 + + col1 * ( - col1 ) FROM tab1 AS cor0 ---- -156 -650 -90 query I rowsort SELECT ALL cor0.col1 + - col1 + col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL - col2 + - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0 ---- -327 -3507 -988 query I rowsort SELECT col0 * col0 * cor0.col1 AS col2 FROM tab1 cor0 ---- 234 40960 83200 query I rowsort SELECT col2 * 30 AS col1 FROM tab2 AS cor0 ---- 1140 780 810 onlyif mysql # use DIV operator for integer division query I rowsort label-8090 SELECT + + cor0.col0 DIV ( ( - col1 ) + + col2 ) FROM tab2 AS cor0 ---- -1 -2 3 skipif mysql # not compatible query I rowsort label-8090 SELECT + + cor0.col0 / ( ( - col1 ) + + col2 ) FROM tab2 AS cor0 ---- -1 -2 3 query I rowsort SELECT ( + col1 + ( col2 ) ) FROM tab2 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-8092 SELECT DISTINCT col2 * col2 DIV - ( 61 ) FROM tab0 ---- -110 -17 0 skipif mysql # not compatible query I rowsort label-8092 SELECT DISTINCT col2 * col2 / - ( 61 ) FROM tab0 ---- -110 -17 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8093 SELECT ALL + + col0 DIV 10 + col1 AS col0 FROM tab1 AS cor0 ---- 16 21 26 skipif mysql # not compatible query I rowsort label-8093 SELECT ALL + + col0 / 10 + col1 AS col0 FROM tab1 AS cor0 ---- 16 21 26 query I rowsort SELECT DISTINCT col0 + col0 + cor0.col0 FROM tab1 AS cor0 ---- 192 240 9 query I rowsort SELECT - 46 + + col1 AS col2 FROM tab1 AS cor0 ---- -20 -33 -36 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 79 col2 FROM tab1 AS cor0 ---- -79 -79 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 18 * + col0 col2 FROM tab0 AS cor0 ---- 1602 432 630 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8098 SELECT ALL - + ( + col2 ) + col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8098 SELECT ALL - + ( + col2 ) + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + + 43 + 58 FROM tab0 AS cor0 ---- 101 101 101 query I rowsort SELECT + + 42 * + col0 AS col1 FROM tab0 AS cor0 ---- 1008 1470 3738 skipif mysql # not compatible query I rowsort SELECT DISTINCT + col0 * + col1 * - cor0.col1 + + CAST ( - 73 AS REAL ) * cor0.col0 AS col2 FROM tab1 AS cor0 ---- -11072 -19360 -2247 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8102 SELECT DISTINCT CAST( NULL AS DECIMAL ) - + col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8102 SELECT DISTINCT CAST ( NULL AS REAL ) - + col1 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8103 SELECT ALL + ( col0 ) * col2 DIV col1 FROM tab0 AS cor0 ---- 0 80 9 skipif mysql # not compatible query I rowsort label-8103 SELECT ALL + ( col0 ) * col2 / col1 FROM tab0 AS cor0 ---- 0 80 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8104 SELECT CAST( + ( col0 ) AS SIGNED ) * col2 + col0 col0 FROM tab0 AS cor0 ---- 70 7387 816 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8104 SELECT CAST ( + ( col0 ) AS INTEGER ) * col2 + col0 col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT + - cor0.col2 + - col0 FROM tab0 AS cor0 ---- -171 -36 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8106 SELECT + CAST( + col0 AS SIGNED ) * - col0 + - ( + 50 + col0 ) * - col0 FROM tab1 AS cor0 ---- 150 3200 4000 skipif mysql # not compatible query I rowsort label-8106 SELECT + CAST ( + col0 AS INTEGER ) * - col0 + - ( + 50 + col0 ) * - col0 FROM tab1 AS cor0 ---- 150 3200 4000 query I rowsort SELECT col2 + col1 * - col0 AS col2 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL + col0 - col2 AS col1 FROM tab1 cor0 ---- -16 -51 7 query I rowsort SELECT ALL col2 * - col0 + - col0 AS col1 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT ALL + col0 + col1 * col0 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-8111 SELECT DISTINCT + + 3 * - cor0.col1 + col2 DIV + col1 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -184 -234 -256 skipif mysql # not compatible query I rowsort label-8111 SELECT DISTINCT + + 3 * - cor0.col1 + col2 / + col1 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -184 -234 -256 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 1 + col1 col1 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT ALL + - col0 * col0 + - cor0.col2 * + col1 AS col0 FROM tab0 AS cor0 ---- -1322 -15383 -3414 onlyif mysql # use DIV operator for integer division query I rowsort label-8114 SELECT ALL - tab0.col1 DIV col0 + + col1 AS col0 FROM tab0 ---- 83 90 95 skipif mysql # not compatible query I rowsort label-8114 SELECT ALL - tab0.col1 / col0 + + col1 AS col0 FROM tab0 ---- 83 90 95 query I rowsort SELECT ALL + tab1.col2 + + tab1.col0 FROM tab1 ---- 121 176 57 query I rowsort SELECT 51 + + col1 AS col1 FROM tab0 AS cor0 ---- 137 142 148 query I rowsort SELECT + 74 * + tab1.col1 FROM tab1, tab2, tab1 AS cor0, tab1 AS cor1 ---- 81 values hashing to 4522abd26d3615573bdfe7cc92446ee2 onlyif mysql # use DIV operator for integer division query I rowsort label-8118 SELECT ALL col2 + + tab2.col0 DIV 60 + + col1 AS col2 FROM tab2 ---- 56 58 86 skipif mysql # not compatible query I rowsort label-8118 SELECT ALL col2 + + tab2.col0 / 60 + + col1 AS col2 FROM tab2 ---- 56 58 86 query I rowsort SELECT + col1 - + tab2.col1 * + 59 AS col1 FROM tab2 ---- -1798 -3422 -986 query I rowsort SELECT ALL + - ( col0 ) * + col2 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8121 SELECT DISTINCT CAST( NULL AS DECIMAL ) + 70 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8121 SELECT DISTINCT CAST ( NULL AS REAL ) + 70 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT + - cor0.col1 * col2 * col1 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT + col1 * + 51 AS col2 FROM tab2 AS cor0 ---- 1581 3009 867 query I rowsort SELECT ALL cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8125 SELECT ALL col2 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 ---- 1 1089 6724 skipif mysql # not compatible query I rowsort label-8125 SELECT ALL col2 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT - 93 * cor0.col1 * 0 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1 ---- 81 values hashing to 1f117f467f45d8c6b7553e2e3c842942 query I rowsort SELECT ALL + 63 + - col1 AS col1 FROM tab2 cor0 ---- 32 4 46 query I rowsort SELECT DISTINCT + col2 * + col0 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT + 80 + col0 FROM tab2 AS cor0 ---- 158 159 87 query I rowsort SELECT ALL col1 * + 76 AS col2 FROM tab0 AS cor0 ---- 6536 6916 7372 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8131 SELECT DISTINCT + + CAST( - col0 AS SIGNED ) * + cor0.col2 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8131 SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) * + cor0.col2 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8132 SELECT ALL - - CAST( 94 AS SIGNED ) - col0 DIV + col1 FROM tab2 cor0 ---- 90 93 94 skipif mysql # not compatible query I rowsort label-8132 SELECT ALL - - CAST ( 94 AS INTEGER ) - col0 / + col1 FROM tab2 cor0 ---- 90 93 94 query I rowsort SELECT col0 * + ( col1 ) AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL + ( + 96 ) * - col2 FROM tab0 AS cor0 ---- -3168 -7872 -96 query I rowsort SELECT - + ( - col1 ) + col2 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8136 SELECT ALL - - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-8136 SELECT ALL - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL + ( - col0 ) * + col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT col2 * - cor0.col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL col0 * col1 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + col1 * col0 + 68 FROM tab2 AS cor0 ---- 1411 285 4670 query I rowsort SELECT ALL 35 + col0 FROM tab1 ---- 115 38 99 query I rowsort SELECT ALL - + 56 * col0 + + col2 FROM tab2 AS cor0 ---- -365 -4342 -4386 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * col0 col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT + col1 * col0 * col1 + + col0 AS col0 FROM tab1 AS cor0 ---- 13600 2031 6464 query I rowsort SELECT ALL + + col0 + - col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 82 * - cor0.col0 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 ---- 574 6396 6478 query I rowsort SELECT col1 + 58 * - col2 AS col2 FROM tab2 AS cor0 ---- -1449 -1535 -2187 query I rowsort SELECT col1 + 66 AS col2 FROM tab1 AS cor0 ---- 76 79 92 onlyif mysql # use DIV operator for integer division query I rowsort label-8149 SELECT - col0 * - ( - col0 ) + col0 DIV 17 FROM tab1 AS cor0 ---- -4093 -6396 -9 skipif mysql # not compatible query I rowsort label-8149 SELECT - col0 * - ( - col0 ) + col0 / 17 FROM tab1 AS cor0 ---- -4093 -6396 -9 query I rowsort SELECT DISTINCT - col0 + 20 FROM tab0 AS cor0 ---- -15 -4 -69 query I rowsort SELECT ALL col2 - - col2 * 78 FROM tab2 AS cor0 ---- 2054 2133 3002 query I rowsort SELECT ALL col1 * ( + 34 * col2 ) AS col2 FROM tab1 cor0 ---- 19380 42432 47736 query I rowsort SELECT - col2 + col2 * col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT DISTINCT - col2 * + ( - col1 ) + + col0 AS col2 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT + col2 + + 67 * col1 FROM tab1 AS cor0 ---- 1796 727 967 onlyif mysql # use DIV operator for integer division query I rowsort label-8156 SELECT DISTINCT cor0.col0 DIV 67 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 0 1 skipif mysql # not compatible query I rowsort label-8156 SELECT DISTINCT cor0.col0 / 67 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 0 1 query I rowsort SELECT ( - col1 ) + - col1 * + col2 FROM tab2 cor0 ---- -1593 -663 -868 query I rowsort SELECT 6 * 93 + col0 AS col0 FROM tab1 AS cor0 ---- 561 622 638 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * cor0.col2 + col0 col0 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT + ( - col1 ) * - col2 + - 29 FROM tab1 AS cor0 ---- 1219 1375 541 onlyif mysql # use DIV operator for integer division query I rowsort label-8161 SELECT - - col1 DIV col1 AS col0 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8161 SELECT - - col1 / col1 AS col0 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT + col1 * 21 FROM tab1 ---- 210 273 546 query I rowsort SELECT DISTINCT 42 FROM tab2, tab0 cor0 ---- 42 onlyif mysql # use DIV operator for integer division query I rowsort label-8164 SELECT DISTINCT - col2 DIV + col0 - col1 col2 FROM tab0 AS cor0 ---- -87 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8164 SELECT DISTINCT - col2 / + col0 - col1 col2 FROM tab0 AS cor0 ---- -87 -91 -97 query I rowsort SELECT ALL 29 * col0 FROM tab2 AS cor0 ---- 203 2262 2291 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + col0 col2 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT DISTINCT 78 AS col2 FROM tab2, tab0 AS cor0 ---- 78 query I rowsort SELECT + - col1 * + col2 * + ( + col1 ) FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT - 3 * col0 * 15 AS col0 FROM tab0 cor0 ---- -1080 -1575 -4005 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8170 SELECT - ( col1 ) + - CAST( tab0.col1 * col2 AS SIGNED ) + + 82 FROM tab0 ---- -112 -2842 -7471 skipif mysql # not compatible query I rowsort label-8170 SELECT - ( col1 ) + - CAST ( tab0.col1 * col2 AS INTEGER ) + + 82 FROM tab0 ---- -112 -2842 -7471 query I rowsort SELECT - ( - col1 * - 25 + + col1 * col0 ) AS col0 FROM tab1 ---- -1365 -728 -890 query I rowsort SELECT + col1 + 42 FROM tab1 AS cor0 ---- 52 55 68 query I rowsort SELECT + + tab2.col0 AS col0 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT cor0.col1 * tab2.col0 - 80 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 99925343939a54d2fe3daa1b1265b7c9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8175 SELECT DISTINCT 32 * col1 / + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-8175 SELECT DISTINCT 32 * col1 / + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8176 SELECT 42 * col2 DIV 29 AS col2 FROM tab0 ---- 1 118 47 skipif mysql # not compatible query I rowsort label-8176 SELECT 42 * col2 / 29 AS col2 FROM tab0 ---- 1 118 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 65 * - tab2.col1 + col0 col2 FROM tab2 ---- -1026 -2008 -3757 query I rowsort SELECT - ( col0 ) * - 78 + tab1.col2 FROM tab1 ---- 288 5049 6336 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8179 SELECT ( - col1 ) * CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8179 SELECT ( - col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 onlyif mysql # use DIV operator for integer division query I rowsort label-8181 SELECT - - 85 DIV col1 FROM tab1 AS cor0 ---- 3 6 8 skipif mysql # not compatible query I rowsort label-8181 SELECT - - 85 / col1 FROM tab1 AS cor0 ---- 3 6 8 query I rowsort SELECT - ( col0 ) * + 51 AS col0 FROM tab2 cor0 ---- -357 -3978 -4029 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8183 SELECT DISTINCT col2 - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8183 SELECT DISTINCT col2 - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + col2 * - tab2.col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + col0 * 55 * - 69 AS col0 FROM tab0 AS cor0 ---- -132825 -337755 -91080 onlyif mysql # use DIV operator for integer division query I rowsort label-8186 SELECT ALL col1 DIV + col0 FROM tab2 cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-8186 SELECT ALL col1 / + col0 FROM tab2 cor0 ---- 0 0 4 query I rowsort SELECT ALL col1 + 95 FROM tab1 AS cor0 ---- 105 108 121 onlyif mysql # use DIV operator for integer division query I rowsort label-8188 SELECT ALL - col0 + + col0 DIV ( col0 ) FROM tab0 AS cor0 ---- -23 -34 -88 skipif mysql # not compatible query I rowsort label-8188 SELECT ALL - col0 + + col0 / ( col0 ) FROM tab0 AS cor0 ---- -23 -34 -88 query I rowsort SELECT - - tab2.col2 AS col0 FROM tab0, tab1, tab2 AS cor0, tab2 ---- 81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9 query III rowsort SELECT * FROM tab1 WHERE NOT - col1 + - col0 BETWEEN NULL AND col0 * tab1.col2 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab0.col1 * col2 * + col0 col2 FROM tab0 ---- -3395 -664118 -68112 query I rowsort SELECT col2 * - tab2.col2 * col1 AS col2 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT col2 * col1 * + col1 AS col0 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT ALL + col0 + col0 * col1 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT ALL - tab1.col1 + + tab1.col0 * col0 AS col0 FROM tab1 ---- -17 4086 6387 query I rowsort SELECT ALL + tab0.col1 * - col1 * + col0 AS col1 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT ALL col0 FROM tab2 WHERE NOT - col1 NOT BETWEEN - col1 AND NULL ---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL <> NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 - col1 * - col0 col0 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT + col2 * col0 + + col1 * - tab0.col2 * - col1 FROM tab0 ---- 244860 686340 9444 query I rowsort SELECT col1 * col2 - + col2 AS col2 FROM tab1 ---- 1152 1350 513 query III rowsort SELECT ALL * FROM tab0 WHERE col1 <> - col1 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col2 ) ---- query III rowsort SELECT * FROM tab1 WHERE - col1 + - col0 <> col2 * - col1 - - col1 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT ALL tab1.col0 + col2 * col1 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 * - col1 ) ---- query I rowsort SELECT DISTINCT + col0 + - tab1.col2 * - col0 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT col0 * - col0 * col1 AS col0 FROM tab2 ---- -106097 -1519 -358956 query I rowsort SELECT col2 * col0 FROM tab2 WHERE ( NULL ) NOT IN ( col2 ) ---- query I rowsort SELECT + col2 * col2 + tab1.col0 FROM tab1 ---- 2919 3313 9296 query I rowsort SELECT col1 - - col2 * - col1 FROM tab1 ---- -1235 -1378 -560 query I rowsort SELECT DISTINCT col0 * col2 + + col0 AS col1 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT ALL + col2 * - tab0.col2 * col2 AS col0 FROM tab0 ---- -1 -35937 -551368 query I rowsort SELECT 98 * tab1.col2 FROM tab1 ---- 5292 5586 9408 query I rowsort SELECT ( col0 * col0 ) + + ( + 92 ) FROM tab1 ---- 101 4188 6492 query I rowsort SELECT DISTINCT - 72 + + cor0.col2 AS col0 FROM tab2 cor0 ---- -34 -45 -46 query I rowsort SELECT + 65 * col0 + col0 + + col1 * col1 FROM tab1 AS cor0 ---- 4324 5449 874 query I rowsort SELECT DISTINCT + - 74 AS col0 FROM tab1 AS cor0 ---- -74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 57 col0 FROM tab0, tab1 cor0 ---- 9 values hashing to 61da70c624ad60604a668f7f8f29392a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8219 SELECT - CAST( NULL AS SIGNED ) + tab2.col2 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8219 SELECT - CAST ( NULL AS INTEGER ) + tab2.col2 AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col0 + + tab1.col0 + + col0 AS col0 FROM tab1 ---- 192 240 9 query I rowsort SELECT DISTINCT col0 * col0 + col0 FROM tab0 ---- 1260 600 8010 query I rowsort SELECT + ( col0 ) * tab0.col2 * - col0 FROM tab0 ---- -1225 -19008 -649522 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + + 94 col0 FROM tab1 ---- 148 151 190 skipif mysql # not compatible query I rowsort SELECT - col0 * - col2 * CAST ( ( cor0.col1 ) AS REAL ) + ( col0 ) AS col2 FROM tab2 AS cor0 ---- 119730 51113 5866 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + col0 ) col2 FROM tab1 cor0 ---- -3 -64 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-8226 SELECT col0 DIV + col1 + col0 * 13 AS col2 FROM tab0 AS cor0 ---- 1157 312 455 skipif mysql # not compatible query I rowsort label-8226 SELECT col0 / + col1 + col0 * 13 AS col2 FROM tab0 AS cor0 ---- 1157 312 455 query I rowsort SELECT DISTINCT + + ( col1 ) + col2 * col1 AS col0 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT 67 AS col0 FROM tab1 cor0 ---- 67 67 67 onlyif mysql # use DIV operator for integer division query I rowsort label-8229 SELECT + - 51 DIV - cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1 3 5 skipif mysql # not compatible query I rowsort label-8229 SELECT + - 51 / - cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1 3 5 query I rowsort SELECT DISTINCT - 31 AS col2 FROM tab2 AS cor0 ---- -31 query I rowsort SELECT DISTINCT + 50 * + col2 + col1 FROM tab1 AS cor0 ---- 2726 2860 4813 query I rowsort SELECT ALL + + col1 + + col0 * 51 FROM tab1 AS cor0 ---- 179 3274 4093 query I rowsort SELECT 66 + - cor0.col2 FROM tab0 AS cor0 ---- -16 33 65 query I rowsort SELECT ALL + 91 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col2 + - 60 + col2 col0 FROM tab1 ---- 132 48 54 query I rowsort SELECT DISTINCT - col1 - tab2.col0 AS col1 FROM tab2 ---- -137 -38 -96 query I rowsort SELECT col2 + + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT - col0 * 37 FROM tab1 AS cor0 ---- -111 -2368 -2960 query I rowsort SELECT col0 + 56 * - col1 FROM tab1 AS cor0 ---- -1453 -496 -648 query I rowsort SELECT - + ( + 99 ) + col0 * + col1 FROM tab1 AS cor0 ---- -21 541 941 query I rowsort SELECT - 27 + 17 FROM tab1 cor0 ---- -10 -10 -10 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8242 SELECT + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8242 SELECT + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 * - 35 AS col2 FROM tab0 ---- -1155 -2870 -35 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8244 SELECT - col1 * CAST( - col1 AS SIGNED ) FROM tab0 ---- 7396 8281 9409 skipif mysql # not compatible query I rowsort label-8244 SELECT - col1 * CAST ( - col1 AS INTEGER ) FROM tab0 ---- 7396 8281 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-8245 SELECT DISTINCT + cor0.col1 * ( col2 ) DIV col1 + - col0 + + col2 FROM tab1 cor0 ---- 105 112 50 skipif mysql # not compatible query I rowsort label-8245 SELECT DISTINCT + cor0.col1 * ( col2 ) / col1 + - col0 + + col2 FROM tab1 cor0 ---- 105 112 50 query I rowsort SELECT DISTINCT + 75 + 77 FROM tab2 AS cor0 ---- 152 onlyif mysql # use DIV operator for integer division query I rowsort label-8247 SELECT - CAST( - col2 AS SIGNED ) + + col0 + - col1 * col1 DIV col0 col0 FROM tab1 AS cor0 ---- -168 120 174 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8247 SELECT - CAST ( - col2 AS INTEGER ) + + col0 + - col1 * col1 / col0 col0 FROM tab1 AS cor0 ---- -168 120 174 onlyif mysql # use DIV operator for integer division query I rowsort label-8248 SELECT + + col1 DIV col1 + col1 * col2 + - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1509 609 811 skipif mysql # not compatible query I rowsort label-8248 SELECT + + col1 / col1 + col1 * col2 + - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1509 609 811 query I rowsort SELECT DISTINCT + col1 + + col2 * col2 FROM tab0 AS cor0 ---- 1175 6815 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 * col2 col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT - + col0 + - col0 AS col2 FROM tab0 AS cor0 ---- -178 -48 -70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 - col0 col2 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT - 32 + - cor0.col2 FROM tab0 cor0 ---- -114 -33 -65 query I rowsort SELECT DISTINCT - + col0 + + col2 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT DISTINCT + 6 * - col1 AS col0 FROM tab2 AS cor0 ---- -102 -186 -354 query I rowsort SELECT DISTINCT + col2 * - col1 - col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT ALL + ( col2 ) * + col1 + - tab0.col1 FROM tab0 ---- 0 2752 7371 query I rowsort SELECT DISTINCT col0 * col2 * col2 + + col2 AS col1 FROM tab1 ---- 207993 737376 8802 query I rowsort SELECT 93 * + col0 FROM tab0 ---- 2232 3255 8277 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 66 + - col2 col1 FROM tab2 ---- 28 39 40 query I rowsort SELECT col2 * col0 * col0 AS col0 FROM tab0 AS cor0 ---- 1225 19008 649522 query I rowsort SELECT - 49 * col0 - col1 * col1 FROM tab1 AS cor0 ---- -3236 -4089 -823 onlyif mysql # use DIV operator for integer division query I rowsort label-8263 SELECT col1 DIV ( col1 ) + - col1 FROM tab0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-8263 SELECT col1 / ( col1 ) + - col1 FROM tab0 ---- -85 -90 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 - col0 col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT DISTINCT + 5 AS col0 FROM tab1 ---- 5 query I rowsort SELECT col1 * cor0.col0 + col2 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT ALL - + 57 + + col2 FROM tab0 AS cor0 ---- -24 -56 25 query I rowsort SELECT col1 + + col2 * tab2.col0 + - col0 FROM tab2 ---- 2009 213 2940 query I rowsort SELECT DISTINCT + + 25 AS col2 FROM tab2 AS cor0 ---- 25 query I rowsort SELECT - ( col0 ) + + col2 AS col1 FROM tab1 ---- -7 16 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8271 SELECT ALL - CAST( - 79 AS SIGNED ) + + col2 * col2 col2 FROM tab2 ---- 1523 755 808 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8271 SELECT ALL - CAST ( - 79 AS INTEGER ) + + col2 * col2 col2 FROM tab2 ---- 1523 755 808 query I rowsort SELECT + 83 * - col0 AS col1 FROM tab2 ---- -581 -6474 -6557 query I rowsort SELECT - col0 + - 55 FROM tab2 ---- -133 -134 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-8274 SELECT DISTINCT col1 DIV col1 + + col2 * + col2 AS col1 FROM tab2 ---- 1445 677 730 skipif mysql # not compatible query I rowsort label-8274 SELECT DISTINCT col1 / col1 + + col2 * + col2 AS col1 FROM tab2 ---- 1445 677 730 query I rowsort SELECT DISTINCT + col1 + col2 + col2 FROM tab0 ---- 152 255 99 query I rowsort SELECT + - col0 + col1 * - col0 FROM tab1 cor0 ---- -1120 -704 -81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 61 * 23 col2 FROM tab2 cor0 ---- -1403 query I rowsort SELECT ALL + - ( col2 ) * - col0 AS col2 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT + ( + col0 ) * - cor0.col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT - ( + cor0.col1 ) + + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT ( + col2 ) * + col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT 91 * + cor0.col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to acc135659e1d5fc49490278562c5e94e query I rowsort SELECT - - ( col1 ) * - col0 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + col2 * + col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + col1 ) AND ( NULL ) ---- query I rowsort SELECT col2 FROM tab2 WHERE NULL NOT IN ( + col1 ) ---- query I rowsort SELECT ALL col1 + col2 * col1 FROM tab1 ---- 1261 1430 580 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= ( NULL ) ---- query III rowsort SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col1 AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8289 SELECT DISTINCT col0 + + col1 DIV col0 + col2 AS col0 FROM tab1 ---- 121 176 65 skipif mysql # not compatible query I rowsort label-8289 SELECT DISTINCT col0 + + col1 / col0 + col2 AS col0 FROM tab1 ---- 121 176 65 query I rowsort SELECT ALL col1 + - col0 + + tab1.col2 AS col2 FROM tab1 ---- 29 3 77 query I rowsort SELECT ALL col2 AS col1 FROM tab0 WHERE NULL >= ( - col2 * - col2 ) ---- query I rowsort SELECT ALL - col1 * + cor0.col0 * col1 AS col0 FROM tab1 AS cor0 ---- -13520 -2028 -6400 query I rowsort SELECT - - cor0.col0 * col1 FROM tab1 AS cor0 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-8294 SELECT col0 * col0 DIV - cor0.col0 AS col0 FROM tab1 cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-8294 SELECT col0 * col0 / - cor0.col0 AS col0 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT - col0 * + cor0.col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT - - cor0.col1 * col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT ALL cor0.col1 * col2 + col2 AS col0 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT DISTINCT tab1.col0 AS col1 FROM tab1 WHERE NOT - col1 NOT IN ( + col2 ) ---- query III rowsort SELECT * FROM tab2 WHERE + col1 * col0 NOT IN ( col1 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 + col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8301 SELECT - col1 + col1 DIV col0 + col0 DIV + col1 col1 FROM tab2 AS cor0 ---- -13 -27 -58 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8301 SELECT - col1 + col1 / col0 + col0 / + col1 col1 FROM tab2 AS cor0 ---- -13 -27 -58 query I rowsort SELECT ALL - - col0 * + cor0.col2 + - col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT ALL + cor0.col1 + cor0.col1 - col2 AS col1 FROM tab1 AS cor0 ---- -2 -37 -70 query I rowsort SELECT ALL col0 + - col2 * + col2 FROM tab0 AS cor0 ---- -1065 -6635 34 query I rowsort SELECT ALL + cor0.col1 + - cor0.col2 * + col0 * + col1 + - col2 FROM tab0 AS cor0 ---- -3299 -664109 -68059 query I rowsort SELECT DISTINCT + col1 * col1 - col0 FROM tab0 AS cor0 ---- 7372 8192 9374 onlyif mysql # use DIV operator for integer division query I rowsort label-8307 SELECT DISTINCT col0 DIV - cor0.col0 + - col1 * - col1 + + col0 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- 15578 8187 9443 skipif mysql # not compatible query I rowsort label-8307 SELECT DISTINCT col0 / - cor0.col0 + - col1 * - col1 + + col0 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- 15578 8187 9443 onlyif mysql # use DIV operator for integer division query I rowsort label-8308 SELECT DISTINCT col2 DIV col2 AS col0 FROM tab1 ---- 1 skipif mysql # not compatible query I rowsort label-8308 SELECT DISTINCT col2 / col2 AS col0 FROM tab1 ---- 1 query I rowsort SELECT + col2 / col1 - - col2 AS col0 FROM tab0 WHERE NULL IN ( col2 * - col0 ) AND NULL NOT IN ( + col2 + + col2 ) ---- query I rowsort SELECT DISTINCT 19 AS col2 FROM tab1, tab2 cor0 ---- 19 query I rowsort SELECT + col0 * 74 + - col0 AS col2 FROM tab1 AS cor0 ---- 219 4672 5840 query I rowsort SELECT ALL - tab2.col1 + + 12 * - col1 FROM tab2 ---- -221 -403 -767 query I rowsort SELECT ALL - col1 + col2 * - col0 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT ALL + ( + col1 ) * - col1 + + col0 AS col2 FROM tab2 AS cor0 ---- -210 -3403 -954 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * + col2 + col1 col1 FROM tab2 AS cor0 ---- 1461 735 760 query I rowsort SELECT ALL - col2 * + col2 FROM tab0 cor0 ---- -1 -1089 -6724 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8317 SELECT + CAST( - 76 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -76 -76 -76 skipif mysql # not compatible query I rowsort label-8317 SELECT + CAST ( - 76 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -76 -76 -76 query I rowsort SELECT ALL + + ( 57 ) + + col0 FROM tab2 AS cor0 ---- 135 136 64 query I rowsort SELECT DISTINCT - 96 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 45 col1 FROM tab1 AS cor0 ---- 45 45 45 query I rowsort SELECT ALL tab1.col1 - - col0 AS col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT + 68 * + col2 + ( - col2 + col0 ) * + col2 FROM tab0 AS cor0 ---- 102 1947 6150 query I rowsort SELECT - col1 * - col1 + - col1 FROM tab0 AS cor0 ---- 7310 8190 9312 query I rowsort SELECT col2 + + col2 * + 10 FROM tab1 cor0 ---- 1056 594 627 query I rowsort SELECT DISTINCT - col2 + col0 * + col0 FROM tab0 AS cor0 ---- 1224 543 7839 query I rowsort SELECT DISTINCT - - col0 + 38 + + col1 FROM tab2 AS cor0 ---- 134 175 76 query I rowsort SELECT + - col0 * - 36 * col1 + + cor0.col2 FROM tab2 cor0 ---- 165698 48386 7839 query I rowsort SELECT DISTINCT + + col0 + + cor0.col1 AS col1 FROM tab1 cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort SELECT ALL - + col2 * + CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-8330 SELECT + col0 + 92 DIV 38 AS col0 FROM tab1 AS cor0 ---- 5 66 82 skipif mysql # not compatible query I rowsort label-8330 SELECT + col0 + 92 / 38 AS col0 FROM tab1 AS cor0 ---- 5 66 82 query I rowsort SELECT DISTINCT + col2 + - ( - 0 ) AS col2 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT + cor0.col2 + - col0 * + col2 * col1 AS col1 FROM tab2 cor0 ---- -119626 -50996 -5832 query I rowsort SELECT ALL 23 AS col1 FROM tab1 ---- 23 23 23 query I rowsort SELECT DISTINCT + cor0.col1 * col0 + - col2 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL - col0 + + cor0.col2 * col1 AS col0 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT - col1 + - ( + 28 ) * col1 FROM tab1 AS cor0 ---- -290 -377 -754 query I rowsort SELECT ALL + col0 + + col1 * col0 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-8338 SELECT col2 DIV - 10 + + 45 DIV + cor0.col2 AS col1 FROM tab1 cor0 ---- -5 -5 -9 skipif mysql # not compatible query I rowsort label-8338 SELECT col2 / - 10 + + 45 / + cor0.col2 AS col1 FROM tab1 cor0 ---- -5 -5 -9 query I rowsort SELECT ALL 58 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to ef6e63aeed2581a168f07646d258f666 query I rowsort SELECT - col2 * + 35 + 78 FROM tab0 AS cor0 ---- -1077 -2792 43 query I rowsort SELECT + col1 - - tab1.col1 AS col2 FROM tab1 ---- 20 26 52 query I rowsort SELECT - ( 86 ) * + col2 + col2 FROM tab0 cor0 ---- -2805 -6970 -85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8343 SELECT DISTINCT col1 + ( col1 ) * CAST( - ( col0 ) AS SIGNED ) AS col0 FROM tab1 cor0 ---- -1027 -52 -630 skipif mysql # not compatible query I rowsort label-8343 SELECT DISTINCT col1 + ( col1 ) * CAST ( - ( col0 ) AS INTEGER ) AS col0 FROM tab1 cor0 ---- -1027 -52 -630 query I rowsort SELECT ALL - + col1 * + 51 AS col0 FROM tab0 AS cor0 ---- -4386 -4641 -4947 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8345 SELECT ALL + - CAST( NULL AS SIGNED ) * col2 + col2 * col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8345 SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 + col2 * col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 77 col1 FROM tab2 cor0 ---- 77 77 77 query I rowsort SELECT + col0 * + 41 + - 89 AS col0 FROM tab1 ---- 2535 3191 34 query I rowsort SELECT col2 + col1 + - 67 FROM tab0 ---- 106 31 52 query I rowsort SELECT DISTINCT col2 + 75 AS col2 FROM tab2 ---- 101 102 113 onlyif mysql # use DIV operator for integer division query I rowsort label-8350 SELECT - 28 DIV - 53 FROM tab2, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-8350 SELECT - 28 / - 53 FROM tab2, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT DISTINCT col2 * ( col1 ) * - tab2.col2 AS col2 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT ALL - - col2 + cor0.col0 * - ( + col1 ) FROM tab1 cor0 ---- -24 -583 -944 query I rowsort SELECT ALL - 84 * col1 - - col0 AS col0 FROM tab0 AS cor0 ---- -7200 -7555 -8113 query I rowsort SELECT DISTINCT + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-8355 SELECT ALL - - 44 DIV - col1 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8355 SELECT ALL - - 44 / - col1 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8356 SELECT ALL + col0 * col2 DIV - ( 30 ) AS col1 FROM tab1 AS cor0 ---- -121 -256 -5 skipif mysql # not compatible query I rowsort label-8356 SELECT ALL + col0 * col2 / - ( 30 ) AS col1 FROM tab1 AS cor0 ---- -121 -256 -5 query I rowsort SELECT DISTINCT + ( tab2.col1 ) * - col1 FROM tab2 ---- -289 -3481 -961 onlyif mysql # use DIV operator for integer division query I rowsort label-8358 SELECT DISTINCT ( - col2 ) DIV + col1 col2 FROM tab2 ---- -2 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8358 SELECT DISTINCT ( - col2 ) / + col1 col2 FROM tab2 ---- -2 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8359 SELECT ALL 73 DIV ( col1 ) AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8359 SELECT ALL 73 / ( col1 ) AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL + col1 * + col0 * - col2 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT DISTINCT col0 + col2 * - col2 AS col1 FROM tab2 AS cor0 ---- -1365 -598 -722 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 * col0 col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - - col0 + col2 * - col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT DISTINCT + col1 * + col2 + col2 * col1 FROM tab0 AS cor0 ---- 14924 194 5676 query I rowsort SELECT + col2 + col2 * ( 98 ) * col2 FROM tab0 AS cor0 ---- 106755 659034 99 onlyif mysql # use DIV operator for integer division query I rowsort label-8366 SELECT col2 DIV + col1 AS col0 FROM tab2 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-8366 SELECT col2 / + col1 AS col0 FROM tab2 ---- 0 0 2 query I rowsort SELECT + 74 * col2 FROM tab0 ---- 2442 6068 74 query I rowsort SELECT + tab2.col1 * ( + col1 + + col1 ) * col0 FROM tab2 ---- 13454 45662 543036 onlyif mysql # use DIV operator for integer division query I rowsort label-8369 SELECT + ( col0 + col1 ) DIV col1 FROM tab2 ---- 1 2 5 skipif mysql # not compatible query I rowsort label-8369 SELECT + ( col0 + col1 ) / col1 FROM tab2 ---- 1 2 5 query I rowsort SELECT DISTINCT - - cor0.col2 - + 40 AS col0 FROM tab2 AS cor0 ---- -13 -14 -2 query I rowsort SELECT - - cor0.col1 - + 11 AS col2 FROM tab1 AS cor0 ---- -1 15 2 query I rowsort SELECT + col0 + - col2 * col1 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT ALL + col2 + 95 AS col0 FROM tab0 cor0 ---- 128 177 96 query I rowsort SELECT ALL + cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT DISTINCT + 77 AS col1 FROM tab1 AS cor0 ---- 77 query I rowsort SELECT - + 67 * - col1 + - col1 + cor0.col1 AS col1 FROM tab2 cor0 ---- 1139 2077 3953 onlyif mysql # use DIV operator for integer division query I rowsort label-8377 SELECT col2 DIV - col2 + - col1 AS col0 FROM tab0 AS cor0 ---- -87 -92 -98 skipif mysql # not compatible query I rowsort label-8377 SELECT col2 / - col2 + - col1 AS col0 FROM tab0 AS cor0 ---- -87 -92 -98 query I rowsort SELECT - 51 + - col1 + - ( col2 ) AS col0 FROM tab2 AS cor0 ---- -106 -109 -136 query I rowsort SELECT - - 48 * col0 + col0 + cor0.col2 FROM tab2 cor0 ---- 370 3848 3909 query I rowsort SELECT ALL + 34 * col2 FROM tab0 AS cor0 ---- 1122 2788 34 query I rowsort SELECT DISTINCT 45 * col2 FROM tab2 AS cor0 ---- 1170 1215 1710 query I rowsort SELECT DISTINCT - 26 AS col0 FROM tab2 AS cor0 ---- -26 onlyif mysql # use DIV operator for integer division query I rowsort label-8383 SELECT DISTINCT - col1 DIV + col2 FROM tab0 cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-8383 SELECT DISTINCT - col1 / + col2 FROM tab0 cor0 ---- -1 -2 -97 query I rowsort SELECT DISTINCT - col2 * - col0 + - col1 * col2 * - col1 AS col2 FROM tab0 ---- 244860 686340 9444 query I rowsort SELECT ALL + 10 * + col1 + + col1 * - col2 * 11 FROM tab0 ---- -30358 -81172 -97 query I rowsort SELECT col2 + 52 FROM tab2 ---- 78 79 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( cor0.col1 ) col1 FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-8388 SELECT ALL - col1 - + CAST( + col2 AS SIGNED ) DIV col0 col2 FROM tab1 AS cor0 ---- -10 -14 -44 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8388 SELECT ALL - col1 - + CAST ( + col2 AS INTEGER ) / col0 col2 FROM tab1 AS cor0 ---- -10 -14 -44 query I rowsort SELECT ALL + cor0.col1 * - col2 + - col0 FROM tab0 cor0 ---- -132 -2862 -7551 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8390 SELECT DISTINCT - col2 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-8390 SELECT DISTINCT - col2 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT + cor0.col2 * - col2 * + col1 + col0 FROM tab1 cor0 ---- -119728 -32426 -75813 query I rowsort SELECT col1 * ( col1 ) AS col2 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT - - col2 * 48 FROM tab2 AS cor0 ---- 1248 1296 1824 query I rowsort SELECT DISTINCT + + col0 * + 83 + col1 AS col2 FROM tab1 AS cor0 ---- 275 5322 6653 query I rowsort SELECT DISTINCT - cor0.col1 + - 1 AS col0 FROM tab2 AS cor0 ---- -18 -32 -60 query I rowsort SELECT DISTINCT + col0 * col2 + + 58 * - col1 FROM tab0 AS cor0 ---- -4196 -5591 2020 query I rowsort SELECT - cor0.col0 + + 19 * col0 FROM tab1 cor0 ---- 1152 1440 54 query I rowsort SELECT DISTINCT + 9 AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 9 query I rowsort SELECT ALL col2 - ( col0 ) FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL - - col2 + cor0.col0 * - col2 FROM tab0 cor0 ---- -34 -7216 -759 query I rowsort SELECT col0 * + 22 * 51 AS col2 FROM tab0 AS cor0 ---- 26928 39270 99858 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8402 SELECT ( - col1 ) + col2 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 ---- -188 -3658 -7693 skipif mysql # not compatible query I rowsort label-8402 SELECT ( - col1 ) + col2 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 ---- -188 -3658 -7693 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8403 SELECT - CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-8403 SELECT - CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8404 SELECT - CAST( + ( col1 ) AS SIGNED ) + + col0 col2 FROM tab0 AS cor0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8404 SELECT - CAST ( + ( col1 ) AS INTEGER ) + + col0 col2 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT + 93 + col1 FROM tab2 AS cor0 ---- 110 124 152 query I rowsort SELECT - col2 + - col0 * col1 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT col1 + 41 FROM tab2 ---- 100 58 72 query I rowsort SELECT - - 43 * + col0 AS col2 FROM tab1 AS cor0 ---- 129 2752 3440 query I rowsort SELECT - ( - col1 ) * col0 + - 68 * 99 AS col2 FROM tab2 AS cor0 ---- -2130 -5389 -6515 query I rowsort SELECT + col2 * + ( col0 ) * col0 FROM tab2 ---- 1323 158184 237158 query I rowsort SELECT cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT - - 68 * - 41 FROM tab0 AS cor0 ---- -2788 -2788 -2788 query I rowsort SELECT + + 83 FROM tab2 AS cor0 ---- 83 83 83 query I rowsort SELECT + - 20 + - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -27 -98 -99 query I rowsort SELECT ALL - 62 * + col1 AS col0 FROM tab1 ---- -1612 -620 -806 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 ---- 972 values hashing to a8481bfbfcb330825976c5896e54bc19 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8417 SELECT - col1 * + CAST( + ( + col2 ) * - ( col2 ) AS SIGNED ) FROM tab0 AS cor0 ---- 611884 93654 97 skipif mysql # not compatible query I rowsort label-8417 SELECT - col1 * + CAST ( + ( + col2 ) * - ( col2 ) AS INTEGER ) FROM tab0 AS cor0 ---- 611884 93654 97 onlyif mysql # use DIV operator for integer division query I rowsort label-8418 SELECT - 89 DIV + 41 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to ec11209ab257030053484fc13a1f6d17 skipif mysql # not compatible query I rowsort label-8418 SELECT - 89 / + 41 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to ec11209ab257030053484fc13a1f6d17 query I rowsort SELECT ALL 52 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 064a0a3374c503b28491a45b55423f96 query I rowsort SELECT + 89 * + col0 FROM tab0 AS cor0 ---- 2136 3115 7921 query I rowsort SELECT + col0 + - col1 + col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT - col1 + 57 AS col0 FROM tab1 AS cor0 ---- 31 44 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 10 * + 26 col0 FROM tab0, tab2 cor0 ---- 9 values hashing to 763b610623970288fe6cd4be72472652 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8424 SELECT - col1 + + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8424 SELECT - col1 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 + tab0.col1 - + 30 FROM tab0 ---- -30 -30 -30 query I rowsort SELECT col0 * + col0 * - col0 AS col2 FROM tab1 ---- -262144 -27 -512000 query I rowsort SELECT tab0.col1 - tab0.col0 * col0 FROM tab0 ---- -1128 -490 -7830 query I rowsort SELECT + col2 - + col0 AS col2 FROM tab0 ---- -34 -7 9 query I rowsort SELECT tab0.col1 * - col2 * 88 FROM tab0 ---- -249744 -656656 -8536 query I rowsort SELECT ALL ( col0 ) * col1 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - col0 + - col0 * col1 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT 71 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2 onlyif mysql # use DIV operator for integer division query I rowsort label-8433 SELECT col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-8433 SELECT col1 / cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # use DIV operator for integer division query I rowsort label-8434 SELECT + - col0 + col1 DIV 50 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-8434 SELECT + - col0 + col1 / 50 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT - col1 + 57 + - col2 FROM tab1 AS cor0 ---- -10 -23 -52 query I rowsort SELECT cor0.col0 * + 69 - - col1 FROM tab0 AS cor0 ---- 1742 2512 6232 query I rowsort SELECT + 1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 query I rowsort SELECT - + col1 + + 95 FROM tab1 AS cor0 ---- 69 82 85 query I rowsort SELECT DISTINCT - col1 * - col2 AS col1 FROM tab1 cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8440 SELECT ALL + CAST( + col0 AS SIGNED ) * + col1 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-8440 SELECT ALL + CAST ( + col0 AS INTEGER ) * + col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL 26 + col1 * - col0 AS col0 FROM tab1 AS cor0 ---- -1014 -52 -614 query I rowsort SELECT col0 * 93 FROM tab0 AS cor0 ---- 2232 3255 8277 onlyif mysql # use DIV operator for integer division query I rowsort label-8443 SELECT DISTINCT - cor0.col1 DIV - 93 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-8443 SELECT DISTINCT - cor0.col1 / - 93 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - 68 ) col1 FROM tab1 ---- -68 -68 -68 query I rowsort SELECT 94 * col1 AS col0 FROM tab0 cor0 ---- 8084 8554 9118 onlyif mysql # use DIV operator for integer division query I rowsort label-8446 SELECT DISTINCT - cor0.col0 DIV 79 col1 FROM tab2 AS cor0 ---- -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8446 SELECT DISTINCT - cor0.col0 / 79 col1 FROM tab2 AS cor0 ---- -1 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8447 SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8447 SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8448 SELECT - CAST( NULL AS SIGNED ) + ( + col2 ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8448 SELECT - CAST ( NULL AS INTEGER ) + ( + col2 ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 98 + cor0.col2 col2 FROM tab0 AS cor0 ---- -16 -65 -97 query I rowsort SELECT ALL - - col1 * col0 - col2 * col1 AS col1 FROM tab1 AS cor0 ---- -1326 -208 70 query I rowsort SELECT DISTINCT + + 71 - + 24 AS col2 FROM tab0 AS cor0 ---- 47 query I rowsort SELECT - cor0.col1 * ( col2 ) FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + 98 + col1 * + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 1441 315 4700 query I rowsort SELECT - 48 * col0 + - ( + col0 * col2 ) AS col1 FROM tab1 AS cor0 ---- -11520 -306 -6720 query I rowsort SELECT DISTINCT + col2 * - cor0.col0 + 15 * + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1817 -84 -858 query I rowsort SELECT ALL + - col2 * col2 + + 50 FROM tab1 cor0 ---- -2866 -3199 -9166 query I rowsort SELECT + - 32 * col2 * + 63 + col2 AS col1 FROM tab2 AS cor0 ---- -52390 -54405 -76570 query I rowsort SELECT DISTINCT - - cor0.col0 + col2 * col0 FROM tab2 AS cor0 ---- 196 2106 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-8459 SELECT + cor0.col1 - - cor0.col1 DIV 39 FROM tab2 AS cor0 ---- 17 31 60 skipif mysql # not compatible query I rowsort label-8459 SELECT + cor0.col1 - - cor0.col1 / 39 FROM tab2 AS cor0 ---- 17 31 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 60 * - cor0.col0 + col0 col1 FROM tab2 cor0 ---- 427 4758 4819 query I rowsort SELECT DISTINCT + - col0 * - col1 + col1 + ( + col1 ) FROM tab0 AS cor0 ---- 2236 3589 8281 query I rowsort SELECT - 47 - + col2 AS col2 FROM tab1 AS cor0 ---- -101 -104 -143 query I rowsort SELECT ALL ( + 93 ) + + col0 - - col1 AS col2 FROM tab1 ---- 122 167 186 query I rowsort SELECT DISTINCT + 47 - 60 FROM tab2 ---- -13 query I rowsort SELECT ALL - cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e query I rowsort SELECT DISTINCT + 27 * + col2 * + col0 FROM tab2 ---- 5103 54756 81054 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8467 SELECT + 41 * + cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-8467 SELECT + 41 * + cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT - 33 + col2 + ( - 37 + + col1 ) AS col1 FROM tab2 AS cor0 ---- -12 -15 15 query I rowsort SELECT DISTINCT cor1.col0 AS col0 FROM tab0, tab2, tab1 AS cor0, tab0 AS cor1 ---- 24 35 89 query I rowsort SELECT DISTINCT col2 - - col2 * - col1 AS col1 FROM tab0 AS cor0 ---- -2805 -7380 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col1 col0 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT cor0.col2 + + ( + col2 ) * col0 AS col1 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT col1 + 18 AS col2 FROM tab1 AS cor0 ---- 28 31 44 query I rowsort SELECT - cor0.col0 * + col1 + - col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT + - col2 + 12 FROM tab1 AS cor0 ---- -42 -45 -84 query I rowsort SELECT ALL + 72 * col2 * 95 AS col1 FROM tab1 ---- 369360 389880 656640 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + tab2.col1 ) col1 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT - 59 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 1e6537c922fa953e0fd2f59430803703 query I rowsort SELECT - col0 + - col1 * + col0 FROM tab0 ---- -2088 -3430 -8188 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2 ---- 3645 values hashing to 48366b93fe9110d617672483a489e89c query I rowsort SELECT DISTINCT - 66 FROM tab2, tab1, tab0 AS cor0 ---- -66 onlyif mysql # use DIV operator for integer division query I rowsort label-8482 SELECT DISTINCT - 29 DIV col0 FROM tab2 AS cor0 ---- -4 0 skipif mysql # not compatible query I rowsort label-8482 SELECT DISTINCT - 29 / col0 FROM tab2 AS cor0 ---- -4 0 query I rowsort SELECT col2 * col2 + + col0 AS col1 FROM tab2 cor0 ---- 1523 736 754 query I rowsort SELECT + + col0 + 12 FROM tab1 AS cor0 ---- 15 76 92 onlyif mysql # use DIV operator for integer division query I rowsort label-8485 SELECT DISTINCT + cor0.col0 DIV col0 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-8485 SELECT DISTINCT + cor0.col0 / col0 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT - + col2 + + col2 - ( col1 ) FROM tab0 AS cor0 ---- -86 -91 -97 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 ---- 972 values hashing to deaaa983f771be544ffdc26f04a18657 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2 ---- 972 values hashing to ea0f747588ddf5869ee18a5e22d9f237 query I rowsort SELECT DISTINCT + - col1 * ( - ( col1 ) ) FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT + col0 + - 65 * col1 AS col2 FROM tab0 AS cor0 ---- -5566 -5826 -6270 query I rowsort SELECT DISTINCT col0 + 66 * - cor0.col0 + + cor0.col0 AS col0 FROM tab0 cor0 ---- -1536 -2240 -5696 onlyif mysql # use DIV operator for integer division query I rowsort label-8492 SELECT - - col0 DIV CAST( + 93 AS SIGNED ) FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8492 SELECT - - col0 / CAST ( + 93 AS INTEGER ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - + col1 * - cor0.col1 + col2 + - 80 FROM tab2 AS cor0 ---- 247 3427 908 onlyif mysql # use DIV operator for integer division query I rowsort label-8494 SELECT DISTINCT + - ( + col1 ) DIV + col0 + ( - 0 + + col0 ) * ( - col0 + col0 * 53 ) FROM tab2 AS cor0 ---- 2544 316368 324532 skipif mysql # not compatible query I rowsort label-8494 SELECT DISTINCT + - ( + col1 ) / + col0 + ( - 0 + + col0 ) * ( - col0 + col0 * 53 ) FROM tab2 AS cor0 ---- 2544 316368 324532 query I rowsort SELECT col2 + + 2 AS col2 FROM tab0 AS cor0 ---- 3 35 84 query I rowsort SELECT ALL 0 * - col0 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col0 * col1 * - col0 + col1 AS col0 FROM tab2 AS cor0 ---- 106114 1550 359015 query I rowsort SELECT - col0 * + ( col1 * - cor0.col2 ) + - 98 FROM tab1 AS cor0 ---- 36382 4114 99742 query I rowsort SELECT DISTINCT col0 * + ( col2 ) + col0 FROM tab1 cor0 ---- 165 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 col1 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT ALL - 87 FROM tab0 AS cor0 ---- -87 -87 -87 query I rowsort SELECT DISTINCT - col0 * col0 + + col0 FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT DISTINCT + - col0 * col2 - cor0.col2 * col2 * col0 FROM tab1 AS cor0 ---- -211584 -744960 -8910 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8504 SELECT ALL + CAST( NULL AS SIGNED ) * 63 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8504 SELECT ALL + CAST ( NULL AS INTEGER ) * 63 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 * - col0 + col1 + + ( - col2 ) AS col0 FROM tab1 AS cor0 ---- -37 -4143 -6483 query I rowsort SELECT ALL + - col2 * col2 + - col2 * 82 + col2 * 72 FROM tab1 cor0 ---- -10176 -3456 -3819 query I rowsort SELECT DISTINCT + ( cor0.col1 ) * + col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT - 79 * + col1 AS col0 FROM tab1 AS cor0 ---- -1027 -2054 -790 query I rowsort SELECT ALL col0 + col2 * 11 AS col1 FROM tab2 AS cor0 ---- 304 364 497 query I rowsort SELECT ALL col0 - col2 AS col1 FROM tab1 cor0 ---- -16 -51 7 query I rowsort SELECT - + 84 AS col2 FROM tab0 AS cor0 ---- -84 -84 -84 query I rowsort SELECT DISTINCT - - col0 * + col2 + + col2 AS col2 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT + ( cor0.col0 ) + 49 + + cor0.col2 FROM tab1 AS cor0 ---- 106 170 225 query I rowsort SELECT - 57 * + col0 AS col1 FROM tab2 AS cor0 ---- -399 -4446 -4503 query I rowsort SELECT 53 * - col1 * ( 35 ) + - col1 + 59 FROM tab1 AS cor0 ---- -18501 -24069 -48197 query I rowsort SELECT - 74 * col2 + col0 AS col1 FROM tab0 AS cor0 ---- -2418 -39 -5979 query I rowsort SELECT + 17 + col1 * col2 AS col0 FROM tab1 AS cor0 ---- 1265 1421 587 query I rowsort SELECT + col2 * + 4 FROM tab0 AS cor0 ---- 132 328 4 query I rowsort SELECT + col2 * 51 + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 2780 2917 4909 query I rowsort SELECT + col0 + + cor0.col2 * - col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT DISTINCT + ( + ( + tab0.col2 ) ) FROM tab0, tab2 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL cor1.col1 * ( + 85 * cor0.col0 + ( 7 ) ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 8b6a84b1620cd91a52769a646cca0424 query I rowsort SELECT ALL + cor1.col0 + 11 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 401629b419f25352770f7ba1264b6293 query I rowsort SELECT ALL - - cor0.col1 * - col1 AS col1 FROM tab0 cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-8525 SELECT DISTINCT - - ( col0 ) + + col0 DIV ( - col0 * col1 ) FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-8525 SELECT DISTINCT - - ( col0 ) + + col0 / ( - col0 * col1 ) FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL - 52 * + col0 + col1 * col2 + + col0 * col2 FROM tab0 AS cor0 ---- -1688 10132 2382 query I rowsort SELECT ( + col2 ) AS col0 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT col1 * col0 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT ( 48 ) AS col2 FROM tab2 ---- 48 48 48 query I rowsort SELECT DISTINCT - col0 * - col2 + + col1 AS col2 FROM tab1 ---- 188 3658 7693 onlyif mysql # use DIV operator for integer division query I rowsort label-8531 SELECT ALL - col2 DIV tab0.col1 + - col0 AS col2 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-8531 SELECT ALL - col2 / tab0.col1 + - col0 AS col2 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT DISTINCT + tab1.col0 * col1 + col2 * + col0 FROM tab1 ---- 240 4288 8720 query I rowsort SELECT col0 * - col0 * col2 FROM tab1 ---- -233472 -486 -614400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * + col0 col2 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT ALL - col0 + + col1 * + col2 + col0 AS col2 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT - col0 / - col0 + col2 NOT IN ( col1 ) ---- query I rowsort SELECT DISTINCT + col2 * col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 ) ---- query I rowsort SELECT DISTINCT tab0.col0 * + col0 AS col1 FROM tab0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT col0 - - col0 AS col2 FROM tab1 ---- 128 160 6 query I rowsort SELECT col2 - col0 * col0 FROM tab1 ---- -4039 -6304 45 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) IN ( col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT col1 AS col2 FROM tab1 WHERE - col0 IN ( col2 * col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + col0 col2 FROM tab1 ---- 121 176 57 query I rowsort SELECT tab2.col0 * col0 - col1 FROM tab2 ---- 18 6025 6224 query I rowsort SELECT DISTINCT col1 * col0 * - col2 + tab2.col1 AS col1 FROM tab2 ---- -119593 -51017 -5828 query I rowsort SELECT ALL - col0 * col1 + col2 * - col2 AS col2 FROM tab1 ---- -10256 -2994 -3889 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + col2 IN ( - col0 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT ( + col2 ) + - ( - col2 ) * col2 FROM tab0 AS cor0 ---- 1122 2 6806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 + - col1 * + cor0.col1 col0 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT ALL - cor0.col1 * + col0 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL tab0.col1 + col2 + col1 FROM tab0 ---- 195 205 264 onlyif mysql # use DIV operator for integer division query I rowsort label-8552 SELECT tab0.col0 DIV + tab0.col0 + + col1 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-8552 SELECT tab0.col0 / + tab0.col0 + + col1 FROM tab0 ---- 87 92 98 query I rowsort SELECT col0 FROM tab2 WHERE NOT NULL IN ( col0 + + tab2.col0 * + tab2.col2 * - col0 ) ---- query I rowsort SELECT ALL col1 * - col1 AS col0 FROM tab0 WHERE - col1 - col2 NOT BETWEEN NULL AND ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8555 SELECT DISTINCT col1 DIV + tab1.col2 FROM tab1 ---- 0 skipif mysql # not compatible query I rowsort label-8555 SELECT DISTINCT col1 / + tab1.col2 FROM tab1 ---- 0 query I rowsort SELECT - tab2.col0 * - col0 + tab2.col1 * - col1 + col0 FROM tab2 ---- -905 2681 6031 onlyif mysql # use DIV operator for integer division query I rowsort label-8557 SELECT ALL + col1 DIV + tab2.col1 col2 FROM tab2 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8557 SELECT ALL + col1 / + tab2.col1 col2 FROM tab2 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-8558 SELECT DISTINCT - col2 DIV + col1 FROM tab2 ---- -2 0 skipif mysql # not compatible query I rowsort label-8558 SELECT DISTINCT - col2 / + col1 FROM tab2 ---- -2 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8559 SELECT DISTINCT + col0 * - col0 DIV - col0 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-8559 SELECT DISTINCT + col0 * - col0 / - col0 FROM tab1 ---- 3 64 80 query I rowsort SELECT ALL - col2 * - col2 * col1 AS col2 FROM tab1 AS cor0 ---- 119808 32490 75816 query III rowsort SELECT ALL * FROM tab1 WHERE NOT col1 IN ( + col2 + - col0 * col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d onlyif mysql # use DIV operator for integer division query I rowsort label-8562 SELECT DISTINCT + col2 DIV col2 + col2 col2 FROM tab1 ---- 55 58 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8562 SELECT DISTINCT + col2 / col2 + col2 col2 FROM tab1 ---- 55 58 97 query I rowsort SELECT - col0 - col1 FROM tab2 WHERE NOT col0 IN ( col1 ) ---- -137 -38 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-8564 SELECT DISTINCT - tab1.col1 DIV - col0 + + tab1.col1 FROM tab1 ---- 10 13 34 skipif mysql # not compatible query I rowsort label-8564 SELECT DISTINCT - tab1.col1 / - col0 + + tab1.col1 FROM tab1 ---- 10 13 34 query I rowsort SELECT cor0.col1 FROM tab0 AS cor0 WHERE NULL <> NULL ---- query I rowsort SELECT + 37 FROM tab0, tab1 AS cor0 ---- 9 values hashing to a10b03e72860b949bdff53827700a9a8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 5 * 32 col0 FROM tab1 AS cor0 ---- 160 160 160 query I rowsort SELECT DISTINCT col1 * - col1 AS col2 FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT 98 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2 query I rowsort SELECT ALL - col0 * - 27 * col0 FROM tab0 AS cor0 ---- 15552 213867 33075 query I rowsort SELECT ALL - col2 * 6 FROM tab2 AS cor0 ---- -156 -162 -228 query I rowsort SELECT + col0 * - 1 + col0 FROM tab1 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8573 SELECT - CAST( NULL AS SIGNED ) * 8 + + col0 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8573 SELECT - CAST ( NULL AS INTEGER ) * 8 + + col0 AS col1 FROM tab2 ---- NULL NULL NULL query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab1, tab2 AS cor0, tab2 cor1 ---- 972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859 query I rowsort SELECT ALL - 48 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 2558735eaa258a08592aef9d33020c18 query I rowsort SELECT DISTINCT 99 * + cor0.col1 FROM tab2 cor0 ---- 1683 3069 5841 query I rowsort SELECT DISTINCT - col1 + 29 * - col0 FROM tab2 AS cor0 ---- -2308 -2321 -234 query I rowsort SELECT - + col1 * 22 * col0 AS col2 FROM tab1 cor0 ---- -14080 -1716 -22880 query I rowsort SELECT - - 13 * col0 FROM tab1 AS cor0 ---- 1040 39 832 query I rowsort SELECT DISTINCT ( 54 ) * col0 AS col2 FROM tab0 cor0 ---- 1296 1890 4806 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8581 SELECT ALL + CAST( col0 AS SIGNED ) * col0 FROM tab1 ---- 4096 6400 9 skipif mysql # not compatible query I rowsort label-8581 SELECT ALL + CAST ( col0 AS INTEGER ) * col0 FROM tab1 ---- 4096 6400 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8582 SELECT + + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8582 SELECT + + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0 ---- NULL NULL NULL query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab0 AS cor2 ---- 972 values hashing to d522b52b67b20888d3544d25cb98f232 query I rowsort SELECT - col2 + + cor0.col1 * + col0 * col1 AS col1 FROM tab0 cor0 ---- 177471 329314 736927 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8585 SELECT DISTINCT + CAST( ( - col1 ) AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-8585 SELECT DISTINCT + CAST ( ( - col1 ) AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL + 98 * - col1 * + col0 FROM tab1 AS cor0 ---- -101920 -62720 -7644 query I rowsort SELECT col0 + col1 * ( ( - tab2.col2 ) ) + col0 AS col0 FROM tab2 ---- -1378 -488 -823 query I rowsort SELECT ALL + - 94 AS col2 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8589 SELECT - 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-8589 SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT col2 + + col1 * col0 FROM tab0 ---- 2097 3396 8181 onlyif mysql # use DIV operator for integer division query I rowsort label-8591 SELECT DISTINCT + tab0.col0 * col0 + col0 DIV 21 FROM tab0 ---- 1226 577 7925 skipif mysql # not compatible query I rowsort label-8591 SELECT DISTINCT + tab0.col0 * col0 + col0 / 21 FROM tab0 ---- 1226 577 7925 query I rowsort SELECT DISTINCT 39 * col0 + col1 + - col2 AS col2 FROM tab1 ---- 2449 3037 89 query I rowsort SELECT 18 * + col0 + col1 * col0 FROM tab0 ---- 2496 4025 9701 query I rowsort SELECT - cor0.col2 * col0 + - col1 * + col1 + col0 AS col2 FROM tab2 AS cor0 ---- -1143 -3212 -5431 query I rowsort SELECT + cor0.col0 * + cor0.col0 + col2 AS col1 FROM tab1 AS cor0 ---- 4153 63 6496 onlyif mysql # use DIV operator for integer division query I rowsort label-8596 SELECT ALL - - col0 DIV cor0.col1 FROM tab1 AS cor0 ---- 0 6 6 skipif mysql # not compatible query I rowsort label-8596 SELECT ALL - - col0 / cor0.col1 FROM tab1 AS cor0 ---- 0 6 6 query I rowsort SELECT - + col0 * + 59 + - col0 + + col2 FROM tab0 AS cor0 ---- -1407 -2099 -5258 query I rowsort SELECT ALL + - col0 * ( col2 ) FROM tab0 cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-8599 SELECT DISTINCT + - col0 + cor0.col1 DIV + col0 FROM tab0 AS cor0 ---- -21 -33 -88 skipif mysql # not compatible query I rowsort label-8599 SELECT DISTINCT + - col0 + cor0.col1 / + col0 FROM tab0 AS cor0 ---- -21 -33 -88 query I rowsort SELECT DISTINCT + col2 * 89 FROM tab2 AS cor0 ---- 2314 2403 3382 query I rowsort SELECT ALL - + col0 * + col0 AS col1 FROM tab0 cor0 ---- -1225 -576 -7921 onlyif mysql # use DIV operator for integer division query I rowsort label-8602 SELECT + + col0 + col1 DIV col0 AS col1 FROM tab2 AS cor0 ---- 11 78 79 skipif mysql # not compatible query I rowsort label-8602 SELECT + + col0 + col1 / col0 AS col1 FROM tab2 AS cor0 ---- 11 78 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8603 SELECT DISTINCT + col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-8603 SELECT DISTINCT + col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT - - cor0.col1 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8605 SELECT DISTINCT - col0 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-8605 SELECT DISTINCT - col0 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL + + col0 * ( col1 + + col2 ) AS col2 FROM tab1 AS cor0 ---- 240 4288 8720 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8607 SELECT ALL + col2 * CAST( NULL AS SIGNED ) * - 85 + - col2 * 54 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8607 SELECT ALL + col2 * CAST ( NULL AS INTEGER ) * - 85 + - col2 * 54 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - ( - tab2.col0 ) AS col2 FROM tab2 ---- 7 78 79 query I rowsort SELECT ALL ( 14 ) + col1 FROM tab0 AS cor0 ---- 100 105 111 onlyif mysql # use DIV operator for integer division query I rowsort label-8610 SELECT DISTINCT + col0 DIV - 11 + - col2 AS col0 FROM tab2 AS cor0 ---- -27 -33 -45 skipif mysql # not compatible query I rowsort label-8610 SELECT DISTINCT + col0 / - 11 + - col2 AS col0 FROM tab2 AS cor0 ---- -27 -33 -45 query I rowsort SELECT - ( 4 ) AS col0 FROM tab1 AS cor0 ---- -4 -4 -4 query I rowsort SELECT + col0 * col1 + + cor0.col1 FROM tab2 AS cor0 ---- 1360 248 4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 query I rowsort SELECT ALL + ( - col0 ) AS col2 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT DISTINCT ( 60 ) FROM tab2 ---- 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * 88 * tab0.col0 col2 FROM tab0 ---- 107800 50688 697048 query I rowsort SELECT + 32 AS col2 FROM tab2 AS cor0 ---- 32 32 32 query I rowsort SELECT DISTINCT - col1 + 50 * + col2 FROM tab1 AS cor0 ---- 2674 2840 4787 query I rowsort SELECT ALL + ( - 45 ) AS col1 FROM tab0 ---- -45 -45 -45 query I rowsort SELECT - 52 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 9500afe5646d620d5e8943351a29d082 onlyif mysql # use DIV operator for integer division query I rowsort label-8621 SELECT ALL col2 * col2 + - ( col0 + col2 ) DIV + col1 FROM tab2 ---- 1438 675 728 skipif mysql # not compatible query I rowsort label-8621 SELECT ALL col2 * col2 + - ( col0 + col2 ) / + col1 FROM tab2 ---- 1438 675 728 query I rowsort SELECT + - col2 + - col2 AS col2 FROM tab1 AS cor0 ---- -108 -114 -192 query I rowsort SELECT + cor0.col0 + + col0 FROM tab1 cor0 ---- 128 160 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * - cor0.col0 + col2 col1 FROM tab1 cor0 ---- -108 -3591 -7584 query I rowsort SELECT 94 AS col0 FROM tab0 ---- 94 94 94 query I rowsort SELECT 58 * tab1.col2 + + col1 - col2 FROM tab1 ---- 3104 3259 5485 query I rowsort SELECT DISTINCT + col1 + col1 * col1 FROM tab2 ---- 306 3540 992 query I rowsort SELECT DISTINCT col0 + - col2 + + tab0.col2 * col1 AS col1 FROM tab0 ---- 131 2829 7469 query I rowsort SELECT DISTINCT ( + col2 ) * col0 + ( - col2 ) + col2 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT + ( - col0 ) + - col1 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT 26 + col0 + - ( col2 ) AS col1 FROM tab0 ---- 17 33 60 query I rowsort SELECT 15 * col2 FROM tab0 ---- 1230 15 495 query I rowsort SELECT + + 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 query I rowsort SELECT ALL + col1 * - 80 FROM tab2 AS cor0 ---- -1360 -2480 -4720 query I rowsort SELECT - - col0 * 61 + + col2 FROM tab2 AS cor0 ---- 454 4784 4857 query I rowsort SELECT cor0.col2 * col0 * ( - col2 ) + + col2 + + col1 FROM tab0 AS cor0 ---- -26017 -598263 63 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8637 SELECT ALL + - col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8637 SELECT ALL + - col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 * - col1 + + col2 AS col0 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT ALL col1 * ( col1 ) FROM tab1 AS cor0 ---- 100 169 676 query III rowsort SELECT * FROM tab1 WHERE NOT - col0 IN ( - col1 * + col2 ) AND NOT - col1 IN ( + col0 * col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT tab1.col1 * + tab1.col1 * col1 AS col2 FROM tab1 ---- 1000 17576 2197 query I rowsort SELECT col1 * + col2 * col1 AS col2 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT + col2 * - col2 * col1 FROM tab1 ---- -119808 -32490 -75816 query I rowsort SELECT - col1 + - col2 * col0 AS col1 FROM tab2 cor0 ---- -2087 -220 -3019 query I rowsort SELECT DISTINCT col1 * col2 * col2 - col0 FROM tab1 ---- 119728 32426 75813 query I rowsort SELECT + col0 + col1 + col2 FROM tab1 AS cor0 ---- 131 189 83 query I rowsort SELECT + col0 + + col0 * + col2 + - col1 FROM tab0 AS cor0 ---- -27 7296 730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * col2 col0 FROM tab2 cor0 ---- 1444 676 729 query I rowsort SELECT DISTINCT - + cor0.col0 + - col0 * + col0 + col2 FROM tab1 AS cor0 ---- -4103 -6384 42 query I rowsort SELECT DISTINCT + col0 * - col2 + - col1 * + col2 + col0 FROM tab2 AS cor0 ---- -1019 -3484 -3569 query I rowsort SELECT DISTINCT - col2 * col2 * + col1 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -611793 -93568 0 query I rowsort SELECT ALL - col2 * col1 + + col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT DISTINCT 90 * + col1 FROM tab0 ---- 7740 8190 8730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( cor0.col1 ) col0 FROM tab2 AS cor0 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-8655 SELECT + + 26 DIV - col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8655 SELECT + + 26 / - col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - 99 + col2 AS col1 FROM tab0 AS cor0 ---- -17 -66 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col2 col1 FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT + - col2 * - col0 + + col0 + cor0.col2 FROM tab0 AS cor0 ---- 71 7469 849 query I rowsort SELECT - col0 + - col0 * col1 * + col0 + col2 FROM tab1 cor0 ---- -183 -40967 -83184 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + + col2 col1 FROM tab0 AS cor0 ---- 164 2 66 onlyif mysql # use DIV operator for integer division query I rowsort label-8661 SELECT + col2 + col1 + col1 * cor0.col1 DIV - col1 AS col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-8661 SELECT + col2 + col1 + col1 * cor0.col1 / - col1 AS col2 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT ALL + + cor0.col0 - col1 * + 39 FROM tab0 AS cor0 ---- -3330 -3460 -3748 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - col1 ) col1 FROM tab1 AS cor0 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8665 SELECT ( - col0 ) * - CAST( NULL AS SIGNED ) + - 93 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-8665 SELECT ( - col0 ) * - CAST ( NULL AS INTEGER ) + - 93 col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col0 + + col0 AS col2 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT ALL - col1 * col2 + 46 AS col2 FROM tab2 AS cor0 ---- -1488 -600 -791 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col2 * 28 col0 FROM tab2 cor0 ---- 5292 56784 84056 query I rowsort SELECT ALL + col2 * 81 AS col2 FROM tab2 AS cor0 ---- 2106 2187 3078 query I rowsort SELECT ALL + + col2 + - ( + col2 ) FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT + 15 * col1 FROM tab0 AS cor0 ---- 1290 1365 1455 query I rowsort SELECT - col1 * ( + col1 ) FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT ALL + 34 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT col1 * + 66 + + col0 FROM tab1 AS cor0 ---- 1719 724 938 query I rowsort SELECT DISTINCT - ( - 1 ) AS col0 FROM tab1, tab2 AS cor0 ---- 1 query I rowsort SELECT 47 * + col0 + - col1 * col2 * + 16 FROM tab2 AS cor0 ---- -13063 -20878 -6623 onlyif mysql # use DIV operator for integer division query I rowsort label-8677 SELECT ALL + cor0.col0 DIV + col0 AS col0 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8677 SELECT ALL + cor0.col0 / + col0 AS col0 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - 0 + - col2 AS col1 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT + col1 + + col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT - - col2 * 37 + col2 AS col0 FROM tab1 AS cor0 ---- 2052 2166 3648 query I rowsort SELECT col2 * 73 FROM tab2 ---- 1898 1971 2774 query I rowsort SELECT DISTINCT + col1 * + col2 + ( col1 ) + - col0 FROM tab2 AS cor0 ---- 1515 584 861 query I rowsort SELECT DISTINCT + ( - col0 ) + ( + cor0.col2 ) AS col1 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT ALL + + 61 AS col1 FROM tab0 AS cor0 ---- 61 61 61 query I rowsort SELECT DISTINCT cor0.col1 * + col1 AS col1 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT tab0.col1 - col2 FROM tab0 ---- 53 9 96 query I rowsort SELECT 1 AS col0 FROM tab1 ---- 1 1 1 query I rowsort SELECT ALL 54 FROM tab2, tab2 AS cor0 ---- 9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09 onlyif mysql # use DIV operator for integer division query I rowsort label-8689 SELECT - col1 * col0 + col1 DIV - 10 FROM tab2 ---- -1344 -220 -4607 skipif mysql # not compatible query I rowsort label-8689 SELECT - col1 * col0 + col1 / - 10 FROM tab2 ---- -1344 -220 -4607 query I rowsort SELECT DISTINCT - 87 + ( col0 ) AS col1 FROM tab0 ---- -52 -63 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col2 ) + tab2.col2 * 90 * col1 col1 FROM tab2 ---- 138086 58178 75357 onlyif mysql # use DIV operator for integer division query I rowsort label-8692 SELECT ALL - col1 + + col2 DIV + col0 AS col0 FROM tab1 AS cor0 ---- -10 -12 -8 skipif mysql # not compatible query I rowsort label-8692 SELECT ALL - col1 + + col2 / + col0 AS col0 FROM tab1 AS cor0 ---- -10 -12 -8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8693 SELECT ALL + + col0 * col2 + CAST( ( - col2 ) AS SIGNED ) * - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8693 SELECT ALL + + col0 * col2 + CAST ( ( - col2 ) AS INTEGER ) * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + + col2 * col0 + ( - col1 ) FROM tab1 cor0 ---- 136 3638 7667 query I rowsort SELECT col0 + col2 * ( col1 * col0 ) FROM tab2 cor0 ---- 119730 51113 5866 onlyif mysql # use DIV operator for integer division query I rowsort label-8696 SELECT DISTINCT + col2 DIV cor0.col2 + col0 - + 8 col2 FROM tab0 AS cor0 ---- 17 28 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8696 SELECT DISTINCT + col2 / cor0.col2 + col0 - + 8 col2 FROM tab0 AS cor0 ---- 17 28 82 query I rowsort SELECT ALL + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 onlyif mysql # use DIV operator for integer division query I rowsort label-8698 SELECT DISTINCT 39 + + col2 + - col2 DIV tab0.col1 FROM tab0 ---- 121 40 72 skipif mysql # not compatible query I rowsort label-8698 SELECT DISTINCT 39 + + col2 + - col2 / tab0.col1 FROM tab0 ---- 121 40 72 query I rowsort SELECT + tab2.col2 * col2 + + 96 FROM tab2 ---- 1540 772 825 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col2 * + col2 + + col1 col1 FROM tab1 ---- 119821 32500 75842 onlyif mysql # use DIV operator for integer division query I rowsort label-8701 SELECT ALL 63 DIV cor0.col0 AS col1 FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to a617e42325994a7c0300606923007f9b skipif mysql # not compatible query I rowsort label-8701 SELECT ALL 63 / cor0.col0 AS col1 FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to a617e42325994a7c0300606923007f9b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 70 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to c76157a7a7ec18de56823b2058b49f32 query I rowsort SELECT ALL - - 13 + + col2 * col2 FROM tab0 AS cor0 ---- 1102 14 6737 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8704 SELECT ALL col1 - CAST( col0 AS SIGNED ) * + col2 * + 84 AS col1 FROM tab0 ---- -2843 -612941 -66442 skipif mysql # not compatible query I rowsort label-8704 SELECT ALL col1 - CAST ( col0 AS INTEGER ) * + col2 * + 84 AS col1 FROM tab0 ---- -2843 -612941 -66442 query I rowsort SELECT col0 + - 16 FROM tab0 AS cor0 ---- 19 73 8 query I rowsort SELECT col2 + - col0 * - 98 * col2 + - 34 * col2 FROM tab0 ---- 3397 712498 76527 query I rowsort SELECT - col2 + col1 + + tab2.col0 FROM tab2 ---- 11 111 58 query I rowsort SELECT + col1 + col0 * col0 FROM tab1 cor0 ---- 35 4106 6413 query I rowsort SELECT ALL + + 59 * + 0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT col0 + ( - col1 ) + cor0.col0 * col0 AS col0 FROM tab0 AS cor0 ---- 1163 514 7919 query I rowsort SELECT DISTINCT - + ( + 10 ) * col2 AS col0 FROM tab2 AS cor0 ---- -260 -270 -380 query I rowsort SELECT DISTINCT 92 AS col2 FROM tab0 AS cor0 ---- 92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 55 + - 86 * col0 * + 15 col0 FROM tab1 AS cor0 ---- -103255 -3925 -82615 onlyif mysql # use DIV operator for integer division query I rowsort label-8714 SELECT - 58 * col2 DIV col2 - col2 AS col1 FROM tab1 AS cor0 ---- -112 -115 -154 skipif mysql # not compatible query I rowsort label-8714 SELECT - 58 * col2 / col2 - col2 AS col1 FROM tab1 AS cor0 ---- -112 -115 -154 query I rowsort SELECT DISTINCT - + 67 * - ( col2 ) + + col1 AS col1 FROM tab0 AS cor0 ---- 164 2297 5585 query I rowsort SELECT ALL - - col2 + + 48 AS col1 FROM tab0 AS cor0 ---- 130 49 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8717 SELECT - + CAST( NULL AS SIGNED ) + - col0 * col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8717 SELECT - + CAST ( NULL AS INTEGER ) + - col0 * col0 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8718 SELECT DISTINCT 71 + 14 DIV col0 AS col1 FROM tab1 AS cor0 ---- 71 75 skipif mysql # not compatible query I rowsort label-8718 SELECT DISTINCT 71 + 14 / col0 AS col1 FROM tab1 AS cor0 ---- 71 75 query I rowsort SELECT - - ( + 25 ) - col1 FROM tab0 AS cor0 ---- -61 -66 -72 query I rowsort SELECT + 89 * + 76 AS col2 FROM tab0 AS cor0 ---- 6764 6764 6764 query I rowsort SELECT ALL - 33 AS col0 FROM tab1 AS cor0 ---- -33 -33 -33 query I rowsort SELECT + + 15 * + 43 FROM tab0 AS cor0 ---- 645 645 645 onlyif mysql # use DIV operator for integer division query I rowsort label-8723 SELECT ALL - 43 + col1 DIV col0 AS col1 FROM tab0 AS cor0 ---- -40 -41 -42 skipif mysql # not compatible query I rowsort label-8723 SELECT ALL - 43 + col1 / col0 AS col1 FROM tab0 AS cor0 ---- -40 -41 -42 query I rowsort SELECT - - col0 * - 29 AS col1 FROM tab1 AS cor0 ---- -1856 -2320 -87 query I rowsort SELECT DISTINCT - - ( + col1 ) * - col1 FROM tab0 cor0 ---- -7396 -8281 -9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8726 SELECT DISTINCT - - CAST( + col2 AS SIGNED ) * - cor0.col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-8726 SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * - cor0.col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - ( col2 ) * - cor0.col1 + - col1 AS col2 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT - 43 - cor0.col0 AS col0 FROM tab0 AS cor0 ---- -132 -67 -78 query I rowsort SELECT DISTINCT + col1 * 39 + - col0 FROM tab1 AS cor0 ---- 1011 326 427 onlyif mysql # use DIV operator for integer division query I rowsort label-8730 SELECT ALL col1 DIV + ( - 9 ) AS col1 FROM tab1 AS cor0 ---- -1 -1 -2 skipif mysql # not compatible query I rowsort label-8730 SELECT ALL col1 / + ( - 9 ) AS col1 FROM tab1 AS cor0 ---- -1 -1 -2 onlyif mysql # use DIV operator for integer division query I rowsort label-8731 SELECT ALL - col2 DIV 76 FROM tab1 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-8731 SELECT ALL - col2 / 76 FROM tab1 ---- -1 0 0 query I rowsort SELECT cor0.col2 + - col0 * col0 AS col2 FROM tab1 AS cor0 ---- -4039 -6304 45 query I rowsort SELECT col0 * - 83 + - col1 * + col2 AS col1 FROM tab2 AS cor0 ---- -1418 -7203 -8008 onlyif mysql # use DIV operator for integer division query I rowsort label-8734 SELECT + 8 DIV - col2 col1 FROM tab0 AS cor0 ---- -8 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8734 SELECT + 8 / - col2 col1 FROM tab0 AS cor0 ---- -8 0 0 query I rowsort SELECT col2 * 57 + + col0 FROM tab0 AS cor0 ---- 1905 4763 92 query I rowsort SELECT + col1 + 58 FROM tab2 AS cor0 ---- 117 75 89 onlyif mysql # use DIV operator for integer division query I rowsort label-8737 SELECT + ( + col1 ) + col2 DIV col0 col1 FROM tab0 AS cor0 ---- 87 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8737 SELECT + ( + col1 ) + col2 / col0 col1 FROM tab0 AS cor0 ---- 87 91 97 query I rowsort SELECT col2 * ( - 53 ) FROM tab2 ---- -1378 -1431 -2014 onlyif mysql # use DIV operator for integer division query I rowsort label-8739 SELECT ALL - col1 DIV ( col0 ) FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-8739 SELECT ALL - col1 / ( col0 ) FROM tab2 ---- -4 0 0 query I rowsort SELECT - col2 + - col1 * + 21 FROM tab0 ---- -1839 -1993 -2038 query I rowsort SELECT ALL ( + 29 ) AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 query I rowsort SELECT + col0 - col1 * + cor0.col1 FROM tab1 cor0 ---- -36 -673 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * col1 col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-8744 SELECT ALL - 63 - - col1 DIV + col1 FROM tab1 AS cor0 ---- -62 -62 -62 skipif mysql # not compatible query I rowsort label-8744 SELECT ALL - 63 - - col1 / + col1 FROM tab1 AS cor0 ---- -62 -62 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-8745 SELECT + + col1 * col1 + + col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0 ---- 100 170 694 skipif mysql # not compatible query I rowsort label-8745 SELECT + + col1 * col1 + + col2 / cor0.col0 AS col1 FROM tab1 AS cor0 ---- 100 170 694 query I rowsort SELECT ALL - col2 * - col2 + ( col2 ) * col1 AS col2 FROM tab1 AS cor0 ---- 10464 3819 4320 onlyif mysql # use DIV operator for integer division query I rowsort label-8747 SELECT ALL + 67 + + cor0.col0 DIV cor0.col2 FROM tab0 AS cor0 ---- 102 67 68 skipif mysql # not compatible query I rowsort label-8747 SELECT ALL + 67 + + cor0.col0 / cor0.col2 FROM tab0 AS cor0 ---- 102 67 68 query I rowsort SELECT DISTINCT + col1 * - cor0.col1 + col2 AS col2 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT - col1 * cor0.col0 + 45 FROM tab1 AS cor0 ---- -33 -595 -995 query I rowsort SELECT DISTINCT col0 * - col1 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL - + 86 + col1 AS col0 FROM tab1 AS cor0 ---- -60 -73 -76 query I rowsort SELECT ALL - 42 * ( col0 ) FROM tab1 ---- -126 -2688 -3360 query I rowsort SELECT ALL 87 * - col1 FROM tab2 ---- -1479 -2697 -5133 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 18 + - col0 * + col2 col0 FROM tab2 ---- -171 -2010 -2984 query I rowsort SELECT ALL - + col0 * + col0 FROM tab2 cor0 ---- -49 -6084 -6241 query I rowsort SELECT ALL - 61 - col2 AS col0 FROM tab0 AS cor0 ---- -143 -62 -94 query I rowsort SELECT col0 * - cor0.col1 + + 37 * - col2 FROM tab1 AS cor0 ---- -2076 -2749 -4592 query I rowsort SELECT ALL - 59 FROM tab2 AS cor0 ---- -59 -59 -59 query I rowsort SELECT + 82 + col1 FROM tab1 ---- 108 92 95 onlyif mysql # use DIV operator for integer division query I rowsort label-8760 SELECT + col0 DIV - col2 FROM tab0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-8760 SELECT + col0 / - col2 FROM tab0 ---- -1 -35 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8761 SELECT col0 * - col0 DIV - col0 AS col2 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-8761 SELECT col0 * - col0 / - col0 AS col2 FROM tab1 ---- 3 64 80 query I rowsort SELECT + col2 * col1 + col0 FROM tab1 AS cor0 ---- 1328 1407 634 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col0 - ( + col1 + - 24 ) col2 FROM tab1 AS cor0 ---- -11 -4082 -6389 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + - col1 * - col2 col1 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT + cor0.col1 AS col1 FROM tab1, tab2 cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT DISTINCT 92 * - col0 FROM tab2 ---- -644 -7176 -7268 query I rowsort SELECT DISTINCT 20 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 20 onlyif mysql # use DIV operator for integer division query I rowsort label-8768 SELECT DISTINCT col0 DIV + col1 AS col2 FROM tab2 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-8768 SELECT DISTINCT col0 / + col1 AS col2 FROM tab2 ---- 0 1 4 query I rowsort SELECT 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 query I rowsort SELECT DISTINCT - col1 * 24 FROM tab2 ---- -1416 -408 -744 query I rowsort SELECT 18 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 903ac227935c1532300db45a8537c595 query I rowsort SELECT col1 - - ( + col0 ) * + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT - col1 * + col2 + cor0.col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT col0 - 98 AS col0 FROM tab0 AS cor0 ---- -63 -74 -9 query I rowsort SELECT - + col0 * + col1 + - 61 * col2 FROM tab1 AS cor0 ---- -3372 -4117 -6896 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col1 + + col1 * col2 col0 FROM tab2 AS cor0 ---- 1054 1989 6136 query I rowsort SELECT ALL - col0 * + 74 * col0 FROM tab2 ---- -3626 -450216 -461834 onlyif mysql # use DIV operator for integer division query I rowsort label-8778 SELECT DISTINCT + col1 + col0 * - col0 + col0 DIV 78 AS col0 FROM tab2 cor0 ---- -18 -6024 -6223 skipif mysql # not compatible query I rowsort label-8778 SELECT DISTINCT + col1 + col0 * - col0 + col0 / 78 AS col0 FROM tab2 cor0 ---- -18 -6024 -6223 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 89 col0 FROM tab2 AS cor0 ---- 89 89 89 query I rowsort SELECT ALL - 35 * cor0.col2 FROM tab0 AS cor0 ---- -1155 -2870 -35 query I rowsort SELECT ALL cor1.col2 - - cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to 0bfb8754a07bc9682424fdc2450a2e7a onlyif mysql # use DIV operator for integer division query I rowsort label-8782 SELECT - - 3 DIV col2 FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8782 SELECT - - 3 / col2 FROM tab1 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 17 col0 FROM tab1 AS cor0 ---- 17 onlyif mysql # use DIV operator for integer division query I rowsort label-8784 SELECT ALL - - ( + col2 ) DIV - cor0.col1 + ( - 94 ) AS col2 FROM tab1 AS cor0 ---- -101 -96 -99 skipif mysql # not compatible query I rowsort label-8784 SELECT ALL - - ( + col2 ) / - cor0.col1 + ( - 94 ) AS col2 FROM tab1 AS cor0 ---- -101 -96 -99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8785 SELECT + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8785 SELECT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 * ( col2 ) + - 3 FROM tab1 cor0 ---- 1245 1401 567 query I rowsort SELECT + col2 + 58 * 32 FROM tab1 ---- 1910 1913 1952 query I rowsort SELECT - col2 * - col1 * tab2.col1 AS col2 FROM tab2 ---- 10982 25947 90506 query I rowsort SELECT - col1 * 0 + col0 FROM tab2 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + - col1 * col2 col2 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT tab2.col2 + + ( + tab2.col2 ) + + col0 * 87 * col1 AS col1 FROM tab2 ---- 116917 18933 400426 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8792 SELECT + tab1.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8792 SELECT + tab1.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - col0 + + col2 + + col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL + ( + col0 ) * col2 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-8795 SELECT DISTINCT col2 + + col0 DIV col1 col1 FROM tab1 AS cor0 ---- 102 54 63 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8795 SELECT DISTINCT col2 + + col0 / col1 col1 FROM tab1 AS cor0 ---- 102 54 63 query I rowsort SELECT DISTINCT + 72 * + 57 FROM tab1 AS cor0 ---- 4104 onlyif mysql # use DIV operator for integer division query I rowsort label-8797 SELECT ALL ( col0 ) DIV col0 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8797 SELECT ALL ( col0 ) / col0 FROM tab2 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 27 col1 FROM tab2 AS cor0 ---- -27 -27 -27 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8799 SELECT CAST( NULL AS SIGNED ) * col2 * col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8799 SELECT CAST ( NULL AS INTEGER ) * col2 * col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * + col1 col1 FROM tab2 AS cor0 ---- -289 -3481 -961 onlyif mysql # use DIV operator for integer division query I rowsort label-8801 SELECT + col1 * - col2 - col0 DIV - tab1.col2 col2 FROM tab1 ---- -1248 -1404 -569 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8801 SELECT + col1 * - col2 - col0 / - tab1.col2 col2 FROM tab1 ---- -1248 -1404 -569 query I rowsort SELECT DISTINCT - col2 * tab0.col0 - 19 FROM tab0 ---- -54 -7317 -811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 92 * - col2 - col2 col0 FROM tab0 AS cor0 ---- 3003 7462 91 query I rowsort SELECT + - col2 + cor0.col1 * - col0 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT + 76 + col1 + - 2 AS col2 FROM tab0 AS cor0 ---- 160 165 171 query I rowsort SELECT + col1 * 24 + cor0.col2 * col0 + ( + col1 ) FROM tab1 AS cor0 ---- 3898 8005 812 onlyif mysql # use DIV operator for integer division query I rowsort label-8807 SELECT col2 + 60 DIV - 64 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-8807 SELECT col2 + 60 / - 64 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT col1 * + 48 AS col2 FROM tab0 AS cor0 ---- 4128 4368 4656 query I rowsort SELECT DISTINCT + + col1 * - col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col0 + col0 * col2 AS col0 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT DISTINCT - cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- -17 -31 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-8812 SELECT ( - col1 ) DIV + tab1.col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8812 SELECT ( - col1 ) / + tab1.col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT cor0.col0 + 88 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to af798f5ce37f7c19e18927772657aa97 query I rowsort SELECT - col2 + + ( - col2 ) * - col2 AS col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT + col0 + + 2 FROM tab0 AS cor0 ---- 26 37 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8816 SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + cor0.col0 + col0 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8816 SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + cor0.col0 + col0 AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT col2 * col1 + col1 AS col0 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT DISTINCT - col0 * ( 60 ) * cor0.col0 AS col2 FROM tab0 AS cor0 ---- -34560 -475260 -73500 query I rowsort SELECT ALL - cor0.col0 + + 0 + col1 AS col2 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT ALL - col2 + + col2 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 + ( + col2 ) AS col1 FROM tab1 cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT col1 - - 32 AS col2 FROM tab2 AS cor0 ---- 49 63 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8823 SELECT + col2 * CAST( NULL AS SIGNED ) - col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8823 SELECT + col2 * CAST ( NULL AS INTEGER ) - col1 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 * + 95 - - col1 FROM tab1 AS cor0 ---- 311 6090 7613 query I rowsort SELECT col1 - 51 AS col2 FROM tab2 AS cor0 ---- -20 -34 8 query I rowsort SELECT + + col0 + + col0 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT ALL col0 * ( col2 ) + - cor0.col0 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT DISTINCT col2 * + col0 + - col2 FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT ALL - col1 * - col1 + col1 + col1 * ( col1 + col2 * - 79 ) FROM tab1 AS cor0 ---- -109538 -44820 -98241 query I rowsort SELECT DISTINCT col2 + + col0 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - - col1 * + col1 * col0 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT col0 * - col2 + + col2 AS col1 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT - - col2 * + ( - col2 ) + - 32 + + col2 FROM tab0 AS cor0 ---- -1088 -32 -6674 query I rowsort SELECT 60 + - col1 + - col0 AS col2 FROM tab2 AS cor0 ---- -36 -77 22 query I rowsort SELECT DISTINCT + 85 FROM tab2 AS cor0 ---- 85 query I rowsort SELECT ALL - 23 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- 81 values hashing to c8c4f0bd925413f7f95df1d166aef9dd query I rowsort SELECT ALL - 84 FROM tab0 AS cor0 ---- -84 -84 -84 query I rowsort SELECT - 56 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6 query I rowsort SELECT ALL - tab1.col2 + ( col2 * + tab1.col2 ) FROM tab1 ---- 2862 3192 9120 query I rowsort SELECT - ( ( + cor2.col2 ) * - 1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2 ---- 81 values hashing to 9d355f1f2edc347a359dad00d2d3f886 query IIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2 ---- 972 values hashing to 617c9545df26d6d983e3967864e8e9e4 query I rowsort SELECT + tab0.col2 + - col0 + 8 AS col2 FROM tab0 ---- -26 1 17 query I rowsort SELECT ALL + ( + col0 ) AS col2 FROM tab2 cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-8844 SELECT ALL cor0.col0 DIV cor0.col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 14fcfa6c11198893073049d94262832c skipif mysql # not compatible query I rowsort label-8844 SELECT ALL cor0.col0 / cor0.col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 14fcfa6c11198893073049d94262832c query I rowsort SELECT DISTINCT + + col2 + + col2 AS col2 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT ALL ( - col2 + - col1 ) AS col0 FROM tab0 ---- -119 -173 -98 query I rowsort SELECT 12 - + col2 AS col0 FROM tab1 ---- -42 -45 -84 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8848 SELECT col1 * CAST( NULL AS SIGNED ) + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8848 SELECT col1 * CAST ( NULL AS INTEGER ) + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 - col0 * + col1 * - col0 AS col0 FROM tab0 ---- 118790 49512 720722 query I rowsort SELECT - 95 - - col0 FROM tab1 ---- -15 -31 -92 query I rowsort SELECT ALL - 67 * - col1 - + 37 AS col2 FROM tab2 ---- 1102 2040 3916 query I rowsort SELECT DISTINCT 95 * col2 AS col2 FROM tab0 ---- 3135 7790 95 query I rowsort SELECT ALL + - 61 * col2 AS col0 FROM tab0 AS cor0 ---- -2013 -5002 -61 onlyif mysql # use DIV operator for integer division query I rowsort label-8854 SELECT DISTINCT + col2 DIV + cor0.col1 - ( + col0 * + col1 ) AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort label-8854 SELECT DISTINCT + col2 / + cor0.col1 - ( + col0 * + col1 ) AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT 52 AS col1 FROM tab1 ---- 52 query I rowsort SELECT 79 * + col0 * - col2 + - col1 AS col2 FROM tab2 ---- -14962 -160271 -237175 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0 onlyif mysql # use DIV operator for integer division query I rowsort label-8858 SELECT - col0 * 86 DIV + col2 AS col0 FROM tab0 ---- -3010 -62 -93 skipif mysql # not compatible query I rowsort label-8858 SELECT - col0 * 86 / + col2 AS col0 FROM tab0 ---- -3010 -62 -93 query I rowsort SELECT DISTINCT - 40 + ( + col0 ) * + 52 FROM tab0 AS cor0 ---- 1208 1780 4588 query I rowsort SELECT + ( - col0 ) * col2 + 14 * ( col1 + + 24 ) AS col2 FROM tab1 AS cor0 ---- -3172 -7162 538 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8861 SELECT ALL - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-8861 SELECT ALL - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT ( col1 ) * col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT + col1 * col0 + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 104 1053 650 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8864 SELECT cor0.col1 + col1 * - CAST( + 20 AS SIGNED ) FROM tab1 AS cor0 ---- -190 -247 -494 skipif mysql # not compatible query I rowsort label-8864 SELECT cor0.col1 + col1 * - CAST ( + 20 AS INTEGER ) FROM tab1 AS cor0 ---- -190 -247 -494 query I rowsort SELECT - + ( 77 ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to 3a24155cb91ceff1e67bb51c07b72107 query I rowsort SELECT ALL - ( + 62 ) AS col2 FROM tab1, tab0, tab0 AS cor0, tab2 ---- 81 values hashing to 98946dcadb23f354040593c91d9c8559 onlyif mysql # use DIV operator for integer division query I rowsort label-8867 SELECT ALL col0 + + col0 + - col0 DIV + col0 AS col1 FROM tab0 AS cor0 ---- 177 47 69 skipif mysql # not compatible query I rowsort label-8867 SELECT ALL col0 + + col0 + - col0 / + col0 AS col1 FROM tab0 AS cor0 ---- 177 47 69 query I rowsort SELECT DISTINCT + - col1 + 27 FROM tab2 cor0 ---- -32 -4 10 query I rowsort SELECT DISTINCT + col2 * col1 + col1 FROM tab0 AS cor0 ---- 194 2924 7553 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + - 7 * 22 + cor0.col1 col2 FROM tab2 cor0 ---- -69 -96 -99 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab2 AS cor2 ---- 3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c onlyif mysql # use DIV operator for integer division query I rowsort label-8872 SELECT ALL + col1 DIV - col1 + cor0.col2 * 48 FROM tab2 AS cor0 ---- 1247 1295 1823 skipif mysql # not compatible query I rowsort label-8872 SELECT ALL + col1 / - col1 + cor0.col2 * 48 FROM tab2 AS cor0 ---- 1247 1295 1823 query I rowsort SELECT DISTINCT - ( - col1 ) + col1 * 76 AS col1 FROM tab0 AS cor0 ---- 6622 7007 7469 query I rowsort SELECT - ( col1 ) * - col0 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-8875 SELECT - ( col0 ) DIV col1 AS col0 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8875 SELECT - ( col0 ) / col1 AS col0 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8876 SELECT ALL + CAST( + col2 AS SIGNED ) * col2 FROM tab2 AS cor0 ---- 1444 676 729 skipif mysql # not compatible query I rowsort label-8876 SELECT ALL + CAST ( + col2 AS INTEGER ) * col2 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-8877 SELECT DISTINCT + - col0 * + col2 + col1 - - col2 * col1 DIV col1 FROM tab0 AS cor0 ---- -673 -7125 63 skipif mysql # not compatible query I rowsort label-8877 SELECT DISTINCT + - col0 * + col2 + col1 - - col2 * col1 / col1 FROM tab0 AS cor0 ---- -673 -7125 63 query I rowsort SELECT ALL + col0 + - col0 * col0 AS col1 FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT DISTINCT col2 * col1 * - ( - 76 * - col2 ) FROM tab1 AS cor0 ---- -2469240 -5762016 -9105408 onlyif mysql # use DIV operator for integer division query I rowsort label-8880 SELECT DISTINCT ( + col2 ) * col1 + col1 DIV - col1 AS col0 FROM tab0 AS cor0 ---- 2837 7461 96 skipif mysql # not compatible query I rowsort label-8880 SELECT DISTINCT ( + col2 ) * col1 + col1 / - col1 AS col0 FROM tab0 AS cor0 ---- 2837 7461 96 query I rowsort SELECT 72 AS col0 FROM tab0 ---- 72 72 72 query I rowsort SELECT 46 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 31818c9d4d325eb248735c97cb1dce39 query I rowsort SELECT + - col1 * ( 59 ) + - col2 AS col2 FROM tab2 AS cor0 ---- -1041 -1856 -3507 onlyif mysql # use DIV operator for integer division query I rowsort label-8884 SELECT - col1 + + col2 DIV - ( + col0 ) FROM tab2 AS cor0 ---- -17 -34 -59 skipif mysql # not compatible query I rowsort label-8884 SELECT - col1 + + col2 / - ( + col0 ) FROM tab2 AS cor0 ---- -17 -34 -59 query I rowsort SELECT DISTINCT + 6 AS col2 FROM tab1 ---- 6 query I rowsort SELECT + 35 FROM tab2, tab2 AS cor0 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 query I rowsort SELECT cor0.col1 * 70 FROM tab2 AS cor0 ---- 1190 2170 4130 query I rowsort SELECT + col0 + col0 + col0 AS col0 FROM tab1 AS cor0 ---- 192 240 9 query I rowsort SELECT DISTINCT 46 + col1 * cor0.col1 FROM tab0 cor0 ---- 7442 8327 9455 query I rowsort SELECT DISTINCT - col2 * + col2 + + col2 FROM tab2 AS cor0 ---- -1406 -650 -702 query I rowsort SELECT + + col2 * + col1 AS col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT ALL col1 * col1 - + col2 AS col0 FROM tab2 AS cor0 ---- 251 3455 934 query I rowsort SELECT + col2 * - col2 + - col2 AS col2 FROM tab1 AS cor0 ---- -2970 -3306 -9312 query I rowsort SELECT ALL + 67 * + col0 + - col2 AS col2 FROM tab1 AS cor0 ---- 147 4231 5264 onlyif mysql # use DIV operator for integer division query I rowsort label-8895 SELECT DISTINCT - + col2 - - col0 DIV cor0.col0 FROM tab1 AS cor0 ---- -53 -56 -95 skipif mysql # not compatible query I rowsort label-8895 SELECT DISTINCT - + col2 - - col0 / cor0.col0 FROM tab1 AS cor0 ---- -53 -56 -95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * - col1 col0 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT - + col2 * + col0 - - 53 AS col1 FROM tab1 cor0 ---- -109 -3595 -7627 query I rowsort SELECT ALL + 14 * - col2 + - col0 AS col0 FROM tab2 AS cor0 ---- -385 -442 -611 onlyif mysql # use DIV operator for integer division query I rowsort label-8899 SELECT + cor0.col2 DIV - col1 + + col1 * - col0 * + col0 AS col1 FROM tab2 AS cor0 ---- -106099 -1519 -358956 skipif mysql # not compatible query I rowsort label-8899 SELECT + cor0.col2 / - col1 + + col1 * - col0 * + col0 AS col1 FROM tab2 AS cor0 ---- -106099 -1519 -358956 query I rowsort SELECT ALL + - 14 - + col2 * ( + col2 ) FROM tab2 AS cor0 ---- -1458 -690 -743 query I rowsort SELECT + - col1 + col2 * cor0.col1 * + col0 FROM tab1 cor0 ---- 36470 4186 99827 onlyif mysql # use DIV operator for integer division query I rowsort label-8902 SELECT ALL - col0 DIV - col0 AS col0 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8902 SELECT ALL - col0 / - col0 AS col0 FROM tab0 cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - + col1 * col2 + ( col2 ) AS col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT ALL ( col1 ) - + tab1.col1 * - 96 FROM tab1 ---- 1261 2522 970 query I rowsort SELECT ALL col1 - - tab2.col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT DISTINCT + tab1.col2 + + 0 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL 42 FROM tab2 ---- 42 42 42 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 61 col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 07149905a72bd87553381f34d19ed290 query I rowsort SELECT DISTINCT 19 + col1 * - col0 FROM tab0 ---- -2045 -3376 -8080 onlyif mysql # use DIV operator for integer division query I rowsort label-8910 SELECT tab0.col0 + col2 DIV - col2 AS col0 FROM tab0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-8910 SELECT tab0.col0 + col2 / - col2 AS col0 FROM tab0 ---- 23 34 88 query I rowsort SELECT col1 * col0 * + col0 - col0 AS col1 FROM tab0 ---- 118790 49512 720722 query I rowsort SELECT - col2 + - col0 FROM tab0 cor0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-8913 SELECT DISTINCT + 99 DIV cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1 3 5 skipif mysql # not compatible query I rowsort label-8913 SELECT DISTINCT + 99 / cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1 3 5 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to ced36882687f040e969c817b62d2e456 query I rowsort SELECT ALL - col0 * - tab1.col0 AS col2 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT ALL - cor0.col1 * 48 AS col2 FROM tab0, tab0 cor0 ---- 9 values hashing to b15203157f93b5a45d6ba24178c5f8ff onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8917 SELECT ALL - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-8917 SELECT ALL - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ALL cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT DISTINCT tab2.col2 * - tab2.col0 FROM tab2 ---- -189 -2028 -3002 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2 ---- 3645 values hashing to 78077727601c056ad0d4f4c11c8daffb query I rowsort SELECT + col2 * - 95 + - col1 FROM tab1 ---- -5156 -5425 -9133 query I rowsort SELECT - + cor0.col2 * col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # use DIV operator for integer division query I rowsort label-8923 SELECT col0 DIV - col0 - cor0.col1 * - cor0.col1 FROM tab2 AS cor0 ---- 288 3480 960 skipif mysql # not compatible query I rowsort label-8923 SELECT col0 / - col0 - cor0.col1 * - cor0.col1 FROM tab2 AS cor0 ---- 288 3480 960 query I rowsort SELECT - 0 + 91 - col2 AS col0 FROM tab0 ---- 58 9 90 query I rowsort SELECT - col1 + + cor0.col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT 84 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- 84 query I rowsort SELECT + col2 + cor0.col1 - + cor0.col1 FROM tab1 AS cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 75 col2 FROM tab0, tab2 cor0 CROSS JOIN tab2 AS cor1 ---- -75 query I rowsort SELECT 60 * + ( tab0.col0 ) + + 18 FROM tab0 ---- 1458 2118 5358 query I rowsort SELECT DISTINCT + + ( col1 ) FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT ALL - cor0.col1 + col2 + col0 FROM tab0 AS cor0 ---- -29 -61 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8932 SELECT + CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8932 SELECT + CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - col2 + + col2 + col0 FROM tab1 AS cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 col1 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT + col2 * + cor0.col0 AS col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - 21 FROM tab0 AS cor0 ---- -21 onlyif mysql # use DIV operator for integer division query I rowsort label-8937 SELECT cor0.col0 DIV col0 + col0 AS col2 FROM tab0 AS cor0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-8937 SELECT cor0.col0 / col0 + col0 AS col2 FROM tab0 AS cor0 ---- 25 36 90 query I rowsort SELECT - col2 * col0 * - tab1.col2 AS col1 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT ALL col0 + col2 * - col2 AS col2 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT - - col2 - col2 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 * - col0 * col2 FROM tab0 AS cor0 ---- -1225 -19008 -649522 query I rowsort SELECT ALL + col2 + + col1 AS col1 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT ALL 17 * col1 AS col1 FROM tab0 AS cor0 ---- 1462 1547 1649 onlyif mysql # use DIV operator for integer division query I rowsort label-8944 SELECT + + col2 DIV col1 FROM tab2 AS cor0 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-8944 SELECT + + col2 / col1 FROM tab2 AS cor0 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * cor0.col2 col2 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8946 SELECT ALL col0 + CAST( - 94 * - cor0.col1 AS SIGNED ) + + 36 AS col0 FROM tab1 AS cor0 ---- 1040 1338 2483 skipif mysql # not compatible query I rowsort label-8946 SELECT ALL col0 + CAST ( - 94 * - cor0.col1 AS INTEGER ) + + 36 AS col0 FROM tab1 AS cor0 ---- 1040 1338 2483 query I rowsort SELECT DISTINCT + col2 * + cor0.col2 - col2 AS col2 FROM tab1 AS cor0 ---- 2862 3192 9120 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - col1 * col1 col0 FROM tab2 AS cor0 ---- -272 -3422 -930 query I rowsort SELECT ALL cor0.col0 * + col0 * + 15 - + col2 FROM tab2 cor0 ---- 708 91234 93577 query I rowsort SELECT DISTINCT - col1 + 44 AS col1 FROM tab2 AS cor0 ---- -15 13 27 query I rowsort SELECT ALL + col0 * 79 + col1 + + col1 * col0 FROM tab2 cor0 ---- 10823 7601 801 query I rowsort SELECT ALL - col1 * + col1 + col2 AS col0 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT DISTINCT - col1 - ( - ( - col2 ) ) * - ( 25 ) AS col0 FROM tab2 cor0 ---- 591 644 933 query I rowsort SELECT DISTINCT + col0 + - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL cor0.col1 * 8 + col2 + col2 FROM tab0 AS cor0 ---- 754 778 892 query I rowsort SELECT + col1 + + 1 FROM tab0 ---- 87 92 98 onlyif mysql # use DIV operator for integer division query I rowsort label-8957 SELECT DISTINCT - cor0.col2 DIV - ( + col0 + - ( col1 ) ) col0 FROM tab2 AS cor0 ---- -1 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8957 SELECT DISTINCT - cor0.col2 / - ( + col0 + - ( col1 ) ) col0 FROM tab2 AS cor0 ---- -1 0 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8958 SELECT ALL CAST( - col1 AS SIGNED ) * + col2 FROM tab0 cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-8958 SELECT ALL CAST ( - col1 AS INTEGER ) * + col2 FROM tab0 cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-8959 SELECT + - col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-8959 SELECT + - col0 / + cor0.col1 AS col0 FROM tab1 AS cor0 ---- -6 -6 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8960 SELECT DISTINCT - 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-8960 SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8961 SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8961 SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8962 SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col1 * col1 col2 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8962 SELECT DISTINCT - CAST ( NULL AS REAL ) * - col1 * col1 col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT cor0.col2 * + cor0.col2 + col2 FROM tab2 AS cor0 ---- 1482 702 756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 57 * col0 * + col0 col1 FROM tab0 ---- 32832 451497 69825 query I rowsort SELECT DISTINCT col0 * - 36 FROM tab0 ---- -1260 -3204 -864 query I rowsort SELECT DISTINCT col0 * col0 * + col1 + col1 FROM tab0 ---- 118922 49622 720902 query I rowsort SELECT ALL + 93 FROM tab1, tab2 cor0 ---- 9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde query I rowsort SELECT DISTINCT + 4 AS col1 FROM tab2, tab0, tab1 AS cor0 ---- 4 query I rowsort SELECT ALL - col2 * + col0 AS col0 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT - col2 + + col1 * + col0 AS col0 FROM tab1 ---- 24 583 944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 76 + - col2 * col2 col1 FROM tab0 AS cor0 ---- -1165 -6800 -77 query I rowsort SELECT DISTINCT + - col1 * col2 + - col0 FROM tab1 AS cor0 ---- -1328 -1407 -634 query I rowsort SELECT ALL + - 5 * - cor0.col2 * + ( + 9 ) AS col1 FROM tab1 AS cor0 ---- 2430 2565 4320 query I rowsort SELECT DISTINCT + col1 + - cor0.col2 * cor0.col1 FROM tab0 cor0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT - - cor0.col0 * - col2 + col0 * 53 AS col0 FROM tab2 cor0 ---- 1185 182 2106 query I rowsort SELECT ALL - + col0 + + col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT col0 + - cor0.col1 * - col2 FROM tab1 AS cor0 ---- 1328 1407 634 onlyif mysql # use DIV operator for integer division query I rowsort label-8978 SELECT col2 + - cor0.col0 DIV 77 AS col2 FROM tab1 AS cor0 ---- 54 57 95 skipif mysql # not compatible query I rowsort label-8978 SELECT col2 + - cor0.col0 / 77 AS col2 FROM tab1 AS cor0 ---- 54 57 95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8979 SELECT + 92 * col1 / - CAST( NULL AS SIGNED ) - + col0 * col2 AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8979 SELECT + 92 * col1 / - CAST ( NULL AS INTEGER ) - + col0 * col2 AS col0 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * tab0.col2 col1 FROM tab0 ---- -1 -1089 -6724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 col1 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT + col1 * + cor0.col1 * cor0.col0 AS col1 FROM tab1 cor0 ---- 13520 2028 6400 query I rowsort SELECT DISTINCT - - col1 + col1 AS col0 FROM tab1 AS cor0 ---- 20 26 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col2 * - cor0.col0 col1 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT + - col1 * cor0.col1 AS col1 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT ALL ( + col1 * - tab1.col0 + tab1.col0 ) AS col0 FROM tab1 ---- -576 -75 -960 query I rowsort SELECT + - col0 * + col1 - col1 * 17 FROM tab2 AS cor0 ---- -1632 -5605 -744 query I rowsort SELECT + ( + col0 ) - + col2 AS col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT ( - 37 ) + + col2 * col2 FROM tab2 AS cor0 ---- 1407 639 692 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT - - CAST ( + 61 AS REAL ) * col0 col2 FROM tab0 cor0 ---- 1464 2135 5429 query I rowsort SELECT + col2 + - 48 + - col2 FROM tab0 ---- -48 -48 -48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 35 col2 FROM tab1, tab1 cor0 ---- 9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b query I rowsort SELECT + - col2 * col1 + col2 AS col1 FROM tab0 cor0 ---- -2805 -7380 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 31 + - col0 col0 FROM tab1 AS cor0 ---- -33 -49 28 query I rowsort SELECT ALL + cor0.col0 + + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT ALL 49 * cor0.col1 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to c1beb6a8ee6c6b544bff474ec22e11d7 query I rowsort SELECT DISTINCT + 65 AS col0 FROM tab0 ---- 65 query I rowsort SELECT 77 AS col0 FROM tab1 ---- 77 77 77 query I rowsort SELECT - tab0.col1 * col0 * - col0 + + col2 AS col2 FROM tab0 ---- 118826 49569 720893 query I rowsort SELECT ALL 63 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 query I rowsort SELECT ALL 17 * + col1 AS col2 FROM tab1 AS cor0 ---- 170 221 442 query I rowsort SELECT + cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 onlyif mysql # use DIV operator for integer division query I rowsort label-9003 SELECT ALL - col2 DIV + 60 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-9003 SELECT ALL - col2 / + 60 FROM tab1 AS cor0 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9004 SELECT ALL CAST( col2 AS SIGNED ) * col2 + + col0 AS col0 FROM tab2 AS cor0 ---- 1523 736 754 skipif mysql # not compatible query I rowsort label-9004 SELECT ALL CAST ( col2 AS INTEGER ) * col2 + + col0 AS col0 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT DISTINCT cor1.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 24 35 89 query I rowsort SELECT + col0 + ( - col2 ) FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT DISTINCT - + ( + col0 ) + - col0 AS col1 FROM tab1 cor0 ---- -128 -160 -6 query I rowsort SELECT cor0.col2 * col0 * + col0 + col0 + cor0.col1 FROM tab2 AS cor0 ---- 1361 158321 237254 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9009 SELECT - col0 / + col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9009 SELECT - col0 / + col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 22 * col1 + cor0.col1 + + col1 AS col1 FROM tab1 AS cor0 ---- 240 312 624 query I rowsort SELECT DISTINCT cor0.col2 * cor0.col0 FROM tab0 AS cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * + col2 * col1 col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT ( cor0.col1 ) * + ( 2 ) FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT ALL + col1 * - col1 * - col1 AS col0 FROM tab0 AS cor0 ---- 636056 753571 912673 query I rowsort SELECT DISTINCT - - cor0.col1 * + col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT - col2 * col2 + + 75 FROM tab0 AS cor0 ---- -1014 -6649 74 query I rowsort SELECT ALL + - col0 + col0 * col0 FROM tab1 AS cor0 ---- 4032 6 6320 query I rowsort SELECT col2 + - col0 * col1 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT - - col0 - col0 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 72 col2 FROM tab1 AS cor0 ---- -72 -72 -72 onlyif mysql # use DIV operator for integer division query I rowsort label-9021 SELECT ALL + 16 * cor0.col2 DIV - col2 FROM tab0 AS cor0 ---- -16 -16 -16 skipif mysql # not compatible query I rowsort label-9021 SELECT ALL + 16 * cor0.col2 / - col2 FROM tab0 AS cor0 ---- -16 -16 -16 query I rowsort SELECT ALL ( 0 ) * - tab1.col2 + + 65 * + col1 - - col2 AS col1 FROM tab1 ---- 1744 707 941 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * col2 - col0 col2 FROM tab2 ---- 1456 567 830 query I rowsort SELECT ALL + tab1.col1 - + col0 * - col0 FROM tab1 ---- 35 4106 6413 query I rowsort SELECT 27 + - ( + col0 ) AS col1 FROM tab2 ---- -51 -52 20 onlyif mysql # use DIV operator for integer division query I rowsort label-9026 SELECT DISTINCT + - col1 * col0 DIV + cor0.col1 FROM tab1 cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-9026 SELECT DISTINCT + - col1 * col0 / + cor0.col1 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT - col0 * - 40 - col1 AS col0 FROM tab1 ---- 2550 3187 94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col1 * 24 * ( col0 ) col1 FROM tab0 AS cor0 ---- 194376 49536 81480 onlyif mysql # use DIV operator for integer division query I rowsort label-9029 SELECT ALL + cor0.col2 + + cor0.col1 + cor0.col1 DIV - col2 AS col0 FROM tab0 AS cor0 ---- 1 117 172 skipif mysql # not compatible query I rowsort label-9029 SELECT ALL + cor0.col2 + + cor0.col1 + cor0.col1 / - col2 AS col0 FROM tab0 AS cor0 ---- 1 117 172 query I rowsort SELECT ALL + col1 + + 74 FROM tab1 AS cor0 ---- 100 84 87 query I rowsort SELECT DISTINCT col0 * - col2 + + 37 FROM tab2 cor0 ---- -152 -1991 -2965 query I rowsort SELECT 71 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2 query I rowsort SELECT ALL + col0 * - col2 + - col0 * col2 + - col1 AS col1 FROM tab1 AS cor0 ---- -15373 -350 -7306 query I rowsort SELECT ALL - col0 * 33 * + cor0.col0 + + cor0.col0 + ( + col2 ) FROM tab2 AS cor0 ---- -1583 -200668 -205836 query I rowsort SELECT DISTINCT - col1 - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT DISTINCT + ( - col1 ) AS col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT + 60 * - 72 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to c3d831e88a2f5e77f49f02477607bae0 query I rowsort SELECT DISTINCT - - col1 * - 17 AS col0 FROM tab0 cor0 ---- -1462 -1547 -1649 query I rowsort SELECT + col2 + 2 AS col1 FROM tab1 ---- 56 59 98 query I rowsort SELECT DISTINCT - - 34 AS col0 FROM tab0 AS cor0 ---- 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9041 SELECT DISTINCT - + CAST( col0 AS SIGNED ) - - col2 FROM tab1 cor0 ---- -7 16 51 skipif mysql # not compatible query I rowsort label-9041 SELECT DISTINCT - + CAST ( col0 AS INTEGER ) - - col2 FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT ALL + col0 * 33 * col0 FROM tab0 AS cor0 ---- 19008 261393 40425 query I rowsort SELECT col0 * cor0.col0 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT DISTINCT - ( - ( col2 ) ) + cor0.col1 * 17 FROM tab0 AS cor0 ---- 1495 1629 1650 query I rowsort SELECT ALL - col2 + + cor0.col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT DISTINCT 40 + - col2 FROM tab2 AS cor0 ---- 13 14 2 onlyif mysql # use DIV operator for integer division query I rowsort label-9047 SELECT col2 * - col2 + col0 DIV col0 AS col0 FROM tab0 AS cor0 ---- -1088 -6723 0 skipif mysql # not compatible query I rowsort label-9047 SELECT col2 * - col2 + col0 / col0 AS col0 FROM tab0 AS cor0 ---- -1088 -6723 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9048 SELECT - col0 + + col2 DIV 91 AS col2 FROM tab1 AS cor0 ---- -3 -64 -79 skipif mysql # not compatible query I rowsort label-9048 SELECT - col0 + + col2 / 91 AS col2 FROM tab1 AS cor0 ---- -3 -64 -79 query I rowsort SELECT ALL - col2 + + tab2.col0 FROM tab2 ---- -20 41 52 query I rowsort SELECT DISTINCT + col1 + - 3 FROM tab2 AS cor0 ---- 14 28 56 query I rowsort SELECT - cor0.col1 + 42 FROM tab1 AS cor0 ---- 16 29 32 skipif mysql # not compatible query I rowsort SELECT + - cor0.col2 + CAST ( + col0 AS REAL ) FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL col2 * + ( - tab0.col1 ) FROM tab0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-9054 SELECT ALL + col1 DIV ( - 35 ) AS col2 FROM tab2 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-9054 SELECT ALL + col1 / ( - 35 ) AS col2 FROM tab2 ---- -1 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9055 SELECT col2 + - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 55 58 85 skipif mysql # not compatible query I rowsort label-9055 SELECT col2 + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT + col0 * + 40 + - col2 FROM tab0 AS cor0 ---- 1399 3478 927 query I rowsort SELECT - - col1 * 45 + + 92 + - col1 FROM tab2 AS cor0 ---- 1456 2688 840 query I rowsort SELECT ALL col0 * ( - col1 ) FROM tab1 AS cor0 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + 68 col0 FROM tab2 AS cor0 ---- -10 -11 61 onlyif mysql # use DIV operator for integer division query I rowsort label-9060 SELECT + + col0 DIV col0 + col0 FROM tab2 AS cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-9060 SELECT + + col0 / col0 + col0 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT - 10 + col1 AS col1 FROM tab1 AS cor0 ---- 0 16 3 query I rowsort SELECT DISTINCT - cor0.col1 * + cor0.col1 - - 6 AS col0 FROM tab1 AS cor0 ---- -163 -670 -94 query I rowsort SELECT + 21 AS col2 FROM tab1 AS cor0 ---- 21 21 21 query I rowsort SELECT - col0 * - col0 + col0 FROM tab0 AS cor0 ---- 1260 600 8010 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9065 SELECT + CAST( 56 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 56 56 56 skipif mysql # not compatible query I rowsort label-9065 SELECT + CAST ( 56 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 56 56 56 query I rowsort SELECT col0 * 54 + col2 * + 87 FROM tab2 AS cor0 ---- 2727 6474 7572 query I rowsort SELECT ALL + col1 + col1 * + tab2.col0 AS col0 FROM tab2 ---- 1360 248 4661 query I rowsort SELECT ALL - cor0.col0 AS col0 FROM tab1, tab0 cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT ALL + col1 * + col1 + col0 FROM tab0 ---- 7420 8370 9444 query I rowsort SELECT DISTINCT + + 38 FROM tab1, tab0, tab1 cor0 ---- 38 onlyif mysql # use DIV operator for integer division query I rowsort label-9071 SELECT DISTINCT 28 DIV 8 + - col1 AS col1 FROM tab0 AS cor0 ---- -83 -88 -94 skipif mysql # not compatible query I rowsort label-9071 SELECT DISTINCT 28 / 8 + - col1 AS col1 FROM tab0 AS cor0 ---- -83 -88 -94 query I rowsort SELECT + + ( + ( + col2 ) ) * + cor0.col1 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + 62 AS col1 FROM tab0 ---- 62 62 62 query I rowsort SELECT DISTINCT + col0 * 47 FROM tab2 cor0 ---- 329 3666 3713 onlyif mysql # use DIV operator for integer division query I rowsort label-9075 SELECT ALL 4 DIV - col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9075 SELECT ALL 4 / - col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + + 57 * col2 + + 84 AS col0 FROM tab2 AS cor0 ---- 1566 1623 2250 query I rowsort SELECT col0 * tab1.col1 * + tab1.col1 - + col0 AS col2 FROM tab1 ---- 13440 2025 6336 onlyif mysql # use DIV operator for integer division query I rowsort label-9078 SELECT + 61 DIV - col0 FROM tab0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-9078 SELECT + 61 / - col0 FROM tab0 ---- -1 -2 0 query I rowsort SELECT col0 + + tab2.col1 AS col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT + tab0.col2 - col0 FROM tab0 ---- -34 -7 9 query I rowsort SELECT + tab0.col2 + + col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT DISTINCT + 43 * + col1 + - 2 AS col0 FROM tab1 ---- 1116 428 557 query I rowsort SELECT - col2 + - tab2.col2 AS col1 FROM tab2 ---- -52 -54 -76 query I rowsort SELECT 3 * col1 AS col1 FROM tab0 ---- 258 273 291 query I rowsort SELECT + cor0.col0 * col1 + - 14 FROM tab0 AS cor0 ---- 2050 3381 8085 query I rowsort SELECT - - col1 * - col0 * - ( + 34 ) FROM tab2 AS cor0 ---- 156468 45662 7378 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col1 col2 FROM tab0, tab1 AS cor0 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-9088 SELECT DISTINCT + col2 DIV CAST( + 73 AS SIGNED ) AS col2 FROM tab0 ---- 0 1 skipif mysql # not compatible query I rowsort label-9088 SELECT DISTINCT + col2 / CAST ( + 73 AS INTEGER ) AS col2 FROM tab0 ---- 0 1 query I rowsort SELECT + col1 * - 93 AS col2 FROM tab2 AS cor0 ---- -1581 -2883 -5487 query I rowsort SELECT ( col0 ) + col1 AS col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT - col2 * col1 * - cor0.col0 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT - - col1 * - cor0.col2 * + cor0.col2 AS col1 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT + - 58 * 89 + + cor0.col1 * col2 AS col2 FROM tab2 AS cor0 ---- -3628 -4325 -4516 query I rowsort SELECT - col0 + + col0 * col2 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT ALL ( 28 ) + - col1 FROM tab2 AS cor0 ---- -3 -31 11 query I rowsort SELECT DISTINCT + 51 FROM tab1, tab1 cor0 ---- 51 query I rowsort SELECT cor0.col1 - - col1 * col0 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT 69 * col0 - col1 * - col2 AS col0 FROM tab1 AS cor0 ---- 1611 4986 6768 onlyif mysql # use DIV operator for integer division query I rowsort label-9099 SELECT ALL - cor0.col1 + 49 DIV cor0.col0 FROM tab0 AS cor0 ---- -84 -91 -96 skipif mysql # not compatible query I rowsort label-9099 SELECT ALL - cor0.col1 + 49 / cor0.col0 FROM tab0 AS cor0 ---- -84 -91 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-9100 SELECT - + col1 - col1 DIV - col0 FROM tab2 cor0 ---- -17 -27 -59 skipif mysql # not compatible query I rowsort label-9100 SELECT - + col1 - col1 / - col0 FROM tab2 cor0 ---- -17 -27 -59 query I rowsort SELECT ALL + col0 * - tab1.col2 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT col0 - col2 * ( col0 ) FROM tab2 ---- -182 -1950 -2923 query I rowsort SELECT - col0 - + col1 * 76 AS col0 FROM tab2 ---- -1371 -2363 -4562 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9104 SELECT ALL col2 * - col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9104 SELECT ALL col2 * - col0 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col1 * col2 * + cor0.col0 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- -3298 -664027 -68026 query I rowsort SELECT ALL - + col2 + col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - 37 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 395d44ccbce08828bc493e93ec3d9207 query I rowsort SELECT ALL - col0 * + cor0.col2 * col1 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT ALL + col2 + - ( col0 ) * col1 FROM tab1 AS cor0 ---- -24 -583 -944 onlyif mysql # use DIV operator for integer division query I rowsort label-9110 SELECT DISTINCT + col1 + - col2 DIV 84 AS col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-9110 SELECT DISTINCT + col1 + - col2 / 84 AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL col0 * - col1 * + col0 + + col0 - + 19 FROM tab2 AS cor0 ---- -106037 -1531 -358897 query I rowsort SELECT DISTINCT + col2 * 70 + + 59 * cor0.col0 FROM tab2 AS cor0 ---- 2303 6422 7321 query I rowsort SELECT ALL - col0 * - 98 - - 38 FROM tab1 AS cor0 ---- 332 6310 7878 query I rowsort SELECT + + col2 * col2 * 33 FROM tab2 cor0 ---- 22308 24057 47652 query I rowsort SELECT DISTINCT - col1 * - 2 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT + cor0.col0 + col2 * col2 AS col2 FROM tab1 AS cor0 ---- 2919 3313 9296 query I rowsort SELECT ALL + col1 + - ( - col1 ) * + col1 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT + - col1 * - cor0.col1 AS col2 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT col2 * ( col1 * cor0.col0 + - 0 ) FROM tab2 cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL - col0 * ( col2 ) * col0 AS col2 FROM tab1 AS cor0 ---- -233472 -486 -614400 query I rowsort SELECT - col0 * ( + 13 ) FROM tab1 cor0 ---- -1040 -39 -832 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + col0 col1 FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-9123 SELECT DISTINCT - cor0.col0 + + col2 DIV col0 AS col1 FROM tab0 AS cor0 ---- -23 -35 -89 skipif mysql # not compatible query I rowsort label-9123 SELECT DISTINCT - cor0.col0 + + col2 / col0 AS col1 FROM tab0 AS cor0 ---- -23 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-9124 SELECT DISTINCT - - col1 DIV ( col1 ) FROM tab2 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-9124 SELECT DISTINCT - - col1 / ( col1 ) FROM tab2 AS cor0 ---- 1 query I rowsort SELECT DISTINCT - col1 * ( - 99 ) FROM tab0 AS cor0 ---- 8514 9009 9603 query I rowsort SELECT - cor0.col0 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT + - 33 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -32 0 49 query I rowsort SELECT cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 52 * col2 + - col1 col2 FROM tab0 AS cor0 ---- -149 -1802 -4355 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9130 SELECT ALL - CAST( NULL AS SIGNED ) * - 69 * col0 + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9130 SELECT ALL - CAST ( NULL AS INTEGER ) * - 69 * col0 + col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col1 + - 41 * - col1 FROM tab0 AS cor0 ---- 3440 3640 3880 query I rowsort SELECT DISTINCT ( - ( + col0 ) ) * cor0.col2 + 42 - col0 * - col2 FROM tab1 AS cor0 ---- 42 query I rowsort SELECT + col1 - + col0 * col0 FROM tab0 AS cor0 ---- -1128 -490 -7830 query I rowsort SELECT DISTINCT + cor0.col2 + + col0 AS col1 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-9135 SELECT DISTINCT + + ( + 90 ) DIV col0 + + col1 FROM tab2 AS cor0 ---- 18 43 60 skipif mysql # not compatible query I rowsort label-9135 SELECT DISTINCT + + ( + 90 ) / col0 + + col1 FROM tab2 AS cor0 ---- 18 43 60 query I rowsort SELECT ALL + col2 * - col0 * - col2 + + 93 AS col0 FROM tab0 AS cor0 ---- 128 26229 598529 query I rowsort SELECT ALL + + col2 + - col0 * cor0.col1 + 1 FROM tab0 AS cor0 ---- -2030 -3393 -8016 query I rowsort SELECT ALL cor0.col2 + col2 AS col0 FROM tab1 cor0 ---- 108 114 192 query I rowsort SELECT + 49 * col2 + 30 AS col2 FROM tab1 AS cor0 ---- 2676 2823 4734 query I rowsort SELECT DISTINCT - 74 FROM tab2 AS cor0 ---- -74 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9141 SELECT CAST( + ( col1 ) + - col1 AS SIGNED ) AS col0 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9141 SELECT CAST ( + ( col1 ) + - col1 AS INTEGER ) AS col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL + 42 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e query I rowsort SELECT + ( - col2 ) AS col1 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT + 55 AS col2 FROM tab1 ---- 55 55 55 query I rowsort SELECT ALL + col2 + + col0 * + col1 AS col0 FROM tab2 cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT cor0.col0 * + col0 AS col2 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT - 51 * col2 * + col2 + - cor0.col0 AS col0 FROM tab1 AS cor0 ---- -148719 -165763 -470096 query I rowsort SELECT ALL - - 32 * col1 AS col1 FROM tab1 AS cor0 ---- 320 416 832 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9149 SELECT ALL + ( + col2 ) + CAST( - ( + col2 ) AS SIGNED ) AS col2 FROM tab2 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9149 SELECT ALL + ( + col2 ) + CAST ( - ( + col2 ) AS INTEGER ) AS col2 FROM tab2 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9150 SELECT - cor0.col0 * col1 DIV 91 + col2 AS col0 FROM tab1 AS cor0 ---- 50 54 85 skipif mysql # not compatible query I rowsort label-9150 SELECT - cor0.col0 * col1 / 91 + col2 AS col0 FROM tab1 AS cor0 ---- 50 54 85 query I rowsort SELECT DISTINCT + + 36 FROM tab0 AS cor0 ---- 36 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9152 SELECT DISTINCT - col2 * col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9152 SELECT DISTINCT - col2 * col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + + 12 * col2 AS col2 FROM tab2 AS cor0 ---- 312 324 456 query I rowsort SELECT ALL + cor0.col0 * + col2 * + col0 + 20 FROM tab0 AS cor0 ---- 1245 19028 649542 query I rowsort SELECT ALL - col1 + cor0.col0 * + 27 AS col2 FROM tab0 cor0 ---- 2312 562 848 query I rowsort SELECT DISTINCT - 1 + - col0 * - col0 FROM tab1 ---- 4095 6399 8 query I rowsort SELECT 13 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb query I rowsort SELECT - col2 * col0 + + col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9159 SELECT + col1 * cor0.col2 + - CAST( col2 + + col2 AS SIGNED ) FROM tab0 AS cor0 ---- 2772 7298 95 skipif mysql # not compatible query I rowsort label-9159 SELECT + col1 * cor0.col2 + - CAST ( col2 + + col2 AS INTEGER ) FROM tab0 AS cor0 ---- 2772 7298 95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9160 SELECT - + cor0.col1 * + CAST( - col0 AS SIGNED ) FROM tab0 cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-9160 SELECT - + cor0.col1 * + CAST ( - col0 AS INTEGER ) FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - 1 * - col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT + cor0.col0 + + col2 FROM tab0 cor0 ---- 171 36 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + cor0.col0 col1 FROM tab2 cor0 ---- 0 query I rowsort SELECT ALL ( + 13 ) FROM tab1, tab2 cor0 ---- 9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb query I rowsort SELECT ALL cor1.col1 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT col2 * 16 * tab0.col0 + col2 - + col0 FROM tab0 ---- 116761 12681 526 query I rowsort SELECT DISTINCT tab0.col2 * 56 AS col2 FROM tab0 ---- 1848 4592 56 query I rowsort SELECT + col2 + + 37 AS col0 FROM tab2 ---- 63 64 75 query I rowsort SELECT DISTINCT 99 + + ( col1 ) * + col0 FROM tab1 ---- 1139 177 739 query I rowsort SELECT ( + col2 ) + col2 FROM tab2 ---- 52 54 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9171 SELECT DISTINCT - CAST( col2 AS SIGNED ) + col0 * col1 FROM tab0 ---- 2031 3394 8017 skipif mysql # not compatible query I rowsort label-9171 SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col0 * col1 FROM tab0 ---- 2031 3394 8017 query I rowsort SELECT DISTINCT - 69 + - 95 AS col0 FROM tab0 ---- -164 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 col1 FROM tab1, tab0 cor0 ---- 1 33 82 query I rowsort SELECT ALL col0 * cor0.col1 AS col1 FROM tab1 cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + col0 ) * + col1 * - cor0.col1 col0 FROM tab0 AS cor0 ---- -177504 -329315 -737009 query I rowsort SELECT ALL cor0.col1 + - col2 FROM tab2 cor0 ---- -21 33 4 query I rowsort SELECT - - 36 AS col0 FROM tab0 cor0 ---- 36 36 36 onlyif mysql # use DIV operator for integer division query I rowsort label-9178 SELECT - - col1 DIV col0 + col1 + - col1 FROM tab0 cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-9178 SELECT - - col1 / col0 + col1 + - col1 FROM tab0 cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort SELECT - col0 - - CAST ( col1 AS REAL ) FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT + col0 + 32 AS col1 FROM tab1 AS cor0 ---- 112 35 96 query I rowsort SELECT + - col0 * ( - col2 ) + - col0 AS col0 FROM tab1 AS cor0 ---- 159 3584 7600 onlyif mysql # use DIV operator for integer division query I rowsort label-9182 SELECT + + ( + cor0.col1 ) DIV col0 + - cor0.col2 * 88 AS col2 FROM tab1 AS cor0 ---- -4744 -5016 -8448 skipif mysql # not compatible query I rowsort label-9182 SELECT + + ( + cor0.col1 ) / col0 + - cor0.col2 * 88 AS col2 FROM tab1 AS cor0 ---- -4744 -5016 -8448 query I rowsort SELECT - col2 * ( - col1 ) FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL + tab0.col0 * + ( 53 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 37deedd72d3c58c8113d18491d6fb749 query I rowsort SELECT 69 - - col0 * + col2 FROM tab2 cor0 ---- 2097 258 3071 query I rowsort SELECT col2 + - col1 * col1 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT + col1 * col2 - + col0 FROM tab1 AS cor0 ---- 1168 1401 506 query I rowsort SELECT DISTINCT 50 + + col1 AS col1 FROM tab2 ---- 109 67 81 query I rowsort SELECT - col1 + 74 FROM tab1 AS cor0 ---- 48 61 64 query I rowsort SELECT + col1 + - col1 * - 8 + - col0 AS col0 FROM tab1 cor0 ---- 231 26 37 query I rowsort SELECT - 58 * tab1.col0 AS col1 FROM tab1 ---- -174 -3712 -4640 query I rowsort SELECT - col1 * + col1 * + col1 AS col2 FROM tab1 ---- -1000 -17576 -2197 query I rowsort SELECT - ( col1 ) + + ( - col1 ) + col0 * + 80 FROM tab1 ---- 188 5100 6374 query I rowsort SELECT DISTINCT - 21 + col2 * ( + col1 ) AS col0 FROM tab2 ---- 1513 625 816 query I rowsort SELECT + col1 + - col1 + + ( col0 * col1 ) FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT ALL col2 * + 14 * - col0 AS col2 FROM tab0 AS cor0 ---- -102172 -11088 -490 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9197 SELECT DISTINCT - + cor0.col1 + + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 ---- -29 -74 -93 skipif mysql # not compatible query I rowsort label-9197 SELECT DISTINCT - + cor0.col1 + + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT ALL col2 + - col0 * col2 + col2 * + ( - cor0.col0 ) FROM tab2 AS cor0 ---- -351 -4030 -5966 query I rowsort SELECT - col0 * cor0.col1 + + col1 * - col1 FROM tab0 AS cor0 ---- -12804 -16380 -9460 onlyif mysql # use DIV operator for integer division query I rowsort label-9200 SELECT + col0 - cor0.col0 * col0 DIV col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9200 SELECT + col0 - cor0.col0 * col0 / col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 1 FROM tab0, tab1 AS cor0 ---- 1 query I rowsort SELECT - 57 * col1 FROM tab2 ---- -1767 -3363 -969 onlyif mysql # use DIV operator for integer division query I rowsort label-9203 SELECT ALL + + 38 DIV - cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9203 SELECT ALL + + 38 / - cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 * 92 AS col2 FROM tab1 ---- -1196 -2392 -920 query I rowsort SELECT + ( 96 ) FROM tab1 ---- 96 96 96 query I rowsort SELECT + 67 * tab2.col1 * - col2 + - col2 FROM tab2 ---- -102804 -43320 -56106 query I rowsort SELECT - col1 + col0 * - cor0.col0 FROM tab2 cor0 ---- -6143 -6258 -80 query I rowsort SELECT + col1 * + col1 * ( col1 ) AS col2 FROM tab2 cor0 ---- 205379 29791 4913 query I rowsort SELECT + col1 + - cor0.col2 * - 26 FROM tab1 AS cor0 ---- 1430 1492 2509 query I rowsort SELECT - 66 * + col2 AS col0 FROM tab2 AS cor0 ---- -1716 -1782 -2508 query I rowsort SELECT - - col1 * + col1 AS col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT - - col0 * col0 * + col0 AS col0 FROM tab1 AS cor0 ---- 262144 27 512000 query I rowsort SELECT ALL + - 80 * + col1 + col0 * + 38 AS col2 FROM tab1 AS cor0 ---- -1966 1632 2000 query I rowsort SELECT + - ( + ( + col1 ) ) AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT ALL - ( cor0.col0 ) * col2 + col2 AS col1 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT col0 + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT ( 39 ) + col2 * - 44 FROM tab1 ---- -2337 -2469 -4185 query I rowsort SELECT ALL tab1.col1 FROM tab1, tab0, tab1 cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT - 22 + + ( tab1.col1 ) AS col0 FROM tab1 ---- -12 -9 4 query I rowsort SELECT ( cor0.col1 ) + + col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT + col1 + 40 + - col2 * col2 * + ( col2 * + 76 ) AS col0 FROM tab1 AS cor0 ---- -11967198 -14074618 -67239883 query I rowsort SELECT + 80 * 31 FROM tab2 cor0 ---- 2480 2480 2480 query I rowsort SELECT ALL + - ( + cor0.col1 ) - col2 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT - cor0.col2 * col1 + + col2 + 45 AS col0 FROM tab0 AS cor0 ---- -2760 -51 -7335 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9225 SELECT ALL CAST( - ( col1 ) AS SIGNED ) AS col2 FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-9225 SELECT ALL CAST ( - ( col1 ) AS INTEGER ) AS col2 FROM tab0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-9226 SELECT + col1 + col1 * col2 DIV + col0 FROM tab1 ---- 18 28 494 skipif mysql # not compatible query I rowsort label-9226 SELECT + col1 + col1 * col2 / + col0 FROM tab1 ---- 18 28 494 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 * 59 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to fa63159d00f06a887c8e010ae2059168 onlyif mysql # use DIV operator for integer division query I rowsort label-9228 SELECT DISTINCT cor0.col2 DIV 28 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-9228 SELECT DISTINCT cor0.col2 / 28 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 1 2 3 query I rowsort SELECT ALL - ( col0 + col2 ) AS col0 FROM tab2 ---- -104 -117 -34 query I rowsort SELECT DISTINCT + col2 * ( 58 ) FROM tab0 AS cor0 ---- 1914 4756 58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * tab2.col2 col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT DISTINCT - col1 - col1 AS col1 FROM tab2 ---- -118 -34 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-9233 SELECT + col1 + col2 DIV + ( + 98 ) col2 FROM tab2 AS cor0 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9233 SELECT + col1 + col2 / + ( + 98 ) col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT + 77 + col1 AS col1 FROM tab0 ---- 163 168 174 query I rowsort SELECT ALL 53 AS col2 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6 query I rowsort SELECT ALL 8 + + col0 - col1 FROM tab1 ---- -15 62 75 query I rowsort SELECT ALL + 40 + + col0 * ( col1 * + col1 ) AS col1 FROM tab0 ---- 177544 329355 737049 query I rowsort SELECT DISTINCT + col0 + cor0.col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT + + cor0.col1 + col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL - col2 * col2 + col0 AS col1 FROM tab0 AS cor0 ---- -1065 -6635 34 query I rowsort SELECT ALL + col1 - - ( col1 + + col1 ) FROM tab2 AS cor0 ---- 177 51 93 query I rowsort SELECT col2 + + col2 * 41 * col1 FROM tab0 AS cor0 ---- 116391 306024 3978 query I rowsort SELECT ALL - + cor0.col1 * cor0.col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col0 + - 3 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- -12 -256 -320 onlyif mysql # use DIV operator for integer division query I rowsort label-9245 SELECT DISTINCT + col0 DIV cor0.col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-9245 SELECT DISTINCT + col0 / cor0.col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + col1 * col0 + col0 AS col1 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT - cor0.col0 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + col0 - + ( + col2 ) FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT + col2 * + col2 + col0 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT ALL col2 + + 26 + 64 FROM tab1 AS cor0 ---- 144 147 186 query I rowsort SELECT col2 * - ( cor0.col0 ) + - col0 AS col0 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT DISTINCT col1 - col1 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9253 SELECT - col0 DIV 64 + + 39 FROM tab2 AS cor0 ---- 38 38 39 skipif mysql # not compatible query I rowsort label-9253 SELECT - col0 / 64 + + 39 FROM tab2 AS cor0 ---- 38 38 39 onlyif mysql # use DIV operator for integer division query I rowsort label-9254 SELECT + col0 DIV tab0.col2 FROM tab0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-9254 SELECT + col0 / tab0.col2 FROM tab0 ---- 0 1 35 query I rowsort SELECT ALL col2 * - 23 FROM tab2 ---- -598 -621 -874 query I rowsort SELECT DISTINCT col2 + ( - col0 ) + col2 AS col0 FROM tab0 ---- -33 42 75 query I rowsort SELECT DISTINCT + col0 + - col0 * col2 AS col0 FROM tab1 ---- -159 -3584 -7600 query I rowsort SELECT DISTINCT col0 + + 18 * + col0 AS col2 FROM tab0 ---- 1691 456 665 onlyif mysql # use DIV operator for integer division query I rowsort label-9259 SELECT ALL + col2 * - col1 DIV - col1 AS col1 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-9259 SELECT ALL + col2 * - col1 / - col1 AS col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT + - col1 + 9 * - cor0.col0 FROM tab2 AS cor0 ---- -728 -761 -94 onlyif mysql # use DIV operator for integer division query I rowsort label-9261 SELECT + col0 DIV 33 FROM tab2 ---- 0 2 2 skipif mysql # not compatible query I rowsort label-9261 SELECT + col0 / 33 FROM tab2 ---- 0 2 2 query I rowsort SELECT col0 * col0 * col0 FROM tab0 AS cor0 ---- 13824 42875 704969 query I rowsort SELECT - 64 + col2 FROM tab2 AS cor0 ---- -26 -37 -38 query I rowsort SELECT - + 49 + ( + col0 ) AS col1 FROM tab0 AS cor0 ---- -14 -25 40 query I rowsort SELECT DISTINCT - col2 + cor0.col1 FROM tab0 AS cor0 ---- 53 9 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9266 SELECT + - CAST( + cor0.col1 AS SIGNED ) FROM tab2 cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-9266 SELECT + - CAST ( + cor0.col1 AS INTEGER ) FROM tab2 cor0 ---- -17 -31 -59 query I rowsort SELECT ALL col2 + - 12 * col0 AS col2 FROM tab0 cor0 ---- -255 -419 -986 query I rowsort SELECT DISTINCT ( 62 ) FROM tab1 AS cor0 ---- 62 query I rowsort SELECT ALL col0 * - col2 * col1 AS col2 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT ( + col0 ) * - col2 * - ( + cor0.col0 ) FROM tab0 AS cor0 ---- 1225 19008 649522 query I rowsort SELECT ALL + 93 AS col2 FROM tab2 AS cor0 ---- 93 93 93 query I rowsort SELECT ALL - + 13 FROM tab0 AS cor0 ---- -13 -13 -13 query I rowsort SELECT + ( col0 ) + col0 FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT tab1.col2 + - col1 + col0 * col0 AS col1 FROM tab1 ---- 37 4143 6483 onlyif mysql # use DIV operator for integer division query I rowsort label-9275 SELECT + col2 DIV + 1 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-9275 SELECT + col2 / + 1 FROM tab2 ---- 26 27 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9276 SELECT CAST( col2 AS SIGNED ) * + col1 - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 2814 62 7373 skipif mysql # not compatible query I rowsort label-9276 SELECT CAST ( col2 AS INTEGER ) * + col1 - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT DISTINCT + + col0 * - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT col0 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT ALL + - ( cor0.col2 ) FROM tab2 AS cor0 ---- -26 -27 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * + cor0.col2 col0 FROM tab1 AS cor0 ---- -2916 -3249 -9216 onlyif mysql # use DIV operator for integer division query I rowsort label-9281 SELECT ALL + col0 + - col2 * col2 * + col2 + col2 DIV - col0 AS col0 FROM tab0 AS cor0 ---- -35914 -551279 34 skipif mysql # not compatible query I rowsort label-9281 SELECT ALL + col0 + - col2 * col2 * + col2 + col2 / - col0 AS col0 FROM tab0 AS cor0 ---- -35914 -551279 34 query I rowsort SELECT ALL - 44 * + col0 + - col1 FROM tab2 AS cor0 ---- -339 -3491 -3493 query I rowsort SELECT - - ( col2 ) * + 38 AS col0 FROM tab1 AS cor0 ---- 2052 2166 3648 query I rowsort SELECT DISTINCT - 65 FROM tab0 ---- -65 query I rowsort SELECT + 12 * col2 FROM tab2 AS cor0 ---- 312 324 456 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 40 col2 FROM tab1 AS cor0 ---- 40 onlyif mysql # use DIV operator for integer division query I rowsort label-9287 SELECT + col0 DIV col1 AS col0 FROM tab2 cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-9287 SELECT + col0 / col1 AS col0 FROM tab2 cor0 ---- 0 1 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 34 + + col1 * - col0 * - 93 col0 FROM tab1 cor0 ---- 59486 7220 96686 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9289 SELECT DISTINCT + col1 * col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9289 SELECT DISTINCT + col1 * col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL + col1 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ( + col1 ) AS col0 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT - - col1 + - ( + col1 ) AS col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9293 SELECT DISTINCT - ( - tab1.col2 ) + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-9293 SELECT DISTINCT - ( - tab1.col2 ) + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL query I rowsort SELECT ALL + - 46 AS col0 FROM tab0 AS cor0 ---- -46 -46 -46 query I rowsort SELECT ALL 15 + col1 FROM tab1 ---- 25 28 41 query I rowsort SELECT - 97 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to e4a6bd848a69226cbb7ad3d154be321b query I rowsort SELECT col0 * col0 + - ( col2 ) - + col2 * + col1 * col0 AS col2 FROM tab0 AS cor0 ---- -2171 -656279 -67569 query I rowsort SELECT DISTINCT cor0.col2 * + col2 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-9299 SELECT tab1.col0 DIV + ( + col0 ) AS col1 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9299 SELECT tab1.col0 / + ( + col0 ) AS col1 FROM tab1 ---- 1 1 1 query I rowsort SELECT ALL + 43 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 199105619049271147956de52e7f5ed4 query I rowsort SELECT - - cor0.col2 + + col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + + cor0.col0 - - col0 AS col2 FROM tab1 AS cor0 ---- 128 160 6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9303 SELECT - ( col2 ) * + CAST( - cor0.col1 AS SIGNED ) + - col1 FROM tab1 AS cor0 ---- 1235 1378 560 skipif mysql # not compatible query I rowsort label-9303 SELECT - ( col2 ) * + CAST ( - cor0.col1 AS INTEGER ) + - col1 FROM tab1 AS cor0 ---- 1235 1378 560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col2 - - col1 col1 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT - ( + col0 ) * - 87 + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0 ---- 2121 3046 7825 query I rowsort SELECT ALL - 8 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e query I rowsort SELECT DISTINCT - ( 22 ) AS col2 FROM tab2, tab1 AS cor0 ---- -22 query I rowsort SELECT DISTINCT tab2.col2 * - ( + col0 + + col0 ) * col0 AS col2 FROM tab2 ---- -2646 -316368 -474316 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9309 SELECT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9309 SELECT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + - cor0.col0 + 7 * col2 AS col1 FROM tab1 AS cor0 ---- 335 375 592 query I rowsort SELECT - col2 * - col0 * + col1 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT - col2 * col2 * cor0.col1 FROM tab2 AS cor0 ---- -22599 -24548 -39884 onlyif mysql # use DIV operator for integer division query I rowsort label-9313 SELECT + col2 + + ( col0 ) DIV - col1 FROM tab1 AS cor0 ---- 51 54 90 skipif mysql # not compatible query I rowsort label-9313 SELECT + col2 + + ( col0 ) / - col1 FROM tab1 AS cor0 ---- 51 54 90 query I rowsort SELECT + ( 57 ) * - col2 FROM tab2 AS cor0 ---- -1482 -1539 -2166 query I rowsort SELECT + cor0.col2 * cor0.col1 + 10 FROM tab0, tab2 AS cor0 ---- 9 values hashing to f50c62d841f77da6aa5bc9bb5fd01596 query I rowsort SELECT + ( col0 + - col2 ) AS col2 FROM tab1 ---- -16 -51 7 skipif mysql # not compatible query I rowsort SELECT + + CAST ( - ( + cor0.col0 ) AS REAL ) * ( + col0 * col0 ) FROM tab0 AS cor0 ---- -13824 -42875 -704969 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9318 SELECT - ( 6 ) * + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9318 SELECT - ( 6 ) * + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + 99 AS col1 FROM tab2 cor0 ---- -99 -99 -99 query I rowsort SELECT + - 53 AS col0 FROM tab2 AS cor0 ---- -53 -53 -53 onlyif mysql # use DIV operator for integer division query I rowsort label-9321 SELECT - + 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-9321 SELECT - + col1 / - cor0.col1 col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT - ( 13 ) * + col1 - col2 * + 51 FROM tab1 ---- -3037 -3092 -5065 query I rowsort SELECT ALL - - 36 + col1 FROM tab2 AS cor0 ---- 53 67 95 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( - col1 AS REAL ) + - col2 * col1 * 16 FROM tab2 AS cor0 ---- -10319 -13361 -24485 query I rowsort SELECT ALL - ( cor0.col1 ) + col2 * col1 AS col2 FROM tab2 AS cor0 ---- 1475 629 806 onlyif mysql # use DIV operator for integer division query I rowsort label-9326 SELECT + 63 DIV col2 FROM tab1 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-9326 SELECT + 63 / col2 FROM tab1 AS cor0 ---- 0 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-9327 SELECT DISTINCT ( + col2 ) DIV col0 AS col2 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-9327 SELECT DISTINCT ( + col2 ) / col0 AS col2 FROM tab0 AS cor0 ---- 0 1 query I rowsort SELECT ALL + 91 + 9 AS col1 FROM tab1 AS cor0 ---- 100 100 100 query I rowsort SELECT 43 * col0 + - col2 FROM tab0 AS cor0 ---- 1504 3745 999 query I rowsort SELECT DISTINCT - col0 * 42 * col0 FROM tab1 AS cor0 ---- -172032 -268800 -378 query I rowsort SELECT cor0.col0 + col1 AS col1 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-9332 SELECT + 33 DIV cor0.col0 AS col2 FROM tab1 AS cor0 ---- 0 0 11 skipif mysql # not compatible query I rowsort label-9332 SELECT + 33 / cor0.col0 AS col2 FROM tab1 AS cor0 ---- 0 0 11 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( - cor0.col1 ) * col0 col2 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-9334 SELECT + - 5 + col1 DIV - cor0.col1 col2 FROM tab0 AS cor0 ---- -6 -6 -6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9334 SELECT + - 5 + col1 / - cor0.col1 col2 FROM tab0 AS cor0 ---- -6 -6 -6 onlyif mysql # use DIV operator for integer division query I rowsort label-9335 SELECT DISTINCT + - cor0.col1 DIV + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-9335 SELECT DISTINCT + - cor0.col1 / + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9336 SELECT - cor0.col1 DIV col0 AS col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-9336 SELECT - cor0.col1 / col0 AS col0 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT ALL 48 * - col0 AS col2 FROM tab2 ---- -336 -3744 -3792 query I rowsort SELECT ALL + col1 * + col1 + + col2 * col1 AS col1 FROM tab0 AS cor0 ---- 10234 15743 9506 query I rowsort SELECT + - cor0.col1 + - 46 FROM tab2 AS cor0 ---- -105 -63 -77 query I rowsort SELECT DISTINCT + - 70 AS col0 FROM tab1, tab0 AS cor0 ---- -70 query I rowsort SELECT DISTINCT cor2.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 54 57 96 query I rowsort SELECT - cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT - 80 * col2 FROM tab1 ---- -4320 -4560 -7680 query I rowsort SELECT + + col2 * col1 + + col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT DISTINCT col0 + + ( - 86 ) FROM tab1 AS cor0 ---- -22 -6 -83 query I rowsort SELECT 15 - 68 FROM tab1, tab0 cor0 ---- 9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d query I rowsort SELECT ALL col2 * + col0 * 28 AS col1 FROM tab1 ---- 102144 215040 4536 query I rowsort SELECT + col1 * 42 FROM tab1 ---- 1092 420 546 query I rowsort SELECT ALL + 94 + + cor0.col2 * col0 FROM tab2 AS cor0 ---- 2122 283 3096 query I rowsort SELECT ALL - + cor0.col2 + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0 ---- 7363 8199 9408 query I rowsort SELECT - ( cor0.col0 ) * col2 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT - col1 + 91 * 0 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT col0 + + col2 * tab0.col1 * tab0.col2 FROM tab0 ---- 132 611973 93678 query I rowsort SELECT + col0 - - col1 AS col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT col2 + + 93 * tab2.col2 AS col0 FROM tab2 ---- 2444 2538 3572 query I rowsort SELECT col0 + col1 + col2 AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND - col0 * col1 * + col1 - - col1 * col0 / col1 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9357 SELECT DISTINCT - col0 * col2 DIV cor0.col1 AS col1 FROM tab2 AS cor0 WHERE - col2 * col2 - - col0 NOT IN ( col2 * col2 ) ---- -176 -34 -6 skipif mysql # not compatible query I rowsort label-9357 SELECT DISTINCT - col0 * col2 / cor0.col1 AS col1 FROM tab2 AS cor0 WHERE - col2 * col2 - - col0 NOT IN ( col2 * col2 ) ---- -176 -34 -6 onlyif mysql # use DIV operator for integer division query I rowsort label-9358 SELECT DISTINCT - col1 DIV - col2 + + col0 FROM tab0 cor0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-9358 SELECT DISTINCT - col1 / - col2 + + col0 FROM tab0 cor0 ---- 132 26 90 query I rowsort SELECT col0 * + col1 * col0 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT ALL tab1.col1 - col1 * - col0 FROM tab1 ---- 104 1053 650 query I rowsort SELECT DISTINCT - col0 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( NULL ) ---- query I rowsort SELECT DISTINCT col2 + col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9364 SELECT DISTINCT - col1 DIV - col2 + col2 * - col2 FROM tab0 AS cor0 ---- -1087 -6723 96 skipif mysql # not compatible query I rowsort label-9364 SELECT DISTINCT - col1 / - col2 + col2 * - col2 FROM tab0 AS cor0 ---- -1087 -6723 96 onlyif mysql # use DIV operator for integer division query I rowsort label-9365 SELECT + col0 + col0 DIV col0 FROM tab2 AS cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-9365 SELECT + col0 + col0 / col0 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT ALL col2 * col2 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT ALL col2 + - tab1.col0 + + col0 AS col2 FROM tab1 ---- 54 57 96 query I rowsort SELECT - col2 * + col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( - col0 ) ---- query I rowsort SELECT DISTINCT col1 + tab2.col2 + col0 FROM tab2 ---- 134 163 65 query I rowsort SELECT DISTINCT col2 + col1 + - tab2.col1 AS col1 FROM tab2 ---- 26 27 38 query III rowsort SELECT * FROM tab0 WHERE NOT ( col0 + - col0 * col0 ) >= col0 * - col1 / - col0 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT DISTINCT + col1 + + col1 * - col2 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT - tab2.col0 + col0 * col0 * col1 + tab2.col2 AS col2 FROM tab2 ---- 106056 1539 358904 query I rowsort SELECT DISTINCT - col2 * - col0 + col2 + + col0 * col0 FROM tab1 ---- 14176 225 7801 query I rowsort SELECT + tab2.col1 + col0 / col0 FROM tab2 WHERE NOT NULL < ( NULL ) ---- query I rowsort SELECT + col0 + - col1 + + col2 * col1 FROM tab2 ---- 1553 708 813 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + tab1.col1 col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT ALL - tab1.col0 - - col1 AS col1 FROM tab1 WHERE NOT + tab1.col2 + col2 * col1 BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT DISTINCT + col0 - + tab2.col1 AS col0 FROM tab2 ---- -24 19 62 query I rowsort SELECT col2 * + col2 + + col0 AS col0 FROM tab1 ---- 2919 3313 9296 query I rowsort SELECT DISTINCT - col0 + + cor0.col1 * col0 AS col2 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT cor0.col2 * - cor0.col0 + + col0 AS col1 FROM tab0 cor0 ---- -7209 -768 0 query I rowsort SELECT - col2 * col2 * + col0 FROM tab0 AS cor0 ---- -26136 -35 -598436 query I rowsort SELECT ALL + tab2.col0 * col1 AS col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT - col1 * + col2 - + col1 FROM tab0 ---- -194 -2924 -7553 onlyif mysql # use DIV operator for integer division query I rowsort label-9386 SELECT - col0 + + col1 DIV - col2 FROM tab1 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-9386 SELECT - col0 + + col1 / - col2 FROM tab1 ---- -3 -64 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-9387 SELECT ALL col0 DIV + col1 - col0 AS col0 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-9387 SELECT ALL col0 / + col1 - col0 AS col0 FROM tab0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-9388 SELECT + col1 * - col1 * col1 + tab0.col2 DIV col2 + col2 * col2 * col1 col2 FROM tab0 ---- -141686 -542401 -912575 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9388 SELECT + col1 * - col1 * col1 + tab0.col2 / col2 + col2 * col2 * col1 col2 FROM tab0 ---- -141686 -542401 -912575 query I rowsort SELECT - col2 * + col2 + col1 + - col0 * + col2 AS col1 FROM tab0 ---- -13931 -1795 61 query I rowsort SELECT DISTINCT + col2 * col2 - + col0 AS col0 FROM tab0 ---- -34 1065 6635 onlyif mysql # use DIV operator for integer division query I rowsort label-9391 SELECT col2 + - col2 * + col1 + col0 DIV col2 FROM tab0 ---- -2805 -61 -7379 skipif mysql # not compatible query I rowsort label-9391 SELECT col2 + - col2 * + col1 + col0 / col2 FROM tab0 ---- -2805 -61 -7379 query I rowsort SELECT col2 + col1 * + col2 + - col0 AS col2 FROM tab0 ---- 2847 63 7455 query I rowsort SELECT ALL - cor0.col1 - + col2 * col2 AS col0 FROM tab0 cor0 ---- -1175 -6815 -98 query I rowsort SELECT ALL col1 * - cor0.col1 + col0 FROM tab0 cor0 ---- -7372 -8192 -9374 query I rowsort SELECT DISTINCT - + col1 - - col2 AS col0 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT + + 98 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0, tab0 AS cor0, tab0 cor1 ---- 972 values hashing to ea0f747588ddf5869ee18a5e22d9f237 query I rowsort SELECT ALL + - col0 * + col0 FROM tab1 cor0 ---- -4096 -6400 -9 query I rowsort SELECT + 76 AS col0 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - cor0.col1 * col1 + cor0.col1 * + col1 col1 FROM tab2 cor0 ---- 1922 578 6962 query I rowsort SELECT ALL + - col1 + ( col0 ) AS col0 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT + + col2 * col0 - - 39 * col2 AS col0 FROM tab2 AS cor0 ---- 1242 3042 4484 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + ( col1 ) * col1 * ( 64 ) col1 FROM tab0 AS cor0 ---- 473320 529895 602141 query I rowsort SELECT - col2 + + col1 * + col0 AS col0 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT DISTINCT col1 * 6 FROM tab2 AS cor0 ---- 102 186 354 query I rowsort SELECT + + col1 * - col0 AS col1 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT - + col0 * - col2 - - col2 * + col2 FROM tab2 AS cor0 ---- 2704 4446 918 onlyif mysql # use DIV operator for integer division query I rowsort label-9408 SELECT DISTINCT col2 + ( 45 + - col0 ) DIV - ( 72 ) FROM tab0 cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-9408 SELECT DISTINCT col2 + ( 45 + - col0 ) / - ( 72 ) FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT ALL + col1 * col0 * 27 - col1 FROM tab2 AS cor0 ---- 124195 36244 5828 query I rowsort SELECT - + col2 * - ( - col1 ) FROM tab2 AS cor0 ---- -1534 -646 -837 query III rowsort SELECT * FROM tab0 WHERE ( + col1 * col1 ) NOT IN ( - col2 * + col2 - col1 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL < - col0 + + col2 - - col0 * + col0 * - col0 ---- query I rowsort SELECT - col2 * - col2 FROM tab0 WHERE NOT ( NULL ) < NULL ---- query I rowsort SELECT DISTINCT - col2 + col2 * col2 FROM tab0 ---- 0 1056 6642 query I rowsort SELECT col0 * + col2 + col0 FROM tab0 ---- 70 7387 816 query III rowsort SELECT ALL * FROM tab1 WHERE NOT col0 > ( NULL ) ---- query I rowsort SELECT - col0 * - col0 + - col1 FROM tab0 ---- 1128 490 7830 query I rowsort SELECT tab0.col2 - + tab0.col0 * - col0 * - tab0.col1 AS col0 FROM tab0 ---- -118824 -49503 -720729 query III rowsort SELECT ALL * FROM tab1 WHERE - col1 / + col2 IN ( col0 * col2 * tab1.col2 ) ---- query I rowsort SELECT + - 58 AS col1 FROM tab2 AS cor0 ---- -58 -58 -58 query I rowsort SELECT - cor1.col2 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT ( col2 ) + 64 FROM tab2 AS cor0 ---- 102 90 91 query I rowsort SELECT tab2.col1 * col1 AS col1 FROM tab2 ---- 289 3481 961 query I rowsort SELECT DISTINCT + tab2.col0 + tab2.col2 * col0 AS col0 FROM tab2 ---- 196 2106 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-9425 SELECT ALL col2 + - col1 * col0 DIV col0 AS col2 FROM tab2 ---- -33 -4 21 skipif mysql # not compatible query I rowsort label-9425 SELECT ALL col2 + - col1 * col0 / col0 AS col2 FROM tab2 ---- -33 -4 21 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9426 SELECT - + col1 * CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-9426 SELECT - + col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT - 85 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 91e44ead5e72fa22f87a57243e232ede query I rowsort SELECT ( 11 ) FROM tab2, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 69116737f3f57e2e3273f6dbb04d036c query I rowsort SELECT ALL - col2 * + ( col0 * col1 ) FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT 40 + 0 FROM tab1 AS cor0 ---- 40 40 40 query I rowsort SELECT ALL - 93 * - cor0.col1 AS col1 FROM tab2 cor0 ---- 1581 2883 5487 query I rowsort SELECT col2 + 31 FROM tab1 ---- 127 85 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9433 SELECT + tab0.col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9433 SELECT + tab0.col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9434 SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2 FROM tab1 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-9434 SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 44 * - col0 * + tab0.col0 col0 FROM tab0 ---- -25344 -348524 -53900 query I rowsort SELECT ALL - - col2 * + col2 + col0 AS col1 FROM tab1 AS cor0 ---- 2919 3313 9296 query I rowsort SELECT ALL - 90 * + tab1.col0 FROM tab1 ---- -270 -5760 -7200 query I rowsort SELECT + + col0 * col2 + cor0.col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT 96 * - col1 + - 49 * - col1 FROM tab1 cor0 ---- -1222 -470 -611 query I rowsort SELECT - 43 * col0 + - col1 * cor0.col0 FROM tab0 cor0 ---- -11926 -3096 -4900 query I rowsort SELECT + 19 AS col0 FROM tab0 ---- 19 19 19 query I rowsort SELECT DISTINCT + 87 + col0 FROM tab1 ---- 151 167 90 query I rowsort SELECT + ( + col0 + tab2.col0 ) FROM tab2 ---- 14 156 158 query I rowsort SELECT ALL + cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT + - col0 * cor0.col1 + + col1 + - col2 AS col1 FROM tab2 cor0 ---- -1364 -213 -4569 query I rowsort SELECT 68 + - col2 + - col1 AS col2 FROM tab1 AS cor0 ---- -12 -41 1 query I rowsort SELECT col1 * col2 + - col0 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT ALL - cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT - col2 * col1 * - col2 FROM tab0 AS cor0 ---- 611884 93654 97 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 DISTINCT + + col0 * + col0 FROM tab0 cor0 ---- 1225 576 7921 query I rowsort SELECT ALL + + cor0.col1 * cor0.col0 * col0 - cor0.col2 FROM tab0 AS cor0 ---- 118824 49503 720729 onlyif mysql # use DIV operator for integer division query I rowsort label-9453 SELECT ALL - tab1.col0 - - 12 DIV - col1 AS col1 FROM tab1 ---- -3 -65 -80 skipif mysql # not compatible query I rowsort label-9453 SELECT ALL - tab1.col0 - - 12 / - col1 AS col1 FROM tab1 ---- -3 -65 -80 query I rowsort SELECT DISTINCT 69 - 60 * col2 AS col2 FROM tab2 ---- -1491 -1551 -2211 query I rowsort SELECT ALL - col1 - ( col0 ) * col1 * + col2 FROM tab1 ---- -36490 -4238 -99853 query I rowsort SELECT - col0 + col1 * col0 - col2 FROM tab1 ---- 21 519 864 query I rowsort SELECT ALL + + col0 * + cor0.col2 + - col0 * + col1 + col1 AS col2 FROM tab1 AS cor0 ---- 110 3018 6653 query I rowsort SELECT + + col0 * - 69 AS col2 FROM tab0 AS cor0 ---- -1656 -2415 -6141 query I rowsort SELECT + - col1 * 24 FROM tab1 AS cor0 ---- -240 -312 -624 query I rowsort SELECT + col1 * col0 + + col1 + col1 * col1 AS col1 FROM tab2 AS cor0 ---- 1209 1649 8142 query I rowsort SELECT DISTINCT - - col1 + + col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT ALL col2 + + cor0.col0 AS col1 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT + + 55 + - col1 + - cor0.col2 * col2 FROM tab2 AS cor0 ---- -1406 -680 -705 query I rowsort SELECT DISTINCT + + cor0.col0 * + col1 * + col0 FROM tab1 AS cor0 ---- 234 40960 83200 onlyif mysql # use DIV operator for integer division query I rowsort label-9465 SELECT ALL + + 78 * col0 DIV col2 FROM tab1 AS cor0 ---- 4 65 87 skipif mysql # not compatible query I rowsort label-9465 SELECT ALL + + 78 * col0 / col2 FROM tab1 AS cor0 ---- 4 65 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + - cor0.col1 * col0 + - cor0.col1 * - col2 col2 FROM tab2 cor0 ---- -3127 -714 589 onlyif mysql # use DIV operator for integer division query I rowsort label-9467 SELECT - ( + col0 ) + col2 * cor0.col1 + + col2 DIV - col2 FROM tab1 AS cor0 ---- 1167 1400 505 skipif mysql # not compatible query I rowsort label-9467 SELECT - ( + col0 ) + col2 * cor0.col1 + + col2 / - col2 FROM tab1 AS cor0 ---- 1167 1400 505 query I rowsort SELECT - 25 + col0 * cor0.col2 FROM tab0 AS cor0 ---- 10 7273 767 query I rowsort SELECT ALL - + col1 + cor0.col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT ALL col2 * ( + tab2.col1 ) AS col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT 69 * - col1 * - col1 FROM tab1 ---- 11661 46644 6900 query I rowsort SELECT + tab2.col2 * - col1 * col0 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT ( col0 ) * + col1 AS col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT 54 * - ( - col0 ) + 56 AS col2 FROM tab0 ---- 1352 1946 4862 onlyif mysql # use DIV operator for integer division query I rowsort label-9476 SELECT DISTINCT + col1 * col0 DIV + col0 AS col2 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-9476 SELECT DISTINCT + col1 * col0 / + col0 AS col2 FROM tab0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( ( - col0 ) ) * - col2 col2 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 61 col0 FROM tab2 AS cor0 ---- 61 query I rowsort SELECT ALL + - cor0.col1 * 73 FROM tab0 AS cor0 ---- -6278 -6643 -7081 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 29 col0 FROM tab2, tab2 AS cor0 ---- -29 query I rowsort SELECT DISTINCT - cor0.col2 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2 ---- -54 -57 -96 query I rowsort SELECT ALL + col2 * 15 FROM tab2 ---- 390 405 570 query I rowsort SELECT ALL + - ( ( col0 ) ) FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT - 71 * col2 * col1 FROM tab0 AS cor0 ---- -201498 -529802 -6887 query I rowsort SELECT DISTINCT col1 * ( col0 + - col0 ) AS col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - col1 * - 6 FROM tab2 AS cor0 ---- 102 186 354 query I rowsort SELECT ALL - + 45 FROM tab2 AS cor0 ---- -45 -45 -45 query I rowsort SELECT DISTINCT - col0 * - tab2.col2 AS col0 FROM tab2 ---- 189 2028 3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9489 SELECT - col1 + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9489 SELECT - col1 + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 60 * + cor0.col1 FROM tab0 AS cor0 ---- 5160 5460 5820 query I rowsort SELECT + + 53 + - col2 AS col1 FROM tab2 AS cor0 ---- 15 26 27 query I rowsort SELECT - ( tab1.col0 ) + - col0 * 86 + - ( col2 ) FROM tab1 ---- -315 -5625 -7056 query I rowsort SELECT ALL - + cor0.col0 + + col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 55 * col1 + + col1 AS col1 FROM tab2 cor0 ---- 1736 3304 952 onlyif mysql # use DIV operator for integer division query I rowsort label-9495 SELECT - col0 + col0 DIV + col1 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-9495 SELECT - col0 + col0 / + col1 col1 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9496 SELECT - col1 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0 ---- -172 -182 -194 skipif mysql # not compatible query I rowsort label-9496 SELECT - col1 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 ---- -172 -182 -194 query I rowsort SELECT ALL 66 - 42 FROM tab2, tab0 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT ALL col0 * + col2 * - col2 AS col1 FROM tab0 AS cor0 ---- -26136 -35 -598436 query I rowsort SELECT DISTINCT + col0 * col2 + + ( col2 * - ( + col0 ) + cor0.col2 ) FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + col2 col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - - col0 + - col0 * 79 FROM tab1 AS cor0 ---- -234 -4992 -6240 query I rowsort SELECT DISTINCT - col0 * - 50 FROM tab2 AS cor0 ---- 350 3900 3950 query I rowsort SELECT DISTINCT col0 * - cor0.col0 + col0 * 18 FROM tab0 AS cor0 ---- -144 -595 -6319 query I rowsort SELECT tab0.col2 * col2 + - col0 AS col0 FROM tab0 ---- -34 1065 6635 onlyif mysql # use DIV operator for integer division query I rowsort label-9505 SELECT DISTINCT - + ( + col2 ) DIV col0 AS col0 FROM tab0 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-9505 SELECT DISTINCT - + ( + col2 ) / col0 AS col0 FROM tab0 AS cor0 ---- -1 0 query I rowsort SELECT ALL + 15 AS col2 FROM tab1 cor0 ---- 15 15 15 query I rowsort SELECT + col0 * col0 * + col0 + - tab0.col1 * ( col0 ) FROM tab0 ---- 11760 39480 696870 query I rowsort SELECT col0 + 68 AS col0 FROM tab1 ---- 132 148 71 query I rowsort SELECT col0 + - 20 AS col1 FROM tab1 ---- -17 44 60 skipif mysql # not compatible query I rowsort SELECT CAST ( + 65 AS REAL ) + - col2 FROM tab1 AS cor0 ---- -31 11 8 query I rowsort SELECT + + ( + col1 ) * col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT ALL + 68 + - ( col2 + ( + ( col0 ) ) ) FROM tab1 AS cor0 ---- -108 -53 11 query I rowsort SELECT 2 + + 94 FROM tab1 AS cor0 ---- 96 96 96 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2 ---- 972 values hashing to bcf430f79386b43bc4077271fcd15cf0 query I rowsort SELECT cor1.col0 * cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 5f0d3c96eb7e6285a2259b8e887cbdfe query I rowsort SELECT ALL ( + ( col2 ) ) FROM tab1 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-9517 SELECT 34 + col1 DIV + col0 AS col0 FROM tab2 ---- 34 34 38 skipif mysql # not compatible query I rowsort label-9517 SELECT 34 + col1 / + col0 AS col0 FROM tab2 ---- 34 34 38 query I rowsort SELECT + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 14 * + col1 col1 FROM tab0 AS cor0 ---- 1204 1274 1358 query I rowsort SELECT DISTINCT 88 + 4 * col2 FROM tab2 AS cor0 ---- 192 196 240 query I rowsort SELECT DISTINCT tab0.col0 * - col0 FROM tab0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT 74 * - col0 FROM tab0 ---- -1776 -2590 -6586 query I rowsort SELECT ALL 78 + - col2 AS col2 FROM tab2 ---- 40 51 52 query I rowsort SELECT DISTINCT + 73 + col1 FROM tab0 ---- 159 164 170 query I rowsort SELECT col1 * + col2 + + 44 AS col1 FROM tab0 ---- 141 2882 7506 query I rowsort SELECT - + cor0.col1 * - ( col1 ) AS col1 FROM tab1 AS cor0 ---- 100 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-9527 SELECT col1 * col0 DIV 51 FROM tab0 ---- 158 40 66 skipif mysql # not compatible query I rowsort label-9527 SELECT col1 * col0 / 51 FROM tab0 ---- 158 40 66 query I rowsort SELECT tab0.col1 * + col2 AS col2 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT 65 + - col0 + col2 AS col0 FROM tab1 ---- 116 58 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 83 + + col2 col0 FROM tab2 ---- 109 110 121 query I rowsort SELECT ALL + - ( 82 ) + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 ---- 27 values hashing to cfb3bc5f6c19298ded1e39447ec79a22 query I rowsort SELECT + tab0.col2 + + col1 AS col0 FROM tab0 ---- 119 173 98 query I rowsort SELECT - cor0.col2 + - 29 AS col2 FROM tab1 cor0 ---- -125 -83 -86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * 13 + col1 col1 FROM tab2 cor0 ---- 382 397 511 query I rowsort SELECT ALL col1 + + 98 FROM tab1 AS cor0 ---- 108 111 124 onlyif mysql # use DIV operator for integer division query I rowsort label-9536 SELECT DISTINCT - - col2 DIV + 64 + + col2 AS col2 FROM tab1 AS cor0 ---- 54 57 97 skipif mysql # not compatible query I rowsort label-9536 SELECT DISTINCT - - col2 / + 64 + + col2 AS col2 FROM tab1 AS cor0 ---- 54 57 97 query I rowsort SELECT DISTINCT col2 * col0 * - ( - col0 ) - + col0 AS col2 FROM tab0 cor0 ---- 1190 18984 649433 query I rowsort SELECT + + cor0.col2 + 13 * - col0 AS col0 FROM tab2 AS cor0 ---- -64 -988 -989 onlyif mysql # use DIV operator for integer division query I rowsort label-9539 SELECT ALL + col2 DIV - col1 AS col0 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-9539 SELECT ALL + col2 / - col1 AS col0 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT DISTINCT + col2 + tab0.col2 FROM tab0 ---- 164 2 66 query I rowsort SELECT DISTINCT - 24 AS col2 FROM tab2 ---- -24 onlyif mysql # use DIV operator for integer division query I rowsort label-9542 SELECT + + col2 + col1 + ( + col0 ) DIV + col0 FROM tab0 AS cor0 ---- 120 174 99 skipif mysql # not compatible query I rowsort label-9542 SELECT + + col2 + col1 + ( + col0 ) / + col0 FROM tab0 AS cor0 ---- 120 174 99 query I rowsort SELECT - 64 + - col2 AS col0 FROM tab0 AS cor0 ---- -146 -65 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 22 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7dda382e7c08428abac8600fd696eb3e query I rowsort SELECT + cor0.col1 * ( col2 + col0 ) AS col2 FROM tab2 AS cor0 ---- 1054 1989 6136 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + col0 col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT ALL - col0 * 90 + - 15 FROM tab1 AS cor0 ---- -285 -5775 -7215 query I rowsort SELECT DISTINCT cor0.col2 - + 10 * + col0 AS col2 FROM tab1 AS cor0 ---- -583 -704 24 query I rowsort SELECT + cor0.col0 + + col2 * ( col0 ) AS col1 FROM tab1 AS cor0 ---- 165 3712 7760 onlyif mysql # use DIV operator for integer division query I rowsort label-9550 SELECT col2 DIV - 84 AS col1 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9550 SELECT col2 / - 84 AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT tab0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT col2 + 9 FROM tab0 cor0 ---- 10 42 91 query I rowsort SELECT ALL + col1 - col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col2 * ( col2 ) * col0 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT ALL - cor0.col0 * 66 AS col1 FROM tab2 AS cor0 ---- -462 -5148 -5214 query I rowsort SELECT ALL cor0.col2 AS col2 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT 99 AS col0 FROM tab0 AS cor0 ---- 99 99 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9558 SELECT + CAST( - 92 AS SIGNED ) + - cor0.col2 FROM tab2 AS cor0 ---- -118 -119 -130 skipif mysql # not compatible query I rowsort label-9558 SELECT + CAST ( - 92 AS INTEGER ) + - cor0.col2 FROM tab2 AS cor0 ---- -118 -119 -130 query I rowsort SELECT + + ( col1 ) + col2 + + col1 FROM tab2 AS cor0 ---- 144 72 89 query I rowsort SELECT col1 - col2 * col0 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT + 34 + 16 AS col0 FROM tab2 AS cor0 ---- 50 50 50 query I rowsort SELECT 23 + 93 FROM tab0 cor0 ---- 116 116 116 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( cor0.col1 ) col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab1.col0 + col2 col2 FROM tab1 ---- -7 16 51 query I rowsort SELECT - - cor0.col1 * col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ( + ( cor0.col1 ) ) + col2 + 14 AS col0 FROM tab0 AS cor0 ---- 112 133 187 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9567 SELECT 96 * + col2 * col1 + + ( + ( col1 ) ) * + CAST( NULL AS SIGNED ) * - 12 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9567 SELECT 96 * + col2 * col1 + + ( + ( col1 ) ) * + CAST ( NULL AS INTEGER ) * - 12 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 23 col0 FROM tab0 AS cor0 ---- 23 23 23 query I rowsort SELECT - col0 + col0 + col2 * - col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # use DIV operator for integer division query I rowsort label-9570 SELECT DISTINCT + cor0.col1 + col0 DIV - cor0.col0 FROM tab2 cor0 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-9570 SELECT DISTINCT + cor0.col1 + col0 / - cor0.col0 FROM tab2 cor0 ---- 16 30 58 query I rowsort SELECT ALL 1 + + col2 AS col2 FROM tab0 AS cor0 ---- 2 34 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 53 col1 FROM tab1 ---- 53 query I rowsort SELECT DISTINCT ( 16 ) FROM tab1 ---- 16 query I rowsort SELECT 18 - - cor0.col2 * + 99 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 4ffce806354d1a06b1c0583210298026 query I rowsort SELECT ALL + 95 * col2 * + col0 - - 31 * + cor0.col1 * ( - col1 ) FROM tab1 AS cor0 ---- -5566 343460 724361 query I rowsort SELECT col0 * + col1 + + col0 AS col0 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT DISTINCT - col0 + cor0.col0 AS col1 FROM tab1 cor0 ---- 0 query I rowsort SELECT DISTINCT + - col2 * - cor0.col1 + col1 * 57 AS col1 FROM tab1 AS cor0 ---- 1140 1989 2886 query I rowsort SELECT ALL + - 14 FROM tab1 AS cor0 ---- -14 -14 -14 query I rowsort SELECT - 9 + - col2 - col2 AS col2 FROM tab2 AS cor0 ---- -61 -63 -85 query I rowsort SELECT DISTINCT cor0.col1 + col0 * col0 AS col2 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT - - col0 * - cor0.col1 + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT ALL - 92 AS col2 FROM tab2 AS cor0 ---- -92 -92 -92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 * + col2 + ( + col0 ) * col1 col1 FROM tab0 cor0 ---- -774 3298 637 query I rowsort SELECT + col0 * - col2 + - col2 AS col0 FROM tab1 cor0 ---- -216 -3705 -7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 88 + - col1 * col0 col1 FROM tab1 AS cor0 ---- -552 -952 10 query I rowsort SELECT + col0 + cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT ALL + 62 * col0 AS col1 FROM tab2 AS cor0 ---- 434 4836 4898 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT ALL CAST ( + col2 * - col2 AS INTEGER ) - CAST ( 21 * col0 AS REAL ) col1 FROM tab1 ---- -10896 -2979 -4593 query I rowsort SELECT ALL - 58 - tab2.col0 FROM tab2 ---- -136 -137 -65 query I rowsort SELECT ALL col2 * tab2.col0 - - col1 AS col0 FROM tab2 ---- 2087 220 3019 query I rowsort SELECT DISTINCT 24 + col1 FROM tab2 AS cor0 ---- 41 55 83 query I rowsort SELECT ( col0 + - col2 ) * ( + col1 * col2 ) AS col0 FROM tab2 ---- -16740 26486 79768 query I rowsort SELECT DISTINCT - col1 * tab1.col0 + - col0 AS col0 FROM tab1 ---- -1120 -704 -81 query I rowsort SELECT tab2.col0 - col2 * col2 FROM tab2 ---- -1365 -598 -722 query I rowsort SELECT ALL 9 + col2 AS col1 FROM tab1 ---- 105 63 66 query I rowsort SELECT ALL col2 + + col2 * - col2 AS col2 FROM tab0 ---- -1056 -6642 0 query I rowsort SELECT + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab0 AS cor2 ---- 243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( + col2 ) * col2 col0 FROM tab1 AS cor0 ---- -2916 -3249 -9216 onlyif mysql # use DIV operator for integer division query I rowsort label-9600 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-9600 SELECT ALL + ( col0 ) / col1 col1 FROM tab1 AS cor0 ---- 0 6 6 query I rowsort SELECT ALL - tab0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT + 70 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5ce922251d9fefa308e9f603b1333b8d query I rowsort SELECT ALL - 90 + + col2 * col0 * - col1 AS col2 FROM tab2 ---- -119742 -51124 -5949 onlyif mysql # use DIV operator for integer division query I rowsort label-9604 SELECT ALL col1 * + ( + col1 ) - col1 DIV col1 FROM tab1 ---- 168 675 99 skipif mysql # not compatible query I rowsort label-9604 SELECT ALL col1 * + ( + col1 ) - col1 / col1 FROM tab1 ---- 168 675 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * col1 - - col1 col2 FROM tab1 ---- 104 1053 650 query I rowsort SELECT + + cor0.col2 * 0 AS col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9607 SELECT ALL - col2 DIV ( col1 ) + + col0 FROM tab0 cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-9607 SELECT ALL - col2 / ( col1 ) + + col0 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT + col0 - col0 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT + cor0.col0 * col0 + col2 * - ( ( + col2 ) * col1 ) FROM tab1 AS cor0 ---- -113408 -28394 -75807 query I rowsort SELECT DISTINCT + + col1 + 59 AS col0 FROM tab1 AS cor0 ---- 69 72 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 0 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT DISTINCT col2 * + col1 + col1 FROM tab1 AS cor0 ---- 1261 1430 580 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * ( col0 ) col1 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT cor0.col1 AS col2 FROM tab2, tab1 cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 query I rowsort SELECT DISTINCT col2 * + 21 FROM tab1 ---- 1134 1197 2016 query I rowsort SELECT DISTINCT + + col0 - - col0 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT ALL - col1 * ( - 34 * + col2 ) FROM tab1 AS cor0 ---- 19380 42432 47736 query I rowsort SELECT - col1 * + 43 + + 69 FROM tab0 AS cor0 ---- -3629 -3844 -4102 query I rowsort SELECT + col0 * col0 + + col1 AS col2 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT ALL - - col2 + - 61 AS col1 FROM tab1 AS cor0 ---- -4 -7 35 onlyif mysql # use DIV operator for integer division query I rowsort label-9621 SELECT ALL + cor0.col0 * ( - col1 ) - + col1 DIV col1 FROM tab0 AS cor0 ---- -2065 -3396 -8100 skipif mysql # not compatible query I rowsort label-9621 SELECT ALL + cor0.col0 * ( - col1 ) - + col1 / col1 FROM tab0 AS cor0 ---- -2065 -3396 -8100 query I rowsort SELECT DISTINCT + 44 * col0 + + col1 AS col2 FROM tab2 ---- 339 3491 3493 query I rowsort SELECT 37 + + col2 FROM tab2 ---- 63 64 75 query I rowsort SELECT ALL 26 * + tab0.col1 + - col2 FROM tab0 ---- 2203 2284 2521 onlyif mysql # use DIV operator for integer division query I rowsort label-9625 SELECT DISTINCT + col2 + 74 * tab1.col1 DIV col2 + col0 * col2 FROM tab1 ---- 251 3717 7786 skipif mysql # not compatible query I rowsort label-9625 SELECT DISTINCT + col2 + 74 * tab1.col1 / col2 + col0 * col2 FROM tab1 ---- 251 3717 7786 query I rowsort SELECT col1 + - col0 * - col2 FROM tab2 ---- 2087 220 3019 onlyif mysql # use DIV operator for integer division query I rowsort label-9627 SELECT + CAST( - 68 AS SIGNED ) DIV col2 + 22 AS col2 FROM tab0 ---- -46 20 22 skipif mysql # not compatible query I rowsort label-9627 SELECT + CAST ( - 68 AS INTEGER ) / col2 + 22 AS col2 FROM tab0 ---- -46 20 22 query I rowsort SELECT ALL 24 * - 18 * + col1 FROM tab2 AS cor0 ---- -13392 -25488 -7344 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab0 cor2 ---- 3645 values hashing to e660b5944e34dd8d75740286862b3252 query I rowsort SELECT ( - col0 ) * - col2 + + 40 + 25 AS col1 FROM tab2 AS cor0 ---- 2093 254 3067 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9631 SELECT - ( - col0 ) + - col1 / + CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9631 SELECT - ( - col0 ) + - col1 / + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 70 FROM tab2 AS cor0 ---- -70 query I rowsort SELECT - col1 * col2 + 34 FROM tab0 cor0 ---- -2804 -63 -7428 query I rowsort SELECT ALL + cor0.col1 + cor0.col1 FROM tab2 AS cor0 ---- 118 34 62 onlyif mysql # use DIV operator for integer division query I rowsort label-9635 SELECT DISTINCT + + 64 * - cor0.col0 + + 11 DIV col0 FROM tab0 AS cor0 ---- -1536 -2240 -5696 skipif mysql # not compatible query I rowsort label-9635 SELECT DISTINCT + + 64 * - cor0.col0 + + 11 / col0 FROM tab0 AS cor0 ---- -1536 -2240 -5696 query I rowsort SELECT ALL col2 * - cor0.col0 - + 69 * + col0 FROM tab0 cor0 ---- -13439 -2448 -2450 query I rowsort SELECT - - col0 * - cor0.col2 + cor0.col2 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT - 28 * col1 + - ( - col1 ) FROM tab2 AS cor0 ---- -1593 -459 -837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * cor0.col1 col2 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT ALL col1 * col0 * + col1 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT + 63 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 query I rowsort SELECT + ( col0 ) * - 25 FROM tab0 AS cor0 ---- -2225 -600 -875 query I rowsort SELECT ALL + 95 * - col2 AS col1 FROM tab0 AS cor0 ---- -3135 -7790 -95 query I rowsort SELECT ALL + 94 * + col1 AS col2 FROM tab0 AS cor0 ---- 8084 8554 9118 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 48 + - col2 col0 FROM tab0 AS cor0 ---- -130 -49 -81 query I rowsort SELECT col1 * col2 + + ( col1 ) FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT + 82 + col0 FROM tab2 AS cor0 ---- 160 161 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9648 SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9648 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 ---- NULL query I rowsort SELECT - ( - col2 ) * + col0 AS col1 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT - - col0 * + col1 * + col2 AS col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT - col2 * + 12 + - col2 AS col1 FROM tab2 AS cor0 ---- -338 -351 -494 query I rowsort SELECT - cor0.col2 + 45 * + 19 FROM tab0 AS cor0 ---- 773 822 854 query I rowsort SELECT - + col2 + + 4 AS col1 FROM tab2 AS cor0 ---- -22 -23 -34 query I rowsort SELECT - 6 * col0 FROM tab0 ---- -144 -210 -534 query I rowsort SELECT ALL + 89 AS col0 FROM tab0 ---- 89 89 89 query I rowsort SELECT ALL 81 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 0a85639e0dddbffdab2cb16b027cb360 query I rowsort SELECT col0 * + col1 + + col1 * - col0 AS col1 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9658 SELECT DISTINCT + 68 DIV + tab1.col1 FROM tab1 ---- 2 5 6 skipif mysql # not compatible query I rowsort label-9658 SELECT DISTINCT + 68 / + tab1.col1 FROM tab1 ---- 2 5 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 97 col2 FROM tab2 AS cor0 ---- 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9660 SELECT - CAST( NULL AS DECIMAL ) * + col0 - - col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9660 SELECT - CAST ( NULL AS REAL ) * + col0 - - col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9661 SELECT + CAST( col0 AS SIGNED ) * + col2 - col1 FROM tab0 AS cor0 ---- -62 706 7207 skipif mysql # not compatible query I rowsort label-9661 SELECT + CAST ( col0 AS INTEGER ) * + col2 - col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT - - cor0.col0 * col0 + - cor0.col0 AS col2 FROM tab0 AS cor0 ---- 1190 552 7832 onlyif mysql # use DIV operator for integer division query I rowsort label-9663 SELECT DISTINCT - col0 DIV ( - col1 ) + + cor0.col2 FROM tab1 AS cor0 ---- 102 54 63 skipif mysql # not compatible query I rowsort label-9663 SELECT DISTINCT - col0 / ( - col1 ) + + cor0.col2 FROM tab1 AS cor0 ---- 102 54 63 query I rowsort SELECT DISTINCT + ( - 11 ) * + col0 - - col1 * + 2 FROM tab1 AS cor0 ---- -684 -854 19 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9665 SELECT DISTINCT CAST( col1 AS SIGNED ) + - cor0.col1 + - col2 AS col2 FROM tab2 cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-9665 SELECT DISTINCT CAST ( col1 AS INTEGER ) + - cor0.col1 + - col2 AS col2 FROM tab2 cor0 ---- -26 -27 -38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9666 SELECT ALL - CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-9666 SELECT ALL - CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT + ( - col0 ) * - col2 + col0 * + col0 * col0 + 2 * - ( col1 ) FROM tab1 AS cor0 ---- 137 265772 519654 query I rowsort SELECT ALL - col2 - + col1 * - col2 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT + 33 + + col1 AS col0 FROM tab0 AS cor0 ---- 119 124 130 query I rowsort SELECT ALL tab2.col0 AS col2 FROM tab2, tab1, tab2 AS cor0, tab2 AS cor1 ---- 81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9671 SELECT CAST( NULL AS SIGNED ) col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9671 SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( col0 AS REAL ) * col1 + 95 FROM tab0 ---- 2159 3490 8194 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2 ---- 3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab2 cor1 ---- 3645 values hashing to 773bb916e463ebc075d701108532badb query I rowsort SELECT ALL + 38 + - ( col0 ) * + col0 + col1 FROM tab1 AS cor0 ---- -4048 -6349 55 query I rowsort SELECT + col1 * + 2 - cor0.col0 FROM tab1 AS cor0 ---- -44 -54 49 query I rowsort SELECT ALL - 60 + - 50 + - col2 FROM tab2 AS cor0 ---- -136 -137 -148 query I rowsort SELECT - 92 + 36 FROM tab1 cor0 ---- -56 -56 -56 query I rowsort SELECT DISTINCT + 63 + + col1 AS col0 FROM tab2 AS cor0 ---- 122 80 94 query I rowsort SELECT ALL 14 FROM tab0 cor0 ---- 14 14 14 query I rowsort SELECT 31 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540 onlyif mysql # use DIV operator for integer division query I rowsort label-9682 SELECT DISTINCT 34 DIV + 67 FROM tab2, tab2 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-9682 SELECT DISTINCT 34 / + 67 FROM tab2, tab2 cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9683 SELECT ALL CAST( NULL AS SIGNED ) + 74 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-9683 SELECT ALL CAST ( NULL AS INTEGER ) + 74 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - col1 * 65 AS col1 FROM tab1 ---- -1690 -650 -845 query I rowsort SELECT DISTINCT cor0.col0 + 93 FROM tab0, tab1, tab1 AS cor0 ---- 157 173 96 query I rowsort SELECT + col2 - 83 * col2 AS col2 FROM tab2 AS cor0 ---- -2132 -2214 -3116 query I rowsort SELECT col2 * col2 * + cor0.col0 + col1 + + 28 AS col0 FROM tab1 cor0 ---- 207974 737321 8802 query I rowsort SELECT ALL - col1 * - ( - 32 ) FROM tab2 ---- -1888 -544 -992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 + col0 col0 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col0 * - col0 * col2 col2 FROM tab0 AS cor0 ---- -1225 -19008 -649522 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 41 * 43 + - col0 * - 22 col2 FROM tab2 cor0 ---- 1917 3479 3501 query I rowsort SELECT ( - col2 ) * cor0.col1 + - col0 AS col2 FROM tab0 AS cor0 ---- -132 -2862 -7551 query I rowsort SELECT DISTINCT + - col1 + - cor0.col2 * col0 AS col2 FROM tab0 cor0 ---- -132 -7389 -878 query I rowsort SELECT - - col2 * + cor0.col0 + - col2 FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT ALL + col2 * col0 * + 70 FROM tab1 cor0 ---- 11340 255360 537600 onlyif mysql # use DIV operator for integer division query I rowsort label-9696 SELECT ALL 41 DIV col0 FROM tab2 ---- 0 0 5 skipif mysql # not compatible query I rowsort label-9696 SELECT ALL 41 / col0 FROM tab2 ---- 0 0 5 query I rowsort SELECT - ( + 62 ) AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to d2579f9395350eda865ff3a2d38a74f6 query I rowsort SELECT - col0 + col0 * 71 FROM tab0 AS cor0 ---- 1680 2450 6230 query I rowsort SELECT col0 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - 94 + col2 AS col0 FROM tab0 AS cor0 ---- -12 -61 -93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + cor0.col1 * col2 col0 FROM tab2 AS cor0 ---- 1612 725 844 onlyif mysql # use DIV operator for integer division query I rowsort label-9702 SELECT - ( col1 ) DIV - col2 col0 FROM tab0 AS cor0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9702 SELECT - ( col1 ) / - col2 col0 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT - col0 + + col2 * - 65 FROM tab2 AS cor0 ---- -1762 -1768 -2549 onlyif mysql # use DIV operator for integer division query I rowsort label-9704 SELECT - - col1 DIV - 16 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-9704 SELECT - - col1 / - 16 FROM tab1 AS cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9705 SELECT + col2 + col2 DIV col1 + + cor0.col1 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-9705 SELECT + col2 + col2 / col1 + + cor0.col1 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-9706 SELECT + + cor0.col1 * col1 DIV col1 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-9706 SELECT + + cor0.col1 * col1 / col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 65 onlyif mysql # use DIV operator for integer division query I rowsort label-9708 SELECT ALL col2 DIV tab0.col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9708 SELECT ALL col2 / tab0.col1 FROM tab0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9709 SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-9709 SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL - col2 * 99 + + col1 FROM tab1 AS cor0 ---- -5320 -5633 -9491 query I rowsort SELECT - col0 + + ( + cor0.col2 ) * + col0 FROM tab1 cor0 ---- 159 3584 7600 query I rowsort SELECT + col0 * ( col0 ) + col1 * + ( col2 ) FROM tab0 cor0 ---- 1322 15383 3414 onlyif mysql # use DIV operator for integer division query I rowsort label-9713 SELECT col1 DIV col1 + + col2 AS col1 FROM tab2 AS cor0 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-9713 SELECT col1 / col1 + + col2 AS col1 FROM tab2 AS cor0 ---- 27 28 39 query I rowsort SELECT ALL - col2 + + col0 * col2 AS col1 FROM tab2 AS cor0 ---- 162 2002 2964 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9715 SELECT DISTINCT + cor0.col2 * + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 1444 676 729 skipif mysql # not compatible query I rowsort label-9715 SELECT DISTINCT + cor0.col2 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT + col0 * - 33 AS col0 FROM tab2 AS cor0 ---- -231 -2574 -2607 query I rowsort SELECT ALL + col0 + - ( col2 * - col2 ) FROM tab2 AS cor0 ---- 1523 736 754 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * - col0 + 26 col0 FROM tab1 AS cor0 ---- -4070 -6374 17 query I rowsort SELECT DISTINCT - 95 * + col2 AS col1 FROM tab2 cor0 ---- -2470 -2565 -3610 query I rowsort SELECT 47 + + col2 + + col0 FROM tab2 AS cor0 ---- 151 164 81 query I rowsort SELECT DISTINCT - tab0.col1 * 0 - - 74 FROM tab0 ---- 74 query I rowsort SELECT ALL - 94 * tab1.col2 FROM tab1, tab2 cor0, tab2, tab0 AS cor1 ---- 81 values hashing to e01f03fd5cf8b45236aff47a0b507afe query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2 ---- 972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col1 + - col2 col2 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT ALL + 7 * col2 - ( + cor0.col0 ) FROM tab0 AS cor0 ---- -28 207 485 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9726 SELECT ALL - + col2 + cor0.col2 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9726 SELECT ALL - + col2 + cor0.col2 - CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col2 * col0 col1 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT 64 * ( - col1 ) - col2 * - col2 FROM tab1 ---- 1252 2609 8384 query I rowsort SELECT ALL - 54 AS col0 FROM tab1 ---- -54 -54 -54 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col2 col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 onlyif mysql # use DIV operator for integer division query I rowsort label-9731 SELECT - col0 + tab2.col2 DIV - col0 FROM tab2 ---- -10 -78 -79 skipif mysql # not compatible query I rowsort label-9731 SELECT - col0 + tab2.col2 / - col0 FROM tab2 ---- -10 -78 -79 query I rowsort SELECT 92 AS col2 FROM tab2 ---- 92 92 92 query I rowsort SELECT ALL + 15 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0 onlyif mysql # use DIV operator for integer division query I rowsort label-9734 SELECT ALL col2 + col0 DIV col2 FROM tab0 AS cor0 ---- 33 36 83 skipif mysql # not compatible query I rowsort label-9734 SELECT ALL col2 + col0 / col2 FROM tab0 AS cor0 ---- 33 36 83 onlyif mysql # use DIV operator for integer division query I rowsort label-9735 SELECT ALL + + col0 * col1 DIV - col0 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-9735 SELECT ALL + + col0 * col1 / - col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT - cor0.col2 + + col0 * - cor0.col1 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT DISTINCT - + col2 * - cor0.col2 + - col1 FROM tab0 AS cor0 ---- -96 1003 6633 query I rowsort SELECT - + col2 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0 ---- -1122 -2 -6806 query I rowsort SELECT ALL - + col1 * + col0 + + col1 * col2 FROM tab2 AS cor0 ---- -3068 -697 620 query I rowsort SELECT DISTINCT col1 + + col2 * - col2 FROM tab1 AS cor0 ---- -2890 -3239 -9203 query I rowsort SELECT ALL - - col0 + - col2 AS col2 FROM tab0 AS cor0 ---- -9 34 7 onlyif mysql # use DIV operator for integer division query I rowsort label-9742 SELECT - col0 DIV - col1 + col0 DIV cor0.col0 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9742 SELECT - col0 / - col1 + col0 / cor0.col0 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + col2 * col0 + col0 AS col1 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT ALL + col1 * + col2 * col0 + col0 AS col2 FROM tab0 ---- 3430 664207 68136 query I rowsort SELECT DISTINCT - col2 + col1 * col0 * col2 AS col1 FROM tab1 ---- 36423 4158 99744 query I rowsort SELECT ALL col0 * - col0 + - col2 FROM tab2 ---- -6110 -6279 -76 onlyif mysql # use DIV operator for integer division query I rowsort label-9747 SELECT + - col0 DIV + cor0.col1 + + col1 + + col2 * col0 FROM tab2 AS cor0 ---- 2086 220 3015 skipif mysql # not compatible query I rowsort label-9747 SELECT + - col0 / + cor0.col1 + + col1 + + col2 * col0 FROM tab2 AS cor0 ---- 2086 220 3015 query I rowsort SELECT + + col2 * + col1 + col1 * col0 FROM tab0 AS cor0 ---- 15561 3492 4902 query I rowsort SELECT ALL + tab1.col1 FROM tab1 cor0 CROSS JOIN tab1 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col2 col1 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-9751 SELECT + col0 * col1 DIV col0 AS col0 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-9751 SELECT + col0 * col1 / col0 AS col0 FROM tab2 AS cor0 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + col0 col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL + col1 * col1 * + col0 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT ALL - col2 * + tab0.col2 AS col1 FROM tab0 ---- -1 -1089 -6724 query I rowsort SELECT + ( col1 * + tab2.col1 ) + col2 + col2 FROM tab2 ---- 1015 3533 365 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col1 + col1 * col2 col0 FROM tab1 AS cor0 ---- 1210 1482 2288 query I rowsort SELECT ALL - col2 + + col0 * - col1 AS col2 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT col2 + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 55 58 85 onlyif mysql # use DIV operator for integer division query I rowsort label-9759 SELECT DISTINCT + col1 DIV tab1.col1 + col2 FROM tab1 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-9759 SELECT DISTINCT + col1 / tab1.col1 + col2 FROM tab1 ---- 55 58 97 query I rowsort SELECT ( + tab0.col0 ) * + col0 + - col1 * col1 + + col1 * + col0 * col0 AS col1 FROM tab0 ---- 110641 42716 720451 query I rowsort SELECT - col1 * tab1.col1 AS col0 FROM tab1 ---- -100 -169 -676 query I rowsort SELECT DISTINCT col0 + - col1 * - col1 AS col2 FROM tab2 ---- 3559 368 968 query I rowsort SELECT + col2 * - col0 + + tab0.col2 + col0 FROM tab0 ---- -7127 -735 1 query I rowsort SELECT col1 * col1 + + tab2.col2 * - col2 + - col0 * + tab2.col0 FROM tab2 ---- -3279 -7396 183 query I rowsort SELECT DISTINCT - col0 + - tab1.col0 AS col1 FROM tab1 ---- -128 -160 -6 query I rowsort SELECT DISTINCT + col0 + col1 * col2 AS col0 FROM tab1 ---- 1328 1407 634 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 col2 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT ALL + col1 * col1 + + col0 FROM tab2 AS cor0 ---- 3559 368 968 query I rowsort SELECT DISTINCT - + col1 * + col1 AS col2 FROM tab2 cor0 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT - tab1.col0 + col0 * + col0 FROM tab1 ---- 4032 6 6320 query I rowsort SELECT + col1 * tab0.col2 - - col1 * + col1 AS col0 FROM tab0 ---- 10234 15743 9506 query I rowsort SELECT DISTINCT + col2 * tab2.col0 / - tab2.col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT col2 * tab1.col0 - col1 AS col0 FROM tab1 ---- 136 3638 7667 query III rowsort SELECT * FROM tab1 WHERE NULL > + col0 ---- query I rowsort SELECT + col1 * col2 * col0 + tab1.col0 AS col2 FROM tab1 ---- 36544 4215 99920 query I rowsort SELECT ALL col1 + + tab0.col1 FROM tab0 ---- 172 182 194 query III rowsort SELECT * FROM tab1 WHERE col2 IN ( col1 - tab1.col1 / col0 ) ---- query I rowsort SELECT - + col2 * + col2 AS col2 FROM tab2 cor0 ---- -1444 -676 -729 query I rowsort SELECT - ( - col2 ) + + col2 AS col0 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT - col2 * col0 + col0 * ( - cor0.col1 ) FROM tab2 AS cor0 ---- -406 -4345 -6630 query I rowsort SELECT DISTINCT + 62 * cor0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 3348 3534 5952 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 57 * cor0.col0 + col1 * ( - col1 * + cor0.col1 ) col0 FROM tab2 AS cor0 ---- -200933 -29392 -410 query I rowsort SELECT DISTINCT - col1 + + tab2.col2 AS col2 FROM tab2 ---- -33 -4 21 query I rowsort SELECT ALL + col0 - - col2 AS col0 FROM tab0 ---- 171 36 57 query IIIIII rowsort SELECT * FROM tab0, tab0 AS cor0 WHERE ( NULL ) >= NULL ---- query I rowsort SELECT ALL col0 + + col0 * + col2 AS col0 FROM tab0 ---- 70 7387 816 query I rowsort SELECT tab1.col1 + - col0 * col2 + col2 AS col1 FROM tab1 ---- -3581 -7571 -82 query I rowsort SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NULL IN ( + col1 + + col1 + + col2 * - col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9789 SELECT DISTINCT col0 * tab1.col0 DIV + col2 + col2 AS col2 FROM tab1 ---- 128 162 54 skipif mysql # not compatible query I rowsort label-9789 SELECT DISTINCT col0 * tab1.col0 / + col2 + col2 AS col2 FROM tab1 ---- 128 162 54 query I rowsort SELECT + col0 + col2 - col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT col2 * + col0 + + col2 AS col1 FROM tab2 ---- 2054 216 3040 onlyif mysql # use DIV operator for integer division query I rowsort label-9792 SELECT ALL tab1.col0 DIV col0 AS col0 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9792 SELECT ALL tab1.col0 / col0 AS col0 FROM tab1 ---- 1 1 1 query I rowsort SELECT - col0 * col0 AS col1 FROM tab2 WHERE ( col1 ) = col1 + - col1 ---- query I rowsort SELECT ALL - col0 + - col1 FROM tab2 ---- -137 -38 -96 query I rowsort SELECT ALL tab0.col2 + + col1 AS col0 FROM tab0 ---- 119 173 98 query I rowsort SELECT DISTINCT col0 + + col0 * - col1 FROM tab2 ---- -1264 -210 -4524 query I rowsort SELECT + tab0.col1 FROM tab0 WHERE - col0 * col1 >= ( col2 ) ---- query I rowsort SELECT col1 - + col2 AS col0 FROM tab2 ---- -21 33 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + - col2 col2 FROM tab0 ---- 0 query I rowsort SELECT + - ( col2 ) + 38 AS col0 FROM tab2 AS cor0 ---- 0 11 12 query I rowsort SELECT DISTINCT - col0 * - col1 * + col2 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL + + ( col2 ) + col2 + + col2 FROM tab0 AS cor0 ---- 246 3 99 query I rowsort SELECT DISTINCT + col1 * + col1 FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT - cor0.col1 + + col1 + 8 * col2 AS col1 FROM tab2 AS cor0 ---- 208 216 304 query I rowsort SELECT DISTINCT - col2 * cor0.col0 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT cor0.col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 ---- 26 27 38 query I rowsort SELECT - col2 * 64 * + tab0.col1 AS col2 FROM tab0 ---- -181632 -477568 -6208 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9808 SELECT ( col2 ) * + CAST( - 27 AS SIGNED ) AS col0 FROM tab0 ---- -2214 -27 -891 skipif mysql # not compatible query I rowsort label-9808 SELECT ( col2 ) * + CAST ( - 27 AS INTEGER ) AS col0 FROM tab0 ---- -2214 -27 -891 onlyif mysql # use DIV operator for integer division query I rowsort label-9809 SELECT DISTINCT + 60 DIV cor0.col1 FROM tab0, tab1, tab0 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-9809 SELECT DISTINCT + 60 / cor0.col1 FROM tab0, tab1, tab0 cor0 ---- 0 query I rowsort SELECT col1 * - col1 * - col1 AS col2 FROM tab1 ---- 1000 17576 2197 query I rowsort SELECT - ( col0 * tab2.col2 ) AS col2 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT cor0.col0 - + col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT + - 90 + - col2 * 40 FROM tab2 AS cor0 ---- -1130 -1170 -1610 query I rowsort SELECT 79 * col1 AS col2 FROM tab2 ---- 1343 2449 4661 query I rowsort SELECT ALL 74 AS col2 FROM tab1, tab0 cor0 ---- 9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31 query I rowsort SELECT DISTINCT - 15 + + col0 AS col1 FROM tab1 AS cor0 ---- -12 49 65 query I rowsort SELECT DISTINCT + 16 + col0 FROM tab1 AS cor0 ---- 19 80 96 query I rowsort SELECT DISTINCT - col2 * cor0.col2 + col0 AS col2 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT + - cor0.col2 * + col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT - col1 * - ( col1 ) FROM tab2 ---- 289 3481 961 query I rowsort SELECT ALL - 79 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 1b7b0b34fe3431fb409719624d12791f query I rowsort SELECT col1 * - col1 - + 9 FROM tab1 ---- -109 -178 -685 query I rowsort SELECT 63 + + col2 FROM tab1 ---- 117 120 159 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9824 SELECT + - CAST( NULL AS SIGNED ) * col0 * + col1 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-9824 SELECT + - CAST ( NULL AS INTEGER ) * col0 * + col1 col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9825 SELECT CAST( 9 AS SIGNED ) FROM tab1 AS cor0 ---- 9 9 9 skipif mysql # not compatible query I rowsort label-9825 SELECT CAST ( 9 AS INTEGER ) FROM tab1 AS cor0 ---- 9 9 9 query I rowsort SELECT ( + 29 ) + col1 AS col2 FROM tab0 AS cor0 ---- 115 120 126 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 69 * - col2 * - col0 col1 FROM tab0 AS cor0 ---- 2415 503562 54648 query I rowsort SELECT col1 + + 98 AS col2 FROM tab2 AS cor0 ---- 115 129 157 onlyif mysql # use DIV operator for integer division query I rowsort label-9829 SELECT DISTINCT + tab0.col2 DIV col0 AS col1 FROM tab0 ---- 0 1 skipif mysql # not compatible query I rowsort label-9829 SELECT DISTINCT + tab0.col2 / col0 AS col1 FROM tab0 ---- 0 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9830 SELECT DISTINCT - CAST( col1 AS SIGNED ) FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-9830 SELECT DISTINCT - CAST ( col1 AS INTEGER ) FROM tab0 ---- -86 -91 -97 query I rowsort SELECT + ( + col2 * col0 ) - + col2 AS col2 FROM tab2 ---- 162 2002 2964 query I rowsort SELECT 65 + col1 * col1 FROM tab1 ---- 165 234 741 query I rowsort SELECT - tab1.col2 * + col2 * col1 + - col1 AS col2 FROM tab1 ---- -119821 -32500 -75842 query I rowsort SELECT - cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9835 SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9835 SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col1 * 33 FROM tab0 ---- 2838 3003 3201 query I rowsort SELECT col2 * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT + col0 * col1 * col1 AS col0 FROM tab1 cor0 ---- 13520 2028 6400 query I rowsort SELECT DISTINCT + cor0.col1 + col2 * col2 FROM tab2 AS cor0 ---- 1461 735 760 onlyif mysql # use DIV operator for integer division query I rowsort label-9840 SELECT ALL - 30 DIV col0 FROM tab2 AS cor0 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-9840 SELECT ALL - 30 / col0 FROM tab2 AS cor0 ---- -4 0 0 query I rowsort SELECT DISTINCT - col1 * + cor0.col2 - + col0 * col2 AS col2 FROM tab2 AS cor0 ---- -1026 -3562 -3648 query I rowsort SELECT ALL - col1 + - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0 ---- 0 2752 7371 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * + col0 - + col1 col0 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT ( col1 + - tab1.col1 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT - + col0 + - col2 + col2 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL - + cor0.col0 + - col0 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT ALL - - 33 + - col2 FROM tab1 AS cor0 ---- -21 -24 -63 query I rowsort SELECT DISTINCT 98 AS col2 FROM tab0 AS cor0 ---- 98 query I rowsort SELECT DISTINCT - cor0.col2 + - col1 * col1 AS col0 FROM tab2 AS cor0 ---- -327 -3507 -988 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9850 SELECT + col0 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-9850 SELECT + col0 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL col0 * - 67 AS col0 FROM tab0 AS cor0 ---- -1608 -2345 -5963 query I rowsort SELECT DISTINCT + + cor0.col2 + + cor0.col0 * 73 FROM tab1 AS cor0 ---- 273 4729 5936 onlyif mysql # use DIV operator for integer division query I rowsort label-9853 SELECT + col0 + 85 + col0 DIV - col2 FROM tab0 AS cor0 ---- 109 173 85 skipif mysql # not compatible query I rowsort label-9853 SELECT + col0 + 85 + col0 / - col2 FROM tab0 AS cor0 ---- 109 173 85 query I rowsort SELECT DISTINCT + + col0 + - col2 + col2 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-9855 SELECT - col0 * - ( + col1 ) + + col0 DIV cor0.col1 + - col0 * col0 FROM tab2 AS cor0 ---- -1481 -4894 168 skipif mysql # not compatible query I rowsort label-9855 SELECT - col0 * - ( + col1 ) + + col0 / cor0.col1 + - col0 * col0 FROM tab2 AS cor0 ---- -1481 -4894 168 onlyif mysql # use DIV operator for integer division query I rowsort label-9856 SELECT + + col2 DIV - cor0.col1 + - col0 * + col2 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9856 SELECT + + col2 / - cor0.col1 + - col0 * + col2 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - col0 * col2 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col1 * + col2 col0 FROM tab1 cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-9859 SELECT + 99 DIV col1 AS col2 FROM tab1 AS cor0 ---- 3 7 9 skipif mysql # not compatible query I rowsort label-9859 SELECT + 99 / col1 AS col2 FROM tab1 AS cor0 ---- 3 7 9 query I rowsort SELECT DISTINCT - cor0.col1 * cor0.col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL + 33 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5 query I rowsort SELECT col2 + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + cor0.col2 col0 FROM tab2 AS cor0 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 93 col0 FROM tab0, tab1 AS cor0 ---- 93 query I rowsort SELECT + tab1.col0 - + tab1.col0 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT tab2.col2 * + col1 + col1 * col2 AS col2 FROM tab2 ---- 1292 1674 3068 query I rowsort SELECT ALL - cor0.col1 + - col2 AS col0 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT + + col2 + - col1 AS col1 FROM tab0 AS cor0 ---- -53 -9 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9869 SELECT col2 * + col1 + cor0.col0 + - col0 * - CAST( + cor0.col2 AS SIGNED ) FROM tab2 cor0 ---- 1033 3640 3727 skipif mysql # not compatible query I rowsort label-9869 SELECT col2 * + col1 + cor0.col0 + - col0 * - CAST ( + cor0.col2 AS INTEGER ) FROM tab2 cor0 ---- 1033 3640 3727 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + 29 col2 FROM tab0 AS cor0 ---- 111 30 62 query I rowsort SELECT + ( - 86 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da query I rowsort SELECT + 49 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT - col1 - + 73 * col1 FROM tab1 AS cor0 ---- -1924 -740 -962 query I rowsort SELECT DISTINCT - + cor0.col1 AS col0 FROM tab2 cor0 ---- -17 -31 -59 query I rowsort SELECT + + col0 * - ( 79 ) - - col1 FROM tab1 AS cor0 ---- -211 -5046 -6307 query I rowsort SELECT ALL cor0.col1 * ( col0 + col0 * col2 ) FROM tab1 AS cor0 ---- 100880 37120 4290 query I rowsort SELECT DISTINCT col1 * ( + col0 ) FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - + col1 * - col1 FROM tab2 cor0 ---- 289 3481 961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9879 SELECT ALL + col0 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9879 SELECT ALL + col0 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + col0 * + 94 FROM tab0 AS cor0 ---- 2256 3290 8366 query I rowsort SELECT DISTINCT - - col1 + + cor0.col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT DISTINCT + col1 * - col1 + + cor0.col2 FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT + col1 * col1 + - col1 * 18 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 5934 6734 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 26 col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 47d0574274146de273829785364ada39 query I rowsort SELECT - 29 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 0cc9ddad93fc783055518ae4b6be054b query I rowsort SELECT + 59 FROM tab2, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9888 SELECT DISTINCT + col2 + - col1 * - CAST( 84 AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0 ---- 621297 695686 790357 skipif mysql # not compatible query I rowsort label-9888 SELECT DISTINCT + col2 + - col1 * - CAST ( 84 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0 ---- 621297 695686 790357 query I rowsort SELECT DISTINCT + 60 * col1 - col2 * 19 FROM tab1 AS cor0 ---- -1044 -483 534 query I rowsort SELECT DISTINCT - col2 + col1 * + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT ALL 79 + col0 * + 89 AS col2 FROM tab2 AS cor0 ---- 702 7021 7110 onlyif mysql # use DIV operator for integer division query I rowsort label-9892 SELECT - col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-9892 SELECT - col2 / cor0.col1 AS col0 FROM tab2 AS cor0 ---- -2 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * tab0.col0 * col1 - + tab0.col2 col2 FROM tab0 ---- 3394 664036 68079 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1, tab0 cor0, tab1 AS cor1 ---- 972 values hashing to 7942394eb7766dfb9ea95b7805ff595d query I rowsort SELECT col2 * - 31 + col0 * + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -795 4984 5200 query I rowsort SELECT tab0.col0 + - tab0.col1 AS col2 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to cd2ed0f8f28bdf79fb96cc708de5c5ff onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9897 SELECT DISTINCT 85 * + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9897 SELECT DISTINCT 85 * + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 26 col2 FROM tab2, tab1, tab0 cor0 ---- 27 values hashing to ede8226bb7e602e221f9d98345b4da37 query I rowsort SELECT + + 4 AS col1 FROM tab1 cor0 ---- 4 4 4 query I rowsort SELECT DISTINCT + + 98 * col2 + 26 * 69 AS col2 FROM tab0 AS cor0 ---- 1892 5028 9830 query I rowsort SELECT ALL cor0.col2 AS col2 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT - 95 + + col2 * col2 AS col1 FROM tab0 ---- -94 6629 994 query I rowsort SELECT col0 * + 71 FROM tab1 AS cor0 ---- 213 4544 5680 query I rowsort SELECT ALL 63 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to c3eea92c46f2c49716f386a58b575025 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 77 + col2 * + col2 * col1 col1 FROM tab2 ---- 22676 24625 39961 query I rowsort SELECT col1 * + 68 * ( tab2.col1 + col0 * - 0 ) AS col2 FROM tab2 ---- 19652 236708 65348 query I rowsort SELECT + col1 * + ( col1 ) FROM tab1 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + ( + col2 ) col0 FROM tab2 AS cor0 ---- -41 -52 20 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9909 SELECT + CAST( NULL AS SIGNED ) + - tab1.col2 * - col0 col2 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9909 SELECT + CAST ( NULL AS INTEGER ) + - tab1.col2 * - col0 col2 FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9910 SELECT ALL - 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-9910 SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + 99 col1 FROM tab2 ---- 125 126 137 query I rowsort SELECT col1 + col0 + cor0.col2 * col0 AS col1 FROM tab0 AS cor0 ---- 167 7478 902 query I rowsort SELECT ALL + ( tab0.col2 + col2 ) FROM tab0 ---- 164 2 66 query I rowsort SELECT + - 21 * col1 * + ( + col2 ) FROM tab1 AS cor0 ---- -11970 -26208 -29484 query I rowsort SELECT DISTINCT - col2 + col2 * + col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT DISTINCT col0 + col1 * - 59 AS col0 FROM tab0 cor0 ---- -5050 -5280 -5688 query I rowsort SELECT ALL - + col1 + - col2 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT ALL - - col1 * - col2 + col1 * col1 FROM tab1 AS cor0 ---- -1079 -470 -728 query I rowsort SELECT DISTINCT col2 * - 28 * col1 FROM tab2 ---- -18088 -23436 -42952 query I rowsort SELECT + + 51 * + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 4386 4641 4947 query I rowsort SELECT + 67 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to b56f8a4f1fcebc9802481256df61e97c onlyif mysql # use DIV operator for integer division query I rowsort label-9922 SELECT + + 94 DIV + col0 col0 FROM tab0 AS cor0 ---- 1 2 3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9922 SELECT + + 94 / + col0 col0 FROM tab0 AS cor0 ---- 1 2 3 query I rowsort SELECT DISTINCT ( 11 ) + col0 * + 70 * + cor0.col0 + - col2 AS col1 FROM tab2 AS cor0 ---- 3414 425865 436843 onlyif mysql # use DIV operator for integer division query I rowsort label-9924 SELECT + 48 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-9924 SELECT + 48 / col1 col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 27 * col2 FROM tab1 ---- 1458 1539 2592 query I rowsort SELECT ALL - ( - col0 ) + 80 * + col2 AS col1 FROM tab0 AS cor0 ---- 115 2664 6649 query I rowsort SELECT - col0 * - col0 + - ( - col0 * col2 ) FROM tab0 AS cor0 ---- 1260 1368 15219 onlyif mysql # use DIV operator for integer division query I rowsort label-9928 SELECT + - cor0.col2 + + col1 DIV col2 FROM tab0 AS cor0 ---- -31 -81 96 skipif mysql # not compatible query I rowsort label-9928 SELECT + - cor0.col2 + + col1 / col2 FROM tab0 AS cor0 ---- -31 -81 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9929 SELECT DISTINCT + col0 * - col1 * CAST( - 63 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0 ---- 130056 213920 510326 skipif mysql # not compatible query I rowsort label-9929 SELECT DISTINCT + col0 * - col1 * CAST ( - 63 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0 ---- 130056 213920 510326 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 42 + + col0 - 5 col0 FROM tab1 AS cor0 ---- 101 117 40 query I rowsort SELECT + ( - col1 + + col0 ) FROM tab0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 4 - 27 col0 FROM tab1 ---- -23 -23 -23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9933 SELECT - col1 * + 51 * cor0.col1 + col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9933 SELECT - col1 * + 51 * cor0.col1 + col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col1 * 76 FROM tab0 AS cor0 ---- 6536 6916 7372 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9935 SELECT DISTINCT - + col0 + - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9935 SELECT DISTINCT - + col0 + - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9936 SELECT - col1 / col0 + + col2 * + col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9936 SELECT - col1 / col0 + + col2 * + col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 84 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a query I rowsort SELECT ALL col1 + + ( col2 ) + col2 FROM tab2 ---- 111 85 93 query I rowsort SELECT ALL - col1 + + col1 + - 86 * - col2 * + col0 AS col1 FROM tab1 ---- 13932 313728 660480 query I rowsort SELECT col2 * - 86 * - 10 AS col1 FROM tab0 ---- 28380 70520 860 onlyif mysql # use DIV operator for integer division query I rowsort label-9941 SELECT ALL - col2 DIV col1 + col0 FROM tab2 ---- 7 77 78 skipif mysql # not compatible query I rowsort label-9941 SELECT ALL - col2 / col1 + col0 FROM tab2 ---- 7 77 78 query I rowsort SELECT DISTINCT - ( + 65 ) + col0 FROM tab0 AS cor0 ---- -30 -41 24 query I rowsort SELECT ALL - ( cor0.col1 ) - col1 * - cor0.col1 * cor0.col0 FROM tab1 AS cor0 ---- 13507 2002 6390 query I rowsort SELECT DISTINCT - ( + cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL - col2 * - col2 + + col0 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT + col0 - + 95 * + 94 AS col0 FROM tab1 ---- -8850 -8866 -8927 query I rowsort SELECT col1 * 3 + col1 * col0 FROM tab1 ---- 1079 156 670 query I rowsort SELECT DISTINCT col0 * ( col1 ) + - col1 FROM tab0 ---- 1978 3298 8008 query I rowsort SELECT ALL - - ( + cor0.col2 ) FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT - - col0 + col1 AS col1 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT col2 + - 63 FROM tab0 AS cor0 ---- -30 -62 19 query I rowsort SELECT + - cor0.col2 + - ( + col0 ) AS col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT + + ( + 53 ) AS col1 FROM tab2 AS cor0 ---- 53 53 53 query I rowsort SELECT ALL col1 * - col1 + + cor0.col2 - - col0 FROM tab2 AS cor0 ---- -172 -3377 -927 query I rowsort SELECT DISTINCT - + col0 + - col0 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT ALL - 13 + + col0 * - col0 AS col0 FROM tab2 AS cor0 ---- -6097 -62 -6254 query I rowsort SELECT - col0 + + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 182 1950 2923 query I rowsort SELECT ALL col1 + col1 * col0 FROM tab1 AS cor0 ---- 104 1053 650 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col1 ) col2 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT - col2 + 21 + - col2 FROM tab0 AS cor0 ---- -143 -45 19 query I rowsort SELECT + col1 + - col2 * + 73 - tab1.col2 AS col0 FROM tab1 ---- -3970 -4208 -7091 query I rowsort SELECT - col0 * col0 - + col1 * + col1 AS col1 FROM tab1 AS cor0 ---- -4196 -6569 -685 query I rowsort SELECT + col0 * + col0 + + 11 FROM tab1 AS cor0 ---- 20 4107 6411 onlyif mysql # use DIV operator for integer division query I rowsort label-9964 SELECT col1 DIV col2 + - ( 81 ) AS col0 FROM tab0 AS cor0 ---- -79 -80 16 skipif mysql # not compatible query I rowsort label-9964 SELECT col1 / col2 + - ( 81 ) AS col0 FROM tab0 AS cor0 ---- -79 -80 16 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 97 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to c73fa6978df8525c99d6bc792bb27123 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * col2 - - 70 col0 FROM tab0 AS cor0 ---- 167 2908 7532 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * col2 - 10 col0 FROM tab1 cor0 ---- 152 3638 7670 query I rowsort SELECT ALL - col0 * - 76 FROM tab2 cor0 ---- 532 5928 6004 query I rowsort SELECT - col2 * + col0 + col0 AS col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-9970 SELECT 13 DIV - col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9970 SELECT 13 / - col1 FROM tab0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * - col1 col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT - + col0 * col2 - cor0.col1 FROM tab1 AS cor0 ---- -188 -3658 -7693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 39 col2 FROM tab2, tab2 AS cor0 ---- 39 skipif mysql # not compatible query I rowsort SELECT - CAST ( + col2 * col2 AS REAL ) + tab2.col0 AS col2 FROM tab2 ---- -1365 -598 -722 query I rowsort SELECT 27 + - 60 * - tab0.col0 FROM tab0 ---- 1467 2127 5367 query I rowsort SELECT ALL - 96 * 13 AS col1 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 955a10ccc1081fb34423d37772bbab93 query I rowsort SELECT DISTINCT 30 FROM tab2, tab0 AS cor0 ---- 30 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 70 col0 FROM tab2 ---- 70 70 70 query I rowsort SELECT DISTINCT - 86 * - 6 AS col0 FROM tab0 AS cor0 ---- 516 query I rowsort SELECT DISTINCT cor0.col2 + - 84 AS col1 FROM tab0, tab1 AS cor0 ---- -27 -30 12 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - col1 * + col1 + + ( - col0 ) ) col1 FROM tab1 ---- -164 -249 -679 query I rowsort SELECT DISTINCT - cor0.col0 + - col0 + + cor0.col2 FROM tab0 AS cor0 ---- -15 -69 -96 query I rowsort SELECT ALL - col0 - col2 AS col0 FROM tab0 cor0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-9984 SELECT - 14 + col1 DIV col0 FROM tab2 AS cor0 ---- -10 -14 -14 skipif mysql # not compatible query I rowsort label-9984 SELECT - 14 + col1 / col0 FROM tab2 AS cor0 ---- -10 -14 -14 query I rowsort SELECT DISTINCT + + 89 FROM tab0 cor0 ---- 89 query I rowsort SELECT DISTINCT - 92 AS col0 FROM tab1 AS cor0 ---- -92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9987 SELECT ALL + - col0 * + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9987 SELECT ALL + - col0 * + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 + - col2 AS col1 FROM tab2 AS cor0 ---- -20 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-9989 SELECT ALL CAST( - 54 AS SIGNED ) DIV + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 54a584d7d45049475f7468d1ef635a58 skipif mysql # not compatible query I rowsort label-9989 SELECT ALL CAST ( - 54 AS INTEGER ) / + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 54a584d7d45049475f7468d1ef635a58 query I rowsort SELECT + - col0 * col1 + - cor0.col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-9991 SELECT - 37 DIV col2 - + col2 DIV - ( col0 * - col0 ) FROM tab1 AS cor0 ---- -6 0 0 skipif mysql # not compatible query I rowsort label-9991 SELECT - 37 / col2 - + col2 / - ( col0 * - col0 ) FROM tab1 AS cor0 ---- -6 0 0 query I rowsort SELECT col1 - + col0 AS col1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT ALL + col0 + col2 - - col1 * - 25 AS col2 FROM tab0 cor0 ---- -2093 -2104 -2389 query I rowsort SELECT ALL + col2 * + col2 + + col2 * + 21 FROM tab0 AS cor0 ---- 1782 22 8446 query I rowsort SELECT ALL + 88 + col1 FROM tab0 AS cor0 ---- 174 179 185 query I rowsort SELECT DISTINCT col0 * + ( col2 ) AS col2 FROM tab0 ---- 35 7298 792 query I rowsort SELECT ALL - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # use DIV operator for integer division query I rowsort label-9998 SELECT + col1 DIV + col1 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-9998 SELECT + col1 / + col1 col0 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + cor0.col2 * + ( 14 + + col0 ) FROM tab2 AS cor0 ---- 2392 3534 567